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-28 21:49+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:2788
431 #: ../cat/virt-cat.pod:116
434 #| " guestfish --format=raw -a disk.img\n"
437 " virt-cat --format=raw -a disk.img file\n"
440 " guestfish --format=raw -a disk.img\n"
444 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
445 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
446 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
447 msgid "forces raw format (no auto-detection) for C<disk.img>."
451 #: ../cat/virt-cat.pod:120
454 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
457 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
460 " guestfish --format=raw -a disk.img --format -a another.img\n"
464 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
465 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
466 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
468 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
469 "detection for C<another.img>."
473 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
474 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
475 #: ../rescue/virt-rescue.pod:144
477 "If you have untrusted raw-format guest disk images, you should use this "
478 "option to specify the disk format. This avoids a possible security problem "
479 "with malicious guests (CVE-2010-3851)."
483 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
484 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
485 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
486 msgid "B<--keys-from-stdin>"
487 msgstr "B<--keys-from-stdin>"
490 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
491 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
492 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
494 "Read key or passphrase parameters from stdin. The default is to try to read "
495 "passphrases from the user by opening C</dev/tty>."
499 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
500 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
501 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
502 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
507 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
508 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
509 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
510 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
512 msgstr "B<--verbose>"
515 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
516 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
517 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
518 msgid "Enable verbose messages for debugging."
522 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
523 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
524 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
525 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
526 #: ../resize/virt-resize.pod:484
531 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
532 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
533 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
534 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
535 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
536 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
537 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
539 msgstr "B<--version>"
542 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
543 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
544 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
545 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
546 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
547 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
548 msgid "Display version number and exit."
549 msgstr "Показати дані щодо версії і завершити роботу."
552 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
553 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
554 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
555 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
556 #: ../tools/virt-tar.pl:158
561 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
562 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
563 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
564 msgid "Enable tracing of libguestfs API calls."
568 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
569 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
570 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
574 #: ../cat/virt-cat.pod:154
575 msgid "Previous versions of virt-cat allowed you to write either:"
579 #: ../cat/virt-cat.pod:156
582 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
585 " virt-cat disk.img [disk.img ...] file\n"
588 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
592 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
593 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
600 #: ../cat/virt-cat.pod:160
603 " virt-cat guestname file\n"
608 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
609 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
611 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
612 "the confusing case where a disk image might have the same name as a guest."
616 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
617 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
618 msgid "For compatibility the old style is still supported."
622 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
623 msgid "USING GUESTFISH"
627 #: ../cat/virt-cat.pod:170
629 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
630 "C<virt-cat> doesn't work."
634 #: ../cat/virt-cat.pod:173
635 msgid "Using C<virt-cat> is approximately equivalent to doing:"
639 #: ../cat/virt-cat.pod:175
642 #| " guestfish --ro -d myguest -i\n"
645 " guestfish --ro -i -d domname download file -\n"
648 " guestfish --ro -d myguest -i\n"
652 #: ../cat/virt-cat.pod:177
654 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
655 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
659 #: ../cat/virt-cat.pod:181
661 "The command above uses libguestfs's guest inspection feature and so does not "
662 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
663 "disk images that don't contain guests. To display a file from a disk image "
668 #: ../cat/virt-cat.pod:186
671 #| " guestfish [--ro] -i disk.img\n"
674 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
677 " guestfish [--ro] -i disk.img\n"
681 #: ../cat/virt-cat.pod:188
683 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
684 "the disk image, and C<file> is the full path to the file."
688 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
689 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
690 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
691 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
692 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
693 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
694 msgid "SHELL QUOTING"
698 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
699 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
700 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
701 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
702 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
703 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
705 "Libvirt guest names can contain arbitrary characters, some of which have "
706 "meaning to the shell such as C<#> and space. You may need to quote or "
707 "escape these characters on the command line. See the shell manual page L<sh"
712 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
713 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
714 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
715 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
716 #: ../test-tool/libguestfs-test-tool.pod:90
721 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
722 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
723 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
724 #: ../resize/virt-resize.pod:610
726 "This program returns 0 if successful, or non-zero if there was an error."
730 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
731 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
732 #: ../erlang/examples/guestfs-erlang.pod:97
733 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
734 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
735 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
736 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
737 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
738 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
739 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
740 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
741 #: ../src/guestfs.pod:3164 ../test-tool/libguestfs-test-tool.pod:100
742 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
743 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
744 #: ../tools/virt-win-reg.pl:746
746 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
749 #: ../cat/virt-cat.pod:205
752 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
753 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
754 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
757 "tar-out(1)>, L<http://libguestfs.org/>."
759 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
760 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
761 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
764 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
765 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
766 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:634
767 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
768 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
769 #: ../tools/virt-win-reg.pl:772
774 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
775 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
776 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
777 #: ../resize/virt-resize.pod:636 ../tools/virt-list-filesystems.pl:210
778 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
779 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
780 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
781 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
784 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
785 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
786 #: ../erlang/examples/guestfs-erlang.pod:114
787 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
788 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
789 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
790 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
791 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
792 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
793 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
794 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:52
795 #: ../src/guestfs.pod:3241 ../test-tool/libguestfs-test-tool.pod:110
796 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
797 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
798 #: ../tools/virt-win-reg.pl:776
800 msgstr "АВТОРСЬКІ ПРАВА"
803 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
804 #: ../resize/virt-resize.pod:640
806 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
807 msgid "Copyright (C) 2010-2011 Red Hat Inc."
808 msgstr "© Red Hat Inc., 2009–2010"
811 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
812 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
813 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
814 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
815 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
816 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
817 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:115
818 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
819 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
820 #: ../tools/virt-win-reg.pl:780
822 "This program is free software; you can redistribute it and/or modify it "
823 "under the terms of the GNU General Public License as published by the Free "
824 "Software Foundation; either version 2 of the License, or (at your option) "
829 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
830 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
831 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
832 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
833 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
834 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
835 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:120
836 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
837 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
838 #: ../tools/virt-win-reg.pl:785
840 "This program is distributed in the hope that it will be useful, but WITHOUT "
841 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
842 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
845 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
846 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
847 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
848 "дізнатися з GNU General Public License."
851 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
852 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
853 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
854 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
855 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
856 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
857 #: ../resize/virt-resize.pod:652 ../test-tool/libguestfs-test-tool.pod:125
858 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
859 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
860 #: ../tools/virt-win-reg.pl:790
862 "You should have received a copy of the GNU General Public License along with "
863 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
864 "Ave, Cambridge, MA 02139, USA."
868 #: ../cat/virt-filesystems.pod:5
870 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
871 "virtual machine or disk image"
875 #: ../cat/virt-filesystems.pod:9
878 #| " virt-list-partitions [--options] domname\n"
881 " virt-filesystems [--options] -d domname\n"
884 " virt-list-partitions [--параметри] назва_домену\n"
888 #: ../cat/virt-filesystems.pod:11
891 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
894 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
897 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
901 #: ../cat/virt-filesystems.pod:15
903 "This tool allows you to discover filesystems, partitions, logical volumes, "
904 "and their sizes in a disk image or virtual machine. It is a replacement for "
905 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
909 #: ../cat/virt-filesystems.pod:20
911 "One use for this tool is from shell scripts to iterate over all filesystems "
916 #: ../cat/virt-filesystems.pod:23
919 " for fs in $(virt-filesystems -a disk.img); do\n"
926 #: ../cat/virt-filesystems.pod:27
928 "Another use is to list partitions before using another tool to modify those "
929 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
930 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
934 #: ../cat/virt-filesystems.pod:32
936 "Various command line options control what this program displays. You need "
937 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
938 "guest respectively. If you just specify that then the program shows "
939 "filesystems found, one per line, like this:"
943 #: ../cat/virt-filesystems.pod:37
946 " $ virt-filesystems -a disk.img\n"
948 " /dev/vg_guest/lv_root\n"
953 #: ../cat/virt-filesystems.pod:41
955 "If you add I<-l> or I<--long> then the output includes extra information:"
959 #: ../cat/virt-filesystems.pod:44
962 " $ virt-filesystems -a disk.img -l\n"
963 " Name Type VFS Label Size\n"
964 " /dev/sda1 filesystem ext4 boot 524288000\n"
965 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
970 #: ../cat/virt-filesystems.pod:49
972 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
977 #: ../cat/virt-filesystems.pod:52
980 " $ virt-filesystems -a disk.img --extra\n"
982 " /dev/vg_guest/lv_root\n"
983 " /dev/vg_guest/lv_swap\n"
984 " /dev/vg_guest/lv_data\n"
989 #: ../cat/virt-filesystems.pod:58
991 "If you add I<--partitions> then partitions are shown instead of filesystems:"
995 #: ../cat/virt-filesystems.pod:60
998 " $ virt-filesystems -a disk.img --partitions\n"
1005 #: ../cat/virt-filesystems.pod:64
1007 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1008 "volumes>, I<--block-devices> to list those items."
1012 #: ../cat/virt-filesystems.pod:67
1014 "You can use these options in combination as well (if you want a combination "
1015 "including filesystems, you have to add I<--filesystems>). Notice that some "
1016 "items fall into several categories (eg. C</dev/sda1> might be both a "
1017 "partition and a filesystem). These items are listed several times. To get "
1018 "a list which includes absolutely everything that virt-filesystems knows "
1019 "about, use the I<--all> option."
1023 #: ../cat/virt-filesystems.pod:74
1025 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1026 "uuid> option to display device and filesystem UUIDs in the long output."
1030 #: ../cat/virt-filesystems.pod:78
1032 "I<--all --long --uuid> is a useful combination to display all possible "
1033 "information about everything."
1037 #: ../cat/virt-filesystems.pod:81
1040 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1041 " Name Type VFS Label Size Parent UUID\n"
1042 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1043 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1044 " /dev/sda1 partition - - 100M /dev/sda -\n"
1045 " /dev/sda2 partition - - 20G /dev/sda -\n"
1046 " /dev/sda device - - 20G - -\n"
1051 #: ../cat/virt-filesystems.pod:89
1053 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1057 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1059 #| msgid "B<--help>"
1064 #: ../cat/virt-filesystems.pod:112
1066 "Display everything. This is currently the same as specifying these options: "
1067 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1068 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1069 "added to this list in future)."
1073 #: ../cat/virt-filesystems.pod:117
1075 #| msgid "See also L</is-lv>."
1076 msgid "See also I<--long>."
1077 msgstr "Див. також L</is-lv>."
1080 #: ../cat/virt-filesystems.pod:119
1082 #| msgid "B<--live>"
1083 msgid "B<--blkdevs>"
1087 #: ../cat/virt-filesystems.pod:121
1089 #| msgid "is-blockdev"
1090 msgid "B<--block-devices>"
1091 msgstr "is-blockdev"
1094 #: ../cat/virt-filesystems.pod:123
1096 #| msgid "is-blockdev"
1097 msgid "Display block devices."
1098 msgstr "is-blockdev"
1101 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1108 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1110 "Write out the results in CSV format (comma-separated values). This format "
1111 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1112 "ABOUT CSV FORMAT> below."
1116 #: ../cat/virt-filesystems.pod:150
1118 "When prompting for keys and passphrases, virt-filesystems normally turns "
1119 "echoing off so you cannot see what you are typing. If you are not worried "
1120 "about Tempest attacks and there is no one else in the room you can specify "
1121 "this flag to see what you are typing."
1125 #: ../cat/virt-filesystems.pod:155
1132 #: ../cat/virt-filesystems.pod:157
1134 "This causes filesystems that are not ordinary, mountable filesystems to be "
1135 "displayed. This category includes swapspace, and filesystems that are empty "
1136 "or contain unknown data."
1140 #: ../cat/virt-filesystems.pod:161
1141 msgid "This option implies I<--filesystems>."
1145 #: ../cat/virt-filesystems.pod:163
1147 #| msgid "list-filesystems"
1148 msgid "B<--filesystems>"
1149 msgstr "list-filesystems"
1152 #: ../cat/virt-filesystems.pod:165
1154 "Display mountable filesystems. If no display option was selected then this "
1155 "option is implied."
1159 #: ../cat/virt-filesystems.pod:168
1160 msgid "With I<--extra>, non-mountable filesystems are shown too."
1164 #: ../cat/virt-filesystems.pod:181
1167 #| " guestfish --format=raw -a disk.img\n"
1170 " virt-filesystems --format=raw -a disk.img\n"
1173 " guestfish --format=raw -a disk.img\n"
1177 #: ../cat/virt-filesystems.pod:185
1180 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1183 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1186 " guestfish --format=raw -a disk.img --format -a another.img\n"
1190 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1191 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1192 #: ../tools/virt-list-partitions.pl:109
1197 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1198 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1200 #| msgid "B<-h> | B<--human-readable>"
1201 msgid "B<--human-readable>"
1202 msgstr "B<-h> | B<--human-readable>"
1205 #: ../cat/virt-filesystems.pod:198
1206 msgid "In I<--long> mode, display sizes in human-readable format."
1210 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1211 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1216 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1217 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1224 #: ../cat/virt-filesystems.pod:209
1225 msgid "Display extra columns of data (\"long format\")."
1229 #: ../cat/virt-filesystems.pod:211
1230 msgid "A title row is added unless you also specify I<--no-title>."
1234 #: ../cat/virt-filesystems.pod:213
1236 "The extra columns displayed depend on what output you select, and the "
1237 "ordering of columns may change in future versions. Use the title row, I<--"
1238 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1243 #: ../cat/virt-filesystems.pod:218
1245 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1246 "default is to show raw numbers of I<bytes>."
1250 #: ../cat/virt-filesystems.pod:221
1251 msgid "Use I<--uuid> to display UUIDs too."
1255 #: ../cat/virt-filesystems.pod:223
1257 #| msgid "B<--live>"
1262 #: ../cat/virt-filesystems.pod:225
1264 #| msgid "B<--live>"
1265 msgid "B<--logvols>"
1269 #: ../cat/virt-filesystems.pod:227
1271 #| msgid "B<--live>"
1272 msgid "B<--logical-volumes>"
1276 #: ../cat/virt-filesystems.pod:229
1278 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1279 "of whether the LVs contain filesystems."
1283 #: ../cat/virt-filesystems.pod:232
1285 #| msgid "B<--listen>"
1286 msgid "B<--no-title>"
1287 msgstr "B<--listen>"
1290 #: ../cat/virt-filesystems.pod:234
1291 msgid "In I<--long> mode, don't add a title row."
1295 #: ../cat/virt-filesystems.pod:236
1297 "Note that the order of the columns is not fixed, and may change in future "
1298 "versions of virt-filesystems, so using this option may give you unexpected "
1303 #: ../cat/virt-filesystems.pod:240
1305 #| msgid "B<--partition>"
1307 msgstr "B<--partition>"
1310 #: ../cat/virt-filesystems.pod:242
1312 #| msgid "B<--partition>"
1313 msgid "B<--partitions>"
1314 msgstr "B<--partition>"
1317 #: ../cat/virt-filesystems.pod:244
1319 "Display partitions. In this mode, these are displayed irrespective of "
1320 "whether the partitions contain filesystems."
1324 #: ../cat/virt-filesystems.pod:247
1331 #: ../cat/virt-filesystems.pod:249
1333 #| msgid "B<--verbose>"
1334 msgid "B<--physvols>"
1335 msgstr "B<--verbose>"
1338 #: ../cat/virt-filesystems.pod:251
1339 msgid "B<--physical-volumes>"
1343 #: ../cat/virt-filesystems.pod:253
1344 msgid "Display LVM physical volumes."
1348 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1350 #| msgid "B<--live>"
1355 #: ../cat/virt-filesystems.pod:257
1362 #: ../cat/virt-filesystems.pod:259
1363 msgid "In I<--long> mode, display UUIDs as well."
1367 #: ../cat/virt-filesystems.pod:273
1374 #: ../cat/virt-filesystems.pod:275
1376 #| msgid "B<--verbose>"
1377 msgid "B<--volgroups>"
1378 msgstr "B<--verbose>"
1381 #: ../cat/virt-filesystems.pod:277
1383 #| msgid "B<--verbose>"
1384 msgid "B<--volume-groups>"
1385 msgstr "B<--verbose>"
1388 #: ../cat/virt-filesystems.pod:279
1389 msgid "Display LVM volume groups."
1393 #: ../cat/virt-filesystems.pod:287
1398 #: ../cat/virt-filesystems.pod:289
1400 "Note that columns in the output are subject to reordering and change in "
1401 "future versions of this tool."
1405 #: ../cat/virt-filesystems.pod:294
1410 #: ../cat/virt-filesystems.pod:296
1411 msgid "The filesystem, partition, block device or LVM name."
1415 #: ../cat/virt-filesystems.pod:298
1417 "For device and partition names these are displayed as canonical libguestfs "
1418 "names, so that for example C</dev/sda2> is the second partition on the first "
1423 #: ../cat/virt-filesystems.pod:302
1425 "If the I<--long> option is B<not> specified, then only the name column is "
1426 "shown in the output."
1430 #: ../cat/virt-filesystems.pod:305
1432 #| msgid "B<-N type>"
1437 #: ../cat/virt-filesystems.pod:307
1438 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1442 #: ../cat/virt-filesystems.pod:309
1447 #: ../cat/virt-filesystems.pod:311
1449 "If there is a filesystem, then this column displays the filesystem type if "
1450 "one could be detected, eg. C<ext4>."
1454 #: ../cat/virt-filesystems.pod:314
1459 #: ../cat/virt-filesystems.pod:316
1461 "If the object has a label (used for identifying and mounting filesystems) "
1462 "then this column contains the label."
1466 #: ../cat/virt-filesystems.pod:319
1468 #| msgid "B<part_size>"
1470 msgstr "B<part_size>"
1473 #: ../cat/virt-filesystems.pod:321
1475 "The size of the object in bytes. If the I<--human> option is used then the "
1476 "size is displayed in a human-readable form."
1480 #: ../cat/virt-filesystems.pod:324
1485 #: ../cat/virt-filesystems.pod:326
1487 "The parent column records the parent relationship between objects. For "
1488 "example, if the object is a partition, then this column contains the name of "
1489 "the containing device. If the object is a logical volume, then this column "
1490 "is the name of the volume group."
1494 #: ../cat/virt-filesystems.pod:331
1499 #: ../cat/virt-filesystems.pod:333
1501 "If the object has a UUID (used for identifying and mounting filesystems and "
1502 "block devices) then this column contains the UUID as a string."
1506 #: ../cat/virt-filesystems.pod:337
1507 msgid "The UUID is only displayed if the I<--uuid> option is given."
1511 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1512 #: ../df/virt-df.pod:191
1513 msgid "NOTE ABOUT CSV FORMAT"
1517 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1518 #: ../df/virt-df.pod:193
1520 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
1521 "should be easy to parse, but it is definitely not easy to parse."
1525 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1526 #: ../df/virt-df.pod:196
1528 "Myth: Just split fields at commas. Reality: This does I<not> work "
1529 "reliably. This example has two columns:"
1533 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1534 #: ../df/virt-df.pod:199
1537 " \"foo,bar\",baz\n"
1542 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1543 #: ../df/virt-df.pod:201
1545 "Myth: Read the file one line at a time. Reality: This does I<not> work "
1546 "reliably. This example has one row:"
1550 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1551 #: ../df/virt-df.pod:204
1560 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1561 #: ../df/virt-df.pod:207
1563 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1564 "packaged in major Linux distributions)."
1568 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1569 #: ../df/virt-df.pod:210
1571 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1572 "or Python's built-in csv library)."
1576 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1577 #: ../df/virt-df.pod:213
1578 msgid "Most spreadsheets and databases can import CSV directly."
1582 #: ../cat/virt-filesystems.pod:379
1585 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1586 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1587 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1590 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1593 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1594 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1595 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1598 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1599 #: ../tools/virt-win-reg.pl:778
1600 msgid "Copyright (C) 2010 Red Hat Inc."
1604 #: ../cat/virt-ls.pod:5
1605 msgid "virt-ls - List files in a virtual machine"
1609 #: ../cat/virt-ls.pod:9
1612 " virt-ls [--options] -d domname directory [directory ...]\n"
1617 #: ../cat/virt-ls.pod:11
1620 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1623 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1626 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1630 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1635 #: ../cat/virt-ls.pod:15
1638 #| " virt-list-partitions [--options] domname\n"
1641 " virt-ls [--options] domname directory\n"
1644 " virt-list-partitions [--параметри] назва_домену\n"
1648 #: ../cat/virt-ls.pod:17
1651 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1654 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1657 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1661 #: ../cat/virt-ls.pod:21
1663 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1664 "more from a virtual machine or disk image."
1668 #: ../cat/virt-ls.pod:24
1670 "Multiple directory names can be given, in which case the output from each is "
1675 #: ../cat/virt-ls.pod:27
1677 "To list directories from a libvirt guest use the I<-d> option to specify the "
1678 "name of the guest. For a disk image, use the I<-a> option."
1682 #: ../cat/virt-ls.pod:31
1684 "C<virt-ls> can do many simple file listings. For more complicated cases you "
1685 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1690 #: ../cat/virt-ls.pod:37
1691 msgid "Get a list of all files and directories in a virtual machine:"
1695 #: ../cat/virt-ls.pod:39
1698 #| " guestfish --ro -d myguest -i\n"
1701 " virt-ls -R -d guest /\n"
1704 " guestfish --ro -d myguest -i\n"
1708 #: ../cat/virt-ls.pod:41
1709 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1713 #: ../cat/virt-ls.pod:43
1716 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1721 #: ../cat/virt-ls.pod:45
1722 msgid "List all public-writable directories in a Linux virtual machine:"
1726 #: ../cat/virt-ls.pod:47
1729 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1734 #: ../cat/virt-ls.pod:49
1735 msgid "List all Unix domain sockets in a Linux virtual machine:"
1739 #: ../cat/virt-ls.pod:51
1742 " virt-ls -lR -d guest / | grep '^s'\n"
1747 #: ../cat/virt-ls.pod:53
1748 msgid "List all regular files with filenames ending in '.png':"
1752 #: ../cat/virt-ls.pod:55
1755 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1760 #: ../cat/virt-ls.pod:57
1761 msgid "To display files larger than 10MB in home directories:"
1765 #: ../cat/virt-ls.pod:59
1768 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1773 #: ../cat/virt-ls.pod:61
1774 msgid "Find everything modified in the last 7 days:"
1778 #: ../cat/virt-ls.pod:63
1781 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1786 #: ../cat/virt-ls.pod:65
1787 msgid "Find regular files modified in the last 24 hours:"
1791 #: ../cat/virt-ls.pod:67
1794 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1799 #: ../cat/virt-ls.pod:69
1800 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1804 #: ../cat/virt-ls.pod:71
1806 "Find the differences between files in a guest and an earlier snapshot of the "
1811 #: ../cat/virt-ls.pod:74
1814 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1815 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1816 " diff -u old new | less\n"
1821 #: ../cat/virt-ls.pod:78
1823 "The commands above won't find files where the content has changed but the "
1824 "metadata (eg. file size and modification date) is the same. To do that, you "
1825 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
1826 "checksum> can be quite slow since it has to read and compute a checksum of "
1827 "every regular file in the virtual machine."
1831 #: ../cat/virt-ls.pod:84
1832 msgid "OUTPUT MODES"
1836 #: ../cat/virt-ls.pod:86
1838 "C<virt-ls> has four output modes, controlled by different combinations of "
1839 "the I<-l> and I<-R> options."
1843 #: ../cat/virt-ls.pod:89
1844 msgid "SIMPLE LISTING"
1848 #: ../cat/virt-ls.pod:91
1849 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1853 #: ../cat/virt-ls.pod:93
1856 " $ virt-ls -d guest /\n"
1864 #: ../cat/virt-ls.pod:98
1867 msgid "LONG LISTING"
1871 #: ../cat/virt-ls.pod:100
1873 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1874 "(more specifically, like the C<guestfs_ll> function)."
1878 #: ../cat/virt-ls.pod:103
1881 " $ virt-ls -l -d guest /\n"
1883 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
1884 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
1890 #: ../cat/virt-ls.pod:109
1892 "Note that while this is useful for displaying a directory, do not try "
1893 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
1898 #: ../cat/virt-ls.pod:113
1899 msgid "RECURSIVE LISTING"
1903 #: ../cat/virt-ls.pod:115
1905 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1906 "and directories recursively:"
1910 #: ../cat/virt-ls.pod:118
1913 " $ virt-ls -R -d guest /tmp\n"
1921 #: ../cat/virt-ls.pod:123
1923 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1924 "converts C<\\0> characters to C<\\n>."
1928 #: ../cat/virt-ls.pod:126
1929 msgid "RECURSIVE LONG LISTING"
1933 #: ../cat/virt-ls.pod:128
1935 "Using I<-lR> options together changes the output to display directories "
1936 "recursively, with file stats, and optionally other features such as "
1937 "checksums and extended attributes."
1941 #: ../cat/virt-ls.pod:132
1943 "Most of the interesting features of C<virt-ls> are only available when using "
1948 #: ../cat/virt-ls.pod:135
1950 "The fields are normally space-separated. Filenames are B<not> quoted, so "
1951 "you cannot use the output in another program (because filenames can contain "
1952 "spaces and other unsafe characters). If the guest was untrusted and someone "
1953 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1954 "on you by creating filenames with embedded newline characters. To B<safely> "
1955 "parse the output in another program, use the I<--csv> (Comma-Separated "
1960 #: ../cat/virt-ls.pod:143
1962 "Note that this output format is completely unrelated to the C<ls -lR> "
1967 #: ../cat/virt-ls.pod:146
1970 " $ virt-ls -lR -d guest /bin\n"
1971 " d 0555 4096 /bin\n"
1972 " - 0755 123 /bin/alsaunmute\n"
1973 " - 0755 28328 /bin/arch\n"
1974 " l 0777 4 /bin/awk -> gawk\n"
1975 " - 0755 27216 /bin/basename\n"
1976 " - 0755 943360 /bin/bash\n"
1982 #: ../cat/virt-ls.pod:155
1983 msgid "These basic fields are always shown:"
1987 #: ../cat/virt-ls.pod:159
1994 #: ../cat/virt-ls.pod:161
1996 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1997 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1998 "link), C<s> (socket) or C<u> (unknown)."
2002 #: ../cat/virt-ls.pod:171
2009 #: ../cat/virt-ls.pod:173
2010 msgid "The Unix permissions, displayed as a 4 digit octal number."
2014 #: ../cat/virt-ls.pod:175
2021 #: ../cat/virt-ls.pod:177
2023 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2024 "readable> option is given, in which case this is shown as a human-readable "
2029 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4255
2034 #: ../cat/virt-ls.pod:183
2035 msgid "The full path of the file or directory."
2039 #: ../cat/virt-ls.pod:185
2046 #: ../cat/virt-ls.pod:187
2047 msgid "For symbolic links only, the link target."
2051 #: ../cat/virt-ls.pod:191
2053 "In I<-lR> mode, additional command line options enable the display of more "
2058 #: ../cat/virt-ls.pod:194
2060 "With the I<--uids> flag, these additional fields are displayed before the "
2065 #: ../cat/virt-ls.pod:199
2072 #: ../cat/virt-ls.pod:201
2079 #: ../cat/virt-ls.pod:203
2081 "The UID and GID of the owner of the file (displayed numerically). Note "
2082 "these only make sense in the context of a Unix-like guest."
2086 #: ../cat/virt-ls.pod:208
2087 msgid "With the I<--times> flag, these additional fields are displayed:"
2091 #: ../cat/virt-ls.pod:212
2098 #: ../cat/virt-ls.pod:214
2099 msgid "The time of last access."
2103 #: ../cat/virt-ls.pod:216
2110 #: ../cat/virt-ls.pod:218
2111 msgid "The time of last modification."
2115 #: ../cat/virt-ls.pod:220
2122 #: ../cat/virt-ls.pod:222
2123 msgid "The time of last status change."
2127 #: ../cat/virt-ls.pod:226
2129 "The time fields are displayed as string dates and times, unless one of the "
2130 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2134 #: ../cat/virt-ls.pod:229
2135 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2139 #: ../cat/virt-ls.pod:233
2141 #| msgid "zero-device"
2143 msgstr "zero-device"
2146 #: ../cat/virt-ls.pod:235
2148 "The device containing the file (displayed as major:minor). This may not "
2149 "match devices as known to the guest."
2153 #: ../cat/virt-ls.pod:238
2158 #: ../cat/virt-ls.pod:240
2159 msgid "The inode number."
2163 #: ../cat/virt-ls.pod:242
2170 #: ../cat/virt-ls.pod:244
2171 msgid "The number of hard links."
2175 #: ../cat/virt-ls.pod:246
2180 #: ../cat/virt-ls.pod:248
2182 "For block and char special files, the device (displayed as major:minor)."
2186 #: ../cat/virt-ls.pod:251
2188 #| msgid "C<blocksize>"
2190 msgstr "C<blocksize>"
2193 #: ../cat/virt-ls.pod:253
2194 msgid "The number of 512 byte blocks allocated to the file."
2198 #: ../cat/virt-ls.pod:257
2200 "With the I<--checksum> flag, the checksum of the file contents is shown "
2201 "(only for regular files). Computing file checksums can take a considerable "
2206 #: ../cat/virt-ls.pod:280
2209 msgid "B<--checksum>"
2213 #: ../cat/virt-ls.pod:282
2214 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2218 #: ../cat/virt-ls.pod:284
2220 "Display checksum over file contents for regular files. With no argument, "
2221 "this defaults to using I<md5>. Using an argument, you can select the "
2222 "checksum type to use."
2226 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2227 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2228 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2230 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2235 #: ../cat/virt-ls.pod:316
2237 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2238 "so you cannot see what you are typing. If you are not worried about Tempest "
2239 "attacks and there is no one else in the room you can specify this flag to "
2240 "see what you are typing."
2244 #: ../cat/virt-ls.pod:321
2246 #| msgid "B<--no-dest-paths>"
2247 msgid "B<--extra-stats>"
2248 msgstr "B<--no-dest-paths>"
2251 #: ../cat/virt-ls.pod:323
2252 msgid "Display extra stats."
2256 #: ../cat/virt-ls.pod:339
2259 #| " guestfish --format=raw -a disk.img\n"
2262 " virt-ls --format=raw -a disk.img /dir\n"
2265 " guestfish --format=raw -a disk.img\n"
2269 #: ../cat/virt-ls.pod:343
2272 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2275 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2278 " guestfish --format=raw -a disk.img --format -a another.img\n"
2282 #: ../cat/virt-ls.pod:356
2283 msgid "Display file sizes in human-readable format."
2287 #: ../cat/virt-ls.pod:370
2292 #: ../cat/virt-ls.pod:372
2294 #| msgid "B<--live>"
2295 msgid "B<--recursive>"
2299 #: ../cat/virt-ls.pod:374
2301 "Select the mode. With neither of these options, C<virt-ls> produces a "
2302 "simple, flat list of the files in the named directory. See L</SIMPLE "
2307 #: ../cat/virt-ls.pod:378
2309 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2314 #: ../cat/virt-ls.pod:381
2316 "C<virt-ls -R> produces a recursive list of files starting at the named "
2317 "directory. See L</RECURSIVE LISTING>."
2321 #: ../cat/virt-ls.pod:384
2323 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2324 "parsed. See L</RECURSIVE LONG LISTING>."
2328 #: ../cat/virt-ls.pod:387
2330 #| msgid "B<--live>"
2335 #: ../cat/virt-ls.pod:389
2336 msgid "Display time fields."
2340 #: ../cat/virt-ls.pod:394
2342 #| msgid "B<--echo-keys>"
2343 msgid "B<--time-days>"
2344 msgstr "B<--echo-keys>"
2347 #: ../cat/virt-ls.pod:396
2348 msgid "Display time fields as days before now (negative if in the future)."
2352 #: ../cat/virt-ls.pod:398
2354 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2355 "of the file is between 0 and 86399 seconds."
2359 #: ../cat/virt-ls.pod:404
2361 #| msgid "B<--live>"
2362 msgid "B<--time-relative>"
2366 #: ../cat/virt-ls.pod:406
2367 msgid "Display time fields as seconds before now (negative if in the future)."
2371 #: ../cat/virt-ls.pod:411
2373 #| msgid "I<--timeout N>"
2375 msgstr "I<--timeout N>"
2378 #: ../cat/virt-ls.pod:413
2379 msgid "Display time fields as seconds since the Unix epoch."
2383 #: ../cat/virt-ls.pod:418
2390 #: ../cat/virt-ls.pod:420
2391 msgid "Display UID and GID fields."
2395 #: ../cat/virt-ls.pod:445
2396 msgid "Previous versions of virt-ls allowed you to write either:"
2400 #: ../cat/virt-ls.pod:447
2403 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2406 " virt-ls disk.img [disk.img ...] /dir\n"
2409 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2413 #: ../cat/virt-ls.pod:451
2416 #| " inspect-get-hostname root\n"
2419 " virt-ls guestname /dir\n"
2422 " inspect-get-hostname корінь\n"
2426 #: ../cat/virt-ls.pod:497
2429 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2430 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2431 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2433 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2434 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2435 "L<http://libguestfs.org/>."
2437 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2438 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2439 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2442 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2443 #: ../rescue/virt-rescue.pod:302
2445 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2446 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2447 msgstr "© Red Hat Inc., 2009–2010"
2450 #: ../df/virt-df.pod:5
2451 msgid "virt-df - Display free space on virtual filesystems"
2455 #: ../df/virt-df.pod:9
2458 #| " virt-list-partitions [--options] domname\n"
2461 " virt-df [--options]\n"
2464 " virt-list-partitions [--параметри] назва_домену\n"
2468 #: ../df/virt-df.pod:11
2471 #| " virt-list-partitions [--options] domname\n"
2474 " virt-df [--options] -d domname\n"
2477 " virt-list-partitions [--параметри] назва_домену\n"
2481 #: ../df/virt-df.pod:13
2484 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2487 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2490 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2494 #: ../df/virt-df.pod:17
2497 #| " virt-list-partitions [--options] domname\n"
2500 " virt-df [--options] domname\n"
2503 " virt-list-partitions [--параметри] назва_домену\n"
2507 #: ../df/virt-df.pod:19
2510 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2513 " virt-df [--options] disk.img [disk.img ...]\n"
2516 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2520 #: ../df/virt-df.pod:23
2522 "C<virt-df> is a command line tool to display free space on virtual machine "
2523 "filesystems. Unlike other tools, it doesn't just display the size of disk "
2524 "allocated to a virtual machine, but can look inside disk images to see how "
2525 "much space is really being used."
2529 #: ../df/virt-df.pod:28
2531 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2532 "to get a list of all active and inactive guests, and performs a C<df>-type "
2533 "operation on each one in turn, printing out the results."
2537 #: ../df/virt-df.pod:32
2539 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2540 "type operation on either the single named libvirt domain, or on the disk "
2541 "image(s) listed on the command line (which must all belong to a single VM). "
2542 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2543 "guest>. If you want to run on multiple guests, then you have to invoke "
2544 "C<virt-df> multiple times."
2548 #: ../df/virt-df.pod:39
2550 "Use the I<--csv> option to get a format which can be easily parsed by other "
2551 "programs. Other options are similar to the standard L<df(1)> command."
2555 #: ../df/virt-df.pod:45
2557 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
2558 "output human-readable:"
2562 #: ../df/virt-df.pod:48
2565 " # virt-df -d F14x64 -h\n"
2566 " Filesystem Size Used Available Use%\n"
2567 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
2568 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
2573 #: ../df/virt-df.pod:53
2574 msgid "Show disk usage for a disk image file called C<test.img>:"
2578 #: ../df/virt-df.pod:55
2581 " $ virt-df -a test1.img\n"
2582 " Filesystem 1K-blocks Used Available Use%\n"
2583 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
2588 #: ../df/virt-df.pod:112
2591 #| " guestfish --format=raw -a disk.img\n"
2594 " virt-df --format=raw -a disk.img\n"
2597 " guestfish --format=raw -a disk.img\n"
2601 #: ../df/virt-df.pod:116
2604 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2607 " virt-df --format=raw -a disk.img --format -a another.img\n"
2610 " guestfish --format=raw -a disk.img --format -a another.img\n"
2614 #: ../df/virt-df.pod:129
2615 msgid "Print sizes in human-readable format."
2619 #: ../df/virt-df.pod:131
2620 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2624 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2629 #: ../df/virt-df.pod:135
2631 #| msgid "B<--live>"
2636 #: ../df/virt-df.pod:137
2637 msgid "Print inodes instead of blocks."
2641 #: ../df/virt-df.pod:139
2643 #| msgid "B<--merge>"
2644 msgid "B<--one-per-guest>"
2648 #: ../df/virt-df.pod:141
2650 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
2651 "disks from several guests to a single libguestfs appliance."
2655 #: ../df/virt-df.pod:144
2656 msgid "You might use this option in the following circumstances:"
2660 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2661 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2662 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2663 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2664 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2665 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2666 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2667 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2668 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2669 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2670 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2671 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2672 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2673 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2674 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2675 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2676 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2677 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2678 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2679 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2680 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2681 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2682 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2683 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2684 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2685 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2686 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2687 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2688 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:22
2689 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:588
2690 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2691 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1774
2692 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2693 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1794
2694 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2695 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1816
2696 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1958
2697 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1967
2698 #: ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:2033
2699 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2042
2700 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:2462
2701 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:3006
2702 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3020
2703 #: ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3034
2704 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2705 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2706 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1091
2707 #: ../src/guestfs.pod:1095 ../src/guestfs.pod:1099 ../src/guestfs.pod:1104
2708 #: ../src/guestfs.pod:1112 ../src/guestfs.pod:1131 ../src/guestfs.pod:1139
2709 #: ../src/guestfs.pod:1161 ../src/guestfs.pod:1165 ../src/guestfs.pod:1169
2710 #: ../src/guestfs.pod:1173 ../src/guestfs.pod:1177 ../src/guestfs.pod:1181
2711 #: ../src/guestfs.pod:1671 ../src/guestfs.pod:1676 ../src/guestfs.pod:1680
2712 #: ../src/guestfs.pod:1782 ../src/guestfs.pod:1787 ../src/guestfs.pod:1791
2713 #: ../src/guestfs.pod:1801 ../src/guestfs.pod:2090 ../src/guestfs.pod:2095
2714 #: ../src/guestfs.pod:2101 ../src/guestfs.pod:2109 ../src/guestfs.pod:2556
2715 #: ../src/guestfs.pod:2562 ../src/guestfs.pod:2567 ../src/guestfs.pod:2573
2716 #: ../src/guestfs.pod:2956 ../src/guestfs.pod:2961 ../src/guestfs.pod:2965
2717 #: ../src/guestfs.pod:2969 ../src/guestfs.pod:2973 ../src/guestfs.pod:2987
2718 #: ../src/guestfs.pod:2992 ../src/guestfs.pod:3218 ../src/guestfs.pod:3222
2719 #: ../src/guestfs.pod:3226 ../src/guestfs.pod:3230
2720 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2721 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2722 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2727 #: ../df/virt-df.pod:150
2729 "If you think an untrusted guest might actively try to exploit the libguestfs "
2730 "appliance kernel, then this prevents one guest from interfering with the "
2731 "stats printed for another guest."
2735 #: ../df/virt-df.pod:156
2737 "If the kernel has a bug which stops it from accessing a filesystem in one "
2738 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2739 "and report stats for further guests."
2743 #: ../df/virt-df.pod:165
2745 "Print UUIDs instead of names. This is useful for following a guest even "
2746 "when the guest is migrated or renamed, or when two guests happen to have the "
2751 #: ../df/virt-df.pod:169
2753 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
2754 "images, we still print the disk image name even when this option is "
2759 #: ../df/virt-df.pod:229
2761 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2766 #: ../edit/virt-edit.pod:5
2767 msgid "virt-edit - Edit a file in a virtual machine"
2771 #: ../edit/virt-edit.pod:9
2774 #| " virt-list-partitions [--options] domname\n"
2777 " virt-edit [--options] -d domname file [file ...]\n"
2780 " virt-list-partitions [--параметри] назва_домену\n"
2784 #: ../edit/virt-edit.pod:11
2787 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2790 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2793 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2797 #: ../edit/virt-edit.pod:13
2800 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2805 #: ../edit/virt-edit.pod:17
2808 " virt-edit domname file\n"
2813 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2816 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2819 " virt-edit disk.img [disk.img ...] file\n"
2822 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2826 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2827 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2828 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2829 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2831 msgstr "ПОПЕРЕДЖЕННЯ"
2834 #: ../edit/virt-edit.pod:23
2836 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
2837 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
2838 "doing this, but doesn't catch all cases."
2842 #: ../edit/virt-edit.pod:29
2844 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2845 "exists in the named virtual machine (or disk image)."
2849 #: ../edit/virt-edit.pod:32
2851 "Multiple filenames can be given, in which case they are each edited in "
2852 "turn. Each filename must be a full path, starting at the root directory "
2853 "(starting with '/')."
2857 #: ../edit/virt-edit.pod:36
2858 msgid "If you want to just view a file, use L<virt-cat(1)>."
2862 #: ../edit/virt-edit.pod:38
2864 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2865 "USING GUESTFISH> below)."
2869 #: ../edit/virt-edit.pod:41
2871 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
2872 "that and much more."
2876 #: ../edit/virt-edit.pod:46
2877 msgid "Edit the named files interactively:"
2881 #: ../edit/virt-edit.pod:48
2884 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2889 #: ../edit/virt-edit.pod:50
2892 " virt-edit -d mydomain /etc/passwd\n"
2897 #: ../edit/virt-edit.pod:52
2898 msgid "For Windows guests, some Windows paths are understood:"
2902 #: ../edit/virt-edit.pod:54
2905 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2910 #: ../edit/virt-edit.pod:56
2912 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2913 "INTERACTIVE EDITING> below). To change the init default level to 5:"
2917 #: ../edit/virt-edit.pod:60
2920 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2925 #: ../edit/virt-edit.pod:81
2926 msgid "B<-b> extension"
2930 #: ../edit/virt-edit.pod:83
2931 msgid "B<--backup> extension"
2935 #: ../edit/virt-edit.pod:85
2937 "Create a backup of the original file I<in the guest disk image>. The backup "
2938 "has the original filename with C<extension> added."
2942 #: ../edit/virt-edit.pod:88
2944 "Usually the first character of C<extension> would be a dot C<.> so you would "
2949 #: ../edit/virt-edit.pod:91
2952 " virt-edit -b .orig [etc]\n"
2957 #: ../edit/virt-edit.pod:93
2958 msgid "By default, no backup file is made."
2962 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2963 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2964 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2965 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2967 msgstr "B<-c адреса>"
2970 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2971 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2972 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2973 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2974 msgid "B<--connect URI>"
2975 msgstr "B<--connect адреса>"
2978 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2979 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2980 #: ../tools/virt-win-reg.pl:135
2982 "If you specify guest block devices directly, then libvirt is not used at all."
2986 #: ../edit/virt-edit.pod:114
2988 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2989 "off so you cannot see what you are typing. If you are not worried about "
2990 "Tempest attacks and there is no one else in the room you can specify this "
2991 "flag to see what you are typing."
2995 #: ../edit/virt-edit.pod:119
3000 #: ../edit/virt-edit.pod:121
3002 #| msgid "B<--help>"
3003 msgid "B<--expr> EXPR"
3007 #: ../edit/virt-edit.pod:123
3009 "Instead of launching the external editor, non-interactively apply the Perl "
3010 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
3015 #: ../edit/virt-edit.pod:127
3017 "Be careful to properly quote the expression to prevent it from being altered "
3022 #: ../edit/virt-edit.pod:130
3023 msgid "Note that this option is only available when Perl 5 is installed."
3027 #: ../edit/virt-edit.pod:132
3029 #| msgid "B<--format=raw|qcow2|..>"
3030 msgid "B<--format> raw|qcow2|..."
3031 msgstr "B<--format=raw|qcow2|..>"
3034 #: ../edit/virt-edit.pod:143
3037 #| " guestfish --format=raw -a disk.img\n"
3040 " virt-edit --format=raw -a disk.img file\n"
3043 " guestfish --format=raw -a disk.img\n"
3047 #: ../edit/virt-edit.pod:147
3050 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3053 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3056 " guestfish --format=raw -a disk.img --format -a another.img\n"
3060 #: ../edit/virt-edit.pod:181
3061 msgid "Previous versions of virt-edit allowed you to write either:"
3065 #: ../edit/virt-edit.pod:187
3068 #| " edit filename\n"
3071 " virt-edit guestname file\n"
3074 " edit назва_файла\n"
3078 #: ../edit/virt-edit.pod:195
3079 msgid "NON-INTERACTIVE EDITING"
3083 #: ../edit/virt-edit.pod:197
3085 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3086 "administrator can interactively edit the file."
3090 #: ../edit/virt-edit.pod:200
3092 "There are two ways also to use C<virt-edit> from scripts in order to make "
3093 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
3094 "like this, it's less error-prone to write scripts directly using the "
3095 "libguestfs API and Augeas for configuration file editing.)"
3099 #: ../edit/virt-edit.pod:206
3101 "The first method is to temporarily set C<$EDITOR> to any script or program "
3102 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
3103 "update C<tmpfile> in place however it likes."
3107 #: ../edit/virt-edit.pod:210
3109 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3110 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
3111 "instances of C<foo> with C<bar> in a file:"
3115 #: ../edit/virt-edit.pod:214
3118 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3123 #: ../edit/virt-edit.pod:216
3125 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
3126 "For example to delete root's password you could do:"
3130 #: ../edit/virt-edit.pod:219
3133 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3138 #: ../edit/virt-edit.pod:221
3140 "What really happens is that the snippet is evaluated as a Perl expression "
3141 "for each line of the file. The line, including the final C<\\n>, is passed "
3142 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3146 #: ../edit/virt-edit.pod:226
3148 "To delete a line, set C<$_> to the empty string. For example, to delete the "
3149 "C<apache> user account from the password file you can do:"
3153 #: ../edit/virt-edit.pod:229
3156 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3161 #: ../edit/virt-edit.pod:231
3163 "To insert a line, prepend or append it to C<$_>. However appending lines to "
3164 "the end of the file is rather difficult this way since there is no concept "
3165 "of \"last line of the file\" - your expression just doesn't get called "
3166 "again. You might want to use the first method (setting C<$EDITOR>) if you "
3171 #: ../edit/virt-edit.pod:237
3173 "The variable C<$lineno> contains the current line number. As is "
3174 "traditional, the first line in the file is number C<1>."
3178 #: ../edit/virt-edit.pod:240
3180 "The return value from the expression is ignored, but the expression may call "
3181 "C<die> in order to abort the whole program, leaving the original file "
3186 #: ../edit/virt-edit.pod:244
3188 "Remember when matching the end of a line that C<$_> may contain the final C<"
3189 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3190 "newline then neither of these. Thus to match or substitute some text at the "
3191 "end of a line, use this regular expression:"
3195 #: ../edit/virt-edit.pod:249
3198 " /some text(\\r?\\n)?$/\n"
3203 #: ../edit/virt-edit.pod:251
3205 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3206 "$_> itself (since that would remove all newlines from the file):"
3210 #: ../edit/virt-edit.pod:255
3213 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3218 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3219 msgid "WINDOWS PATHS"
3223 #: ../edit/virt-edit.pod:259
3225 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3226 "paths (eg. C<E:\\foo\\bar.txt>)."
3230 #: ../edit/virt-edit.pod:262
3231 msgid "If and only if the guest is running Windows then:"
3235 #: ../edit/virt-edit.pod:268
3237 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3238 "to the correct filesystem."
3242 #: ../edit/virt-edit.pod:273
3244 "Any backslash (C<\\>) characters in the path are replaced with forward "
3245 "slashes so that libguestfs can process it."
3249 #: ../edit/virt-edit.pod:278
3251 "The path is resolved case insensitively to locate the file that should be "
3256 #: ../edit/virt-edit.pod:283
3257 msgid "There are some known shortcomings:"
3261 #: ../edit/virt-edit.pod:289
3262 msgid "Some NTFS symbolic links may not be followed correctly."
3266 #: ../edit/virt-edit.pod:293
3267 msgid "NTFS junction points that cross filesystems are not followed."
3271 #: ../edit/virt-edit.pod:299
3273 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3274 "C<virt-edit> doesn't work."
3278 #: ../edit/virt-edit.pod:302
3279 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3283 #: ../edit/virt-edit.pod:304
3286 #| " guestfish --ro -d myguest -i\n"
3289 " guestfish --rw -i -d domname edit /file\n"
3292 " guestfish --ro -d myguest -i\n"
3296 #: ../edit/virt-edit.pod:306
3298 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3303 #: ../edit/virt-edit.pod:309
3305 "The command above uses libguestfs's guest inspection feature and so does not "
3306 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3307 "disk images that don't contain guests. To edit a file on a disk image "
3312 #: ../edit/virt-edit.pod:314
3315 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3318 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3321 " guestfish --format=raw -a disk.img --format -a another.img\n"
3325 #: ../edit/virt-edit.pod:316
3327 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3328 "the disk image to edit, and C</file> is the full path to the file."
3332 #: ../edit/virt-edit.pod:320
3334 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3335 "C<write> or C<upload> instead:"
3339 #: ../edit/virt-edit.pod:323
3342 #| " guestfish --ro -d myguest -i\n"
3345 " guestfish --rw -i -d domname touch /newfile\n"
3348 " guestfish --ro -d myguest -i\n"
3352 #: ../edit/virt-edit.pod:325
3355 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3360 #: ../edit/virt-edit.pod:327
3363 " guestfish --rw -i -d domname upload localfile /newfile\n"
3368 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3369 #: ../rescue/virt-rescue.pod:261 ../src/guestfs.pod:3103
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:3237
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:3239
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:3246
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:3251
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:3256
3760 "You should have received a copy of the GNU Lesser General Public License "
3761 "along with this library; if not, write to the Free Software Foundation, "
3762 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3766 #: ../examples/guestfs-examples.pod:5
3767 msgid "guestfs-examples - Examples of using libguestfs from C"
3771 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3774 " #include <guestfs.h>\n"
3777 " #include <guestfs.h>\n"
3781 #: ../examples/guestfs-examples.pod:11
3784 " guestfs_h *g = guestfs_create ();\n"
3785 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3786 " guestfs_launch (g);\n"
3791 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3794 " cc prog.c -o prog -lguestfs\n"
3796 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3799 " cc prog.c -o prog -lguestfs\n"
3801 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3805 #: ../examples/guestfs-examples.pod:21
3807 "This manual page contains examples of calling libguestfs from the C "
3808 "programming language. If you are not familiar with using libguestfs, you "
3809 "also need to read L<guestfs(3)>."
3813 #: ../examples/guestfs-examples.pod:35
3816 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3817 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3818 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3820 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3821 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3822 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3825 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3826 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3829 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3830 #: ../python/examples/guestfs-python.pod:60
3831 #: ../ruby/examples/guestfs-ruby.pod:54
3833 #| msgid "Copyright (C) 2009 Red Hat Inc."
3834 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3835 msgstr "© Red Hat Inc., 2009"
3838 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3843 #: ../examples/guestfs-recipes.pod:5
3845 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3846 "here. The only way which works for both sorts of output is to just write "
3847 "the URL directly. Do NOT use L<...> for URLs."
3851 #: ../examples/guestfs-recipes.pod:9
3853 "We break with tradition here and don't use ALL CAPS for the section "
3854 "headings, as this makes them much easier to read."
3858 #: ../examples/guestfs-recipes.pod:16
3859 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3863 #: ../examples/guestfs-recipes.pod:20
3865 "This page contains recipes for and links to things you can do using "
3866 "libguestfs, L<guestfish(1)> and the virt tools."
3870 #: ../examples/guestfs-recipes.pod:23
3871 msgid "Audit a virtual machine for setuid files"
3875 #: ../examples/guestfs-recipes.pod:25
3877 "The link below contains a small program which can be used to audit a Linux "
3878 "virtual machine to see what setuid and setgid files it contains."
3882 #: ../examples/guestfs-recipes.pod:28
3884 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3889 #: ../examples/guestfs-recipes.pod:30
3890 msgid "Change the background image in a Windows XP VM"
3894 #: ../examples/guestfs-recipes.pod:32
3896 "The links below explain how to use L<guestfish(1)> to change the background "
3897 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
3898 "be substantially different for each version of Windows."
3902 #: ../examples/guestfs-recipes.pod:37
3904 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3905 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3909 #: ../examples/guestfs-recipes.pod:40
3910 msgid "Cloning a virtual machine (Linux)"
3914 #: ../examples/guestfs-recipes.pod:42
3916 "The guestfish technique described in the link below works well for most "
3917 "Linux VMs. Depending on the Linux distro you may need to change the paths "
3922 #: ../examples/guestfs-recipes.pod:46
3924 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3929 #: ../examples/guestfs-recipes.pod:48
3931 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
3936 #: ../examples/guestfs-recipes.pod:51
3937 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3941 #: ../examples/guestfs-recipes.pod:53
3942 msgid "Cloning a virtual machine (Windows)"
3946 #: ../examples/guestfs-recipes.pod:55
3948 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3949 "straightforward. Currently there is code in the Aeolus Oz project which "
3950 "does this (using libguestfs). As part of our review of the virt-clone tool, "
3951 "we may add sysprepping ability."
3955 #: ../examples/guestfs-recipes.pod:60
3957 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3958 "list/2011-May/msg00019.html"
3962 #: ../examples/guestfs-recipes.pod:63
3963 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3967 #: ../examples/guestfs-recipes.pod:65
3968 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3972 #: ../examples/guestfs-recipes.pod:67
3975 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3980 #: ../examples/guestfs-recipes.pod:69
3981 msgid "To export just a subdirectory, eg. C</files>, do:"
3985 #: ../examples/guestfs-recipes.pod:71
3988 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3993 #: ../examples/guestfs-recipes.pod:73
3994 msgid "Create empty disk images"
3998 #: ../examples/guestfs-recipes.pod:75
4000 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
4001 "The useful guide below explains the options available."
4005 #: ../examples/guestfs-recipes.pod:78
4007 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4012 #: ../examples/guestfs-recipes.pod:80
4013 msgid "Dump raw filesystem content from inside a disk image or VM"
4017 #: ../examples/guestfs-recipes.pod:82
4019 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4020 "filesystem content from any filesystem in a disk image or a VM (even one "
4021 "which is encrypted or buried inside an LV):"
4025 #: ../examples/guestfs-recipes.pod:86
4028 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4031 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4034 " guestfish --format=raw -a disk.img --format -a another.img\n"
4038 #: ../examples/guestfs-recipes.pod:88
4041 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4046 #: ../examples/guestfs-recipes.pod:90
4047 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4051 #: ../examples/guestfs-recipes.pod:92
4052 msgid "Edit grub configuration in a VM"
4056 #: ../examples/guestfs-recipes.pod:94
4057 msgid "You can use this to:"
4061 #: ../examples/guestfs-recipes.pod:100
4062 msgid "Fix a virtual machine that does not boot."
4066 #: ../examples/guestfs-recipes.pod:104
4067 msgid "Change which kernel is used to boot the VM."
4071 #: ../examples/guestfs-recipes.pod:108
4072 msgid "Change kernel command line options."
4076 #: ../examples/guestfs-recipes.pod:112
4077 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4081 #: ../examples/guestfs-recipes.pod:114
4084 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4089 #: ../examples/guestfs-recipes.pod:116
4091 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4096 #: ../examples/guestfs-recipes.pod:119
4099 " virt-rescue -d BrokenGuest\n"
4104 #: ../examples/guestfs-recipes.pod:121
4105 msgid "Export any directory from a VM"
4109 #: ../examples/guestfs-recipes.pod:123
4111 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4115 #: ../examples/guestfs-recipes.pod:126
4118 #| " copy-out /home .\n"
4121 " virt-copy-out -d Guest /home .\n"
4124 " copy-out /home .\n"
4128 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4129 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4130 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4131 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2451
4132 #: ../src/guestfs-actions.pod:3002 ../src/guestfs.pod:1667
4133 #: ../tools/virt-win-reg.pl:706
4138 #: ../examples/guestfs-recipes.pod:134
4140 "The final dot of the command is not a printing error. It means we want to "
4141 "copy out to the current directory."
4145 #: ../examples/guestfs-recipes.pod:139
4146 msgid "This creates a directory called C<home> under the current directory."
4150 #: ../examples/guestfs-recipes.pod:143
4152 "If the guest is a Windows guest then you can use drive letters and "
4153 "backslashes, but you must prefix the path with C<win:> and quote it to "
4154 "protect it from the shell, like this:"
4158 #: ../examples/guestfs-recipes.pod:147
4161 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4166 #: ../examples/guestfs-recipes.pod:149
4167 msgid "To get the output as a compressed tarball, do:"
4171 #: ../examples/guestfs-recipes.pod:151
4174 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4179 #: ../examples/guestfs-recipes.pod:153
4181 "Although it sounds tempting, this is usually not a reliable way to get a "
4182 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
4183 "org/FAQ.html#backup"
4187 #: ../examples/guestfs-recipes.pod:157
4188 msgid "Find out which user is using the most space"
4192 #: ../examples/guestfs-recipes.pod:159
4194 "This simple script examines a Linux guest to find out which user is using "
4195 "the most space in their home directory:"
4199 #: ../examples/guestfs-recipes.pod:162
4202 #| " #!/usr/bin/guestfish -f\n"
4208 " #!/usr/bin/guestfish -f\n"
4212 #: ../examples/guestfs-recipes.pod:164
4215 #| " set-qemu qemu\n"
4225 #: ../examples/guestfs-recipes.pod:166
4234 #: ../examples/guestfs-recipes.pod:169
4237 #| " guestfish --ro -d myguest -i\n"
4240 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4243 " guestfish --ro -d myguest -i\n"
4247 #: ../examples/guestfs-recipes.pod:171
4250 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4251 " echo -n \"$dir/$d\"\n"
4253 " guestfish --remote du \"$dir/$d\";\n"
4254 " done | sort -nr -k 2\n"
4259 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4262 " guestfish --remote exit\n"
4267 #: ../examples/guestfs-recipes.pod:179
4268 msgid "Get DHCP address from a VM"
4272 #: ../examples/guestfs-recipes.pod:181
4274 "The link below explains the many different possible techniques for getting "
4275 "the last assigned DHCP address of a virtual machine."
4279 #: ../examples/guestfs-recipes.pod:184
4281 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4282 "a-virtual-machine-disk-image/#content"
4286 #: ../examples/guestfs-recipes.pod:186
4288 "In the libguestfs source examples directory you will find the latest version "
4289 "of the C<virt-dhcp-address.c> program."
4293 #: ../examples/guestfs-recipes.pod:189
4294 msgid "Get the operating system product name string"
4298 #: ../examples/guestfs-recipes.pod:191
4299 msgid "Save the following script into a file called C<product-name.sh>:"
4303 #: ../examples/guestfs-recipes.pod:193
4306 #| " eval \"`guestfish --listen`\"\n"
4307 #| " guestfish --remote add-ro disk.img\n"
4308 #| " guestfish --remote run\n"
4309 #| " guestfish --remote lvs\n"
4314 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4315 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4316 " guestfish --remote inspect-get-product-name \"$root\"\n"
4317 " guestfish --remote exit\n"
4320 " eval \"`guestfish --listen`\"\n"
4321 " guestfish --remote add-ro disk.img\n"
4322 " guestfish --remote run\n"
4323 " guestfish --remote lvs\n"
4327 #: ../examples/guestfs-recipes.pod:200
4328 msgid "Make the script executable and run it on a named guest:"
4332 #: ../examples/guestfs-recipes.pod:202
4335 " # product-name.sh RHEL60x64\n"
4336 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4341 #: ../examples/guestfs-recipes.pod:205
4343 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4344 "C<xpath> command line tool or from your favourite programming language:"
4348 #: ../examples/guestfs-recipes.pod:209
4351 " # virt-inspector RHEL60x64 > xml\n"
4352 " # xpath '//product_name' < xml\n"
4355 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4360 #: ../examples/guestfs-recipes.pod:215
4361 msgid "Get the default boot kernel for a Linux VM"
4365 #: ../examples/guestfs-recipes.pod:217
4367 "The link below contains a program to print the default boot kernel for a "
4372 #: ../examples/guestfs-recipes.pod:220
4374 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4375 "kernel-for-a-vm/#content"
4379 #: ../examples/guestfs-recipes.pod:222
4381 "It uses Augeas, and the technique is generally applicable for many different "
4386 #: ../examples/guestfs-recipes.pod:229
4387 msgid "listing the user accounts in the guest"
4391 #: ../examples/guestfs-recipes.pod:233
4392 msgid "what repositories is it configured to use"
4396 #: ../examples/guestfs-recipes.pod:237
4397 msgid "what NTP servers does it connect to"
4401 #: ../examples/guestfs-recipes.pod:241
4402 msgid "what were the boot messages last time it booted"
4406 #: ../examples/guestfs-recipes.pod:245
4407 msgid "listing who was logged in recently"
4411 #: ../examples/guestfs-recipes.pod:249
4412 msgid "http://augeas.net/"
4416 #: ../examples/guestfs-recipes.pod:251
4417 msgid "Install RPMs in a guest"
4421 #: ../examples/guestfs-recipes.pod:253
4423 "The link below contains a method to install RPMs in a guest. In fact the "
4424 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4425 "installs them next time the guest is booted. You could use this technique "
4426 "to install vital security updates in an offline guest."
4430 #: ../examples/guestfs-recipes.pod:259
4432 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4436 #: ../examples/guestfs-recipes.pod:261
4437 msgid "List applications installed in a VM"
4441 #: ../examples/guestfs-recipes.pod:263
4442 msgid "Save the following to a file C<list-apps.sh>:"
4446 #: ../examples/guestfs-recipes.pod:265
4449 #| " eval \"`guestfish --listen`\"\n"
4450 #| " guestfish --remote add-ro disk.img\n"
4451 #| " guestfish --remote run\n"
4452 #| " guestfish --remote lvs\n"
4457 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4458 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4459 " guestfish --remote inspect-list-applications \"$root\"\n"
4460 " guestfish --remote exit\n"
4463 " eval \"`guestfish --listen`\"\n"
4464 " guestfish --remote add-ro disk.img\n"
4465 " guestfish --remote run\n"
4466 " guestfish --remote lvs\n"
4470 #: ../examples/guestfs-recipes.pod:272
4472 "Make the file executable and then you can run it on any named virtual "
4477 #: ../examples/guestfs-recipes.pod:275
4480 " # list-apps.sh WinGuest\n"
4482 " app_name: Mozilla Firefox (3.6.12)\n"
4483 " app_display_name: Mozilla Firefox (3.6.12)\n"
4485 " app_version: 3.6.12 (en-GB)\n"
4487 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4488 " app_trans_path:\n"
4489 " app_publisher: Mozilla\n"
4490 " app_url: http://www.mozilla.com/en-GB/\n"
4491 " app_source_package:\n"
4493 " app_description: Mozilla Firefox\n"
4496 " app_name: VLC media player\n"
4497 " app_display_name: VLC media player 1.1.5\n"
4499 " app_version: 1.1.5\n"
4501 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4502 " app_trans_path:\n"
4503 " app_publisher: VideoLAN\n"
4504 " app_url: http://www.videolan.org/\n"
4505 " app_source_package:\n"
4507 " app_description:\n"
4513 #: ../examples/guestfs-recipes.pod:305
4515 "If you want to run the script on disk images (instead of libvirt virtual "
4516 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4521 #: ../examples/guestfs-recipes.pod:309
4522 msgid "List files and directories in a VM"
4526 #: ../examples/guestfs-recipes.pod:311
4527 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4531 #: ../examples/guestfs-recipes.pod:313
4534 #| " guestfish --ro -d myguest -i\n"
4537 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4540 " guestfish --ro -d myguest -i\n"
4544 #: ../examples/guestfs-recipes.pod:315
4545 msgid "List services in a Windows VM"
4549 #: ../examples/guestfs-recipes.pod:317
4551 "The link below contains a script that can be used to list out the services "
4552 "from a Windows VM, and whether those services run at boot time or are loaded "
4557 #: ../examples/guestfs-recipes.pod:321
4559 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4564 #: ../examples/guestfs-recipes.pod:323
4565 msgid "Make a disk image sparse"
4569 #: ../examples/guestfs-recipes.pod:325
4571 "The link below contains some guides for making a disk image sparse (or "
4572 "reintroducing sparseness)."
4576 #: ../examples/guestfs-recipes.pod:328
4578 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4582 #: ../examples/guestfs-recipes.pod:330
4583 msgid "Monitor disk usage over time"
4587 #: ../examples/guestfs-recipes.pod:332
4589 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4590 "The link below contains a guide."
4594 #: ../examples/guestfs-recipes.pod:335
4595 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4599 #: ../examples/guestfs-recipes.pod:337
4600 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4604 #: ../examples/guestfs-recipes.pod:339
4606 "L<guestfish(1)> plus the tools described in the link below can be used to "
4607 "read out the Windows Event Log from any virtual machine running Windows "
4608 "Vista or a later version."
4612 #: ../examples/guestfs-recipes.pod:343
4614 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4615 "guestfish/#content"
4619 #: ../examples/guestfs-recipes.pod:345
4620 msgid "Remove root password (Linux)"
4624 #: ../examples/guestfs-recipes.pod:347
4626 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4627 "files. One use is to remove the root password from a Linux guest:"
4631 #: ../examples/guestfs-recipes.pod:350
4634 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4639 #: ../examples/guestfs-recipes.pod:352
4640 msgid "Remove Administrator password (Windows)"
4644 #: ../examples/guestfs-recipes.pod:354
4646 "The link below contains one technique for removing the Administrator "
4647 "password from a Windows VM, or to be more precise, it gives you a command "
4648 "prompt the next time you log in which you can use to bypass any security:"
4652 #: ../examples/guestfs-recipes.pod:359
4654 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4655 "administrator-password-with-guestfish/"
4659 #: ../examples/guestfs-recipes.pod:361
4660 msgid "Unpack a live CD"
4664 #: ../examples/guestfs-recipes.pod:363
4666 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4667 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
4668 "layers, as outlined in the guide below."
4672 #: ../examples/guestfs-recipes.pod:367
4674 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4679 #: ../examples/guestfs-recipes.pod:369
4680 msgid "Uploading and downloading files"
4684 #: ../examples/guestfs-recipes.pod:371
4686 "The link below contains general tips on uploading (copying in) and "
4687 "downloading (copying out) files from VMs."
4691 #: ../examples/guestfs-recipes.pod:374
4693 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4697 #: ../examples/guestfs-recipes.pod:376
4698 msgid "Use libguestfs tools on VMware ESX guests"
4702 #: ../examples/guestfs-recipes.pod:378
4704 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4705 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4709 #: ../examples/guestfs-recipes.pod:382
4711 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4716 #: ../examples/guestfs-recipes.pod:386
4719 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4720 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4721 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4723 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4724 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4725 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4727 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4728 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4729 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4732 #: ../examples/guestfs-recipes.pod:403
4734 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4735 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4736 msgstr "© Red Hat Inc., 2009–2010"
4739 #: ../fish/guestfish-actions.pod:1
4744 #: ../fish/guestfish-actions.pod:3
4747 " add-cdrom filename\n"
4752 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4753 msgid "This function adds a virtual CD-ROM disk image to the guest."
4757 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4758 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4762 #: ../fish/guestfish-actions.pod:15
4764 "This call checks for the existence of C<filename>. This stops you from "
4765 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4766 "and C<http:> URLs. To specify those, use the general L</config> call "
4771 #: ../fish/guestfish-actions.pod:22
4773 "If you just want to add an ISO file (often you use this as an efficient way "
4774 "to transfer large files into the guest), then you should probably use L</add-"
4775 "drive-ro> instead."
4779 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4780 #: ../fish/guestfish-actions.pod:177
4782 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4787 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4788 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4789 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4790 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3364
4791 #: ../fish/guestfish-actions.pod:3478 ../fish/guestfish-actions.pod:3526
4792 #: ../fish/guestfish-actions.pod:4439 ../fish/guestfish-actions.pod:4462
4793 #: ../fish/guestfish-actions.pod:4484 ../fish/guestfish-actions.pod:4522
4794 #: ../fish/guestfish-actions.pod:5171 ../fish/guestfish-actions.pod:5277
4795 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4796 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1615
4797 #: ../src/guestfs-actions.pod:2114 ../src/guestfs-actions.pod:2135
4798 #: ../src/guestfs-actions.pod:4765 ../src/guestfs-actions.pod:5068
4799 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5397
4800 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
4801 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6818
4802 #: ../src/guestfs-actions.pod:7750 ../src/guestfs-actions.pod:7859
4803 #: ../src/guestfs-actions.pod:8042
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:784
4897 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4898 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3379
4899 #: ../fish/guestfish-actions.pod:3514
4901 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4905 #: ../fish/guestfish-actions.pod:81
4910 #: ../fish/guestfish-actions.pod:83
4913 " add-drive filename\n"
4916 " add-drive назва_файла\n"
4920 #: ../fish/guestfish-actions.pod:85
4922 "This function is the equivalent of calling L</add-drive-opts> with no "
4923 "optional parameters, so the disk is added writable, with the format being "
4924 "detected automatically."
4928 #: ../fish/guestfish-actions.pod:89
4930 "Automatic detection of the format opens you up to a potential security hole "
4931 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4932 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4933 "you should think about replacing calls to this function with calls to L</add-"
4934 "drive-opts>, and specifying the format."
4938 #: ../fish/guestfish-actions.pod:96
4939 msgid "add-drive-opts"
4940 msgstr "add-drive-opts"
4943 #: ../fish/guestfish-actions.pod:98
4948 #: ../fish/guestfish-actions.pod:100
4951 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4956 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4958 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4959 "The first time you call this function, the disk appears as C</dev/sda>, the "
4960 "second time as C</dev/sdb>, and so on."
4964 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4966 "You don't necessarily need to be root when using libguestfs. However you "
4967 "obviously do need sufficient permissions to access the filename for whatever "
4968 "operations you want to perform (ie. read access if you just want to read the "
4969 "image or write access if you want to modify the image)."
4973 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4974 msgid "This call checks that C<filename> exists."
4978 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4979 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4802
4980 msgid "The optional arguments are:"
4984 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4986 msgstr "C<readonly>"
4989 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4991 "If true then the image is treated as read-only. Writes are still allowed, "
4992 "but they are stored in a temporary snapshot overlay which is discarded at "
4993 "the end. The disk that you add is not modified."
4997 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5002 #: ../fish/guestfish-actions.pod:127
5004 "This forces the image format. If you omit this (or use L</add-drive> or L</"
5005 "add-drive-ro>) then the format is automatically detected. Possible formats "
5006 "include C<raw> and C<qcow2>."
5010 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5012 "Automatic detection of the format opens you up to a potential security hole "
5013 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
5014 "RHBZ#642934. Specifying the format closes this security hole."
5018 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5023 #: ../fish/guestfish-actions.pod:138
5025 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5026 "add-drive-with-if> call (q.v.)"
5030 #: ../fish/guestfish-actions.pod:145
5031 msgid "add-drive-ro"
5032 msgstr "add-drive-ro"
5035 #: ../fish/guestfish-actions.pod:147
5040 #: ../fish/guestfish-actions.pod:149
5043 " add-drive-ro filename\n"
5048 #: ../fish/guestfish-actions.pod:151
5050 "This function is the equivalent of calling L</add-drive-opts> with the "
5051 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5052 "is added read-only, with the format being detected automatically."
5056 #: ../fish/guestfish-actions.pod:156
5057 msgid "add-drive-ro-with-if"
5061 #: ../fish/guestfish-actions.pod:158
5064 " add-drive-ro-with-if filename iface\n"
5069 #: ../fish/guestfish-actions.pod:160
5071 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5072 "interface emulation to use at run time."
5076 #: ../fish/guestfish-actions.pod:170
5077 msgid "add-drive-with-if"
5081 #: ../fish/guestfish-actions.pod:172
5084 " add-drive-with-if filename iface\n"
5089 #: ../fish/guestfish-actions.pod:174
5091 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5092 "interface emulation to use at run time."
5096 #: ../fish/guestfish-actions.pod:184
5101 #: ../fish/guestfish-actions.pod:186
5104 " aug-clear augpath\n"
5109 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5111 "Set the value associated with C<path> to C<NULL>. This is the same as the "
5112 "L<augtool(1)> C<clear> command."
5116 #: ../fish/guestfish-actions.pod:191
5121 #: ../fish/guestfish-actions.pod:193
5129 #: ../fish/guestfish-actions.pod:195
5131 "Close the current Augeas handle and free up any resources used by it. After "
5132 "calling this, you have to call L</aug-init> again before you can use any "
5133 "other Augeas functions."
5137 #: ../fish/guestfish-actions.pod:200
5142 #: ../fish/guestfish-actions.pod:202
5145 " aug-defnode name expr val\n"
5150 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5152 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5156 #: ../fish/guestfish-actions.pod:207
5158 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5159 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
5160 "containing that single node."
5164 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5166 "On success this returns a pair containing the number of nodes in the "
5167 "nodeset, and a boolean flag if a node was created."
5171 #: ../fish/guestfish-actions.pod:215
5176 #: ../fish/guestfish-actions.pod:217
5179 " aug-defvar name expr\n"
5184 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5186 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5187 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
5191 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5193 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5194 "evaluates to something which is not a nodeset."
5198 #: ../fish/guestfish-actions.pod:226
5203 #: ../fish/guestfish-actions.pod:228
5206 " aug-get augpath\n"
5211 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5213 "Look up the value associated with C<path>. If C<path> matches exactly one "
5214 "node, the C<value> is returned."
5218 #: ../fish/guestfish-actions.pod:233
5223 #: ../fish/guestfish-actions.pod:235
5226 " aug-init root flags\n"
5231 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5233 "Create a new Augeas handle for editing configuration files. If there was "
5234 "any previous Augeas handle associated with this guestfs session, then it is "
5239 #: ../fish/guestfish-actions.pod:241
5240 msgid "You must call this before using any other L</aug-*> commands."
5244 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5246 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
5250 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5252 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5253 "logical I<or> of the following integers:"
5257 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5258 msgid "C<AUG_SAVE_BACKUP> = 1"
5259 msgstr "C<AUG_SAVE_BACKUP> = 1"
5262 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5263 msgid "Keep the original file with a C<.augsave> extension."
5267 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5268 msgid "C<AUG_SAVE_NEWFILE> = 2"
5269 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5272 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5274 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5275 "original. Overrides C<AUG_SAVE_BACKUP>."
5279 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5280 msgid "C<AUG_TYPE_CHECK> = 4"
5281 msgstr "C<AUG_TYPE_CHECK> = 4"
5284 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5285 msgid "Typecheck lenses."
5289 #: ../fish/guestfish-actions.pod:266
5291 "This option is only useful when debugging Augeas lenses. Use of this option "
5292 "may require additional memory for the libguestfs appliance. You may need to "
5293 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5297 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5298 msgid "C<AUG_NO_STDINC> = 8"
5299 msgstr "C<AUG_NO_STDINC> = 8"
5302 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5303 msgid "Do not use standard load path for modules."
5307 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5308 msgid "C<AUG_SAVE_NOOP> = 16"
5309 msgstr "C<AUG_SAVE_NOOP> = 16"
5312 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5313 msgid "Make save a no-op, just record what would have been changed."
5317 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5318 msgid "C<AUG_NO_LOAD> = 32"
5319 msgstr "C<AUG_NO_LOAD> = 32"
5322 #: ../fish/guestfish-actions.pod:281
5323 msgid "Do not load the tree in L</aug-init>."
5327 #: ../fish/guestfish-actions.pod:285
5328 msgid "To close the handle, you can call L</aug-close>."
5332 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5333 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5337 #: ../fish/guestfish-actions.pod:289
5342 #: ../fish/guestfish-actions.pod:291
5345 " aug-insert augpath label true|false\n"
5350 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5352 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5353 "or after C<path> (depending on the boolean flag C<before>)."
5357 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5359 "C<path> must match exactly one existing node in the tree, and C<label> must "
5360 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5364 #: ../fish/guestfish-actions.pod:301
5369 #: ../fish/guestfish-actions.pod:303
5377 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5378 msgid "Load files into the tree."
5379 msgstr "Завантажити файли до ієрархії."
5382 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5383 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5387 #: ../fish/guestfish-actions.pod:310
5392 #: ../fish/guestfish-actions.pod:312
5400 #: ../fish/guestfish-actions.pod:314
5402 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5403 "resulting nodes into alphabetical order."
5407 #: ../fish/guestfish-actions.pod:317
5412 #: ../fish/guestfish-actions.pod:319
5415 " aug-match augpath\n"
5420 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5422 "Returns a list of paths which match the path expression C<path>. The "
5423 "returned paths are sufficiently qualified so that they match exactly one "
5424 "node in the current tree."
5428 #: ../fish/guestfish-actions.pod:325
5433 #: ../fish/guestfish-actions.pod:327
5436 " aug-mv src dest\n"
5441 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5443 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5444 "C<dest> is overwritten if it exists."
5448 #: ../fish/guestfish-actions.pod:332
5453 #: ../fish/guestfish-actions.pod:334
5461 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5462 msgid "Remove C<path> and all of its children."
5466 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5467 msgid "On success this returns the number of entries which were removed."
5471 #: ../fish/guestfish-actions.pod:340
5476 #: ../fish/guestfish-actions.pod:342
5484 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5485 msgid "This writes all pending changes to disk."
5489 #: ../fish/guestfish-actions.pod:346
5491 "The flags which were passed to L</aug-init> affect exactly how files are "
5496 #: ../fish/guestfish-actions.pod:349
5501 #: ../fish/guestfish-actions.pod:351
5504 " aug-set augpath val\n"
5509 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5510 msgid "Set the value associated with C<path> to C<val>."
5514 #: ../fish/guestfish-actions.pod:355
5516 "In the Augeas API, it is possible to clear a node by setting the value to "
5517 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5518 "this call. Instead you must use the L</aug-clear> call."
5522 #: ../fish/guestfish-actions.pod:360
5527 #: ../fish/guestfish-actions.pod:362
5530 " available 'groups ...'\n"
5535 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5537 "This command is used to check the availability of some groups of "
5538 "functionality in the appliance, which not all builds of the libguestfs "
5539 "appliance will be able to provide."
5543 #: ../fish/guestfish-actions.pod:368
5545 "The libguestfs groups, and the functions that those groups correspond to, "
5546 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5547 "runtime by calling L</available-all-groups>."
5551 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5553 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5554 "\"]> would check for the availability of the Linux inotify functions and "
5555 "Augeas (configuration file editing) functions."
5559 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5560 msgid "The command returns no error if I<all> requested groups are available."
5564 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5566 "It fails with an error if one or more of the requested groups is unavailable "
5571 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5573 "If an unknown group name is included in the list of groups then an error is "
5578 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5580 msgstr "I<Нотатки:>"
5583 #: ../fish/guestfish-actions.pod:392
5584 msgid "You must call L</launch> before calling this function."
5588 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5590 "The reason is because we don't know what groups are supported by the "
5591 "appliance/daemon until it is running and can be queried."
5595 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5597 "If a group of functions is available, this does not necessarily mean that "
5598 "they will work. You still have to check for errors when calling individual "
5599 "API functions even if they are available."
5603 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5605 "It is usually the job of distro packagers to build complete functionality "
5606 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5607 "with all requirements satisfied, will support everything."
5611 #: ../fish/guestfish-actions.pod:414
5613 "This call was added in version C<1.0.80>. In previous versions of "
5614 "libguestfs all you could do would be to speculatively execute a command to "
5615 "find out if the daemon implemented it. See also L</version>."
5619 #: ../fish/guestfish-actions.pod:421
5620 msgid "available-all-groups"
5624 #: ../fish/guestfish-actions.pod:423
5627 " available-all-groups\n"
5632 #: ../fish/guestfish-actions.pod:425
5634 "This command returns a list of all optional groups that this daemon knows "
5635 "about. Note this returns both supported and unsupported groups. To find "
5636 "out which ones the daemon can actually support you have to call L</"
5637 "available> on each member of the returned list."
5641 #: ../fish/guestfish-actions.pod:431
5642 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5646 #: ../fish/guestfish-actions.pod:433
5651 #: ../fish/guestfish-actions.pod:435
5654 " base64-in (base64file|-) filename\n"
5659 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5661 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5665 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5666 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5667 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5668 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5669 #: ../fish/guestfish-actions.pod:4742 ../fish/guestfish-actions.pod:4754
5670 #: ../fish/guestfish-actions.pod:4765 ../fish/guestfish-actions.pod:4776
5671 #: ../fish/guestfish-actions.pod:4828 ../fish/guestfish-actions.pod:4837
5672 #: ../fish/guestfish-actions.pod:4891 ../fish/guestfish-actions.pod:4914
5673 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5677 #: ../fish/guestfish-actions.pod:442
5682 #: ../fish/guestfish-actions.pod:444
5685 " base64-out filename (base64file|-)\n"
5690 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5692 "This command downloads the contents of C<filename>, writing it out to local "
5693 "file C<base64file> encoded as base64."
5697 #: ../fish/guestfish-actions.pod:451
5698 msgid "blockdev-flushbufs"
5702 #: ../fish/guestfish-actions.pod:453
5705 " blockdev-flushbufs device\n"
5710 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5712 "This tells the kernel to flush internal buffers associated with C<device>."
5716 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5717 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5718 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5719 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5720 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5721 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5722 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5723 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5724 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5725 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5726 msgid "This uses the L<blockdev(8)> command."
5730 #: ../fish/guestfish-actions.pod:460
5731 msgid "blockdev-getbsz"
5735 #: ../fish/guestfish-actions.pod:462
5738 " blockdev-getbsz device\n"
5743 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5744 msgid "This returns the block size of a device."
5748 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5749 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5751 "(Note this is different from both I<size in blocks> and I<filesystem block "
5756 #: ../fish/guestfish-actions.pod:471
5757 msgid "blockdev-getro"
5761 #: ../fish/guestfish-actions.pod:473
5764 " blockdev-getro device\n"
5769 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5771 "Returns a boolean indicating if the block device is read-only (true if read-"
5772 "only, false if not)."
5776 #: ../fish/guestfish-actions.pod:480
5777 msgid "blockdev-getsize64"
5781 #: ../fish/guestfish-actions.pod:482
5784 " blockdev-getsize64 device\n"
5789 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5790 msgid "This returns the size of the device in bytes."
5794 #: ../fish/guestfish-actions.pod:486
5795 msgid "See also L</blockdev-getsz>."
5799 #: ../fish/guestfish-actions.pod:490
5800 msgid "blockdev-getss"
5804 #: ../fish/guestfish-actions.pod:492
5807 " blockdev-getss device\n"
5812 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5814 "This returns the size of sectors on a block device. Usually 512, but can be "
5815 "larger for modern devices."
5819 #: ../fish/guestfish-actions.pod:497
5821 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5825 #: ../fish/guestfish-actions.pod:502
5826 msgid "blockdev-getsz"
5830 #: ../fish/guestfish-actions.pod:504
5833 " blockdev-getsz device\n"
5838 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5840 "This returns the size of the device in units of 512-byte sectors (even if "
5841 "the sectorsize isn't 512 bytes ... weird)."
5845 #: ../fish/guestfish-actions.pod:509
5847 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5848 "blockdev-getsize64> for the more useful I<size in bytes>."
5852 #: ../fish/guestfish-actions.pod:515
5853 msgid "blockdev-rereadpt"
5857 #: ../fish/guestfish-actions.pod:517
5860 " blockdev-rereadpt device\n"
5865 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5866 msgid "Reread the partition table on C<device>."
5870 #: ../fish/guestfish-actions.pod:523
5871 msgid "blockdev-setbsz"
5875 #: ../fish/guestfish-actions.pod:525
5878 " blockdev-setbsz device blocksize\n"
5883 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5884 msgid "This sets the block size of a device."
5888 #: ../fish/guestfish-actions.pod:534
5889 msgid "blockdev-setro"
5893 #: ../fish/guestfish-actions.pod:536
5896 " blockdev-setro device\n"
5901 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5902 msgid "Sets the block device named C<device> to read-only."
5906 #: ../fish/guestfish-actions.pod:542
5907 msgid "blockdev-setrw"
5911 #: ../fish/guestfish-actions.pod:544
5914 " blockdev-setrw device\n"
5919 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5920 msgid "Sets the block device named C<device> to read-write."
5924 #: ../fish/guestfish-actions.pod:550
5925 msgid "btrfs-filesystem-resize"
5929 #: ../fish/guestfish-actions.pod:552
5932 " btrfs-filesystem-resize mountpoint [size:..]\n"
5937 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5938 msgid "This command resizes a btrfs filesystem."
5942 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5944 "Note that unlike other resize calls, the filesystem has to be mounted and "
5945 "the parameter is the mountpoint not the device (this is a requirement of "
5950 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3489
5951 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5336
5952 msgid "The optional parameters are:"
5956 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3493
5957 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5340
5962 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5964 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5965 "resized to the maximum size."
5969 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5970 msgid "See also L<btrfs(8)>."
5974 #: ../fish/guestfish-actions.pod:575
5975 msgid "case-sensitive-path"
5979 #: ../fish/guestfish-actions.pod:577
5982 " case-sensitive-path path\n"
5987 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5989 "This can be used to resolve case insensitive paths on a filesystem which is "
5990 "case sensitive. The use case is to resolve paths which you have read from "
5991 "Windows configuration files or the Windows Registry, to the true path."
5995 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5997 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5998 "(and probably others), which is that although the underlying filesystem is "
5999 "case-insensitive, the driver exports the filesystem to Linux as case-"
6004 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6006 "One consequence of this is that special directories such as C<c:\\windows> "
6007 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6008 "precise details of how they were created. In Windows itself this would not "
6013 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6015 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6020 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6022 "This function resolves the true case of each element in the path and returns "
6023 "the case-sensitive path."
6027 #: ../fish/guestfish-actions.pod:601
6029 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
6030 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6031 "the directories were originally created under Windows)."
6035 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6036 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6040 #: ../fish/guestfish-actions.pod:609
6041 msgid "See also L</realpath>."
6045 #: ../fish/guestfish-actions.pod:611
6050 #: ../fish/guestfish-actions.pod:613
6060 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3909
6061 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5979
6062 msgid "Return the contents of the file named C<path>."
6066 #: ../fish/guestfish-actions.pod:617
6068 "Note that this function cannot correctly handle binary files (specifically, "
6069 "files containing C<\\0> character which is treated as end of string). For "
6070 "those you need to use the L</read-file> or L</download> functions which have "
6071 "a more complex interface."
6075 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6076 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6077 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6078 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6079 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6080 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6081 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6082 #: ../fish/guestfish-actions.pod:3779 ../fish/guestfish-actions.pod:3794
6083 #: ../fish/guestfish-actions.pod:3870 ../fish/guestfish-actions.pod:3887
6084 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:4583
6085 #: ../fish/guestfish-actions.pod:4629 ../fish/guestfish-actions.pod:4714
6086 #: ../fish/guestfish-actions.pod:4729 ../fish/guestfish-actions.pod:5135
6087 #: ../fish/guestfish-actions.pod:5147 ../fish/guestfish-actions.pod:5165
6088 #: ../fish/guestfish-actions.pod:5182 ../fish/guestfish-actions.pod:5192
6089 #: ../fish/guestfish-actions.pod:5249 ../fish/guestfish-actions.pod:5259
6090 #: ../fish/guestfish-actions.pod:5288 ../fish/guestfish-actions.pod:5298
6091 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6092 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1550
6093 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672
6094 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937
6095 #: ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2436
6096 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2525
6097 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2571
6098 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5787
6099 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5944
6100 #: ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:6933
6101 #: ../src/guestfs-actions.pod:6988 ../src/guestfs-actions.pod:7134
6102 #: ../src/guestfs-actions.pod:7158 ../src/guestfs-actions.pod:7823
6103 #: ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7876
6104 #: ../src/guestfs-actions.pod:7895 ../src/guestfs-actions.pod:7914
6105 #: ../src/guestfs-actions.pod:8008 ../src/guestfs-actions.pod:8027
6106 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8092
6108 "Because of the message protocol, there is a transfer limit of somewhere "
6109 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
6113 #: ../fish/guestfish-actions.pod:625
6118 #: ../fish/guestfish-actions.pod:627
6121 " checksum csumtype path\n"
6126 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6128 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6132 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6134 "The type of checksum to compute is given by the C<csumtype> parameter which "
6135 "must have one of the following values:"
6139 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6144 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6146 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6151 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6156 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6157 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6161 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6166 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6167 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6171 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6176 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6177 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6181 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6186 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6187 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6191 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6196 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6197 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6201 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6206 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6207 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6211 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6212 msgid "The checksum is returned as a printable string."
6216 #: ../fish/guestfish-actions.pod:670
6217 msgid "To get the checksum for a device, use L</checksum-device>."
6221 #: ../fish/guestfish-actions.pod:672
6222 msgid "To get the checksums for many files, use L</checksums-out>."
6226 #: ../fish/guestfish-actions.pod:674
6227 msgid "checksum-device"
6228 msgstr "checksum-device"
6231 #: ../fish/guestfish-actions.pod:676
6234 " checksum-device csumtype device\n"
6239 #: ../fish/guestfish-actions.pod:678
6241 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6242 "device named C<device>. For the types of checksums supported see the L</"
6243 "checksum> command."
6247 #: ../fish/guestfish-actions.pod:682
6248 msgid "checksums-out"
6252 #: ../fish/guestfish-actions.pod:684
6255 " checksums-out csumtype directory (sumsfile|-)\n"
6260 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6262 "This command computes the checksums of all regular files in C<directory> and "
6263 "then emits a list of those checksums to the local output file C<sumsfile>."
6267 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6269 "This can be used for verifying the integrity of a virtual machine. However "
6270 "to be properly secure you should pay attention to the output of the checksum "
6271 "command (it uses the ones from GNU coreutils). In particular when the "
6272 "filename is not printable, coreutils uses a special backslash syntax. For "
6273 "more information, see the GNU coreutils info file."
6277 #: ../fish/guestfish-actions.pod:700
6282 #: ../fish/guestfish-actions.pod:702
6285 " chmod mode path\n"
6290 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6292 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6297 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6299 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6300 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6305 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6306 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6307 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6308 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4942
6309 #: ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4980
6310 msgid "The mode actually set is affected by the umask."
6314 #: ../fish/guestfish-actions.pod:713
6319 #: ../fish/guestfish-actions.pod:715
6322 " chown owner group path\n"
6327 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6328 msgid "Change the file owner to C<owner> and group to C<group>."
6332 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6333 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3804
6335 "Only numeric uid and gid are supported. If you want to use names, you will "
6336 "need to locate and parse the password file yourself (Augeas support makes "
6337 "this relatively easy)."
6341 #: ../fish/guestfish-actions.pod:723
6346 #: ../fish/guestfish-actions.pod:725
6349 " command 'arguments ...'\n"
6354 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6356 "This call runs a command from the guest filesystem. The filesystem must be "
6357 "mounted, and must contain a compatible operating system (ie. something "
6358 "Linux, with the same or compatible processor architecture)."
6362 #: ../fish/guestfish-actions.pod:732
6364 "The single parameter is an argv-style list of arguments. The first element "
6365 "is the name of the program to run. Subsequent elements are parameters. The "
6366 "list must be non-empty (ie. must contain a program name). Note that the "
6367 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6371 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6372 msgid "The return value is anything printed to I<stdout> by the command."
6376 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6378 "If the command returns a non-zero exit status, then this function returns an "
6379 "error message. The error message string is the content of I<stderr> from "
6384 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6386 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6387 "bin>. If you require a program from another location, you should provide "
6388 "the full path in the first parameter."
6392 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6394 "Shared libraries and data files required by the program must be available on "
6395 "filesystems which are mounted in the correct places. It is the caller's "
6396 "responsibility to ensure all filesystems that are needed are mounted at the "
6401 #: ../fish/guestfish-actions.pod:760
6402 msgid "command-lines"
6406 #: ../fish/guestfish-actions.pod:762
6409 " command-lines 'arguments ...'\n"
6414 #: ../fish/guestfish-actions.pod:764
6416 "This is the same as L</command>, but splits the result into a list of lines."
6420 #: ../fish/guestfish-actions.pod:767
6421 msgid "See also: L</sh-lines>"
6425 #: ../fish/guestfish-actions.pod:772
6427 #| msgid "pread-device"
6428 msgid "compress-device-out"
6429 msgstr "pread-device"
6432 #: ../fish/guestfish-actions.pod:774
6435 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6440 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6442 "This command compresses C<device> and writes it out to the local file "
6447 #: ../fish/guestfish-actions.pod:779
6449 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6454 #: ../fish/guestfish-actions.pod:786
6457 msgid "compress-out"
6461 #: ../fish/guestfish-actions.pod:788
6464 " compress-out ctype file (zfile|-) [level:..]\n"
6469 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1218
6471 "This command compresses C<file> and writes it out to the local file C<zfile>."
6475 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1221
6477 "The compression program used is controlled by the C<ctype> parameter. "
6478 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
6479 "Some compression types may not be supported by particular builds of "
6480 "libguestfs, in which case you will get an error containing the substring "
6481 "\"not supported\"."
6485 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1227
6487 "The optional C<level> parameter controls compression level. The meaning and "
6488 "default for this parameter depends on the compression program being used."
6492 #: ../fish/guestfish-actions.pod:807
6497 #: ../fish/guestfish-actions.pod:809
6500 " config qemuparam qemuvalue\n"
6505 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1266
6507 "This can be used to add arbitrary qemu command line parameters of the form "
6508 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6509 "setting some parameters which would interfere with parameters that we use."
6513 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1271
6514 msgid "The first character of C<param> string must be a C<-> (dash)."
6518 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1273
6519 msgid "C<value> can be NULL."
6523 #: ../fish/guestfish-actions.pod:820
6528 #: ../fish/guestfish-actions.pod:822
6531 " copy-size src dest size\n"
6536 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1287
6538 "This command copies exactly C<size> bytes from one source device or file "
6539 "C<src> to another destination device or file C<dest>."
6543 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1290
6545 "Note this will fail if the source is too short or if the destination is not "
6550 #: ../fish/guestfish-actions.pod:830
6555 #: ../fish/guestfish-actions.pod:832
6563 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1309
6565 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6566 "destination filename or destination directory."
6570 #: ../fish/guestfish-actions.pod:837
6575 #: ../fish/guestfish-actions.pod:839
6583 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1323
6585 "This copies a file or directory from C<src> to C<dest> recursively using the "
6590 #: ../fish/guestfish-actions.pod:844
6595 #: ../fish/guestfish-actions.pod:846
6603 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1337
6605 "This command copies from one source device or file C<src> to another "
6606 "destination device or file C<dest>. Normally you would use this to copy to "
6607 "or from a device or partition, for example to duplicate a filesystem."
6611 #: ../fish/guestfish-actions.pod:853
6613 "If the destination is a device, it must be as large or larger than the "
6614 "source file or device, otherwise the copy will fail. This command cannot do "
6615 "partial copies (see L</copy-size>)."
6619 #: ../fish/guestfish-actions.pod:857
6624 #: ../fish/guestfish-actions.pod:859
6634 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1355
6635 msgid "This command runs the C<df> command to report disk space used."
6639 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6641 "This command is mostly useful for interactive sessions. It is I<not> "
6642 "intended that you try to parse the output string. Use L</statvfs> from "
6647 #: ../fish/guestfish-actions.pod:867
6652 #: ../fish/guestfish-actions.pod:869
6662 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1371
6664 "This command runs the C<df -h> command to report disk space used in human-"
6669 #: ../fish/guestfish-actions.pod:878
6674 #: ../fish/guestfish-actions.pod:880
6684 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1388
6686 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6687 "This is sometimes useful for extended debugging of problems."
6691 #: ../fish/guestfish-actions.pod:886
6693 "Another way to get the same information is to enable verbose messages with "
6694 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6695 "before running the program."
6699 #: ../fish/guestfish-actions.pod:891
6704 #: ../fish/guestfish-actions.pod:893
6707 " download remotefilename (filename|-)\n"
6712 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6713 #: ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1434
6715 "Download file C<remotefilename> and save it as C<filename> on the local "
6720 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4887
6721 #: ../src/guestfs-actions.pod:1412 ../src/guestfs-actions.pod:7393
6722 msgid "C<filename> can also be a named pipe."
6726 #: ../fish/guestfish-actions.pod:900
6727 msgid "See also L</upload>, L</cat>."
6731 #: ../fish/guestfish-actions.pod:904
6732 msgid "download-offset"
6733 msgstr "download-offset"
6736 #: ../fish/guestfish-actions.pod:906
6739 " download-offset remotefilename (filename|-) offset size\n"
6744 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1437
6746 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6747 "region must be within the file or device)."
6751 #: ../fish/guestfish-actions.pod:914
6753 "Note that there is no limit on the amount of data that can be downloaded "
6754 "with this call, unlike with L</pread>, and this call always reads the full "
6755 "amount unless an error occurs."
6759 #: ../fish/guestfish-actions.pod:919
6760 msgid "See also L</download>, L</pread>."
6764 #: ../fish/guestfish-actions.pod:923
6769 #: ../fish/guestfish-actions.pod:925
6772 " drop-caches whattodrop\n"
6777 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1462
6779 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6780 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6781 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6785 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1467
6786 msgid "Setting C<whattodrop> to 3 should drop everything."
6790 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1469
6792 "This automatically calls L<sync(2)> before the operation, so that the "
6793 "maximum guest memory is freed."
6797 #: ../fish/guestfish-actions.pod:937
6802 #: ../fish/guestfish-actions.pod:939
6812 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1482
6814 "This command runs the C<du -s> command to estimate file space usage for "
6819 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1485
6821 "C<path> can be a file or a directory. If C<path> is a directory then the "
6822 "estimate includes the contents of the directory and all subdirectories "
6827 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1489
6829 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6833 #: ../fish/guestfish-actions.pod:951
6838 #: ../fish/guestfish-actions.pod:953
6841 " e2fsck-f device\n"
6846 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1507
6848 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6849 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6854 #: ../fish/guestfish-actions.pod:959
6856 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6857 "should use L</fsck>."
6861 #: ../fish/guestfish-actions.pod:962
6866 #: ../fish/guestfish-actions.pod:964
6869 " echo-daemon 'words ...'\n"
6874 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1524
6876 "This command concatenates the list of C<words> passed with single spaces "
6877 "between them and returns the resulting string."
6881 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1527
6882 msgid "You can use this command to test the connection through to the daemon."
6886 #: ../fish/guestfish-actions.pod:971
6887 msgid "See also L</ping-daemon>."
6891 #: ../fish/guestfish-actions.pod:973
6896 #: ../fish/guestfish-actions.pod:975
6899 " egrep regex path\n"
6904 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1543
6906 "This calls the external C<egrep> program and returns the matching lines."
6910 #: ../fish/guestfish-actions.pod:983
6915 #: ../fish/guestfish-actions.pod:985
6918 " egrepi regex path\n"
6923 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1562
6925 "This calls the external C<egrep -i> program and returns the matching lines."
6929 #: ../fish/guestfish-actions.pod:993
6934 #: ../fish/guestfish-actions.pod:995
6937 " equal file1 file2\n"
6940 " equal файл1 файл2\n"
6944 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1581
6946 "This compares the two files C<file1> and C<file2> and returns true if their "
6947 "content is exactly equal, or false otherwise."
6951 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1584
6952 msgid "The external L<cmp(1)> program is used for the comparison."
6956 #: ../fish/guestfish-actions.pod:1002
6961 #: ../fish/guestfish-actions.pod:1004
6971 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1596
6973 "This returns C<true> if and only if there is a file, directory (or anything) "
6974 "with the given C<path> name."
6978 #: ../fish/guestfish-actions.pod:1009
6979 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6980 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6983 #: ../fish/guestfish-actions.pod:1011
6988 #: ../fish/guestfish-actions.pod:1013
6991 " fallocate path len\n"
6994 " fallocate шлях довжина\n"
6998 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
6999 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1638
7001 "This command preallocates a file (containing zero bytes) named C<path> of "
7002 "size C<len> bytes. If the file exists already, it is overwritten."
7006 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1623
7008 "Do not confuse this with the guestfish-specific C<alloc> command which "
7009 "allocates a file in the host and attaches it as a device."
7013 #: ../fish/guestfish-actions.pod:1023
7015 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7020 #: ../fish/guestfish-actions.pod:1030
7022 msgstr "fallocate64"
7025 #: ../fish/guestfish-actions.pod:1032
7028 " fallocate64 path len\n"
7031 " fallocate64 шлях довжина\n"
7035 #: ../fish/guestfish-actions.pod:1038
7037 "Note that this call allocates disk blocks for the file. To create a sparse "
7038 "file use L</truncate-size> instead."
7042 #: ../fish/guestfish-actions.pod:1041
7044 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7045 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7046 "maximum size of files created through that call to 1GB."
7050 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1650
7052 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7053 "commands which create a file in the host and attach it as a device."
7057 #: ../fish/guestfish-actions.pod:1050
7062 #: ../fish/guestfish-actions.pod:1052
7065 " fgrep pattern path\n"
7068 " fgrep шаблон шлях\n"
7072 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1665
7074 "This calls the external C<fgrep> program and returns the matching lines."
7078 #: ../fish/guestfish-actions.pod:1060
7083 #: ../fish/guestfish-actions.pod:1062
7086 " fgrepi pattern path\n"
7089 " fgrepi шаблон шлях\n"
7093 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1684
7095 "This calls the external C<fgrep -i> program and returns the matching lines."
7099 #: ../fish/guestfish-actions.pod:1070
7104 #: ../fish/guestfish-actions.pod:1072
7114 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1702
7116 "This call uses the standard L<file(1)> command to determine the type or "
7117 "contents of the file."
7121 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1705
7123 "This call will also transparently look inside various types of compressed "
7128 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1708
7130 "The exact command which runs is C<file -zb path>. Note in particular that "
7131 "the filename is not prepended to the output (the I<-b> option)."
7135 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1712
7137 "The output depends on the output of the underlying L<file(1)> command and it "
7138 "can change in future in ways beyond our control. In other words, the output "
7139 "is not guaranteed by the ABI."
7143 #: ../fish/guestfish-actions.pod:1088
7145 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7146 "(etc), L</is-zero>."
7150 #: ../fish/guestfish-actions.pod:1091
7151 msgid "file-architecture"
7152 msgstr "file-architecture"
7155 #: ../fish/guestfish-actions.pod:1093
7158 " file-architecture filename\n"
7161 " file-architecture назва_файла\n"
7165 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1730
7167 "This detects the architecture of the binary C<filename>, and returns it if "
7172 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1733
7173 msgid "Currently defined architectures are:"
7177 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1737
7182 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1739
7184 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7185 "irrespective of the precise processor requirements of the binary."
7189 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1742
7194 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1744
7195 msgid "64 bit x86-64."
7199 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1746
7204 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1748
7205 msgid "32 bit SPARC."
7209 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1750
7214 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1752
7215 msgid "64 bit SPARC V9 and above."
7219 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1754
7224 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1756
7225 msgid "Intel Itanium."
7226 msgstr "Intel Itanium."
7229 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1758
7234 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1760
7235 msgid "32 bit Power PC."
7239 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1762
7244 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1764
7245 msgid "64 bit Power PC."
7249 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1768
7250 msgid "Libguestfs may return other architecture strings in future."
7254 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1770
7255 msgid "The function works on at least the following types of files:"
7259 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1776
7260 msgid "many types of Un*x and Linux binary"
7264 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1780
7265 msgid "many types of Un*x and Linux shared library"
7269 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1784
7270 msgid "Windows Win32 and Win64 binaries"
7274 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1788
7275 msgid "Windows Win32 and Win64 DLLs"
7279 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1790
7280 msgid "Win32 binaries and DLLs return C<i386>."
7284 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1792
7285 msgid "Win64 binaries and DLLs return C<x86_64>."
7289 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1796
7290 msgid "Linux kernel modules"
7294 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1800
7295 msgid "Linux new-style initrd images"
7299 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1804
7300 msgid "some non-x86 Linux vmlinuz kernels"
7304 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1808
7305 msgid "What it can't do currently:"
7309 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1814
7310 msgid "static libraries (libfoo.a)"
7314 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1818
7315 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7319 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1822
7320 msgid "x86 Linux vmlinuz kernels"
7324 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1824
7326 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7327 "compressed code, and are horribly hard to unpack. If you want to find the "
7328 "architecture of a kernel, use the architecture of the associated initrd or "
7329 "kernel module(s) instead."
7333 #: ../fish/guestfish-actions.pod:1196
7338 #: ../fish/guestfish-actions.pod:1198
7348 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1842
7349 msgid "This command returns the size of C<file> in bytes."
7353 #: ../fish/guestfish-actions.pod:1202
7355 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7356 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7360 #: ../fish/guestfish-actions.pod:1206
7365 #: ../fish/guestfish-actions.pod:1208
7368 " fill c len path\n"
7373 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1860
7375 "This command creates a new file called C<path>. The initial content of the "
7376 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7381 #: ../fish/guestfish-actions.pod:1214
7383 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7384 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7389 #: ../fish/guestfish-actions.pod:1219
7390 msgid "fill-pattern"
7391 msgstr "fill-pattern"
7394 #: ../fish/guestfish-actions.pod:1221
7397 " fill-pattern pattern len path\n"
7402 #: ../fish/guestfish-actions.pod:1223
7404 "This function is like L</fill> except that it creates a new file of length "
7405 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7406 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7411 #: ../fish/guestfish-actions.pod:1228
7416 #: ../fish/guestfish-actions.pod:1230
7426 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1906
7428 "This command lists out all files and directories, recursively, starting at "
7429 "C<directory>. It is essentially equivalent to running the shell command "
7430 "C<find directory -print> but some post-processing happens on the output, "
7435 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1911
7437 "This returns a list of strings I<without any prefix>. Thus if the directory "
7442 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1914
7452 #: ../fish/guestfish-actions.pod:1244
7453 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7457 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1921
7468 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1926
7469 msgid "If C<directory> is not a directory, then this command returns an error."
7473 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1929
7474 msgid "The returned list is sorted."
7478 #: ../fish/guestfish-actions.pod:1257
7479 msgid "See also L</find0>."
7480 msgstr "Див. також L</find0>."
7483 #: ../fish/guestfish-actions.pod:1262
7488 #: ../fish/guestfish-actions.pod:1264
7491 " find0 directory (files|-)\n"
7494 " find0 каталог (файли|-)\n"
7498 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1949
7500 "This command lists out all files and directories, recursively, starting at "
7501 "C<directory>, placing the resulting list in the external file called "
7506 #: ../fish/guestfish-actions.pod:1270
7508 "This command works the same way as L</find> with the following exceptions:"
7512 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1960
7513 msgid "The resulting list is written to an external file."
7517 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1964
7519 "Items (filenames) in the result are separated by C<\\0> characters. See "
7520 "L<find(1)> option I<-print0>."
7524 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1969
7525 msgid "This command is not limited in the number of names that it can return."
7529 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1974
7530 msgid "The result list is not sorted."
7534 #: ../fish/guestfish-actions.pod:1297
7535 msgid "findfs-label"
7536 msgstr "findfs-label"
7539 #: ../fish/guestfish-actions.pod:1299
7542 " findfs-label label\n"
7545 " findfs-label мітка\n"
7549 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1988
7551 "This command searches the filesystems and returns the one which has the "
7552 "given label. An error is returned if no such filesystem can be found."
7556 #: ../fish/guestfish-actions.pod:1305
7557 msgid "To find the label of a filesystem, use L</vfs-label>."
7558 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7561 #: ../fish/guestfish-actions.pod:1307
7563 msgstr "findfs-uuid"
7566 #: ../fish/guestfish-actions.pod:1309
7569 " findfs-uuid uuid\n"
7572 " findfs-uuid uuid\n"
7576 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2005
7578 "This command searches the filesystems and returns the one which has the "
7579 "given UUID. An error is returned if no such filesystem can be found."
7583 #: ../fish/guestfish-actions.pod:1315
7584 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7585 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7588 #: ../fish/guestfish-actions.pod:1317
7593 #: ../fish/guestfish-actions.pod:1319
7596 " fsck fstype device\n"
7599 " fsck тип_файлової_системи пристрій\n"
7603 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2023
7605 "This runs the filesystem checker (fsck) on C<device> which should have "
7606 "filesystem type C<fstype>."
7610 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2026
7612 "The returned integer is the status. See L<fsck(8)> for the list of status "
7613 "codes from C<fsck>."
7617 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2035
7618 msgid "Multiple status codes can be summed together."
7622 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2039
7624 "A non-zero return code can mean \"success\", for example if errors have been "
7625 "corrected on the filesystem."
7629 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2044
7630 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7634 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2049
7636 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7640 #: ../fish/guestfish-actions.pod:1349
7645 #: ../fish/guestfish-actions.pod:1351
7655 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2060
7657 "Return the additional kernel options which are added to the guest kernel "
7662 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2063
7663 msgid "If C<NULL> then no options are added."
7667 #: ../fish/guestfish-actions.pod:1358
7668 msgid "get-attach-method"
7669 msgstr "get-attach-method"
7672 #: ../fish/guestfish-actions.pod:1360
7675 " get-attach-method\n"
7678 " get-attach-method\n"
7682 #: ../fish/guestfish-actions.pod:1362
7683 msgid "Return the current attach method. See L</set-attach-method>."
7687 #: ../fish/guestfish-actions.pod:1364
7688 msgid "get-autosync"
7689 msgstr "get-autosync"
7692 #: ../fish/guestfish-actions.pod:1366
7702 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2088
7703 msgid "Get the autosync flag."
7707 #: ../fish/guestfish-actions.pod:1370
7712 #: ../fish/guestfish-actions.pod:1372
7722 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2099
7723 msgid "Return the direct appliance mode flag."
7727 #: ../fish/guestfish-actions.pod:1376
7729 msgstr "get-e2label"
7732 #: ../fish/guestfish-actions.pod:1378
7735 " get-e2label device\n"
7738 " get-e2label пристрій\n"
7742 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2118
7744 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7748 #: ../fish/guestfish-actions.pod:1383
7750 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7755 #: ../fish/guestfish-actions.pod:1390
7760 #: ../fish/guestfish-actions.pod:1392
7763 " get-e2uuid device\n"
7766 " get-e2uuid пристрій\n"
7770 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2139
7772 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7776 #: ../fish/guestfish-actions.pod:1397
7778 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7783 #: ../fish/guestfish-actions.pod:1404
7785 msgstr "get-memsize"
7788 #: ../fish/guestfish-actions.pod:1406
7798 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2152
7800 "This gets the memory size in megabytes allocated to the qemu subprocess."
7804 #: ../fish/guestfish-actions.pod:1411
7806 "If L</set-memsize> was not called on this handle, and if "
7807 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7808 "value for memsize."
7812 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7813 #: ../fish/guestfish-actions.pod:4235 ../fish/guestfish-actions.pod:4337
7814 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2251
7815 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-actions.pod:6566
7817 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7821 #: ../fish/guestfish-actions.pod:1418
7823 msgstr "get-network"
7826 #: ../fish/guestfish-actions.pod:1420
7836 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2171
7837 msgid "This returns the enable network flag."
7841 #: ../fish/guestfish-actions.pod:1424
7846 #: ../fish/guestfish-actions.pod:1426
7856 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2182
7857 msgid "Return the current search path."
7861 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2184
7863 "This is always non-NULL. If it wasn't set already, then this will return "
7868 #: ../fish/guestfish-actions.pod:1433
7873 #: ../fish/guestfish-actions.pod:1435
7881 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2197
7882 msgid "This returns the process group flag."
7886 #: ../fish/guestfish-actions.pod:1439
7891 #: ../fish/guestfish-actions.pod:1441
7896 #: ../fish/guestfish-actions.pod:1443
7906 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2208
7908 "Return the process ID of the qemu subprocess. If there is no qemu "
7909 "subprocess, then this will return an error."
7913 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2211
7914 msgid "This is an internal call used for debugging and testing."
7918 #: ../fish/guestfish-actions.pod:1450
7923 #: ../fish/guestfish-actions.pod:1452
7933 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2222
7934 msgid "Return the current qemu binary."
7938 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2224
7940 "This is always non-NULL. If it wasn't set already, then this will return "
7941 "the default qemu binary name."
7945 #: ../fish/guestfish-actions.pod:1459
7946 msgid "get-recovery-proc"
7947 msgstr "get-recovery-proc"
7950 #: ../fish/guestfish-actions.pod:1461
7953 " get-recovery-proc\n"
7956 " get-recovery-proc\n"
7960 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2237
7961 msgid "Return the recovery process enabled flag."
7965 #: ../fish/guestfish-actions.pod:1465
7967 msgstr "get-selinux"
7970 #: ../fish/guestfish-actions.pod:1467
7980 #: ../fish/guestfish-actions.pod:1469
7982 "This returns the current setting of the selinux flag which is passed to the "
7983 "appliance at boot time. See L</set-selinux>."
7987 #: ../fish/guestfish-actions.pod:1475
7994 #: ../fish/guestfish-actions.pod:1477
8007 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2263
8008 msgid "This returns the number of virtual CPUs assigned to the appliance."
8012 #: ../fish/guestfish-actions.pod:1481
8017 #: ../fish/guestfish-actions.pod:1483
8027 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2272
8029 "This returns the current state as an opaque integer. This is only useful "
8030 "for printing debug and internal error messages."
8034 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8035 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8036 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2275
8037 #: ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3610
8038 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3698
8039 msgid "For more information on states, see L<guestfs(3)>."
8043 #: ../fish/guestfish-actions.pod:1490
8048 #: ../fish/guestfish-actions.pod:1492
8058 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2286
8059 msgid "Return the command trace flag."
8063 #: ../fish/guestfish-actions.pod:1496
8068 #: ../fish/guestfish-actions.pod:1498
8078 #: ../fish/guestfish-actions.pod:1500
8080 "Return the current umask. By default the umask is C<022> unless it has been "
8081 "set by calling L</umask>."
8085 #: ../fish/guestfish-actions.pod:1503
8087 msgstr "get-verbose"
8090 #: ../fish/guestfish-actions.pod:1505
8100 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2309
8101 msgid "This returns the verbose messages flag."
8105 #: ../fish/guestfish-actions.pod:1509
8110 #: ../fish/guestfish-actions.pod:1511
8120 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2320
8121 msgid "This gets the SELinux security context of the daemon."
8125 #: ../fish/guestfish-actions.pod:1515
8126 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8130 #: ../fish/guestfish-actions.pod:1518
8135 #: ../fish/guestfish-actions.pod:1520
8138 " getxattr path name\n"
8141 " getxattr шлях назва\n"
8145 #: ../fish/guestfish-actions.pod:1522
8147 "Get a single extended attribute from file C<path> named C<name>. This call "
8148 "follows symlinks. If you want to lookup an extended attribute for the "
8149 "symlink itself, use L</lgetxattr>."
8153 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8155 "Normally it is better to get all extended attributes from a file in one go "
8156 "by calling L</getxattrs>. However some Linux filesystem implementations are "
8157 "buggy and do not provide a way to list out attributes. For these "
8158 "filesystems (notably ntfs-3g) you have to know the names of the extended "
8159 "attributes you want in advance and call this function."
8163 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8164 #: ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:3831
8166 "Extended attribute values are blobs of binary data. If there is no extended "
8167 "attribute named C<name>, this returns an error."
8171 #: ../fish/guestfish-actions.pod:1536
8172 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8173 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8176 #: ../fish/guestfish-actions.pod:1538
8181 #: ../fish/guestfish-actions.pod:1540
8191 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2366
8193 "This call lists the extended attributes of the file or directory C<path>."
8197 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2369
8199 "At the system call level, this is a combination of the L<listxattr(2)> and "
8200 "L<getxattr(2)> calls."
8204 #: ../fish/guestfish-actions.pod:1548
8205 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8206 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8209 #: ../fish/guestfish-actions.pod:1550
8211 msgstr "glob-expand"
8214 #: ../fish/guestfish-actions.pod:1552
8217 " glob-expand pattern\n"
8220 " glob-expand шаблон\n"
8224 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2386
8226 "This command searches for all the pathnames matching C<pattern> according to "
8227 "the wildcard expansion rules used by the shell."
8231 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2390
8233 "If no paths match, then this returns an empty list (note: not an error)."
8237 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2393
8239 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8240 "GLOB_BRACE>. See that manual page for more details."
8244 #: ../fish/guestfish-actions.pod:1565
8249 #: ../fish/guestfish-actions.pod:1567
8252 " grep regex path\n"
8255 " grepi формальний_вираз шлях\n"
8259 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2410
8260 msgid "This calls the external C<grep> program and returns the matching lines."
8264 #: ../fish/guestfish-actions.pod:1575
8269 #: ../fish/guestfish-actions.pod:1577
8272 " grepi regex path\n"
8275 " grepi формальний_вираз шлях\n"
8279 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2429
8281 "This calls the external C<grep -i> program and returns the matching lines."
8285 #: ../fish/guestfish-actions.pod:1585
8286 msgid "grub-install"
8287 msgstr "grub-install"
8290 #: ../fish/guestfish-actions.pod:1587
8293 " grub-install root device\n"
8296 " grub-install кореневий пристрій\n"
8300 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2448
8302 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8303 "with the root directory being C<root>."
8307 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2457
8309 "There is currently no way in the API to install grub2, which is used by most "
8310 "modern Linux guests. It is possible to run the grub2 command from the "
8311 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8315 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2464
8317 "This uses C<grub-install> from the host. Unfortunately grub is not always "
8318 "compatible with itself, so this only works in rather narrow circumstances. "
8319 "Careful testing with each guest version is advisable."
8323 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2471
8325 "If grub-install reports the error \"No suitable drive was found in the "
8326 "generated device map.\" it may be that you need to create a C</boot/grub/"
8327 "device.map> file first that contains the mapping between grub device names "
8328 "and Linux device names. It is usually sufficient to create a file "
8333 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2478
8341 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2480
8342 msgid "replacing C</dev/vda> with the name of the installation device."
8346 #: ../fish/guestfish-actions.pod:1625
8351 #: ../fish/guestfish-actions.pod:1627
8361 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2494
8363 "This command returns up to the first 10 lines of a file as a list of strings."
8367 #: ../fish/guestfish-actions.pod:1635
8372 #: ../fish/guestfish-actions.pod:1637
8375 " head-n nrlines path\n"
8380 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2513
8382 "If the parameter C<nrlines> is a positive number, this returns the first "
8383 "C<nrlines> lines of the file C<path>."
8387 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2516
8389 "If the parameter C<nrlines> is a negative number, this returns lines from "
8390 "the file C<path>, excluding the last C<nrlines> lines."
8394 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4727
8395 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:7152
8396 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8400 #: ../fish/guestfish-actions.pod:1650
8405 #: ../fish/guestfish-actions.pod:1652
8415 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2536
8417 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8418 "readable, canonical hex dump of the file."
8422 #: ../fish/guestfish-actions.pod:1660
8427 #: ../fish/guestfish-actions.pod:1662
8430 " initrd-cat initrdpath filename\n"
8433 " initrd-cat шлях_initrd назва_файла\n"
8437 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2555
8439 "This command unpacks the file C<filename> from the initrd file called "
8440 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8445 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2559
8447 "For example, in guestfish you could use the following command to examine the "
8448 "boot script (usually called C</init>) contained in a Linux initrd or "
8453 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2563
8456 " initrd-cat /boot/initrd-<version>.img init\n"
8461 #: ../fish/guestfish-actions.pod:1674
8462 msgid "See also L</initrd-list>."
8463 msgstr "Див. також L</initrd-list>."
8466 #: ../fish/guestfish-actions.pod:1679
8468 msgstr "initrd-list"
8471 #: ../fish/guestfish-actions.pod:1681
8474 " initrd-list path\n"
8477 " initrd-list шлях\n"
8481 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2582
8482 msgid "This command lists out files contained in an initrd."
8486 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2584
8488 "The files are listed without any initial C</> character. The files are "
8489 "listed in the order they appear (not necessarily alphabetical). Directory "
8490 "names are listed as separate items."
8494 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2588
8496 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8497 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8502 #: ../fish/guestfish-actions.pod:1693
8503 msgid "inotify-add-watch"
8504 msgstr "inotify-add-watch"
8507 #: ../fish/guestfish-actions.pod:1695
8510 " inotify-add-watch path mask\n"
8513 " inotify-add-watch шлях маска\n"
8517 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2605
8518 msgid "Watch C<path> for the events listed in C<mask>."
8522 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2607
8524 "Note that if C<path> is a directory then events within that directory are "
8525 "watched, but this does I<not> happen recursively (in subdirectories)."
8529 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2611
8531 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8532 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8536 #: ../fish/guestfish-actions.pod:1707
8537 msgid "inotify-close"
8538 msgstr "inotify-close"
8541 #: ../fish/guestfish-actions.pod:1709
8551 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2624
8553 "This closes the inotify handle which was previously opened by inotify_init. "
8554 "It removes all watches, throws away any pending events, and deallocates all "
8559 #: ../fish/guestfish-actions.pod:1715
8560 msgid "inotify-files"
8561 msgstr "inotify-files"
8564 #: ../fish/guestfish-actions.pod:1717
8574 #: ../fish/guestfish-actions.pod:1719
8576 "This function is a helpful wrapper around L</inotify-read> which just "
8577 "returns a list of pathnames of objects that were touched. The returned "
8578 "pathnames are sorted and deduplicated."
8582 #: ../fish/guestfish-actions.pod:1723
8583 msgid "inotify-init"
8584 msgstr "inotify-init"
8587 #: ../fish/guestfish-actions.pod:1725
8590 " inotify-init maxevents\n"
8595 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2653
8597 "This command creates a new inotify handle. The inotify subsystem can be "
8598 "used to notify events which happen to objects in the guest filesystem."
8602 #: ../fish/guestfish-actions.pod:1731
8604 "C<maxevents> is the maximum number of events which will be queued up between "
8605 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8606 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8607 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8608 "but records the fact that it threw them away by setting a flag "
8609 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8613 #: ../fish/guestfish-actions.pod:1741
8615 "Before any events are generated, you have to add some watches to the "
8616 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8617 "L</inotify-watch-all>."
8621 #: ../fish/guestfish-actions.pod:1747
8623 "Queued up events should be read periodically by calling L</inotify-read> (or "
8624 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8625 "If you don't read the events out often enough then you risk the internal "
8626 "queue overflowing."
8630 #: ../fish/guestfish-actions.pod:1754
8632 "The handle should be closed after use by calling L</inotify-close>. This "
8633 "also removes any watches automatically."
8637 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2684
8639 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8640 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8641 "that there is one global inotify handle per libguestfs instance."
8645 #: ../fish/guestfish-actions.pod:1763
8646 msgid "inotify-read"
8647 msgstr "inotify-read"
8650 #: ../fish/guestfish-actions.pod:1765
8660 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2698
8662 "Return the complete queue of events that have happened since the previous "
8667 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2701
8668 msgid "If no events have happened, this returns an empty list."
8672 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2703
8674 "I<Note>: In order to make sure that all events have been read, you must call "
8675 "this function repeatedly until it returns an empty list. The reason is that "
8676 "the call will read events up to the maximum appliance-to-host message size "
8677 "and leave remaining events in the queue."
8681 #: ../fish/guestfish-actions.pod:1778
8682 msgid "inotify-rm-watch"
8683 msgstr "inotify-rm-watch"
8686 #: ../fish/guestfish-actions.pod:1780
8689 " inotify-rm-watch wd\n"
8694 #: ../fish/guestfish-actions.pod:1782
8695 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8699 #: ../fish/guestfish-actions.pod:1785
8700 msgid "inspect-get-arch"
8701 msgstr "inspect-get-arch"
8704 #: ../fish/guestfish-actions.pod:1787
8707 " inspect-get-arch root\n"
8710 " inspect-get-arch корінь\n"
8714 #: ../fish/guestfish-actions.pod:1789
8716 "This returns the architecture of the inspected operating system. The "
8717 "possible return values are listed under L</file-architecture>."
8721 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2738
8723 "If the architecture could not be determined, then the string C<unknown> is "
8728 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8729 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8730 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8731 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8732 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8733 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8734 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8735 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8736 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2741
8737 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2939
8738 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3089
8739 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3200
8740 #: ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3274
8741 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3334
8742 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3371
8743 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3405
8744 #: ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3548
8745 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8749 #: ../fish/guestfish-actions.pod:1798
8750 msgid "inspect-get-distro"
8751 msgstr "inspect-get-distro"
8754 #: ../fish/guestfish-actions.pod:1800
8757 " inspect-get-distro root\n"
8760 " inspect-get-distro корінь\n"
8764 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2754
8766 "This returns the distro (distribution) of the inspected operating system."
8770 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2757
8771 msgid "Currently defined distros are:"
8775 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2761
8776 msgid "\"archlinux\""
8777 msgstr "\"archlinux\""
8780 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2763
8782 msgstr "Arch Linux."
8785 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2765
8790 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2767
8795 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2769
8800 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2771
8805 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2773
8810 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2775
8815 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2777
8820 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2779
8825 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2781
8826 msgid "\"linuxmint\""
8827 msgstr "\"linuxmint\""
8830 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2783
8832 msgstr "Linux Mint."
8835 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2785
8836 msgid "\"mandriva\""
8837 msgstr "\"mandriva\""
8840 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2787
8845 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2789
8850 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2791
8855 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2793
8860 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2795
8865 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2797
8866 msgid "\"redhat-based\""
8867 msgstr "\"redhat-based\""
8870 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2799
8871 msgid "Some Red Hat-derived distro."
8872 msgstr "Дистрибутив, що походить від Red Hat."
8875 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2801
8880 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2803
8881 msgid "Red Hat Enterprise Linux."
8885 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2805
8886 msgid "\"scientificlinux\""
8890 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2807
8891 msgid "Scientific Linux."
8895 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2809
8896 msgid "\"slackware\""
8900 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2811
8905 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2813
8907 #| msgid "\"linux\""
8908 msgid "\"ttylinux\""
8912 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2815
8914 #| msgid "\"linux\""
8919 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2817
8924 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2819
8929 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8930 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2821
8931 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:3305
8933 msgstr "\"unknown\""
8936 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2823
8937 msgid "The distro could not be determined."
8938 msgstr "Дистрибутив, тип якого не вдалося визначити."
8941 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8942 #: ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:3297
8944 msgstr "\"windows\""
8947 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2827
8949 "Windows does not have distributions. This string is returned if the OS type "
8954 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8955 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2832
8956 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8958 "Future versions of libguestfs may return other strings here. The caller "
8959 "should be prepared to handle any string."
8963 #: ../fish/guestfish-actions.pod:1885
8964 msgid "inspect-get-drive-mappings"
8968 #: ../fish/guestfish-actions.pod:1887
8971 " inspect-get-drive-mappings root\n"
8976 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2848
8978 "This call is useful for Windows which uses a primitive system of assigning "
8979 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8980 "Windows Registry to find out how disks/partitions are mapped to drive "
8981 "letters, and returns a hash table as in the example below:"
8985 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2854
8995 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2858
8997 "Note that keys are drive letters. For Windows, the key is case insensitive "
8998 "and just contains the drive letter, without the customary colon separator "
9003 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2862
9005 "In future we may support other operating systems that also used drive "
9006 "letters, but the keys for those might not be case insensitive and might be "
9007 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
9012 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2867
9014 "For Windows guests, currently only hard drive mappings are returned. "
9015 "Removable disks (eg. DVD-ROMs) are ignored."
9019 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2870
9021 "For guests that do not use drive mappings, or if the drive mappings could "
9022 "not be determined, this returns an empty hash table."
9026 #: ../fish/guestfish-actions.pod:1914
9028 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9029 "get-mountpoints>, L</inspect-get-filesystems>."
9033 #: ../fish/guestfish-actions.pod:1918
9034 msgid "inspect-get-filesystems"
9035 msgstr "inspect-get-filesystems"
9038 #: ../fish/guestfish-actions.pod:1920
9041 " inspect-get-filesystems root\n"
9044 " inspect-get-filesystems корінь\n"
9048 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2891
9050 "This returns a list of all the filesystems that we think are associated with "
9051 "this operating system. This includes the root filesystem, other ordinary "
9052 "filesystems, and non-mounted devices like swap partitions."
9056 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2896
9058 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9059 "to be shared between operating systems."
9063 #: ../fish/guestfish-actions.pod:1930
9065 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9070 #: ../fish/guestfish-actions.pod:1933
9071 msgid "inspect-get-format"
9072 msgstr "inspect-get-format"
9075 #: ../fish/guestfish-actions.pod:1935
9078 " inspect-get-format root\n"
9081 " inspect-get-format корінь\n"
9085 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2914
9087 "This returns the format of the inspected operating system. You can use it "
9088 "to detect install images, live CDs and similar."
9092 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2917
9093 msgid "Currently defined formats are:"
9097 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2921
9098 msgid "\"installed\""
9099 msgstr "\"installed\""
9102 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2923
9103 msgid "This is an installed operating system."
9104 msgstr "Це встановлена операційна система."
9107 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2925
9108 msgid "\"installer\""
9112 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2927
9114 "The disk image being inspected is not an installed operating system, but a "
9115 "I<bootable> install disk, live CD, or similar."
9119 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2932
9120 msgid "The format of this disk image is not known."
9124 #: ../fish/guestfish-actions.pod:1964
9125 msgid "inspect-get-hostname"
9126 msgstr "inspect-get-hostname"
9129 #: ../fish/guestfish-actions.pod:1966
9132 " inspect-get-hostname root\n"
9135 " inspect-get-hostname корінь\n"
9139 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
9141 "This function returns the hostname of the operating system as found by "
9142 "inspection of the guest's configuration files."
9146 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2955
9148 "If the hostname could not be determined, then the string C<unknown> is "
9153 #: ../fish/guestfish-actions.pod:1976
9154 msgid "inspect-get-icon"
9158 #: ../fish/guestfish-actions.pod:1978
9161 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9166 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2981
9168 "This function returns an icon corresponding to the inspected operating "
9169 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
9170 "to PNG if necessary)."
9174 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2985
9176 "If it was not possible to get an icon this function returns a zero-length "
9177 "(non-NULL) buffer. I<Callers must check for this case>."
9181 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2988
9183 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9184 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9185 "this file will be returned. You can disable favicons by passing the "
9186 "optional C<favicon> boolean as false (default is true)."
9190 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:2994
9192 "If finding the favicon fails, then we look in other places in the guest for "
9197 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:2997
9199 "If the optional C<highquality> boolean is true then only high quality icons "
9200 "are returned, which means only icons of high resolution with an alpha "
9201 "channel. The default (false) is to return any icon we can, even if it is of "
9202 "substandard quality."
9206 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3008
9208 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9209 "before you call this, since it needs to read information from the guest "
9210 "filesystem during the call."
9214 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3014
9216 "B<Security:> The icon data comes from the untrusted guest, and should be "
9217 "treated with caution. PNG files have been known to contain exploits. "
9218 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9219 "trying to process or display the icon."
9223 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3022
9225 "The PNG image returned can be any size. It might not be square. Libguestfs "
9226 "tries to return the largest, highest quality icon available. The "
9227 "application must scale the icon to the required size."
9231 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3029
9233 "Extracting icons from Windows guests requires the external C<wrestool> "
9234 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9235 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
9236 "installed separately."
9240 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3036
9242 "Operating system icons are usually trademarks. Seek legal advice before "
9243 "using trademarks in applications."
9247 #: ../fish/guestfish-actions.pod:2042
9248 msgid "inspect-get-major-version"
9249 msgstr "inspect-get-major-version"
9252 #: ../fish/guestfish-actions.pod:2044
9255 " inspect-get-major-version root\n"
9258 " inspect-get-major-version корінь\n"
9262 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3077
9264 "This returns the major version number of the inspected operating system."
9268 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3080
9270 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9271 "popular public names used by the operating system. Notably the operating "
9272 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9273 "1). You can find out the real versions corresponding to releases of Windows "
9274 "by consulting Wikipedia or MSDN."
9278 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9279 #: ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3104
9280 msgid "If the version could not be determined, then C<0> is returned."
9284 #: ../fish/guestfish-actions.pod:2060
9285 msgid "inspect-get-minor-version"
9286 msgstr "inspect-get-minor-version"
9289 #: ../fish/guestfish-actions.pod:2062
9292 " inspect-get-minor-version root\n"
9295 " inspect-get-minor-version корінь\n"
9299 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3101
9301 "This returns the minor version number of the inspected operating system."
9305 #: ../fish/guestfish-actions.pod:2069
9307 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9308 "get-major-version>."
9312 #: ../fish/guestfish-actions.pod:2072
9313 msgid "inspect-get-mountpoints"
9314 msgstr "inspect-get-mountpoints"
9317 #: ../fish/guestfish-actions.pod:2074
9320 " inspect-get-mountpoints root\n"
9323 " inspect-get-mountpoints корінь\n"
9327 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3119
9329 "This returns a hash of where we think the filesystems associated with this "
9330 "operating system should be mounted. Callers should note that this is at "
9331 "best an educated guess made by reading configuration files such as C</etc/"
9332 "fstab>. I<In particular note> that this may return filesystems which are "
9333 "non-existent or not mountable and callers should be prepared to handle or "
9334 "ignore failures if they try to mount them."
9338 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3128
9340 "Each element in the returned hashtable has a key which is the path of the "
9341 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9342 "mounted there (eg. C</dev/sda1>)."
9346 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3133
9348 "Non-mounted devices such as swap devices are I<not> returned in this list."
9352 #: ../fish/guestfish-actions.pod:2093
9354 "For operating systems like Windows which still use drive letters, this call "
9355 "will only return an entry for the first drive \"mounted on\" C</>. For "
9356 "information about the mapping of drive letters to partitions, see L</inspect-"
9357 "get-drive-mappings>."
9361 #: ../fish/guestfish-actions.pod:2099
9363 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9368 #: ../fish/guestfish-actions.pod:2102
9369 msgid "inspect-get-package-format"
9370 msgstr "inspect-get-package-format"
9373 #: ../fish/guestfish-actions.pod:2104
9376 " inspect-get-package-format root\n"
9379 " inspect-get-package-format корінь\n"
9383 #: ../fish/guestfish-actions.pod:2106
9385 "This function and L</inspect-get-package-management> return the package "
9386 "format and package management tool used by the inspected operating system. "
9387 "For example for Fedora these functions would return C<rpm> (package format) "
9388 "and C<yum> (package management)."
9392 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3165
9394 "This returns the string C<unknown> if we could not determine the package "
9395 "format I<or> if the operating system does not have a real packaging system "
9400 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3169
9402 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9403 "Future versions of libguestfs may return other strings."
9407 #: ../fish/guestfish-actions.pod:2121
9408 msgid "inspect-get-package-management"
9409 msgstr "inspect-get-package-management"
9412 #: ../fish/guestfish-actions.pod:2123
9415 " inspect-get-package-management root\n"
9418 " inspect-get-package-management корінь\n"
9422 #: ../fish/guestfish-actions.pod:2125
9424 "L</inspect-get-package-format> and this function return the package format "
9425 "and package management tool used by the inspected operating system. For "
9426 "example for Fedora these functions would return C<rpm> (package format) and "
9427 "C<yum> (package management)."
9431 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3191
9433 "This returns the string C<unknown> if we could not determine the package "
9434 "management tool I<or> if the operating system does not have a real packaging "
9435 "system (eg. Windows)."
9439 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3195
9441 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9442 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9443 "libguestfs may return other strings."
9447 #: ../fish/guestfish-actions.pod:2142
9448 msgid "inspect-get-product-name"
9449 msgstr "inspect-get-product-name"
9452 #: ../fish/guestfish-actions.pod:2144
9455 " inspect-get-product-name root\n"
9458 " inspect-get-product-name корінь\n"
9462 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3213
9464 "This returns the product name of the inspected operating system. The "
9465 "product name is generally some freeform string which can be displayed to the "
9466 "user, but should not be parsed by programs."
9470 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3218
9472 "If the product name could not be determined, then the string C<unknown> is "
9477 #: ../fish/guestfish-actions.pod:2156
9478 msgid "inspect-get-product-variant"
9482 #: ../fish/guestfish-actions.pod:2158
9485 " inspect-get-product-variant root\n"
9490 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
9491 msgid "This returns the product variant of the inspected operating system."
9495 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3237
9497 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9498 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9499 "is usually a string such as C<Client> or C<Server> (other values are "
9500 "possible). This can be used to distinguish consumer and enterprise versions "
9501 "of Windows that have the same version number (for example, Windows 7 and "
9502 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9503 "the latter is C<Server>)."
9507 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3246
9509 "For enterprise Linux guests, in future we intend this to return the product "
9510 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9511 "implemented at present."
9515 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3250
9517 "If the product variant could not be determined, then the string C<unknown> "
9522 #: ../fish/guestfish-actions.pod:2179
9524 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9525 "get-product-name>, L</inspect-get-major-version>."
9529 #: ../fish/guestfish-actions.pod:2183
9530 msgid "inspect-get-roots"
9531 msgstr "inspect-get-roots"
9534 #: ../fish/guestfish-actions.pod:2185
9537 " inspect-get-roots\n"
9540 " inspect-get-roots\n"
9544 #: ../fish/guestfish-actions.pod:2187
9546 "This function is a convenient way to get the list of root devices, as "
9547 "returned from a previous call to L</inspect-os>, but without redoing the "
9548 "whole inspection process."
9552 #: ../fish/guestfish-actions.pod:2191
9554 "This returns an empty list if either no root devices were found or the "
9555 "caller has not called L</inspect-os>."
9559 #: ../fish/guestfish-actions.pod:2196
9560 msgid "inspect-get-type"
9561 msgstr "inspect-get-type"
9564 #: ../fish/guestfish-actions.pod:2198
9567 " inspect-get-type root\n"
9570 " inspect-get-type корінь\n"
9574 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3288
9576 "This returns the type of the inspected operating system. Currently defined "
9581 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3293
9586 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3295
9587 msgid "Any Linux-based operating system."
9591 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3299
9592 msgid "Any Microsoft Windows operating system."
9596 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3301
9598 msgstr "\"freebsd\""
9601 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3303
9606 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3307
9607 msgid "The operating system type could not be determined."
9611 #: ../fish/guestfish-actions.pod:2228
9612 msgid "inspect-get-windows-current-control-set"
9616 #: ../fish/guestfish-actions.pod:2230
9619 " inspect-get-windows-current-control-set root\n"
9624 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3327
9626 "This returns the Windows CurrentControlSet of the inspected guest. The "
9627 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9631 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3330
9633 "This call assumes that the guest is Windows and that the Registry could be "
9634 "examined by inspection. If this is not the case then an error is returned."
9638 #: ../fish/guestfish-actions.pod:2241
9639 msgid "inspect-get-windows-systemroot"
9640 msgstr "inspect-get-windows-systemroot"
9643 #: ../fish/guestfish-actions.pod:2243
9646 " inspect-get-windows-systemroot root\n"
9649 " inspect-get-windows-systemroot корінь\n"
9653 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3347
9655 "This returns the Windows systemroot of the inspected guest. The systemroot "
9656 "is a directory path such as C</WINDOWS>."
9660 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3350
9662 "This call assumes that the guest is Windows and that the systemroot could be "
9663 "determined by inspection. If this is not the case then an error is returned."
9667 #: ../fish/guestfish-actions.pod:2254
9668 msgid "inspect-is-live"
9669 msgstr "inspect-is-live"
9672 #: ../fish/guestfish-actions.pod:2256
9675 " inspect-is-live root\n"
9678 " inspect-is-live корінь\n"
9682 #: ../fish/guestfish-actions.pod:2258
9684 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9685 "then this returns true if a live image was detected on the disk."
9689 #: ../fish/guestfish-actions.pod:2264
9690 msgid "inspect-is-multipart"
9691 msgstr "inspect-is-multipart"
9694 #: ../fish/guestfish-actions.pod:2266
9697 " inspect-is-multipart root\n"
9700 " inspect-is-multipart корінь\n"
9704 #: ../fish/guestfish-actions.pod:2268
9706 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9707 "then this returns true if the disk is part of a set."
9711 #: ../fish/guestfish-actions.pod:2274
9712 msgid "inspect-is-netinst"
9713 msgstr "inspect-is-netinst"
9716 #: ../fish/guestfish-actions.pod:2276
9719 " inspect-is-netinst root\n"
9722 " inspect-is-netinst корінь\n"
9726 #: ../fish/guestfish-actions.pod:2278
9728 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9729 "then this returns true if the disk is a network installer, ie. not a self-"
9730 "contained install CD but one which is likely to require network access to "
9731 "complete the install."
9735 #: ../fish/guestfish-actions.pod:2286
9736 msgid "inspect-list-applications"
9737 msgstr "inspect-list-applications"
9740 #: ../fish/guestfish-actions.pod:2288
9743 " inspect-list-applications root\n"
9746 " inspect-list-applications кореневий_каталог\n"
9750 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3417
9751 msgid "Return the list of applications installed in the operating system."
9755 #: ../fish/guestfish-actions.pod:2292
9757 "I<Note:> This call works differently from other parts of the inspection "
9758 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9759 "then mount up the disks, before calling this. Listing applications is a "
9760 "significantly more difficult operation which requires access to the full "
9761 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9762 "are just returning data cached in the libguestfs handle, this call actually "
9763 "reads parts of the mounted filesystems during the call."
9767 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3429
9769 "This returns an empty list if the inspection code was not able to determine "
9770 "the list of applications."
9774 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3432
9775 msgid "The application structure contains the following fields:"
9779 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3436
9781 msgstr "C<app_name>"
9784 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3438
9786 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9787 "guests, this is the package name."
9791 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3441
9792 msgid "C<app_display_name>"
9793 msgstr "C<app_display_name>"
9796 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3443
9798 "The display name of the application, sometimes localized to the install "
9799 "language of the guest operating system."
9803 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3446
9805 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9806 "to display something can use C<app_name> instead."
9810 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3449
9811 msgid "C<app_epoch>"
9812 msgstr "C<app_epoch>"
9815 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3451
9817 "For package managers which use epochs, this contains the epoch of the "
9818 "package (an integer). If unavailable, this is returned as C<0>."
9822 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3454
9823 msgid "C<app_version>"
9824 msgstr "C<app_version>"
9827 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3456
9829 "The version string of the application or package. If unavailable this is "
9830 "returned as an empty string C<\"\">."
9834 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3459
9835 msgid "C<app_release>"
9836 msgstr "C<app_release>"
9839 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3461
9841 "The release string of the application or package, for package managers that "
9842 "use this. If unavailable this is returned as an empty string C<\"\">."
9846 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3465
9847 msgid "C<app_install_path>"
9848 msgstr "C<app_install_path>"
9851 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3467
9853 "The installation path of the application (on operating systems such as "
9854 "Windows which use installation paths). This path is in the format used by "
9855 "the guest operating system, it is not a libguestfs path."
9859 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3472
9860 msgid "If unavailable this is returned as an empty string C<\"\">."
9864 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3474
9865 msgid "C<app_trans_path>"
9866 msgstr "C<app_trans_path>"
9869 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3476
9871 "The install path translated into a libguestfs path. If unavailable this is "
9872 "returned as an empty string C<\"\">."
9876 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3479
9877 msgid "C<app_publisher>"
9878 msgstr "C<app_publisher>"
9881 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3481
9883 "The name of the publisher of the application, for package managers that use "
9884 "this. If unavailable this is returned as an empty string C<\"\">."
9888 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3485
9893 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3487
9895 "The URL (eg. upstream URL) of the application. If unavailable this is "
9896 "returned as an empty string C<\"\">."
9900 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3490
9901 msgid "C<app_source_package>"
9902 msgstr "C<app_source_package>"
9905 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3492
9907 "For packaging systems which support this, the name of the source package. "
9908 "If unavailable this is returned as an empty string C<\"\">."
9912 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3495
9913 msgid "C<app_summary>"
9914 msgstr "C<app_summary>"
9917 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3497
9919 "A short (usually one line) description of the application or package. If "
9920 "unavailable this is returned as an empty string C<\"\">."
9924 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3500
9925 msgid "C<app_description>"
9926 msgstr "C<app_description>"
9929 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3502
9931 "A longer description of the application or package. If unavailable this is "
9932 "returned as an empty string C<\"\">."
9936 #: ../fish/guestfish-actions.pod:2382
9941 #: ../fish/guestfish-actions.pod:2384
9951 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
9953 "This function uses other libguestfs functions and certain heuristics to "
9954 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9955 "for operating systems."
9959 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3524
9960 msgid "The list returned is empty if no operating systems were found."
9964 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3526
9966 "If one operating system was found, then this returns a list with a single "
9967 "element, which is the name of the root filesystem of this operating system. "
9968 "It is also possible for this function to return a list containing more than "
9969 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9970 "element being the root filesystem of one of the operating systems."
9974 #: ../fish/guestfish-actions.pod:2399
9976 "You can pass the root string(s) returned to other L</inspect-get-*> "
9977 "functions in order to query further information about each operating system, "
9978 "such as the name and version."
9982 #: ../fish/guestfish-actions.pod:2404
9984 "This function uses other libguestfs features such as L</mount-ro> and L</"
9985 "umount-all> in order to mount and unmount filesystems and look at the "
9986 "contents. This should be called with no disks currently mounted. The "
9987 "function may also use Augeas, so any existing Augeas handle will be closed."
9991 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3544
9993 "This function cannot decrypt encrypted disks. The caller must do that first "
9994 "(supplying the necessary keys) if the disk is encrypted."
9998 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
9999 #: ../fish/guestfish-actions.pod:2673
10000 msgid "See also L</list-filesystems>."
10001 msgstr "Див. також L</list-filesystems>."
10004 #: ../fish/guestfish-actions.pod:2418
10005 msgid "is-blockdev"
10006 msgstr "is-blockdev"
10009 #: ../fish/guestfish-actions.pod:2420
10012 " is-blockdev path\n"
10015 " is-blockdev шлях\n"
10019 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3564
10021 "This returns C<true> if and only if there is a block device with the given "
10026 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10027 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10028 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10029 #: ../fish/guestfish-actions.pod:2524
10030 msgid "See also L</stat>."
10031 msgstr "Див. також L</stat>."
10034 #: ../fish/guestfish-actions.pod:2427
10039 #: ../fish/guestfish-actions.pod:2429
10049 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3578
10051 "This returns true iff this handle is busy processing a command (in the "
10056 #: ../fish/guestfish-actions.pod:2436
10058 msgstr "is-chardev"
10061 #: ../fish/guestfish-actions.pod:2438
10064 " is-chardev path\n"
10067 " is-chardev шлях\n"
10071 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3593
10073 "This returns C<true> if and only if there is a character device with the "
10074 "given C<path> name."
10078 #: ../fish/guestfish-actions.pod:2445
10083 #: ../fish/guestfish-actions.pod:2447
10093 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3607
10095 "This returns true iff this handle is being configured (in the C<CONFIG> "
10100 #: ../fish/guestfish-actions.pod:2454
10105 #: ../fish/guestfish-actions.pod:2456
10115 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3622
10117 "This returns C<true> if and only if there is a directory with the given "
10118 "C<path> name. Note that it returns false for other objects like files."
10122 #: ../fish/guestfish-actions.pod:2464
10127 #: ../fish/guestfish-actions.pod:2466
10137 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3638
10139 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
10140 "given C<path> name."
10144 #: ../fish/guestfish-actions.pod:2473
10149 #: ../fish/guestfish-actions.pod:2475
10159 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3653
10161 "This returns C<true> if and only if there is a regular file with the given "
10162 "C<path> name. Note that it returns false for other objects like directories."
10166 #: ../fish/guestfish-actions.pod:2483
10167 msgid "is-launching"
10168 msgstr "is-launching"
10171 #: ../fish/guestfish-actions.pod:2485
10181 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3668
10183 "This returns true iff this handle is launching the subprocess (in the "
10184 "C<LAUNCHING> state)."
10188 #: ../fish/guestfish-actions.pod:2492
10193 #: ../fish/guestfish-actions.pod:2494
10199 " is-lv пристрій\n"
10203 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3683
10205 "This command tests whether C<device> is a logical volume, and returns true "
10206 "iff this is the case."
10210 #: ../fish/guestfish-actions.pod:2499
10215 #: ../fish/guestfish-actions.pod:2501
10225 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3695
10227 "This returns true iff this handle is ready to accept commands (in the "
10232 #: ../fish/guestfish-actions.pod:2508
10237 #: ../fish/guestfish-actions.pod:2510
10240 " is-socket path\n"
10243 " is-socket шлях\n"
10247 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3710
10249 "This returns C<true> if and only if there is a Unix domain socket with the "
10250 "given C<path> name."
10254 #: ../fish/guestfish-actions.pod:2517
10256 msgstr "is-symlink"
10259 #: ../fish/guestfish-actions.pod:2519
10262 " is-symlink path\n"
10265 " is-symlink шлях\n"
10269 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3725
10271 "This returns C<true> if and only if there is a symbolic link with the given "
10276 #: ../fish/guestfish-actions.pod:2526
10281 #: ../fish/guestfish-actions.pod:2528
10289 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3740
10291 "This returns true iff the file exists and the file is empty or it contains "
10296 #: ../fish/guestfish-actions.pod:2533
10297 msgid "is-zero-device"
10301 #: ../fish/guestfish-actions.pod:2535
10304 " is-zero-device device\n"
10309 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3753
10310 msgid "This returns true iff the device exists and contains all zero bytes."
10314 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3755
10315 msgid "Note that for large devices this can take a long time to run."
10319 #: ../fish/guestfish-actions.pod:2541
10320 msgid "kill-subprocess"
10321 msgstr "kill-subprocess"
10324 #: ../fish/guestfish-actions.pod:2543
10327 " kill-subprocess\n"
10330 " kill-subprocess\n"
10334 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3766
10335 msgid "This kills the qemu subprocess. You should never need to call this."
10339 #: ../fish/guestfish-actions.pod:2547
10344 #: ../fish/guestfish-actions.pod:2549
10349 #: ../fish/guestfish-actions.pod:2551
10359 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3777
10361 "Internally libguestfs is implemented by running a virtual machine using "
10366 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3780
10368 "You should call this after configuring the handle (eg. adding drives) but "
10369 "before performing any actions."
10373 #: ../fish/guestfish-actions.pod:2559
10378 #: ../fish/guestfish-actions.pod:2561
10381 " lchown owner group path\n"
10384 " lchown власник група шлях\n"
10388 #: ../fish/guestfish-actions.pod:2563
10390 "Change the file owner to C<owner> and group to C<group>. This is like L</"
10391 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10396 #: ../fish/guestfish-actions.pod:2571
10401 #: ../fish/guestfish-actions.pod:2573
10404 " lgetxattr path name\n"
10407 " lgetxattr шлях назва\n"
10411 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3820
10413 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10414 "is a symlink, then this call returns an extended attribute from the symlink."
10418 #: ../fish/guestfish-actions.pod:2589
10419 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10420 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10423 #: ../fish/guestfish-actions.pod:2591
10425 msgstr "lgetxattrs"
10428 #: ../fish/guestfish-actions.pod:2593
10431 " lgetxattrs path\n"
10434 " lgetxattrs шлях\n"
10438 #: ../fish/guestfish-actions.pod:2595
10440 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10441 "it returns the extended attributes of the link itself."
10445 #: ../fish/guestfish-actions.pod:2599
10450 #: ../fish/guestfish-actions.pod:2601
10458 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3863
10460 "List all 9p filesystems attached to the guest. A list of mount tags is "
10465 #: ../fish/guestfish-actions.pod:2606
10466 msgid "list-devices"
10467 msgstr "list-devices"
10470 #: ../fish/guestfish-actions.pod:2608
10480 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3877
10481 msgid "List all the block devices."
10485 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3879
10486 msgid "The full block device names are returned, eg. C</dev/sda>."
10490 #: ../fish/guestfish-actions.pod:2616
10491 msgid "list-dm-devices"
10495 #: ../fish/guestfish-actions.pod:2618
10498 " list-dm-devices\n"
10503 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3894
10504 msgid "List all device mapper devices."
10508 #: ../fish/guestfish-actions.pod:2622
10510 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10511 "previous call to L</luks-open>."
10515 #: ../fish/guestfish-actions.pod:2625
10517 "Device mapper devices which correspond to logical volumes are I<not> "
10518 "returned in this list. Call L</lvs> if you want to list logical volumes."
10522 #: ../fish/guestfish-actions.pod:2629
10523 msgid "list-filesystems"
10524 msgstr "list-filesystems"
10527 #: ../fish/guestfish-actions.pod:2631
10530 " list-filesystems\n"
10533 " list-filesystems\n"
10537 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3914
10539 "This inspection command looks for filesystems on partitions, block devices "
10540 "and logical volumes, returning a list of devices containing filesystems and "
10545 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3918
10547 "The return value is a hash, where the keys are the devices containing "
10548 "filesystems, and the values are the filesystem types. For example:"
10552 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3922
10555 " \"/dev/sda1\" => \"ntfs\"\n"
10556 " \"/dev/sda2\" => \"ext2\"\n"
10557 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10558 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10563 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3927
10565 "The value can have the special value \"unknown\", meaning the content of the "
10566 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10570 #: ../fish/guestfish-actions.pod:2650
10572 "This command runs other libguestfs commands, which might include L</mount> "
10573 "and L</umount>, and therefore you should use this soon after launch and only "
10574 "when nothing is mounted."
10578 #: ../fish/guestfish-actions.pod:2654
10580 "Not all of the filesystems returned will be mountable. In particular, swap "
10581 "partitions are returned in the list. Also this command does not check that "
10582 "each filesystem found is valid and mountable, and some filesystems might be "
10583 "mountable but require special options. Filesystems may not all belong to a "
10584 "single logical operating system (use L</inspect-os> to look for OSes)."
10588 #: ../fish/guestfish-actions.pod:2662
10589 msgid "list-partitions"
10590 msgstr "list-partitions"
10593 #: ../fish/guestfish-actions.pod:2664
10596 " list-partitions\n"
10599 " list-partitions\n"
10603 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3956
10604 msgid "List all the partitions detected on all block devices."
10608 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3958
10609 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10613 #: ../fish/guestfish-actions.pod:2670
10615 "This does not return logical volumes. For that you will need to call L</"
10620 #: ../fish/guestfish-actions.pod:2675
10625 #: ../fish/guestfish-actions.pod:2677
10635 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3977
10637 "List the files in C<directory> (relative to the root directory, there is no "
10638 "cwd) in the format of 'ls -la'."
10642 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3980
10644 "This command is mostly useful for interactive sessions. It is I<not> "
10645 "intended that you try to parse the output string."
10649 #: ../fish/guestfish-actions.pod:2685
10654 #: ../fish/guestfish-actions.pod:2687
10657 " ln target linkname\n"
10660 " ln призначення назва_посилання\n"
10664 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:3995
10665 msgid "This command creates a hard link using the C<ln> command."
10669 #: ../fish/guestfish-actions.pod:2691
10674 #: ../fish/guestfish-actions.pod:2693
10677 " ln-f target linkname\n"
10680 " ln-f призначення назва_посилання\n"
10684 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4008
10686 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10687 "option removes the link (C<linkname>) if it exists already."
10691 #: ../fish/guestfish-actions.pod:2698
10696 #: ../fish/guestfish-actions.pod:2700
10699 " ln-s target linkname\n"
10702 " ln-s призначення назва_посилання\n"
10706 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4022
10707 msgid "This command creates a symbolic link using the C<ln -s> command."
10711 #: ../fish/guestfish-actions.pod:2704
10716 #: ../fish/guestfish-actions.pod:2706
10719 " ln-sf target linkname\n"
10722 " ln-sf призначення назва_посилання\n"
10726 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4035
10728 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10729 "option removes the link (C<linkname>) if it exists already."
10733 #: ../fish/guestfish-actions.pod:2711
10734 msgid "lremovexattr"
10735 msgstr "lremovexattr"
10738 #: ../fish/guestfish-actions.pod:2713
10741 " lremovexattr xattr path\n"
10746 #: ../fish/guestfish-actions.pod:2715
10748 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10749 "it removes an extended attribute of the link itself."
10753 #: ../fish/guestfish-actions.pod:2719
10758 #: ../fish/guestfish-actions.pod:2721
10768 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4063
10770 "List the files in C<directory> (relative to the root directory, there is no "
10771 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10775 #: ../fish/guestfish-actions.pod:2727
10777 "This command is mostly useful for interactive sessions. Programs should "
10778 "probably use L</readdir> instead."
10782 #: ../fish/guestfish-actions.pod:2730
10787 #: ../fish/guestfish-actions.pod:2732
10790 " lsetxattr xattr val vallen path\n"
10795 #: ../fish/guestfish-actions.pod:2734
10797 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10798 "sets an extended attribute of the link itself."
10802 #: ../fish/guestfish-actions.pod:2738
10807 #: ../fish/guestfish-actions.pod:2740
10817 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4562
10818 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:6892
10819 msgid "Returns file information for the given C<path>."
10823 #: ../fish/guestfish-actions.pod:2744
10825 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10826 "the link is stat-ed, not the file it refers to."
10830 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4105
10831 msgid "This is the same as the C<lstat(2)> system call."
10835 #: ../fish/guestfish-actions.pod:2750
10840 #: ../fish/guestfish-actions.pod:2752
10843 " lstatlist path 'names ...'\n"
10848 #: ../fish/guestfish-actions.pod:2754
10850 "This call allows you to perform the L</lstat> operation on multiple files, "
10851 "where all files are in the directory C<path>. C<names> is the list of files "
10852 "from this directory."
10856 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4124
10858 "On return you get a list of stat structs, with a one-to-one correspondence "
10859 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10860 "then the C<ino> field of that structure is set to C<-1>."
10864 #: ../fish/guestfish-actions.pod:2763
10866 "This call is intended for programs that want to efficiently list a directory "
10867 "contents without making many round-trips. See also L</lxattrlist> for a "
10868 "similarly efficient call for getting extended attributes. Very long "
10869 "directory listings might cause the protocol message size to be exceeded, "
10870 "causing this call to fail. The caller must split up such requests into "
10871 "smaller groups of names."
10875 #: ../fish/guestfish-actions.pod:2771
10876 msgid "luks-add-key"
10877 msgstr "luks-add-key"
10880 #: ../fish/guestfish-actions.pod:2773
10883 " luks-add-key device keyslot\n"
10888 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4152
10890 "This command adds a new key on LUKS device C<device>. C<key> is any "
10891 "existing key, and is used to access the device. C<newkey> is the new key to "
10892 "add. C<keyslot> is the key slot that will be replaced."
10896 #: ../fish/guestfish-actions.pod:2780
10898 "Note that if C<keyslot> already contains a key, then this command will "
10899 "fail. You have to use L</luks-kill-slot> first to remove that key."
10903 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10904 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10905 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10907 "This command has one or more key or passphrase parameters. Guestfish will "
10908 "prompt for these separately."
10912 #: ../fish/guestfish-actions.pod:2787
10914 msgstr "luks-close"
10917 #: ../fish/guestfish-actions.pod:2789
10920 " luks-close device\n"
10923 " luks-close пристрій\n"
10927 #: ../fish/guestfish-actions.pod:2791
10929 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10930 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10931 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10936 #: ../fish/guestfish-actions.pod:2797
10937 msgid "luks-format"
10938 msgstr "luks-format"
10941 #: ../fish/guestfish-actions.pod:2799
10944 " luks-format device keyslot\n"
10949 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4193
10951 "This command erases existing data on C<device> and formats the device as a "
10952 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10953 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10957 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10958 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3570
10959 #: ../fish/guestfish-actions.pod:4096 ../fish/guestfish-actions.pod:4433
10960 #: ../fish/guestfish-actions.pod:4456 ../fish/guestfish-actions.pod:4478
10961 #: ../fish/guestfish-actions.pod:5224 ../src/guestfs-actions.pod:4200
10962 #: ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4366
10963 #: ../src/guestfs-actions.pod:5469 ../src/guestfs-actions.pod:6257
10964 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6736
10965 #: ../src/guestfs-actions.pod:6769 ../src/guestfs-actions.pod:7968
10967 "B<This command is dangerous. Without careful use you can easily destroy all "
10972 #: ../fish/guestfish-actions.pod:2812
10973 msgid "luks-format-cipher"
10974 msgstr "luks-format-cipher"
10977 #: ../fish/guestfish-actions.pod:2814
10980 " luks-format-cipher device keyslot cipher\n"
10985 #: ../fish/guestfish-actions.pod:2816
10987 "This command is the same as L</luks-format> but it also allows you to set "
10988 "the C<cipher> used."
10992 #: ../fish/guestfish-actions.pod:2825
10993 msgid "luks-kill-slot"
10994 msgstr "luks-kill-slot"
10997 #: ../fish/guestfish-actions.pod:2827
11000 " luks-kill-slot device keyslot\n"
11005 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4240
11007 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11008 "device C<device>. C<key> must be one of the I<other> keys."
11012 #: ../fish/guestfish-actions.pod:2836
11017 #: ../fish/guestfish-actions.pod:2838
11020 " luks-open device mapname\n"
11025 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4260
11027 "This command opens a block device which has been encrypted according to the "
11028 "Linux Unified Key Setup (LUKS) standard."
11032 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4263
11033 msgid "C<device> is the encrypted block device or partition."
11037 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4265
11039 "The caller must supply one of the keys associated with the LUKS block "
11040 "device, in the C<key> parameter."
11044 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4268
11046 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
11047 "writes to this block device are decrypted from and encrypted to the "
11048 "underlying C<device> respectively."
11052 #: ../fish/guestfish-actions.pod:2852
11054 "If this block device contains LVM volume groups, then calling L</vgscan> "
11055 "followed by L</vg-activate-all> will make them visible."
11059 #: ../fish/guestfish-actions.pod:2856
11060 msgid "Use L</list-dm-devices> to list all device mapper devices."
11064 #: ../fish/guestfish-actions.pod:2862
11065 msgid "luks-open-ro"
11066 msgstr "luks-open-ro"
11069 #: ../fish/guestfish-actions.pod:2864
11072 " luks-open-ro device mapname\n"
11077 #: ../fish/guestfish-actions.pod:2866
11079 "This is the same as L</luks-open> except that a read-only mapping is created."
11083 #: ../fish/guestfish-actions.pod:2872
11088 #: ../fish/guestfish-actions.pod:2874
11091 " lvcreate logvol volgroup mbytes\n"
11096 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4314
11098 "This creates an LVM logical volume called C<logvol> on the volume group "
11099 "C<volgroup>, with C<size> megabytes."
11103 #: ../fish/guestfish-actions.pod:2879
11104 msgid "lvm-canonical-lv-name"
11105 msgstr "lvm-canonical-lv-name"
11108 #: ../fish/guestfish-actions.pod:2881
11111 " lvm-canonical-lv-name lvname\n"
11116 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4327
11118 "This converts alternative naming schemes for LVs that you might find to the "
11119 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11124 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4331
11126 "This command returns an error if the C<lvname> parameter does not refer to a "
11131 #: ../fish/guestfish-actions.pod:2890
11132 msgid "See also L</is-lv>."
11133 msgstr "Див. також L</is-lv>."
11136 #: ../fish/guestfish-actions.pod:2892
11137 msgid "lvm-clear-filter"
11138 msgstr "lvm-clear-filter"
11141 #: ../fish/guestfish-actions.pod:2894
11144 " lvm-clear-filter\n"
11147 " lvm-clear-filter\n"
11151 #: ../fish/guestfish-actions.pod:2896
11153 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
11158 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11159 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4391
11161 "This command also clears the LVM cache and performs a volume group scan."
11165 #: ../fish/guestfish-actions.pod:2902
11166 msgid "lvm-remove-all"
11167 msgstr "lvm-remove-all"
11170 #: ../fish/guestfish-actions.pod:2904
11173 " lvm-remove-all\n"
11176 " lvm-remove-all\n"
11180 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4361
11182 "This command removes all LVM logical volumes, volume groups and physical "
11187 #: ../fish/guestfish-actions.pod:2912
11188 msgid "lvm-set-filter"
11189 msgstr "lvm-set-filter"
11192 #: ../fish/guestfish-actions.pod:2914
11195 " lvm-set-filter 'devices ...'\n"
11198 " lvm-set-filter 'пристрої...'\n"
11202 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4377
11204 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11205 "block devices in the list C<devices>, and will ignore all other attached "
11210 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4381
11212 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11213 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
11214 "there are two types of duplication possible: either cloned PVs/VGs which "
11215 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11216 "same name. In normal operation you cannot create this situation, but you "
11217 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
11218 "inside the LVM metadata."
11222 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4394
11223 msgid "You can filter whole block devices or individual partitions."
11227 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4396
11229 "You cannot use this if any VG is currently in use (eg. contains a mounted "
11230 "filesystem), even if you are not filtering out that VG."
11234 #: ../fish/guestfish-actions.pod:2939
11239 #: ../fish/guestfish-actions.pod:2941
11242 " lvremove device\n"
11245 " lvremove пристрій\n"
11249 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4410
11251 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11252 "LV, such as C</dev/VG/LV>."
11256 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
11258 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11263 #: ../fish/guestfish-actions.pod:2949
11268 #: ../fish/guestfish-actions.pod:2951
11271 " lvrename logvol newlogvol\n"
11276 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4427
11277 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11281 #: ../fish/guestfish-actions.pod:2955
11286 #: ../fish/guestfish-actions.pod:2957
11289 " lvresize device mbytes\n"
11294 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4440
11296 "This resizes (expands or shrinks) an existing LVM logical volume to "
11297 "C<mbytes>. When reducing, data in the reduced part is lost."
11301 #: ../fish/guestfish-actions.pod:2963
11302 msgid "lvresize-free"
11303 msgstr "lvresize-free"
11306 #: ../fish/guestfish-actions.pod:2965
11309 " lvresize-free lv percent\n"
11314 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4455
11316 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11317 "remaining free space in the volume group. Commonly you would call this with "
11318 "pc = 100 which expands the logical volume as much as possible, using all "
11319 "remaining free space in the volume group."
11323 #: ../fish/guestfish-actions.pod:2973
11328 #: ../fish/guestfish-actions.pod:2975
11338 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4470
11340 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11345 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4473
11347 "This returns a list of the logical volume device names (eg. C</dev/"
11348 "VolGroup00/LogVol00>)."
11352 #: ../fish/guestfish-actions.pod:2983
11353 msgid "See also L</lvs-full>, L</list-filesystems>."
11354 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11357 #: ../fish/guestfish-actions.pod:2985
11362 #: ../fish/guestfish-actions.pod:2987
11372 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4489
11374 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11375 "(8)> command. The \"full\" version includes all fields."
11379 #: ../fish/guestfish-actions.pod:2992
11384 #: ../fish/guestfish-actions.pod:2994
11390 " lvuuid пристрій\n"
11394 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4504
11395 msgid "This command returns the UUID of the LVM LV C<device>."
11399 #: ../fish/guestfish-actions.pod:2998
11401 msgstr "lxattrlist"
11404 #: ../fish/guestfish-actions.pod:3000
11407 " lxattrlist path 'names ...'\n"
11412 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4518
11414 "This call allows you to get the extended attributes of multiple files, where "
11415 "all files are in the directory C<path>. C<names> is the list of files from "
11420 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4522
11422 "On return you get a flat list of xattr structs which must be interpreted "
11423 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11424 "C<attrval> in this struct is zero-length to indicate there was an error "
11425 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11426 "number (the number of following attributes for this file, which could be C<"
11427 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11428 "for the first named file. This repeats for the second and subsequent files."
11432 #: ../fish/guestfish-actions.pod:3016
11434 "This call is intended for programs that want to efficiently list a directory "
11435 "contents without making many round-trips. See also L</lstatlist> for a "
11436 "similarly efficient call for getting standard stats. Very long directory "
11437 "listings might cause the protocol message size to be exceeded, causing this "
11438 "call to fail. The caller must split up such requests into smaller groups of "
11443 #: ../fish/guestfish-actions.pod:3024
11448 #: ../fish/guestfish-actions.pod:3026
11458 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4552
11459 msgid "Create a directory named C<path>."
11463 #: ../fish/guestfish-actions.pod:3030
11465 msgstr "mkdir-mode"
11468 #: ../fish/guestfish-actions.pod:3032
11471 " mkdir-mode path mode\n"
11474 " mkdir-mode шлях режим\n"
11478 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4565
11480 "This command creates a directory, setting the initial permissions of the "
11481 "directory to C<mode>."
11485 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4568
11487 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11488 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11493 #: ../fish/guestfish-actions.pod:3041
11494 msgid "See also L</mkdir>, L</umask>"
11495 msgstr "Див. також L</mkdir>, L</umask>"
11498 #: ../fish/guestfish-actions.pod:3043
11503 #: ../fish/guestfish-actions.pod:3045
11513 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
11515 "Create a directory named C<path>, creating any parent directories as "
11516 "necessary. This is like the C<mkdir -p> shell command."
11520 #: ../fish/guestfish-actions.pod:3050
11525 #: ../fish/guestfish-actions.pod:3052
11528 " mkdtemp template\n"
11531 " mkdtemp шаблон\n"
11535 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4597
11537 "This command creates a temporary directory. The C<template> parameter "
11538 "should be a full pathname for the temporary directory name with the final "
11539 "six characters being \"XXXXXX\"."
11543 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4602
11545 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11546 "being suitable for Windows filesystems."
11550 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4605
11551 msgid "The name of the temporary directory that was created is returned."
11555 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4608
11556 msgid "The temporary directory is created with mode 0700 and is owned by root."
11560 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4611
11562 "The caller is responsible for deleting the temporary directory and its "
11563 "contents after use."
11567 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4614
11568 msgid "See also: L<mkdtemp(3)>"
11572 #: ../fish/guestfish-actions.pod:3073
11577 #: ../fish/guestfish-actions.pod:3075
11580 " mke2fs-J fstype blocksize device journal\n"
11585 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4630
11587 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11588 "C<journal>. It is equivalent to the command:"
11592 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4634
11595 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11598 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11602 #: ../fish/guestfish-actions.pod:3083
11603 msgid "See also L</mke2journal>."
11604 msgstr "Див. також L</mke2journal>."
11607 #: ../fish/guestfish-actions.pod:3085
11612 #: ../fish/guestfish-actions.pod:3087
11615 " mke2fs-JL fstype blocksize device label\n"
11620 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4651
11622 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11623 "the journal labeled C<label>."
11627 #: ../fish/guestfish-actions.pod:3092
11628 msgid "See also L</mke2journal-L>."
11629 msgstr "Див. також L</mke2journal-L>."
11632 #: ../fish/guestfish-actions.pod:3094
11637 #: ../fish/guestfish-actions.pod:3096
11640 " mke2fs-JU fstype blocksize device uuid\n"
11645 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4669
11647 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11648 "the journal with UUID C<uuid>."
11652 #: ../fish/guestfish-actions.pod:3101
11653 msgid "See also L</mke2journal-U>."
11654 msgstr "Див. також L</mke2journal-U>."
11657 #: ../fish/guestfish-actions.pod:3103
11658 msgid "mke2journal"
11659 msgstr "mke2journal"
11662 #: ../fish/guestfish-actions.pod:3105
11665 " mke2journal blocksize device\n"
11670 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4685
11672 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11677 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4688
11680 " mke2fs -O journal_dev -b blocksize device\n"
11685 #: ../fish/guestfish-actions.pod:3112
11686 msgid "mke2journal-L"
11687 msgstr "mke2journal-L"
11690 #: ../fish/guestfish-actions.pod:3114
11693 " mke2journal-L blocksize label device\n"
11698 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4702
11699 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11703 #: ../fish/guestfish-actions.pod:3118
11704 msgid "mke2journal-U"
11705 msgstr "mke2journal-U"
11708 #: ../fish/guestfish-actions.pod:3120
11711 " mke2journal-U blocksize uuid device\n"
11716 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4716
11717 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11721 #: ../fish/guestfish-actions.pod:3124
11726 #: ../fish/guestfish-actions.pod:3126
11729 " mkfifo mode path\n"
11732 " mkfifo режим шлях\n"
11736 #: ../fish/guestfish-actions.pod:3128
11738 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11739 "is just a convenient wrapper around L</mknod>."
11743 #: ../fish/guestfish-actions.pod:3134
11748 #: ../fish/guestfish-actions.pod:3136
11751 " mkfs fstype device\n"
11754 " mkfs тип_файлової_системи пристрій\n"
11758 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4746
11760 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11761 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11765 #: ../fish/guestfish-actions.pod:3142
11770 #: ../fish/guestfish-actions.pod:3144
11773 " mkfs-b fstype blocksize device\n"
11778 #: ../fish/guestfish-actions.pod:3146
11780 "This call is similar to L</mkfs>, but it allows you to control the block "
11781 "size of the resulting filesystem. Supported block sizes depend on the "
11782 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11786 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11787 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4812
11789 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11794 #: ../fish/guestfish-actions.pod:3154
11796 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11801 #: ../fish/guestfish-actions.pod:3161
11806 #: ../fish/guestfish-actions.pod:3163
11809 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11814 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4799
11816 "This function creates a filesystem on C<device>. The filesystem type is "
11817 "C<fstype>, for example C<ext3>."
11821 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4806
11822 msgid "C<blocksize>"
11823 msgstr "C<blocksize>"
11826 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4808
11828 "The filesystem block size. Supported block sizes depend on the filesystem "
11829 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11834 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4815
11835 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11839 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4817
11840 msgid "C<features>"
11841 msgstr "C<features>"
11844 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4819
11845 msgid "This passes the I<-O> parameter to the external mkfs program."
11849 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4821
11851 "For certain filesystem types, this allows extra filesystem features to be "
11852 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11856 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4825
11858 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11863 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4828
11868 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4830
11870 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11871 "sets the inode size (only for ext2/3/4 filesystems at present)."
11875 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4833
11876 msgid "C<sectorsize>"
11880 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4835
11882 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11883 "sets sector size for ufs filesystem."
11887 #: ../fish/guestfish-actions.pod:3208
11888 msgid "mkmountpoint"
11889 msgstr "mkmountpoint"
11892 #: ../fish/guestfish-actions.pod:3210
11895 " mkmountpoint exemptpath\n"
11900 #: ../fish/guestfish-actions.pod:3212
11902 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11903 "to create extra mountpoints before mounting the first filesystem."
11907 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4878
11909 "These calls are I<only> necessary in some very limited circumstances, mainly "
11910 "the case where you want to mount a mix of unrelated and/or read-only "
11911 "filesystems together."
11915 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4882
11917 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11918 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11919 "inside that. You can unpack this as follows in guestfish:"
11923 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4887
11926 " add-ro Fedora-11-i686-Live.iso\n"
11928 " mkmountpoint /cd\n"
11929 " mkmountpoint /sqsh\n"
11930 " mkmountpoint /ext3fs\n"
11931 " mount /dev/sda /cd\n"
11932 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11933 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11936 " add-ro Fedora-11-i686-Live.iso\n"
11938 " mkmountpoint /cd\n"
11939 " mkmountpoint /sqsh\n"
11940 " mkmountpoint /ext3fs\n"
11941 " mount /dev/sda /cd\n"
11942 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11943 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11947 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4896
11948 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11952 #: ../fish/guestfish-actions.pod:3236
11954 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11955 "unexpected errors if you try to mix these calls. It is safest to manually "
11956 "unmount filesystems and remove mountpoints after use."
11960 #: ../fish/guestfish-actions.pod:3240
11962 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11963 "for this to work for manual mountpoints, you must ensure that the innermost "
11964 "mountpoints have the longest pathnames, as in the example code above."
11968 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4907
11970 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11974 #: ../fish/guestfish-actions.pod:3247
11976 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11977 "L</umount-all> to be called when the handle is closed which can also trigger "
11982 #: ../fish/guestfish-actions.pod:3251
11987 #: ../fish/guestfish-actions.pod:3253
11990 " mknod mode devmajor devminor path\n"
11995 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4926
11997 "This call creates block or character special devices, or named pipes (FIFOs)."
12001 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4929
12003 "The C<mode> parameter should be the mode, using the standard constants. "
12004 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12005 "used when creating block and character special devices."
12009 #: ../fish/guestfish-actions.pod:3263
12011 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12012 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12013 "regular file). These constants are available in the standard Linux header "
12014 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12015 "wrappers around this command which bitwise OR in the appropriate constant "
12020 #: ../fish/guestfish-actions.pod:3273
12025 #: ../fish/guestfish-actions.pod:3275
12028 " mknod-b mode devmajor devminor path\n"
12033 #: ../fish/guestfish-actions.pod:3277
12035 "This call creates a block device node called C<path> with mode C<mode> and "
12036 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
12037 "wrapper around L</mknod>."
12041 #: ../fish/guestfish-actions.pod:3283
12046 #: ../fish/guestfish-actions.pod:3285
12049 " mknod-c mode devmajor devminor path\n"
12054 #: ../fish/guestfish-actions.pod:3287
12056 "This call creates a char device node called C<path> with mode C<mode> and "
12057 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
12058 "wrapper around L</mknod>."
12062 #: ../fish/guestfish-actions.pod:3293
12067 #: ../fish/guestfish-actions.pod:3295
12073 " mkswap пристрій\n"
12077 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4992
12078 msgid "Create a swap partition on C<device>."
12082 #: ../fish/guestfish-actions.pod:3299
12087 #: ../fish/guestfish-actions.pod:3301
12090 " mkswap-L label device\n"
12093 " mkswap-L мітка пристрій\n"
12097 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5005
12098 msgid "Create a swap partition on C<device> with label C<label>."
12102 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5007
12104 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12105 "sda>), just to a partition. This appears to be a limitation of the kernel "
12110 #: ../fish/guestfish-actions.pod:3309
12115 #: ../fish/guestfish-actions.pod:3311
12118 " mkswap-U uuid device\n"
12121 " mkswap-U uuid пристрій\n"
12125 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5022
12126 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12130 #: ../fish/guestfish-actions.pod:3315
12131 msgid "mkswap-file"
12132 msgstr "mkswap-file"
12135 #: ../fish/guestfish-actions.pod:3317
12138 " mkswap-file path\n"
12141 " mkswap-file шлях\n"
12145 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5034
12146 msgid "Create a swap file."
12147 msgstr "Створити файл резервної пам’яті."
12150 #: ../fish/guestfish-actions.pod:3321
12152 "This command just writes a swap file signature to an existing file. To "
12153 "create the file itself, use something like L</fallocate>."
12157 #: ../fish/guestfish-actions.pod:3324
12162 #: ../fish/guestfish-actions.pod:3326
12165 " modprobe modulename\n"
12168 " modprobe назва_модуля\n"
12172 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5049
12173 msgid "This loads a kernel module in the appliance."
12177 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5051
12179 "The kernel module must have been whitelisted when libguestfs was built (see "
12180 "C<appliance/kmod.whitelist.in> in the source)."
12184 #: ../fish/guestfish-actions.pod:3333
12189 #: ../fish/guestfish-actions.pod:3335
12192 " mount device mountpoint\n"
12195 " mount пристрій точка_монтування\n"
12199 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5072
12201 "Mount a guest disk at a position in the filesystem. Block devices are named "
12202 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
12203 "those block devices contain partitions, they will have the usual names (eg. "
12204 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
12208 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5078
12210 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12211 "mounted on C</> before others can be mounted. Other filesystems can only be "
12212 "mounted on directories which already exist."
12216 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5083
12218 "The mounted filesystem is writable, if we have sufficient permissions on the "
12219 "underlying device."
12223 #: ../fish/guestfish-actions.pod:3351
12225 "B<Important note:> When you use this call, the filesystem options C<sync> "
12226 "and C<noatime> are set implicitly. This was originally done because we "
12227 "thought it would improve reliability, but it turns out that I<-o sync> has a "
12228 "very large negative performance impact and negligible effect on "
12229 "reliability. Therefore we recommend that you avoid using L</mount> in any "
12230 "code that needs performance, and instead use L</mount-options> (use an empty "
12231 "string for the first parameter if you don't want any options)."
12235 #: ../fish/guestfish-actions.pod:3361
12237 "I<This function is deprecated.> In new code, use the L</mount_options> call "
12242 #: ../fish/guestfish-actions.pod:3368
12247 #: ../fish/guestfish-actions.pod:3370
12250 " mount-9p mounttag mountpoint [options:..]\n"
12255 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5115
12257 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12262 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5118
12264 "If required, C<trans=virtio> will be automatically added to the options. "
12265 "Any other options required can be passed in the optional C<options> "
12270 #: ../fish/guestfish-actions.pod:3381
12272 msgstr "mount-loop"
12275 #: ../fish/guestfish-actions.pod:3383
12278 " mount-loop file mountpoint\n"
12283 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5157
12285 "This command lets you mount C<file> (a filesystem image in a file) on a "
12286 "mount point. It is entirely equivalent to the command C<mount -o loop file "
12291 #: ../fish/guestfish-actions.pod:3389
12292 msgid "mount-options"
12293 msgstr "mount-options"
12296 #: ../fish/guestfish-actions.pod:3391
12299 " mount-options options device mountpoint\n"
12304 #: ../fish/guestfish-actions.pod:3393
12306 "This is the same as the L</mount> command, but it allows you to set the "
12307 "mount options as for the L<mount(8)> I<-o> flag."
12311 #: ../fish/guestfish-actions.pod:3397 ../src/guestfs-actions.pod:5177
12313 "If the C<options> parameter is an empty string, then no options are passed "
12314 "(all options default to whatever the filesystem uses)."
12318 #: ../fish/guestfish-actions.pod:3401
12323 #: ../fish/guestfish-actions.pod:3403
12326 " mount-ro device mountpoint\n"
12329 " mount-ro пристрій точка_монтування\n"
12333 #: ../fish/guestfish-actions.pod:3405
12335 "This is the same as the L</mount> command, but it mounts the filesystem with "
12336 "the read-only (I<-o ro>) flag."
12340 #: ../fish/guestfish-actions.pod:3408
12345 #: ../fish/guestfish-actions.pod:3410
12348 " mount-vfs options vfstype device mountpoint\n"
12353 #: ../fish/guestfish-actions.pod:3412
12355 "This is the same as the L</mount> command, but it allows you to set both the "
12356 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12360 #: ../fish/guestfish-actions.pod:3416
12361 msgid "mountpoints"
12362 msgstr "mountpoints"
12365 #: ../fish/guestfish-actions.pod:3418
12375 #: ../fish/guestfish-actions.pod:3420
12377 "This call is similar to L</mounts>. That call returns a list of devices. "
12378 "This one returns a hash table (map) of device name to directory where the "
12379 "device is mounted."
12383 #: ../fish/guestfish-actions.pod:3424
12388 #: ../fish/guestfish-actions.pod:3426
12398 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5238
12400 "This returns the list of currently mounted filesystems. It returns the list "
12401 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12405 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5241
12406 msgid "Some internal mounts are not shown."
12410 #: ../fish/guestfish-actions.pod:3433
12411 msgid "See also: L</mountpoints>"
12412 msgstr "Див. також L</mountpoints>"
12415 #: ../fish/guestfish-actions.pod:3435
12420 #: ../fish/guestfish-actions.pod:3437
12426 " mv джерело призначення\n"
12430 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5258
12432 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12433 "destination filename or destination directory."
12437 #: ../fish/guestfish-actions.pod:3442
12438 msgid "ntfs-3g-probe"
12439 msgstr "ntfs-3g-probe"
12442 #: ../fish/guestfish-actions.pod:3444
12445 " ntfs-3g-probe true|false device\n"
12450 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5272
12452 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12453 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12454 "write, and some cannot be mounted at all)."
12458 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5276
12460 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12461 "can be mounted read-write. Set it to false if you want to test if the "
12462 "volume can be mounted read-only."
12466 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5280
12468 "The return value is an integer which C<0> if the operation would succeed, or "
12469 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12473 #: ../fish/guestfish-actions.pod:3458
12475 msgstr "ntfsresize"
12478 #: ../fish/guestfish-actions.pod:3460
12481 " ntfsresize device\n"
12484 " ntfsresize пристрій\n"
12488 #: ../fish/guestfish-actions.pod:3462 ../fish/guestfish-actions.pod:3486
12489 #: ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:5333
12491 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12492 "size of the underlying device."
12496 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5304
12498 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12499 "consistency check (for safety). You have to boot into Windows to perform "
12500 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12501 "resize filesystems which have been marked in this way. So in effect it is "
12502 "not possible to call ntfsresize multiple times on a single filesystem "
12503 "without booting into Windows between each resize."
12507 #: ../fish/guestfish-actions.pod:3473 ../fish/guestfish-actions.pod:3512
12508 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5359
12509 msgid "See also L<ntfsresize(8)>."
12513 #: ../fish/guestfish-actions.pod:3475 ../fish/guestfish-actions.pod:3523
12515 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12520 #: ../fish/guestfish-actions.pod:3482
12521 msgid "ntfsresize-opts"
12525 #: ../fish/guestfish-actions.pod:3484
12528 " ntfsresize-opts device [size:..] [force:..]\n"
12533 #: ../fish/guestfish-actions.pod:3495 ../src/guestfs-actions.pod:5342
12535 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12536 "resized to fit the container (eg. partition)."
12540 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5345
12545 #: ../fish/guestfish-actions.pod:3500 ../src/guestfs-actions.pod:5347
12547 "If this option is true, then force the resize of the filesystem even if the "
12548 "filesystem is marked as requiring a consistency check."
12552 #: ../fish/guestfish-actions.pod:3503
12554 "After the resize operation, the filesystem is always marked as requiring a "
12555 "consistency check (for safety). You have to boot into Windows to perform "
12556 "this check and clear this condition. If you I<don't> set the C<force> "
12557 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12558 "a single filesystem without booting into Windows between each resize."
12562 #: ../fish/guestfish-actions.pod:3516
12563 msgid "ntfsresize-size"
12564 msgstr "ntfsresize-size"
12567 #: ../fish/guestfish-actions.pod:3518
12570 " ntfsresize-size device size\n"
12575 #: ../fish/guestfish-actions.pod:3520
12577 "This command is the same as L</ntfsresize> except that it allows you to "
12578 "specify the new size (in bytes) explicitly."
12582 #: ../fish/guestfish-actions.pod:3530
12587 #: ../fish/guestfish-actions.pod:3532
12590 " part-add device prlogex startsect endsect\n"
12595 #: ../fish/guestfish-actions.pod:3534
12597 "This command adds a partition to C<device>. If there is no partition table "
12598 "on the device, call L</part-init> first."
12602 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5420
12604 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12605 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12606 "C<logical>) and C<e> (or C<extended>) partition types."
12610 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5425
12612 "C<startsect> and C<endsect> are the start and end of the partition in "
12613 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12614 "from the end of the disk (C<-1> is the last sector)."
12618 #: ../fish/guestfish-actions.pod:3546
12620 "Creating a partition which covers the whole disk is not so easy. Use L</"
12621 "part-disk> to do that."
12625 #: ../fish/guestfish-actions.pod:3549
12630 #: ../fish/guestfish-actions.pod:3551
12633 " part-del device partnum\n"
12638 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5443
12639 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12643 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5445
12645 "Note that in the case of MBR partitioning, deleting an extended partition "
12646 "also deletes any logical partitions it contains."
12650 #: ../fish/guestfish-actions.pod:3559
12655 #: ../fish/guestfish-actions.pod:3561
12658 " part-disk device parttype\n"
12661 " part-disk пристрій тип_розділу\n"
12665 #: ../fish/guestfish-actions.pod:3563
12667 "This command is simply a combination of L</part-init> followed by L</part-"
12668 "add> to create a single primary partition covering the whole disk."
12672 #: ../fish/guestfish-actions.pod:3567
12674 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12675 "possible values are described in L</part-init>."
12679 #: ../fish/guestfish-actions.pod:3573
12680 msgid "part-get-bootable"
12681 msgstr "part-get-bootable"
12684 #: ../fish/guestfish-actions.pod:3575
12687 " part-get-bootable device partnum\n"
12692 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5481
12694 "This command returns true if the partition C<partnum> on C<device> has the "
12695 "bootable flag set."
12699 #: ../fish/guestfish-actions.pod:3580
12700 msgid "See also L</part-set-bootable>."
12701 msgstr "Див. також L</part-set-bootable>."
12704 #: ../fish/guestfish-actions.pod:3582
12705 msgid "part-get-mbr-id"
12706 msgstr "part-get-mbr-id"
12709 #: ../fish/guestfish-actions.pod:3584
12712 " part-get-mbr-id device partnum\n"
12717 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5497
12719 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12720 "partition C<partnum>."
12724 #: ../fish/guestfish-actions.pod:3589 ../fish/guestfish-actions.pod:3733
12726 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12727 "undefined results for other partition table types (see L</part-get-"
12732 #: ../fish/guestfish-actions.pod:3593
12733 msgid "part-get-parttype"
12734 msgstr "part-get-parttype"
12737 #: ../fish/guestfish-actions.pod:3595
12740 " part-get-parttype device\n"
12743 " part-get-parttype пристрій\n"
12747 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5514
12749 "This command examines the partition table on C<device> and returns the "
12750 "partition table type (format) being used."
12754 #: ../fish/guestfish-actions.pod:3600
12756 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12757 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12758 "possible, although unusual. See L</part-init> for a full list."
12762 #: ../fish/guestfish-actions.pod:3605
12767 #: ../fish/guestfish-actions.pod:3607
12770 " part-init device parttype\n"
12775 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5534
12777 "This creates an empty partition table on C<device> of one of the partition "
12778 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12779 "(for large disks)."
12783 #: ../fish/guestfish-actions.pod:3613
12785 "Initially there are no partitions. Following this, you should call L</part-"
12786 "add> for each partition required."
12790 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5541
12791 msgid "Possible values for C<parttype> are:"
12795 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5545
12800 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5547
12805 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5549
12806 msgid "Intel EFI / GPT partition table."
12810 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5551
12812 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12813 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12814 "the C<mbr> format."
12818 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5555
12823 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5557
12828 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5559
12830 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12831 "Windows. This partition type will B<only> work for device sizes up to 2 "
12832 "TB. For large disks we recommend using C<gpt>."
12836 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5566
12838 "Other partition table types that may work but are not supported include:"
12842 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5571
12847 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5573
12848 msgid "AIX disk labels."
12849 msgstr "Мітки дисків AIX."
12852 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5575
12854 #| msgid "B<amiga> | B<rdb>"
12856 msgstr "B<amiga> | B<rdb>"
12859 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5577
12864 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5579
12865 msgid "Amiga \"Rigid Disk Block\" format."
12866 msgstr "Формат \"Rigid Disk Block\" Amiga."
12869 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5581
12874 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5583
12875 msgid "BSD disk labels."
12876 msgstr "Мітки дисків BSD."
12879 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5585
12884 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5587
12885 msgid "DASD, used on IBM mainframes."
12886 msgstr "DASD, використовувалися у мейнфреймах IBM."
12889 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5589
12894 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5591
12895 msgid "MIPS/SGI volumes."
12896 msgstr "Томи MIPS/SGI."
12899 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5593
12904 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5595
12905 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12906 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12909 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5597
12914 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5599
12915 msgid "NEC PC-98 format, common in Japan apparently."
12916 msgstr "Формат NEC PC-98, поширений у Японії."
12919 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5601
12924 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5603
12925 msgid "Sun disk labels."
12926 msgstr "Мітки дисків Sun."
12929 #: ../fish/guestfish-actions.pod:3682
12934 #: ../fish/guestfish-actions.pod:3684
12937 " part-list device\n"
12940 " part-list device\n"
12944 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5617
12946 "This command parses the partition table on C<device> and returns the list of "
12947 "partitions found."
12951 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5620
12952 msgid "The fields in the returned structure are:"
12956 #: ../fish/guestfish-actions.pod:3693 ../src/guestfs-actions.pod:5624
12957 msgid "B<part_num>"
12958 msgstr "B<part_num>"
12961 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5626
12962 msgid "Partition number, counting from 1."
12966 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5628
12967 msgid "B<part_start>"
12968 msgstr "B<part_start>"
12971 #: ../fish/guestfish-actions.pod:3699
12973 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12974 "the device's sector size, see L</blockdev-getss>."
12978 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5633
12979 msgid "B<part_end>"
12980 msgstr "B<part_end>"
12983 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5635
12984 msgid "End of the partition in bytes."
12988 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5637
12989 msgid "B<part_size>"
12990 msgstr "B<part_size>"
12993 #: ../fish/guestfish-actions.pod:3708 ../src/guestfs-actions.pod:5639
12994 msgid "Size of the partition in bytes."
12998 #: ../fish/guestfish-actions.pod:3712
12999 msgid "part-set-bootable"
13000 msgstr "part-set-bootable"
13003 #: ../fish/guestfish-actions.pod:3714
13006 " part-set-bootable device partnum true|false\n"
13011 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5657
13013 "This sets the bootable flag on partition numbered C<partnum> on device "
13014 "C<device>. Note that partitions are numbered from 1."
13018 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5660
13020 "The bootable flag is used by some operating systems (notably Windows) to "
13021 "determine which partition to boot from. It is by no means universally "
13026 #: ../fish/guestfish-actions.pod:3723
13027 msgid "part-set-mbr-id"
13028 msgstr "part-set-mbr-id"
13031 #: ../fish/guestfish-actions.pod:3725
13034 " part-set-mbr-id device partnum idbyte\n"
13039 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5676
13041 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13042 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
13043 "documentation are in fact hexadecimal numbers, but usually documented "
13044 "without any leading \"0x\" which might be confusing."
13048 #: ../fish/guestfish-actions.pod:3737
13049 msgid "part-set-name"
13050 msgstr "part-set-name"
13053 #: ../fish/guestfish-actions.pod:3739
13056 " part-set-name device partnum name\n"
13061 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5698
13063 "This sets the partition name on partition numbered C<partnum> on device "
13064 "C<device>. Note that partitions are numbered from 1."
13068 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5701
13070 "The partition name can only be set on certain types of partition table. "
13071 "This works on C<gpt> but not on C<mbr> partitions."
13075 #: ../fish/guestfish-actions.pod:3747
13076 msgid "part-to-dev"
13077 msgstr "part-to-dev"
13080 #: ../fish/guestfish-actions.pod:3749
13083 " part-to-dev partition\n"
13086 " part-to-dev розділ\n"
13090 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5714
13092 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13093 "partition number, returning the device name (eg. \"/dev/sdb\")."
13097 #: ../fish/guestfish-actions.pod:3755
13099 "The named partition must exist, for example as a string returned from L</"
13100 "list-partitions>."
13104 #: ../fish/guestfish-actions.pod:3758
13105 msgid "ping-daemon"
13106 msgstr "ping-daemon"
13109 #: ../fish/guestfish-actions.pod:3760
13119 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5731
13121 "This is a test probe into the guestfs daemon running inside the qemu "
13122 "subprocess. Calling this function checks that the daemon responds to the "
13123 "ping message, without affecting the daemon or attached block device(s) in "
13128 #: ../fish/guestfish-actions.pod:3767
13133 #: ../fish/guestfish-actions.pod:3769
13136 " pread path count offset\n"
13141 #: ../fish/guestfish-actions.pod:3771 ../src/guestfs-actions.pod:5749
13143 "This command lets you read part of a file. It reads C<count> bytes of the "
13144 "file, starting at C<offset>, from file C<path>."
13148 #: ../fish/guestfish-actions.pod:3774 ../fish/guestfish-actions.pod:3789
13149 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5778
13151 "This may read fewer bytes than requested. For further details see the "
13152 "L<pread(2)> system call."
13156 #: ../fish/guestfish-actions.pod:3777
13157 msgid "See also L</pwrite>, L</pread-device>."
13158 msgstr "Див. також L</pwrite>, L</pread-device>."
13161 #: ../fish/guestfish-actions.pod:3782
13162 msgid "pread-device"
13163 msgstr "pread-device"
13166 #: ../fish/guestfish-actions.pod:3784
13169 " pread-device device count offset\n"
13174 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5775
13176 "This command lets you read part of a file. It reads C<count> bytes of "
13177 "C<device>, starting at C<offset>."
13181 #: ../fish/guestfish-actions.pod:3792
13182 msgid "See also L</pread>."
13183 msgstr "Див. також L</pread>."
13186 #: ../fish/guestfish-actions.pod:3797
13191 #: ../fish/guestfish-actions.pod:3799
13194 " pvcreate device\n"
13197 " pvcreate пристрій\n"
13201 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5798
13203 "This creates an LVM physical volume on the named C<device>, where C<device> "
13204 "should usually be a partition name such as C</dev/sda1>."
13208 #: ../fish/guestfish-actions.pod:3805
13213 #: ../fish/guestfish-actions.pod:3807
13216 " pvremove device\n"
13219 " pvremove пристрій\n"
13223 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5812
13225 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13230 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5815
13232 "The implementation uses the C<pvremove> command which refuses to wipe "
13233 "physical volumes that contain any volume groups, so you have to remove those "
13238 #: ../fish/guestfish-actions.pod:3816
13243 #: ../fish/guestfish-actions.pod:3818
13246 " pvresize device\n"
13249 " pvresize пристрій\n"
13253 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5829
13255 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13256 "the new size of the underlying device."
13260 #: ../fish/guestfish-actions.pod:3823
13261 msgid "pvresize-size"
13262 msgstr "pvresize-size"
13265 #: ../fish/guestfish-actions.pod:3825
13268 " pvresize-size device size\n"
13273 #: ../fish/guestfish-actions.pod:3827
13275 "This command is the same as L</pvresize> except that it allows you to "
13276 "specify the new size (in bytes) explicitly."
13280 #: ../fish/guestfish-actions.pod:3830
13285 #: ../fish/guestfish-actions.pod:3832
13295 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5855
13297 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13302 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5858
13304 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13309 #: ../fish/guestfish-actions.pod:3840
13310 msgid "See also L</pvs-full>."
13311 msgstr "Див. також L</pvs-full>."
13314 #: ../fish/guestfish-actions.pod:3842
13319 #: ../fish/guestfish-actions.pod:3844
13329 #: ../fish/guestfish-actions.pod:3846 ../src/guestfs-actions.pod:5874
13331 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13332 "(8)> command. The \"full\" version includes all fields."
13336 #: ../fish/guestfish-actions.pod:3849
13341 #: ../fish/guestfish-actions.pod:3851
13347 " pvuuid пристрій\n"
13351 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5889
13352 msgid "This command returns the UUID of the LVM PV C<device>."
13356 #: ../fish/guestfish-actions.pod:3855
13361 #: ../fish/guestfish-actions.pod:3857
13364 " pwrite path content offset\n"
13369 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:5905
13371 "This command writes to part of a file. It writes the data buffer C<content> "
13372 "to the file C<path> starting at offset C<offset>."
13376 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5908
13378 "This command implements the L<pwrite(2)> system call, and like that system "
13379 "call it may not write the full data requested. The return value is the "
13380 "number of bytes that were actually written to the file. This could even be "
13381 "0, although short writes are unlikely for regular files in ordinary "
13386 #: ../fish/guestfish-actions.pod:3868
13387 msgid "See also L</pread>, L</pwrite-device>."
13388 msgstr "Див. також L</pread>, L</pwrite-device>."
13391 #: ../fish/guestfish-actions.pod:3873
13392 msgid "pwrite-device"
13393 msgstr "pwrite-device"
13396 #: ../fish/guestfish-actions.pod:3875
13399 " pwrite-device device content offset\n"
13404 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5932
13406 "This command writes to part of a device. It writes the data buffer "
13407 "C<content> to C<device> starting at offset C<offset>."
13411 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5935
13413 "This command implements the L<pwrite(2)> system call, and like that system "
13414 "call it may not write the full data requested (although short writes to disk "
13415 "devices and partitions are probably impossible with standard Linux kernels)."
13419 #: ../fish/guestfish-actions.pod:3885
13420 msgid "See also L</pwrite>."
13421 msgstr "Див. також L</pwrite>."
13424 #: ../fish/guestfish-actions.pod:3890
13429 #: ../fish/guestfish-actions.pod:3892
13432 " read-file path\n"
13435 " read-file шлях\n"
13439 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5956
13440 msgid "This calls returns the contents of the file C<path> as a buffer."
13444 #: ../fish/guestfish-actions.pod:3897
13446 "Unlike L</cat>, this function can correctly handle files that contain "
13447 "embedded ASCII NUL characters. However unlike L</download>, this function "
13448 "is limited in the total size of file that can be handled."
13452 #: ../fish/guestfish-actions.pod:3905
13454 msgstr "read-lines"
13457 #: ../fish/guestfish-actions.pod:3907
13460 " read-lines path\n"
13463 " read-lines шлях\n"
13467 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5981
13469 "The file contents are returned as a list of lines. Trailing C<LF> and "
13470 "C<CRLF> character sequences are I<not> returned."
13474 #: ../fish/guestfish-actions.pod:3914
13476 "Note that this function cannot correctly handle binary files (specifically, "
13477 "files containing C<\\0> character which is treated as end of line). For "
13478 "those you need to use the L</read-file> function which has a more complex "
13483 #: ../fish/guestfish-actions.pod:3919
13488 #: ../fish/guestfish-actions.pod:3921
13494 " readdir каталог\n"
13498 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6001
13499 msgid "This returns the list of directory entries in directory C<dir>."
13503 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6003
13505 "All entries in the directory are returned, including C<.> and C<..>. The "
13506 "entries are I<not> sorted, but returned in the same order as the underlying "
13511 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6007
13513 "Also this call returns basic file type information about each file. The "
13514 "C<ftyp> field will contain one of the following characters:"
13518 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6012
13523 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6014
13524 msgid "Block special"
13525 msgstr "Блоковий особливий"
13528 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6016
13533 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6018
13534 msgid "Char special"
13535 msgstr "Символьний особливий"
13538 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6020
13543 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6022
13548 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6024
13553 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6026
13554 msgid "FIFO (named pipe)"
13555 msgstr "FIFO (іменований канал)"
13558 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6028
13563 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6030
13564 msgid "Symbolic link"
13565 msgstr "Символічне посилання"
13568 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6032
13573 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6034
13574 msgid "Regular file"
13575 msgstr "Звичайний файл"
13578 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6036
13583 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6038
13588 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6040
13593 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6042
13594 msgid "Unknown file type"
13595 msgstr "Невідомий тип файла"
13598 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6044
13603 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6046
13605 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13609 #: ../fish/guestfish-actions.pod:3973
13611 "This function is primarily intended for use by programs. To get a simple "
13612 "list of names, use L</ls>. To get a printable directory for human "
13613 "consumption, use L</ll>."
13617 #: ../fish/guestfish-actions.pod:3977
13622 #: ../fish/guestfish-actions.pod:3979
13632 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6067
13633 msgid "This command reads the target of a symbolic link."
13637 #: ../fish/guestfish-actions.pod:3983
13638 msgid "readlinklist"
13639 msgstr "readlinklist"
13642 #: ../fish/guestfish-actions.pod:3985
13645 " readlinklist path 'names ...'\n"
13650 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6081
13652 "This call allows you to do a C<readlink> operation on multiple files, where "
13653 "all files are in the directory C<path>. C<names> is the list of files from "
13658 #: ../fish/guestfish-actions.pod:3991 ../src/guestfs-actions.pod:6085
13660 "On return you get a list of strings, with a one-to-one correspondence to the "
13661 "C<names> list. Each string is the value of the symbolic link."
13665 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6089
13667 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13668 "result string is the empty string C<\"\">. However the whole operation is "
13669 "completed even if there were C<readlink(2)> errors, and so you can call this "
13670 "function with names where you don't know if they are symbolic links already "
13671 "(albeit slightly less efficient)."
13675 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6096
13677 "This call is intended for programs that want to efficiently list a directory "
13678 "contents without making many round-trips. Very long directory listings "
13679 "might cause the protocol message size to be exceeded, causing this call to "
13680 "fail. The caller must split up such requests into smaller groups of names."
13684 #: ../fish/guestfish-actions.pod:4009
13689 #: ../fish/guestfish-actions.pod:4011
13699 #: ../fish/guestfish-actions.pod:4013 ../src/guestfs-actions.pod:6115
13701 "Return the canonicalized absolute pathname of C<path>. The returned path "
13702 "has no C<.>, C<..> or symbolic link path elements."
13706 #: ../fish/guestfish-actions.pod:4016
13707 msgid "removexattr"
13708 msgstr "removexattr"
13711 #: ../fish/guestfish-actions.pod:4018
13714 " removexattr xattr path\n"
13719 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6130
13721 "This call removes the extended attribute named C<xattr> of the file C<path>."
13725 #: ../fish/guestfish-actions.pod:4023
13726 msgid "See also: L</lremovexattr>, L<attr(5)>."
13727 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13730 #: ../fish/guestfish-actions.pod:4025
13735 #: ../fish/guestfish-actions.pod:4027
13738 " resize2fs device\n"
13741 " resize2fs пристрій\n"
13745 #: ../fish/guestfish-actions.pod:4029 ../src/guestfs-actions.pod:6145
13747 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13748 "underlying device."
13752 #: ../fish/guestfish-actions.pod:4032
13754 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13755 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13756 "gives an error about this and sometimes not. In any case, it is always safe "
13757 "to call L</e2fsck-f> before calling this function."
13761 #: ../fish/guestfish-actions.pod:4038
13762 msgid "resize2fs-M"
13763 msgstr "resize2fs-M"
13766 #: ../fish/guestfish-actions.pod:4040
13769 " resize2fs-M device\n"
13772 " resize2fs-M пристрій\n"
13776 #: ../fish/guestfish-actions.pod:4042
13778 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13779 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13784 #: ../fish/guestfish-actions.pod:4046
13786 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13787 "and read the C<Block size> and C<Block count> values. These two numbers, "
13788 "multiplied together, give the resulting size of the minimal filesystem in "
13793 #: ../fish/guestfish-actions.pod:4051
13794 msgid "resize2fs-size"
13795 msgstr "resize2fs-size"
13798 #: ../fish/guestfish-actions.pod:4053
13801 " resize2fs-size device size\n"
13806 #: ../fish/guestfish-actions.pod:4055
13808 "This command is the same as L</resize2fs> except that it allows you to "
13809 "specify the new size (in bytes) explicitly."
13813 #: ../fish/guestfish-actions.pod:4058
13818 #: ../fish/guestfish-actions.pod:4060
13828 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6197
13829 msgid "Remove the single file C<path>."
13833 #: ../fish/guestfish-actions.pod:4064
13838 #: ../fish/guestfish-actions.pod:4066
13848 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6209
13850 "Remove the file or directory C<path>, recursively removing the contents if "
13851 "its a directory. This is like the C<rm -rf> shell command."
13855 #: ../fish/guestfish-actions.pod:4072
13860 #: ../fish/guestfish-actions.pod:4074
13870 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6223
13871 msgid "Remove the single directory C<path>."
13875 #: ../fish/guestfish-actions.pod:4078
13876 msgid "rmmountpoint"
13877 msgstr "rmmountpoint"
13880 #: ../fish/guestfish-actions.pod:4080
13883 " rmmountpoint exemptpath\n"
13888 #: ../fish/guestfish-actions.pod:4082
13890 "This calls removes a mountpoint that was previously created with L</"
13891 "mkmountpoint>. See L</mkmountpoint> for full details."
13895 #: ../fish/guestfish-actions.pod:4086
13896 msgid "scrub-device"
13897 msgstr "scrub-device"
13900 #: ../fish/guestfish-actions.pod:4088
13903 " scrub-device device\n"
13906 " scrub-device пристрій\n"
13910 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6249
13912 "This command writes patterns over C<device> to make data retrieval more "
13917 #: ../fish/guestfish-actions.pod:4093 ../fish/guestfish-actions.pod:4108
13918 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6252
13919 #: ../src/guestfs-actions.pod:6273 ../src/guestfs-actions.pod:6292
13921 "It is an interface to the L<scrub(1)> program. See that manual page for "
13926 #: ../fish/guestfish-actions.pod:4099
13928 msgstr "scrub-file"
13931 #: ../fish/guestfish-actions.pod:4101
13934 " scrub-file file\n"
13937 " scrub-file файл\n"
13941 #: ../fish/guestfish-actions.pod:4103 ../src/guestfs-actions.pod:6268
13943 "This command writes patterns over a file to make data retrieval more "
13948 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6271
13949 msgid "The file is I<removed> after scrubbing."
13953 #: ../fish/guestfish-actions.pod:4111
13954 msgid "scrub-freespace"
13955 msgstr "scrub-freespace"
13958 #: ../fish/guestfish-actions.pod:4113
13961 " scrub-freespace dir\n"
13964 " scrub-freespace каталог\n"
13968 #: ../fish/guestfish-actions.pod:4115
13970 "This command creates the directory C<dir> and then fills it with files until "
13971 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13972 "deletes them. The intention is to scrub any free space on the partition "
13973 "containing C<dir>."
13977 #: ../fish/guestfish-actions.pod:4124
13979 msgstr "set-append"
13982 #: ../fish/guestfish-actions.pod:4126
13987 #: ../fish/guestfish-actions.pod:4128
13990 " set-append append\n"
13995 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6305
13997 "This function is used to add additional options to the guest kernel command "
14002 #: ../fish/guestfish-actions.pod:4133 ../src/guestfs-actions.pod:6308
14004 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14005 "environment variable."
14009 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6311
14011 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14012 "(libguestfs always adds a few of its own)."
14016 #: ../fish/guestfish-actions.pod:4139
14017 msgid "set-attach-method"
14018 msgstr "set-attach-method"
14021 #: ../fish/guestfish-actions.pod:4141
14022 msgid "attach-method"
14026 #: ../fish/guestfish-actions.pod:4143
14029 " set-attach-method attachmethod\n"
14034 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6324
14036 "Set the method that libguestfs uses to connect to the back end guestfsd "
14037 "daemon. Possible methods are:"
14041 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6329
14042 #: ../src/guestfs.pod:2823
14043 msgid "C<appliance>"
14044 msgstr "C<appliance>"
14047 #: ../fish/guestfish-actions.pod:4152 ../src/guestfs-actions.pod:6331
14049 "Launch an appliance and connect to it. This is the ordinary method and the "
14054 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6334
14055 msgid "C<unix:I<path>>"
14056 msgstr "C<unix:I<шлях>>"
14059 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6336
14060 msgid "Connect to the Unix domain socket I<path>."
14061 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
14064 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6338
14066 "This method lets you connect to an existing daemon or (using virtio-serial) "
14067 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
14068 "RUNNING DAEMONS>."
14072 #: ../fish/guestfish-actions.pod:4165
14073 msgid "set-autosync"
14074 msgstr "set-autosync"
14077 #: ../fish/guestfish-actions.pod:4167
14082 #: ../fish/guestfish-actions.pod:4169
14085 " set-autosync true|false\n"
14088 " set-autosync true|false\n"
14092 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6354
14094 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
14095 "effort attempt to make filesystems consistent and synchronized when the "
14096 "handle is closed (also if the program exits without closing handles)."
14100 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6359
14102 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14103 "disabled by default)."
14107 #: ../fish/guestfish-actions.pod:4179
14109 msgstr "set-direct"
14112 #: ../fish/guestfish-actions.pod:4181
14117 #: ../fish/guestfish-actions.pod:4183
14120 " set-direct true|false\n"
14123 " set-direct true|false\n"
14127 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6372
14129 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14130 "passed directly through to the appliance once it is launched."
14134 #: ../fish/guestfish-actions.pod:4189
14136 "One consequence of this is that log messages aren't caught by the library "
14137 "and handled by L</set-log-message-callback>, but go straight to stdout."
14141 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6380
14142 msgid "You probably don't want to use this unless you know what you are doing."
14146 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6383
14147 msgid "The default is disabled."
14151 #: ../fish/guestfish-actions.pod:4198
14152 msgid "set-e2label"
14153 msgstr "set-e2label"
14156 #: ../fish/guestfish-actions.pod:4200
14159 " set-e2label device label\n"
14164 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6396
14166 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14167 "C<label>. Filesystem labels are limited to 16 characters."
14171 #: ../fish/guestfish-actions.pod:4206
14173 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14174 "label on a filesystem."
14178 #: ../fish/guestfish-actions.pod:4209
14180 msgstr "set-e2uuid"
14183 #: ../fish/guestfish-actions.pod:4211
14186 " set-e2uuid device uuid\n"
14191 #: ../fish/guestfish-actions.pod:4213 ../src/guestfs-actions.pod:6414
14193 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14194 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
14195 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14199 #: ../fish/guestfish-actions.pod:4218
14201 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14202 "UUID of a filesystem."
14206 #: ../fish/guestfish-actions.pod:4221
14207 msgid "set-memsize"
14208 msgstr "set-memsize"
14211 #: ../fish/guestfish-actions.pod:4223
14216 #: ../fish/guestfish-actions.pod:4225
14219 " set-memsize memsize\n"
14224 #: ../fish/guestfish-actions.pod:4227
14226 "This sets the memory size in megabytes allocated to the qemu subprocess. "
14227 "This only has any effect if called before L</launch>."
14231 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6436
14233 "You can also change this by setting the environment variable "
14234 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14238 #: ../fish/guestfish-actions.pod:4238
14239 msgid "set-network"
14240 msgstr "set-network"
14243 #: ../fish/guestfish-actions.pod:4240
14248 #: ../fish/guestfish-actions.pod:4242
14251 " set-network true|false\n"
14254 " set-network true|false\n"
14258 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6453
14260 "If C<network> is true, then the network is enabled in the libguestfs "
14261 "appliance. The default is false."
14265 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6456
14267 "This affects whether commands are able to access the network (see L<guestfs"
14268 "(3)/RUNNING COMMANDS>)."
14272 #: ../fish/guestfish-actions.pod:4250
14274 "You must call this before calling L</launch>, otherwise it has no effect."
14278 #: ../fish/guestfish-actions.pod:4253
14283 #: ../fish/guestfish-actions.pod:4257
14286 " set-path searchpath\n"
14291 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6472
14292 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14296 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6474
14298 "The default is C<$libdir/guestfs> unless overridden by setting "
14299 "C<LIBGUESTFS_PATH> environment variable."
14303 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6477
14304 msgid "Setting C<path> to C<NULL> restores the default path."
14308 #: ../fish/guestfish-actions.pod:4266
14313 #: ../fish/guestfish-actions.pod:4268
14318 #: ../fish/guestfish-actions.pod:4270
14321 " set-pgroup true|false\n"
14326 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6489
14328 "If C<pgroup> is true, child processes are placed into their own process "
14333 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6492
14335 "The practical upshot of this is that signals like C<SIGINT> (from users "
14336 "pressing C<^C>) won't be received by the child process."
14340 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6495
14342 "The default for this flag is false, because usually you want C<^C> to kill "
14347 #: ../fish/guestfish-actions.pod:4281
14352 #: ../fish/guestfish-actions.pod:4283
14357 #: ../fish/guestfish-actions.pod:4285
14367 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6508
14368 msgid "Set the qemu binary that we will use."
14372 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6510
14374 "The default is chosen when the library was compiled by the configure script."
14378 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6513
14380 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14385 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6516
14386 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14390 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6518
14392 "Note that you should call this function as early as possible after creating "
14393 "the handle. This is because some pre-launch operations depend on testing "
14394 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14395 "don't retest features, and so you might see inconsistent results. Using the "
14396 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14397 "the qemu binary at the same time as the handle is created."
14401 #: ../fish/guestfish-actions.pod:4305
14402 msgid "set-recovery-proc"
14403 msgstr "set-recovery-proc"
14406 #: ../fish/guestfish-actions.pod:4307
14407 msgid "recovery-proc"
14408 msgstr "recovery-proc"
14411 #: ../fish/guestfish-actions.pod:4309
14414 " set-recovery-proc true|false\n"
14417 " set-recovery-proc true|false\n"
14421 #: ../fish/guestfish-actions.pod:4311
14423 "If this is called with the parameter C<false> then L</launch> does not "
14424 "create a recovery process. The purpose of the recovery process is to stop "
14425 "runaway qemu processes in the case where the main program aborts abruptly."
14429 #: ../fish/guestfish-actions.pod:4316
14431 "This only has any effect if called before L</launch>, and the default is "
14436 #: ../fish/guestfish-actions.pod:4319 ../src/guestfs-actions.pod:6544
14438 "About the only time when you would want to disable this is if the main "
14439 "process will fork itself into the background (\"daemonize\" itself). In "
14440 "this case the recovery process thinks that the main program has disappeared "
14441 "and so kills qemu, which is not very helpful."
14445 #: ../fish/guestfish-actions.pod:4325
14446 msgid "set-selinux"
14447 msgstr "set-selinux"
14450 #: ../fish/guestfish-actions.pod:4327
14455 #: ../fish/guestfish-actions.pod:4329
14458 " set-selinux true|false\n"
14461 " set-selinux true|false\n"
14465 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6560
14467 "This sets the selinux flag that is passed to the appliance at boot time. "
14468 "The default is C<selinux=0> (disabled)."
14472 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6563
14474 "Note that if SELinux is enabled, it is always in Permissive mode "
14475 "(C<enforcing=0>)."
14479 #: ../fish/guestfish-actions.pod:4340
14481 #| msgid "set-path"
14486 #: ../fish/guestfish-actions.pod:4342
14491 #: ../fish/guestfish-actions.pod:4344
14494 #| " set-qemu qemu\n"
14504 #: ../fish/guestfish-actions.pod:4346 ../src/guestfs-actions.pod:6579
14506 "Change the number of virtual CPUs assigned to the appliance. The default is "
14507 "C<1>. Increasing this may improve performance, though often it has no "
14512 #: ../fish/guestfish-actions.pod:4350
14513 msgid "This function must be called before L</launch>."
14517 #: ../fish/guestfish-actions.pod:4352
14522 #: ../fish/guestfish-actions.pod:4354
14527 #: ../fish/guestfish-actions.pod:4356
14530 " set-trace true|false\n"
14533 " set-trace true|false\n"
14537 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6593
14539 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14540 "return values are traced."
14544 #: ../fish/guestfish-actions.pod:4361 ../src/guestfs-actions.pod:6596
14546 "If you want to trace C API calls into libguestfs (and other libraries) then "
14547 "possibly a better way is to use the external ltrace(1) command."
14551 #: ../fish/guestfish-actions.pod:4365 ../src/guestfs-actions.pod:6600
14553 "Command traces are disabled unless the environment variable "
14554 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14558 #: ../fish/guestfish-actions.pod:4368
14560 "Trace messages are normally sent to C<stderr>, unless you register a "
14561 "callback to send them somewhere else (see L</set-event-callback>)."
14565 #: ../fish/guestfish-actions.pod:4372
14566 msgid "set-verbose"
14567 msgstr "set-verbose"
14570 #: ../fish/guestfish-actions.pod:4374
14575 #: ../fish/guestfish-actions.pod:4376
14578 " set-verbose true|false\n"
14581 " set-verbose true|false\n"
14585 #: ../fish/guestfish-actions.pod:4378 ../src/guestfs-actions.pod:6617
14586 msgid "If C<verbose> is true, this turns on verbose messages."
14590 #: ../fish/guestfish-actions.pod:4380 ../src/guestfs-actions.pod:6619
14592 "Verbose messages are disabled unless the environment variable "
14593 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14597 #: ../fish/guestfish-actions.pod:4383
14599 "Verbose messages are normally sent to C<stderr>, unless you register a "
14600 "callback to send them somewhere else (see L</set-event-callback>)."
14604 #: ../fish/guestfish-actions.pod:4387
14609 #: ../fish/guestfish-actions.pod:4389
14612 " setcon context\n"
14615 " setcon контекст\n"
14619 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6636
14621 "This sets the SELinux security context of the daemon to the string "
14626 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6639
14627 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14631 #: ../fish/guestfish-actions.pod:4396
14636 #: ../fish/guestfish-actions.pod:4398
14639 " setxattr xattr val vallen path\n"
14644 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6654
14646 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14647 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14651 #: ../fish/guestfish-actions.pod:4404
14652 msgid "See also: L</lsetxattr>, L<attr(5)>."
14653 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14656 #: ../fish/guestfish-actions.pod:4406
14661 #: ../fish/guestfish-actions.pod:4408
14664 " sfdisk device cyls heads sectors 'lines ...'\n"
14669 #: ../fish/guestfish-actions.pod:4410 ../src/guestfs-actions.pod:6681
14671 "This is a direct interface to the L<sfdisk(8)> program for creating "
14672 "partitions on block devices."
14676 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6684
14677 msgid "C<device> should be a block device, for example C</dev/sda>."
14681 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6686
14683 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14684 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14685 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14686 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14687 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14688 "the kernel) cannot work out the right geometry and you will need to tell it."
14692 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6694
14694 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14695 "refer to the L<sfdisk(8)> manpage."
14699 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6697
14701 "To create a single partition occupying the whole disk, you would pass "
14702 "C<lines> as a single element list, when the single element being the string "
14707 #: ../fish/guestfish-actions.pod:4430
14708 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14709 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14712 #: ../fish/guestfish-actions.pod:4436 ../fish/guestfish-actions.pod:4459
14713 #: ../fish/guestfish-actions.pod:4481
14715 "I<This function is deprecated.> In new code, use the L</part_add> call "
14720 #: ../fish/guestfish-actions.pod:4443
14725 #: ../fish/guestfish-actions.pod:4445
14728 " sfdiskM device 'lines ...'\n"
14733 #: ../fish/guestfish-actions.pod:4447
14735 "This is a simplified interface to the L</sfdisk> command, where partition "
14736 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14737 "you don't need to specify the cyls, heads and sectors parameters which were "
14738 "rarely if ever used anyway."
14742 #: ../fish/guestfish-actions.pod:4453
14743 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14745 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14748 #: ../fish/guestfish-actions.pod:4466
14753 #: ../fish/guestfish-actions.pod:4468
14756 " sfdisk-N device partnum cyls heads sectors line\n"
14761 #: ../fish/guestfish-actions.pod:4470 ../src/guestfs-actions.pod:6759
14763 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14764 "(note: C<n> counts from 1)."
14768 #: ../fish/guestfish-actions.pod:4473
14770 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14771 "cyls/heads/sectors parameters."
14775 #: ../fish/guestfish-actions.pod:4476
14776 msgid "See also: L</part-add>"
14777 msgstr "Див. також L</part-add>"
14780 #: ../fish/guestfish-actions.pod:4488
14781 msgid "sfdisk-disk-geometry"
14782 msgstr "sfdisk-disk-geometry"
14785 #: ../fish/guestfish-actions.pod:4490
14788 " sfdisk-disk-geometry device\n"
14791 " sfdisk-disk-geometry пристрій\n"
14795 #: ../fish/guestfish-actions.pod:4492
14797 "This displays the disk geometry of C<device> read from the partition table. "
14798 "Especially in the case where the underlying block device has been resized, "
14799 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14800 "kernel-geometry>)."
14804 #: ../fish/guestfish-actions.pod:4497 ../fish/guestfish-actions.pod:4506
14805 #: ../src/guestfs-actions.pod:6785 ../src/guestfs-actions.pod:6801
14806 msgid "The result is in human-readable format, and not designed to be parsed."
14810 #: ../fish/guestfish-actions.pod:4500
14811 msgid "sfdisk-kernel-geometry"
14812 msgstr "sfdisk-kernel-geometry"
14815 #: ../fish/guestfish-actions.pod:4502
14818 " sfdisk-kernel-geometry device\n"
14821 " sfdisk-kernel-geometry пристрій\n"
14825 #: ../fish/guestfish-actions.pod:4504 ../src/guestfs-actions.pod:6799
14826 msgid "This displays the kernel's idea of the geometry of C<device>."
14830 #: ../fish/guestfish-actions.pod:4509
14835 #: ../fish/guestfish-actions.pod:4511
14838 " sfdisk-l device\n"
14841 " sfdisk-l пристрій\n"
14845 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6822
14847 "This displays the partition table on C<device>, in the human-readable output "
14848 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14852 #: ../fish/guestfish-actions.pod:4517
14853 msgid "See also: L</part-list>"
14854 msgstr "Див. також L</part-list>"
14857 #: ../fish/guestfish-actions.pod:4519
14859 "I<This function is deprecated.> In new code, use the L</part_list> call "
14864 #: ../fish/guestfish-actions.pod:4526
14869 #: ../fish/guestfish-actions.pod:4528
14879 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6839
14881 "This call runs a command from the guest filesystem via the guest's C</bin/"
14886 #: ../fish/guestfish-actions.pod:4533
14887 msgid "This is like L</command>, but passes the command to:"
14891 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6844
14894 " /bin/sh -c \"command\"\n"
14899 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6846
14901 "Depending on the guest's shell, this usually results in wildcards being "
14902 "expanded, shell expressions being interpolated and so on."
14906 #: ../fish/guestfish-actions.pod:4541
14907 msgid "All the provisos about L</command> apply to this call."
14911 #: ../fish/guestfish-actions.pod:4543
14916 #: ../fish/guestfish-actions.pod:4545
14919 " sh-lines command\n"
14922 " sh-lines команда\n"
14926 #: ../fish/guestfish-actions.pod:4547
14927 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14931 #: ../fish/guestfish-actions.pod:4550
14932 msgid "See also: L</command-lines>"
14933 msgstr "Див. також L</command-lines>"
14936 #: ../fish/guestfish-actions.pod:4552
14941 #: ../fish/guestfish-actions.pod:4554
14947 " sleep час_у_секундах\n"
14951 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:6880
14952 msgid "Sleep for C<secs> seconds."
14956 #: ../fish/guestfish-actions.pod:4558
14961 #: ../fish/guestfish-actions.pod:4560
14971 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6894
14972 msgid "This is the same as the C<stat(2)> system call."
14976 #: ../fish/guestfish-actions.pod:4566
14981 #: ../fish/guestfish-actions.pod:4568
14991 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6908
14993 "Returns file system statistics for any mounted file system. C<path> should "
14994 "be a file or directory in the mounted file system (typically it is the mount "
14995 "point itself, but it doesn't need to be)."
14999 #: ../fish/guestfish-actions.pod:4574 ../src/guestfs-actions.pod:6912
15000 msgid "This is the same as the C<statvfs(2)> system call."
15004 #: ../fish/guestfish-actions.pod:4576
15009 #: ../fish/guestfish-actions.pod:4578
15019 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:6926
15021 "This runs the L<strings(1)> command on a file and returns the list of "
15022 "printable strings found."
15026 #: ../fish/guestfish-actions.pod:4586
15031 #: ../fish/guestfish-actions.pod:4588
15034 " strings-e encoding path\n"
15037 " strings-e кодування шлях\n"
15041 #: ../fish/guestfish-actions.pod:4590
15043 "This is like the L</strings> command, but allows you to specify the encoding "
15044 "of strings that are looked for in the source file C<path>."
15048 #: ../fish/guestfish-actions.pod:4594 ../src/guestfs-actions.pod:6949
15049 msgid "Allowed encodings are:"
15050 msgstr "Можливими кодуваннями є:"
15053 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:6953
15058 #: ../fish/guestfish-actions.pod:4600
15060 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15061 "ISO-8859-X (this is what L</strings> uses)."
15065 #: ../fish/guestfish-actions.pod:4603 ../src/guestfs-actions.pod:6958
15070 #: ../fish/guestfish-actions.pod:4605 ../src/guestfs-actions.pod:6960
15071 msgid "Single 8-bit-byte characters."
15072 msgstr "Окремі 8-бітові-байтові символи."
15075 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6962
15080 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6964
15081 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15085 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6967
15086 msgid "l (lower case letter L)"
15090 #: ../fish/guestfish-actions.pod:4614 ../src/guestfs-actions.pod:6969
15092 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
15093 "examining binaries in Windows guests."
15097 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6972
15102 #: ../fish/guestfish-actions.pod:4619 ../src/guestfs-actions.pod:6974
15103 msgid "32-bit big endian such as UCS-4BE."
15107 #: ../fish/guestfish-actions.pod:4621 ../src/guestfs-actions.pod:6976
15112 #: ../fish/guestfish-actions.pod:4623 ../src/guestfs-actions.pod:6978
15113 msgid "32-bit little endian such as UCS-4LE."
15117 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6982
15118 msgid "The returned strings are transcoded to UTF-8."
15122 #: ../fish/guestfish-actions.pod:4632
15123 msgid "swapoff-device"
15124 msgstr "swapoff-device"
15127 #: ../fish/guestfish-actions.pod:4634
15130 " swapoff-device device\n"
15133 " swapoff-device пристрій\n"
15137 #: ../fish/guestfish-actions.pod:4636
15139 "This command disables the libguestfs appliance swap device or partition "
15140 "named C<device>. See L</swapon-device>."
15144 #: ../fish/guestfish-actions.pod:4640
15145 msgid "swapoff-file"
15146 msgstr "swapoff-file"
15149 #: ../fish/guestfish-actions.pod:4642
15152 " swapoff-file file\n"
15155 " swapoff-file файл\n"
15159 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7013
15160 msgid "This command disables the libguestfs appliance swap on file."
15164 #: ../fish/guestfish-actions.pod:4646
15165 msgid "swapoff-label"
15166 msgstr "swapoff-label"
15169 #: ../fish/guestfish-actions.pod:4648
15172 " swapoff-label label\n"
15175 " swapoff-label мітка\n"
15179 #: ../fish/guestfish-actions.pod:4650 ../src/guestfs-actions.pod:7025
15181 "This command disables the libguestfs appliance swap on labeled swap "
15186 #: ../fish/guestfish-actions.pod:4653
15187 msgid "swapoff-uuid"
15188 msgstr "swapoff-uuid"
15191 #: ../fish/guestfish-actions.pod:4655
15194 " swapoff-uuid uuid\n"
15197 " swapoff-uuid uuid\n"
15201 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7038
15203 "This command disables the libguestfs appliance swap partition with the given "
15208 #: ../fish/guestfish-actions.pod:4660
15209 msgid "swapon-device"
15210 msgstr "swapon-device"
15213 #: ../fish/guestfish-actions.pod:4662
15216 " swapon-device device\n"
15219 " swapon-device пристрій\n"
15223 #: ../fish/guestfish-actions.pod:4664
15225 "This command enables the libguestfs appliance to use the swap device or "
15226 "partition named C<device>. The increased memory is made available for all "
15227 "commands, for example those run using L</command> or L</sh>."
15231 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7056
15233 "Note that you should not swap to existing guest swap partitions unless you "
15234 "know what you are doing. They may contain hibernation information, or other "
15235 "information that the guest doesn't want you to trash. You also risk leaking "
15236 "information about the host to the guest this way. Instead, attach a new "
15237 "host device to the guest and swap on that."
15241 #: ../fish/guestfish-actions.pod:4676
15242 msgid "swapon-file"
15243 msgstr "swapon-file"
15246 #: ../fish/guestfish-actions.pod:4678
15249 " swapon-file file\n"
15252 " swapon-file файл\n"
15256 #: ../fish/guestfish-actions.pod:4680
15258 "This command enables swap to a file. See L</swapon-device> for other notes."
15262 #: ../fish/guestfish-actions.pod:4683
15263 msgid "swapon-label"
15264 msgstr "swapon-label"
15267 #: ../fish/guestfish-actions.pod:4685
15270 " swapon-label label\n"
15273 " swapon-label мітка\n"
15277 #: ../fish/guestfish-actions.pod:4687
15279 "This command enables swap to a labeled swap partition. See L</swapon-"
15280 "device> for other notes."
15284 #: ../fish/guestfish-actions.pod:4690
15285 msgid "swapon-uuid"
15286 msgstr "swapon-uuid"
15289 #: ../fish/guestfish-actions.pod:4692
15292 " swapon-uuid uuid\n"
15295 " swapon-uuid uuid\n"
15299 #: ../fish/guestfish-actions.pod:4694
15301 "This command enables swap to a swap partition with the given UUID. See L</"
15302 "swapon-device> for other notes."
15306 #: ../fish/guestfish-actions.pod:4697
15311 #: ../fish/guestfish-actions.pod:4699
15321 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7111
15323 "This syncs the disk, so that any writes are flushed through to the "
15324 "underlying disk image."
15328 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7114
15330 "You should always call this if you have modified a disk image, before "
15331 "closing the handle."
15335 #: ../fish/guestfish-actions.pod:4707
15340 #: ../fish/guestfish-actions.pod:4709
15350 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7127
15352 "This command returns up to the last 10 lines of a file as a list of strings."
15356 #: ../fish/guestfish-actions.pod:4717
15361 #: ../fish/guestfish-actions.pod:4719
15364 " tail-n nrlines path\n"
15369 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7146
15371 "If the parameter C<nrlines> is a positive number, this returns the last "
15372 "C<nrlines> lines of the file C<path>."
15376 #: ../fish/guestfish-actions.pod:4724 ../src/guestfs-actions.pod:7149
15378 "If the parameter C<nrlines> is a negative number, this returns lines from "
15379 "the file C<path>, starting with the C<-nrlines>th line."
15383 #: ../fish/guestfish-actions.pod:4732
15388 #: ../fish/guestfish-actions.pod:4734
15391 " tar-in (tarfile|-) directory\n"
15394 " tar-in (файл_tar|-) каталог\n"
15398 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7170
15400 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15401 "tar file) into C<directory>."
15405 #: ../fish/guestfish-actions.pod:4739
15406 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15410 #: ../fish/guestfish-actions.pod:4744
15415 #: ../fish/guestfish-actions.pod:4746
15418 " tar-out directory (tarfile|-)\n"
15421 " tar-out каталог (файл tar|-)\n"
15425 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7187
15427 "This command packs the contents of C<directory> and downloads it to local "
15432 #: ../fish/guestfish-actions.pod:4751
15433 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15437 #: ../fish/guestfish-actions.pod:4756
15442 #: ../fish/guestfish-actions.pod:4758
15445 " tgz-in (tarball|-) directory\n"
15448 " tgz-in (архів tar|-) каталог\n"
15452 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7204
15454 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15455 "tar file) into C<directory>."
15459 #: ../fish/guestfish-actions.pod:4763
15460 msgid "To upload an uncompressed tarball, use L</tar-in>."
15464 #: ../fish/guestfish-actions.pod:4767
15469 #: ../fish/guestfish-actions.pod:4769
15472 " tgz-out directory (tarball|-)\n"
15475 " tgz-out каталог (архів tar|-)\n"
15479 #: ../fish/guestfish-actions.pod:4771 ../src/guestfs-actions.pod:7220
15481 "This command packs the contents of C<directory> and downloads it to local "
15486 #: ../fish/guestfish-actions.pod:4774
15487 msgid "To download an uncompressed tarball, use L</tar-out>."
15491 #: ../fish/guestfish-actions.pod:4778
15496 #: ../fish/guestfish-actions.pod:4780
15506 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7235
15508 "Touch acts like the L<touch(1)> command. It can be used to update the "
15509 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15514 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7239
15516 "This command only works on regular files, and will fail on other file types "
15517 "such as directories, symbolic links, block special etc."
15521 #: ../fish/guestfish-actions.pod:4789
15526 #: ../fish/guestfish-actions.pod:4791
15536 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7252
15538 "This command truncates C<path> to a zero-length file. The file must exist "
15543 #: ../fish/guestfish-actions.pod:4796
15544 msgid "truncate-size"
15545 msgstr "truncate-size"
15548 #: ../fish/guestfish-actions.pod:4798
15551 " truncate-size path size\n"
15554 " truncate-size шлях розмір\n"
15558 #: ../fish/guestfish-actions.pod:4800 ../src/guestfs-actions.pod:7266
15560 "This command truncates C<path> to size C<size> bytes. The file must exist "
15565 #: ../fish/guestfish-actions.pod:4803
15567 "If the current file size is less than C<size> then the file is extended to "
15568 "the required size with zero bytes. This creates a sparse file (ie. disk "
15569 "blocks are not allocated for the file until you write to it). To create a "
15570 "non-sparse file of zeroes, use L</fallocate64> instead."
15574 #: ../fish/guestfish-actions.pod:4809
15579 #: ../fish/guestfish-actions.pod:4811
15582 " tune2fs-l device\n"
15585 " tune2fs-l пристрій\n"
15589 #: ../fish/guestfish-actions.pod:4813 ../src/guestfs-actions.pod:7285
15591 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15596 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7288
15598 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15599 "for more details. The list of fields returned isn't clearly defined, and "
15600 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15601 "and the filesystem itself."
15605 #: ../fish/guestfish-actions.pod:4821
15610 #: ../fish/guestfish-actions.pod:4823
15613 " txz-in (tarball|-) directory\n"
15616 " txz-in (архів tar|-) каталог\n"
15620 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7308
15622 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15623 "tar file) into C<directory>."
15627 #: ../fish/guestfish-actions.pod:4830
15632 #: ../fish/guestfish-actions.pod:4832
15635 " txz-out directory (tarball|-)\n"
15638 " txz-out каталог (архів tar|-)\n"
15642 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7322
15644 "This command packs the contents of C<directory> and downloads it to local "
15645 "file C<tarball> (as an xz compressed tar archive)."
15649 #: ../fish/guestfish-actions.pod:4839
15654 #: ../fish/guestfish-actions.pod:4841
15664 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7335
15666 "This function sets the mask used for creating new files and device nodes to "
15671 #: ../fish/guestfish-actions.pod:4846 ../src/guestfs-actions.pod:7338
15673 "Typical umask values would be C<022> which creates new files with "
15674 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15675 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15679 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7343
15681 "The default umask is C<022>. This is important because it means that "
15682 "directories and device nodes will be created with C<0644> or C<0755> mode "
15683 "even if you specify C<0777>."
15687 #: ../fish/guestfish-actions.pod:4855
15688 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15689 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15692 #: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7350
15693 msgid "This call returns the previous umask."
15697 #: ../fish/guestfish-actions.pod:4860
15702 #: ../fish/guestfish-actions.pod:4862
15707 #: ../fish/guestfish-actions.pod:4864
15710 " umount pathordevice\n"
15713 " umount шлях_або_пристрій\n"
15717 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7362
15719 "This unmounts the given filesystem. The filesystem may be specified either "
15720 "by its mountpoint (path) or the device which contains the filesystem."
15724 #: ../fish/guestfish-actions.pod:4870
15726 msgstr "umount-all"
15729 #: ../fish/guestfish-actions.pod:4872
15730 msgid "unmount-all"
15731 msgstr "unmount-all"
15734 #: ../fish/guestfish-actions.pod:4874
15744 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7375
15745 msgid "This unmounts all mounted filesystems."
15749 #: ../fish/guestfish-actions.pod:4878 ../src/guestfs-actions.pod:7377
15750 msgid "Some internal mounts are not unmounted by this call."
15754 #: ../fish/guestfish-actions.pod:4880
15759 #: ../fish/guestfish-actions.pod:4882
15762 " upload (filename|-) remotefilename\n"
15765 " upload (назва_файла|-) назва_віддаленого_файла\n"
15769 #: ../fish/guestfish-actions.pod:4884 ../fish/guestfish-actions.pod:4897
15770 #: ../src/guestfs-actions.pod:7390 ../src/guestfs-actions.pod:7414
15771 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15775 #: ../fish/guestfish-actions.pod:4889
15776 msgid "See also L</download>."
15777 msgstr "Див. також L</download>."
15780 #: ../fish/guestfish-actions.pod:4893
15781 msgid "upload-offset"
15782 msgstr "upload-offset"
15785 #: ../fish/guestfish-actions.pod:4895
15788 " upload-offset (filename|-) remotefilename offset\n"
15791 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15795 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7417
15797 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15798 "The intention is to overwrite parts of existing files or devices, although "
15799 "if a non-existant file is specified then it is created with a \"hole\" "
15800 "before C<offset>. The size of the data written is implicit in the size of "
15801 "the source C<filename>."
15805 #: ../fish/guestfish-actions.pod:4907
15807 "Note that there is no limit on the amount of data that can be uploaded with "
15808 "this call, unlike with L</pwrite>, and this call always writes the full "
15809 "amount unless an error occurs."
15813 #: ../fish/guestfish-actions.pod:4912
15814 msgid "See also L</upload>, L</pwrite>."
15815 msgstr "Див. також L</upload>, L</pwrite>."
15818 #: ../fish/guestfish-actions.pod:4916
15823 #: ../fish/guestfish-actions.pod:4918
15826 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15831 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7450
15832 msgid "This command sets the timestamps of a file with nanosecond precision."
15836 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7453
15838 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15843 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7456
15845 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15846 "nanoseconds from the epoch."
15850 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7459
15852 "If the C<*nsecs> field contains the special value C<-1> then the "
15853 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15854 "ignored in this case)."
15858 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7463
15860 "If the C<*nsecs> field contains the special value C<-2> then the "
15861 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15866 #: ../fish/guestfish-actions.pod:4937
15871 #: ../fish/guestfish-actions.pod:4939
15881 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7476
15883 "Return the libguestfs version number that the program is linked against."
15887 #: ../fish/guestfish-actions.pod:4944 ../src/guestfs-actions.pod:7479
15889 "Note that because of dynamic linking this is not necessarily the version of "
15890 "libguestfs that you compiled against. You can compile the program, and then "
15891 "at runtime dynamically link against a completely different C<libguestfs.so> "
15896 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7484
15898 "This call was added in version C<1.0.58>. In previous versions of "
15899 "libguestfs there was no way to get the version number. From C code you can "
15900 "use dynamic linker functions to find out if this symbol exists (if it "
15901 "doesn't, then it's an earlier version)."
15905 #: ../fish/guestfish-actions.pod:4955 ../src/guestfs-actions.pod:7490
15907 "The call returns a structure with four elements. The first three (C<major>, "
15908 "C<minor> and C<release>) are numbers and correspond to the usual version "
15909 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15910 "but may be used for distro-specific information."
15914 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7496
15916 "To construct the original version string: C<$major.$minor.$release$extra>"
15920 #: ../fish/guestfish-actions.pod:4964 ../src/guestfs-actions.pod:7499
15921 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15925 #: ../fish/guestfish-actions.pod:4966
15927 "I<Note:> Don't use this call to test for availability of features. In "
15928 "enterprise distributions we backport features from later versions into "
15929 "earlier versions, making this an unreliable way to test for features. Use "
15930 "L</available> instead."
15934 #: ../fish/guestfish-actions.pod:4972
15939 #: ../fish/guestfish-actions.pod:4974
15942 " vfs-label device\n"
15945 " vfs-label пристрій\n"
15949 #: ../fish/guestfish-actions.pod:4976 ../src/guestfs-actions.pod:7519
15950 msgid "This returns the filesystem label of the filesystem on C<device>."
15954 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7522
15955 msgid "If the filesystem is unlabeled, this returns the empty string."
15959 #: ../fish/guestfish-actions.pod:4981
15960 msgid "To find a filesystem from the label, use L</findfs-label>."
15964 #: ../fish/guestfish-actions.pod:4983
15969 #: ../fish/guestfish-actions.pod:4985
15972 " vfs-type device\n"
15975 " vfs-type пристрій\n"
15979 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7537
15981 "This command gets the filesystem type corresponding to the filesystem on "
15986 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7540
15988 "For most filesystems, the result is the name of the Linux VFS module which "
15989 "would be used to mount this filesystem if you mounted it without specifying "
15990 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15994 #: ../fish/guestfish-actions.pod:4995
15999 #: ../fish/guestfish-actions.pod:4997
16002 " vfs-uuid device\n"
16005 " vfs-uuid пристрій\n"
16009 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7556
16010 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16014 #: ../fish/guestfish-actions.pod:5002 ../src/guestfs-actions.pod:7559
16015 msgid "If the filesystem does not have a UUID, this returns the empty string."
16019 #: ../fish/guestfish-actions.pod:5004
16020 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16024 #: ../fish/guestfish-actions.pod:5006
16025 msgid "vg-activate"
16026 msgstr "vg-activate"
16029 #: ../fish/guestfish-actions.pod:5008
16032 " vg-activate true|false 'volgroups ...'\n"
16037 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7575
16039 "This command activates or (if C<activate> is false) deactivates all logical "
16040 "volumes in the listed volume groups C<volgroups>."
16044 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7578
16045 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16049 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7580
16051 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16052 "activated or deactivated."
16056 #: ../fish/guestfish-actions.pod:5018
16057 msgid "vg-activate-all"
16058 msgstr "vg-activate-all"
16061 #: ../fish/guestfish-actions.pod:5020
16064 " vg-activate-all true|false\n"
16067 " vg-activate-all true|false\n"
16071 #: ../fish/guestfish-actions.pod:5022 ../src/guestfs-actions.pod:7593
16073 "This command activates or (if C<activate> is false) deactivates all logical "
16074 "volumes in all volume groups."
16078 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7596
16079 msgid "This command is the same as running C<vgchange -a y|n>"
16083 #: ../fish/guestfish-actions.pod:5027
16088 #: ../fish/guestfish-actions.pod:5029
16091 " vgcreate volgroup 'physvols ...'\n"
16096 #: ../fish/guestfish-actions.pod:5031 ../src/guestfs-actions.pod:7609
16098 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16099 "of physical volumes C<physvols>."
16103 #: ../fish/guestfish-actions.pod:5034
16108 #: ../fish/guestfish-actions.pod:5036
16111 " vglvuuids vgname\n"
16116 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7622
16118 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16119 "volumes created in this volume group."
16123 #: ../fish/guestfish-actions.pod:5041
16125 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16126 "logical volumes and volume groups."
16130 #: ../fish/guestfish-actions.pod:5044
16131 msgid "See also L</vgpvuuids>."
16132 msgstr "Див. також L</vgpvuuids>."
16135 #: ../fish/guestfish-actions.pod:5046
16140 #: ../fish/guestfish-actions.pod:5048
16143 " vgpvuuids vgname\n"
16148 #: ../fish/guestfish-actions.pod:5050 ../src/guestfs-actions.pod:7642
16150 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16151 "volumes that this volume group resides on."
16155 #: ../fish/guestfish-actions.pod:5053
16157 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16158 "physical volumes and volume groups."
16162 #: ../fish/guestfish-actions.pod:5056
16163 msgid "See also L</vglvuuids>."
16164 msgstr "Див. також L</vglvuuids>."
16167 #: ../fish/guestfish-actions.pod:5058
16172 #: ../fish/guestfish-actions.pod:5060
16175 " vgremove vgname\n"
16180 #: ../fish/guestfish-actions.pod:5062 ../src/guestfs-actions.pod:7662
16181 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16185 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7664
16187 "This also forcibly removes all logical volumes in the volume group (if any)."
16191 #: ../fish/guestfish-actions.pod:5067
16196 #: ../fish/guestfish-actions.pod:5069
16199 " vgrename volgroup newvolgroup\n"
16204 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7678
16205 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16209 #: ../fish/guestfish-actions.pod:5073
16214 #: ../fish/guestfish-actions.pod:5075
16224 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7689
16226 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16231 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7692
16233 "This returns a list of just the volume group names that were detected (eg. "
16238 #: ../fish/guestfish-actions.pod:5083
16239 msgid "See also L</vgs-full>."
16240 msgstr "Див. також L</vgs-full>."
16243 #: ../fish/guestfish-actions.pod:5085
16248 #: ../fish/guestfish-actions.pod:5087
16258 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7708
16260 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16261 "> command. The \"full\" version includes all fields."
16265 #: ../fish/guestfish-actions.pod:5092
16270 #: ../fish/guestfish-actions.pod:5094
16280 #: ../fish/guestfish-actions.pod:5096 ../src/guestfs-actions.pod:7722
16282 "This rescans all block devices and rebuilds the list of LVM physical "
16283 "volumes, volume groups and logical volumes."
16287 #: ../fish/guestfish-actions.pod:5099
16292 #: ../fish/guestfish-actions.pod:5101
16300 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7735
16301 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16305 #: ../fish/guestfish-actions.pod:5105
16310 #: ../fish/guestfish-actions.pod:5107
16320 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7775
16322 "This command counts the characters in a file, using the C<wc -c> external "
16327 #: ../fish/guestfish-actions.pod:5112
16332 #: ../fish/guestfish-actions.pod:5114
16342 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7788
16344 "This command counts the lines in a file, using the C<wc -l> external command."
16348 #: ../fish/guestfish-actions.pod:5119
16353 #: ../fish/guestfish-actions.pod:5121
16363 #: ../fish/guestfish-actions.pod:5123 ../src/guestfs-actions.pod:7801
16365 "This command counts the words in a file, using the C<wc -w> external command."
16369 #: ../fish/guestfish-actions.pod:5126
16374 #: ../fish/guestfish-actions.pod:5128
16377 " write path content\n"
16380 " write шлях дані\n"
16384 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7816
16386 "This call creates a file called C<path>. The content of the file is the "
16387 "string C<content> (which can contain any 8 bit data)."
16391 #: ../fish/guestfish-actions.pod:5133
16392 msgid "See also L</write-append>."
16396 #: ../fish/guestfish-actions.pod:5138
16397 msgid "write-append"
16401 #: ../fish/guestfish-actions.pod:5140
16404 " write-append path content\n"
16409 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7836
16411 "This call appends C<content> to the end of file C<path>. If C<path> does "
16412 "not exist, then a new file is created."
16416 #: ../fish/guestfish-actions.pod:5145
16417 msgid "See also L</write>."
16421 #: ../fish/guestfish-actions.pod:5150
16423 msgstr "write-file"
16426 #: ../fish/guestfish-actions.pod:5152
16429 " write-file path content size\n"
16434 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7863
16436 "This call creates a file called C<path>. The contents of the file is the "
16437 "string C<content> (which can contain any 8 bit data), with length C<size>."
16441 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7867
16443 "As a special case, if C<size> is C<0> then the length is calculated using "
16444 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16448 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7871
16450 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16451 "I<not> work, even if the length is specified."
16455 #: ../fish/guestfish-actions.pod:5168
16457 "I<This function is deprecated.> In new code, use the L</write> call instead."
16461 #: ../fish/guestfish-actions.pod:5175
16466 #: ../fish/guestfish-actions.pod:5177
16469 " zegrep regex path\n"
16472 " zegrep формальний_вираз шлях\n"
16476 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7888
16478 "This calls the external C<zegrep> program and returns the matching lines."
16482 #: ../fish/guestfish-actions.pod:5185
16487 #: ../fish/guestfish-actions.pod:5187
16490 " zegrepi regex path\n"
16495 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7907
16497 "This calls the external C<zegrep -i> program and returns the matching lines."
16501 #: ../fish/guestfish-actions.pod:5195
16506 #: ../fish/guestfish-actions.pod:5197
16516 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7925
16517 msgid "This command writes zeroes over the first few blocks of C<device>."
16521 #: ../fish/guestfish-actions.pod:5201 ../src/guestfs-actions.pod:7927
16523 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16524 "securely wipe the device). It should be sufficient to remove any partition "
16525 "tables, filesystem superblocks and so on."
16529 #: ../fish/guestfish-actions.pod:5205 ../fish/guestfish-actions.pod:5220
16530 #: ../src/guestfs-actions.pod:7931 ../src/guestfs-actions.pod:7957
16532 "If blocks are already zero, then this command avoids writing zeroes. This "
16533 "prevents the underlying device from becoming non-sparse or growing "
16538 #: ../fish/guestfish-actions.pod:5209
16539 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16543 #: ../fish/guestfish-actions.pod:5212
16544 msgid "zero-device"
16545 msgstr "zero-device"
16548 #: ../fish/guestfish-actions.pod:5214
16551 " zero-device device\n"
16554 " zero-device пристрій\n"
16558 #: ../fish/guestfish-actions.pod:5216
16560 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16561 "which just zeroes the first few blocks of a device."
16565 #: ../fish/guestfish-actions.pod:5227
16570 #: ../fish/guestfish-actions.pod:5229
16573 " zerofree device\n"
16576 " zerofree пристрій\n"
16580 #: ../fish/guestfish-actions.pod:5231 ../src/guestfs-actions.pod:7979
16582 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16583 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16584 "possible to compress the filesystem more effectively."
16588 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7984
16589 msgid "You should B<not> run this program if the filesystem is mounted."
16593 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7987
16595 "It is possible that using this program can damage the filesystem or data on "
16600 #: ../fish/guestfish-actions.pod:5242
16605 #: ../fish/guestfish-actions.pod:5244
16608 " zfgrep pattern path\n"
16611 " zfgrep шаблон шлях\n"
16615 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8001
16617 "This calls the external C<zfgrep> program and returns the matching lines."
16621 #: ../fish/guestfish-actions.pod:5252
16626 #: ../fish/guestfish-actions.pod:5254
16629 " zfgrepi pattern path\n"
16632 " zfgrepi шаблон шлях\n"
16636 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8020
16638 "This calls the external C<zfgrep -i> program and returns the matching lines."
16642 #: ../fish/guestfish-actions.pod:5262
16647 #: ../fish/guestfish-actions.pod:5264
16650 " zfile meth path\n"
16653 " zfile метод шлях\n"
16657 #: ../fish/guestfish-actions.pod:5266 ../src/guestfs-actions.pod:8046
16659 "This command runs C<file> after first decompressing C<path> using C<method>."
16663 #: ../fish/guestfish-actions.pod:5269 ../src/guestfs-actions.pod:8049
16664 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16668 #: ../fish/guestfish-actions.pod:5271
16670 "Since 1.0.63, use L</file> instead which can now process compressed files."
16674 #: ../fish/guestfish-actions.pod:5274
16676 "I<This function is deprecated.> In new code, use the L</file> call instead."
16680 #: ../fish/guestfish-actions.pod:5281
16685 #: ../fish/guestfish-actions.pod:5283
16688 " zgrep regex path\n"
16691 " zgrep формальний_вираз шлях\n"
16695 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8066
16697 "This calls the external C<zgrep> program and returns the matching lines."
16701 #: ../fish/guestfish-actions.pod:5291
16706 #: ../fish/guestfish-actions.pod:5293
16709 " zgrepi regex path\n"
16712 " zgrepi формальний_вираз шлях\n"
16716 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8085
16718 "This calls the external C<zgrep -i> program and returns the matching lines."
16722 #: ../fish/guestfish-commands.pod:1
16727 #: ../fish/guestfish-commands.pod:3
16732 #: ../fish/guestfish-commands.pod:5
16735 " alloc filename size\n"
16740 #: ../fish/guestfish-commands.pod:7
16742 "This creates an empty (zeroed) file of the given size, and then adds so it "
16743 "can be further examined."
16747 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16748 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16752 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16753 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16757 #: ../fish/guestfish-commands.pod:14
16759 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16760 "image, see L</PREPARED DISK IMAGES>."
16764 #: ../fish/guestfish-commands.pod:17
16769 #: ../fish/guestfish-commands.pod:19
16772 " copy-in local [local ...] /remotedir\n"
16777 #: ../fish/guestfish-commands.pod:21
16779 "C<copy-in> copies local files or directories recursively into the disk "
16780 "image, placing them in the directory called C</remotedir> (which must "
16781 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16782 "other commands as necessary."
16786 #: ../fish/guestfish-commands.pod:26
16788 "Multiple local files and directories can be specified, but the last "
16789 "parameter must always be a remote directory. Wildcards cannot be used."
16793 #: ../fish/guestfish-commands.pod:30
16798 #: ../fish/guestfish-commands.pod:32
16801 " copy-out remote [remote ...] localdir\n"
16806 #: ../fish/guestfish-commands.pod:34
16808 "C<copy-out> copies remote files or directories recursively out of the disk "
16809 "image, placing them on the host disk in a local directory called C<localdir> "
16810 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16811 "download>, L</tar-out> and other commands as necessary."
16815 #: ../fish/guestfish-commands.pod:40
16817 "Multiple remote files and directories can be specified, but the last "
16818 "parameter must always be a local directory. To download to the current "
16819 "directory, use C<.> as in:"
16823 #: ../fish/guestfish-commands.pod:44
16826 " copy-out /home .\n"
16829 " copy-out /home .\n"
16833 #: ../fish/guestfish-commands.pod:46
16835 "Wildcards cannot be used in the ordinary command, but you can use them with "
16836 "the help of L</glob> like this:"
16840 #: ../fish/guestfish-commands.pod:49
16843 " glob copy-out /home/* .\n"
16846 " glob copy-out /home/* .\n"
16850 #: ../fish/guestfish-commands.pod:51
16855 #: ../fish/guestfish-commands.pod:53
16858 " display filename\n"
16863 #: ../fish/guestfish-commands.pod:55
16865 "Use C<display> (a graphical display program) to display an image file. It "
16866 "downloads the file, and runs C<display> on it."
16870 #: ../fish/guestfish-commands.pod:58
16872 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16873 "environment variable. For example to use the GNOME display program:"
16877 #: ../fish/guestfish-commands.pod:61
16880 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16885 #: ../fish/guestfish-commands.pod:63
16886 msgid "See also L<display(1)>."
16890 #: ../fish/guestfish-commands.pod:65
16895 #: ../fish/guestfish-commands.pod:67
16898 " echo [params ...]\n"
16901 " echo [параметри...]\n"
16905 #: ../fish/guestfish-commands.pod:69
16906 msgid "This echos the parameters to the terminal."
16910 #: ../fish/guestfish-commands.pod:71
16915 #: ../fish/guestfish-commands.pod:73
16920 #: ../fish/guestfish-commands.pod:75
16925 #: ../fish/guestfish-commands.pod:77
16931 " edit назва_файла\n"
16935 #: ../fish/guestfish-commands.pod:79
16937 "This is used to edit a file. It downloads the file, edits it locally using "
16938 "your editor, then uploads the result."
16942 #: ../fish/guestfish-commands.pod:82
16944 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16945 "or C<emacs> you will get those corresponding editors."
16949 #: ../fish/guestfish-commands.pod:86
16954 #: ../fish/guestfish-commands.pod:88
16957 " glob command args...\n"
16960 " glob команда параметри...\n"
16964 #: ../fish/guestfish-commands.pod:90
16966 "Expand wildcards in any paths in the args list, and run C<command> "
16967 "repeatedly on each matching path."
16971 #: ../fish/guestfish-commands.pod:93
16972 msgid "See L</WILDCARDS AND GLOBBING>."
16973 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16976 #: ../fish/guestfish-commands.pod:95
16981 #: ../fish/guestfish-commands.pod:97
16984 " hexedit <filename|device>\n"
16985 " hexedit <filename|device> <max>\n"
16986 " hexedit <filename|device> <start> <max>\n"
16991 #: ../fish/guestfish-commands.pod:101
16993 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16998 #: ../fish/guestfish-commands.pod:104
17000 "This command works by downloading potentially the whole file or device, "
17001 "editing it locally, then uploading it. If the file or device is large, you "
17002 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17003 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
17004 "usual modifiers allowed such as C<1M> (1 megabyte)."
17008 #: ../fish/guestfish-commands.pod:111
17009 msgid "For example to edit the first few sectors of a disk you might do:"
17013 #: ../fish/guestfish-commands.pod:114
17016 " hexedit /dev/sda 1M\n"
17019 " hexedit /dev/sda 1M\n"
17023 #: ../fish/guestfish-commands.pod:116
17025 "which would allow you to edit anywhere within the first megabyte of the disk."
17029 #: ../fish/guestfish-commands.pod:119
17030 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17034 #: ../fish/guestfish-commands.pod:121
17037 " hexedit /dev/sda1 0x400 0x400\n"
17040 " hexedit /dev/sda1 0x400 0x400\n"
17044 #: ../fish/guestfish-commands.pod:123
17045 msgid "(assuming the superblock is in the standard location)."
17049 #: ../fish/guestfish-commands.pod:125
17051 "This command requires the external L<hexedit(1)> program. You can specify "
17052 "another program to use by setting the C<HEXEDITOR> environment variable."
17056 #: ../fish/guestfish-commands.pod:129
17057 msgid "See also L</hexdump>."
17058 msgstr "Див. також L</hexdump>."
17061 #: ../fish/guestfish-commands.pod:131
17066 #: ../fish/guestfish-commands.pod:133
17074 #: ../fish/guestfish-commands.pod:135
17076 "Change the local directory, ie. the current directory of guestfish itself."
17080 #: ../fish/guestfish-commands.pod:138
17081 msgid "Note that C<!cd> won't do what you might expect."
17085 #: ../fish/guestfish-commands.pod:140
17090 #: ../fish/guestfish-commands.pod:142
17095 #: ../fish/guestfish-commands.pod:144
17105 #: ../fish/guestfish-commands.pod:146
17106 msgid "Opens the manual page for guestfish."
17110 #: ../fish/guestfish-commands.pod:148
17115 #: ../fish/guestfish-commands.pod:150
17120 #: ../fish/guestfish-commands.pod:152
17128 #: ../fish/guestfish-commands.pod:154
17136 #: ../fish/guestfish-commands.pod:156
17137 msgid "This is used to view a file."
17141 #: ../fish/guestfish-commands.pod:158
17143 "The default viewer is C<$PAGER>. However if you use the alternate command "
17144 "C<less> you will get the C<less> command specifically."
17148 #: ../fish/guestfish-commands.pod:161
17153 #: ../fish/guestfish-commands.pod:163
17161 #: ../fish/guestfish-commands.pod:165
17163 "Close and reopen the libguestfs handle. It is not necessary to use this "
17164 "normally, because the handle is closed properly when guestfish exits. "
17165 "However this is occasionally useful for testing."
17169 #: ../fish/guestfish-commands.pod:169
17174 #: ../fish/guestfish-commands.pod:171
17177 " setenv VAR value\n"
17182 #: ../fish/guestfish-commands.pod:173
17183 msgid "Set the environment variable C<VAR> to the string C<value>."
17187 #: ../fish/guestfish-commands.pod:175
17189 "To print the value of an environment variable use a shell command such as:"
17193 #: ../fish/guestfish-commands.pod:178
17201 #: ../fish/guestfish-commands.pod:180
17206 #: ../fish/guestfish-commands.pod:182
17209 " sparse filename size\n"
17214 #: ../fish/guestfish-commands.pod:184
17216 "This creates an empty sparse file of the given size, and then adds so it can "
17217 "be further examined."
17221 #: ../fish/guestfish-commands.pod:187
17223 "In all respects it works the same as the L</alloc> command, except that the "
17224 "image file is allocated sparsely, which means that disk blocks are not "
17225 "assigned to the file until they are needed. Sparse disk files only use "
17226 "space when written to, but they are slower and there is a danger you could "
17227 "run out of real disk space during a write operation."
17231 #: ../fish/guestfish-commands.pod:197
17236 #: ../fish/guestfish-commands.pod:199
17246 #: ../fish/guestfish-commands.pod:201
17248 "This command returns a list of the optional groups known to the daemon, and "
17249 "indicates which ones are supported by this build of the libguestfs appliance."
17253 #: ../fish/guestfish-commands.pod:205
17254 msgid "See also L<guestfs(3)/AVAILABILITY>."
17258 #: ../fish/guestfish-commands.pod:207
17263 #: ../fish/guestfish-commands.pod:209
17266 " time command args...\n"
17271 #: ../fish/guestfish-commands.pod:211
17273 "Run the command as usual, but print the elapsed time afterwards. This can "
17274 "be useful for benchmarking operations."
17278 #: ../fish/guestfish-commands.pod:214
17283 #: ../fish/guestfish-commands.pod:216
17291 #: ../fish/guestfish-commands.pod:218
17292 msgid "Remove C<VAR> from the environment."
17296 #: ../fish/guestfish.pod:5
17297 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17301 #: ../fish/guestfish.pod:9
17304 " guestfish [--options] [commands]\n"
17309 #: ../fish/guestfish.pod:11
17317 #: ../fish/guestfish.pod:13
17320 " guestfish [--ro|--rw] -a disk.img\n"
17325 #: ../fish/guestfish.pod:15
17328 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17333 #: ../fish/guestfish.pod:17
17336 " guestfish -d libvirt-domain\n"
17341 #: ../fish/guestfish.pod:19
17344 " guestfish [--ro|--rw] -a disk.img -i\n"
17349 #: ../fish/guestfish.pod:21
17352 " guestfish -d libvirt-domain -i\n"
17357 #: ../fish/guestfish.pod:25
17359 "Using guestfish in read/write mode on live virtual machines can be "
17360 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
17361 "option to use guestfish safely if the disk image or virtual machine might be "
17366 #: ../fish/guestfish.pod:32
17368 "Guestfish is a shell and command-line tool for examining and modifying "
17369 "virtual machine filesystems. It uses libguestfs and exposes all of the "
17370 "functionality of the guestfs API, see L<guestfs(3)>."
17374 #: ../fish/guestfish.pod:36
17376 "Guestfish gives you structured access to the libguestfs API, from shell "
17377 "scripts or the command line or interactively. If you want to rescue a "
17378 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17383 #: ../fish/guestfish.pod:43
17384 msgid "As an interactive shell"
17388 #: ../fish/guestfish.pod:45
17396 #: ../fish/guestfish.pod:47
17399 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17400 " editing virtual machine filesystems.\n"
17405 #: ../fish/guestfish.pod:50
17408 " Type: 'help' for a list of commands\n"
17409 " 'man' to read the manual\n"
17410 " 'quit' to quit the shell\n"
17415 #: ../fish/guestfish.pod:54
17418 " ><fs> add-ro disk.img\n"
17420 " ><fs> list-filesystems\n"
17421 " /dev/sda1: ext4\n"
17422 " /dev/vg_guest/lv_root: ext4\n"
17423 " /dev/vg_guest/lv_swap: swap\n"
17424 " ><fs> mount /dev/vg_guest/lv_root /\n"
17425 " ><fs> cat /etc/fstab\n"
17427 " # Created by anaconda\n"
17434 #: ../fish/guestfish.pod:67
17435 msgid "From shell scripts"
17439 #: ../fish/guestfish.pod:69
17440 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17444 #: ../fish/guestfish.pod:71
17447 " guestfish <<_EOF_\n"
17450 " mount /dev/vg_guest/lv_root /\n"
17451 " write /etc/motd \"Welcome, new users\"\n"
17457 #: ../fish/guestfish.pod:78
17458 msgid "List the LVM logical volumes in a disk image:"
17462 #: ../fish/guestfish.pod:80
17465 " guestfish -a disk.img --ro <<_EOF_\n"
17473 #: ../fish/guestfish.pod:85
17474 msgid "List all the filesystems in a disk image:"
17478 #: ../fish/guestfish.pod:87
17481 " guestfish -a disk.img --ro <<_EOF_\n"
17483 " list-filesystems\n"
17489 #: ../fish/guestfish.pod:92
17490 msgid "On one command line"
17494 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17495 msgid "Update C</etc/resolv.conf> in a guest:"
17499 #: ../fish/guestfish.pod:96
17503 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17504 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17509 #: ../fish/guestfish.pod:100
17510 msgid "Edit C</boot/grub/grub.conf> interactively:"
17514 #: ../fish/guestfish.pod:102
17517 " guestfish --rw --add disk.img \\\n"
17518 " --mount /dev/vg_guest/lv_root \\\n"
17519 " --mount /dev/sda1:/boot \\\n"
17520 " edit /boot/grub/grub.conf\n"
17525 #: ../fish/guestfish.pod:107
17526 msgid "Mount disks automatically"
17530 #: ../fish/guestfish.pod:109
17532 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17536 #: ../fish/guestfish.pod:112
17539 " guestfish --ro -a disk.img -i cat /etc/group\n"
17544 #: ../fish/guestfish.pod:114
17547 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17552 #: ../fish/guestfish.pod:116
17553 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17557 #: ../fish/guestfish.pod:118
17560 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17565 #: ../fish/guestfish.pod:120
17566 msgid "As a script interpreter"
17570 #: ../fish/guestfish.pod:122
17571 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17575 #: ../fish/guestfish.pod:124
17578 " #!/usr/bin/guestfish -f\n"
17579 " sparse test1.img 100M\n"
17581 " part-disk /dev/sda mbr\n"
17582 " mkfs ext2 /dev/sda1\n"
17587 #: ../fish/guestfish.pod:130
17588 msgid "Start with a prepared disk"
17592 #: ../fish/guestfish.pod:132
17594 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17595 "single ext2-formatted partition:"
17599 #: ../fish/guestfish.pod:135
17602 " guestfish -N fs\n"
17607 #: ../fish/guestfish.pod:137
17608 msgid "To list what is available do:"
17612 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17615 " guestfish -N help | less\n"
17620 #: ../fish/guestfish.pod:141
17621 msgid "Remote control"
17622 msgstr "Дистанційне керування"
17625 #: ../fish/guestfish.pod:143
17628 " eval \"`guestfish --listen`\"\n"
17629 " guestfish --remote add-ro disk.img\n"
17630 " guestfish --remote run\n"
17631 " guestfish --remote lvs\n"
17634 " eval \"`guestfish --listen`\"\n"
17635 " guestfish --remote add-ro disk.img\n"
17636 " guestfish --remote run\n"
17637 " guestfish --remote lvs\n"
17641 #: ../fish/guestfish.pod:154
17642 msgid "Displays general help on options."
17646 #: ../fish/guestfish.pod:158
17647 msgid "B<--cmd-help>"
17648 msgstr "B<--cmd-help>"
17651 #: ../fish/guestfish.pod:160
17652 msgid "Lists all available guestfish commands."
17656 #: ../fish/guestfish.pod:162
17658 msgstr "B<-h команда>"
17661 #: ../fish/guestfish.pod:164
17662 msgid "B<--cmd-help cmd>"
17663 msgstr "B<--cmd-help команда>"
17666 #: ../fish/guestfish.pod:166
17667 msgid "Displays detailed help on a single command C<cmd>."
17671 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17672 msgid "B<-a image>"
17673 msgstr "B<-a образ>"
17676 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17677 msgid "B<--add image>"
17678 msgstr "B<--add образ>"
17681 #: ../fish/guestfish.pod:172
17682 msgid "Add a block device or virtual machine image to the shell."
17686 #: ../fish/guestfish.pod:177
17688 "Using this flag is mostly equivalent to using the C<add> command, with "
17689 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17690 "the I<--format=...> flag was given."
17694 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17696 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17697 "URI to use. The default is to use the default libvirt connection."
17701 #: ../fish/guestfish.pod:189
17706 #: ../fish/guestfish.pod:191
17708 "If using the I<--listen> option and a csh-like shell, use this option. See "
17709 "section L</REMOTE CONTROL AND CSH> below."
17713 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17714 msgid "B<-d libvirt-domain>"
17715 msgstr "B<-d домен-libvirt>"
17718 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17719 msgid "B<--domain libvirt-domain>"
17720 msgstr "B<--domain домен-libvirt>"
17723 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17725 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17726 "used, then any libvirt domain can be used. However in write mode, only "
17727 "libvirt domains which are shut down can be named here."
17731 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17732 msgid "Domain UUIDs can be used instead of names."
17736 #: ../fish/guestfish.pod:204
17738 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17739 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17740 "if the I<--format:...> flag was given."
17744 #: ../fish/guestfish.pod:208
17749 #: ../fish/guestfish.pod:210
17750 msgid "B<--no-dest-paths>"
17751 msgstr "B<--no-dest-paths>"
17754 #: ../fish/guestfish.pod:212
17756 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17757 "to hit the tab key to complete paths on the guest filesystem, but this "
17758 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17759 "allow this feature to be disabled."
17763 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17765 "When prompting for keys and passphrases, guestfish normally turns echoing "
17766 "off so you cannot see what you are typing. If you are not worried about "
17767 "Tempest attacks and there is no one else in the room you can specify this "
17768 "flag to see what you are typing."
17772 #: ../fish/guestfish.pod:224
17774 msgstr "B<-f файл>"
17777 #: ../fish/guestfish.pod:226
17778 msgid "B<--file file>"
17779 msgstr "B<--file файл>"
17782 #: ../fish/guestfish.pod:228
17783 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17787 #: ../fish/guestfish.pod:231
17790 " #!/usr/bin/guestfish -f\n"
17793 " #!/usr/bin/guestfish -f\n"
17797 #: ../fish/guestfish.pod:244
17800 " guestfish --format=raw -a disk.img\n"
17803 " guestfish --format=raw -a disk.img\n"
17807 #: ../fish/guestfish.pod:248
17810 " guestfish --format=raw -a disk.img --format -a another.img\n"
17813 " guestfish --format=raw -a disk.img --format -a another.img\n"
17817 #: ../fish/guestfish.pod:253
17819 "If you have untrusted raw-format guest disk images, you should use this "
17820 "option to specify the disk format. This avoids a possible security problem "
17821 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17825 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17826 msgid "B<--inspector>"
17827 msgstr "B<--inspector>"
17830 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17832 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17833 "system and mount filesystems as they would be mounted on the real virtual "
17838 #: ../fish/guestfish.pod:266
17839 msgid "Typical usage is either:"
17843 #: ../fish/guestfish.pod:268
17846 " guestfish -d myguest -i\n"
17849 " guestfish -d myguest -i\n"
17853 #: ../fish/guestfish.pod:270
17854 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17858 #: ../fish/guestfish.pod:272
17861 " guestfish --ro -d myguest -i\n"
17864 " guestfish --ro -d myguest -i\n"
17868 #: ../fish/guestfish.pod:274
17869 msgid "(for active domains, readonly), or specify the block device directly:"
17873 #: ../fish/guestfish.pod:276
17876 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17879 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17883 #: ../fish/guestfish.pod:278
17885 "Note that the command line syntax changed slightly over older versions of "
17886 "guestfish. You can still use the old syntax:"
17890 #: ../fish/guestfish.pod:281
17893 " guestfish [--ro] -i disk.img\n"
17896 " guestfish [--ro] -i disk.img\n"
17900 #: ../fish/guestfish.pod:283
17903 " guestfish [--ro] -i libvirt-domain\n"
17908 #: ../fish/guestfish.pod:285
17910 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17911 "then using other commands to mount the filesystems that were found."
17915 #: ../fish/guestfish.pod:294
17916 msgid "B<--listen>"
17917 msgstr "B<--listen>"
17920 #: ../fish/guestfish.pod:296
17922 "Fork into the background and listen for remote commands. See section L</"
17923 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17927 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17932 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17934 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17935 "ATTACHING TO RUNNING DAEMONS>)."
17939 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17940 msgid "B<-m dev[:mountpoint[:options]]>"
17944 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17945 msgid "B<--mount dev[:mountpoint[:options]]>"
17949 #: ../fish/guestfish.pod:308
17950 msgid "Mount the named partition or logical volume on the given mountpoint."
17954 #: ../fish/guestfish.pod:310
17955 msgid "If the mountpoint is omitted, it defaults to C</>."
17959 #: ../fish/guestfish.pod:312
17960 msgid "You have to mount something on C</> before most commands will work."
17964 #: ../fish/guestfish.pod:314
17966 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17971 #: ../fish/guestfish.pod:317
17973 "If you don't know what filesystems a disk image contains, you can either run "
17974 "guestfish without this option, then list the partitions, filesystems and LVs "
17975 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17976 "commands), or you can use the L<virt-filesystems(1)> program."
17980 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17982 "The third (and rarely used) part of the mount parameter is the list of mount "
17983 "options used to mount the underlying filesystem. If this is not given, then "
17984 "the mount options are either the empty string or C<ro> (the latter if the "
17985 "I<--ro> flag is used). By specifying the mount options, you override this "
17986 "default choice. Probably the only time you would use this is to enable ACLs "
17987 "and/or extended attributes if the filesystem can support them:"
17991 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17994 " -m /dev/sda1:/:acl,user_xattr\n"
17999 #: ../fish/guestfish.pod:333
18000 msgid "Using this flag is equivalent to using the C<mount-options> command."
18004 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
18005 #: ../resize/virt-resize.pod:358
18010 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18011 msgid "B<--no-sync>"
18012 msgstr "B<--no-sync>"
18015 #: ../fish/guestfish.pod:339
18017 "Disable autosync. This is enabled by default. See the discussion of "
18018 "autosync in the L<guestfs(3)> manpage."
18022 #: ../fish/guestfish.pod:342
18027 #: ../fish/guestfish.pod:344
18028 msgid "B<--new type>"
18029 msgstr "B<--new тип>"
18032 #: ../fish/guestfish.pod:346
18034 msgstr "B<-N help>"
18037 #: ../fish/guestfish.pod:348
18039 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
18040 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18041 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
18046 #: ../fish/guestfish.pod:353
18047 msgid "B<--progress-bars>"
18048 msgstr "B<--progress-bars>"
18051 #: ../fish/guestfish.pod:355
18052 msgid "Enable progress bars, even when guestfish is used non-interactively."
18056 #: ../fish/guestfish.pod:357
18058 "Progress bars are enabled by default when guestfish is used as an "
18059 "interactive shell."
18063 #: ../fish/guestfish.pod:360
18064 msgid "B<--no-progress-bars>"
18065 msgstr "B<--no-progress-bars>"
18068 #: ../fish/guestfish.pod:362
18069 msgid "Disable progress bars."
18073 #: ../fish/guestfish.pod:364
18074 msgid "B<--remote[=pid]>"
18075 msgstr "B<--remote[=pid]>"
18078 #: ../fish/guestfish.pod:366
18080 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
18081 "CONTROL GUESTFISH OVER A SOCKET> below."
18085 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18086 #: ../rescue/virt-rescue.pod:161
18091 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18092 #: ../rescue/virt-rescue.pod:163
18097 #: ../fish/guestfish.pod:373
18099 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18100 "mounts are done read-only."
18104 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18106 "The option must always be used if the disk image or virtual machine might be "
18107 "running, and is generally recommended in cases where you don't need write "
18108 "access to the disk."
18112 #: ../fish/guestfish.pod:380
18114 "Note that prepared disk images created with I<-N> are not affected by this "
18115 "option. Also commands like C<add> are not affected - you have to specify "
18116 "the C<readonly:true> option explicitly if you need it."
18120 #: ../fish/guestfish.pod:384
18121 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18125 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18126 #: ../rescue/virt-rescue.pod:173
18127 msgid "B<--selinux>"
18128 msgstr "B<--selinux>"
18131 #: ../fish/guestfish.pod:388
18132 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
18136 #: ../fish/guestfish.pod:394
18138 "Enable very verbose messages. This is particularly useful if you find a bug."
18142 #: ../fish/guestfish.pod:401
18143 msgid "Display the guestfish / libguestfs version number and exit."
18147 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18148 #: ../rescue/virt-rescue.pod:194
18153 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18154 #: ../rescue/virt-rescue.pod:196
18159 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18161 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18162 "mounts are done read-write."
18166 #: ../fish/guestfish.pod:410
18167 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18171 #: ../fish/guestfish.pod:414
18172 msgid "Echo each command before executing it."
18176 #: ../fish/guestfish.pod:418
18177 msgid "COMMANDS ON COMMAND LINE"
18181 #: ../fish/guestfish.pod:420
18183 "Any additional (non-option) arguments are treated as commands to execute."
18187 #: ../fish/guestfish.pod:423
18189 "Commands to execute should be separated by a colon (C<:>), where the colon "
18190 "is a separate parameter. Thus:"
18194 #: ../fish/guestfish.pod:426
18197 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18202 #: ../fish/guestfish.pod:428
18204 "If there are no additional arguments, then we enter a shell, either an "
18205 "interactive shell with a prompt (if the input is a terminal) or a non-"
18206 "interactive shell."
18210 #: ../fish/guestfish.pod:432
18212 "In either command line mode or non-interactive shell, the first command that "
18213 "gives an error causes the whole shell to exit. In interactive mode (with a "
18214 "prompt) if a command fails, you can continue to enter commands."
18218 #: ../fish/guestfish.pod:437
18219 msgid "USING launch (OR run)"
18223 #: ../fish/guestfish.pod:439
18225 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18226 "then launch it, then mount any disks you need, and finally issue actions/"
18227 "commands. So the general order of the day is:"
18231 #: ../fish/guestfish.pod:447
18232 msgid "add or -a/--add"
18236 #: ../fish/guestfish.pod:451
18237 msgid "launch (aka run)"
18241 #: ../fish/guestfish.pod:455
18242 msgid "mount or -m/--mount"
18246 #: ../fish/guestfish.pod:459
18247 msgid "any other commands"
18251 #: ../fish/guestfish.pod:463
18253 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
18254 "guest before mounting or performing any other commands."
18258 #: ../fish/guestfish.pod:466
18260 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18261 "I<--new> options were given then C<run> is done automatically, simply "
18262 "because guestfish can't perform the action you asked for without doing this."
18266 #: ../fish/guestfish.pod:471
18267 msgid "OPENING DISKS FOR READ AND WRITE"
18271 #: ../fish/guestfish.pod:473
18273 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18274 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18275 "I<-i> and I<-m> open disk images read-only or for writing."
18279 #: ../fish/guestfish.pod:478
18281 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18282 "opening disk images supplied on the command line for write. To open a disk "
18283 "image read-only you have to do I<-a image --ro>."
18287 #: ../fish/guestfish.pod:482
18289 "This matters: If you accidentally open a live VM disk image writable then "
18290 "you will cause irreversible disk corruption."
18294 #: ../fish/guestfish.pod:485
18296 "In a future libguestfs we intend to change the default the other way. Disk "
18297 "images will be opened read-only. You will have to either specify "
18298 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18299 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18300 "access for disk images specified by those other command line options."
18304 #: ../fish/guestfish.pod:492
18306 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18307 "which does nothing (it is already the default). However it is highly "
18308 "recommended that you use this option to indicate that you need write access, "
18309 "and prepare your scripts for the day when this option will be required for "
18314 #: ../fish/guestfish.pod:498
18316 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18317 "other libguestfs program apart from guestfish and guestmount."
18321 #: ../fish/guestfish.pod:501
18326 #: ../fish/guestfish.pod:503
18328 "You can quote ordinary parameters using either single or double quotes. For "
18333 #: ../fish/guestfish.pod:506
18336 " add \"file with a space.img\"\n"
18341 #: ../fish/guestfish.pod:508
18344 " rm '/file name'\n"
18349 #: ../fish/guestfish.pod:510
18357 #: ../fish/guestfish.pod:512
18359 "A few commands require a list of strings to be passed. For these, use a "
18360 "whitespace-separated list, enclosed in quotes. Strings containing "
18361 "whitespace to be passed through must be enclosed in single quotes. A "
18362 "literal single quote must be escaped with a backslash."
18366 #: ../fish/guestfish.pod:517
18369 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18370 " command \"/bin/echo 'foo bar'\"\n"
18371 " command \"/bin/echo \\'foo\\'\"\n"
18376 #: ../fish/guestfish.pod:521
18377 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18381 #: ../fish/guestfish.pod:523
18383 "In double-quoted arguments (only) use backslash to insert special characters:"
18387 #: ../fish/guestfish.pod:528
18392 #: ../fish/guestfish.pod:530
18393 msgid "Alert (bell) character."
18397 #: ../fish/guestfish.pod:532
18402 #: ../fish/guestfish.pod:534
18403 msgid "Backspace character."
18407 #: ../fish/guestfish.pod:536
18412 #: ../fish/guestfish.pod:538
18413 msgid "Form feed character."
18417 #: ../fish/guestfish.pod:540
18422 #: ../fish/guestfish.pod:542
18423 msgid "Newline character."
18427 #: ../fish/guestfish.pod:544
18432 #: ../fish/guestfish.pod:546
18433 msgid "Carriage return character."
18437 #: ../fish/guestfish.pod:548
18442 #: ../fish/guestfish.pod:550
18443 msgid "Horizontal tab character."
18447 #: ../fish/guestfish.pod:552
18452 #: ../fish/guestfish.pod:554
18453 msgid "Vertical tab character."
18457 #: ../fish/guestfish.pod:556
18462 #: ../fish/guestfish.pod:558
18463 msgid "A literal double quote character."
18467 #: ../fish/guestfish.pod:560
18472 #: ../fish/guestfish.pod:562
18474 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18479 #: ../fish/guestfish.pod:565
18484 #: ../fish/guestfish.pod:567
18486 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18490 #: ../fish/guestfish.pod:570
18492 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18497 #: ../fish/guestfish.pod:573
18502 #: ../fish/guestfish.pod:575
18503 msgid "A literal backslash character."
18507 #: ../fish/guestfish.pod:579
18508 msgid "OPTIONAL ARGUMENTS"
18512 #: ../fish/guestfish.pod:581
18514 "Some commands take optional arguments. These arguments appear in this "
18515 "documentation as C<[argname:..]>. You can use them as in these examples:"
18519 #: ../fish/guestfish.pod:585
18522 " add-drive-opts filename\n"
18527 #: ../fish/guestfish.pod:587
18530 " add-drive-opts filename readonly:true\n"
18535 #: ../fish/guestfish.pod:589
18538 " add-drive-opts filename format:qcow2 readonly:false\n"
18543 #: ../fish/guestfish.pod:591
18545 "Each optional argument can appear at most once. All optional arguments must "
18546 "appear after the required ones."
18550 #: ../fish/guestfish.pod:594
18555 #: ../fish/guestfish.pod:596
18557 "This section applies to all commands which can take integers as parameters."
18561 #: ../fish/guestfish.pod:599
18562 msgid "SIZE SUFFIX"
18566 #: ../fish/guestfish.pod:601
18568 "When the command takes a parameter measured in bytes, you can use one of the "
18569 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18573 #: ../fish/guestfish.pod:607
18574 msgid "B<k> or B<K> or B<KiB>"
18575 msgstr "B<k>, B<K> або B<KiB>"
18578 #: ../fish/guestfish.pod:609
18579 msgid "The size in kilobytes (multiplied by 1024)."
18583 #: ../fish/guestfish.pod:611
18588 #: ../fish/guestfish.pod:613
18589 msgid "The size in SI 1000 byte units."
18593 #: ../fish/guestfish.pod:615
18594 msgid "B<M> or B<MiB>"
18595 msgstr "B<M> або B<MiB>"
18598 #: ../fish/guestfish.pod:617
18599 msgid "The size in megabytes (multiplied by 1048576)."
18603 #: ../fish/guestfish.pod:619
18608 #: ../fish/guestfish.pod:621
18609 msgid "The size in SI 1000000 byte units."
18613 #: ../fish/guestfish.pod:623
18614 msgid "B<G> or B<GiB>"
18615 msgstr "B<G> або B<GiB>"
18618 #: ../fish/guestfish.pod:625
18619 msgid "The size in gigabytes (multiplied by 2**30)."
18620 msgstr "Розмір у гігабайтах (з множником 2**30)."
18623 #: ../fish/guestfish.pod:627
18628 #: ../fish/guestfish.pod:629
18629 msgid "The size in SI 10**9 byte units."
18630 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18633 #: ../fish/guestfish.pod:631
18634 msgid "B<T> or B<TiB>"
18635 msgstr "B<T> або B<TiB>"
18638 #: ../fish/guestfish.pod:633
18639 msgid "The size in terabytes (multiplied by 2**40)."
18640 msgstr "Розмір у терабайтах (з множником 2**40)."
18643 #: ../fish/guestfish.pod:635
18648 #: ../fish/guestfish.pod:637
18649 msgid "The size in SI 10**12 byte units."
18653 #: ../fish/guestfish.pod:639
18654 msgid "B<P> or B<PiB>"
18655 msgstr "B<P> або B<PiB>"
18658 #: ../fish/guestfish.pod:641
18659 msgid "The size in petabytes (multiplied by 2**50)."
18663 #: ../fish/guestfish.pod:643
18668 #: ../fish/guestfish.pod:645
18669 msgid "The size in SI 10**15 byte units."
18673 #: ../fish/guestfish.pod:647
18674 msgid "B<E> or B<EiB>"
18675 msgstr "B<E> або B<EiB>"
18678 #: ../fish/guestfish.pod:649
18679 msgid "The size in exabytes (multiplied by 2**60)."
18683 #: ../fish/guestfish.pod:651
18688 #: ../fish/guestfish.pod:653
18689 msgid "The size in SI 10**18 byte units."
18693 #: ../fish/guestfish.pod:655
18694 msgid "B<Z> or B<ZiB>"
18695 msgstr "B<Z> або B<ZiB>"
18698 #: ../fish/guestfish.pod:657
18699 msgid "The size in zettabytes (multiplied by 2**70)."
18703 #: ../fish/guestfish.pod:659
18708 #: ../fish/guestfish.pod:661
18709 msgid "The size in SI 10**21 byte units."
18713 #: ../fish/guestfish.pod:663
18714 msgid "B<Y> or B<YiB>"
18715 msgstr "B<Y> або B<YiB>"
18718 #: ../fish/guestfish.pod:665
18719 msgid "The size in yottabytes (multiplied by 2**80)."
18723 #: ../fish/guestfish.pod:667
18728 #: ../fish/guestfish.pod:669
18729 msgid "The size in SI 10**24 byte units."
18733 #: ../fish/guestfish.pod:675
18736 " truncate-size /file 1G\n"
18741 #: ../fish/guestfish.pod:677
18742 msgid "would truncate the file to 1 gigabyte."
18746 #: ../fish/guestfish.pod:679
18748 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18749 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18750 "suffix will probably not do what you expect."
18754 #: ../fish/guestfish.pod:683
18755 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18759 #: ../fish/guestfish.pod:685
18761 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18762 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18766 #: ../fish/guestfish.pod:688
18769 " 1234 decimal number 1234\n"
18770 " 02322 octal number, equivalent to decimal 1234\n"
18771 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18776 #: ../fish/guestfish.pod:692
18778 "When using the C<chmod> command, you almost always want to specify an octal "
18779 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18780 "L<chmod(1)> program):"
18784 #: ../fish/guestfish.pod:696
18787 " chmod 0777 /public # OK\n"
18788 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18793 #: ../fish/guestfish.pod:699
18795 "Commands that return numbers usually print them in decimal, but some "
18796 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18797 "octal, preceeded by C<0>)."
18801 #: ../fish/guestfish.pod:703
18802 msgid "WILDCARDS AND GLOBBING"
18806 #: ../fish/guestfish.pod:705
18808 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18809 "(globbing) by default. So for example the following will not do what you "
18814 #: ../fish/guestfish.pod:709
18822 #: ../fish/guestfish.pod:711
18824 "Assuming you don't have a directory called literally C</home/*> then the "
18825 "above command will return an error."
18829 #: ../fish/guestfish.pod:714
18830 msgid "To perform wildcard expansion, use the C<glob> command."
18834 #: ../fish/guestfish.pod:716
18837 " glob rm-rf /home/*\n"
18842 #: ../fish/guestfish.pod:718
18844 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18845 "many times), equivalent to:"
18849 #: ../fish/guestfish.pod:721
18852 " rm-rf /home/jim\n"
18853 " rm-rf /home/joe\n"
18854 " rm-rf /home/mary\n"
18859 #: ../fish/guestfish.pod:725
18860 msgid "C<glob> only works on simple guest paths and not on device names."
18864 #: ../fish/guestfish.pod:727
18866 "If you have several parameters, each containing a wildcard, then glob will "
18867 "perform a Cartesian product."
18871 #: ../fish/guestfish.pod:730
18876 #: ../fish/guestfish.pod:732
18878 "Any line which starts with a I<#> character is treated as a comment and "
18879 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18880 "a command. For example:"
18884 #: ../fish/guestfish.pod:736
18887 " # this is a comment\n"
18888 " # this is a comment\n"
18889 " foo # NOT a comment\n"
18894 #: ../fish/guestfish.pod:740
18895 msgid "Blank lines are also ignored."
18899 #: ../fish/guestfish.pod:742
18900 msgid "RUNNING COMMANDS LOCALLY"
18904 #: ../fish/guestfish.pod:744
18906 "Any line which starts with a I<!> character is treated as a command sent to "
18907 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18911 #: ../fish/guestfish.pod:748
18915 " tgz-out /remote local/remote-data.tar.gz\n"
18920 #: ../fish/guestfish.pod:751
18922 "will create a directory C<local> on the host, and then export the contents "
18923 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18924 "(See C<tgz-out>)."
18928 #: ../fish/guestfish.pod:755
18930 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18931 "effect, due to the way that subprocesses work in Unix."
18935 #: ../fish/guestfish.pod:758
18936 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18940 #: ../fish/guestfish.pod:760
18942 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18943 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18944 "and executed as guestfish commands."
18948 #: ../fish/guestfish.pod:764
18950 "Thus you can use shell script to construct arbitrary guestfish commands "
18951 "which are then parsed by guestfish."
18955 #: ../fish/guestfish.pod:767
18957 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18958 "through C</foo.100>) using guestfish commands alone. However this is simple "
18959 "if we use a shell script to create the guestfish commands for us:"
18963 #: ../fish/guestfish.pod:772
18966 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18971 #: ../fish/guestfish.pod:774
18972 msgid "or with names like C</foo.001>:"
18976 #: ../fish/guestfish.pod:776
18979 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18984 #: ../fish/guestfish.pod:778
18986 "When using guestfish interactively it can be helpful to just run the shell "
18987 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18988 "ordinary I<!> local command), see what guestfish commands it would run, and "
18989 "when you are happy with those prepend the C<E<lt>> character to run the "
18990 "guestfish commands for real."
18994 #: ../fish/guestfish.pod:784
18999 #: ../fish/guestfish.pod:786
19001 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19002 "command (a guestfish command) to the second command (any host command). For "
19007 #: ../fish/guestfish.pod:790
19010 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19015 #: ../fish/guestfish.pod:792
19017 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19018 "program). The above command would list all accounts in the guest filesystem "
19019 "which have UID 0, ie. root accounts including backdoors. Other examples:"
19023 #: ../fish/guestfish.pod:797
19026 " hexdump /bin/ls | head\n"
19027 " list-devices | tail -1\n"
19028 " tgz-out / - | tar ztf -\n"
19033 #: ../fish/guestfish.pod:801
19035 "The space before the pipe symbol is required, any space after the pipe "
19036 "symbol is optional. Everything after the pipe symbol is just passed "
19037 "straight to the host shell, so it can contain redirections, globs and "
19038 "anything else that makes sense on the host side."
19042 #: ../fish/guestfish.pod:806
19044 "To use a literal argument which begins with a pipe symbol, you have to quote "
19049 #: ../fish/guestfish.pod:809
19057 #: ../fish/guestfish.pod:811
19058 msgid "HOME DIRECTORIES"
19062 #: ../fish/guestfish.pod:813
19064 "If a parameter starts with the character C<~> then the tilde may be expanded "
19065 "as a home directory path (either C<~> for the current user's home directory, "
19066 "or C<~user> for another user)."
19070 #: ../fish/guestfish.pod:817
19072 "Note that home directory expansion happens for users known I<on the host>, "
19073 "not in the guest filesystem."
19077 #: ../fish/guestfish.pod:820
19079 "To use a literal argument which begins with a tilde, you have to quote it, "
19084 #: ../fish/guestfish.pod:823
19092 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19093 msgid "ENCRYPTED DISKS"
19094 msgstr "ЗАШИФРОВАНІ ДИСКИ"
19097 #: ../fish/guestfish.pod:827
19099 "Libguestfs has some support for Linux guests encrypted according to the "
19100 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19101 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
19102 "LUKS is supported."
19106 #: ../fish/guestfish.pod:832
19107 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19111 #: ../fish/guestfish.pod:834
19114 " ><fs> vfs-type /dev/sda2\n"
19120 #: ../fish/guestfish.pod:837
19122 "Then open those devices using L</luks-open>. This creates a device-mapper "
19123 "device called C</dev/mapper/luksdev>."
19127 #: ../fish/guestfish.pod:840
19130 " ><fs> luks-open /dev/sda2 luksdev\n"
19131 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19136 #: ../fish/guestfish.pod:843
19138 "Finally you have to tell LVM to scan for volume groups on the newly created "
19143 #: ../fish/guestfish.pod:846
19147 " vg-activate-all true\n"
19152 #: ../fish/guestfish.pod:849
19153 msgid "The logical volume(s) can now be mounted in the usual way."
19157 #: ../fish/guestfish.pod:851
19159 "Before closing a LUKS device you must unmount any logical volumes on it and "
19160 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19161 "one. Then you can close the mapper device:"
19165 #: ../fish/guestfish.pod:855
19168 " vg-activate false /dev/VG\n"
19169 " luks-close /dev/mapper/luksdev\n"
19174 #: ../fish/guestfish.pod:860
19176 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19177 "letters and paths (with some limitations). The following commands are "
19182 #: ../fish/guestfish.pod:864
19185 " file /WINDOWS/system32/config/system.LOG\n"
19190 #: ../fish/guestfish.pod:866
19193 " file win:\\windows\\system32\\config\\system.log\n"
19198 #: ../fish/guestfish.pod:868
19201 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19206 #: ../fish/guestfish.pod:870
19208 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19209 "where the drive is mounted, prepending that to the path, changing all "
19210 "backslash characters to forward slash, then resolving the result using L</"
19211 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
19212 "the parameter might be rewritten like this:"
19216 #: ../fish/guestfish.pod:876
19219 " win:e:\\foo\\bar => /e/FOO/bar\n"
19224 #: ../fish/guestfish.pod:878
19225 msgid "This only works in argument positions that expect a path."
19229 #: ../fish/guestfish.pod:880
19230 msgid "UPLOADING AND DOWNLOADING FILES"
19234 #: ../fish/guestfish.pod:882
19236 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19237 "others which upload from or download to a local file, you can use the "
19238 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
19242 #: ../fish/guestfish.pod:886
19250 #: ../fish/guestfish.pod:888
19252 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19256 #: ../fish/guestfish.pod:891
19259 " tar-out /etc - | tar tf -\n"
19264 #: ../fish/guestfish.pod:893
19266 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19267 "command (see L</PIPES>)."
19271 #: ../fish/guestfish.pod:896
19273 "When using C<-> to read from stdin, the input is read up to the end of "
19274 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
19275 "some arbitrary end marker:"
19279 #: ../fish/guestfish.pod:900
19282 " upload -<<END /foo\n"
19291 #: ../fish/guestfish.pod:906
19293 "Any string of characters can be used instead of C<END>. The end marker must "
19294 "appear on a line of its own, without any preceeding or following characters "
19295 "(not even spaces)."
19299 #: ../fish/guestfish.pod:910
19301 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19302 "upload local files (so-called \"FileIn\" parameters in the generator)."
19306 #: ../fish/guestfish.pod:913
19307 msgid "EXIT ON ERROR BEHAVIOUR"
19311 #: ../fish/guestfish.pod:915
19313 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19314 "taking commands from a human over a tty), and will exit on the first error "
19315 "in non-interactive mode (scripts, commands given on the command line)."
19319 #: ../fish/guestfish.pod:920
19321 "If you prefix a command with a I<-> character, then that command will not "
19322 "cause guestfish to exit, even if that (one) command returns an error."
19326 #: ../fish/guestfish.pod:924
19327 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19331 #: ../fish/guestfish.pod:926
19333 "Guestfish can be remote-controlled over a socket. This is useful "
19334 "particularly in shell scripts where you want to make several different "
19335 "changes to a filesystem, but you don't want the overhead of starting up a "
19336 "guestfish process each time."
19340 #: ../fish/guestfish.pod:931
19341 msgid "Start a guestfish server process using:"
19345 #: ../fish/guestfish.pod:933
19348 " eval \"`guestfish --listen`\"\n"
19353 #: ../fish/guestfish.pod:935
19354 msgid "and then send it commands by doing:"
19358 #: ../fish/guestfish.pod:937
19361 " guestfish --remote cmd [...]\n"
19366 #: ../fish/guestfish.pod:939
19367 msgid "To cause the server to exit, send it the exit command:"
19371 #: ../fish/guestfish.pod:943
19373 "Note that the server will normally exit if there is an error in a command. "
19374 "You can change this in the usual way. See section L</EXIT ON ERROR "
19379 #: ../fish/guestfish.pod:947
19380 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19384 #: ../fish/guestfish.pod:949
19386 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19387 "is how the I<--remote> option knows where to send the commands. You can "
19388 "have several guestfish listener processes running using:"
19392 #: ../fish/guestfish.pod:953
19395 " eval \"`guestfish --listen`\"\n"
19396 " pid1=$GUESTFISH_PID\n"
19397 " eval \"`guestfish --listen`\"\n"
19398 " pid2=$GUESTFISH_PID\n"
19400 " guestfish --remote=$pid1 cmd\n"
19401 " guestfish --remote=$pid2 cmd\n"
19406 #: ../fish/guestfish.pod:961
19407 msgid "REMOTE CONTROL AND CSH"
19411 #: ../fish/guestfish.pod:963
19413 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19418 #: ../fish/guestfish.pod:966
19421 " eval \"`guestfish --listen --csh`\"\n"
19426 #: ../fish/guestfish.pod:968
19427 msgid "REMOTE CONTROL DETAILS"
19431 #: ../fish/guestfish.pod:970
19433 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19434 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19435 "and C<$PID> is the process ID of the server."
19439 #: ../fish/guestfish.pod:974
19440 msgid "Guestfish client and server versions must match exactly."
19444 #: ../fish/guestfish.pod:976
19445 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19449 #: ../fish/guestfish.pod:978
19451 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19452 "context hangs, ie. don't do (note the backquotes):"
19456 #: ../fish/guestfish.pod:981
19459 #| " guestfish --ro -d myguest -i\n"
19462 " a=`guestfish --remote run`\n"
19465 " guestfish --ro -d myguest -i\n"
19469 #: ../fish/guestfish.pod:983
19471 "Since the C<run> command produces no output on stdout, this is not useful "
19472 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19477 #: ../fish/guestfish.pod:987
19478 msgid "PREPARED DISK IMAGES"
19482 #: ../fish/guestfish.pod:989
19484 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19485 "preformatted disk images that guestfish can make for you to save typing. "
19486 "This is particularly useful for testing purposes. This option is used "
19487 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19488 "can be mixed with I<-a>)."
19492 #: ../fish/guestfish.pod:995
19494 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19495 "the second and so on. Existing files in the current directory are "
19500 #: ../fish/guestfish.pod:999
19502 "The type briefly describes how the disk should be sized, partitioned, how "
19503 "filesystem(s) should be created, and how content should be added. "
19504 "Optionally the type can be followed by extra parameters, separated by C<:> "
19505 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19506 "allocated disk, containing a single partition, with the partition formatted "
19507 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19512 #: ../fish/guestfish.pod:1007
19513 msgid "To list the available types and any extra parameters they take, run:"
19517 #: ../fish/guestfish.pod:1011
19519 "Note that the prepared filesystem is not mounted. You would usually have to "
19520 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19524 #: ../fish/guestfish.pod:1015
19526 "If any I<-N> or I<--new> options are given, the guest is automatically "
19531 #: ../fish/guestfish.pod:1020
19532 msgid "Create a 100MB disk with an ext4-formatted partition:"
19536 #: ../fish/guestfish.pod:1022
19539 " guestfish -N fs:ext4\n"
19544 #: ../fish/guestfish.pod:1024
19545 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19549 #: ../fish/guestfish.pod:1026
19552 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19557 #: ../fish/guestfish.pod:1028
19558 msgid "Create a blank 200MB disk:"
19562 #: ../fish/guestfish.pod:1030
19565 " guestfish -N disk:200M\n"
19570 #: ../fish/guestfish.pod:1032
19571 msgid "PROGRESS BARS"
19575 #: ../fish/guestfish.pod:1034
19577 "Some (not all) long-running commands send progress notification messages as "
19578 "they are running. Guestfish turns these messages into progress bars."
19582 #: ../fish/guestfish.pod:1038
19584 "When a command that supports progress bars takes longer than two seconds to "
19585 "run, and if progress bars are enabled, then you will see one appearing below "
19590 #: ../fish/guestfish.pod:1042
19593 " ><fs> copy-size /large-file /another-file 2048M\n"
19594 " / 10% [#####-----------------------------------------] 00:30\n"
19599 #: ../fish/guestfish.pod:1045
19601 "The spinner on the left hand side moves round once for every progress "
19602 "notification received from the backend. This is a (reasonably) golden "
19603 "assurance that the command is \"doing something\" even if the progress bar "
19604 "is not moving, because the command is able to send the progress "
19605 "notifications. When the bar reaches 100% and the command finishes, the "
19606 "spinner disappears."
19610 #: ../fish/guestfish.pod:1052
19612 "Progress bars are enabled by default when guestfish is used interactively. "
19613 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19614 "and you can disable them completely using I<--no-progress-bars>."
19618 #: ../fish/guestfish.pod:1057
19619 msgid "GUESTFISH COMMANDS"
19623 #: ../fish/guestfish.pod:1059
19625 "The commands in this section are guestfish convenience commands, in other "
19626 "words, they are not part of the L<guestfs(3)> API."
19630 #: ../fish/guestfish.pod:1062
19635 #: ../fish/guestfish.pod:1064
19647 #: ../fish/guestfish.pod:1067
19648 msgid "Without any parameter, this provides general help."
19649 msgstr "Без параметра показує загальну довідкову інформацію."
19652 #: ../fish/guestfish.pod:1069
19653 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19657 #: ../fish/guestfish.pod:1071
19658 msgid "quit | exit"
19662 #: ../fish/guestfish.pod:1073
19663 msgid "This exits guestfish. You can also use C<^D> key."
19667 #: ../fish/guestfish.pod:1075
19668 msgid "@FISH_COMMANDS@"
19672 #: ../fish/guestfish.pod:1077
19677 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1502
19682 #: ../fish/guestfish.pod:1083
19684 "guestfish returns 0 if the commands completed without error, or 1 if there "
19689 #: ../fish/guestfish.pod:1090
19694 #: ../fish/guestfish.pod:1092
19696 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19701 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3107
19702 msgid "FEBOOTSTRAP_KERNEL"
19706 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3109
19707 msgid "FEBOOTSTRAP_MODULES"
19711 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3111
19713 "These two environment variables allow the kernel that libguestfs uses in the "
19714 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19715 "most recent host kernel is chosen. For more information about kernel "
19716 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19717 "available in febootstrap E<ge> 3.8."
19721 #: ../fish/guestfish.pod:1105
19722 msgid "GUESTFISH_DISPLAY_IMAGE"
19726 #: ../fish/guestfish.pod:1107
19728 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19729 "If not set, it uses L<display(1)>."
19733 #: ../fish/guestfish.pod:1110
19734 msgid "GUESTFISH_PID"
19738 #: ../fish/guestfish.pod:1112
19740 "Used with the I<--remote> option to specify the remote guestfish process to "
19741 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19745 #: ../fish/guestfish.pod:1116
19750 #: ../fish/guestfish.pod:1118
19752 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19753 "not specified, the external L<hexedit(1)> program is used."
19757 #: ../fish/guestfish.pod:1122
19762 #: ../fish/guestfish.pod:1124
19764 "If compiled with GNU readline support, various files in the home directory "
19765 "can be used. See L</FILES>."
19769 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3117
19770 msgid "LIBGUESTFS_APPEND"
19774 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3119
19775 msgid "Pass additional options to the guest kernel."
19779 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3121
19780 msgid "LIBGUESTFS_DEBUG"
19781 msgstr "LIBGUESTFS_DEBUG"
19784 #: ../fish/guestfish.pod:1133
19786 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19787 "effect as using the B<-v> option."
19791 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3126
19792 msgid "LIBGUESTFS_MEMSIZE"
19793 msgstr "LIBGUESTFS_MEMSIZE"
19796 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3128
19798 "Set the memory allocated to the qemu process, in megabytes. For example:"
19802 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3131
19805 " LIBGUESTFS_MEMSIZE=700\n"
19808 " LIBGUESTFS_MEMSIZE=700\n"
19812 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3133
19813 msgid "LIBGUESTFS_PATH"
19817 #: ../fish/guestfish.pod:1145
19819 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19820 "the discussion of paths in L<guestfs(3)>."
19824 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3138
19825 msgid "LIBGUESTFS_QEMU"
19829 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3140
19831 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19832 "which was found at compile time by the configure script is used."
19836 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3146
19837 msgid "LIBGUESTFS_TRACE"
19841 #: ../fish/guestfish.pod:1156
19842 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19846 #: ../fish/guestfish.pod:1158
19848 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19851 #: ../fish/guestfish.pod:1160
19853 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19858 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3151
19863 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3153
19865 "Location of temporary directory, defaults to C</tmp> except for the cached "
19866 "supermin appliance which defaults to C</var/tmp>."
19870 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3156
19872 "If libguestfs was compiled to use the supermin appliance then the real "
19873 "appliance is cached in this directory, shared between all handles belonging "
19874 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19875 "use in case C</var/tmp> is not large enough."
19879 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19880 #: ../rescue/virt-rescue.pod:273
19885 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19886 #: ../rescue/virt-rescue.pod:277
19887 msgid "$HOME/.libguestfs-tools.rc"
19891 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19892 #: ../rescue/virt-rescue.pod:279
19893 msgid "/etc/libguestfs-tools.conf"
19897 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19898 #: ../rescue/virt-rescue.pod:281
19900 "This configuration file controls the default read-only or read-write mode "
19901 "(I<--ro> or I<--rw>)."
19905 #: ../fish/guestfish.pod:1187
19906 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19910 #: ../fish/guestfish.pod:1189
19911 msgid "$HOME/.guestfish"
19915 #: ../fish/guestfish.pod:1191
19917 "If compiled with GNU readline support, then the command history is saved in "
19922 #: ../fish/guestfish.pod:1194
19923 msgid "$HOME/.inputrc"
19927 #: ../fish/guestfish.pod:1196
19928 msgid "/etc/inputrc"
19932 #: ../fish/guestfish.pod:1198
19934 "If compiled with GNU readline support, then these files can be used to "
19935 "configure readline. For further information, please see L<readline(3)/"
19936 "INITIALIZATION FILE>."
19940 #: ../fish/guestfish.pod:1202
19941 msgid "To write rules which only apply to guestfish, use:"
19945 #: ../fish/guestfish.pod:1204
19955 #: ../fish/guestfish.pod:1208
19957 "Variables that you can set in inputrc that change the behaviour of guestfish "
19958 "in useful ways include:"
19962 #: ../fish/guestfish.pod:1213
19963 msgid "completion-ignore-case (default: on)"
19967 #: ../fish/guestfish.pod:1215
19969 "By default, guestfish will ignore case when tab-completing paths on the "
19974 #: ../fish/guestfish.pod:1218
19977 " set completion-ignore-case off\n"
19982 #: ../fish/guestfish.pod:1220
19983 msgid "to make guestfish case sensitive."
19987 #: ../fish/guestfish.pod:1224
19992 #: ../fish/guestfish.pod:1226
19993 msgid "test2.img (etc)"
19997 #: ../fish/guestfish.pod:1228
19999 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20000 "will be created in the file C<test1.img> in the current directory. The "
20001 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
20002 "the same name will be overwritten."
20006 #: ../fish/guestfish.pod:1237
20008 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
20009 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
20010 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
20011 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
20012 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
20013 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20017 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3243
20018 #: ../test-tool/libguestfs-test-tool.pod:112
20019 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
20023 #: ../fish/virt-copy-in.pod:5
20025 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20029 #: ../fish/virt-copy-in.pod:9
20032 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20037 #: ../fish/virt-copy-in.pod:11
20040 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20045 #: ../fish/virt-copy-in.pod:15
20047 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20048 "causing disk corruption. The virtual machine must be shut down before you "
20049 "use this command."
20053 #: ../fish/virt-copy-in.pod:21
20055 "C<virt-copy-in> copies files and directories from the local disk into a "
20056 "virtual machine disk image or named libvirt domain."
20060 #: ../fish/virt-copy-in.pod:24
20062 "You can give one of more filenames and directories on the command line. "
20063 "Directories are copied in recursively. The final parameter must be the "
20064 "destination directory in the disk image which must be an absolute path "
20065 "starting with a C</> character."
20069 #: ../fish/virt-copy-in.pod:33
20072 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20077 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20078 msgid "Upload a home directory to a guest:"
20082 #: ../fish/virt-copy-in.pod:37
20085 " virt-copy-in -d MyGuest skel /home\n"
20090 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20091 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20092 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20096 #: ../fish/virt-copy-in.pod:41
20098 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20099 "> C<copy-in> command. For anything more complex than a trivial copy, you "
20100 "are probably better off using guestfish directly."
20104 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20105 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20107 "Since the shell script just passes options straight to guestfish, read "
20108 "L<guestfish(1)> to see the full list of options."
20112 #: ../fish/virt-copy-in.pod:52
20115 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20116 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20117 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20118 #| "libguestfs.org/>."
20120 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20121 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20123 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20124 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20125 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20129 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20130 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20132 #| msgid "Copyright (C) 2009 Red Hat Inc."
20133 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20134 msgstr "© Red Hat Inc., 2009"
20137 #: ../fish/virt-copy-out.pod:5
20139 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20144 #: ../fish/virt-copy-out.pod:9
20147 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20152 #: ../fish/virt-copy-out.pod:11
20155 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20160 #: ../fish/virt-copy-out.pod:15
20162 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20163 "image or named libvirt domain."
20167 #: ../fish/virt-copy-out.pod:18
20169 "You can give one of more filenames and directories on the command line. "
20170 "Directories are copied out recursively."
20174 #: ../fish/virt-copy-out.pod:23
20175 msgid "Download the home directories from a virtual machine:"
20179 #: ../fish/virt-copy-out.pod:25
20183 " virt-copy-out -d MyGuest /home homes\n"
20188 #: ../fish/virt-copy-out.pod:30
20190 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20191 "> C<copy-out> command. For anything more complex than a trivial copy, you "
20192 "are probably better off using guestfish directly."
20196 #: ../fish/virt-copy-out.pod:41
20199 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20200 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20201 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20202 #| "libguestfs.org/>."
20204 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20205 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20207 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20208 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20209 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20213 #: ../fish/virt-tar-in.pod:5
20214 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20218 #: ../fish/virt-tar-in.pod:9
20221 " virt-tar-in -a disk.img data.tar /destination\n"
20226 #: ../fish/virt-tar-in.pod:11
20229 " virt-tar-in -d domain data.tar /destination\n"
20234 #: ../fish/virt-tar-in.pod:13
20237 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20242 #: ../fish/virt-tar-in.pod:17
20244 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20245 "causing disk corruption. The virtual machine must be shut down before you "
20246 "use this command."
20250 #: ../fish/virt-tar-in.pod:23
20252 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20253 "image or named libvirt domain."
20257 #: ../fish/virt-tar-in.pod:26
20259 "The first parameter is the tar file. Use C<-> to read the tar file from "
20260 "standard input. The second parameter is the absolute target directory to "
20265 #: ../fish/virt-tar-in.pod:34
20268 " virt-tar-in -d MyGuest homes.tar /home\n"
20273 #: ../fish/virt-tar-in.pod:38
20275 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20276 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
20277 "probably better off using guestfish directly."
20281 #: ../fish/virt-tar-in.pod:49
20284 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20285 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20286 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20287 #| "libguestfs.org/>."
20289 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20290 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20293 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20294 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20295 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20299 #: ../fish/virt-tar-out.pod:5
20301 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20305 #: ../fish/virt-tar-out.pod:9
20308 " virt-tar-out -a disk.img /dir files.tar\n"
20313 #: ../fish/virt-tar-out.pod:11
20316 " virt-tar-out -d domain /dir files.tar\n"
20321 #: ../fish/virt-tar-out.pod:13
20324 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20329 #: ../fish/virt-tar-out.pod:17
20331 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20335 #: ../fish/virt-tar-out.pod:20
20337 "The first parameter is the absolute path of the virtual machine directory. "
20338 "The second parameter is the tar file to write. Use C<-> to write to "
20343 #: ../fish/virt-tar-out.pod:26
20344 msgid "Download the home directories from a guest:"
20348 #: ../fish/virt-tar-out.pod:28
20351 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20356 #: ../fish/virt-tar-out.pod:32
20358 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20359 "> C<tar-out> command. For anything more complex than a trivial copy, you "
20360 "are probably better off using guestfish directly."
20364 #: ../fish/virt-tar-out.pod:43
20367 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20368 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20369 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20370 #| "libguestfs.org/>."
20372 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20373 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20375 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20376 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20377 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20381 #: ../fuse/guestmount.pod:5
20383 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20387 #: ../fuse/guestmount.pod:9
20390 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20395 #: ../fuse/guestmount.pod:11
20398 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20403 #: ../fuse/guestmount.pod:13
20406 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20411 #: ../fuse/guestmount.pod:17
20413 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20414 "machines. If you do this, you risk disk corruption in the VM."
20418 #: ../fuse/guestmount.pod:22
20420 "The guestmount program can be used to mount virtual machine filesystems and "
20421 "other disk images on the host. It uses libguestfs for access to the guest "
20422 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20423 "a mountable device."
20427 #: ../fuse/guestmount.pod:27
20429 "Along with other options, you have to give at least one device (I<-a> "
20430 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20431 "option) or use the I<-i> inspection option. How this works is better "
20432 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20437 #: ../fuse/guestmount.pod:33
20439 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
20440 "by you, and the filesystem will not be visible to any other users unless you "
20441 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
20442 "the filesystem, use the C<fusermount -u> command."
20446 #: ../fuse/guestmount.pod:41
20448 "For a typical Windows guest which has its main filesystem on the first "
20453 #: ../fuse/guestmount.pod:44
20456 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20461 #: ../fuse/guestmount.pod:46
20463 "For a typical Linux guest which has a /boot filesystem on the first "
20464 "partition, and the root filesystem on a logical volume:"
20468 #: ../fuse/guestmount.pod:49
20471 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20476 #: ../fuse/guestmount.pod:51
20477 msgid "To get libguestfs to detect guest mountpoints for you:"
20481 #: ../fuse/guestmount.pod:53
20484 " guestmount -a guest.img -i --ro /mnt\n"
20489 #: ../fuse/guestmount.pod:55
20490 msgid "For a libvirt guest called \"Guest\" you could do:"
20494 #: ../fuse/guestmount.pod:57
20497 " guestmount -d Guest -i --ro /mnt\n"
20502 #: ../fuse/guestmount.pod:59
20504 "If you don't know what filesystems are contained in a guest or disk image, "
20505 "use L<virt-filesystems(1)> first:"
20509 #: ../fuse/guestmount.pod:62
20512 " virt-filesystems MyGuest\n"
20517 #: ../fuse/guestmount.pod:64
20519 "If you want to trace the libguestfs calls but without excessive debugging "
20520 "information, we recommend:"
20524 #: ../fuse/guestmount.pod:67
20527 " guestmount [...] --trace /mnt\n"
20532 #: ../fuse/guestmount.pod:69
20533 msgid "If you want to debug the program, we recommend:"
20537 #: ../fuse/guestmount.pod:71
20540 " guestmount [...] --trace --verbose /mnt\n"
20545 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20546 #: ../resize/virt-resize.pod:544
20551 #: ../fuse/guestmount.pod:75
20552 msgid "Other users cannot see the filesystem by default"
20556 #: ../fuse/guestmount.pod:77
20558 "If you mount a filesystem as one user (eg. root), then other users will not "
20559 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20560 "option when mounting:"
20564 #: ../fuse/guestmount.pod:81
20567 " sudo guestmount [...] -o allow_other /mnt\n"
20572 #: ../fuse/guestmount.pod:91
20573 msgid "Add a block device or virtual machine image."
20577 #: ../fuse/guestmount.pod:114
20578 msgid "B<--dir-cache-timeout N>"
20579 msgstr "B<--dir-cache-timeout N>"
20582 #: ../fuse/guestmount.pod:116
20584 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20585 "seconds. The readdir cache [actually, there are several semi-independent "
20586 "caches] is populated after a readdir(2) call with the stat and extended "
20587 "attributes of the files in the directory, in anticipation that they will be "
20588 "requested soon after."
20592 #: ../fuse/guestmount.pod:122
20594 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20595 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20596 "requests, only cache existing ones."
20600 #: ../fuse/guestmount.pod:142
20602 "If you have untrusted raw-format guest disk images, you should use this "
20603 "option to specify the disk format. This avoids a possible security problem "
20604 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20605 "guestfs_add_drive_opts>."
20609 #: ../fuse/guestmount.pod:147
20610 msgid "B<--fuse-help>"
20611 msgstr "B<--fuse-help>"
20614 #: ../fuse/guestmount.pod:149
20615 msgid "Display help on special FUSE options (see I<-o> below)."
20619 #: ../fuse/guestmount.pod:153
20620 msgid "Display brief help and exit."
20624 #: ../fuse/guestmount.pod:177
20626 "Mount the named partition or logical volume on the given mountpoint B<in the "
20627 "guest> (this has nothing to do with mountpoints in the host)."
20631 #: ../fuse/guestmount.pod:180
20633 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20634 "something on C</>."
20638 #: ../fuse/guestmount.pod:197
20640 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20641 "unmounted. If you specify this option, then we don't attempt to sync the "
20642 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20646 #: ../fuse/guestmount.pod:202
20648 #| msgid "B<--partition>"
20649 msgid "B<-o option>"
20650 msgstr "B<--partition>"
20653 #: ../fuse/guestmount.pod:204
20655 #| msgid "B<--partition>"
20656 msgid "B<--option option>"
20657 msgstr "B<--partition>"
20660 #: ../fuse/guestmount.pod:206
20661 msgid "Pass extra options to FUSE."
20665 #: ../fuse/guestmount.pod:208
20667 "To get a list of all the extra options supported by FUSE, use the command "
20668 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20669 "of them are a good idea."
20673 #: ../fuse/guestmount.pod:212
20676 " guestmount --fuse-help\n"
20681 #: ../fuse/guestmount.pod:214
20682 msgid "Some potentially useful FUSE options:"
20686 #: ../fuse/guestmount.pod:218
20687 msgid "B<-o allow_other>"
20691 #: ../fuse/guestmount.pod:220
20692 msgid "Allow other users to see the filesystem."
20696 #: ../fuse/guestmount.pod:222
20697 msgid "B<-o attr_timeout=N>"
20698 msgstr "B<-o attr_timeout=N>"
20701 #: ../fuse/guestmount.pod:224
20702 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20706 #: ../fuse/guestmount.pod:226
20707 msgid "B<-o kernel_cache>"
20711 #: ../fuse/guestmount.pod:228
20713 "Allow the kernel to cache files (reduces the number of reads that have to go "
20714 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20715 "afford the extra memory usage."
20719 #: ../fuse/guestmount.pod:232
20720 msgid "B<-o uid=N> B<-o gid=N>"
20724 #: ../fuse/guestmount.pod:234
20726 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20727 "the chosen values."
20731 #: ../fuse/guestmount.pod:243
20733 "Add devices and mount everything read-only. Also disallow writes and make "
20734 "the disk appear read-only to FUSE."
20738 #: ../fuse/guestmount.pod:246
20740 "This is highly recommended if you are not going to edit the guest disk. If "
20741 "the guest is running and this option is I<not> supplied, then there is a "
20742 "strong risk of disk corruption in the guest. We try to prevent this from "
20743 "happening, but it is not always possible."
20747 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20748 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20752 #: ../fuse/guestmount.pod:255
20753 msgid "Enable SELinux support for the guest."
20757 #: ../fuse/guestmount.pod:261
20758 msgid "Enable verbose messages from underlying libguestfs."
20762 #: ../fuse/guestmount.pod:267
20763 msgid "Display the program version and exit."
20767 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20768 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20769 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20773 #: ../fuse/guestmount.pod:280
20780 #: ../fuse/guestmount.pod:282
20781 msgid "Trace libguestfs calls and entry into each FUSE function."
20785 #: ../fuse/guestmount.pod:284
20786 msgid "This also stops the daemon from forking into the background."
20790 #: ../fuse/guestmount.pod:310
20792 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20793 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20798 #: ../fuse/guestmount.pod:325
20799 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20803 #: ../inspector/virt-inspector.pod:5
20805 "virt-inspector - Display operating system version and other information "
20806 "about a virtual machine"
20810 #: ../inspector/virt-inspector.pod:9
20813 #| " virt-list-partitions [--options] domname\n"
20816 " virt-inspector [--options] -d domname\n"
20819 " virt-list-partitions [--параметри] назва_домену\n"
20823 #: ../inspector/virt-inspector.pod:11
20826 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20829 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20832 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20836 #: ../inspector/virt-inspector.pod:15
20839 #| " virt-list-partitions [--options] domname\n"
20842 " virt-inspector domname\n"
20845 " virt-list-partitions [--параметри] назва_домену\n"
20849 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20852 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20855 " virt-inspector disk.img [disk.img ...]\n"
20858 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20862 #: ../inspector/virt-inspector.pod:21
20864 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20865 "determine the version of the operating system and other information about "
20866 "the virtual machine."
20870 #: ../inspector/virt-inspector.pod:25
20871 msgid "Virt-inspector produces XML output for feeding into other programs."
20875 #: ../inspector/virt-inspector.pod:27
20877 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20878 "the libvirt domain (see: C<virsh list --all>)."
20882 #: ../inspector/virt-inspector.pod:30
20884 "You can also run virt-inspector directly on disk images from a single "
20885 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20886 "has several block devices, in which case you should list several I<-a> "
20887 "options one after another, with the first corresponding to the guest's C</"
20888 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20892 #: ../inspector/virt-inspector.pod:37
20894 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20895 "keys and similar."
20899 #: ../inspector/virt-inspector.pod:40
20901 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20902 "inspect several virtual machines, you have to run virt-inspector several "
20903 "times (for example, from a shell script for-loop)."
20907 #: ../inspector/virt-inspector.pod:45
20909 "Because virt-inspector needs direct access to guest images, it won't "
20910 "normally work over remote libvirt connections."
20914 #: ../inspector/virt-inspector.pod:48
20916 "All of the information available from virt-inspector is also available "
20917 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20918 "The same information can also be fetched using guestfish or via libguestfs "
20919 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20920 "WITH OTHER PROGRAMMING LANGUAGES>)."
20924 #: ../inspector/virt-inspector.pod:81
20926 "Libvirt is only used if you specify a C<domname> on the command line. If "
20927 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20932 #: ../inspector/virt-inspector.pod:94
20934 "When prompting for keys and passphrases, virt-inspector normally turns "
20935 "echoing off so you cannot see what you are typing. If you are not worried "
20936 "about Tempest attacks and there is no one else in the room you can specify "
20937 "this flag to see what you are typing."
20941 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20942 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20943 #: ../tools/virt-win-reg.pl:144
20945 "Specify the format of disk images given on the command line. If this is "
20946 "omitted then the format is autodetected from the content of the disk image."
20950 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20951 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20952 #: ../tools/virt-win-reg.pl:148
20954 "If disk images are requested from libvirt, then this program asks libvirt "
20955 "for this information. In this case, the value of the format parameter is "
20960 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20961 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20962 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20963 #: ../tools/virt-win-reg.pl:152
20965 "If working with untrusted raw-format guest disk images, you should ensure "
20966 "the format is always specified."
20970 #: ../inspector/virt-inspector.pod:139
20971 msgid "Previous versions of virt-inspector allowed you to write either:"
20975 #: ../inspector/virt-inspector.pod:145
20978 #| " inspect-get-hostname root\n"
20981 " virt-inspector guestname\n"
20984 " inspect-get-hostname корінь\n"
20988 #: ../inspector/virt-inspector.pod:153
20993 #: ../inspector/virt-inspector.pod:155
20995 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20996 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20997 "just an overview."
21001 #: ../inspector/virt-inspector.pod:159
21003 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21004 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
21005 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21006 "which is vanishingly rare in real world VMs."
21010 #: ../inspector/virt-inspector.pod:164
21011 msgid "E<lt>operatingsystemE<gt>"
21015 #: ../inspector/virt-inspector.pod:166
21017 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21018 "describe the operating system, its architecture, the descriptive \"product "
21019 "name\" string, the type of OS and so on, as in this example:"
21023 #: ../inspector/virt-inspector.pod:170
21026 " <operatingsystems>\n"
21027 " <operatingsystem>\n"
21028 " <root>/dev/sda2</root>\n"
21029 " <name>windows</name>\n"
21030 " <arch>i386</arch>\n"
21031 " <distro>windows</distro>\n"
21032 " <product_name>Windows 7 Enterprise</product_name>\n"
21033 " <product_variant>Client</product_variant>\n"
21034 " <major_version>6</major_version>\n"
21035 " <minor_version>1</minor_version>\n"
21036 " <windows_systemroot>/Windows</windows_systemroot>\n"
21037 " <format>installed</format>\n"
21042 #: ../inspector/virt-inspector.pod:183
21044 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21045 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21046 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21047 "architecture. The other fields are fairly self-explanatory, but because "
21048 "these fields are taken directly from the libguestfs inspection API you can "
21049 "find precise information from L<guestfs(3)/INSPECTION>."
21053 #: ../inspector/virt-inspector.pod:191
21055 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21056 "of view of libguestfs (block devices may have completely different names "
21057 "inside the VM itself)."
21061 #: ../inspector/virt-inspector.pod:195
21063 #| msgid "mountpoints"
21064 msgid "E<lt>mountpointsE<gt>"
21065 msgstr "mountpoints"
21068 #: ../inspector/virt-inspector.pod:197
21070 "Un*x-like guests typically have multiple filesystems which are mounted at "
21071 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21072 "element which looks like this:"
21076 #: ../inspector/virt-inspector.pod:201
21079 " <operatingsystems>\n"
21080 " <operatingsystem>\n"
21083 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21084 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21085 " </mountpoints>\n"
21090 #: ../inspector/virt-inspector.pod:209
21092 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21093 "and may have completely different names inside the guest. Only mountable "
21094 "filesystems appear in this list, not things like swap devices."
21098 #: ../inspector/virt-inspector.pod:214
21100 #| msgid "list-filesystems"
21101 msgid "E<lt>filesystemsE<gt>"
21102 msgstr "list-filesystems"
21105 #: ../inspector/virt-inspector.pod:216
21107 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21108 "filesystems belonging to the guest, including swap and empty partitions. "
21109 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21110 "this OS or shared with this OS and other OSes)."
21114 #: ../inspector/virt-inspector.pod:222
21115 msgid "You might see something like this:"
21119 #: ../inspector/virt-inspector.pod:224
21122 " <operatingsystems>\n"
21123 " <operatingsystem>\n"
21126 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21127 " <type>ext4</type>\n"
21128 " <label>Fedora-13-x86_64</label>\n"
21129 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21135 #: ../inspector/virt-inspector.pod:234
21137 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21138 "the label, and the UUID."
21142 #: ../inspector/virt-inspector.pod:237
21143 msgid "E<lt>applicationsE<gt>"
21147 #: ../inspector/virt-inspector.pod:239
21149 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21150 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21155 #: ../inspector/virt-inspector.pod:243
21157 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
21158 "Typical values would be C<rpm> and C<deb>."
21162 #: ../inspector/virt-inspector.pod:246
21164 "E<lt>package_managementE<gt>, if present, describes the package manager. "
21165 "Typical values include C<yum>, C<up2date> and C<apt>"
21169 #: ../inspector/virt-inspector.pod:249
21170 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21174 #: ../inspector/virt-inspector.pod:252
21177 " <operatingsystems>\n"
21178 " <operatingsystem>\n"
21180 " <applications>\n"
21182 " <name>coreutils</name>\n"
21183 " <version>8.5</version>\n"
21184 " <release>1</release>\n"
21185 " </application>\n"
21190 #: ../inspector/virt-inspector.pod:262
21192 "The version and release fields may not be available for some types guests. "
21193 "Other fields are possible, see L<guestfs(3)/"
21194 "guestfs_inspect_list_applications>."
21198 #: ../inspector/virt-inspector.pod:266
21199 msgid "E<lt>drive_mappingsE<gt>"
21203 #: ../inspector/virt-inspector.pod:268
21205 "For operating systems like Windows which use drive letters, virt-inspector "
21206 "is able to find out how drive letters map to filesystems."
21210 #: ../inspector/virt-inspector.pod:272
21213 " <operatingsystems>\n"
21214 " <operatingsystem>\n"
21216 " <drive_mappings>\n"
21217 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21218 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21219 " </drive_mappings>\n"
21224 #: ../inspector/virt-inspector.pod:280
21226 "In the example above, drive C maps to the filesystem on the second partition "
21227 "on the first disk, and drive E maps to the filesystem on the first partition "
21228 "on the second disk."
21232 #: ../inspector/virt-inspector.pod:284
21234 "Note that this only covers permanent local filesystem mappings, not things "
21235 "like network shares. Furthermore NTFS volume mount points may not be listed "
21240 #: ../inspector/virt-inspector.pod:288
21242 #| msgid "B<-s E<lt>NE<gt>>"
21243 msgid "E<lt>iconE<gt>"
21244 msgstr "B<-s E<lt>NE<gt>>"
21247 #: ../inspector/virt-inspector.pod:290
21249 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
21250 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
21251 "very large and high quality."
21255 #: ../inspector/virt-inspector.pod:294
21258 " <operatingsystems>\n"
21259 " <operatingsystem>\n"
21262 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21263 " [... many lines of base64 data ...]\n"
21269 #: ../inspector/virt-inspector.pod:302
21271 "To display the icon, you have to extract it and convert the base64 data back "
21272 "to a binary file. Use an XPath query or simply an editor to extract the "
21273 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21278 #: ../inspector/virt-inspector.pod:307
21281 " base64 -i -d < icon.data > icon.png\n"
21286 #: ../inspector/virt-inspector.pod:309
21287 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21291 #: ../inspector/virt-inspector.pod:311
21293 "Virt-inspector can detect some operating system installers on install disks, "
21294 "live CDs, bootable USB keys and more."
21298 #: ../inspector/virt-inspector.pod:314
21300 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21301 "fields may be present to indicate a live CD, network installer, or one part "
21302 "of a multipart CD. For example:"
21306 #: ../inspector/virt-inspector.pod:318
21309 " <operatingsystems>\n"
21310 " <operatingsystem>\n"
21311 " <root>/dev/sda</root>\n"
21312 " <name>linux</name>\n"
21313 " <arch>i386</arch>\n"
21314 " <distro>ubuntu</distro>\n"
21315 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
21316 " <major_version>10</major_version>\n"
21317 " <minor_version>10</minor_version>\n"
21318 " <format>installer</format>\n"
21324 #: ../inspector/virt-inspector.pod:330
21325 msgid "USING XPATH"
21329 #: ../inspector/virt-inspector.pod:332
21331 "You can use the XPath query language to select parts of the XML. We "
21332 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21336 #: ../inspector/virt-inspector.pod:338
21339 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21341 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21342 " <type>ext4</type>\n"
21348 #: ../inspector/virt-inspector.pod:344
21351 " $ virt-inspector -d Guest | \\\n"
21352 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21358 #: ../inspector/virt-inspector.pod:348
21361 " $ virt-inspector -d Guest | \\\n"
21362 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21363 " [displays the guest icon, if there is one]\n"
21368 #: ../inspector/virt-inspector.pod:359
21369 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21373 #: ../inspector/virt-inspector.pod:361
21375 "Early versions of libguestfs shipped with a different virt-inspector program "
21376 "written in Perl (the current version is written in C). The XML output of "
21377 "the Perl virt-inspector was different and it could also output in other "
21378 "formats like text."
21382 #: ../inspector/virt-inspector.pod:366
21384 "The old virt-inspector is no longer supported or shipped with libguestfs."
21388 #: ../inspector/virt-inspector.pod:369
21390 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21391 "versions of virt-inspector with different names:"
21395 #: ../inspector/virt-inspector.pod:372
21398 " virt-inspector Old Perl version.\n"
21399 " virt-inspector2 New C version.\n"
21404 #: ../inspector/virt-inspector.pod:382
21407 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21408 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21409 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21411 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21412 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21414 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21415 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21416 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21419 #: ../inspector/virt-inspector.pod:399
21420 msgid "Matthew Booth L<mbooth@redhat.com>"
21424 #: ../java/examples/guestfs-java.pod:5
21425 msgid "guestfs-java - How to use libguestfs from Java"
21429 #: ../java/examples/guestfs-java.pod:9
21432 " import com.redhat.et.libguestfs.*;\n"
21437 #: ../java/examples/guestfs-java.pod:11
21440 " GuestFS g = new GuestFS ();\n"
21441 " g.add_drive_opts (\"disk.img\", null);\n"
21447 #: ../java/examples/guestfs-java.pod:17
21449 "This manual page documents how to call libguestfs from the Java programming "
21450 "language. This page just documents the differences from the C API and gives "
21451 "some examples. If you are not familiar with using libguestfs, you also need "
21452 "to read L<guestfs(3)>."
21456 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21457 msgid "CLOSING THE HANDLE"
21461 #: ../java/examples/guestfs-java.pod:24
21463 "The handle is closed when it is reaped by the garbage collector. Because "
21464 "libguestfs handles include a lot of state, it is also possible to close (and "
21465 "hence free) them explicitly by calling the C<close> method."
21469 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21470 #: ../python/examples/guestfs-python.pod:21
21471 #: ../ruby/examples/guestfs-ruby.pod:22
21478 #: ../java/examples/guestfs-java.pod:31
21480 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21481 "exception. This has a single parameter which is the error message (a "
21486 #: ../java/examples/guestfs-java.pod:35
21487 msgid "Calling any method on a closed handle raises the same exception."
21491 #: ../java/examples/guestfs-java.pod:47
21494 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21495 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21496 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21498 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21499 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21500 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21502 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21503 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21504 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21507 #: ../ocaml/examples/guestfs-ocaml.pod:5
21508 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21512 #: ../ocaml/examples/guestfs-ocaml.pod:9
21513 msgid "Module style:"
21517 #: ../ocaml/examples/guestfs-ocaml.pod:11
21520 " let g = Guestfs.create () in\n"
21521 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21522 " Guestfs.launch g;\n"
21527 #: ../ocaml/examples/guestfs-ocaml.pod:15
21528 msgid "Object-oriented style:"
21532 #: ../ocaml/examples/guestfs-ocaml.pod:17
21535 " let g = new Guestfs.guestfs () in\n"
21536 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21542 #: ../ocaml/examples/guestfs-ocaml.pod:21
21545 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21547 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21552 #: ../ocaml/examples/guestfs-ocaml.pod:27
21554 "This manual page documents how to call libguestfs from the OCaml programming "
21555 "language. This page just documents the differences from the C API and gives "
21556 "some examples. If you are not familiar with using libguestfs, you also need "
21557 "to read L<guestfs(3)>."
21561 #: ../ocaml/examples/guestfs-ocaml.pod:32
21562 msgid "PROGRAMMING STYLES"
21566 #: ../ocaml/examples/guestfs-ocaml.pod:34
21568 "There are two different programming styles supported by the OCaml bindings. "
21569 "You can use a module style, with each C function mapped to an OCaml function:"
21573 #: ../ocaml/examples/guestfs-ocaml.pod:38
21576 #| " int guestfs_last_errno (guestfs_h *g);\n"
21579 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21582 " int guestfs_last_errno (guestfs_h *g);\n"
21586 #: ../ocaml/examples/guestfs-ocaml.pod:40
21591 #: ../ocaml/examples/guestfs-ocaml.pod:42
21594 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21599 #: ../ocaml/examples/guestfs-ocaml.pod:44
21601 "Alternately you can use an object-oriented style, calling methods on the "
21602 "class C<Guestfs.guestfs>:"
21606 #: ../ocaml/examples/guestfs-ocaml.pod:47
21609 " method set_verbose : bool -> unit\n"
21614 #: ../ocaml/examples/guestfs-ocaml.pod:49
21616 "The object-oriented style is usually briefer, and the minor performance "
21617 "penalty isn't noticable in the general overhead of performing libguestfs "
21622 #: ../ocaml/examples/guestfs-ocaml.pod:55
21624 "The handle is closed when it is reaped by the garbage collector. Because "
21625 "libguestfs handles include a lot of state, it is also possible to close (and "
21626 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21631 #: ../ocaml/examples/guestfs-ocaml.pod:62
21633 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21634 "exception. This has a single parameter which is the error message (a "
21639 #: ../ocaml/examples/guestfs-ocaml.pod:66
21641 "Calling any function/method on a closed handle raises C<Guestfs."
21642 "Handle_closed>. The single parameter is the name of the function that you "
21647 #: ../ocaml/examples/guestfs-ocaml.pod:80
21650 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21651 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21652 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21654 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21655 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21656 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21658 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21659 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21660 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21663 #: ../perl/examples/guestfs-perl.pod:5
21664 msgid "guestfs-perl - How to use libguestfs from Perl"
21668 #: ../perl/examples/guestfs-perl.pod:9
21671 " use Sys::Guestfs;\n"
21676 #: ../perl/examples/guestfs-perl.pod:11
21679 " my $h = Sys::Guestfs->new ();\n"
21680 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21681 " $h->launch ();\n"
21682 " $h->mount_options ('', '/dev/sda1', '/');\n"
21683 " $h->touch ('/hello');\n"
21689 #: ../perl/examples/guestfs-perl.pod:20
21691 "This manual page documents how to call libguestfs from the Perl programming "
21692 "language. This page just documents the differences from the C API and gives "
21693 "some examples. If you are not familiar with using libguestfs, you also need "
21694 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21698 #: ../perl/examples/guestfs-perl.pod:26
21703 #: ../perl/examples/guestfs-perl.pod:28
21705 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21710 #: ../perl/examples/guestfs-perl.pod:41
21713 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21714 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21715 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21717 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21718 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21719 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21721 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21722 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21723 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21726 #: ../python/examples/guestfs-python.pod:5
21727 msgid "guestfs-python - How to use libguestfs from Python"
21731 #: ../python/examples/guestfs-python.pod:9
21734 " import guestfs\n"
21735 " g = guestfs.GuestFS ()\n"
21736 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21742 #: ../python/examples/guestfs-python.pod:16
21744 "This manual page documents how to call libguestfs from the Python "
21745 "programming language. This page just documents the differences from the C "
21746 "API and gives some examples. If you are not familiar with using libguestfs, "
21747 "you also need to read L<guestfs(3)>."
21751 #: ../python/examples/guestfs-python.pod:23
21753 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21754 "single string argument which is the error message."
21758 #: ../python/examples/guestfs-python.pod:26
21759 msgid "MORE DOCUMENTATION"
21763 #: ../python/examples/guestfs-python.pod:28
21768 #: ../python/examples/guestfs-python.pod:30
21772 " >>> import guestfs\n"
21773 " >>> help (guestfs)\n"
21778 #: ../python/examples/guestfs-python.pod:44
21781 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21782 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21783 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21785 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21786 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21787 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21789 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21790 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21791 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21794 #: ../rescue/virt-rescue.pod:5
21795 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21799 #: ../rescue/virt-rescue.pod:9
21802 #| " virt-list-partitions [--options] domname\n"
21805 " virt-rescue [--options] -d domname\n"
21808 " virt-list-partitions [--параметри] назва_домену\n"
21812 #: ../rescue/virt-rescue.pod:11
21815 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21818 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21821 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21825 #: ../rescue/virt-rescue.pod:15
21828 #| " virt-list-partitions [--options] domname\n"
21831 " virt-rescue [--options] domname\n"
21834 " virt-list-partitions [--параметри] назва_домену\n"
21838 #: ../rescue/virt-rescue.pod:17
21841 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21844 " virt-rescue [--options] disk.img [disk.img ...]\n"
21847 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21851 #: ../rescue/virt-rescue.pod:21
21853 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21854 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21855 "you from doing this, but doesn't catch all cases."
21859 #: ../rescue/virt-rescue.pod:25
21861 "However if you use the I<--ro> (read only) option, then you can attach a "
21862 "shell to a live virtual machine. The results might be strange or "
21863 "inconsistent at times but you won't get disk corruption."
21867 #: ../rescue/virt-rescue.pod:31
21869 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21870 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21871 "recovery tools which you can use to examine or rescue a virtual machine or "
21876 #: ../rescue/virt-rescue.pod:36
21878 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21879 "on disk image(s):"
21883 #: ../rescue/virt-rescue.pod:39
21886 " virt-rescue -d GuestName\n"
21891 #: ../rescue/virt-rescue.pod:41
21894 " virt-rescue --ro -a /path/to/disk.img\n"
21899 #: ../rescue/virt-rescue.pod:43
21902 " virt-rescue -a /dev/sdc\n"
21907 #: ../rescue/virt-rescue.pod:45
21908 msgid "For live VMs you I<must> use the --ro option."
21912 #: ../rescue/virt-rescue.pod:47
21914 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21915 "in an interactive bash shell where you can use many ordinary Linux "
21916 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21917 "appliance. You must mount the virtual machine's filesystems by hand. There "
21918 "is an empty directory called C</sysroot> where you can mount filesystems."
21922 #: ../rescue/virt-rescue.pod:54
21924 "In the example below, we list logical volumes, then choose one to mount "
21925 "under C</sysroot>:"
21929 #: ../rescue/virt-rescue.pod:57
21933 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21934 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21935 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21936 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21937 " ><rescue> ls /sysroot\n"
21942 #: ../rescue/virt-rescue.pod:64
21944 "If you don't know what filesystems are available on the virtual machine then "
21945 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21949 #: ../rescue/virt-rescue.pod:70
21951 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21952 "virtual machine. For example you can use it on a blank file if you want to "
21953 "partition that file (although we would recommend using L<guestfish(1)> "
21954 "instead as it is more suitable for this purpose). You can even use virt-"
21955 "rescue on things like SD cards."
21959 #: ../rescue/virt-rescue.pod:76
21961 "Virt-rescue does not require root. You only need to run it as root if you "
21962 "need root to open the disk image."
21966 #: ../rescue/virt-rescue.pod:79
21968 "This tool is just designed for quick interactive hacking on a virtual "
21969 "machine. For more structured access to a virtual machine disk image, you "
21970 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21971 "make scripted changes to guests, use L<guestfish(1)>."
21975 #: ../rescue/virt-rescue.pod:103
21976 msgid "B<--append kernelopts>"
21980 #: ../rescue/virt-rescue.pod:105
21981 msgid "Pass additional options to the rescue kernel."
21985 #: ../rescue/virt-rescue.pod:135
21988 #| " guestfish --format=raw -a disk.img\n"
21991 " virt-rescue --format=raw -a disk.img\n"
21994 " guestfish --format=raw -a disk.img\n"
21998 #: ../rescue/virt-rescue.pod:139
22001 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
22004 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22007 " guestfish --format=raw -a disk.img --format -a another.img\n"
22011 #: ../rescue/virt-rescue.pod:148
22016 #: ../rescue/virt-rescue.pod:150
22018 #| msgid "B<--merge>"
22019 msgid "B<--memsize MB>"
22020 msgstr "B<--merge>"
22023 #: ../rescue/virt-rescue.pod:152
22025 "Change the amount of memory allocated to the rescue system. The default is "
22026 "set by libguestfs and is small but adequate for running system tools. The "
22027 "occasional program might need more memory. The parameter is specified in "
22032 #: ../rescue/virt-rescue.pod:157
22034 #| msgid "B<--inspector>"
22035 msgid "B<--network>"
22036 msgstr "B<--inspector>"
22039 #: ../rescue/virt-rescue.pod:159
22040 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
22044 #: ../rescue/virt-rescue.pod:165
22045 msgid "Open the image read-only."
22049 #: ../rescue/virt-rescue.pod:175
22051 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
22052 "SELINUX> before using this option."
22056 #: ../rescue/virt-rescue.pod:178
22058 #| msgid "B<--csh>"
22063 #: ../rescue/virt-rescue.pod:180
22064 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22068 #: ../rescue/virt-rescue.pod:198
22070 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22071 "are done read-write."
22075 #: ../rescue/virt-rescue.pod:211
22076 msgid "Previous versions of virt-rescue allowed you to write either:"
22080 #: ../rescue/virt-rescue.pod:213
22083 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22086 " virt-rescue disk.img [disk.img ...]\n"
22089 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22093 #: ../rescue/virt-rescue.pod:217
22096 #| " file-architecture filename\n"
22099 " virt-rescue guestname\n"
22102 " file-architecture назва_файла\n"
22106 #: ../rescue/virt-rescue.pod:225
22111 #: ../rescue/virt-rescue.pod:227
22113 "Adding the I<--network> option enables QEMU user networking in the rescue "
22114 "appliance. There are some differences between user networking and ordinary "
22119 #: ../rescue/virt-rescue.pod:233
22120 msgid "ping does not work"
22124 #: ../rescue/virt-rescue.pod:235
22126 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22127 "send the ping packets, and because virt-rescue must be able to run as non-"
22128 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
22129 "The ping command will appear to resolve addresses but will not be able to "
22130 "send or receive any packets. This does not mean that the network is not "
22135 #: ../rescue/virt-rescue.pod:242
22136 msgid "cannot receive connections"
22140 #: ../rescue/virt-rescue.pod:244
22141 msgid "QEMU user networking cannot receive incoming connections."
22145 #: ../rescue/virt-rescue.pod:246
22146 msgid "making TCP connections"
22150 #: ../rescue/virt-rescue.pod:248
22152 "The virt-rescue appliance needs to be small and so does not include many "
22153 "network tools. In particular there is no L<telnet(1)> command. You can "
22154 "make TCP connections from the shell using the magical C</dev/tcp/"
22155 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22159 #: ../rescue/virt-rescue.pod:253
22162 " exec 3<>/dev/tcp/redhat.com/80\n"
22163 " echo \"GET /\" >&3\n"
22169 #: ../rescue/virt-rescue.pod:257
22170 msgid "See L<bash(1)> for more details."
22174 #: ../rescue/virt-rescue.pod:263
22176 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
22177 "ENVIRONMENT VARIABLES> for the complete list."
22181 #: ../rescue/virt-rescue.pod:290
22184 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22185 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22186 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22188 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22189 "libguestfs.org/>."
22191 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22192 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22193 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22196 #: ../resize/virt-resize.pod:5
22197 msgid "virt-resize - Resize a virtual machine disk"
22201 #: ../resize/virt-resize.pod:9
22204 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22205 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22206 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22211 #: ../resize/virt-resize.pod:15
22213 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22214 "larger or smaller overall, and resizing or deleting any partitions contained "
22219 #: ../resize/virt-resize.pod:19
22221 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
22222 "not> be used on live virtual machines - for consistent results, shut the "
22223 "virtual machine down before resizing it."
22227 #: ../resize/virt-resize.pod:23
22229 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22230 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22234 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22235 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1284 ../src/guestfs.pod:1423
22236 #: ../src/guestfs.pod:2601
22241 #: ../resize/virt-resize.pod:33
22243 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22244 "fill the extra 5GB of space."
22248 #: ../resize/virt-resize.pod:36
22251 " virt-filesystems --long -h --all -a olddisk\n"
22256 #: ../resize/virt-resize.pod:38
22259 " truncate -r olddisk newdisk\n"
22260 " truncate -s +5G newdisk\n"
22265 #: ../resize/virt-resize.pod:41
22268 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22269 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22274 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22275 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1288 ../src/guestfs.pod:1427
22276 #: ../src/guestfs.pod:2626
22281 #: ../resize/virt-resize.pod:46
22283 "As above, but make the /boot partition 200MB bigger, while giving the "
22284 "remaining space to /dev/sda2:"
22288 #: ../resize/virt-resize.pod:49
22291 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22292 " olddisk newdisk\n"
22297 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22298 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1433
22303 #: ../resize/virt-resize.pod:54
22305 "As in the first example, but expand a logical volume as the final step. "
22306 "This is what you would typically use for Linux guests that use LVM:"
22310 #: ../resize/virt-resize.pod:58
22313 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22314 " olddisk newdisk\n"
22319 #: ../resize/virt-resize.pod:61
22324 #: ../resize/virt-resize.pod:63
22326 "As in the first example, but the output format will be qcow2 instead of a "
22331 #: ../resize/virt-resize.pod:66
22334 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22335 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22340 #: ../resize/virt-resize.pod:71
22341 msgid "DETAILED USAGE"
22345 #: ../resize/virt-resize.pod:73
22346 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22350 #: ../resize/virt-resize.pod:77
22351 msgid "1. Shut down the virtual machine"
22355 #: ../resize/virt-resize.pod:79
22356 msgid "2. Locate input disk image"
22360 #: ../resize/virt-resize.pod:81
22362 "Locate the input disk image (ie. the file or device on the host containing "
22363 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
22364 "dumpxml> like this to find the disk image name:"
22368 #: ../resize/virt-resize.pod:85
22371 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22372 " Found 1 nodes:\n"
22374 " <source dev=\"/dev/vg/lv_guest\" />\n"
22379 #: ../resize/virt-resize.pod:90
22380 msgid "3. Look at current sizing"
22384 #: ../resize/virt-resize.pod:92
22385 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22389 #: ../resize/virt-resize.pod:95
22392 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22393 " Name Type Size Parent\n"
22394 " /dev/sda1 partition 101M /dev/sda\n"
22395 " /dev/sda2 partition 7.9G /dev/sda\n"
22396 " /dev/sda device 8.0G -\n"
22401 #: ../resize/virt-resize.pod:101
22403 "(This example is a virtual machine with an 8 GB disk which we would like to "
22404 "expand up to 10 GB)."
22408 #: ../resize/virt-resize.pod:104
22409 msgid "4. Create output disk"
22413 #: ../resize/virt-resize.pod:106
22415 "Virt-resize cannot do in-place disk modifications. You have to have space "
22416 "to store the resized output disk."
22420 #: ../resize/virt-resize.pod:109
22422 "To store the resized disk image in a file, create a file of a suitable size:"
22426 #: ../resize/virt-resize.pod:112
22429 " # rm -f outdisk\n"
22430 " # truncate -s 10G outdisk\n"
22435 #: ../resize/virt-resize.pod:115
22436 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22440 #: ../resize/virt-resize.pod:117
22443 " # lvcreate -L 10G -n lv_name vg_name\n"
22448 #: ../resize/virt-resize.pod:119
22449 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22453 #: ../resize/virt-resize.pod:121
22456 " # virsh pool-list\n"
22457 " # virsh vol-create-as poolname newvol 10G\n"
22462 #: ../resize/virt-resize.pod:124
22467 #: ../resize/virt-resize.pod:126
22469 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22470 "file) and the output disk. The output disk is the one created in the "
22475 #: ../resize/virt-resize.pod:130
22478 " # virt-resize indisk outdisk\n"
22483 #: ../resize/virt-resize.pod:132
22485 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22486 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22487 "larger, then an extra, empty partition is created at the end of the disk "
22488 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22493 #: ../resize/virt-resize.pod:138
22495 "More realistically you'd want to expand existing partitions in the disk "
22496 "image by passing extra options (for the full list see the L</OPTIONS> "
22501 #: ../resize/virt-resize.pod:142
22503 "L</--expand> is the most useful option. It expands the named partition "
22504 "within the disk to fill any extra space:"
22508 #: ../resize/virt-resize.pod:145
22511 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22516 #: ../resize/virt-resize.pod:147
22518 "(In this case, an extra partition is I<not> created at the end of the disk, "
22519 "because there will be no unused space)."
22523 #: ../resize/virt-resize.pod:150
22525 "L</--resize> is the other commonly used option. The following would "
22526 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22527 "rest of the available space:"
22531 #: ../resize/virt-resize.pod:154
22534 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22535 " indisk outdisk\n"
22540 #: ../resize/virt-resize.pod:157
22542 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22543 "if virt-resize knows how, it will resize the contents, the equivalent of "
22544 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22545 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22546 "filesystems, so you would have to online resize them after booting the guest."
22550 #: ../resize/virt-resize.pod:164
22551 msgid "Other options are covered below."
22555 #: ../resize/virt-resize.pod:166
22560 #: ../resize/virt-resize.pod:168
22561 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22565 #: ../resize/virt-resize.pod:170
22566 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22570 #: ../resize/virt-resize.pod:172
22573 #| " edit filename\n"
22576 " # virsh edit guestname\n"
22579 " edit назва_файла\n"
22583 #: ../resize/virt-resize.pod:174
22585 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22586 "html#elementsDisks>"
22590 #: ../resize/virt-resize.pod:177
22591 msgid "Then start up the domain with the new, resized disk:"
22595 #: ../resize/virt-resize.pod:179
22598 #| " ln-s target linkname\n"
22601 " # virsh start guestname\n"
22604 " ln-s призначення назва_посилання\n"
22608 #: ../resize/virt-resize.pod:181
22610 "and check that it still works. See also the L</NOTES> section below for "
22611 "additional information."
22615 #: ../resize/virt-resize.pod:184
22616 msgid "7. Resize LVs etc inside the guest"
22620 #: ../resize/virt-resize.pod:186
22621 msgid "(This can also be done offline using L<guestfish(1)>)"
22625 #: ../resize/virt-resize.pod:188
22627 "Once the guest has booted you should see the new space available, at least "
22628 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22629 "may need to resize LVs inside PVs, and also resize filesystem types that "
22630 "virt-resize does not know how to expand."
22634 #: ../resize/virt-resize.pod:195
22635 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22639 #: ../resize/virt-resize.pod:197
22641 "Shrinking is somewhat more complex than expanding, and only an overview is "
22646 #: ../resize/virt-resize.pod:200
22648 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22649 "filesystems). The user has to shrink content before passing the disk image "
22650 "to virt-resize, and virt-resize will check that the content has been shrunk "
22655 #: ../resize/virt-resize.pod:205
22656 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22660 #: ../resize/virt-resize.pod:207
22662 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22663 "steps 3 and 4 above to allocate a new disk image."
22667 #: ../resize/virt-resize.pod:210
22669 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22673 #: ../resize/virt-resize.pod:213
22674 msgid "IGNORING OR DELETING PARTITIONS"
22678 #: ../resize/virt-resize.pod:215
22680 "virt-resize also gives a convenient way to ignore or delete partitions when "
22681 "copying from the input disk to the output disk. Ignoring a partition speeds "
22682 "up the copy where you don't care about the existing contents of a "
22683 "partition. Deleting a partition removes it completely, but note that it "
22684 "also renumbers any partitions after the one which is deleted, which can "
22685 "leave some guests unbootable."
22689 #: ../resize/virt-resize.pod:222
22690 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22694 #: ../resize/virt-resize.pod:224
22696 "If the input disk is in qcow2 format, then you may prefer that the output is "
22697 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22698 "the fly. The output format is simply determined by the format of the empty "
22699 "output container that you provide. Thus to create qcow2 output, use:"
22703 #: ../resize/virt-resize.pod:230
22706 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22711 #: ../resize/virt-resize.pod:232
22712 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22716 #: ../resize/virt-resize.pod:234
22717 msgid "Similarly, to get non-sparse raw output use:"
22721 #: ../resize/virt-resize.pod:236
22724 #| " fallocate path len\n"
22727 " fallocate -l size outdisk\n"
22730 " fallocate шлях довжина\n"
22734 #: ../resize/virt-resize.pod:238
22736 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22737 "dev/zero of=outdisk bs=1M count=..>)"
22741 #: ../resize/virt-resize.pod:247
22742 msgid "Display help."
22746 #: ../resize/virt-resize.pod:249
22751 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22752 #: ../tools/virt-win-reg.pl:120
22754 msgstr "B<--debug>"
22757 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22758 msgid "Enable debugging messages."
22762 #: ../resize/virt-resize.pod:255
22764 #| msgid "B<--no-dest-paths>"
22765 msgid "B<--delete part>"
22766 msgstr "B<--no-dest-paths>"
22769 #: ../resize/virt-resize.pod:257
22771 "Delete the named partition. It would be more accurate to describe this as "
22772 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22773 "the original disk image is left intact."
22777 #: ../resize/virt-resize.pod:261
22779 "Note that when you delete a partition, then anything contained in the "
22780 "partition is also deleted. Furthermore, this causes any partitions that "
22781 "come after to be I<renumbered>, which can easily make your guest unbootable."
22785 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22786 #: ../resize/virt-resize.pod:454
22787 msgid "You can give this option multiple times."
22791 #: ../resize/virt-resize.pod:268
22793 #| msgid "B<--partition>"
22794 msgid "B<--expand part>"
22795 msgstr "B<--partition>"
22798 #: ../resize/virt-resize.pod:270
22800 "Expand the named partition so it uses up all extra space (space left over "
22801 "after any other resize changes that you request have been done)."
22805 #: ../resize/virt-resize.pod:273
22807 "If virt-resize knows how, it will expand the direct content of the "
22808 "partition. For example, if the partition is an LVM PV, it will expand the "
22809 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22810 "content it doesn't know about alone."
22814 #: ../resize/virt-resize.pod:278
22815 msgid "Currently virt-resize can resize:"
22819 #: ../resize/virt-resize.pod:284
22820 msgid "ext2, ext3 and ext4 filesystems."
22824 #: ../resize/virt-resize.pod:288
22825 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22829 #: ../resize/virt-resize.pod:290
22831 "The filesystem must have been shut down consistently last time it was used. "
22832 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22833 "consistency check, so at the first boot after resizing Windows will check "
22838 #: ../resize/virt-resize.pod:297
22840 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22841 "inside the PV, but see the I<--LV-expand> option. The user could also "
22842 "resize LVs as desired after boot."
22846 #: ../resize/virt-resize.pod:303
22847 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22851 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22852 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22856 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22857 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22858 #: ../tools/virt-win-reg.pl:142
22859 msgid "B<--format> raw"
22863 #: ../resize/virt-resize.pod:311
22865 "Specify the format of the input disk image. If this flag is not given then "
22866 "it is auto-detected from the image itself."
22870 #: ../resize/virt-resize.pod:317
22872 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22873 "AND NON-SPARSE RAW FORMATS>."
22877 #: ../resize/virt-resize.pod:320
22879 #| msgid "B<--format>"
22880 msgid "B<--ignore part>"
22881 msgstr "B<--format>"
22884 #: ../resize/virt-resize.pod:322
22886 "Ignore the named partition. Effectively this means the partition is "
22887 "allocated on the destination disk, but the content is not copied across from "
22888 "the source disk. The content of the partition will be blank (all zero "
22893 #: ../resize/virt-resize.pod:329
22894 msgid "B<--LV-expand logvol>"
22898 #: ../resize/virt-resize.pod:331
22900 "This takes the logical volume and, as a final step, expands it to fill all "
22901 "the space available in its volume group. A typical usage, assuming a Linux "
22902 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22903 "lv_root> would be:"
22907 #: ../resize/virt-resize.pod:336
22910 " virt-resize indisk outdisk \\\n"
22911 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22916 #: ../resize/virt-resize.pod:339
22918 "This would first expand the partition (and PV), and then expand the root "
22919 "device to fill the extra space in the PV."
22923 #: ../resize/virt-resize.pod:342
22925 "The contents of the LV are also resized if virt-resize knows how to do "
22926 "that. You can stop virt-resize from trying to expand the content by using "
22927 "the option I<--no-expand-content>."
22931 #: ../resize/virt-resize.pod:346
22932 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22936 #: ../resize/virt-resize.pod:348
22938 "You can give this option multiple times, I<but> it doesn't make sense to do "
22939 "this unless the logical volumes you specify are all in different volume "
22944 #: ../resize/virt-resize.pod:352
22946 #| msgid "B<-h> | B<--human-readable>"
22947 msgid "B<--machine-readable>"
22948 msgstr "B<-h> | B<--human-readable>"
22951 #: ../resize/virt-resize.pod:354
22953 "This option is used to make the output more machine friendly when being "
22954 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
22958 #: ../resize/virt-resize.pod:360
22960 #| msgid "B<--debug>"
22961 msgid "B<--dryrun>"
22962 msgstr "B<--debug>"
22965 #: ../resize/virt-resize.pod:362
22966 msgid "Print a summary of what would be done, but don't do anything."
22970 #: ../resize/virt-resize.pod:364
22971 msgid "B<--no-copy-boot-loader>"
22975 #: ../resize/virt-resize.pod:366
22977 "By default, virt-resize copies over some sectors at the start of the disk "
22978 "(up to the beginning of the first partition). Commonly these sectors "
22979 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22980 "in order for the guest to boot correctly."
22984 #: ../resize/virt-resize.pod:371
22986 "If you specify this flag, then this initial copy is not done. You may need "
22987 "to reinstall the boot loader in this case."
22991 #: ../resize/virt-resize.pod:374
22993 #| msgid "B<--partition>"
22994 msgid "B<--no-extra-partition>"
22995 msgstr "B<--partition>"
22998 #: ../resize/virt-resize.pod:376
23000 "By default, virt-resize creates an extra partition if there is any extra, "
23001 "unused space after all resizing has happened. Use this option to prevent "
23002 "the extra partition from being created. If you do this then the extra space "
23003 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23004 "tool in the guest."
23008 #: ../resize/virt-resize.pod:382
23010 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23015 #: ../resize/virt-resize.pod:385
23017 #| msgid "B<--no-dest-paths>"
23018 msgid "B<--no-expand-content>"
23019 msgstr "B<--no-dest-paths>"
23022 #: ../resize/virt-resize.pod:387
23024 "By default, virt-resize will try to expand the direct contents of "
23025 "partitions, if it knows how (see I<--expand> option above)."
23029 #: ../resize/virt-resize.pod:390
23031 "If you give the I<--no-expand-content> option then virt-resize will not "
23036 #: ../resize/virt-resize.pod:393
23038 #| msgid "ntfsresize-size"
23039 msgid "B<--ntfsresize-force>"
23040 msgstr "ntfsresize-size"
23043 #: ../resize/virt-resize.pod:395
23045 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23046 "the NTFS disk is marked as needing a consistency check. You have to use "
23047 "this option if you want to resize a Windows guest multiple times without "
23048 "booting into Windows between each resize."
23052 #: ../resize/virt-resize.pod:401
23054 #| msgid "B<--format>"
23055 msgid "B<--output-format> raw"
23056 msgstr "B<--format>"
23059 #: ../resize/virt-resize.pod:403
23061 "Specify the format of the output disk image. If this flag is not given then "
23062 "it is auto-detected from the image itself."
23066 #: ../resize/virt-resize.pod:409
23068 "Note that this option I<does not create> the output format. This option "
23069 "just tells libguestfs what it is so it doesn't try to guess it. You still "
23070 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
23071 "SPARSE RAW FORMATS>."
23075 #: ../resize/virt-resize.pod:414
23080 #: ../resize/virt-resize.pod:416
23082 #| msgid "B<--live>"
23087 #: ../resize/virt-resize.pod:418
23088 msgid "Don't print the summary."
23092 #: ../resize/virt-resize.pod:420
23094 #| msgid "B<part_size>"
23095 msgid "B<--resize part=size>"
23096 msgstr "B<part_size>"
23099 #: ../resize/virt-resize.pod:422
23101 "Resize the named partition (expanding or shrinking it) so that it has the "
23106 #: ../resize/virt-resize.pod:425
23108 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23109 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23110 "size; or as a relative number or percentage. For example:"
23114 #: ../resize/virt-resize.pod:431
23117 #| " hexedit /dev/sda 1M\n"
23120 " --resize /dev/sda2=10G\n"
23123 " hexedit /dev/sda 1M\n"
23127 #: ../resize/virt-resize.pod:433
23130 #| " pvresize device\n"
23133 " --resize /dev/sda4=90%\n"
23136 " pvresize пристрій\n"
23140 #: ../resize/virt-resize.pod:435
23143 #| " hexedit /dev/sda 1M\n"
23146 " --resize /dev/sda2=+1G\n"
23149 " hexedit /dev/sda 1M\n"
23153 #: ../resize/virt-resize.pod:437
23156 #| " hexedit /dev/sda 1M\n"
23159 " --resize /dev/sda2=-200M\n"
23162 " hexedit /dev/sda 1M\n"
23166 #: ../resize/virt-resize.pod:439
23169 #| " hexedit /dev/sda 1M\n"
23172 " --resize /dev/sda1=+128K\n"
23175 " hexedit /dev/sda 1M\n"
23179 #: ../resize/virt-resize.pod:441
23182 #| " hexedit /dev/sda 1M\n"
23185 " --resize /dev/sda1=+10%\n"
23188 " hexedit /dev/sda 1M\n"
23192 #: ../resize/virt-resize.pod:443
23195 #| " hexedit /dev/sda 1M\n"
23198 " --resize /dev/sda1=-10%\n"
23201 " hexedit /dev/sda 1M\n"
23205 #: ../resize/virt-resize.pod:445
23207 "You can increase the size of any partition. Virt-resize will expand the "
23208 "direct content of the partition if it knows how (see I<--expand> below)."
23212 #: ../resize/virt-resize.pod:449
23214 "You can only I<decrease> the size of partitions that contain filesystems or "
23215 "PVs which have already been shrunk. Virt-resize will check this has been "
23216 "done before proceeding, or else will print an error (see also I<--resize-"
23221 #: ../resize/virt-resize.pod:456
23222 msgid "B<--resize-force part=size>"
23226 #: ../resize/virt-resize.pod:458
23228 "This is the same as I<--resize> except that it will let you decrease the "
23229 "size of any partition. Generally this means you will lose any data which "
23230 "was at the end of the partition you shrink, but you may not care about that "
23231 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23232 "as a swap partition)."
23236 #: ../resize/virt-resize.pod:464
23237 msgid "See also the I<--ignore> option."
23241 #: ../resize/virt-resize.pod:466
23243 #| msgid "B<--partition>"
23244 msgid "B<--shrink part>"
23245 msgstr "B<--partition>"
23248 #: ../resize/virt-resize.pod:468
23250 "Shrink the named partition until the overall disk image fits in the "
23251 "destination. The named partition B<must> contain a filesystem or PV which "
23252 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23253 "online tools). Virt-resize will check this and give an error if it has not "
23258 #: ../resize/virt-resize.pod:474
23260 "The amount by which the overall disk must be shrunk (after carrying out all "
23261 "other operations requested by the user) is called the \"deficit\". For "
23262 "example, a straight copy (assume no other operations) from a 5GB disk image "
23263 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
23264 "would give an error unless the user specified a partition to shrink and that "
23265 "partition had more than a gigabyte of free space."
23269 #: ../resize/virt-resize.pod:492
23270 msgid "MACHINE READABLE OUTPUT"
23274 #: ../resize/virt-resize.pod:494
23276 "The I<--machine-readable> option can be used to make the output more machine "
23277 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23282 #: ../resize/virt-resize.pod:498
23283 msgid "There are two ways to use this option."
23287 #: ../resize/virt-resize.pod:500
23289 "Firstly use the option on its own to query the capabilities of the virt-"
23290 "resize binary. Typical output looks like this:"
23294 #: ../resize/virt-resize.pod:503
23297 " $ virt-resize --machine-readable\n"
23299 " ntfsresize-force\n"
23307 #: ../resize/virt-resize.pod:510
23309 "A list of features is printed, one per line, and the program exits with "
23314 #: ../resize/virt-resize.pod:513
23316 "Secondly use the option in conjunction with other options to make the "
23317 "regular program output more machine friendly."
23321 #: ../resize/virt-resize.pod:516
23322 msgid "At the moment this means:"
23326 #: ../resize/virt-resize.pod:522
23328 "Progress bar messages can be parsed from stdout by looking for this regular "
23333 #: ../resize/virt-resize.pod:525
23336 " ^[0-9]+/[0-9]+$\n"
23341 #: ../resize/virt-resize.pod:529
23343 "The calling program should treat messages sent to stdout (except for "
23344 "progress bar messages) as status messages. They can be logged and/or "
23345 "displayed to the user."
23349 #: ../resize/virt-resize.pod:535
23351 "The calling program should treat messages sent to stderr as error messages. "
23352 "In addition, virt-resize exits with a non-zero status code if there was a "
23357 #: ../resize/virt-resize.pod:541
23359 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23360 "readable> option and will return an error."
23364 #: ../resize/virt-resize.pod:546
23365 msgid "\"Partition 1 does not end on cylinder boundary.\""
23369 #: ../resize/virt-resize.pod:548
23371 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
23372 "means the partitions will not be aligned to the ancient CHS geometry. "
23373 "However CHS geometry is meaningless for disks manufactured since the early "
23374 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
23375 "cylinders is not required by any modern operating system."
23379 #: ../resize/virt-resize.pod:555
23380 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23384 #: ../resize/virt-resize.pod:557
23386 "In Windows Vista and later versions, Microsoft switched to using a separate "
23387 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
23388 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
23389 "the boot partition. Doing so seems to break the guest completely. However "
23390 "expanding the second partition (ie. C: drive) should work."
23394 #: ../resize/virt-resize.pod:564
23396 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23397 "NTFS partitions have been expanded. This is just a safety check and (unless "
23398 "it find errors) is nothing to worry about."
23402 #: ../resize/virt-resize.pod:568
23403 msgid "GUEST BOOT STUCK AT \"GRUB\""
23407 #: ../resize/virt-resize.pod:570
23409 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23410 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
23411 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23412 "although we think is to do with partition alignment."
23416 #: ../resize/virt-resize.pod:575
23419 " guestfish -i -a newdisk\n"
23420 " ><fs> cat /boot/grub/device.map\n"
23421 " # check the contents of this file are sensible or\n"
23422 " # edit the file if necessary\n"
23423 " ><fs> grub-install / /dev/vda\n"
23429 #: ../resize/virt-resize.pod:582
23431 "For more flexible guest reconfiguration, including if you need to specify "
23432 "other parameters to grub-install, use L<virt-rescue(1)>."
23436 #: ../resize/virt-resize.pod:585
23437 msgid "ALTERNATIVE TOOLS"
23441 #: ../resize/virt-resize.pod:587
23443 "There are several proprietary tools for resizing partitions. We won't "
23444 "mention any here."
23448 #: ../resize/virt-resize.pod:590
23450 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23451 "operations on disk images. They can resize and move partitions, but I don't "
23452 "think they can do anything with the contents, and they certainly don't "
23457 #: ../resize/virt-resize.pod:595
23459 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23460 "but at a much lower level. You will probably end up hand-calculating sector "
23461 "offsets, which is something that virt-resize was designed to avoid. If you "
23462 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23467 #: ../resize/virt-resize.pod:615
23469 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23470 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23471 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23472 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23476 #: ../ruby/examples/guestfs-ruby.pod:5
23477 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23481 #: ../ruby/examples/guestfs-ruby.pod:9
23484 " require 'guestfs'\n"
23485 " g = Guestfs::Guestfs.new()\n"
23486 " g.add_drive_opts(\"disk.img\",\n"
23487 " :readonly => 1, :format => \"raw\")\n"
23493 #: ../ruby/examples/guestfs-ruby.pod:17
23495 "This manual page documents how to call libguestfs from the Ruby programming "
23496 "language. This page just documents the differences from the C API and gives "
23497 "some examples. If you are not familiar with using libguestfs, you also need "
23498 "to read L<guestfs(3)>."
23502 #: ../ruby/examples/guestfs-ruby.pod:24
23504 "Errors from libguestfs functions are mapped into the C<Error> exception. "
23505 "This has a single parameter which is the error message (a string)."
23509 #: ../ruby/examples/guestfs-ruby.pod:38
23512 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23513 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23514 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23516 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23517 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23518 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23520 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23521 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23522 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23525 #: ../src/guestfs-actions.pod:1
23526 msgid "guestfs_add_cdrom"
23530 #: ../src/guestfs-actions.pod:3
23534 " guestfs_add_cdrom (guestfs_h *g,\n"
23535 " const char *filename);\n"
23540 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23541 #: ../src/guestfs-actions.pod:270
23543 "I<This function is deprecated.> In new code, use the L</"
23544 "guestfs_add_drive_opts> call instead."
23548 #: ../src/guestfs-actions.pod:24
23550 "This call checks for the existence of C<filename>. This stops you from "
23551 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23552 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
23557 #: ../src/guestfs-actions.pod:31
23559 "If you just want to add an ISO file (often you use this as an efficient way "
23560 "to transfer large files into the guest), then you should probably use "
23561 "C<guestfs_add_drive_ro> instead."
23565 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23566 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23567 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23568 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23569 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23570 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23571 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23572 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23573 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23574 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23575 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23576 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23577 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23578 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1231
23579 #: ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1293
23580 #: ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1326
23581 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1416
23582 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1472
23583 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1627
23584 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1869
23585 #: ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1978
23586 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2628
23587 #: ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2724
23588 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3783
23589 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3997
23590 #: ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4024
23591 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053
23592 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4161
23593 #: ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4198
23594 #: ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4244
23595 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4298
23596 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4352
23597 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4400
23598 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4429
23599 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4461
23600 #: ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:4574
23601 #: ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4638
23602 #: ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4674
23603 #: ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4704
23604 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735
23605 #: ../src/guestfs-actions.pod:4750 ../src/guestfs-actions.pod:4777
23606 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4913
23607 #: ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4963
23608 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4994
23609 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5024
23610 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5054
23611 #: ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5122
23612 #: ../src/guestfs-actions.pod:5161 ../src/guestfs-actions.pod:5181
23613 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212
23614 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5314
23615 #: ../src/guestfs-actions.pod:5361 ../src/guestfs-actions.pod:5404
23616 #: ../src/guestfs-actions.pod:5432 ../src/guestfs-actions.pod:5449
23617 #: ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5607
23618 #: ../src/guestfs-actions.pod:5664 ../src/guestfs-actions.pod:5686
23619 #: ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5736
23620 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5819
23621 #: ../src/guestfs-actions.pod:5832 ../src/guestfs-actions.pod:5846
23622 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6154
23623 #: ../src/guestfs-actions.pod:6173 ../src/guestfs-actions.pod:6187
23624 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:6213
23625 #: ../src/guestfs-actions.pod:6225 ../src/guestfs-actions.pod:6239
23626 #: ../src/guestfs-actions.pod:6255 ../src/guestfs-actions.pod:6276
23627 #: ../src/guestfs-actions.pod:6295 ../src/guestfs-actions.pod:6314
23628 #: ../src/guestfs-actions.pod:6344 ../src/guestfs-actions.pod:6362
23629 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6403
23630 #: ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6443
23631 #: ../src/guestfs-actions.pod:6462 ../src/guestfs-actions.pod:6479
23632 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6526
23633 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6569
23634 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:6607
23635 #: ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6641
23636 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:6704
23637 #: ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:6767
23638 #: ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:7003
23639 #: ../src/guestfs-actions.pod:7015 ../src/guestfs-actions.pod:7028
23640 #: ../src/guestfs-actions.pod:7041 ../src/guestfs-actions.pod:7063
23641 #: ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7089
23642 #: ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7117
23643 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
23644 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
23645 #: ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7255
23646 #: ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:7311
23647 #: ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7366
23648 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7397
23649 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7467
23650 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7598
23651 #: ../src/guestfs-actions.pod:7612 ../src/guestfs-actions.pod:7667
23652 #: ../src/guestfs-actions.pod:7680 ../src/guestfs-actions.pod:7725
23653 #: ../src/guestfs-actions.pod:7765 ../src/guestfs-actions.pod:7821
23654 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
23655 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7961
23656 #: ../src/guestfs-actions.pod:7990
23657 msgid "This function returns 0 on success or -1 on error."
23661 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23662 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:2092
23663 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2313
23664 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3790
23665 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:6364
23666 #: ../src/guestfs-actions.pod:6481 ../src/guestfs-actions.pod:6628
23667 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7244
23668 #: ../src/guestfs-actions.pod:7767
23669 msgid "(Added in 0.3)"
23673 #: ../src/guestfs-actions.pod:41
23674 msgid "guestfs_add_domain"
23678 #: ../src/guestfs-actions.pod:43
23682 " guestfs_add_domain (guestfs_h *g,\n"
23683 " const char *dom,\n"
23689 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23690 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
23691 #: ../src/guestfs-actions.pod:1211 ../src/guestfs-actions.pod:2973
23692 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5108
23693 #: ../src/guestfs-actions.pod:5325
23695 "You may supply a list of optional arguments to this call. Use zero or more "
23696 "of the following pairs of parameters, and terminate the list with C<-1> on "
23697 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23701 #: ../src/guestfs-actions.pod:53
23704 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23705 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23706 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23707 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23708 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23713 #: ../src/guestfs-actions.pod:59
23715 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23716 "It works by connecting to libvirt, requesting the domain and domain XML from "
23717 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23722 #: ../src/guestfs-actions.pod:94
23724 "The other optional parameters are passed directly through to "
23725 "C<guestfs_add_drive_opts>."
23729 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23730 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23731 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23732 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1492
23733 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:2051
23734 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2213
23735 #: ../src/guestfs-actions.pod:2265 ../src/guestfs-actions.pod:2277
23736 #: ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2615
23737 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3109
23738 #: ../src/guestfs-actions.pod:5284 ../src/guestfs-actions.pod:5504
23739 #: ../src/guestfs-actions.pod:5916 ../src/guestfs-actions.pod:5942
23740 #: ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7778
23741 #: ../src/guestfs-actions.pod:7791 ../src/guestfs-actions.pod:7804
23742 msgid "On error this function returns -1."
23746 #: ../src/guestfs-actions.pod:99
23747 msgid "(Added in 1.7.4)"
23751 #: ../src/guestfs-actions.pod:101
23752 msgid "guestfs_add_domain_va"
23756 #: ../src/guestfs-actions.pod:103
23760 " guestfs_add_domain_va (guestfs_h *g,\n"
23761 " const char *dom,\n"
23762 " va_list args);\n"
23767 #: ../src/guestfs-actions.pod:108
23768 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23772 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23773 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23774 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23775 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1200
23776 #: ../src/guestfs-actions.pod:1244 ../src/guestfs-actions.pod:1257
23777 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3069
23778 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4866
23779 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5148
23780 #: ../src/guestfs-actions.pod:5374 ../src/guestfs-actions.pod:5385
23781 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23782 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23785 #: ../src/guestfs-actions.pod:112
23786 msgid "guestfs_add_domain_argv"
23787 msgstr "guestfs_add_domain_argv"
23790 #: ../src/guestfs-actions.pod:114
23794 " guestfs_add_domain_argv (guestfs_h *g,\n"
23795 " const char *dom,\n"
23796 " const struct guestfs_add_domain_argv *optargs);\n"
23801 #: ../src/guestfs-actions.pod:119
23802 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23806 #: ../src/guestfs-actions.pod:123
23807 msgid "guestfs_add_drive"
23811 #: ../src/guestfs-actions.pod:125
23815 " guestfs_add_drive (guestfs_h *g,\n"
23816 " const char *filename);\n"
23821 #: ../src/guestfs-actions.pod:129
23823 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23824 "optional parameters, so the disk is added writable, with the format being "
23825 "detected automatically."
23829 #: ../src/guestfs-actions.pod:133
23831 "Automatic detection of the format opens you up to a potential security hole "
23832 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23833 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23834 "you should think about replacing calls to this function with calls to "
23835 "C<guestfs_add_drive_opts>, and specifying the format."
23839 #: ../src/guestfs-actions.pod:144
23840 msgid "guestfs_add_drive_opts"
23844 #: ../src/guestfs-actions.pod:146
23848 " guestfs_add_drive_opts (guestfs_h *g,\n"
23849 " const char *filename,\n"
23855 #: ../src/guestfs-actions.pod:156
23858 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23859 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23860 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23865 #: ../src/guestfs-actions.pod:185
23867 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23868 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23869 "Possible formats include C<raw> and C<qcow2>."
23873 #: ../src/guestfs-actions.pod:196
23875 "This rarely-used option lets you emulate the behaviour of the deprecated "
23876 "C<guestfs_add_drive_with_if> call (q.v.)"
23880 #: ../src/guestfs-actions.pod:203
23881 msgid "(Added in 1.5.23)"
23885 #: ../src/guestfs-actions.pod:205
23886 msgid "guestfs_add_drive_opts_va"
23890 #: ../src/guestfs-actions.pod:207
23894 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23895 " const char *filename,\n"
23896 " va_list args);\n"
23901 #: ../src/guestfs-actions.pod:212
23902 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23906 #: ../src/guestfs-actions.pod:216
23907 msgid "guestfs_add_drive_opts_argv"
23911 #: ../src/guestfs-actions.pod:218
23915 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23916 " const char *filename,\n"
23917 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23922 #: ../src/guestfs-actions.pod:223
23923 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23927 #: ../src/guestfs-actions.pod:227
23928 msgid "guestfs_add_drive_ro"
23932 #: ../src/guestfs-actions.pod:229
23936 " guestfs_add_drive_ro (guestfs_h *g,\n"
23937 " const char *filename);\n"
23942 #: ../src/guestfs-actions.pod:233
23944 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23945 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23946 "disk is added read-only, with the format being detected automatically."
23950 #: ../src/guestfs-actions.pod:240
23951 msgid "(Added in 1.0.38)"
23955 #: ../src/guestfs-actions.pod:242
23956 msgid "guestfs_add_drive_ro_with_if"
23960 #: ../src/guestfs-actions.pod:244
23964 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23965 " const char *filename,\n"
23966 " const char *iface);\n"
23971 #: ../src/guestfs-actions.pod:256
23973 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23974 "QEMU interface emulation to use at run time."
23978 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23979 #: ../src/guestfs-actions.pod:2574
23980 msgid "(Added in 1.0.84)"
23984 #: ../src/guestfs-actions.pod:263
23985 msgid "guestfs_add_drive_with_if"
23989 #: ../src/guestfs-actions.pod:265
23993 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23994 " const char *filename,\n"
23995 " const char *iface);\n"
24000 #: ../src/guestfs-actions.pod:277
24002 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24003 "QEMU interface emulation to use at run time."
24007 #: ../src/guestfs-actions.pod:284
24008 msgid "guestfs_aug_clear"
24012 #: ../src/guestfs-actions.pod:286
24016 " guestfs_aug_clear (guestfs_h *g,\n"
24017 " const char *augpath);\n"
24022 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2302
24023 msgid "(Added in 1.3.4)"
24027 #: ../src/guestfs-actions.pod:297
24028 msgid "guestfs_aug_close"
24032 #: ../src/guestfs-actions.pod:299
24036 " guestfs_aug_close (guestfs_h *g);\n"
24041 #: ../src/guestfs-actions.pod:302
24043 "Close the current Augeas handle and free up any resources used by it. After "
24044 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24045 "any other Augeas functions."
24049 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24050 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24051 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24052 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24053 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24054 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24055 #: ../src/guestfs-actions.pod:5993
24056 msgid "(Added in 0.7)"
24060 #: ../src/guestfs-actions.pod:311
24061 msgid "guestfs_aug_defnode"
24065 #: ../src/guestfs-actions.pod:313
24068 " struct guestfs_int_bool *\n"
24069 " guestfs_aug_defnode (guestfs_h *g,\n"
24070 " const char *name,\n"
24071 " const char *expr,\n"
24072 " const char *val);\n"
24077 #: ../src/guestfs-actions.pod:322
24079 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24080 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
24081 "containing that single node."
24085 #: ../src/guestfs-actions.pod:330
24087 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24088 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
24092 #: ../src/guestfs-actions.pod:336
24093 msgid "guestfs_aug_defvar"
24097 #: ../src/guestfs-actions.pod:338
24101 " guestfs_aug_defvar (guestfs_h *g,\n"
24102 " const char *name,\n"
24103 " const char *expr);\n"
24108 #: ../src/guestfs-actions.pod:354
24109 msgid "guestfs_aug_get"
24113 #: ../src/guestfs-actions.pod:356
24117 " guestfs_aug_get (guestfs_h *g,\n"
24118 " const char *augpath);\n"
24123 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24124 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24125 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24126 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
24127 #: ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1531
24128 #: ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1831
24129 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2011
24130 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2121
24131 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2325
24132 #: ../src/guestfs-actions.pod:2539 ../src/guestfs-actions.pod:2743
24133 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2941
24134 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3174
24135 #: ../src/guestfs-actions.pod:3202 ../src/guestfs-actions.pod:3223
24136 #: ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3316
24137 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3356
24138 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4336
24139 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4616
24140 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5721
24141 #: ../src/guestfs-actions.pod:5891 ../src/guestfs-actions.pod:6069
24142 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6788
24143 #: ../src/guestfs-actions.pod:6804 ../src/guestfs-actions.pod:6828
24144 #: ../src/guestfs-actions.pod:6852 ../src/guestfs-actions.pod:7526
24145 #: ../src/guestfs-actions.pod:7545 ../src/guestfs-actions.pod:7563
24146 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:8054
24148 "This function returns a string, or NULL on error. I<The caller must free "
24149 "the returned string after use>."
24153 #: ../src/guestfs-actions.pod:368
24154 msgid "guestfs_aug_init"
24158 #: ../src/guestfs-actions.pod:370
24162 " guestfs_aug_init (guestfs_h *g,\n"
24163 " const char *root,\n"
24169 #: ../src/guestfs-actions.pod:379
24170 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24174 #: ../src/guestfs-actions.pod:404
24176 "This option is only useful when debugging Augeas lenses. Use of this option "
24177 "may require additional memory for the libguestfs appliance. You may need to "
24178 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24179 "C<guestfs_set_memsize>."
24183 #: ../src/guestfs-actions.pod:419
24184 msgid "Do not load the tree in C<guestfs_aug_init>."
24188 #: ../src/guestfs-actions.pod:423
24189 msgid "To close the handle, you can call C<guestfs_aug_close>."
24193 #: ../src/guestfs-actions.pod:431
24194 msgid "guestfs_aug_insert"
24198 #: ../src/guestfs-actions.pod:433
24202 " guestfs_aug_insert (guestfs_h *g,\n"
24203 " const char *augpath,\n"
24204 " const char *label,\n"
24210 #: ../src/guestfs-actions.pod:451
24211 msgid "guestfs_aug_load"
24215 #: ../src/guestfs-actions.pod:453
24219 " guestfs_aug_load (guestfs_h *g);\n"
24224 #: ../src/guestfs-actions.pod:465
24225 msgid "guestfs_aug_ls"
24229 #: ../src/guestfs-actions.pod:467
24233 " guestfs_aug_ls (guestfs_h *g,\n"
24234 " const char *augpath);\n"
24239 #: ../src/guestfs-actions.pod:471
24241 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24242 "sorting the resulting nodes into alphabetical order."
24246 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24247 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24248 #: ../src/guestfs-actions.pod:1546 ../src/guestfs-actions.pod:1565
24249 #: ../src/guestfs-actions.pod:1668 ../src/guestfs-actions.pod:1687
24250 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:2397
24251 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2432
24252 #: ../src/guestfs-actions.pod:2497 ../src/guestfs-actions.pod:2521
24253 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2641
24254 #: ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:3276
24255 #: ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3866
24256 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3903
24257 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4070
24258 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:5245
24259 #: ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5989
24260 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6868
24261 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6984
24262 #: ../src/guestfs-actions.pod:7130 ../src/guestfs-actions.pod:7154
24263 #: ../src/guestfs-actions.pod:7630 ../src/guestfs-actions.pod:7650
24264 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7891
24265 #: ../src/guestfs-actions.pod:7910 ../src/guestfs-actions.pod:8004
24266 #: ../src/guestfs-actions.pod:8023 ../src/guestfs-actions.pod:8069
24267 #: ../src/guestfs-actions.pod:8088
24269 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24270 ">), or NULL if there was an error. I<The caller must free the strings and "
24271 "the array after use>."
24275 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24276 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1603
24277 #: ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3661
24278 #: ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4369
24279 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4589
24280 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:5249
24281 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:6201
24282 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6227
24283 #: ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:7368
24284 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7614
24285 #: ../src/guestfs-actions.pod:7879
24286 msgid "(Added in 0.8)"
24290 #: ../src/guestfs-actions.pod:480
24291 msgid "guestfs_aug_match"
24295 #: ../src/guestfs-actions.pod:482
24299 " guestfs_aug_match (guestfs_h *g,\n"
24300 " const char *augpath);\n"
24305 #: ../src/guestfs-actions.pod:496
24306 msgid "guestfs_aug_mv"
24310 #: ../src/guestfs-actions.pod:498
24314 " guestfs_aug_mv (guestfs_h *g,\n"
24315 " const char *src,\n"
24316 " const char *dest);\n"
24321 #: ../src/guestfs-actions.pod:510
24322 msgid "guestfs_aug_rm"
24326 #: ../src/guestfs-actions.pod:512
24330 " guestfs_aug_rm (guestfs_h *g,\n"
24331 " const char *augpath);\n"
24336 #: ../src/guestfs-actions.pod:524
24337 msgid "guestfs_aug_save"
24341 #: ../src/guestfs-actions.pod:526
24345 " guestfs_aug_save (guestfs_h *g);\n"
24350 #: ../src/guestfs-actions.pod:531
24352 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24357 #: ../src/guestfs-actions.pod:538
24358 msgid "guestfs_aug_set"
24362 #: ../src/guestfs-actions.pod:540
24366 " guestfs_aug_set (guestfs_h *g,\n"
24367 " const char *augpath,\n"
24368 " const char *val);\n"
24373 #: ../src/guestfs-actions.pod:547
24375 "In the Augeas API, it is possible to clear a node by setting the value to "
24376 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
24377 "this call. Instead you must use the C<guestfs_aug_clear> call."
24381 #: ../src/guestfs-actions.pod:556
24382 msgid "guestfs_available"
24386 #: ../src/guestfs-actions.pod:558
24390 " guestfs_available (guestfs_h *g,\n"
24391 " char *const *groups);\n"
24396 #: ../src/guestfs-actions.pod:566
24398 "The libguestfs groups, and the functions that those groups correspond to, "
24399 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
24400 "runtime by calling C<guestfs_available_all_groups>."
24404 #: ../src/guestfs-actions.pod:590
24405 msgid "You must call C<guestfs_launch> before calling this function."
24409 #: ../src/guestfs-actions.pod:612
24411 "This call was added in version C<1.0.80>. In previous versions of "
24412 "libguestfs all you could do would be to speculatively execute a command to "
24413 "find out if the daemon implemented it. See also C<guestfs_version>."
24417 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1348
24418 msgid "(Added in 1.0.80)"
24422 #: ../src/guestfs-actions.pod:623
24423 msgid "guestfs_available_all_groups"
24427 #: ../src/guestfs-actions.pod:625
24431 " guestfs_available_all_groups (guestfs_h *g);\n"
24436 #: ../src/guestfs-actions.pod:628
24438 "This command returns a list of all optional groups that this daemon knows "
24439 "about. Note this returns both supported and unsupported groups. To find "
24440 "out which ones the daemon can actually support you have to call "
24441 "C<guestfs_available> on each member of the returned list."
24445 #: ../src/guestfs-actions.pod:634
24446 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24450 #: ../src/guestfs-actions.pod:640
24451 msgid "(Added in 1.3.15)"
24455 #: ../src/guestfs-actions.pod:642
24456 msgid "guestfs_base64_in"
24460 #: ../src/guestfs-actions.pod:644
24464 " guestfs_base64_in (guestfs_h *g,\n"
24465 " const char *base64file,\n"
24466 " const char *filename);\n"
24471 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24472 msgid "(Added in 1.3.5)"
24476 #: ../src/guestfs-actions.pod:656
24477 msgid "guestfs_base64_out"
24481 #: ../src/guestfs-actions.pod:658
24485 " guestfs_base64_out (guestfs_h *g,\n"
24486 " const char *filename,\n"
24487 " const char *base64file);\n"
24492 #: ../src/guestfs-actions.pod:670
24493 msgid "guestfs_blockdev_flushbufs"
24497 #: ../src/guestfs-actions.pod:672
24501 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24502 " const char *device);\n"
24507 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24508 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24509 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24510 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24511 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24512 msgid "(Added in 0.9.3)"
24516 #: ../src/guestfs-actions.pod:685
24517 msgid "guestfs_blockdev_getbsz"
24521 #: ../src/guestfs-actions.pod:687
24525 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24526 " const char *device);\n"
24531 #: ../src/guestfs-actions.pod:702
24532 msgid "guestfs_blockdev_getro"
24536 #: ../src/guestfs-actions.pod:704
24540 " guestfs_blockdev_getro (guestfs_h *g,\n"
24541 " const char *device);\n"
24546 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1586
24547 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:2090
24548 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2173
24549 #: ../src/guestfs-actions.pod:2199 ../src/guestfs-actions.pod:2239
24550 #: ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2288
24551 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3373
24552 #: ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3407
24553 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3583
24554 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
24555 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3643
24556 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3673
24557 #: ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:3700
24558 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3730
24559 #: ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3757
24560 #: ../src/guestfs-actions.pod:5486
24561 msgid "This function returns a C truth value on success or -1 on error."
24565 #: ../src/guestfs-actions.pod:717
24566 msgid "guestfs_blockdev_getsize64"
24570 #: ../src/guestfs-actions.pod:719
24574 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24575 " const char *device);\n"
24580 #: ../src/guestfs-actions.pod:725
24581 msgid "See also C<guestfs_blockdev_getsz>."
24585 #: ../src/guestfs-actions.pod:733
24586 msgid "guestfs_blockdev_getss"
24590 #: ../src/guestfs-actions.pod:735
24594 " guestfs_blockdev_getss (guestfs_h *g,\n"
24595 " const char *device);\n"
24600 #: ../src/guestfs-actions.pod:742
24602 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24607 #: ../src/guestfs-actions.pod:751
24608 msgid "guestfs_blockdev_getsz"
24612 #: ../src/guestfs-actions.pod:753
24616 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24617 " const char *device);\n"
24622 #: ../src/guestfs-actions.pod:760
24624 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24625 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24629 #: ../src/guestfs-actions.pod:770
24630 msgid "guestfs_blockdev_rereadpt"
24634 #: ../src/guestfs-actions.pod:772
24638 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24639 " const char *device);\n"
24644 #: ../src/guestfs-actions.pod:784
24645 msgid "guestfs_blockdev_setbsz"
24649 #: ../src/guestfs-actions.pod:786
24653 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24654 " const char *device,\n"
24655 " int blocksize);\n"
24660 #: ../src/guestfs-actions.pod:802
24661 msgid "guestfs_blockdev_setro"
24665 #: ../src/guestfs-actions.pod:804
24669 " guestfs_blockdev_setro (guestfs_h *g,\n"
24670 " const char *device);\n"
24675 #: ../src/guestfs-actions.pod:816
24676 msgid "guestfs_blockdev_setrw"
24680 #: ../src/guestfs-actions.pod:818
24684 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24685 " const char *device);\n"
24690 #: ../src/guestfs-actions.pod:830
24691 msgid "guestfs_btrfs_filesystem_resize"
24695 #: ../src/guestfs-actions.pod:832
24699 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24700 " const char *mountpoint,\n"
24706 #: ../src/guestfs-actions.pod:842
24709 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24714 #: ../src/guestfs-actions.pod:865
24715 msgid "(Added in 1.11.17)"
24719 #: ../src/guestfs-actions.pod:867
24720 msgid "guestfs_btrfs_filesystem_resize_va"
24724 #: ../src/guestfs-actions.pod:869
24728 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24729 " const char *mountpoint,\n"
24730 " va_list args);\n"
24735 #: ../src/guestfs-actions.pod:874
24736 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24740 #: ../src/guestfs-actions.pod:878
24741 msgid "guestfs_btrfs_filesystem_resize_argv"
24745 #: ../src/guestfs-actions.pod:880
24749 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24750 " const char *mountpoint,\n"
24751 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24756 #: ../src/guestfs-actions.pod:885
24757 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24761 #: ../src/guestfs-actions.pod:889
24762 msgid "guestfs_case_sensitive_path"
24766 #: ../src/guestfs-actions.pod:891
24770 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24771 " const char *path);\n"
24776 #: ../src/guestfs-actions.pod:917
24778 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24779 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24780 "how the directories were originally created under Windows)."
24784 #: ../src/guestfs-actions.pod:925
24785 msgid "See also C<guestfs_realpath>."
24789 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7548
24790 msgid "(Added in 1.0.75)"
24794 #: ../src/guestfs-actions.pod:932
24795 msgid "guestfs_cat"
24799 #: ../src/guestfs-actions.pod:934
24803 " guestfs_cat (guestfs_h *g,\n"
24804 " const char *path);\n"
24809 #: ../src/guestfs-actions.pod:940
24811 "Note that this function cannot correctly handle binary files (specifically, "
24812 "files containing C<\\0> character which is treated as end of string). For "
24813 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24814 "functions which have a more complex interface."
24818 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3887
24819 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3986
24820 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4482
24821 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:5867
24822 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-actions.pod:7701
24823 #: ../src/guestfs-actions.pod:7715
24824 msgid "(Added in 0.4)"
24828 #: ../src/guestfs-actions.pod:953
24829 msgid "guestfs_checksum"
24833 #: ../src/guestfs-actions.pod:955
24837 " guestfs_checksum (guestfs_h *g,\n"
24838 " const char *csumtype,\n"
24839 " const char *path);\n"
24844 #: ../src/guestfs-actions.pod:1001
24845 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24849 #: ../src/guestfs-actions.pod:1003
24850 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24854 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1423
24855 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:3585
24856 #: ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3675
24857 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:7404
24858 msgid "(Added in 1.0.2)"
24862 #: ../src/guestfs-actions.pod:1010
24863 msgid "guestfs_checksum_device"
24867 #: ../src/guestfs-actions.pod:1012
24871 " guestfs_checksum_device (guestfs_h *g,\n"
24872 " const char *csumtype,\n"
24873 " const char *device);\n"
24878 #: ../src/guestfs-actions.pod:1017
24880 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24881 "device named C<device>. For the types of checksums supported see the "
24882 "C<guestfs_checksum> command."
24886 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5316
24887 #: ../src/guestfs-actions.pod:5451 ../src/guestfs-actions.pod:5488
24888 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5688
24889 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7327
24890 #: ../src/guestfs-actions.pod:7727
24891 msgid "(Added in 1.3.2)"
24895 #: ../src/guestfs-actions.pod:1026
24896 msgid "guestfs_checksums_out"
24900 #: ../src/guestfs-actions.pod:1028
24904 " guestfs_checksums_out (guestfs_h *g,\n"
24905 " const char *csumtype,\n"
24906 " const char *directory,\n"
24907 " const char *sumsfile);\n"
24912 #: ../src/guestfs-actions.pod:1048
24913 msgid "(Added in 1.3.7)"
24917 #: ../src/guestfs-actions.pod:1050
24918 msgid "guestfs_chmod"
24922 #: ../src/guestfs-actions.pod:1052
24926 " guestfs_chmod (guestfs_h *g,\n"
24928 " const char *path);\n"
24933 #: ../src/guestfs-actions.pod:1070
24934 msgid "guestfs_chown"
24938 #: ../src/guestfs-actions.pod:1072
24942 " guestfs_chown (guestfs_h *g,\n"
24945 " const char *path);\n"
24950 #: ../src/guestfs-actions.pod:1088
24951 msgid "guestfs_command"
24955 #: ../src/guestfs-actions.pod:1090
24959 " guestfs_command (guestfs_h *g,\n"
24960 " char *const *arguments);\n"
24965 #: ../src/guestfs-actions.pod:1099
24967 "The single parameter is an argv-style list of arguments. The first element "
24968 "is the name of the program to run. Subsequent elements are parameters. The "
24969 "list must be non-empty (ie. must contain a program name). Note that the "
24970 "command runs directly, and is I<not> invoked via the shell (see "
24975 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24976 #: ../src/guestfs-actions.pod:1722
24977 msgid "(Added in 0.9.1)"
24981 #: ../src/guestfs-actions.pod:1132
24982 msgid "guestfs_command_lines"
24986 #: ../src/guestfs-actions.pod:1134
24990 " guestfs_command_lines (guestfs_h *g,\n"
24991 " char *const *arguments);\n"
24996 #: ../src/guestfs-actions.pod:1138
24998 "This is the same as C<guestfs_command>, but splits the result into a list of "
25003 #: ../src/guestfs-actions.pod:1141
25004 msgid "See also: C<guestfs_sh_lines>"
25008 #: ../src/guestfs-actions.pod:1152
25010 #| msgid "guestfs_zero_device"
25011 msgid "guestfs_compress_device_out"
25012 msgstr "guestfs_zero_device"
25015 #: ../src/guestfs-actions.pod:1154
25019 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25020 #| " const char *device,\n"
25021 #| " const char *key,\n"
25022 #| " int keyslot,\n"
25023 #| " const char *cipher);\n"
25027 " guestfs_compress_device_out (guestfs_h *g,\n"
25028 " const char *ctype,\n"
25029 " const char *device,\n"
25030 " const char *zdevice,\n"
25035 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25036 " const char *device,\n"
25037 " const char *key,\n"
25039 " const char *cipher);\n"
25043 #: ../src/guestfs-actions.pod:1166
25046 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25051 #: ../src/guestfs-actions.pod:1171
25053 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25054 "C<guestfs_compress_out>."
25058 #: ../src/guestfs-actions.pod:1176
25060 #| msgid "guestfs_zero_device"
25061 msgid "guestfs_compress_device_out_va"
25062 msgstr "guestfs_zero_device"
25065 #: ../src/guestfs-actions.pod:1178
25069 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25070 #| " const char *device,\n"
25071 #| " const char *key,\n"
25072 #| " int keyslot,\n"
25073 #| " const char *cipher);\n"
25077 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25078 " const char *ctype,\n"
25079 " const char *device,\n"
25080 " const char *zdevice,\n"
25081 " va_list args);\n"
25085 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25086 " const char *device,\n"
25087 " const char *key,\n"
25089 " const char *cipher);\n"
25093 #: ../src/guestfs-actions.pod:1185
25094 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25098 #: ../src/guestfs-actions.pod:1189
25100 #| msgid "guestfs_mkfs_opts_argv"
25101 msgid "guestfs_compress_device_out_argv"
25102 msgstr "guestfs_mkfs_opts_argv"
25105 #: ../src/guestfs-actions.pod:1191
25109 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25110 #| " const char *fstype,\n"
25111 #| " const char *device,\n"
25112 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
25116 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25117 " const char *ctype,\n"
25118 " const char *device,\n"
25119 " const char *zdevice,\n"
25120 " const struct guestfs_compress_device_out_argv *optargs);\n"
25124 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25125 " const char *fstype,\n"
25126 " const char *device,\n"
25127 " const struct guestfs_mkfs_opts_argv *optargs);\n"
25131 #: ../src/guestfs-actions.pod:1198
25132 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25136 #: ../src/guestfs-actions.pod:1202
25138 #| msgid "guestfs_create"
25139 msgid "guestfs_compress_out"
25140 msgstr "guestfs_create"
25143 #: ../src/guestfs-actions.pod:1204
25147 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25148 #| " const char *device,\n"
25149 #| " const char *key,\n"
25150 #| " const char *newkey,\n"
25151 #| " int keyslot);\n"
25155 " guestfs_compress_out (guestfs_h *g,\n"
25156 " const char *ctype,\n"
25157 " const char *file,\n"
25158 " const char *zfile,\n"
25163 " guestfs_luks_add_key (guestfs_h *g,\n"
25164 " const char *device,\n"
25165 " const char *key,\n"
25166 " const char *newkey,\n"
25171 #: ../src/guestfs-actions.pod:1216
25174 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25179 #: ../src/guestfs-actions.pod:1233
25181 #| msgid "guestfs_mkfs_opts_va"
25182 msgid "guestfs_compress_out_va"
25183 msgstr "guestfs_mkfs_opts_va"
25186 #: ../src/guestfs-actions.pod:1235
25190 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25191 #| " const char *device,\n"
25192 #| " const char *key,\n"
25193 #| " const char *newkey,\n"
25194 #| " int keyslot);\n"
25198 " guestfs_compress_out_va (guestfs_h *g,\n"
25199 " const char *ctype,\n"
25200 " const char *file,\n"
25201 " const char *zfile,\n"
25202 " va_list args);\n"
25206 " guestfs_luks_add_key (guestfs_h *g,\n"
25207 " const char *device,\n"
25208 " const char *key,\n"
25209 " const char *newkey,\n"
25214 #: ../src/guestfs-actions.pod:1242
25215 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25219 #: ../src/guestfs-actions.pod:1246
25221 #| msgid "guestfs_mkfs_opts_argv"
25222 msgid "guestfs_compress_out_argv"
25223 msgstr "guestfs_mkfs_opts_argv"
25226 #: ../src/guestfs-actions.pod:1248
25230 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25231 #| " const char *fstype,\n"
25232 #| " const char *device,\n"
25233 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
25237 " guestfs_compress_out_argv (guestfs_h *g,\n"
25238 " const char *ctype,\n"
25239 " const char *file,\n"
25240 " const char *zfile,\n"
25241 " const struct guestfs_compress_out_argv *optargs);\n"
25245 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25246 " const char *fstype,\n"
25247 " const char *device,\n"
25248 " const struct guestfs_mkfs_opts_argv *optargs);\n"
25252 #: ../src/guestfs-actions.pod:1255
25253 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25257 #: ../src/guestfs-actions.pod:1259
25258 msgid "guestfs_config"
25262 #: ../src/guestfs-actions.pod:1261
25266 " guestfs_config (guestfs_h *g,\n"
25267 " const char *qemuparam,\n"
25268 " const char *qemuvalue);\n"
25273 #: ../src/guestfs-actions.pod:1279
25274 msgid "guestfs_copy_size"
25278 #: ../src/guestfs-actions.pod:1281
25282 " guestfs_copy_size (guestfs_h *g,\n"
25283 " const char *src,\n"
25284 " const char *dest,\n"
25285 " int64_t size);\n"
25290 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1418
25291 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1494
25292 #: ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:1893
25293 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:7399
25294 #: ../src/guestfs-actions.pod:7433 ../src/guestfs-actions.pod:7940
25295 #: ../src/guestfs-actions.pod:7963
25297 "This long-running command can generate progress notification messages so "
25298 "that the caller can display a progress bar or indicator. To receive these "
25299 "messages, the caller must register a progress event callback. See L<guestfs"
25300 "(3)/GUESTFS_EVENT_PROGRESS>."
25304 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:4509
25305 #: ../src/guestfs-actions.pod:5894 ../src/guestfs-actions.pod:7634
25306 #: ../src/guestfs-actions.pod:7654 ../src/guestfs-actions.pod:7740
25307 msgid "(Added in 1.0.87)"
25311 #: ../src/guestfs-actions.pod:1302
25316 #: ../src/guestfs-actions.pod:1304
25320 " guestfs_cp (guestfs_h *g,\n"
25321 " const char *src,\n"
25322 " const char *dest);\n"
25327 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1328
25328 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:1474
25329 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:5263
25330 #: ../src/guestfs-actions.pod:5738
25331 msgid "(Added in 1.0.18)"
25335 #: ../src/guestfs-actions.pod:1316
25336 msgid "guestfs_cp_a"
25340 #: ../src/guestfs-actions.pod:1318
25344 " guestfs_cp_a (guestfs_h *g,\n"
25345 " const char *src,\n"
25346 " const char *dest);\n"
25351 #: ../src/guestfs-actions.pod:1330
25356 #: ../src/guestfs-actions.pod:1332
25360 " guestfs_dd (guestfs_h *g,\n"
25361 " const char *src,\n"
25362 " const char *dest);\n"
25367 #: ../src/guestfs-actions.pod:1342
25369 "If the destination is a device, it must be as large or larger than the "
25370 "source file or device, otherwise the copy will fail. This command cannot do "
25371 "partial copies (see C<guestfs_copy_size>)."
25375 #: ../src/guestfs-actions.pod:1350
25380 #: ../src/guestfs-actions.pod:1352
25384 " guestfs_df (guestfs_h *g);\n"
25389 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:1374
25391 "This command is mostly useful for interactive sessions. It is I<not> "
25392 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
25397 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1381
25398 #: ../src/guestfs-actions.pod:1499 ../src/guestfs-actions.pod:2504
25399 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2596
25400 #: ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:5163
25401 #: ../src/guestfs-actions.pod:7137 ../src/guestfs-actions.pod:7161
25402 #: ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7793
25403 #: ../src/guestfs-actions.pod:7806
25404 msgid "(Added in 1.0.54)"
25408 #: ../src/guestfs-actions.pod:1366
25409 msgid "guestfs_df_h"
25413 #: ../src/guestfs-actions.pod:1368
25417 " guestfs_df_h (guestfs_h *g);\n"
25422 #: ../src/guestfs-actions.pod:1383
25423 msgid "guestfs_dmesg"
25427 #: ../src/guestfs-actions.pod:1385
25431 " guestfs_dmesg (guestfs_h *g);\n"
25436 #: ../src/guestfs-actions.pod:1392
25438 "Another way to get the same information is to enable verbose messages with "
25439 "C<guestfs_set_verbose> or by setting the environment variable "
25440 "C<LIBGUESTFS_DEBUG=1> before running the program."
25444 #: ../src/guestfs-actions.pod:1402
25445 msgid "guestfs_download"
25449 #: ../src/guestfs-actions.pod:1404
25453 " guestfs_download (guestfs_h *g,\n"
25454 " const char *remotefilename,\n"
25455 " const char *filename);\n"
25460 #: ../src/guestfs-actions.pod:1414
25461 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25465 #: ../src/guestfs-actions.pod:1425
25466 msgid "guestfs_download_offset"
25470 #: ../src/guestfs-actions.pod:1427
25474 " guestfs_download_offset (guestfs_h *g,\n"
25475 " const char *remotefilename,\n"
25476 " const char *filename,\n"
25477 " int64_t offset,\n"
25478 " int64_t size);\n"
25483 #: ../src/guestfs-actions.pod:1440
25485 "Note that there is no limit on the amount of data that can be downloaded "
25486 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25487 "full amount unless an error occurs."
25491 #: ../src/guestfs-actions.pod:1445
25492 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25496 #: ../src/guestfs-actions.pod:1454 ../src/guestfs-actions.pod:7438
25497 msgid "(Added in 1.5.17)"
25501 #: ../src/guestfs-actions.pod:1456
25502 msgid "guestfs_drop_caches"
25506 #: ../src/guestfs-actions.pod:1458
25510 " guestfs_drop_caches (guestfs_h *g,\n"
25511 " int whattodrop);\n"
25516 #: ../src/guestfs-actions.pod:1476
25521 #: ../src/guestfs-actions.pod:1478
25525 " guestfs_du (guestfs_h *g,\n"
25526 " const char *path);\n"
25531 #: ../src/guestfs-actions.pod:1501
25532 msgid "guestfs_e2fsck_f"
25536 #: ../src/guestfs-actions.pod:1503
25540 " guestfs_e2fsck_f (guestfs_h *g,\n"
25541 " const char *device);\n"
25546 #: ../src/guestfs-actions.pod:1511
25548 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
25549 "Normally you should use C<guestfs_fsck>."
25553 #: ../src/guestfs-actions.pod:1516
25554 msgid "(Added in 1.0.29)"
25558 #: ../src/guestfs-actions.pod:1518
25559 msgid "guestfs_echo_daemon"
25563 #: ../src/guestfs-actions.pod:1520
25567 " guestfs_echo_daemon (guestfs_h *g,\n"
25568 " char *const *words);\n"
25573 #: ../src/guestfs-actions.pod:1529
25574 msgid "See also C<guestfs_ping_daemon>."
25578 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:2290
25579 #: ../src/guestfs-actions.pod:6609
25580 msgid "(Added in 1.0.69)"
25584 #: ../src/guestfs-actions.pod:1536
25585 msgid "guestfs_egrep"
25589 #: ../src/guestfs-actions.pod:1538
25593 " guestfs_egrep (guestfs_h *g,\n"
25594 " const char *regex,\n"
25595 " const char *path);\n"
25600 #: ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1572
25601 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1675
25602 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:2420
25603 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2617
25604 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2645
25605 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2713
25606 #: ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:3999
25607 #: ../src/guestfs-actions.pod:4013 ../src/guestfs-actions.pod:4026
25608 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:5041
25609 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6121
25610 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7017
25611 #: ../src/guestfs-actions.pod:7030 ../src/guestfs-actions.pod:7043
25612 #: ../src/guestfs-actions.pod:7065 ../src/guestfs-actions.pod:7078
25613 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7104
25614 #: ../src/guestfs-actions.pod:7898 ../src/guestfs-actions.pod:7917
25615 #: ../src/guestfs-actions.pod:8011 ../src/guestfs-actions.pod:8030
25616 #: ../src/guestfs-actions.pod:8076 ../src/guestfs-actions.pod:8095
25617 msgid "(Added in 1.0.66)"
25621 #: ../src/guestfs-actions.pod:1555
25622 msgid "guestfs_egrepi"
25626 #: ../src/guestfs-actions.pod:1557
25630 " guestfs_egrepi (guestfs_h *g,\n"
25631 " const char *regex,\n"
25632 " const char *path);\n"
25637 #: ../src/guestfs-actions.pod:1574
25638 msgid "guestfs_equal"
25642 #: ../src/guestfs-actions.pod:1576
25646 " guestfs_equal (guestfs_h *g,\n"
25647 " const char *file1,\n"
25648 " const char *file2);\n"
25653 #: ../src/guestfs-actions.pod:1590
25654 msgid "guestfs_exists"
25658 #: ../src/guestfs-actions.pod:1592
25662 " guestfs_exists (guestfs_h *g,\n"
25663 " const char *path);\n"
25668 #: ../src/guestfs-actions.pod:1599
25669 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25673 #: ../src/guestfs-actions.pod:1605
25674 msgid "guestfs_fallocate"
25678 #: ../src/guestfs-actions.pod:1607
25682 " guestfs_fallocate (guestfs_h *g,\n"
25683 " const char *path,\n"
25689 #: ../src/guestfs-actions.pod:1612
25691 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25696 #: ../src/guestfs-actions.pod:1631
25697 msgid "guestfs_fallocate64"
25701 #: ../src/guestfs-actions.pod:1633
25705 " guestfs_fallocate64 (guestfs_h *g,\n"
25706 " const char *path,\n"
25712 #: ../src/guestfs-actions.pod:1642
25714 "Note that this call allocates disk blocks for the file. To create a sparse "
25715 "file use C<guestfs_truncate_size> instead."
25719 #: ../src/guestfs-actions.pod:1645
25721 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25722 "oversight it only allowed 30 bit lengths to be specified, effectively "
25723 "limiting the maximum size of files created through that call to 1GB."
25727 #: ../src/guestfs-actions.pod:1656
25728 msgid "(Added in 1.3.17)"
25732 #: ../src/guestfs-actions.pod:1658
25733 msgid "guestfs_fgrep"
25737 #: ../src/guestfs-actions.pod:1660
25741 " guestfs_fgrep (guestfs_h *g,\n"
25742 " const char *pattern,\n"
25743 " const char *path);\n"
25748 #: ../src/guestfs-actions.pod:1677
25749 msgid "guestfs_fgrepi"
25753 #: ../src/guestfs-actions.pod:1679
25757 " guestfs_fgrepi (guestfs_h *g,\n"
25758 " const char *pattern,\n"
25759 " const char *path);\n"
25764 #: ../src/guestfs-actions.pod:1696
25765 msgid "guestfs_file"
25769 #: ../src/guestfs-actions.pod:1698
25773 " guestfs_file (guestfs_h *g,\n"
25774 " const char *path);\n"
25779 #: ../src/guestfs-actions.pod:1716
25781 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25782 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25786 #: ../src/guestfs-actions.pod:1724
25787 msgid "guestfs_file_architecture"
25791 #: ../src/guestfs-actions.pod:1726
25795 " guestfs_file_architecture (guestfs_h *g,\n"
25796 " const char *filename);\n"
25801 #: ../src/guestfs-actions.pod:1834 ../src/guestfs-actions.pod:1997
25802 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2746
25803 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2906
25804 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3111
25805 #: ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3226
25806 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3556
25807 #: ../src/guestfs-actions.pod:3688
25808 msgid "(Added in 1.5.3)"
25812 #: ../src/guestfs-actions.pod:1836
25813 msgid "guestfs_filesize"
25817 #: ../src/guestfs-actions.pod:1838
25821 " guestfs_filesize (guestfs_h *g,\n"
25822 " const char *file);\n"
25827 #: ../src/guestfs-actions.pod:1844
25829 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25830 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
25831 "devices, use C<guestfs_blockdev_getsize64>."
25835 #: ../src/guestfs-actions.pod:1850
25836 msgid "(Added in 1.0.82)"
25840 #: ../src/guestfs-actions.pod:1852
25841 msgid "guestfs_fill"
25845 #: ../src/guestfs-actions.pod:1854
25849 " guestfs_fill (guestfs_h *g,\n"
25852 " const char *path);\n"
25857 #: ../src/guestfs-actions.pod:1864
25859 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25860 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
25861 "bytes use C<guestfs_fill_pattern>."
25865 #: ../src/guestfs-actions.pod:1876
25866 msgid "(Added in 1.0.79)"
25870 #: ../src/guestfs-actions.pod:1878
25871 msgid "guestfs_fill_pattern"
25875 #: ../src/guestfs-actions.pod:1880
25879 " guestfs_fill_pattern (guestfs_h *g,\n"
25880 " const char *pattern,\n"
25882 " const char *path);\n"
25887 #: ../src/guestfs-actions.pod:1886
25889 "This function is like C<guestfs_fill> except that it creates a new file of "
25890 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
25891 "pattern is truncated if necessary to ensure the length of the file is "
25892 "exactly C<len> bytes."
25896 #: ../src/guestfs-actions.pod:1898
25897 msgid "(Added in 1.3.12)"
25901 #: ../src/guestfs-actions.pod:1900
25902 msgid "guestfs_find"
25906 #: ../src/guestfs-actions.pod:1902
25910 " guestfs_find (guestfs_h *g,\n"
25911 " const char *directory);\n"
25916 #: ../src/guestfs-actions.pod:1918
25918 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25922 #: ../src/guestfs-actions.pod:1931
25923 msgid "See also C<guestfs_find0>."
25927 #: ../src/guestfs-actions.pod:1940 ../src/guestfs-actions.pod:4446
25928 #: ../src/guestfs-actions.pod:6156
25929 msgid "(Added in 1.0.27)"
25933 #: ../src/guestfs-actions.pod:1942
25934 msgid "guestfs_find0"
25938 #: ../src/guestfs-actions.pod:1944
25942 " guestfs_find0 (guestfs_h *g,\n"
25943 " const char *directory,\n"
25944 " const char *files);\n"
25949 #: ../src/guestfs-actions.pod:1953
25951 "This command works the same way as C<guestfs_find> with the following "
25956 #: ../src/guestfs-actions.pod:1980
25957 msgid "(Added in 1.0.74)"
25961 #: ../src/guestfs-actions.pod:1982
25962 msgid "guestfs_findfs_label"
25966 #: ../src/guestfs-actions.pod:1984
25970 " guestfs_findfs_label (guestfs_h *g,\n"
25971 " const char *label);\n"
25976 #: ../src/guestfs-actions.pod:1992
25977 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25981 #: ../src/guestfs-actions.pod:1999
25982 msgid "guestfs_findfs_uuid"
25986 #: ../src/guestfs-actions.pod:2001
25990 " guestfs_findfs_uuid (guestfs_h *g,\n"
25991 " const char *uuid);\n"
25996 #: ../src/guestfs-actions.pod:2009
25997 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26001 #: ../src/guestfs-actions.pod:2016
26002 msgid "guestfs_fsck"
26006 #: ../src/guestfs-actions.pod:2018
26010 " guestfs_fsck (guestfs_h *g,\n"
26011 " const char *fstype,\n"
26012 " const char *device);\n"
26017 #: ../src/guestfs-actions.pod:2053 ../src/guestfs-actions.pod:7945
26018 msgid "(Added in 1.0.16)"
26022 #: ../src/guestfs-actions.pod:2055
26023 msgid "guestfs_get_append"
26027 #: ../src/guestfs-actions.pod:2057
26031 " guestfs_get_append (guestfs_h *g);\n"
26036 #: ../src/guestfs-actions.pod:2065
26038 "This function returns a string which may be NULL. There is no way to return "
26039 "an error from this function. The string is owned by the guest handle and "
26040 "must I<not> be freed."
26044 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:5834
26045 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6772
26046 #: ../src/guestfs-actions.pod:6791 ../src/guestfs-actions.pod:6807
26047 #: ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:7585
26048 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7992
26049 msgid "(Added in 1.0.26)"
26053 #: ../src/guestfs-actions.pod:2071
26054 msgid "guestfs_get_attach_method"
26058 #: ../src/guestfs-actions.pod:2073
26062 " guestfs_get_attach_method (guestfs_h *g);\n"
26067 #: ../src/guestfs-actions.pod:2076
26068 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
26072 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:6346
26073 msgid "(Added in 1.9.8)"
26077 #: ../src/guestfs-actions.pod:2083
26078 msgid "guestfs_get_autosync"
26082 #: ../src/guestfs-actions.pod:2085
26086 " guestfs_get_autosync (guestfs_h *g);\n"
26091 #: ../src/guestfs-actions.pod:2094
26092 msgid "guestfs_get_direct"
26096 #: ../src/guestfs-actions.pod:2096
26100 " guestfs_get_direct (guestfs_h *g);\n"
26105 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:6387
26106 msgid "(Added in 1.0.72)"
26110 #: ../src/guestfs-actions.pod:2105
26111 msgid "guestfs_get_e2label"
26115 #: ../src/guestfs-actions.pod:2107
26119 " guestfs_get_e2label (guestfs_h *g,\n"
26120 " const char *device);\n"
26125 #: ../src/guestfs-actions.pod:2111
26127 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26132 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145
26133 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6424
26134 msgid "(Added in 1.0.15)"
26138 #: ../src/guestfs-actions.pod:2126
26139 msgid "guestfs_get_e2uuid"
26143 #: ../src/guestfs-actions.pod:2128
26147 " guestfs_get_e2uuid (guestfs_h *g,\n"
26148 " const char *device);\n"
26153 #: ../src/guestfs-actions.pod:2132
26155 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26160 #: ../src/guestfs-actions.pod:2147
26161 msgid "guestfs_get_memsize"
26165 #: ../src/guestfs-actions.pod:2149
26169 " guestfs_get_memsize (guestfs_h *g);\n"
26174 #: ../src/guestfs-actions.pod:2155
26176 "If C<guestfs_set_memsize> was not called on this handle, and if "
26177 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26178 "value for memsize."
26182 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:4737
26183 #: ../src/guestfs-actions.pod:4946 ../src/guestfs-actions.pod:4965
26184 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:4996
26185 #: ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5026
26186 #: ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6445
26187 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:7354
26188 msgid "(Added in 1.0.55)"
26192 #: ../src/guestfs-actions.pod:2166
26193 msgid "guestfs_get_network"
26197 #: ../src/guestfs-actions.pod:2168
26201 " guestfs_get_network (guestfs_h *g);\n"
26206 #: ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:6464
26207 msgid "(Added in 1.5.4)"
26211 #: ../src/guestfs-actions.pod:2177
26212 msgid "guestfs_get_path"
26216 #: ../src/guestfs-actions.pod:2179
26220 " guestfs_get_path (guestfs_h *g);\n"
26225 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2227
26227 "This function returns a string, or NULL on error. The string is owned by "
26228 "the guest handle and must I<not> be freed."
26232 #: ../src/guestfs-actions.pod:2192
26233 msgid "guestfs_get_pgroup"
26237 #: ../src/guestfs-actions.pod:2194
26241 " guestfs_get_pgroup (guestfs_h *g);\n"
26246 #: ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:6500
26247 #: ../src/guestfs-actions.pod:7846
26249 #| msgid "(Added in 1.5.1)"
26250 msgid "(Added in 1.11.18)"
26251 msgstr "(Додано у 1.5.1)"
26254 #: ../src/guestfs-actions.pod:2203
26255 msgid "guestfs_get_pid"
26259 #: ../src/guestfs-actions.pod:2205
26263 " guestfs_get_pid (guestfs_h *g);\n"
26268 #: ../src/guestfs-actions.pod:2215
26269 msgid "(Added in 1.0.56)"
26273 #: ../src/guestfs-actions.pod:2217
26274 msgid "guestfs_get_qemu"
26278 #: ../src/guestfs-actions.pod:2219
26282 " guestfs_get_qemu (guestfs_h *g);\n"
26287 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:6528
26288 msgid "(Added in 1.0.6)"
26292 #: ../src/guestfs-actions.pod:2232
26293 msgid "guestfs_get_recovery_proc"
26297 #: ../src/guestfs-actions.pod:2234
26301 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26306 #: ../src/guestfs-actions.pod:2241 ../src/guestfs-actions.pod:3810
26307 #: ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4544
26308 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:5764
26309 #: ../src/guestfs-actions.pod:6107 ../src/guestfs-actions.pod:6552
26310 #: ../src/guestfs-actions.pod:7257 ../src/guestfs-actions.pod:7277
26311 #: ../src/guestfs-actions.pod:7469
26312 msgid "(Added in 1.0.77)"
26316 #: ../src/guestfs-actions.pod:2243
26317 msgid "guestfs_get_selinux"
26321 #: ../src/guestfs-actions.pod:2245
26325 " guestfs_get_selinux (guestfs_h *g);\n"
26330 #: ../src/guestfs-actions.pod:2248
26332 "This returns the current setting of the selinux flag which is passed to the "
26333 "appliance at boot time. See C<guestfs_set_selinux>."
26337 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2328
26338 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6643
26339 msgid "(Added in 1.0.67)"
26343 #: ../src/guestfs-actions.pod:2258
26345 #| msgid "guestfs_zgrep"
26346 msgid "guestfs_get_smp"
26347 msgstr "guestfs_zgrep"
26350 #: ../src/guestfs-actions.pod:2260
26353 #| " int guestfs_last_errno (guestfs_h *g);\n"
26357 " guestfs_get_smp (guestfs_h *g);\n"
26360 " int guestfs_last_errno (guestfs_h *g);\n"
26364 #: ../src/guestfs-actions.pod:2267
26365 msgid "guestfs_get_state"
26369 #: ../src/guestfs-actions.pod:2269
26373 " guestfs_get_state (guestfs_h *g);\n"
26378 #: ../src/guestfs-actions.pod:2281
26379 msgid "guestfs_get_trace"
26383 #: ../src/guestfs-actions.pod:2283
26387 " guestfs_get_trace (guestfs_h *g);\n"
26392 #: ../src/guestfs-actions.pod:2292
26393 msgid "guestfs_get_umask"
26397 #: ../src/guestfs-actions.pod:2294
26401 " guestfs_get_umask (guestfs_h *g);\n"
26406 #: ../src/guestfs-actions.pod:2297
26408 "Return the current umask. By default the umask is C<022> unless it has been "
26409 "set by calling C<guestfs_umask>."
26413 #: ../src/guestfs-actions.pod:2304
26414 msgid "guestfs_get_verbose"
26418 #: ../src/guestfs-actions.pod:2306
26422 " guestfs_get_verbose (guestfs_h *g);\n"
26427 #: ../src/guestfs-actions.pod:2315
26428 msgid "guestfs_getcon"
26432 #: ../src/guestfs-actions.pod:2317
26436 " guestfs_getcon (guestfs_h *g);\n"
26441 #: ../src/guestfs-actions.pod:2322
26443 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26447 #: ../src/guestfs-actions.pod:2330
26448 msgid "guestfs_getxattr"
26452 #: ../src/guestfs-actions.pod:2332
26456 " guestfs_getxattr (guestfs_h *g,\n"
26457 " const char *path,\n"
26458 " const char *name,\n"
26459 " size_t *size_r);\n"
26464 #: ../src/guestfs-actions.pod:2338
26466 "Get a single extended attribute from file C<path> named C<name>. This call "
26467 "follows symlinks. If you want to lookup an extended attribute for the "
26468 "symlink itself, use C<guestfs_lgetxattr>."
26472 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:3824
26474 "Normally it is better to get all extended attributes from a file in one go "
26475 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
26476 "implementations are buggy and do not provide a way to list out attributes. "
26477 "For these filesystems (notably ntfs-3g) you have to know the names of the "
26478 "extended attributes you want in advance and call this function."
26482 #: ../src/guestfs-actions.pod:2352
26483 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26487 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2567
26488 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3836
26489 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
26490 #: ../src/guestfs-actions.pod:5964
26492 "This function returns a buffer, or NULL on error. The size of the returned "
26493 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
26498 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3840
26499 msgid "(Added in 1.7.24)"
26503 #: ../src/guestfs-actions.pod:2360
26504 msgid "guestfs_getxattrs"
26508 #: ../src/guestfs-actions.pod:2362
26511 " struct guestfs_xattr_list *\n"
26512 " guestfs_getxattrs (guestfs_h *g,\n"
26513 " const char *path);\n"
26518 #: ../src/guestfs-actions.pod:2372
26519 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26523 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:3852
26524 #: ../src/guestfs-actions.pod:4540
26526 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26527 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
26531 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:3856
26532 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4091
26533 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6662
26534 #: ../src/guestfs-actions.pod:8057
26535 msgid "(Added in 1.0.59)"
26539 #: ../src/guestfs-actions.pod:2380
26540 msgid "guestfs_glob_expand"
26544 #: ../src/guestfs-actions.pod:2382
26548 " guestfs_glob_expand (guestfs_h *g,\n"
26549 " const char *pattern);\n"
26554 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:6855
26555 #: ../src/guestfs-actions.pod:6872
26556 msgid "(Added in 1.0.50)"
26560 #: ../src/guestfs-actions.pod:2403
26561 msgid "guestfs_grep"
26565 #: ../src/guestfs-actions.pod:2405
26569 " guestfs_grep (guestfs_h *g,\n"
26570 " const char *regex,\n"
26571 " const char *path);\n"
26576 #: ../src/guestfs-actions.pod:2422
26577 msgid "guestfs_grepi"
26581 #: ../src/guestfs-actions.pod:2424
26585 " guestfs_grepi (guestfs_h *g,\n"
26586 " const char *regex,\n"
26587 " const char *path);\n"
26592 #: ../src/guestfs-actions.pod:2441
26593 msgid "guestfs_grub_install"
26597 #: ../src/guestfs-actions.pod:2443
26601 " guestfs_grub_install (guestfs_h *g,\n"
26602 " const char *root,\n"
26603 " const char *device);\n"
26608 #: ../src/guestfs-actions.pod:2486
26609 msgid "(Added in 1.0.17)"
26613 #: ../src/guestfs-actions.pod:2488
26614 msgid "guestfs_head"
26618 #: ../src/guestfs-actions.pod:2490
26622 " guestfs_head (guestfs_h *g,\n"
26623 " const char *path);\n"
26628 #: ../src/guestfs-actions.pod:2506
26629 msgid "guestfs_head_n"
26633 #: ../src/guestfs-actions.pod:2508
26637 " guestfs_head_n (guestfs_h *g,\n"
26639 " const char *path);\n"
26644 #: ../src/guestfs-actions.pod:2530
26645 msgid "guestfs_hexdump"
26649 #: ../src/guestfs-actions.pod:2532
26653 " guestfs_hexdump (guestfs_h *g,\n"
26654 " const char *path);\n"
26659 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:6936
26660 #: ../src/guestfs-actions.pod:6991
26661 msgid "(Added in 1.0.22)"
26665 #: ../src/guestfs-actions.pod:2547
26666 msgid "guestfs_initrd_cat"
26670 #: ../src/guestfs-actions.pod:2549
26674 " guestfs_initrd_cat (guestfs_h *g,\n"
26675 " const char *initrdpath,\n"
26676 " const char *filename,\n"
26677 " size_t *size_r);\n"
26682 #: ../src/guestfs-actions.pod:2565
26683 msgid "See also C<guestfs_initrd_list>."
26687 #: ../src/guestfs-actions.pod:2576
26688 msgid "guestfs_initrd_list"
26692 #: ../src/guestfs-actions.pod:2578
26696 " guestfs_initrd_list (guestfs_h *g,\n"
26697 " const char *path);\n"
26702 #: ../src/guestfs-actions.pod:2598
26703 msgid "guestfs_inotify_add_watch"
26707 #: ../src/guestfs-actions.pod:2600
26711 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26712 " const char *path,\n"
26718 #: ../src/guestfs-actions.pod:2619
26719 msgid "guestfs_inotify_close"
26723 #: ../src/guestfs-actions.pod:2621
26727 " guestfs_inotify_close (guestfs_h *g);\n"
26732 #: ../src/guestfs-actions.pod:2632
26733 msgid "guestfs_inotify_files"
26737 #: ../src/guestfs-actions.pod:2634
26741 " guestfs_inotify_files (guestfs_h *g);\n"
26746 #: ../src/guestfs-actions.pod:2637
26748 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26749 "returns a list of pathnames of objects that were touched. The returned "
26750 "pathnames are sorted and deduplicated."
26754 #: ../src/guestfs-actions.pod:2647
26755 msgid "guestfs_inotify_init"
26759 #: ../src/guestfs-actions.pod:2649
26763 " guestfs_inotify_init (guestfs_h *g,\n"
26764 " int maxevents);\n"
26769 #: ../src/guestfs-actions.pod:2657
26771 "C<maxevents> is the maximum number of events which will be queued up between "
26772 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
26773 "passed as C<0>, then the kernel (or previously set) default is used. For "
26774 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
26775 "throws away events, but records the fact that it threw them away by setting "
26776 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26777 "C<guestfs_inotify_read>)."
26781 #: ../src/guestfs-actions.pod:2667
26783 "Before any events are generated, you have to add some watches to the "
26784 "internal watch list. See: C<guestfs_inotify_add_watch>, "
26785 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26789 #: ../src/guestfs-actions.pod:2673
26791 "Queued up events should be read periodically by calling "
26792 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26793 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
26794 "often enough then you risk the internal queue overflowing."
26798 #: ../src/guestfs-actions.pod:2680
26800 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
26801 "This also removes any watches automatically."
26805 #: ../src/guestfs-actions.pod:2693
26806 msgid "guestfs_inotify_read"
26810 #: ../src/guestfs-actions.pod:2695
26813 " struct guestfs_inotify_event_list *\n"
26814 " guestfs_inotify_read (guestfs_h *g);\n"
26819 #: ../src/guestfs-actions.pod:2709
26821 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26822 "there was an error. I<The caller must call "
26823 "C<guestfs_free_inotify_event_list> after use>."
26827 #: ../src/guestfs-actions.pod:2715
26828 msgid "guestfs_inotify_rm_watch"
26832 #: ../src/guestfs-actions.pod:2717
26836 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26842 #: ../src/guestfs-actions.pod:2721
26844 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
26848 #: ../src/guestfs-actions.pod:2728
26849 msgid "guestfs_inspect_get_arch"
26853 #: ../src/guestfs-actions.pod:2730
26857 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26858 " const char *root);\n"
26863 #: ../src/guestfs-actions.pod:2734
26865 "This returns the architecture of the inspected operating system. The "
26866 "possible return values are listed under C<guestfs_file_architecture>."
26870 #: ../src/guestfs-actions.pod:2748
26871 msgid "guestfs_inspect_get_distro"
26875 #: ../src/guestfs-actions.pod:2750
26879 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26880 " const char *root);\n"
26885 #: ../src/guestfs-actions.pod:2842
26886 msgid "guestfs_inspect_get_drive_mappings"
26890 #: ../src/guestfs-actions.pod:2844
26894 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26895 " const char *root);\n"
26900 #: ../src/guestfs-actions.pod:2873
26902 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26903 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26907 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:3145
26908 #: ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:5225
26909 #: ../src/guestfs-actions.pod:7293
26911 "This function returns a NULL-terminated array of strings, or NULL if there "
26912 "was an error. The array of strings will always have length C<2n+1>, where "
26913 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
26914 "caller must free the strings and the array after use>."
26918 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3339
26919 msgid "(Added in 1.9.17)"
26923 #: ../src/guestfs-actions.pod:2885
26924 msgid "guestfs_inspect_get_filesystems"
26928 #: ../src/guestfs-actions.pod:2887
26932 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26933 " const char *root);\n"
26938 #: ../src/guestfs-actions.pod:2899
26940 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26941 "C<guestfs_inspect_get_mountpoints>."
26945 #: ../src/guestfs-actions.pod:2908
26946 msgid "guestfs_inspect_get_format"
26950 #: ../src/guestfs-actions.pod:2910
26954 " guestfs_inspect_get_format (guestfs_h *g,\n"
26955 " const char *root);\n"
26960 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3375
26961 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3409
26962 #: ../src/guestfs-actions.pod:6175
26963 msgid "(Added in 1.9.4)"
26967 #: ../src/guestfs-actions.pod:2946
26968 msgid "guestfs_inspect_get_hostname"
26972 #: ../src/guestfs-actions.pod:2948
26976 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26977 " const char *root);\n"
26982 #: ../src/guestfs-actions.pod:2963
26983 msgid "(Added in 1.7.9)"
26987 #: ../src/guestfs-actions.pod:2965
26988 msgid "guestfs_inspect_get_icon"
26992 #: ../src/guestfs-actions.pod:2967
26996 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26997 " const char *root,\n"
26998 " size_t *size_r,\n"
27004 #: ../src/guestfs-actions.pod:2978
27007 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27008 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27013 #: ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3870
27014 #: ../src/guestfs-actions.pod:5124
27015 msgid "(Added in 1.11.12)"
27019 #: ../src/guestfs-actions.pod:3047
27020 msgid "guestfs_inspect_get_icon_va"
27024 #: ../src/guestfs-actions.pod:3049
27028 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27029 " const char *root,\n"
27030 " size_t *size_r,\n"
27031 " va_list args);\n"
27036 #: ../src/guestfs-actions.pod:3055
27037 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27041 #: ../src/guestfs-actions.pod:3059
27042 msgid "guestfs_inspect_get_icon_argv"
27046 #: ../src/guestfs-actions.pod:3061
27050 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27051 " const char *root,\n"
27052 " size_t *size_r,\n"
27053 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
27058 #: ../src/guestfs-actions.pod:3067
27059 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27063 #: ../src/guestfs-actions.pod:3071
27064 msgid "guestfs_inspect_get_major_version"
27068 #: ../src/guestfs-actions.pod:3073
27072 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27073 " const char *root);\n"
27078 #: ../src/guestfs-actions.pod:3095
27079 msgid "guestfs_inspect_get_minor_version"
27083 #: ../src/guestfs-actions.pod:3097
27087 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27088 " const char *root);\n"
27093 #: ../src/guestfs-actions.pod:3106
27095 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27096 "C<guestfs_inspect_get_major_version>."
27100 #: ../src/guestfs-actions.pod:3113
27101 msgid "guestfs_inspect_get_mountpoints"
27105 #: ../src/guestfs-actions.pod:3115
27109 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27110 " const char *root);\n"
27115 #: ../src/guestfs-actions.pod:3136
27117 "For operating systems like Windows which still use drive letters, this call "
27118 "will only return an entry for the first drive \"mounted on\" C</>. For "
27119 "information about the mapping of drive letters to partitions, see "
27120 "C<guestfs_inspect_get_drive_mappings>."
27124 #: ../src/guestfs-actions.pod:3142
27126 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27127 "C<guestfs_inspect_get_filesystems>."
27131 #: ../src/guestfs-actions.pod:3153
27132 msgid "guestfs_inspect_get_package_format"
27136 #: ../src/guestfs-actions.pod:3155
27140 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27141 " const char *root);\n"
27146 #: ../src/guestfs-actions.pod:3159
27148 "This function and C<guestfs_inspect_get_package_management> return the "
27149 "package format and package management tool used by the inspected operating "
27150 "system. For example for Fedora these functions would return C<rpm> (package "
27151 "format) and C<yum> (package management)."
27155 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3205
27156 msgid "(Added in 1.7.5)"
27160 #: ../src/guestfs-actions.pod:3179
27161 msgid "guestfs_inspect_get_package_management"
27165 #: ../src/guestfs-actions.pod:3181
27169 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27170 " const char *root);\n"
27175 #: ../src/guestfs-actions.pod:3185
27177 "C<guestfs_inspect_get_package_format> and this function return the package "
27178 "format and package management tool used by the inspected operating system. "
27179 "For example for Fedora these functions would return C<rpm> (package format) "
27180 "and C<yum> (package management)."
27184 #: ../src/guestfs-actions.pod:3207
27185 msgid "guestfs_inspect_get_product_name"
27189 #: ../src/guestfs-actions.pod:3209
27193 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27194 " const char *root);\n"
27199 #: ../src/guestfs-actions.pod:3228
27200 msgid "guestfs_inspect_get_product_variant"
27204 #: ../src/guestfs-actions.pod:3230
27208 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27209 " const char *root);\n"
27214 #: ../src/guestfs-actions.pod:3253
27216 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27217 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27221 #: ../src/guestfs-actions.pod:3260
27222 msgid "(Added in 1.9.13)"
27226 #: ../src/guestfs-actions.pod:3262
27227 msgid "guestfs_inspect_get_roots"
27231 #: ../src/guestfs-actions.pod:3264
27235 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27240 #: ../src/guestfs-actions.pod:3267
27242 "This function is a convenient way to get the list of root devices, as "
27243 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27244 "the whole inspection process."
27248 #: ../src/guestfs-actions.pod:3271
27250 "This returns an empty list if either no root devices were found or the "
27251 "caller has not called C<guestfs_inspect_os>."
27255 #: ../src/guestfs-actions.pod:3280
27256 msgid "(Added in 1.7.3)"
27260 #: ../src/guestfs-actions.pod:3282
27261 msgid "guestfs_inspect_get_type"
27265 #: ../src/guestfs-actions.pod:3284
27269 " guestfs_inspect_get_type (guestfs_h *g,\n"
27270 " const char *root);\n"
27275 #: ../src/guestfs-actions.pod:3321
27276 msgid "guestfs_inspect_get_windows_current_control_set"
27280 #: ../src/guestfs-actions.pod:3323
27284 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27285 " const char *root);\n"
27290 #: ../src/guestfs-actions.pod:3341
27291 msgid "guestfs_inspect_get_windows_systemroot"
27295 #: ../src/guestfs-actions.pod:3343
27299 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27300 " const char *root);\n"
27305 #: ../src/guestfs-actions.pod:3359
27306 msgid "(Added in 1.5.25)"
27310 #: ../src/guestfs-actions.pod:3361
27311 msgid "guestfs_inspect_is_live"
27315 #: ../src/guestfs-actions.pod:3363
27319 " guestfs_inspect_is_live (guestfs_h *g,\n"
27320 " const char *root);\n"
27325 #: ../src/guestfs-actions.pod:3367
27327 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27328 "disk), then this returns true if a live image was detected on the disk."
27332 #: ../src/guestfs-actions.pod:3377
27333 msgid "guestfs_inspect_is_multipart"
27337 #: ../src/guestfs-actions.pod:3379
27341 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27342 " const char *root);\n"
27347 #: ../src/guestfs-actions.pod:3383
27349 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27350 "disk), then this returns true if the disk is part of a set."
27354 #: ../src/guestfs-actions.pod:3393
27355 msgid "guestfs_inspect_is_netinst"
27359 #: ../src/guestfs-actions.pod:3395
27363 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27364 " const char *root);\n"
27369 #: ../src/guestfs-actions.pod:3399
27371 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27372 "disk), then this returns true if the disk is a network installer, ie. not a "
27373 "self-contained install CD but one which is likely to require network access "
27374 "to complete the install."
27378 #: ../src/guestfs-actions.pod:3411
27379 msgid "guestfs_inspect_list_applications"
27383 #: ../src/guestfs-actions.pod:3413
27386 " struct guestfs_application_list *\n"
27387 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27388 " const char *root);\n"
27393 #: ../src/guestfs-actions.pod:3419
27395 "I<Note:> This call works differently from other parts of the inspection "
27396 "API. You have to call C<guestfs_inspect_os>, then "
27397 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27398 "this. Listing applications is a significantly more difficult operation "
27399 "which requires access to the full filesystem. Also note that unlike the "
27400 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27401 "the libguestfs handle, this call actually reads parts of the mounted "
27402 "filesystems during the call."
27406 #: ../src/guestfs-actions.pod:3509
27408 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27409 "there was an error. I<The caller must call C<guestfs_free_application_list> "
27414 #: ../src/guestfs-actions.pod:3513
27415 msgid "(Added in 1.7.8)"
27419 #: ../src/guestfs-actions.pod:3515
27420 msgid "guestfs_inspect_os"
27424 #: ../src/guestfs-actions.pod:3517
27428 " guestfs_inspect_os (guestfs_h *g);\n"
27433 #: ../src/guestfs-actions.pod:3533
27435 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27436 "functions in order to query further information about each operating system, "
27437 "such as the name and version."
27441 #: ../src/guestfs-actions.pod:3538
27443 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27444 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27445 "the contents. This should be called with no disks currently mounted. The "
27446 "function may also use Augeas, so any existing Augeas handle will be closed."
27450 #: ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3881
27451 #: ../src/guestfs-actions.pod:3963
27452 msgid "See also C<guestfs_list_filesystems>."
27456 #: ../src/guestfs-actions.pod:3558
27457 msgid "guestfs_is_blockdev"
27461 #: ../src/guestfs-actions.pod:3560
27465 " guestfs_is_blockdev (guestfs_h *g,\n"
27466 " const char *path);\n"
27471 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3596
27472 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
27473 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3713
27474 #: ../src/guestfs-actions.pod:3728
27475 msgid "See also C<guestfs_stat>."
27479 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3600
27480 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3717
27481 #: ../src/guestfs-actions.pod:3732
27482 msgid "(Added in 1.5.10)"
27486 #: ../src/guestfs-actions.pod:3573
27487 msgid "guestfs_is_busy"
27491 #: ../src/guestfs-actions.pod:3575
27495 " guestfs_is_busy (guestfs_h *g);\n"
27500 #: ../src/guestfs-actions.pod:3587
27501 msgid "guestfs_is_chardev"
27505 #: ../src/guestfs-actions.pod:3589
27509 " guestfs_is_chardev (guestfs_h *g,\n"
27510 " const char *path);\n"
27515 #: ../src/guestfs-actions.pod:3602
27516 msgid "guestfs_is_config"
27520 #: ../src/guestfs-actions.pod:3604
27524 " guestfs_is_config (guestfs_h *g);\n"
27529 #: ../src/guestfs-actions.pod:3616
27530 msgid "guestfs_is_dir"
27534 #: ../src/guestfs-actions.pod:3618
27538 " guestfs_is_dir (guestfs_h *g,\n"
27539 " const char *path);\n"
27544 #: ../src/guestfs-actions.pod:3632
27545 msgid "guestfs_is_fifo"
27549 #: ../src/guestfs-actions.pod:3634
27553 " guestfs_is_fifo (guestfs_h *g,\n"
27554 " const char *path);\n"
27559 #: ../src/guestfs-actions.pod:3647
27560 msgid "guestfs_is_file"
27564 #: ../src/guestfs-actions.pod:3649
27568 " guestfs_is_file (guestfs_h *g,\n"
27569 " const char *path);\n"
27574 #: ../src/guestfs-actions.pod:3663
27575 msgid "guestfs_is_launching"
27579 #: ../src/guestfs-actions.pod:3665
27583 " guestfs_is_launching (guestfs_h *g);\n"
27588 #: ../src/guestfs-actions.pod:3677
27589 msgid "guestfs_is_lv"
27593 #: ../src/guestfs-actions.pod:3679
27597 " guestfs_is_lv (guestfs_h *g,\n"
27598 " const char *device);\n"
27603 #: ../src/guestfs-actions.pod:3690
27604 msgid "guestfs_is_ready"
27608 #: ../src/guestfs-actions.pod:3692
27612 " guestfs_is_ready (guestfs_h *g);\n"
27617 #: ../src/guestfs-actions.pod:3704
27618 msgid "guestfs_is_socket"
27622 #: ../src/guestfs-actions.pod:3706
27626 " guestfs_is_socket (guestfs_h *g,\n"
27627 " const char *path);\n"
27632 #: ../src/guestfs-actions.pod:3719
27633 msgid "guestfs_is_symlink"
27637 #: ../src/guestfs-actions.pod:3721
27641 " guestfs_is_symlink (guestfs_h *g,\n"
27642 " const char *path);\n"
27647 #: ../src/guestfs-actions.pod:3734
27648 msgid "guestfs_is_zero"
27652 #: ../src/guestfs-actions.pod:3736
27656 " guestfs_is_zero (guestfs_h *g,\n"
27657 " const char *path);\n"
27662 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3759
27663 msgid "(Added in 1.11.8)"
27667 #: ../src/guestfs-actions.pod:3747
27668 msgid "guestfs_is_zero_device"
27672 #: ../src/guestfs-actions.pod:3749
27676 " guestfs_is_zero_device (guestfs_h *g,\n"
27677 " const char *device);\n"
27682 #: ../src/guestfs-actions.pod:3761
27683 msgid "guestfs_kill_subprocess"
27687 #: ../src/guestfs-actions.pod:3763
27691 " guestfs_kill_subprocess (guestfs_h *g);\n"
27696 #: ../src/guestfs-actions.pod:3772
27697 msgid "guestfs_launch"
27701 #: ../src/guestfs-actions.pod:3774
27705 " guestfs_launch (guestfs_h *g);\n"
27710 #: ../src/guestfs-actions.pod:3792
27711 msgid "guestfs_lchown"
27715 #: ../src/guestfs-actions.pod:3794
27719 " guestfs_lchown (guestfs_h *g,\n"
27722 " const char *path);\n"
27727 #: ../src/guestfs-actions.pod:3800
27729 "Change the file owner to C<owner> and group to C<group>. This is like "
27730 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27731 "changed, not the target."
27735 #: ../src/guestfs-actions.pod:3812
27736 msgid "guestfs_lgetxattr"
27740 #: ../src/guestfs-actions.pod:3814
27744 " guestfs_lgetxattr (guestfs_h *g,\n"
27745 " const char *path,\n"
27746 " const char *name,\n"
27747 " size_t *size_r);\n"
27752 #: ../src/guestfs-actions.pod:3834
27753 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27757 #: ../src/guestfs-actions.pod:3842
27758 msgid "guestfs_lgetxattrs"
27762 #: ../src/guestfs-actions.pod:3844
27765 " struct guestfs_xattr_list *\n"
27766 " guestfs_lgetxattrs (guestfs_h *g,\n"
27767 " const char *path);\n"
27772 #: ../src/guestfs-actions.pod:3848
27774 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27775 "then it returns the extended attributes of the link itself."
27779 #: ../src/guestfs-actions.pod:3858
27780 msgid "guestfs_list_9p"
27784 #: ../src/guestfs-actions.pod:3860
27788 " guestfs_list_9p (guestfs_h *g);\n"
27793 #: ../src/guestfs-actions.pod:3872
27794 msgid "guestfs_list_devices"
27798 #: ../src/guestfs-actions.pod:3874
27802 " guestfs_list_devices (guestfs_h *g);\n"
27807 #: ../src/guestfs-actions.pod:3889
27808 msgid "guestfs_list_dm_devices"
27812 #: ../src/guestfs-actions.pod:3891
27816 " guestfs_list_dm_devices (guestfs_h *g);\n"
27821 #: ../src/guestfs-actions.pod:3896
27823 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27824 "previous call to C<guestfs_luks_open>."
27828 #: ../src/guestfs-actions.pod:3899
27830 "Device mapper devices which correspond to logical volumes are I<not> "
27831 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
27836 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:5363
27837 msgid "(Added in 1.11.15)"
27841 #: ../src/guestfs-actions.pod:3909
27842 msgid "guestfs_list_filesystems"
27846 #: ../src/guestfs-actions.pod:3911
27850 " guestfs_list_filesystems (guestfs_h *g);\n"
27855 #: ../src/guestfs-actions.pod:3931
27857 "This command runs other libguestfs commands, which might include "
27858 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27859 "soon after launch and only when nothing is mounted."
27863 #: ../src/guestfs-actions.pod:3935
27865 "Not all of the filesystems returned will be mountable. In particular, swap "
27866 "partitions are returned in the list. Also this command does not check that "
27867 "each filesystem found is valid and mountable, and some filesystems might be "
27868 "mountable but require special options. Filesystems may not all belong to a "
27869 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27873 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5724
27874 msgid "(Added in 1.5.15)"
27878 #: ../src/guestfs-actions.pod:3951
27879 msgid "guestfs_list_partitions"
27880 msgstr "guestfs_list_partitions"
27883 #: ../src/guestfs-actions.pod:3953
27887 " guestfs_list_partitions (guestfs_h *g);\n"
27891 " guestfs_list_partitions (guestfs_h *g);\n"
27895 #: ../src/guestfs-actions.pod:3960
27897 "This does not return logical volumes. For that you will need to call "
27902 #: ../src/guestfs-actions.pod:3971
27904 msgstr "guestfs_ll"
27907 #: ../src/guestfs-actions.pod:3973
27911 " guestfs_ll (guestfs_h *g,\n"
27912 " const char *directory);\n"
27916 " guestfs_ll (guestfs_h *g,\n"
27917 " const char *directory);\n"
27921 #: ../src/guestfs-actions.pod:3988
27923 msgstr "guestfs_ln"
27926 #: ../src/guestfs-actions.pod:3990
27930 " guestfs_ln (guestfs_h *g,\n"
27931 " const char *target,\n"
27932 " const char *linkname);\n"
27936 " guestfs_ln (guestfs_h *g,\n"
27937 " const char *target,\n"
27938 " const char *linkname);\n"
27942 #: ../src/guestfs-actions.pod:4001
27943 msgid "guestfs_ln_f"
27944 msgstr "guestfs_ln_f"
27947 #: ../src/guestfs-actions.pod:4003
27951 " guestfs_ln_f (guestfs_h *g,\n"
27952 " const char *target,\n"
27953 " const char *linkname);\n"
27957 " guestfs_ln_f (guestfs_h *g,\n"
27958 " const char *target,\n"
27959 " const char *linkname);\n"
27963 #: ../src/guestfs-actions.pod:4015
27964 msgid "guestfs_ln_s"
27965 msgstr "guestfs_ln_s"
27968 #: ../src/guestfs-actions.pod:4017
27972 " guestfs_ln_s (guestfs_h *g,\n"
27973 " const char *target,\n"
27974 " const char *linkname);\n"
27978 " guestfs_ln_s (guestfs_h *g,\n"
27979 " const char *target,\n"
27980 " const char *linkname);\n"
27984 #: ../src/guestfs-actions.pod:4028
27985 msgid "guestfs_ln_sf"
27986 msgstr "guestfs_ln_sf"
27989 #: ../src/guestfs-actions.pod:4030
27993 " guestfs_ln_sf (guestfs_h *g,\n"
27994 " const char *target,\n"
27995 " const char *linkname);\n"
27999 " guestfs_ln_sf (guestfs_h *g,\n"
28000 " const char *target,\n"
28001 " const char *linkname);\n"
28005 #: ../src/guestfs-actions.pod:4042
28006 msgid "guestfs_lremovexattr"
28007 msgstr "guestfs_lremovexattr"
28010 #: ../src/guestfs-actions.pod:4044
28014 " guestfs_lremovexattr (guestfs_h *g,\n"
28015 " const char *xattr,\n"
28016 " const char *path);\n"
28020 " guestfs_lremovexattr (guestfs_h *g,\n"
28021 " const char *xattr,\n"
28022 " const char *path);\n"
28026 #: ../src/guestfs-actions.pod:4049
28028 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28029 "link, then it removes an extended attribute of the link itself."
28033 #: ../src/guestfs-actions.pod:4057
28035 msgstr "guestfs_ls"
28038 #: ../src/guestfs-actions.pod:4059
28042 " guestfs_ls (guestfs_h *g,\n"
28043 " const char *directory);\n"
28047 " guestfs_ls (guestfs_h *g,\n"
28048 " const char *directory);\n"
28052 #: ../src/guestfs-actions.pod:4067
28054 "This command is mostly useful for interactive sessions. Programs should "
28055 "probably use C<guestfs_readdir> instead."
28059 #: ../src/guestfs-actions.pod:4076
28060 msgid "guestfs_lsetxattr"
28061 msgstr "guestfs_lsetxattr"
28064 #: ../src/guestfs-actions.pod:4078
28068 " guestfs_lsetxattr (guestfs_h *g,\n"
28069 " const char *xattr,\n"
28070 " const char *val,\n"
28072 " const char *path);\n"
28076 " guestfs_lsetxattr (guestfs_h *g,\n"
28077 " const char *xattr,\n"
28078 " const char *val,\n"
28080 " const char *path);\n"
28084 #: ../src/guestfs-actions.pod:4085
28086 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28087 "then it sets an extended attribute of the link itself."
28091 #: ../src/guestfs-actions.pod:4093
28092 msgid "guestfs_lstat"
28093 msgstr "guestfs_lstat"
28096 #: ../src/guestfs-actions.pod:4095
28099 " struct guestfs_stat *\n"
28100 " guestfs_lstat (guestfs_h *g,\n"
28101 " const char *path);\n"
28104 " struct guestfs_stat *\n"
28105 " guestfs_lstat (guestfs_h *g,\n"
28106 " const char *path);\n"
28110 #: ../src/guestfs-actions.pod:4101
28112 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28113 "link, then the link is stat-ed, not the file it refers to."
28117 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:6896
28119 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28120 "error. I<The caller must call C<guestfs_free_stat> after use>."
28124 #: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:6900
28125 #: ../src/guestfs-actions.pod:6918 ../src/guestfs-actions.pod:7299
28126 msgid "(Added in 0.9.2)"
28127 msgstr "(Додано у 0.9.2)"
28130 #: ../src/guestfs-actions.pod:4113
28131 msgid "guestfs_lstatlist"
28132 msgstr "guestfs_lstatlist"
28135 #: ../src/guestfs-actions.pod:4115
28138 " struct guestfs_stat_list *\n"
28139 " guestfs_lstatlist (guestfs_h *g,\n"
28140 " const char *path,\n"
28141 " char *const *names);\n"
28144 " struct guestfs_stat_list *\n"
28145 " guestfs_lstatlist (guestfs_h *g,\n"
28146 " const char *path,\n"
28147 " char *const *names);\n"
28151 #: ../src/guestfs-actions.pod:4120
28153 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28154 "files, where all files are in the directory C<path>. C<names> is the list "
28155 "of files from this directory."
28159 #: ../src/guestfs-actions.pod:4129
28161 "This call is intended for programs that want to efficiently list a directory "
28162 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
28163 "for a similarly efficient call for getting extended attributes. Very long "
28164 "directory listings might cause the protocol message size to be exceeded, "
28165 "causing this call to fail. The caller must split up such requests into "
28166 "smaller groups of names."
28170 #: ../src/guestfs-actions.pod:4137
28172 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28173 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
28177 #: ../src/guestfs-actions.pod:4143
28178 msgid "guestfs_luks_add_key"
28179 msgstr "guestfs_luks_add_key"
28182 #: ../src/guestfs-actions.pod:4145
28186 " guestfs_luks_add_key (guestfs_h *g,\n"
28187 " const char *device,\n"
28188 " const char *key,\n"
28189 " const char *newkey,\n"
28194 " guestfs_luks_add_key (guestfs_h *g,\n"
28195 " const char *device,\n"
28196 " const char *key,\n"
28197 " const char *newkey,\n"
28202 #: ../src/guestfs-actions.pod:4157
28204 "Note that if C<keyslot> already contains a key, then this command will "
28205 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
28209 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4203
28210 #: ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4246
28211 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4300
28213 "This function takes a key or passphrase parameter which could contain "
28214 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
28219 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4207
28220 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4250
28221 msgid "(Added in 1.5.2)"
28222 msgstr "(Додано у 1.5.2)"
28225 #: ../src/guestfs-actions.pod:4169
28226 msgid "guestfs_luks_close"
28227 msgstr "guestfs_luks_close"
28230 #: ../src/guestfs-actions.pod:4171
28234 " guestfs_luks_close (guestfs_h *g,\n"
28235 " const char *device);\n"
28239 " guestfs_luks_close (guestfs_h *g,\n"
28240 " const char *device);\n"
28244 #: ../src/guestfs-actions.pod:4175
28246 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28247 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
28248 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28249 "underlying block device."
28253 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4285
28254 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4354
28255 #: ../src/guestfs-actions.pod:4402
28256 msgid "(Added in 1.5.1)"
28257 msgstr "(Додано у 1.5.1)"
28260 #: ../src/guestfs-actions.pod:4185
28261 msgid "guestfs_luks_format"
28262 msgstr "guestfs_luks_format"
28265 #: ../src/guestfs-actions.pod:4187
28269 " guestfs_luks_format (guestfs_h *g,\n"
28270 " const char *device,\n"
28271 " const char *key,\n"
28276 " guestfs_luks_format (guestfs_h *g,\n"
28277 " const char *device,\n"
28278 " const char *key,\n"
28283 #: ../src/guestfs-actions.pod:4209
28284 msgid "guestfs_luks_format_cipher"
28285 msgstr "guestfs_luks_format_cipher"
28288 #: ../src/guestfs-actions.pod:4211
28292 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28293 " const char *device,\n"
28294 " const char *key,\n"
28296 " const char *cipher);\n"
28300 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28301 " const char *device,\n"
28302 " const char *key,\n"
28304 " const char *cipher);\n"
28308 #: ../src/guestfs-actions.pod:4218
28310 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28311 "set the C<cipher> used."
28315 #: ../src/guestfs-actions.pod:4232
28316 msgid "guestfs_luks_kill_slot"
28317 msgstr "guestfs_luks_kill_slot"
28320 #: ../src/guestfs-actions.pod:4234
28324 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28325 " const char *device,\n"
28326 " const char *key,\n"
28331 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28332 " const char *device,\n"
28333 " const char *key,\n"
28338 #: ../src/guestfs-actions.pod:4252
28339 msgid "guestfs_luks_open"
28340 msgstr "guestfs_luks_open"
28343 #: ../src/guestfs-actions.pod:4254
28347 " guestfs_luks_open (guestfs_h *g,\n"
28348 " const char *device,\n"
28349 " const char *key,\n"
28350 " const char *mapname);\n"
28354 " guestfs_luks_open (guestfs_h *g,\n"
28355 " const char *device,\n"
28356 " const char *key,\n"
28357 " const char *mapname);\n"
28361 #: ../src/guestfs-actions.pod:4272
28363 "If this block device contains LVM volume groups, then calling "
28364 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28369 #: ../src/guestfs-actions.pod:4276
28370 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28374 #: ../src/guestfs-actions.pod:4287
28375 msgid "guestfs_luks_open_ro"
28376 msgstr "guestfs_luks_open_ro"
28379 #: ../src/guestfs-actions.pod:4289
28383 " guestfs_luks_open_ro (guestfs_h *g,\n"
28384 " const char *device,\n"
28385 " const char *key,\n"
28386 " const char *mapname);\n"
28390 " guestfs_luks_open_ro (guestfs_h *g,\n"
28391 " const char *device,\n"
28392 " const char *key,\n"
28393 " const char *mapname);\n"
28397 #: ../src/guestfs-actions.pod:4295
28399 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28404 #: ../src/guestfs-actions.pod:4306
28405 msgid "guestfs_lvcreate"
28406 msgstr "guestfs_lvcreate"
28409 #: ../src/guestfs-actions.pod:4308
28413 " guestfs_lvcreate (guestfs_h *g,\n"
28414 " const char *logvol,\n"
28415 " const char *volgroup,\n"
28420 " guestfs_lvcreate (guestfs_h *g,\n"
28421 " const char *logvol,\n"
28422 " const char *volgroup,\n"
28427 #: ../src/guestfs-actions.pod:4321
28428 msgid "guestfs_lvm_canonical_lv_name"
28429 msgstr "guestfs_lvm_canonical_lv_name"
28432 #: ../src/guestfs-actions.pod:4323
28436 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28437 " const char *lvname);\n"
28441 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28442 " const char *lvname);\n"
28446 #: ../src/guestfs-actions.pod:4334
28447 msgid "See also C<guestfs_is_lv>."
28451 #: ../src/guestfs-actions.pod:4339
28452 msgid "(Added in 1.5.24)"
28453 msgstr "(Додано у 1.5.24)"
28456 #: ../src/guestfs-actions.pod:4341
28457 msgid "guestfs_lvm_clear_filter"
28458 msgstr "guestfs_lvm_clear_filter"
28461 #: ../src/guestfs-actions.pod:4343
28465 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28469 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28473 #: ../src/guestfs-actions.pod:4346
28475 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
28476 "see every block device."
28480 #: ../src/guestfs-actions.pod:4356
28481 msgid "guestfs_lvm_remove_all"
28482 msgstr "guestfs_lvm_remove_all"
28485 #: ../src/guestfs-actions.pod:4358
28489 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28493 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28497 #: ../src/guestfs-actions.pod:4371
28498 msgid "guestfs_lvm_set_filter"
28499 msgstr "guestfs_lvm_set_filter"
28502 #: ../src/guestfs-actions.pod:4373
28506 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28507 " char *const *devices);\n"
28511 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28512 " char *const *devices);\n"
28516 #: ../src/guestfs-actions.pod:4404
28517 msgid "guestfs_lvremove"
28518 msgstr "guestfs_lvremove"
28521 #: ../src/guestfs-actions.pod:4406
28525 " guestfs_lvremove (guestfs_h *g,\n"
28526 " const char *device);\n"
28530 " guestfs_lvremove (guestfs_h *g,\n"
28531 " const char *device);\n"
28535 #: ../src/guestfs-actions.pod:4418 ../src/guestfs-actions.pod:5821
28536 #: ../src/guestfs-actions.pod:7669
28537 msgid "(Added in 1.0.13)"
28538 msgstr "(Додано у 1.0.13)"
28541 #: ../src/guestfs-actions.pod:4420
28542 msgid "guestfs_lvrename"
28543 msgstr "guestfs_lvrename"
28546 #: ../src/guestfs-actions.pod:4422
28550 " guestfs_lvrename (guestfs_h *g,\n"
28551 " const char *logvol,\n"
28552 " const char *newlogvol);\n"
28556 " guestfs_lvrename (guestfs_h *g,\n"
28557 " const char *logvol,\n"
28558 " const char *newlogvol);\n"
28562 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7682
28563 msgid "(Added in 1.0.83)"
28564 msgstr "(Додано у 1.0.83)"
28567 #: ../src/guestfs-actions.pod:4433
28568 msgid "guestfs_lvresize"
28569 msgstr "guestfs_lvresize"
28572 #: ../src/guestfs-actions.pod:4435
28576 " guestfs_lvresize (guestfs_h *g,\n"
28577 " const char *device,\n"
28582 " guestfs_lvresize (guestfs_h *g,\n"
28583 " const char *device,\n"
28588 #: ../src/guestfs-actions.pod:4448
28589 msgid "guestfs_lvresize_free"
28590 msgstr "guestfs_lvresize_free"
28593 #: ../src/guestfs-actions.pod:4450
28597 " guestfs_lvresize_free (guestfs_h *g,\n"
28598 " const char *lv,\n"
28603 " guestfs_lvresize_free (guestfs_h *g,\n"
28604 " const char *lv,\n"
28609 #: ../src/guestfs-actions.pod:4463
28610 msgid "(Added in 1.3.3)"
28611 msgstr "(Додано у 1.3.3)"
28614 #: ../src/guestfs-actions.pod:4465
28615 msgid "guestfs_lvs"
28616 msgstr "guestfs_lvs"
28619 #: ../src/guestfs-actions.pod:4467
28623 " guestfs_lvs (guestfs_h *g);\n"
28627 " guestfs_lvs (guestfs_h *g);\n"
28631 #: ../src/guestfs-actions.pod:4476
28632 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28636 #: ../src/guestfs-actions.pod:4484
28637 msgid "guestfs_lvs_full"
28638 msgstr "guestfs_lvs_full"
28641 #: ../src/guestfs-actions.pod:4486
28644 " struct guestfs_lvm_lv_list *\n"
28645 " guestfs_lvs_full (guestfs_h *g);\n"
28648 " struct guestfs_lvm_lv_list *\n"
28649 " guestfs_lvs_full (guestfs_h *g);\n"
28653 #: ../src/guestfs-actions.pod:4492
28655 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28656 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
28660 #: ../src/guestfs-actions.pod:4498
28661 msgid "guestfs_lvuuid"
28662 msgstr "guestfs_lvuuid"
28665 #: ../src/guestfs-actions.pod:4500
28669 " guestfs_lvuuid (guestfs_h *g,\n"
28670 " const char *device);\n"
28674 " guestfs_lvuuid (guestfs_h *g,\n"
28675 " const char *device);\n"
28679 #: ../src/guestfs-actions.pod:4511
28680 msgid "guestfs_lxattrlist"
28681 msgstr "guestfs_lxattrlist"
28684 #: ../src/guestfs-actions.pod:4513
28687 " struct guestfs_xattr_list *\n"
28688 " guestfs_lxattrlist (guestfs_h *g,\n"
28689 " const char *path,\n"
28690 " char *const *names);\n"
28693 " struct guestfs_xattr_list *\n"
28694 " guestfs_lxattrlist (guestfs_h *g,\n"
28695 " const char *path,\n"
28696 " char *const *names);\n"
28700 #: ../src/guestfs-actions.pod:4532
28702 "This call is intended for programs that want to efficiently list a directory "
28703 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
28704 "a similarly efficient call for getting standard stats. Very long directory "
28705 "listings might cause the protocol message size to be exceeded, causing this "
28706 "call to fail. The caller must split up such requests into smaller groups of "
28711 #: ../src/guestfs-actions.pod:4546
28712 msgid "guestfs_mkdir"
28713 msgstr "guestfs_mkdir"
28716 #: ../src/guestfs-actions.pod:4548
28720 " guestfs_mkdir (guestfs_h *g,\n"
28721 " const char *path);\n"
28725 " guestfs_mkdir (guestfs_h *g,\n"
28726 " const char *path);\n"
28730 #: ../src/guestfs-actions.pod:4558
28731 msgid "guestfs_mkdir_mode"
28732 msgstr "guestfs_mkdir_mode"
28735 #: ../src/guestfs-actions.pod:4560
28739 " guestfs_mkdir_mode (guestfs_h *g,\n"
28740 " const char *path,\n"
28745 " guestfs_mkdir_mode (guestfs_h *g,\n"
28746 " const char *path,\n"
28751 #: ../src/guestfs-actions.pod:4572
28752 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28756 #: ../src/guestfs-actions.pod:4578
28757 msgid "guestfs_mkdir_p"
28758 msgstr "guestfs_mkdir_p"
28761 #: ../src/guestfs-actions.pod:4580
28765 " guestfs_mkdir_p (guestfs_h *g,\n"
28766 " const char *path);\n"
28770 " guestfs_mkdir_p (guestfs_h *g,\n"
28771 " const char *path);\n"
28775 #: ../src/guestfs-actions.pod:4591
28776 msgid "guestfs_mkdtemp"
28777 msgstr "guestfs_mkdtemp"
28780 #: ../src/guestfs-actions.pod:4593
28784 " guestfs_mkdtemp (guestfs_h *g,\n"
28785 " const char *template);\n"
28789 " guestfs_mkdtemp (guestfs_h *g,\n"
28790 " const char *template);\n"
28794 #: ../src/guestfs-actions.pod:4621
28795 msgid "guestfs_mke2fs_J"
28796 msgstr "guestfs_mke2fs_J"
28799 #: ../src/guestfs-actions.pod:4623
28803 " guestfs_mke2fs_J (guestfs_h *g,\n"
28804 " const char *fstype,\n"
28805 " int blocksize,\n"
28806 " const char *device,\n"
28807 " const char *journal);\n"
28811 " guestfs_mke2fs_J (guestfs_h *g,\n"
28812 " const char *fstype,\n"
28813 " int blocksize,\n"
28814 " const char *device,\n"
28815 " const char *journal);\n"
28819 #: ../src/guestfs-actions.pod:4636
28820 msgid "See also C<guestfs_mke2journal>."
28824 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4658
28825 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4692
28826 #: ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4720
28827 #: ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:5056
28828 msgid "(Added in 1.0.68)"
28829 msgstr "(Додано у 1.0.68)"
28832 #: ../src/guestfs-actions.pod:4642
28833 msgid "guestfs_mke2fs_JL"
28834 msgstr "guestfs_mke2fs_JL"
28837 #: ../src/guestfs-actions.pod:4644
28841 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28842 " const char *fstype,\n"
28843 " int blocksize,\n"
28844 " const char *device,\n"
28845 " const char *label);\n"
28849 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28850 " const char *fstype,\n"
28851 " int blocksize,\n"
28852 " const char *device,\n"
28853 " const char *label);\n"
28857 #: ../src/guestfs-actions.pod:4654
28858 msgid "See also C<guestfs_mke2journal_L>."
28862 #: ../src/guestfs-actions.pod:4660
28863 msgid "guestfs_mke2fs_JU"
28864 msgstr "guestfs_mke2fs_JU"
28867 #: ../src/guestfs-actions.pod:4662
28871 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28872 " const char *fstype,\n"
28873 " int blocksize,\n"
28874 " const char *device,\n"
28875 " const char *uuid);\n"
28879 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28880 " const char *fstype,\n"
28881 " int blocksize,\n"
28882 " const char *device,\n"
28883 " const char *uuid);\n"
28887 #: ../src/guestfs-actions.pod:4672
28888 msgid "See also C<guestfs_mke2journal_U>."
28892 #: ../src/guestfs-actions.pod:4678
28893 msgid "guestfs_mke2journal"
28894 msgstr "guestfs_mke2journal"
28897 #: ../src/guestfs-actions.pod:4680
28901 " guestfs_mke2journal (guestfs_h *g,\n"
28902 " int blocksize,\n"
28903 " const char *device);\n"
28907 " guestfs_mke2journal (guestfs_h *g,\n"
28908 " int blocksize,\n"
28909 " const char *device);\n"
28913 #: ../src/guestfs-actions.pod:4694
28914 msgid "guestfs_mke2journal_L"
28915 msgstr "guestfs_mke2journal_L"
28918 #: ../src/guestfs-actions.pod:4696
28922 " guestfs_mke2journal_L (guestfs_h *g,\n"
28923 " int blocksize,\n"
28924 " const char *label,\n"
28925 " const char *device);\n"
28929 " guestfs_mke2journal_L (guestfs_h *g,\n"
28930 " int blocksize,\n"
28931 " const char *label,\n"
28932 " const char *device);\n"
28936 #: ../src/guestfs-actions.pod:4708
28937 msgid "guestfs_mke2journal_U"
28938 msgstr "guestfs_mke2journal_U"
28941 #: ../src/guestfs-actions.pod:4710
28945 " guestfs_mke2journal_U (guestfs_h *g,\n"
28946 " int blocksize,\n"
28947 " const char *uuid,\n"
28948 " const char *device);\n"
28952 " guestfs_mke2journal_U (guestfs_h *g,\n"
28953 " int blocksize,\n"
28954 " const char *uuid,\n"
28955 " const char *device);\n"
28959 #: ../src/guestfs-actions.pod:4722
28960 msgid "guestfs_mkfifo"
28961 msgstr "guestfs_mkfifo"
28964 #: ../src/guestfs-actions.pod:4724
28968 " guestfs_mkfifo (guestfs_h *g,\n"
28970 " const char *path);\n"
28974 " guestfs_mkfifo (guestfs_h *g,\n"
28976 " const char *path);\n"
28980 #: ../src/guestfs-actions.pod:4729
28982 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28983 "is just a convenient wrapper around C<guestfs_mknod>."
28987 #: ../src/guestfs-actions.pod:4739
28988 msgid "guestfs_mkfs"
28989 msgstr "guestfs_mkfs"
28992 #: ../src/guestfs-actions.pod:4741
28996 " guestfs_mkfs (guestfs_h *g,\n"
28997 " const char *fstype,\n"
28998 " const char *device);\n"
29002 " guestfs_mkfs (guestfs_h *g,\n"
29003 " const char *fstype,\n"
29004 " const char *device);\n"
29008 #: ../src/guestfs-actions.pod:4754
29009 msgid "guestfs_mkfs_b"
29010 msgstr "guestfs_mkfs_b"
29013 #: ../src/guestfs-actions.pod:4756
29017 " guestfs_mkfs_b (guestfs_h *g,\n"
29018 " const char *fstype,\n"
29019 " int blocksize,\n"
29020 " const char *device);\n"
29024 " guestfs_mkfs_b (guestfs_h *g,\n"
29025 " const char *fstype,\n"
29026 " int blocksize,\n"
29027 " const char *device);\n"
29031 #: ../src/guestfs-actions.pod:4762
29033 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29038 #: ../src/guestfs-actions.pod:4769
29040 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29041 "block size of the resulting filesystem. Supported block sizes depend on the "
29042 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29046 #: ../src/guestfs-actions.pod:4781
29047 msgid "guestfs_mkfs_opts"
29048 msgstr "guestfs_mkfs_opts"
29051 #: ../src/guestfs-actions.pod:4783
29055 " guestfs_mkfs_opts (guestfs_h *g,\n"
29056 " const char *fstype,\n"
29057 " const char *device,\n"
29062 " guestfs_mkfs_opts (guestfs_h *g,\n"
29063 " const char *fstype,\n"
29064 " const char *device,\n"
29069 #: ../src/guestfs-actions.pod:4794
29072 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29073 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29074 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29075 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29080 #: ../src/guestfs-actions.pod:4842
29081 msgid "(Added in 1.7.19)"
29082 msgstr "(Додано у 1.7.19)"
29085 #: ../src/guestfs-actions.pod:4844
29086 msgid "guestfs_mkfs_opts_va"
29087 msgstr "guestfs_mkfs_opts_va"
29090 #: ../src/guestfs-actions.pod:4846
29094 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29095 " const char *fstype,\n"
29096 " const char *device,\n"
29097 " va_list args);\n"
29101 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29102 " const char *fstype,\n"
29103 " const char *device,\n"
29104 " va_list args);\n"
29108 #: ../src/guestfs-actions.pod:4852
29109 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29113 #: ../src/guestfs-actions.pod:4856
29114 msgid "guestfs_mkfs_opts_argv"
29115 msgstr "guestfs_mkfs_opts_argv"
29118 #: ../src/guestfs-actions.pod:4858
29122 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29123 " const char *fstype,\n"
29124 " const char *device,\n"
29125 " const struct guestfs_mkfs_opts_argv *optargs);\n"
29129 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29130 " const char *fstype,\n"
29131 " const char *device,\n"
29132 " const struct guestfs_mkfs_opts_argv *optargs);\n"
29136 #: ../src/guestfs-actions.pod:4864
29137 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29141 #: ../src/guestfs-actions.pod:4868
29142 msgid "guestfs_mkmountpoint"
29143 msgstr "guestfs_mkmountpoint"
29146 #: ../src/guestfs-actions.pod:4870
29150 " guestfs_mkmountpoint (guestfs_h *g,\n"
29151 " const char *exemptpath);\n"
29155 " guestfs_mkmountpoint (guestfs_h *g,\n"
29156 " const char *exemptpath);\n"
29160 #: ../src/guestfs-actions.pod:4874
29162 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29163 "that can be used to create extra mountpoints before mounting the first "
29168 #: ../src/guestfs-actions.pod:4898
29170 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
29171 "may get unexpected errors if you try to mix these calls. It is safest to "
29172 "manually unmount filesystems and remove mountpoints after use."
29176 #: ../src/guestfs-actions.pod:4902
29178 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29179 "first, so for this to work for manual mountpoints, you must ensure that the "
29180 "innermost mountpoints have the longest pathnames, as in the example code "
29185 #: ../src/guestfs-actions.pod:4909
29187 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29188 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29189 "can also trigger these issues."
29193 #: ../src/guestfs-actions.pod:4915 ../src/guestfs-actions.pod:5231
29194 #: ../src/guestfs-actions.pod:6241
29195 msgid "(Added in 1.0.62)"
29196 msgstr "(Додано у 1.0.62)"
29199 #: ../src/guestfs-actions.pod:4917
29200 msgid "guestfs_mknod"
29204 #: ../src/guestfs-actions.pod:4919
29208 " guestfs_mknod (guestfs_h *g,\n"
29212 " const char *path);\n"
29217 #: ../src/guestfs-actions.pod:4934
29219 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29220 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29221 "regular file). These constants are available in the standard Linux header "
29222 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29223 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29224 "the appropriate constant for you."
29228 #: ../src/guestfs-actions.pod:4948
29229 msgid "guestfs_mknod_b"
29233 #: ../src/guestfs-actions.pod:4950
29237 " guestfs_mknod_b (guestfs_h *g,\n"
29241 " const char *path);\n"
29246 #: ../src/guestfs-actions.pod:4957
29248 "This call creates a block device node called C<path> with mode C<mode> and "
29249 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
29250 "wrapper around C<guestfs_mknod>."
29254 #: ../src/guestfs-actions.pod:4967
29255 msgid "guestfs_mknod_c"
29259 #: ../src/guestfs-actions.pod:4969
29263 " guestfs_mknod_c (guestfs_h *g,\n"
29267 " const char *path);\n"
29272 #: ../src/guestfs-actions.pod:4976
29274 "This call creates a char device node called C<path> with mode C<mode> and "
29275 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
29276 "wrapper around C<guestfs_mknod>."
29280 #: ../src/guestfs-actions.pod:4986
29281 msgid "guestfs_mkswap"
29285 #: ../src/guestfs-actions.pod:4988
29289 " guestfs_mkswap (guestfs_h *g,\n"
29290 " const char *device);\n"
29295 #: ../src/guestfs-actions.pod:4998
29296 msgid "guestfs_mkswap_L"
29300 #: ../src/guestfs-actions.pod:5000
29304 " guestfs_mkswap_L (guestfs_h *g,\n"
29305 " const char *label,\n"
29306 " const char *device);\n"
29311 #: ../src/guestfs-actions.pod:5015
29312 msgid "guestfs_mkswap_U"
29316 #: ../src/guestfs-actions.pod:5017
29320 " guestfs_mkswap_U (guestfs_h *g,\n"
29321 " const char *uuid,\n"
29322 " const char *device);\n"
29327 #: ../src/guestfs-actions.pod:5028
29328 msgid "guestfs_mkswap_file"
29332 #: ../src/guestfs-actions.pod:5030
29336 " guestfs_mkswap_file (guestfs_h *g,\n"
29337 " const char *path);\n"
29342 #: ../src/guestfs-actions.pod:5036
29344 "This command just writes a swap file signature to an existing file. To "
29345 "create the file itself, use something like C<guestfs_fallocate>."
29349 #: ../src/guestfs-actions.pod:5043
29350 msgid "guestfs_modprobe"
29354 #: ../src/guestfs-actions.pod:5045
29358 " guestfs_modprobe (guestfs_h *g,\n"
29359 " const char *modulename);\n"
29364 #: ../src/guestfs-actions.pod:5058
29365 msgid "guestfs_mount"
29369 #: ../src/guestfs-actions.pod:5060
29373 " guestfs_mount (guestfs_h *g,\n"
29374 " const char *device,\n"
29375 " const char *mountpoint);\n"
29380 #: ../src/guestfs-actions.pod:5065
29382 "I<This function is deprecated.> In new code, use the L</"
29383 "guestfs_mount_options> call instead."
29387 #: ../src/guestfs-actions.pod:5086
29389 "B<Important note:> When you use this call, the filesystem options C<sync> "
29390 "and C<noatime> are set implicitly. This was originally done because we "
29391 "thought it would improve reliability, but it turns out that I<-o sync> has a "
29392 "very large negative performance impact and negligible effect on "
29393 "reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
29394 "in any code that needs performance, and instead use C<guestfs_mount_options> "
29395 "(use an empty string for the first parameter if you don't want any options)."
29399 #: ../src/guestfs-actions.pod:5100
29400 msgid "guestfs_mount_9p"
29404 #: ../src/guestfs-actions.pod:5102
29408 " guestfs_mount_9p (guestfs_h *g,\n"
29409 " const char *mounttag,\n"
29410 " const char *mountpoint,\n"
29416 #: ../src/guestfs-actions.pod:5113
29419 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29424 #: ../src/guestfs-actions.pod:5126
29425 msgid "guestfs_mount_9p_va"
29429 #: ../src/guestfs-actions.pod:5128
29433 " guestfs_mount_9p_va (guestfs_h *g,\n"
29434 " const char *mounttag,\n"
29435 " const char *mountpoint,\n"
29436 " va_list args);\n"
29441 #: ../src/guestfs-actions.pod:5134
29442 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29446 #: ../src/guestfs-actions.pod:5138
29447 msgid "guestfs_mount_9p_argv"
29451 #: ../src/guestfs-actions.pod:5140
29455 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29456 " const char *mounttag,\n"
29457 " const char *mountpoint,\n"
29458 " const struct guestfs_mount_9p_argv *optargs);\n"
29463 #: ../src/guestfs-actions.pod:5146
29464 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29468 #: ../src/guestfs-actions.pod:5150
29469 msgid "guestfs_mount_loop"
29473 #: ../src/guestfs-actions.pod:5152
29477 " guestfs_mount_loop (guestfs_h *g,\n"
29478 " const char *file,\n"
29479 " const char *mountpoint);\n"
29484 #: ../src/guestfs-actions.pod:5165
29485 msgid "guestfs_mount_options"
29489 #: ../src/guestfs-actions.pod:5167
29493 " guestfs_mount_options (guestfs_h *g,\n"
29494 " const char *options,\n"
29495 " const char *device,\n"
29496 " const char *mountpoint);\n"
29501 #: ../src/guestfs-actions.pod:5173
29503 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29504 "the mount options as for the L<mount(8)> I<-o> flag."
29508 #: ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197
29509 #: ../src/guestfs-actions.pod:5214
29510 msgid "(Added in 1.0.10)"
29514 #: ../src/guestfs-actions.pod:5185
29515 msgid "guestfs_mount_ro"
29519 #: ../src/guestfs-actions.pod:5187
29523 " guestfs_mount_ro (guestfs_h *g,\n"
29524 " const char *device,\n"
29525 " const char *mountpoint);\n"
29530 #: ../src/guestfs-actions.pod:5192
29532 "This is the same as the C<guestfs_mount> command, but it mounts the "
29533 "filesystem with the read-only (I<-o ro>) flag."
29537 #: ../src/guestfs-actions.pod:5199
29538 msgid "guestfs_mount_vfs"
29542 #: ../src/guestfs-actions.pod:5201
29546 " guestfs_mount_vfs (guestfs_h *g,\n"
29547 " const char *options,\n"
29548 " const char *vfstype,\n"
29549 " const char *device,\n"
29550 " const char *mountpoint);\n"
29555 #: ../src/guestfs-actions.pod:5208
29557 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29558 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29563 #: ../src/guestfs-actions.pod:5216
29564 msgid "guestfs_mountpoints"
29568 #: ../src/guestfs-actions.pod:5218
29572 " guestfs_mountpoints (guestfs_h *g);\n"
29577 #: ../src/guestfs-actions.pod:5221
29579 "This call is similar to C<guestfs_mounts>. That call returns a list of "
29580 "devices. This one returns a hash table (map) of device name to directory "
29581 "where the device is mounted."
29585 #: ../src/guestfs-actions.pod:5233
29586 msgid "guestfs_mounts"
29590 #: ../src/guestfs-actions.pod:5235
29594 " guestfs_mounts (guestfs_h *g);\n"
29599 #: ../src/guestfs-actions.pod:5243
29600 msgid "See also: C<guestfs_mountpoints>"
29604 #: ../src/guestfs-actions.pod:5251
29609 #: ../src/guestfs-actions.pod:5253
29613 " guestfs_mv (guestfs_h *g,\n"
29614 " const char *src,\n"
29615 " const char *dest);\n"
29620 #: ../src/guestfs-actions.pod:5265
29621 msgid "guestfs_ntfs_3g_probe"
29625 #: ../src/guestfs-actions.pod:5267
29629 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29631 " const char *device);\n"
29636 #: ../src/guestfs-actions.pod:5286
29637 msgid "(Added in 1.0.43)"
29641 #: ../src/guestfs-actions.pod:5288
29642 msgid "guestfs_ntfsresize"
29646 #: ../src/guestfs-actions.pod:5290
29650 " guestfs_ntfsresize (guestfs_h *g,\n"
29651 " const char *device);\n"
29656 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5394
29658 "I<This function is deprecated.> In new code, use the L</"
29659 "guestfs_ntfsresize_opts> call instead."
29663 #: ../src/guestfs-actions.pod:5318
29664 msgid "guestfs_ntfsresize_opts"
29668 #: ../src/guestfs-actions.pod:5320
29672 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29673 " const char *device,\n"
29679 #: ../src/guestfs-actions.pod:5330
29682 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29683 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29688 #: ../src/guestfs-actions.pod:5350
29690 "After the resize operation, the filesystem is always marked as requiring a "
29691 "consistency check (for safety). You have to boot into Windows to perform "
29692 "this check and clear this condition. If you I<don't> set the C<force> "
29693 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29694 "times on a single filesystem without booting into Windows between each "
29699 #: ../src/guestfs-actions.pod:5365
29700 msgid "guestfs_ntfsresize_opts_va"
29704 #: ../src/guestfs-actions.pod:5367
29708 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29709 " const char *device,\n"
29710 " va_list args);\n"
29715 #: ../src/guestfs-actions.pod:5372
29716 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29720 #: ../src/guestfs-actions.pod:5376
29721 msgid "guestfs_ntfsresize_opts_argv"
29725 #: ../src/guestfs-actions.pod:5378
29729 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29730 " const char *device,\n"
29731 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29736 #: ../src/guestfs-actions.pod:5383
29737 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29741 #: ../src/guestfs-actions.pod:5387
29742 msgid "guestfs_ntfsresize_size"
29746 #: ../src/guestfs-actions.pod:5389
29750 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29751 " const char *device,\n"
29752 " int64_t size);\n"
29757 #: ../src/guestfs-actions.pod:5401
29759 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29760 "to specify the new size (in bytes) explicitly."
29764 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5848
29765 #: ../src/guestfs-actions.pod:5921 ../src/guestfs-actions.pod:6189
29766 #: ../src/guestfs-actions.pod:7826
29767 msgid "(Added in 1.3.14)"
29771 #: ../src/guestfs-actions.pod:5408
29772 msgid "guestfs_part_add"
29776 #: ../src/guestfs-actions.pod:5410
29780 " guestfs_part_add (guestfs_h *g,\n"
29781 " const char *device,\n"
29782 " const char *prlogex,\n"
29783 " int64_t startsect,\n"
29784 " int64_t endsect);\n"
29789 #: ../src/guestfs-actions.pod:5417
29791 "This command adds a partition to C<device>. If there is no partition table "
29792 "on the device, call C<guestfs_part_init> first."
29796 #: ../src/guestfs-actions.pod:5429
29798 "Creating a partition which covers the whole disk is not so easy. Use "
29799 "C<guestfs_part_disk> to do that."
29803 #: ../src/guestfs-actions.pod:5434 ../src/guestfs-actions.pod:5472
29804 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5609
29805 #: ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5666
29806 #: ../src/guestfs-actions.pod:5706
29807 msgid "(Added in 1.0.78)"
29811 #: ../src/guestfs-actions.pod:5436
29812 msgid "guestfs_part_del"
29816 #: ../src/guestfs-actions.pod:5438
29820 " guestfs_part_del (guestfs_h *g,\n"
29821 " const char *device,\n"
29827 #: ../src/guestfs-actions.pod:5453
29828 msgid "guestfs_part_disk"
29832 #: ../src/guestfs-actions.pod:5455
29836 " guestfs_part_disk (guestfs_h *g,\n"
29837 " const char *device,\n"
29838 " const char *parttype);\n"
29843 #: ../src/guestfs-actions.pod:5460
29845 "This command is simply a combination of C<guestfs_part_init> followed by "
29846 "C<guestfs_part_add> to create a single primary partition covering the whole "
29851 #: ../src/guestfs-actions.pod:5464
29853 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29854 "possible values are described in C<guestfs_part_init>."
29858 #: ../src/guestfs-actions.pod:5474
29859 msgid "guestfs_part_get_bootable"
29863 #: ../src/guestfs-actions.pod:5476
29867 " guestfs_part_get_bootable (guestfs_h *g,\n"
29868 " const char *device,\n"
29874 #: ../src/guestfs-actions.pod:5484
29875 msgid "See also C<guestfs_part_set_bootable>."
29879 #: ../src/guestfs-actions.pod:5490
29880 msgid "guestfs_part_get_mbr_id"
29884 #: ../src/guestfs-actions.pod:5492
29888 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29889 " const char *device,\n"
29895 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5682
29897 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
29898 "undefined results for other partition table types (see "
29899 "C<guestfs_part_get_parttype>)."
29903 #: ../src/guestfs-actions.pod:5508
29904 msgid "guestfs_part_get_parttype"
29908 #: ../src/guestfs-actions.pod:5510
29912 " guestfs_part_get_parttype (guestfs_h *g,\n"
29913 " const char *device);\n"
29918 #: ../src/guestfs-actions.pod:5517
29920 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29921 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
29922 "possible, although unusual. See C<guestfs_part_init> for a full list."
29926 #: ../src/guestfs-actions.pod:5527
29927 msgid "guestfs_part_init"
29931 #: ../src/guestfs-actions.pod:5529
29935 " guestfs_part_init (guestfs_h *g,\n"
29936 " const char *device,\n"
29937 " const char *parttype);\n"
29942 #: ../src/guestfs-actions.pod:5538
29944 "Initially there are no partitions. Following this, you should call "
29945 "C<guestfs_part_add> for each partition required."
29949 #: ../src/guestfs-actions.pod:5611
29950 msgid "guestfs_part_list"
29951 msgstr "guestfs_part_list"
29954 #: ../src/guestfs-actions.pod:5613
29957 " struct guestfs_partition_list *\n"
29958 " guestfs_part_list (guestfs_h *g,\n"
29959 " const char *device);\n"
29962 " struct guestfs_partition_list *\n"
29963 " guestfs_part_list (guestfs_h *g,\n"
29964 " const char *device);\n"
29968 #: ../src/guestfs-actions.pod:5630
29970 "Start of the partition I<in bytes>. To get sectors you have to divide by "
29971 "the device's sector size, see C<guestfs_blockdev_getss>."
29975 #: ../src/guestfs-actions.pod:5643
29977 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29978 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
29983 #: ../src/guestfs-actions.pod:5649
29984 msgid "guestfs_part_set_bootable"
29988 #: ../src/guestfs-actions.pod:5651
29992 " guestfs_part_set_bootable (guestfs_h *g,\n"
29993 " const char *device,\n"
29995 " int bootable);\n"
30000 #: ../src/guestfs-actions.pod:5668
30001 msgid "guestfs_part_set_mbr_id"
30005 #: ../src/guestfs-actions.pod:5670
30009 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30010 " const char *device,\n"
30017 #: ../src/guestfs-actions.pod:5690
30018 msgid "guestfs_part_set_name"
30022 #: ../src/guestfs-actions.pod:5692
30026 " guestfs_part_set_name (guestfs_h *g,\n"
30027 " const char *device,\n"
30029 " const char *name);\n"
30034 #: ../src/guestfs-actions.pod:5708
30035 msgid "guestfs_part_to_dev"
30039 #: ../src/guestfs-actions.pod:5710
30043 " guestfs_part_to_dev (guestfs_h *g,\n"
30044 " const char *partition);\n"
30049 #: ../src/guestfs-actions.pod:5718
30051 "The named partition must exist, for example as a string returned from "
30052 "C<guestfs_list_partitions>."
30056 #: ../src/guestfs-actions.pod:5726
30057 msgid "guestfs_ping_daemon"
30061 #: ../src/guestfs-actions.pod:5728
30065 " guestfs_ping_daemon (guestfs_h *g);\n"
30070 #: ../src/guestfs-actions.pod:5740
30071 msgid "guestfs_pread"
30075 #: ../src/guestfs-actions.pod:5742
30079 " guestfs_pread (guestfs_h *g,\n"
30080 " const char *path,\n"
30082 " int64_t offset,\n"
30083 " size_t *size_r);\n"
30088 #: ../src/guestfs-actions.pod:5755
30089 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30093 #: ../src/guestfs-actions.pod:5766
30094 msgid "guestfs_pread_device"
30098 #: ../src/guestfs-actions.pod:5768
30102 " guestfs_pread_device (guestfs_h *g,\n"
30103 " const char *device,\n"
30105 " int64_t offset,\n"
30106 " size_t *size_r);\n"
30111 #: ../src/guestfs-actions.pod:5781
30112 msgid "See also C<guestfs_pread>."
30116 #: ../src/guestfs-actions.pod:5790
30117 msgid "(Added in 1.5.21)"
30121 #: ../src/guestfs-actions.pod:5792
30122 msgid "guestfs_pvcreate"
30126 #: ../src/guestfs-actions.pod:5794
30130 " guestfs_pvcreate (guestfs_h *g,\n"
30131 " const char *device);\n"
30136 #: ../src/guestfs-actions.pod:5806
30137 msgid "guestfs_pvremove"
30141 #: ../src/guestfs-actions.pod:5808
30145 " guestfs_pvremove (guestfs_h *g,\n"
30146 " const char *device);\n"
30151 #: ../src/guestfs-actions.pod:5823
30152 msgid "guestfs_pvresize"
30156 #: ../src/guestfs-actions.pod:5825
30160 " guestfs_pvresize (guestfs_h *g,\n"
30161 " const char *device);\n"
30166 #: ../src/guestfs-actions.pod:5836
30167 msgid "guestfs_pvresize_size"
30171 #: ../src/guestfs-actions.pod:5838
30175 " guestfs_pvresize_size (guestfs_h *g,\n"
30176 " const char *device,\n"
30177 " int64_t size);\n"
30182 #: ../src/guestfs-actions.pod:5843
30184 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30185 "specify the new size (in bytes) explicitly."
30189 #: ../src/guestfs-actions.pod:5850
30190 msgid "guestfs_pvs"
30194 #: ../src/guestfs-actions.pod:5852
30198 " guestfs_pvs (guestfs_h *g);\n"
30203 #: ../src/guestfs-actions.pod:5861
30204 msgid "See also C<guestfs_pvs_full>."
30208 #: ../src/guestfs-actions.pod:5869
30209 msgid "guestfs_pvs_full"
30213 #: ../src/guestfs-actions.pod:5871
30216 " struct guestfs_lvm_pv_list *\n"
30217 " guestfs_pvs_full (guestfs_h *g);\n"
30222 #: ../src/guestfs-actions.pod:5877
30224 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30225 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30229 #: ../src/guestfs-actions.pod:5883
30230 msgid "guestfs_pvuuid"
30234 #: ../src/guestfs-actions.pod:5885
30238 " guestfs_pvuuid (guestfs_h *g,\n"
30239 " const char *device);\n"
30244 #: ../src/guestfs-actions.pod:5896
30245 msgid "guestfs_pwrite"
30249 #: ../src/guestfs-actions.pod:5898
30253 " guestfs_pwrite (guestfs_h *g,\n"
30254 " const char *path,\n"
30255 " const char *content,\n"
30256 " size_t content_size,\n"
30257 " int64_t offset);\n"
30262 #: ../src/guestfs-actions.pod:5914
30263 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30267 #: ../src/guestfs-actions.pod:5923
30268 msgid "guestfs_pwrite_device"
30272 #: ../src/guestfs-actions.pod:5925
30276 " guestfs_pwrite_device (guestfs_h *g,\n"
30277 " const char *device,\n"
30278 " const char *content,\n"
30279 " size_t content_size,\n"
30280 " int64_t offset);\n"
30285 #: ../src/guestfs-actions.pod:5940
30286 msgid "See also C<guestfs_pwrite>."
30290 #: ../src/guestfs-actions.pod:5947
30291 msgid "(Added in 1.5.20)"
30295 #: ../src/guestfs-actions.pod:5949
30296 msgid "guestfs_read_file"
30300 #: ../src/guestfs-actions.pod:5951
30304 " guestfs_read_file (guestfs_h *g,\n"
30305 " const char *path,\n"
30306 " size_t *size_r);\n"
30311 #: ../src/guestfs-actions.pod:5959
30313 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30314 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
30315 "function is limited in the total size of file that can be handled."
30319 #: ../src/guestfs-actions.pod:5971
30320 msgid "(Added in 1.0.63)"
30324 #: ../src/guestfs-actions.pod:5973
30325 msgid "guestfs_read_lines"
30329 #: ../src/guestfs-actions.pod:5975
30333 " guestfs_read_lines (guestfs_h *g,\n"
30334 " const char *path);\n"
30339 #: ../src/guestfs-actions.pod:5984
30341 "Note that this function cannot correctly handle binary files (specifically, "
30342 "files containing C<\\0> character which is treated as end of line). For "
30343 "those you need to use the C<guestfs_read_file> function which has a more "
30344 "complex interface."
30348 #: ../src/guestfs-actions.pod:5995
30349 msgid "guestfs_readdir"
30353 #: ../src/guestfs-actions.pod:5997
30356 " struct guestfs_dirent_list *\n"
30357 " guestfs_readdir (guestfs_h *g,\n"
30358 " const char *dir);\n"
30363 #: ../src/guestfs-actions.pod:6051
30365 "This function is primarily intended for use by programs. To get a simple "
30366 "list of names, use C<guestfs_ls>. To get a printable directory for human "
30367 "consumption, use C<guestfs_ll>."
30371 #: ../src/guestfs-actions.pod:6055
30373 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30374 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
30378 #: ../src/guestfs-actions.pod:6061
30379 msgid "guestfs_readlink"
30383 #: ../src/guestfs-actions.pod:6063
30387 " guestfs_readlink (guestfs_h *g,\n"
30388 " const char *path);\n"
30393 #: ../src/guestfs-actions.pod:6074
30394 msgid "guestfs_readlinklist"
30398 #: ../src/guestfs-actions.pod:6076
30402 " guestfs_readlinklist (guestfs_h *g,\n"
30403 " const char *path,\n"
30404 " char *const *names);\n"
30409 #: ../src/guestfs-actions.pod:6109
30410 msgid "guestfs_realpath"
30414 #: ../src/guestfs-actions.pod:6111
30418 " guestfs_realpath (guestfs_h *g,\n"
30419 " const char *path);\n"
30424 #: ../src/guestfs-actions.pod:6123
30425 msgid "guestfs_removexattr"
30429 #: ../src/guestfs-actions.pod:6125
30433 " guestfs_removexattr (guestfs_h *g,\n"
30434 " const char *xattr,\n"
30435 " const char *path);\n"
30440 #: ../src/guestfs-actions.pod:6133
30441 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30445 #: ../src/guestfs-actions.pod:6139
30446 msgid "guestfs_resize2fs"
30450 #: ../src/guestfs-actions.pod:6141
30454 " guestfs_resize2fs (guestfs_h *g,\n"
30455 " const char *device);\n"
30460 #: ../src/guestfs-actions.pod:6148
30462 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30463 "C<device> before calling this command. For unknown reasons C<resize2fs> "
30464 "sometimes gives an error about this and sometimes not. In any case, it is "
30465 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30469 #: ../src/guestfs-actions.pod:6158
30470 msgid "guestfs_resize2fs_M"
30474 #: ../src/guestfs-actions.pod:6160
30478 " guestfs_resize2fs_M (guestfs_h *g,\n"
30479 " const char *device);\n"
30484 #: ../src/guestfs-actions.pod:6164
30486 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30487 "resized to its minimum size. This works like the I<-M> option to the "
30488 "C<resize2fs> command."
30492 #: ../src/guestfs-actions.pod:6168
30494 "To get the resulting size of the filesystem you should call "
30495 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
30496 "These two numbers, multiplied together, give the resulting size of the "
30497 "minimal filesystem in bytes."
30501 #: ../src/guestfs-actions.pod:6177
30502 msgid "guestfs_resize2fs_size"
30506 #: ../src/guestfs-actions.pod:6179
30510 " guestfs_resize2fs_size (guestfs_h *g,\n"
30511 " const char *device,\n"
30512 " int64_t size);\n"
30517 #: ../src/guestfs-actions.pod:6184
30519 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30520 "to specify the new size (in bytes) explicitly."
30524 #: ../src/guestfs-actions.pod:6191
30529 #: ../src/guestfs-actions.pod:6193
30533 " guestfs_rm (guestfs_h *g,\n"
30534 " const char *path);\n"
30539 #: ../src/guestfs-actions.pod:6203
30540 msgid "guestfs_rm_rf"
30544 #: ../src/guestfs-actions.pod:6205
30548 " guestfs_rm_rf (guestfs_h *g,\n"
30549 " const char *path);\n"
30554 #: ../src/guestfs-actions.pod:6217
30555 msgid "guestfs_rmdir"
30559 #: ../src/guestfs-actions.pod:6219
30563 " guestfs_rmdir (guestfs_h *g,\n"
30564 " const char *path);\n"
30569 #: ../src/guestfs-actions.pod:6229
30570 msgid "guestfs_rmmountpoint"
30574 #: ../src/guestfs-actions.pod:6231
30578 " guestfs_rmmountpoint (guestfs_h *g,\n"
30579 " const char *exemptpath);\n"
30584 #: ../src/guestfs-actions.pod:6235
30586 "This calls removes a mountpoint that was previously created with "
30587 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
30591 #: ../src/guestfs-actions.pod:6243
30592 msgid "guestfs_scrub_device"
30596 #: ../src/guestfs-actions.pod:6245
30600 " guestfs_scrub_device (guestfs_h *g,\n"
30601 " const char *device);\n"
30606 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:6278
30607 #: ../src/guestfs-actions.pod:6297
30608 msgid "(Added in 1.0.52)"
30612 #: ../src/guestfs-actions.pod:6262
30613 msgid "guestfs_scrub_file"
30617 #: ../src/guestfs-actions.pod:6264
30621 " guestfs_scrub_file (guestfs_h *g,\n"
30622 " const char *file);\n"
30627 #: ../src/guestfs-actions.pod:6280
30628 msgid "guestfs_scrub_freespace"
30632 #: ../src/guestfs-actions.pod:6282
30636 " guestfs_scrub_freespace (guestfs_h *g,\n"
30637 " const char *dir);\n"
30642 #: ../src/guestfs-actions.pod:6286
30644 "This command creates the directory C<dir> and then fills it with files until "
30645 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30646 "and deletes them. The intention is to scrub any free space on the partition "
30647 "containing C<dir>."
30651 #: ../src/guestfs-actions.pod:6299
30652 msgid "guestfs_set_append"
30656 #: ../src/guestfs-actions.pod:6301
30660 " guestfs_set_append (guestfs_h *g,\n"
30661 " const char *append);\n"
30666 #: ../src/guestfs-actions.pod:6318
30667 msgid "guestfs_set_attach_method"
30671 #: ../src/guestfs-actions.pod:6320
30675 " guestfs_set_attach_method (guestfs_h *g,\n"
30676 " const char *attachmethod);\n"
30681 #: ../src/guestfs-actions.pod:6348
30682 msgid "guestfs_set_autosync"
30686 #: ../src/guestfs-actions.pod:6350
30690 " guestfs_set_autosync (guestfs_h *g,\n"
30691 " int autosync);\n"
30696 #: ../src/guestfs-actions.pod:6366
30697 msgid "guestfs_set_direct"
30701 #: ../src/guestfs-actions.pod:6368
30705 " guestfs_set_direct (guestfs_h *g,\n"
30711 #: ../src/guestfs-actions.pod:6376
30713 "One consequence of this is that log messages aren't caught by the library "
30714 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30719 #: ../src/guestfs-actions.pod:6389
30720 msgid "guestfs_set_e2label"
30724 #: ../src/guestfs-actions.pod:6391
30728 " guestfs_set_e2label (guestfs_h *g,\n"
30729 " const char *device,\n"
30730 " const char *label);\n"
30735 #: ../src/guestfs-actions.pod:6400
30737 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30738 "the existing label on a filesystem."
30742 #: ../src/guestfs-actions.pod:6407
30743 msgid "guestfs_set_e2uuid"
30747 #: ../src/guestfs-actions.pod:6409
30751 " guestfs_set_e2uuid (guestfs_h *g,\n"
30752 " const char *device,\n"
30753 " const char *uuid);\n"
30758 #: ../src/guestfs-actions.pod:6419
30760 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30761 "the existing UUID of a filesystem."
30765 #: ../src/guestfs-actions.pod:6426
30766 msgid "guestfs_set_memsize"
30770 #: ../src/guestfs-actions.pod:6428
30774 " guestfs_set_memsize (guestfs_h *g,\n"
30780 #: ../src/guestfs-actions.pod:6432
30782 "This sets the memory size in megabytes allocated to the qemu subprocess. "
30783 "This only has any effect if called before C<guestfs_launch>."
30787 #: ../src/guestfs-actions.pod:6447
30788 msgid "guestfs_set_network"
30792 #: ../src/guestfs-actions.pod:6449
30796 " guestfs_set_network (guestfs_h *g,\n"
30802 #: ../src/guestfs-actions.pod:6459
30804 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30809 #: ../src/guestfs-actions.pod:6466
30810 msgid "guestfs_set_path"
30814 #: ../src/guestfs-actions.pod:6468
30818 " guestfs_set_path (guestfs_h *g,\n"
30819 " const char *searchpath);\n"
30824 #: ../src/guestfs-actions.pod:6483
30825 msgid "guestfs_set_pgroup"
30829 #: ../src/guestfs-actions.pod:6485
30833 " guestfs_set_pgroup (guestfs_h *g,\n"
30839 #: ../src/guestfs-actions.pod:6502
30840 msgid "guestfs_set_qemu"
30844 #: ../src/guestfs-actions.pod:6504
30848 " guestfs_set_qemu (guestfs_h *g,\n"
30849 " const char *qemu);\n"
30854 #: ../src/guestfs-actions.pod:6530
30855 msgid "guestfs_set_recovery_proc"
30859 #: ../src/guestfs-actions.pod:6532
30863 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30864 " int recoveryproc);\n"
30869 #: ../src/guestfs-actions.pod:6536
30871 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30872 "not create a recovery process. The purpose of the recovery process is to "
30873 "stop runaway qemu processes in the case where the main program aborts "
30878 #: ../src/guestfs-actions.pod:6541
30880 "This only has any effect if called before C<guestfs_launch>, and the default "
30885 #: ../src/guestfs-actions.pod:6554
30886 msgid "guestfs_set_selinux"
30890 #: ../src/guestfs-actions.pod:6556
30894 " guestfs_set_selinux (guestfs_h *g,\n"
30900 #: ../src/guestfs-actions.pod:6573
30902 #| msgid "guestfs_ln_s"
30903 msgid "guestfs_set_smp"
30904 msgstr "guestfs_ln_s"
30907 #: ../src/guestfs-actions.pod:6575
30911 #| " guestfs_mkdir_p (guestfs_h *g,\n"
30912 #| " const char *path);\n"
30916 " guestfs_set_smp (guestfs_h *g,\n"
30921 " guestfs_mkdir_p (guestfs_h *g,\n"
30922 " const char *path);\n"
30926 #: ../src/guestfs-actions.pod:6583
30927 msgid "This function must be called before C<guestfs_launch>."
30931 #: ../src/guestfs-actions.pod:6587
30932 msgid "guestfs_set_trace"
30936 #: ../src/guestfs-actions.pod:6589
30940 " guestfs_set_trace (guestfs_h *g,\n"
30946 #: ../src/guestfs-actions.pod:6603
30948 "Trace messages are normally sent to C<stderr>, unless you register a "
30949 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30953 #: ../src/guestfs-actions.pod:6611
30954 msgid "guestfs_set_verbose"
30958 #: ../src/guestfs-actions.pod:6613
30962 " guestfs_set_verbose (guestfs_h *g,\n"
30968 #: ../src/guestfs-actions.pod:6622
30970 "Verbose messages are normally sent to C<stderr>, unless you register a "
30971 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30975 #: ../src/guestfs-actions.pod:6630
30976 msgid "guestfs_setcon"
30980 #: ../src/guestfs-actions.pod:6632
30984 " guestfs_setcon (guestfs_h *g,\n"
30985 " const char *context);\n"
30990 #: ../src/guestfs-actions.pod:6645
30991 msgid "guestfs_setxattr"
30995 #: ../src/guestfs-actions.pod:6647
30999 " guestfs_setxattr (guestfs_h *g,\n"
31000 " const char *xattr,\n"
31001 " const char *val,\n"
31003 " const char *path);\n"
31008 #: ../src/guestfs-actions.pod:6658
31009 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31013 #: ../src/guestfs-actions.pod:6664
31014 msgid "guestfs_sfdisk"
31018 #: ../src/guestfs-actions.pod:6666
31022 " guestfs_sfdisk (guestfs_h *g,\n"
31023 " const char *device,\n"
31027 " char *const *lines);\n"
31032 #: ../src/guestfs-actions.pod:6674 ../src/guestfs-actions.pod:6718
31033 #: ../src/guestfs-actions.pod:6752
31035 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31040 #: ../src/guestfs-actions.pod:6701
31042 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31046 #: ../src/guestfs-actions.pod:6711
31047 msgid "guestfs_sfdiskM"
31051 #: ../src/guestfs-actions.pod:6713
31055 " guestfs_sfdiskM (guestfs_h *g,\n"
31056 " const char *device,\n"
31057 " char *const *lines);\n"
31062 #: ../src/guestfs-actions.pod:6725
31064 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31065 "partition sizes are specified in megabytes only (rounded to the nearest "
31066 "cylinder) and you don't need to specify the cyls, heads and sectors "
31067 "parameters which were rarely if ever used anyway."
31071 #: ../src/guestfs-actions.pod:6731
31073 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31074 "C<guestfs_part_disk>"
31078 #: ../src/guestfs-actions.pod:6741
31079 msgid "guestfs_sfdisk_N"
31083 #: ../src/guestfs-actions.pod:6743
31087 " guestfs_sfdisk_N (guestfs_h *g,\n"
31088 " const char *device,\n"
31093 " const char *line);\n"
31098 #: ../src/guestfs-actions.pod:6762
31100 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
31101 "for the cyls/heads/sectors parameters."
31105 #: ../src/guestfs-actions.pod:6765
31106 msgid "See also: C<guestfs_part_add>"
31110 #: ../src/guestfs-actions.pod:6774
31111 msgid "guestfs_sfdisk_disk_geometry"
31115 #: ../src/guestfs-actions.pod:6776
31119 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31120 " const char *device);\n"
31125 #: ../src/guestfs-actions.pod:6780
31127 "This displays the disk geometry of C<device> read from the partition table. "
31128 "Especially in the case where the underlying block device has been resized, "
31129 "this can be different from the kernel's idea of the geometry (see "
31130 "C<guestfs_sfdisk_kernel_geometry>)."
31134 #: ../src/guestfs-actions.pod:6793
31135 msgid "guestfs_sfdisk_kernel_geometry"
31139 #: ../src/guestfs-actions.pod:6795
31143 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31144 " const char *device);\n"
31149 #: ../src/guestfs-actions.pod:6809
31150 msgid "guestfs_sfdisk_l"
31154 #: ../src/guestfs-actions.pod:6811
31158 " guestfs_sfdisk_l (guestfs_h *g,\n"
31159 " const char *device);\n"
31164 #: ../src/guestfs-actions.pod:6815
31166 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31171 #: ../src/guestfs-actions.pod:6826
31172 msgid "See also: C<guestfs_part_list>"
31176 #: ../src/guestfs-actions.pod:6833
31181 #: ../src/guestfs-actions.pod:6835
31185 " guestfs_sh (guestfs_h *g,\n"
31186 " const char *command);\n"
31191 #: ../src/guestfs-actions.pod:6842
31192 msgid "This is like C<guestfs_command>, but passes the command to:"
31196 #: ../src/guestfs-actions.pod:6850
31197 msgid "All the provisos about C<guestfs_command> apply to this call."
31201 #: ../src/guestfs-actions.pod:6857
31202 msgid "guestfs_sh_lines"
31206 #: ../src/guestfs-actions.pod:6859
31210 " guestfs_sh_lines (guestfs_h *g,\n"
31211 " const char *command);\n"
31216 #: ../src/guestfs-actions.pod:6863
31218 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31223 #: ../src/guestfs-actions.pod:6866
31224 msgid "See also: C<guestfs_command_lines>"
31228 #: ../src/guestfs-actions.pod:6874
31229 msgid "guestfs_sleep"
31233 #: ../src/guestfs-actions.pod:6876
31237 " guestfs_sleep (guestfs_h *g,\n"
31243 #: ../src/guestfs-actions.pod:6884
31244 msgid "(Added in 1.0.41)"
31248 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-structs.pod:109
31249 msgid "guestfs_stat"
31253 #: ../src/guestfs-actions.pod:6888
31256 " struct guestfs_stat *\n"
31257 " guestfs_stat (guestfs_h *g,\n"
31258 " const char *path);\n"
31263 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-structs.pod:135
31264 msgid "guestfs_statvfs"
31268 #: ../src/guestfs-actions.pod:6904
31271 " struct guestfs_statvfs *\n"
31272 " guestfs_statvfs (guestfs_h *g,\n"
31273 " const char *path);\n"
31278 #: ../src/guestfs-actions.pod:6914
31280 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31281 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
31285 #: ../src/guestfs-actions.pod:6920
31286 msgid "guestfs_strings"
31290 #: ../src/guestfs-actions.pod:6922
31294 " guestfs_strings (guestfs_h *g,\n"
31295 " const char *path);\n"
31300 #: ../src/guestfs-actions.pod:6938
31301 msgid "guestfs_strings_e"
31305 #: ../src/guestfs-actions.pod:6940
31309 " guestfs_strings_e (guestfs_h *g,\n"
31310 " const char *encoding,\n"
31311 " const char *path);\n"
31316 #: ../src/guestfs-actions.pod:6945
31318 "This is like the C<guestfs_strings> command, but allows you to specify the "
31319 "encoding of strings that are looked for in the source file C<path>."
31323 #: ../src/guestfs-actions.pod:6955
31325 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31326 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31330 #: ../src/guestfs-actions.pod:6993
31331 msgid "guestfs_swapoff_device"
31335 #: ../src/guestfs-actions.pod:6995
31339 " guestfs_swapoff_device (guestfs_h *g,\n"
31340 " const char *device);\n"
31345 #: ../src/guestfs-actions.pod:6999
31347 "This command disables the libguestfs appliance swap device or partition "
31348 "named C<device>. See C<guestfs_swapon_device>."
31352 #: ../src/guestfs-actions.pod:7007
31353 msgid "guestfs_swapoff_file"
31357 #: ../src/guestfs-actions.pod:7009
31361 " guestfs_swapoff_file (guestfs_h *g,\n"
31362 " const char *file);\n"
31367 #: ../src/guestfs-actions.pod:7019
31368 msgid "guestfs_swapoff_label"
31372 #: ../src/guestfs-actions.pod:7021
31376 " guestfs_swapoff_label (guestfs_h *g,\n"
31377 " const char *label);\n"
31382 #: ../src/guestfs-actions.pod:7032
31383 msgid "guestfs_swapoff_uuid"
31387 #: ../src/guestfs-actions.pod:7034
31391 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31392 " const char *uuid);\n"
31397 #: ../src/guestfs-actions.pod:7045
31398 msgid "guestfs_swapon_device"
31402 #: ../src/guestfs-actions.pod:7047
31406 " guestfs_swapon_device (guestfs_h *g,\n"
31407 " const char *device);\n"
31412 #: ../src/guestfs-actions.pod:7051
31414 "This command enables the libguestfs appliance to use the swap device or "
31415 "partition named C<device>. The increased memory is made available for all "
31416 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31420 #: ../src/guestfs-actions.pod:7067
31421 msgid "guestfs_swapon_file"
31425 #: ../src/guestfs-actions.pod:7069
31429 " guestfs_swapon_file (guestfs_h *g,\n"
31430 " const char *file);\n"
31435 #: ../src/guestfs-actions.pod:7073
31437 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
31442 #: ../src/guestfs-actions.pod:7080
31443 msgid "guestfs_swapon_label"
31447 #: ../src/guestfs-actions.pod:7082
31451 " guestfs_swapon_label (guestfs_h *g,\n"
31452 " const char *label);\n"
31457 #: ../src/guestfs-actions.pod:7086
31459 "This command enables swap to a labeled swap partition. See "
31460 "C<guestfs_swapon_device> for other notes."
31464 #: ../src/guestfs-actions.pod:7093
31465 msgid "guestfs_swapon_uuid"
31469 #: ../src/guestfs-actions.pod:7095
31473 " guestfs_swapon_uuid (guestfs_h *g,\n"
31474 " const char *uuid);\n"
31479 #: ../src/guestfs-actions.pod:7099
31481 "This command enables swap to a swap partition with the given UUID. See "
31482 "C<guestfs_swapon_device> for other notes."
31486 #: ../src/guestfs-actions.pod:7106
31487 msgid "guestfs_sync"
31491 #: ../src/guestfs-actions.pod:7108
31495 " guestfs_sync (guestfs_h *g);\n"
31500 #: ../src/guestfs-actions.pod:7121
31501 msgid "guestfs_tail"
31505 #: ../src/guestfs-actions.pod:7123
31509 " guestfs_tail (guestfs_h *g,\n"
31510 " const char *path);\n"
31515 #: ../src/guestfs-actions.pod:7139
31516 msgid "guestfs_tail_n"
31520 #: ../src/guestfs-actions.pod:7141
31524 " guestfs_tail_n (guestfs_h *g,\n"
31526 " const char *path);\n"
31531 #: ../src/guestfs-actions.pod:7163
31532 msgid "guestfs_tar_in"
31536 #: ../src/guestfs-actions.pod:7165
31540 " guestfs_tar_in (guestfs_h *g,\n"
31541 " const char *tarfile,\n"
31542 " const char *directory);\n"
31547 #: ../src/guestfs-actions.pod:7173
31549 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31553 #: ../src/guestfs-actions.pod:7178 ../src/guestfs-actions.pod:7195
31554 #: ../src/guestfs-actions.pod:7211 ../src/guestfs-actions.pod:7227
31555 msgid "(Added in 1.0.3)"
31559 #: ../src/guestfs-actions.pod:7180
31560 msgid "guestfs_tar_out"
31564 #: ../src/guestfs-actions.pod:7182
31568 " guestfs_tar_out (guestfs_h *g,\n"
31569 " const char *directory,\n"
31570 " const char *tarfile);\n"
31575 #: ../src/guestfs-actions.pod:7190
31577 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31578 "C<guestfs_txz_out>."
31582 #: ../src/guestfs-actions.pod:7197
31583 msgid "guestfs_tgz_in"
31587 #: ../src/guestfs-actions.pod:7199
31591 " guestfs_tgz_in (guestfs_h *g,\n"
31592 " const char *tarball,\n"
31593 " const char *directory);\n"
31598 #: ../src/guestfs-actions.pod:7207
31599 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31603 #: ../src/guestfs-actions.pod:7213
31604 msgid "guestfs_tgz_out"
31608 #: ../src/guestfs-actions.pod:7215
31612 " guestfs_tgz_out (guestfs_h *g,\n"
31613 " const char *directory,\n"
31614 " const char *tarball);\n"
31619 #: ../src/guestfs-actions.pod:7223
31620 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31624 #: ../src/guestfs-actions.pod:7229
31625 msgid "guestfs_touch"
31629 #: ../src/guestfs-actions.pod:7231
31633 " guestfs_touch (guestfs_h *g,\n"
31634 " const char *path);\n"
31639 #: ../src/guestfs-actions.pod:7246
31640 msgid "guestfs_truncate"
31644 #: ../src/guestfs-actions.pod:7248
31648 " guestfs_truncate (guestfs_h *g,\n"
31649 " const char *path);\n"
31654 #: ../src/guestfs-actions.pod:7259
31655 msgid "guestfs_truncate_size"
31659 #: ../src/guestfs-actions.pod:7261
31663 " guestfs_truncate_size (guestfs_h *g,\n"
31664 " const char *path,\n"
31665 " int64_t size);\n"
31670 #: ../src/guestfs-actions.pod:7269
31672 "If the current file size is less than C<size> then the file is extended to "
31673 "the required size with zero bytes. This creates a sparse file (ie. disk "
31674 "blocks are not allocated for the file until you write to it). To create a "
31675 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31679 #: ../src/guestfs-actions.pod:7279
31680 msgid "guestfs_tune2fs_l"
31684 #: ../src/guestfs-actions.pod:7281
31688 " guestfs_tune2fs_l (guestfs_h *g,\n"
31689 " const char *device);\n"
31694 #: ../src/guestfs-actions.pod:7301
31695 msgid "guestfs_txz_in"
31699 #: ../src/guestfs-actions.pod:7303
31703 " guestfs_txz_in (guestfs_h *g,\n"
31704 " const char *tarball,\n"
31705 " const char *directory);\n"
31710 #: ../src/guestfs-actions.pod:7315
31711 msgid "guestfs_txz_out"
31715 #: ../src/guestfs-actions.pod:7317
31719 " guestfs_txz_out (guestfs_h *g,\n"
31720 " const char *directory,\n"
31721 " const char *tarball);\n"
31726 #: ../src/guestfs-actions.pod:7329
31727 msgid "guestfs_umask"
31731 #: ../src/guestfs-actions.pod:7331
31735 " guestfs_umask (guestfs_h *g,\n"
31741 #: ../src/guestfs-actions.pod:7347
31743 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31744 "C<guestfs_mkdir>."
31748 #: ../src/guestfs-actions.pod:7356
31749 msgid "guestfs_umount"
31753 #: ../src/guestfs-actions.pod:7358
31757 " guestfs_umount (guestfs_h *g,\n"
31758 " const char *pathordevice);\n"
31763 #: ../src/guestfs-actions.pod:7370
31764 msgid "guestfs_umount_all"
31768 #: ../src/guestfs-actions.pod:7372
31772 " guestfs_umount_all (guestfs_h *g);\n"
31777 #: ../src/guestfs-actions.pod:7383
31778 msgid "guestfs_upload"
31782 #: ../src/guestfs-actions.pod:7385
31786 " guestfs_upload (guestfs_h *g,\n"
31787 " const char *filename,\n"
31788 " const char *remotefilename);\n"
31793 #: ../src/guestfs-actions.pod:7395
31794 msgid "See also C<guestfs_download>."
31798 #: ../src/guestfs-actions.pod:7406
31799 msgid "guestfs_upload_offset"
31803 #: ../src/guestfs-actions.pod:7408
31807 " guestfs_upload_offset (guestfs_h *g,\n"
31808 " const char *filename,\n"
31809 " const char *remotefilename,\n"
31810 " int64_t offset);\n"
31815 #: ../src/guestfs-actions.pod:7424
31817 "Note that there is no limit on the amount of data that can be uploaded with "
31818 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31819 "full amount unless an error occurs."
31823 #: ../src/guestfs-actions.pod:7429
31824 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31828 #: ../src/guestfs-actions.pod:7440
31829 msgid "guestfs_utimens"
31833 #: ../src/guestfs-actions.pod:7442
31837 " guestfs_utimens (guestfs_h *g,\n"
31838 " const char *path,\n"
31839 " int64_t atsecs,\n"
31840 " int64_t atnsecs,\n"
31841 " int64_t mtsecs,\n"
31842 " int64_t mtnsecs);\n"
31847 #: ../src/guestfs-actions.pod:7471 ../src/guestfs-structs.pod:175
31848 msgid "guestfs_version"
31852 #: ../src/guestfs-actions.pod:7473
31855 " struct guestfs_version *\n"
31856 " guestfs_version (guestfs_h *g);\n"
31861 #: ../src/guestfs-actions.pod:7501
31863 "I<Note:> Don't use this call to test for availability of features. In "
31864 "enterprise distributions we backport features from later versions into "
31865 "earlier versions, making this an unreliable way to test for features. Use "
31866 "C<guestfs_available> instead."
31870 #: ../src/guestfs-actions.pod:7507
31872 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31873 "error. I<The caller must call C<guestfs_free_version> after use>."
31877 #: ../src/guestfs-actions.pod:7511
31878 msgid "(Added in 1.0.58)"
31882 #: ../src/guestfs-actions.pod:7513
31883 msgid "guestfs_vfs_label"
31887 #: ../src/guestfs-actions.pod:7515
31891 " guestfs_vfs_label (guestfs_h *g,\n"
31892 " const char *device);\n"
31897 #: ../src/guestfs-actions.pod:7524
31898 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31902 #: ../src/guestfs-actions.pod:7529 ../src/guestfs-actions.pod:7566
31903 msgid "(Added in 1.3.18)"
31907 #: ../src/guestfs-actions.pod:7531
31908 msgid "guestfs_vfs_type"
31912 #: ../src/guestfs-actions.pod:7533
31916 " guestfs_vfs_type (guestfs_h *g,\n"
31917 " const char *device);\n"
31922 #: ../src/guestfs-actions.pod:7550
31923 msgid "guestfs_vfs_uuid"
31927 #: ../src/guestfs-actions.pod:7552
31931 " guestfs_vfs_uuid (guestfs_h *g,\n"
31932 " const char *device);\n"
31937 #: ../src/guestfs-actions.pod:7561
31938 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31942 #: ../src/guestfs-actions.pod:7568
31943 msgid "guestfs_vg_activate"
31947 #: ../src/guestfs-actions.pod:7570
31951 " guestfs_vg_activate (guestfs_h *g,\n"
31953 " char *const *volgroups);\n"
31958 #: ../src/guestfs-actions.pod:7587
31959 msgid "guestfs_vg_activate_all"
31963 #: ../src/guestfs-actions.pod:7589
31967 " guestfs_vg_activate_all (guestfs_h *g,\n"
31968 " int activate);\n"
31973 #: ../src/guestfs-actions.pod:7602
31974 msgid "guestfs_vgcreate"
31978 #: ../src/guestfs-actions.pod:7604
31982 " guestfs_vgcreate (guestfs_h *g,\n"
31983 " const char *volgroup,\n"
31984 " char *const *physvols);\n"
31989 #: ../src/guestfs-actions.pod:7616
31990 msgid "guestfs_vglvuuids"
31994 #: ../src/guestfs-actions.pod:7618
31998 " guestfs_vglvuuids (guestfs_h *g,\n"
31999 " const char *vgname);\n"
32004 #: ../src/guestfs-actions.pod:7625
32006 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32007 "associate logical volumes and volume groups."
32011 #: ../src/guestfs-actions.pod:7628
32012 msgid "See also C<guestfs_vgpvuuids>."
32016 #: ../src/guestfs-actions.pod:7636
32017 msgid "guestfs_vgpvuuids"
32021 #: ../src/guestfs-actions.pod:7638
32025 " guestfs_vgpvuuids (guestfs_h *g,\n"
32026 " const char *vgname);\n"
32031 #: ../src/guestfs-actions.pod:7645
32033 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32034 "associate physical volumes and volume groups."
32038 #: ../src/guestfs-actions.pod:7648
32039 msgid "See also C<guestfs_vglvuuids>."
32043 #: ../src/guestfs-actions.pod:7656
32044 msgid "guestfs_vgremove"
32048 #: ../src/guestfs-actions.pod:7658
32052 " guestfs_vgremove (guestfs_h *g,\n"
32053 " const char *vgname);\n"
32058 #: ../src/guestfs-actions.pod:7671
32059 msgid "guestfs_vgrename"
32063 #: ../src/guestfs-actions.pod:7673
32067 " guestfs_vgrename (guestfs_h *g,\n"
32068 " const char *volgroup,\n"
32069 " const char *newvolgroup);\n"
32074 #: ../src/guestfs-actions.pod:7684
32075 msgid "guestfs_vgs"
32079 #: ../src/guestfs-actions.pod:7686
32083 " guestfs_vgs (guestfs_h *g);\n"
32088 #: ../src/guestfs-actions.pod:7695
32089 msgid "See also C<guestfs_vgs_full>."
32093 #: ../src/guestfs-actions.pod:7703
32094 msgid "guestfs_vgs_full"
32098 #: ../src/guestfs-actions.pod:7705
32101 " struct guestfs_lvm_vg_list *\n"
32102 " guestfs_vgs_full (guestfs_h *g);\n"
32107 #: ../src/guestfs-actions.pod:7711
32109 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32110 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32114 #: ../src/guestfs-actions.pod:7717
32115 msgid "guestfs_vgscan"
32119 #: ../src/guestfs-actions.pod:7719
32123 " guestfs_vgscan (guestfs_h *g);\n"
32128 #: ../src/guestfs-actions.pod:7729
32129 msgid "guestfs_vguuid"
32133 #: ../src/guestfs-actions.pod:7731
32137 " guestfs_vguuid (guestfs_h *g,\n"
32138 " const char *vgname);\n"
32143 #: ../src/guestfs-actions.pod:7742
32144 msgid "guestfs_wait_ready"
32148 #: ../src/guestfs-actions.pod:7744
32152 " guestfs_wait_ready (guestfs_h *g);\n"
32157 #: ../src/guestfs-actions.pod:7747
32159 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32164 #: ../src/guestfs-actions.pod:7754
32165 msgid "This function is a no op."
32169 #: ../src/guestfs-actions.pod:7756
32171 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32172 "calling C<guestfs_launch> to wait for the launch to complete. However this "
32173 "is no longer necessary because C<guestfs_launch> now does the waiting."
32177 #: ../src/guestfs-actions.pod:7761
32179 "If you see any calls to this function in code then you can just remove them, "
32180 "unless you want to retain compatibility with older versions of the API."
32184 #: ../src/guestfs-actions.pod:7769
32185 msgid "guestfs_wc_c"
32189 #: ../src/guestfs-actions.pod:7771
32193 " guestfs_wc_c (guestfs_h *g,\n"
32194 " const char *path);\n"
32199 #: ../src/guestfs-actions.pod:7782
32200 msgid "guestfs_wc_l"
32204 #: ../src/guestfs-actions.pod:7784
32208 " guestfs_wc_l (guestfs_h *g,\n"
32209 " const char *path);\n"
32214 #: ../src/guestfs-actions.pod:7795
32215 msgid "guestfs_wc_w"
32219 #: ../src/guestfs-actions.pod:7797
32223 " guestfs_wc_w (guestfs_h *g,\n"
32224 " const char *path);\n"
32229 #: ../src/guestfs-actions.pod:7808
32230 msgid "guestfs_write"
32234 #: ../src/guestfs-actions.pod:7810
32238 " guestfs_write (guestfs_h *g,\n"
32239 " const char *path,\n"
32240 " const char *content,\n"
32241 " size_t content_size);\n"
32246 #: ../src/guestfs-actions.pod:7819
32247 msgid "See also C<guestfs_write_append>."
32251 #: ../src/guestfs-actions.pod:7828
32252 msgid "guestfs_write_append"
32256 #: ../src/guestfs-actions.pod:7830
32260 " guestfs_write_append (guestfs_h *g,\n"
32261 " const char *path,\n"
32262 " const char *content,\n"
32263 " size_t content_size);\n"
32268 #: ../src/guestfs-actions.pod:7839
32269 msgid "See also C<guestfs_write>."
32273 #: ../src/guestfs-actions.pod:7848
32274 msgid "guestfs_write_file"
32275 msgstr "guestfs_write_file"
32278 #: ../src/guestfs-actions.pod:7850
32282 " guestfs_write_file (guestfs_h *g,\n"
32283 " const char *path,\n"
32284 " const char *content,\n"
32289 " guestfs_write_file (guestfs_h *g,\n"
32290 " const char *path,\n"
32291 " const char *content,\n"
32296 #: ../src/guestfs-actions.pod:7856
32298 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32303 #: ../src/guestfs-actions.pod:7881
32304 msgid "guestfs_zegrep"
32305 msgstr "guestfs_zegrep"
32308 #: ../src/guestfs-actions.pod:7883
32312 " guestfs_zegrep (guestfs_h *g,\n"
32313 " const char *regex,\n"
32314 " const char *path);\n"
32318 " guestfs_zegrep (guestfs_h *g,\n"
32319 " const char *regex,\n"
32320 " const char *path);\n"
32324 #: ../src/guestfs-actions.pod:7900
32325 msgid "guestfs_zegrepi"
32326 msgstr "guestfs_zegrepi"
32329 #: ../src/guestfs-actions.pod:7902
32333 " guestfs_zegrepi (guestfs_h *g,\n"
32334 " const char *regex,\n"
32335 " const char *path);\n"
32339 " guestfs_zegrepi (guestfs_h *g,\n"
32340 " const char *regex,\n"
32341 " const char *path);\n"
32345 #: ../src/guestfs-actions.pod:7919
32346 msgid "guestfs_zero"
32347 msgstr "guestfs_zero"
32350 #: ../src/guestfs-actions.pod:7921
32354 " guestfs_zero (guestfs_h *g,\n"
32355 " const char *device);\n"
32359 " guestfs_zero (guestfs_h *g,\n"
32360 " const char *device);\n"
32364 #: ../src/guestfs-actions.pod:7935
32366 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32367 "C<guestfs_is_zero_device>"
32371 #: ../src/guestfs-actions.pod:7947
32372 msgid "guestfs_zero_device"
32373 msgstr "guestfs_zero_device"
32376 #: ../src/guestfs-actions.pod:7949
32380 " guestfs_zero_device (guestfs_h *g,\n"
32381 " const char *device);\n"
32385 " guestfs_zero_device (guestfs_h *g,\n"
32386 " const char *device);\n"
32390 #: ../src/guestfs-actions.pod:7953
32392 "This command writes zeroes over the entire C<device>. Compare with "
32393 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32397 #: ../src/guestfs-actions.pod:7971
32398 msgid "(Added in 1.3.1)"
32399 msgstr "(Додано у 1.3.1)"
32402 #: ../src/guestfs-actions.pod:7973
32403 msgid "guestfs_zerofree"
32404 msgstr "guestfs_zerofree"
32407 #: ../src/guestfs-actions.pod:7975
32411 " guestfs_zerofree (guestfs_h *g,\n"
32412 " const char *device);\n"
32416 " guestfs_zerofree (guestfs_h *g,\n"
32417 " const char *device);\n"
32421 #: ../src/guestfs-actions.pod:7994
32422 msgid "guestfs_zfgrep"
32423 msgstr "guestfs_zfgrep"
32426 #: ../src/guestfs-actions.pod:7996
32430 " guestfs_zfgrep (guestfs_h *g,\n"
32431 " const char *pattern,\n"
32432 " const char *path);\n"
32436 " guestfs_zfgrep (guestfs_h *g,\n"
32437 " const char *pattern,\n"
32438 " const char *path);\n"
32442 #: ../src/guestfs-actions.pod:8013
32443 msgid "guestfs_zfgrepi"
32444 msgstr "guestfs_zfgrepi"
32447 #: ../src/guestfs-actions.pod:8015
32451 " guestfs_zfgrepi (guestfs_h *g,\n"
32452 " const char *pattern,\n"
32453 " const char *path);\n"
32457 " guestfs_zfgrepi (guestfs_h *g,\n"
32458 " const char *pattern,\n"
32459 " const char *path);\n"
32463 #: ../src/guestfs-actions.pod:8032
32464 msgid "guestfs_zfile"
32465 msgstr "guestfs_zfile"
32468 #: ../src/guestfs-actions.pod:8034
32472 " guestfs_zfile (guestfs_h *g,\n"
32473 " const char *meth,\n"
32474 " const char *path);\n"
32478 " guestfs_zfile (guestfs_h *g,\n"
32479 " const char *meth,\n"
32480 " const char *path);\n"
32484 #: ../src/guestfs-actions.pod:8039
32486 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32491 #: ../src/guestfs-actions.pod:8051
32493 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32498 #: ../src/guestfs-actions.pod:8059
32499 msgid "guestfs_zgrep"
32500 msgstr "guestfs_zgrep"
32503 #: ../src/guestfs-actions.pod:8061
32507 " guestfs_zgrep (guestfs_h *g,\n"
32508 " const char *regex,\n"
32509 " const char *path);\n"
32513 " guestfs_zgrep (guestfs_h *g,\n"
32514 " const char *regex,\n"
32515 " const char *path);\n"
32519 #: ../src/guestfs-actions.pod:8078
32520 msgid "guestfs_zgrepi"
32521 msgstr "guestfs_zgrepi"
32524 #: ../src/guestfs-actions.pod:8080
32528 " guestfs_zgrepi (guestfs_h *g,\n"
32529 " const char *regex,\n"
32530 " const char *path);\n"
32534 " guestfs_zgrepi (guestfs_h *g,\n"
32535 " const char *regex,\n"
32536 " const char *path);\n"
32540 #: ../src/guestfs-availability.pod:3
32545 #: ../src/guestfs-availability.pod:5
32547 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32548 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32549 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32550 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32551 "L</guestfs_aug_save> L</guestfs_aug_set>"
32555 #: ../src/guestfs-availability.pod:21
32560 #: ../src/guestfs-availability.pod:23
32561 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32565 #: ../src/guestfs-availability.pod:26
32567 #| msgid "B<scrub>"
32572 #: ../src/guestfs-availability.pod:28
32573 msgid "The following functions: L</guestfs_grub_install>"
32577 #: ../src/guestfs-availability.pod:31
32579 msgstr "B<inotify>"
32582 #: ../src/guestfs-availability.pod:33
32584 "The following functions: L</guestfs_inotify_add_watch> L</"
32585 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32586 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32590 #: ../src/guestfs-availability.pod:41
32591 msgid "B<linuxfsuuid>"
32592 msgstr "B<linuxfsuuid>"
32595 #: ../src/guestfs-availability.pod:43
32597 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32598 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32602 #: ../src/guestfs-availability.pod:50
32603 msgid "B<linuxmodules>"
32604 msgstr "B<linuxmodules>"
32607 #: ../src/guestfs-availability.pod:52
32608 msgid "The following functions: L</guestfs_modprobe>"
32612 #: ../src/guestfs-availability.pod:55
32613 msgid "B<linuxxattrs>"
32614 msgstr "B<linuxxattrs>"
32617 #: ../src/guestfs-availability.pod:57
32619 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32620 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32621 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32622 "guestfs_setxattr>"
32626 #: ../src/guestfs-availability.pod:68
32631 #: ../src/guestfs-availability.pod:70
32633 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32634 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32635 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32639 #: ../src/guestfs-availability.pod:79
32644 #: ../src/guestfs-availability.pod:81
32646 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32647 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32648 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32649 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32650 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32651 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32652 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32656 #: ../src/guestfs-availability.pod:104
32661 #: ../src/guestfs-availability.pod:106
32663 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32664 "guestfs_mknod_b> L</guestfs_mknod_c>"
32668 #: ../src/guestfs-availability.pod:112
32673 #: ../src/guestfs-availability.pod:114
32674 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32678 #: ../src/guestfs-availability.pod:117
32679 msgid "B<ntfsprogs>"
32680 msgstr "B<ntfsprogs>"
32683 #: ../src/guestfs-availability.pod:119
32685 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32686 "L</guestfs_ntfsresize_size>"
32690 #: ../src/guestfs-availability.pod:124
32691 msgid "B<realpath>"
32692 msgstr "B<realpath>"
32695 #: ../src/guestfs-availability.pod:126
32696 msgid "The following functions: L</guestfs_realpath>"
32700 #: ../src/guestfs-availability.pod:129
32705 #: ../src/guestfs-availability.pod:131
32707 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
32708 "guestfs_scrub_freespace>"
32712 #: ../src/guestfs-availability.pod:136
32714 msgstr "B<selinux>"
32717 #: ../src/guestfs-availability.pod:138
32718 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32722 #: ../src/guestfs-availability.pod:142
32727 #: ../src/guestfs-availability.pod:144
32728 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32732 #: ../src/guestfs-availability.pod:148
32733 msgid "B<zerofree>"
32734 msgstr "B<zerofree>"
32737 #: ../src/guestfs-availability.pod:150
32738 msgid "The following functions: L</guestfs_zerofree>"
32742 #: ../src/guestfs-structs.pod:1
32743 msgid "guestfs_int_bool"
32747 #: ../src/guestfs-structs.pod:3
32750 " struct guestfs_int_bool {\n"
32758 #: ../src/guestfs-structs.pod:8
32761 " struct guestfs_int_bool_list {\n"
32762 " uint32_t len; /* Number of elements in list. */\n"
32763 " struct guestfs_int_bool *val; /* Elements. */\n"
32769 #: ../src/guestfs-structs.pod:13
32772 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32773 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32778 #: ../src/guestfs-structs.pod:16
32779 msgid "guestfs_lvm_pv"
32783 #: ../src/guestfs-structs.pod:18
32786 " struct guestfs_lvm_pv {\n"
32787 " char *pv_name;\n"
32788 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32789 " char pv_uuid[32];\n"
32791 " uint64_t pv_size;\n"
32792 " uint64_t dev_size;\n"
32793 " uint64_t pv_free;\n"
32794 " uint64_t pv_used;\n"
32795 " char *pv_attr;\n"
32796 " int64_t pv_pe_count;\n"
32797 " int64_t pv_pe_alloc_count;\n"
32798 " char *pv_tags;\n"
32799 " uint64_t pe_start;\n"
32800 " int64_t pv_mda_count;\n"
32801 " uint64_t pv_mda_free;\n"
32807 #: ../src/guestfs-structs.pod:36
32810 " struct guestfs_lvm_pv_list {\n"
32811 " uint32_t len; /* Number of elements in list. */\n"
32812 " struct guestfs_lvm_pv *val; /* Elements. */\n"
32818 #: ../src/guestfs-structs.pod:41
32821 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32822 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32827 #: ../src/guestfs-structs.pod:44
32828 msgid "guestfs_lvm_vg"
32832 #: ../src/guestfs-structs.pod:46
32835 " struct guestfs_lvm_vg {\n"
32836 " char *vg_name;\n"
32837 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32838 " char vg_uuid[32];\n"
32840 " char *vg_attr;\n"
32841 " uint64_t vg_size;\n"
32842 " uint64_t vg_free;\n"
32843 " char *vg_sysid;\n"
32844 " uint64_t vg_extent_size;\n"
32845 " int64_t vg_extent_count;\n"
32846 " int64_t vg_free_count;\n"
32847 " int64_t max_lv;\n"
32848 " int64_t max_pv;\n"
32849 " int64_t pv_count;\n"
32850 " int64_t lv_count;\n"
32851 " int64_t snap_count;\n"
32852 " int64_t vg_seqno;\n"
32853 " char *vg_tags;\n"
32854 " int64_t vg_mda_count;\n"
32855 " uint64_t vg_mda_free;\n"
32861 #: ../src/guestfs-structs.pod:69
32864 " struct guestfs_lvm_vg_list {\n"
32865 " uint32_t len; /* Number of elements in list. */\n"
32866 " struct guestfs_lvm_vg *val; /* Elements. */\n"
32872 #: ../src/guestfs-structs.pod:74
32875 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32876 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32881 #: ../src/guestfs-structs.pod:77
32882 msgid "guestfs_lvm_lv"
32886 #: ../src/guestfs-structs.pod:79
32889 " struct guestfs_lvm_lv {\n"
32890 " char *lv_name;\n"
32891 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32892 " char lv_uuid[32];\n"
32893 " char *lv_attr;\n"
32894 " int64_t lv_major;\n"
32895 " int64_t lv_minor;\n"
32896 " int64_t lv_kernel_major;\n"
32897 " int64_t lv_kernel_minor;\n"
32898 " uint64_t lv_size;\n"
32899 " int64_t seg_count;\n"
32901 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32902 " float snap_percent;\n"
32903 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32904 " float copy_percent;\n"
32905 " char *move_pv;\n"
32906 " char *lv_tags;\n"
32907 " char *mirror_log;\n"
32908 " char *modules;\n"
32914 #: ../src/guestfs-structs.pod:101
32917 " struct guestfs_lvm_lv_list {\n"
32918 " uint32_t len; /* Number of elements in list. */\n"
32919 " struct guestfs_lvm_lv *val; /* Elements. */\n"
32925 #: ../src/guestfs-structs.pod:106
32928 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32929 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32934 #: ../src/guestfs-structs.pod:111
32937 " struct guestfs_stat {\n"
32941 " int64_t nlink;\n"
32946 " int64_t blksize;\n"
32947 " int64_t blocks;\n"
32948 " int64_t atime;\n"
32949 " int64_t mtime;\n"
32950 " int64_t ctime;\n"
32956 #: ../src/guestfs-structs.pod:127
32959 " struct guestfs_stat_list {\n"
32960 " uint32_t len; /* Number of elements in list. */\n"
32961 " struct guestfs_stat *val; /* Elements. */\n"
32967 #: ../src/guestfs-structs.pod:132
32970 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32971 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32976 #: ../src/guestfs-structs.pod:137
32979 " struct guestfs_statvfs {\n"
32980 " int64_t bsize;\n"
32981 " int64_t frsize;\n"
32982 " int64_t blocks;\n"
32983 " int64_t bfree;\n"
32984 " int64_t bavail;\n"
32985 " int64_t files;\n"
32986 " int64_t ffree;\n"
32987 " int64_t favail;\n"
32990 " int64_t namemax;\n"
32996 #: ../src/guestfs-structs.pod:151
32999 " struct guestfs_statvfs_list {\n"
33000 " uint32_t len; /* Number of elements in list. */\n"
33001 " struct guestfs_statvfs *val; /* Elements. */\n"
33007 #: ../src/guestfs-structs.pod:156
33010 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33011 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33016 #: ../src/guestfs-structs.pod:159
33017 msgid "guestfs_dirent"
33021 #: ../src/guestfs-structs.pod:161
33024 " struct guestfs_dirent {\n"
33033 #: ../src/guestfs-structs.pod:167
33036 " struct guestfs_dirent_list {\n"
33037 " uint32_t len; /* Number of elements in list. */\n"
33038 " struct guestfs_dirent *val; /* Elements. */\n"
33044 #: ../src/guestfs-structs.pod:172
33047 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33048 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33053 #: ../src/guestfs-structs.pod:177
33056 " struct guestfs_version {\n"
33057 " int64_t major;\n"
33058 " int64_t minor;\n"
33059 " int64_t release;\n"
33066 #: ../src/guestfs-structs.pod:184
33069 " struct guestfs_version_list {\n"
33070 " uint32_t len; /* Number of elements in list. */\n"
33071 " struct guestfs_version *val; /* Elements. */\n"
33077 #: ../src/guestfs-structs.pod:189
33080 " void guestfs_free_version (struct guestfs_free_version *);\n"
33081 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33086 #: ../src/guestfs-structs.pod:192
33087 msgid "guestfs_xattr"
33091 #: ../src/guestfs-structs.pod:194
33094 " struct guestfs_xattr {\n"
33095 " char *attrname;\n"
33096 " /* The next two fields describe a byte array. */\n"
33097 " uint32_t attrval_len;\n"
33098 " char *attrval;\n"
33104 #: ../src/guestfs-structs.pod:201
33107 " struct guestfs_xattr_list {\n"
33108 " uint32_t len; /* Number of elements in list. */\n"
33109 " struct guestfs_xattr *val; /* Elements. */\n"
33115 #: ../src/guestfs-structs.pod:206
33118 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33119 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33124 #: ../src/guestfs-structs.pod:209
33125 msgid "guestfs_inotify_event"
33129 #: ../src/guestfs-structs.pod:211
33132 " struct guestfs_inotify_event {\n"
33133 " int64_t in_wd;\n"
33134 " uint32_t in_mask;\n"
33135 " uint32_t in_cookie;\n"
33136 " char *in_name;\n"
33142 #: ../src/guestfs-structs.pod:218
33145 " struct guestfs_inotify_event_list {\n"
33146 " uint32_t len; /* Number of elements in list. */\n"
33147 " struct guestfs_inotify_event *val; /* Elements. */\n"
33153 #: ../src/guestfs-structs.pod:223
33156 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33157 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33162 #: ../src/guestfs-structs.pod:226
33163 msgid "guestfs_partition"
33167 #: ../src/guestfs-structs.pod:228
33170 " struct guestfs_partition {\n"
33171 " int32_t part_num;\n"
33172 " uint64_t part_start;\n"
33173 " uint64_t part_end;\n"
33174 " uint64_t part_size;\n"
33180 #: ../src/guestfs-structs.pod:235
33183 " struct guestfs_partition_list {\n"
33184 " uint32_t len; /* Number of elements in list. */\n"
33185 " struct guestfs_partition *val; /* Elements. */\n"
33191 #: ../src/guestfs-structs.pod:240
33194 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33195 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33200 #: ../src/guestfs-structs.pod:243
33201 msgid "guestfs_application"
33205 #: ../src/guestfs-structs.pod:245
33208 " struct guestfs_application {\n"
33209 " char *app_name;\n"
33210 " char *app_display_name;\n"
33211 " int32_t app_epoch;\n"
33212 " char *app_version;\n"
33213 " char *app_release;\n"
33214 " char *app_install_path;\n"
33215 " char *app_trans_path;\n"
33216 " char *app_publisher;\n"
33217 " char *app_url;\n"
33218 " char *app_source_package;\n"
33219 " char *app_summary;\n"
33220 " char *app_description;\n"
33226 #: ../src/guestfs-structs.pod:260
33229 " struct guestfs_application_list {\n"
33230 " uint32_t len; /* Number of elements in list. */\n"
33231 " struct guestfs_application *val; /* Elements. */\n"
33237 #: ../src/guestfs-structs.pod:265
33240 " void guestfs_free_application (struct guestfs_free_application *);\n"
33241 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33246 #: ../src/guestfs.pod:5
33247 msgid "guestfs - Library for accessing and modifying virtual machine images"
33249 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
33253 #: ../src/guestfs.pod:11
33256 " guestfs_h *g = guestfs_create ();\n"
33257 " guestfs_add_drive (g, \"guest.img\");\n"
33258 " guestfs_launch (g);\n"
33259 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33260 " guestfs_touch (g, \"/hello\");\n"
33261 " guestfs_umount (g, \"/\");\n"
33262 " guestfs_close (g);\n"
33265 " guestfs_h *g = guestfs_create ();\n"
33266 " guestfs_add_drive (g, \"guest.img\");\n"
33267 " guestfs_launch (g);\n"
33268 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33269 " guestfs_touch (g, \"/hello\");\n"
33270 " guestfs_umount (g, \"/\");\n"
33271 " guestfs_close (g);\n"
33275 #: ../src/guestfs.pod:25
33277 "Libguestfs is a library for accessing and modifying guest disk images. "
33278 "Amongst the things this is good for: making batch configuration changes to "
33279 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33280 "between virtualization systems (see also: virt-p2v), performing partial "
33281 "backups, performing partial guest clones, cloning guests and changing "
33282 "registry/UUID/hostname info, and much else besides."
33286 #: ../src/guestfs.pod:33
33288 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33289 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33290 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33295 #: ../src/guestfs.pod:38
33297 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33298 "what filesystem is in each LV, etc.). It can also run commands in the "
33299 "context of the guest. Also you can access filesystems over FUSE."
33303 #: ../src/guestfs.pod:43
33305 "Libguestfs is a library that can be linked with C and C++ management "
33306 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33307 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
33312 #: ../src/guestfs.pod:48
33314 "You don't need to be root to use libguestfs, although obviously you do need "
33315 "enough permissions to access the disk images."
33319 #: ../src/guestfs.pod:51
33321 "Libguestfs is a large API because it can do many things. For a gentle "
33322 "introduction, please read the L</API OVERVIEW> section next."
33326 #: ../src/guestfs.pod:54
33328 "There are also some example programs in the L<guestfs-examples(3)> manual "
33333 #: ../src/guestfs.pod:57
33334 msgid "API OVERVIEW"
33338 #: ../src/guestfs.pod:59
33340 "This section provides a gentler overview of the libguestfs API. We also try "
33341 "to group API calls together, where that may not be obvious from reading "
33342 "about the individual calls in the main section of this manual."
33346 #: ../src/guestfs.pod:64
33351 #: ../src/guestfs.pod:66
33353 "Before you can use libguestfs calls, you have to create a handle. Then you "
33354 "must add at least one disk image to the handle, followed by launching the "
33355 "handle, then performing whatever operations you want, and finally closing "
33356 "the handle. By convention we use the single letter C<g> for the name of the "
33357 "handle variable, although of course you can use any name you want."
33361 #: ../src/guestfs.pod:73
33362 msgid "The general structure of all libguestfs-using programs looks like this:"
33366 #: ../src/guestfs.pod:76
33369 " guestfs_h *g = guestfs_create ();\n"
33372 " guestfs_h *g = guestfs_create ();\n"
33376 #: ../src/guestfs.pod:78
33379 " /* Call guestfs_add_drive additional times if there are\n"
33380 " * multiple disk images.\n"
33382 " guestfs_add_drive (g, \"guest.img\");\n"
33387 #: ../src/guestfs.pod:83
33390 " /* Most manipulation calls won't work until you've launched\n"
33391 " * the handle 'g'. You have to do this _after_ adding drives\n"
33392 " * and _before_ other commands.\n"
33394 " guestfs_launch (g);\n"
33399 #: ../src/guestfs.pod:89
33402 " /* Now you can examine what partitions, LVs etc are available.\n"
33404 " char **partitions = guestfs_list_partitions (g);\n"
33405 " char **logvols = guestfs_lvs (g);\n"
33408 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
33410 " char **partitions = guestfs_list_partitions (g);\n"
33411 " char **logvols = guestfs_lvs (g);\n"
33415 #: ../src/guestfs.pod:94
33418 " /* To access a filesystem in the image, you must mount it.\n"
33420 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33423 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
33425 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33429 #: ../src/guestfs.pod:98
33432 " /* Now you can perform filesystem actions on the guest\n"
33435 " guestfs_touch (g, \"/hello\");\n"
33440 #: ../src/guestfs.pod:103
33443 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
33444 " * it is done automatically when you close the handle. See\n"
33445 " * discussion of autosync in this page.\n"
33447 " guestfs_sync (g);\n"
33452 #: ../src/guestfs.pod:109
33455 " /* Close the handle 'g'. */\n"
33456 " guestfs_close (g);\n"
33459 " /* Закрити дескриптор 'g'. */\n"
33460 " guestfs_close (g);\n"
33464 #: ../src/guestfs.pod:112
33466 "The code above doesn't include any error checking. In real code you should "
33467 "check return values carefully for errors. In general all functions that "
33468 "return integers return C<-1> on error, and all functions that return "
33469 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
33470 "how to handle errors, and consult the documentation for each function call "
33471 "below to see precisely how they return error indications. See L<guestfs-"
33472 "examples(3)> for fully worked examples."
33476 #: ../src/guestfs.pod:121
33477 msgid "DISK IMAGES"
33478 msgstr "ОБРАЗИ ДИСКІВ"
33481 #: ../src/guestfs.pod:123
33483 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33484 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33485 "actual block device, or simply an empty file of zeroes that you have created "
33486 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
33491 #: ../src/guestfs.pod:129
33493 "The call you should use in modern code for adding drives is L</"
33494 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
33495 "specifying that the format is raw, do:"
33499 #: ../src/guestfs.pod:133
33502 " guestfs_add_drive_opts (g, filename,\n"
33503 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33507 " guestfs_add_drive_opts (g, filename,\n"
33508 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33513 #: ../src/guestfs.pod:137
33514 msgid "You can add a disk read-only using:"
33515 msgstr "Ви можете додати диск у режимі лише читання:"
33518 #: ../src/guestfs.pod:139
33521 " guestfs_add_drive_opts (g, filename,\n"
33522 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33523 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33527 " guestfs_add_drive_opts (g, filename,\n"
33528 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33529 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33534 #: ../src/guestfs.pod:144
33536 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
33537 "libguestfs won't modify the file."
33541 #: ../src/guestfs.pod:147
33543 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33544 "by a virtual machine. Adding it read-write will almost certainly cause disk "
33545 "corruption, but adding it read-only is safe."
33549 #: ../src/guestfs.pod:151
33551 "You must add at least one disk image, and you may add multiple disk images. "
33552 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33553 "first one you added), C</dev/sdb> (for the second one you added), etc."
33557 #: ../src/guestfs.pod:156
33559 "Once L</guestfs_launch> has been called you cannot add any more images. You "
33560 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33561 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
33565 #: ../src/guestfs.pod:161
33567 msgstr "МОНТУВАННЯ"
33570 #: ../src/guestfs.pod:163
33572 "Before you can read or write files, create directories and so on in a disk "
33573 "image that contains filesystems, you have to mount those filesystems using "
33574 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
33575 "a disk image contains (for example) one partition with a filesystem on that "
33576 "partition, then you can mount it directly:"
33580 #: ../src/guestfs.pod:170
33583 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33586 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33590 #: ../src/guestfs.pod:172
33592 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33593 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
33594 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
33595 "that these are libguestfs virtual devices, and are nothing to do with host "
33600 #: ../src/guestfs.pod:178
33602 "If you are given a disk image and you don't know what it contains then you "
33603 "have to find out. Libguestfs can do that too: use L</"
33604 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33605 "LVs, and either try mounting each to see what is mountable, or else examine "
33606 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
33607 "filesystems, use L</guestfs_list_filesystems>."
33611 #: ../src/guestfs.pod:186
33613 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33614 "L</INSPECTION> below). But you might find it easier to look at higher level "
33615 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33619 #: ../src/guestfs.pod:191
33621 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
33622 "several other variations of the C<guestfs_mount_*> call."
33626 #: ../src/guestfs.pod:194
33627 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33628 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
33631 #: ../src/guestfs.pod:196
33633 "The majority of the libguestfs API consists of fairly low-level calls for "
33634 "accessing and modifying the files, directories, symlinks etc on mounted "
33635 "filesystems. There are over a hundred such calls which you can find listed "
33636 "in detail below in this man page, and we don't even pretend to cover them "
33637 "all in this overview."
33641 #: ../src/guestfs.pod:202
33643 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33646 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
33647 "точкою монтування."
33650 #: ../src/guestfs.pod:205
33652 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33653 "the file called C<\"etc/passwd\"> then you could do:"
33655 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
33656 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
33660 #: ../src/guestfs.pod:208
33663 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33666 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33670 #: ../src/guestfs.pod:210
33672 "This would return C<data> as a newly allocated buffer containing the full "
33673 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33674 "or C<NULL> if there was an error."
33678 #: ../src/guestfs.pod:214
33680 "As another example, to create a top-level directory on that filesystem "
33681 "called C<\"var\"> you would do:"
33685 #: ../src/guestfs.pod:217
33688 " guestfs_mkdir (g, \"/var\");\n"
33691 " guestfs_mkdir (g, \"/var\");\n"
33695 #: ../src/guestfs.pod:219
33696 msgid "To create a symlink you could do:"
33697 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
33700 #: ../src/guestfs.pod:221
33703 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33704 " \"/etc/rc3.d/S30portmap\");\n"
33707 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33708 " \"/etc/rc3.d/S30portmap\");\n"
33712 #: ../src/guestfs.pod:224
33714 "Libguestfs will reject attempts to use relative paths and there is no "
33715 "concept of a current working directory."
33719 #: ../src/guestfs.pod:227
33721 "Libguestfs can return errors in many situations: for example if the "
33722 "filesystem isn't writable, or if a file or directory that you requested "
33723 "doesn't exist. If you are using the C API (documented here) you have to "
33724 "check for those error conditions after each call. (Other language bindings "
33725 "turn these errors into exceptions)."
33729 #: ../src/guestfs.pod:233
33731 "File writes are affected by the per-handle umask, set by calling L</"
33732 "guestfs_umask> and defaulting to 022. See L</UMASK>."
33736 #: ../src/guestfs.pod:236
33737 msgid "PARTITIONING"
33738 msgstr "ПОДІЛ НА РОЗДІЛИ"
33741 #: ../src/guestfs.pod:238
33743 "Libguestfs contains API calls to read, create and modify partition tables on "
33748 #: ../src/guestfs.pod:241
33750 "In the common case where you want to create a single partition covering the "
33751 "whole disk, you should use the L</guestfs_part_disk> call:"
33755 #: ../src/guestfs.pod:245
33758 " const char *parttype = \"mbr\";\n"
33759 " if (disk_is_larger_than_2TB)\n"
33760 " parttype = \"gpt\";\n"
33761 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33764 " const char *parttype = \"mbr\";\n"
33765 " if (disk_is_larger_than_2TB)\n"
33766 " parttype = \"gpt\";\n"
33767 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33771 #: ../src/guestfs.pod:250
33773 "Obviously this effectively wipes anything that was on that disk image before."
33777 #: ../src/guestfs.pod:253
33782 #: ../src/guestfs.pod:255
33784 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33785 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
33786 "you familiarize yourself with the concepts of physical volumes, volume "
33787 "groups and logical volumes."
33791 #: ../src/guestfs.pod:260
33793 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33794 "tldp.org/HOWTO/LVM-HOWTO/>."
33798 #: ../src/guestfs.pod:263
33799 msgid "DOWNLOADING"
33800 msgstr "ОТРИМАННЯ ДАНИХ"
33803 #: ../src/guestfs.pod:265
33805 "Use L</guestfs_cat> to download small, text only files. This call is "
33806 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33807 "NUL (C<\\0>) characters. However the API is very simple to use."
33811 #: ../src/guestfs.pod:269
33813 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33814 "bit data, since it returns a (pointer, size) pair. However it is still "
33815 "limited to \"small\" files, less than 2 MB."
33819 #: ../src/guestfs.pod:273
33821 "L</guestfs_download> can be used to download any file, with no limits on "
33822 "content or size (even files larger than 4 GB)."
33826 #: ../src/guestfs.pod:276
33828 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33832 #: ../src/guestfs.pod:279
33834 msgstr "ВИВАНТАЖЕННЯ"
33837 #: ../src/guestfs.pod:281
33839 "It's often the case that you want to write a file or files to the disk image."
33843 #: ../src/guestfs.pod:284
33845 "To write a small file with fixed content, use L</guestfs_write>. To create "
33846 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33847 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
33848 "of other functions for creating test files, for example L</guestfs_fill> and "
33849 "L</guestfs_fill_pattern>."
33853 #: ../src/guestfs.pod:290
33855 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
33856 "file content or size (even files larger than 4 GB)."
33860 #: ../src/guestfs.pod:293
33862 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33866 #: ../src/guestfs.pod:295
33868 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33869 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33870 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
33871 "in a predictable way (eg. adding it last after all other drives) then you "
33872 "can get the device name from L</guestfs_list_devices> and mount it directly "
33873 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
33874 "portable between kernel versions, and they don't support labels or UUIDs. "
33875 "If you want to pre-build an image or you need to mount it using a label or "
33876 "UUID, use an ISO image instead."
33880 #: ../src/guestfs.pod:306
33882 msgstr "КОПІЮВАННЯ"
33885 #: ../src/guestfs.pod:308
33887 "There are various different commands for copying between files and devices "
33888 "and in and out of the guest filesystem. These are summarised in the table "
33893 #: ../src/guestfs.pod:314
33894 msgid "B<file> to B<file>"
33895 msgstr "B<файл> у B<файл>"
33898 #: ../src/guestfs.pod:316
33900 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33901 "directories recursively."
33905 #: ../src/guestfs.pod:319
33906 msgid "B<file or device> to B<file or device>"
33907 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33910 #: ../src/guestfs.pod:321
33912 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33913 "devices in the guest."
33917 #: ../src/guestfs.pod:324
33918 msgid "Example: duplicate the contents of an LV:"
33922 #: ../src/guestfs.pod:326
33925 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33928 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33932 #: ../src/guestfs.pod:328
33934 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33935 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
33936 "guestfs_copy_size>."
33940 #: ../src/guestfs.pod:332
33941 msgid "B<file on the host> to B<file or device>"
33945 #: ../src/guestfs.pod:334
33946 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
33950 #: ../src/guestfs.pod:336
33951 msgid "B<file or device> to B<file on the host>"
33955 #: ../src/guestfs.pod:338
33956 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
33960 #: ../src/guestfs.pod:342
33961 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33965 #: ../src/guestfs.pod:344
33967 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33968 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33969 "appears you can only upload and download to files. However many Un*x-like "
33970 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33971 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33972 "and arbitrary file descriptor N."
33976 #: ../src/guestfs.pod:352
33977 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33981 #: ../src/guestfs.pod:355
33984 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33987 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33991 #: ../src/guestfs.pod:357
33992 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33996 #: ../src/guestfs.pod:359
33999 " char devfd[64];\n"
34000 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34001 " guestfs_tar_out (g, \"/\", devfd);\n"
34004 " char devfd[64];\n"
34005 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34006 " guestfs_tar_out (g, \"/\", devfd);\n"
34010 #: ../src/guestfs.pod:363
34011 msgid "LISTING FILES"
34012 msgstr "СПИСКИ ФАЙЛІВ"
34015 #: ../src/guestfs.pod:365
34017 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34018 "L<guestfish(1)>-equivalent command C<ll>)."
34022 #: ../src/guestfs.pod:368
34024 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34025 "programs, as a flat list of strings."
34029 #: ../src/guestfs.pod:371
34031 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34032 "directory, plus additional information about each one. It is more "
34033 "equivalent to using the L<readdir(3)> call on a local filesystem."
34037 #: ../src/guestfs.pod:375
34039 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34043 #: ../src/guestfs.pod:378
34044 msgid "RUNNING COMMANDS"
34045 msgstr "ВИКОНАННЯ КОМАНД"
34048 #: ../src/guestfs.pod:380
34050 "Although libguestfs is primarily an API for manipulating files inside guest "
34051 "images, we also provide some limited facilities for running commands inside "
34056 #: ../src/guestfs.pod:384
34057 msgid "There are many limitations to this:"
34061 #: ../src/guestfs.pod:390
34063 "The kernel version that the command runs under will be different from what "
34068 #: ../src/guestfs.pod:395
34070 "If the command needs to communicate with daemons, then most likely they "
34071 "won't be running."
34075 #: ../src/guestfs.pod:400
34076 msgid "The command will be running in limited memory."
34080 #: ../src/guestfs.pod:404
34082 "The network may not be available unless you enable it (see L</"
34083 "guestfs_set_network>)."
34087 #: ../src/guestfs.pod:409
34088 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34092 #: ../src/guestfs.pod:413
34094 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34098 #: ../src/guestfs.pod:418
34100 "For SELinux guests, you may need to enable SELinux and load policy first. "
34101 "See L</SELINUX> in this manpage."
34105 #: ../src/guestfs.pod:423
34107 "I<Security:> It is not safe to run commands from untrusted, possibly "
34108 "malicious guests. These commands may attempt to exploit your program by "
34109 "sending unexpected output. They could also try to exploit the Linux kernel "
34110 "or qemu provided by the libguestfs appliance. They could use the network "
34111 "provided by the libguestfs appliance to bypass ordinary network partitions "
34112 "and firewalls. They could use the elevated privileges or different SELinux "
34113 "context of your program to their advantage."
34117 #: ../src/guestfs.pod:432
34119 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34120 "(a script which runs when the guest next boots normally), and to have this "
34121 "script run the commands you want in the normal context of the running guest, "
34122 "network security and so on. For information about other security issues, "
34123 "see L</SECURITY>."
34127 #: ../src/guestfs.pod:440
34129 "The two main API calls to run commands are L</guestfs_command> and L</"
34130 "guestfs_sh> (there are also variations)."
34134 #: ../src/guestfs.pod:443
34136 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34137 "shell globs, redirections, etc will work."
34141 #: ../src/guestfs.pod:446
34142 msgid "CONFIGURATION FILES"
34143 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
34146 #: ../src/guestfs.pod:448
34148 "To read and write configuration files in Linux guest filesystems, we "
34149 "strongly recommend using Augeas. For example, Augeas understands how to "
34150 "read and write, say, a Linux shadow password file or X.org configuration "
34151 "file, and so avoids you having to write that code."
34155 #: ../src/guestfs.pod:453
34157 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
34158 "document Augeas itself here because there is excellent documentation on the "
34159 "L<http://augeas.net/> website."
34163 #: ../src/guestfs.pod:457
34165 "If you don't want to use Augeas (you fool!) then try calling L</"
34166 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34171 #: ../src/guestfs.pod:461
34176 #: ../src/guestfs.pod:463
34178 "We support SELinux guests. To ensure that labeling happens correctly in "
34179 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34183 #: ../src/guestfs.pod:471
34184 msgid "Before launching, do:"
34188 #: ../src/guestfs.pod:473
34191 " guestfs_set_selinux (g, 1);\n"
34194 " guestfs_set_selinux (g, 1);\n"
34198 #: ../src/guestfs.pod:477
34200 "After mounting the guest's filesystem(s), load the policy. This is best "
34201 "done by running the L<load_policy(8)> command in the guest itself:"
34205 #: ../src/guestfs.pod:481
34208 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34211 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34215 #: ../src/guestfs.pod:483
34217 "(Older versions of C<load_policy> require you to specify the name of the "
34222 #: ../src/guestfs.pod:488
34224 "Optionally, set the security context for the API. The correct security "
34225 "context to use can only be known by inspecting the guest. As an example:"
34229 #: ../src/guestfs.pod:492
34232 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34235 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34239 #: ../src/guestfs.pod:496
34240 msgid "This will work for running commands and editing existing files."
34244 #: ../src/guestfs.pod:498
34246 "When new files are created, you may need to label them explicitly, for "
34247 "example by running the external command C<restorecon pathname>."
34251 #: ../src/guestfs.pod:502
34256 #: ../src/guestfs.pod:504
34258 "Certain calls are affected by the current file mode creation mask (the "
34259 "\"umask\"). In particular ones which create files or directories, such as "
34260 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
34261 "either the default mode that the file is created with or modifies the mode "
34266 #: ../src/guestfs.pod:510
34268 "The default umask is C<022>, so files are created with modes such as C<0644> "
34269 "and directories with C<0755>."
34273 #: ../src/guestfs.pod:513
34275 "There are two ways to avoid being affected by umask. Either set umask to 0 "
34276 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
34277 "guestfs_chmod> after creating each file or directory."
34281 #: ../src/guestfs.pod:517
34282 msgid "For more information about umask, see L<umask(2)>."
34286 #: ../src/guestfs.pod:521
34288 "Libguestfs allows you to access Linux guests which have been encrypted using "
34289 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34290 "standard. This includes nearly all whole disk encryption systems used by "
34291 "modern Linux guests."
34295 #: ../src/guestfs.pod:527
34297 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34298 "returns the string C<crypto_LUKS>)."
34302 #: ../src/guestfs.pod:530
34304 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
34305 "will require the passphrase!"
34309 #: ../src/guestfs.pod:533
34311 "Opening a LUKS device creates a new device mapper device called C</dev/"
34312 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34313 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
34314 "from and encrypted to the underlying block device respectively."
34318 #: ../src/guestfs.pod:539
34320 "LVM volume groups on the device can be made visible by calling L</"
34321 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
34322 "(s) can now be mounted in the usual way."
34326 #: ../src/guestfs.pod:543
34328 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
34329 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34330 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
34331 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34332 "underlying encrypted block device)."
34336 #: ../src/guestfs.pod:550
34341 #: ../src/guestfs.pod:552
34343 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34344 "contains operating systems, an install CD or a live CD. (These APIs used to "
34345 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34346 "version 1.5.3 the most frequently used part of this library has been "
34347 "rewritten in C and moved into the core code)."
34351 #: ../src/guestfs.pod:559
34353 "Add all disks belonging to the unknown virtual machine and call L</"
34354 "guestfs_launch> in the usual way."
34358 #: ../src/guestfs.pod:562
34360 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
34361 "and certain heuristics, and returns a list of operating systems that were "
34362 "found. An empty list means none were found. A single element is the root "
34363 "filesystem of the operating system. For dual- or multi-boot guests, "
34364 "multiple roots can be returned, each one corresponding to a separate "
34365 "operating system. (Multi-boot virtual machines are extremely rare in the "
34366 "world of virtualization, but since this scenario can happen, we have built "
34367 "libguestfs to deal with it.)"
34371 #: ../src/guestfs.pod:571
34373 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34374 "to get additional details about that operating system. For example, call L</"
34375 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34376 "Windows and Linux-based operating systems respectively."
34380 #: ../src/guestfs.pod:577
34382 "Un*x-like and Linux-based operating systems usually consist of several "
34383 "filesystems which are mounted at boot time (for example, a separate boot "
34384 "partition mounted on C</boot>). The inspection rules are able to detect how "
34385 "filesystems correspond to mount points. Call "
34386 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
34387 "hash table like this example:"
34391 #: ../src/guestfs.pod:584
34394 " /boot => /dev/sda1\n"
34395 " / => /dev/vg_guest/lv_root\n"
34396 " /usr => /dev/vg_guest/lv_usr\n"
34399 " /boot => /dev/sda1\n"
34400 " / => /dev/vg_guest/lv_root\n"
34401 " /usr => /dev/vg_guest/lv_usr\n"
34405 #: ../src/guestfs.pod:588
34407 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34408 "filesystems as suggested."
34412 #: ../src/guestfs.pod:591
34414 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34415 "usr>). Sorting the keys of the hash by length, shortest first, should work."
34419 #: ../src/guestfs.pod:595
34421 "Inspection currently only works for some common operating systems. "
34422 "Contributors are welcome to send patches for other operating systems that we "
34423 "currently cannot detect."
34427 #: ../src/guestfs.pod:599
34429 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
34430 "for more details. The L</guestfs_inspect_os> function just ignores any "
34431 "encrypted devices."
34435 #: ../src/guestfs.pod:603
34437 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34438 "inspection and caches the results in the guest handle. Subsequent calls to "
34439 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34440 "read the disks. If you change the content of the guest disks, you can redo "
34441 "inspection by calling L</guestfs_inspect_os> again. (L</"
34442 "guestfs_inspect_list_applications> works a little differently from the other "
34443 "calls and does read the disks. See documentation for that function for "
34448 #: ../src/guestfs.pod:612
34449 msgid "INSPECTING INSTALL DISKS"
34453 #: ../src/guestfs.pod:614
34455 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34460 #: ../src/guestfs.pod:617
34462 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34463 "system, which currently can be C<installed> (a regular operating system) or "
34464 "C<installer> (some sort of install disk)."
34468 #: ../src/guestfs.pod:621
34470 "Further information is available about the operating system that can be "
34471 "installed using the regular inspection APIs like L</"
34472 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34476 #: ../src/guestfs.pod:626
34478 "Some additional information specific to installer disks is also available "
34479 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34480 "guestfs_inspect_is_multipart> calls."
34484 #: ../src/guestfs.pod:631
34485 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34489 #: ../src/guestfs.pod:633
34491 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
34492 "ntfs-3g.org/> driver."
34496 #: ../src/guestfs.pod:636
34497 msgid "DRIVE LETTERS AND PATHS"
34498 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
34501 #: ../src/guestfs.pod:638
34503 "DOS and Windows still use drive letters, and the filesystems are always "
34504 "treated as case insensitive by Windows itself, and therefore you might find "
34505 "a Windows configuration file referring to a path like C<c:\\windows"
34506 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
34507 "might be referred to as C</WINDOWS/System32>."
34511 #: ../src/guestfs.pod:644
34513 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34514 "L</guestfs_inspect_get_drive_mappings>)"
34518 #: ../src/guestfs.pod:647
34520 "Dealing with separator characters (backslash vs forward slash) is outside "
34521 "the scope of libguestfs, but usually a simple character replacement will "
34526 #: ../src/guestfs.pod:651
34528 "To resolve the case insensitivity of paths, call L</"
34529 "guestfs_case_sensitive_path>."
34533 #: ../src/guestfs.pod:654
34534 msgid "ACCESSING THE WINDOWS REGISTRY"
34535 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
34538 #: ../src/guestfs.pod:656
34540 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34541 "files, through the library C<hivex> which is part of the libguestfs project "
34542 "although ships as a separate tarball. You have to locate and download the "
34543 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
34544 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34545 "reg(1)> for more help on this issue."
34549 #: ../src/guestfs.pod:664
34550 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34551 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
34554 #: ../src/guestfs.pod:666
34556 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34557 "provide something which looks like a Linux symlink. The way it tries to do "
34558 "the rewriting is described here:"
34562 #: ../src/guestfs.pod:670
34564 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34567 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34571 #: ../src/guestfs.pod:672
34573 "The essential problem is that ntfs-3g simply does not have enough "
34574 "information to do a correct job. NTFS links can contain drive letters and "
34575 "references to external device GUIDs that ntfs-3g has no way of resolving. "
34576 "It is almost certainly the case that libguestfs callers should ignore what "
34577 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34581 #: ../src/guestfs.pod:679
34583 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34584 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34585 "attribute, and read the raw reparse data from that (you can find the format "
34586 "documented in various places around the web)."
34590 #: ../src/guestfs.pod:684
34591 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34595 #: ../src/guestfs.pod:686
34597 "There are other useful extended attributes that can be read from ntfs-3g "
34598 "filesystems (using L</guestfs_getxattr>). See:"
34602 #: ../src/guestfs.pod:689
34604 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34606 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34609 #: ../src/guestfs.pod:691
34610 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34611 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
34614 #: ../src/guestfs.pod:693
34616 "Although we don't want to discourage you from using the C API, we will "
34617 "mention here that the same API is also available in other languages."
34621 #: ../src/guestfs.pod:696
34623 "The API is broadly identical in all supported languages. This means that "
34624 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34625 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34626 "OCaml. In other words, a straightforward, predictable isomorphism between "
34631 #: ../src/guestfs.pod:702
34633 "Error messages are automatically transformed into exceptions if the language "
34638 #: ../src/guestfs.pod:705
34640 "We don't try to \"object orientify\" parts of the API in OO languages, "
34641 "although contributors are welcome to write higher level APIs above what we "
34642 "provide in their favourite languages if they wish."
34646 #: ../src/guestfs.pod:711
34651 #: ../src/guestfs.pod:713
34653 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
34654 "identical to the C API. C++ classes and exceptions are not used."
34658 #: ../src/guestfs.pod:717
34663 #: ../src/guestfs.pod:719
34665 "The C# bindings are highly experimental. Please read the warnings at the "
34666 "top of C<csharp/Libguestfs.cs>."
34670 #: ../src/guestfs.pod:722
34675 #: ../src/guestfs.pod:724
34677 #| msgid "See L<guestfs-ruby(3)>."
34678 msgid "See L<guestfs-erlang(3)>."
34679 msgstr "Див. L<guestfs-ruby(3)>."
34682 #: ../src/guestfs.pod:726
34684 msgstr "B<Haskell>"
34687 #: ../src/guestfs.pod:728
34689 "This is the only language binding that is working but incomplete. Only "
34690 "calls which return simple integers have been bound in Haskell, and we are "
34691 "looking for help to complete this binding."
34695 #: ../src/guestfs.pod:732
34700 #: ../src/guestfs.pod:734
34702 "Full documentation is contained in the Javadoc which is distributed with "
34703 "libguestfs. For examples, see L<guestfs-java(3)>."
34707 #: ../src/guestfs.pod:737
34712 #: ../src/guestfs.pod:739
34713 msgid "See L<guestfs-ocaml(3)>."
34714 msgstr "Див. L<guestfs-ocaml(3)>."
34717 #: ../src/guestfs.pod:741
34722 #: ../src/guestfs.pod:743
34723 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34724 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
34727 #: ../src/guestfs.pod:745
34732 #: ../src/guestfs.pod:747
34734 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34735 "the php-libguestfs package for your distribution."
34739 #: ../src/guestfs.pod:750
34740 msgid "The PHP binding only works correctly on 64 bit machines."
34744 #: ../src/guestfs.pod:752
34749 #: ../src/guestfs.pod:754
34750 msgid "See L<guestfs-python(3)>."
34751 msgstr "Див. L<guestfs-python(3)>."
34754 #: ../src/guestfs.pod:756
34759 #: ../src/guestfs.pod:758
34760 msgid "See L<guestfs-ruby(3)>."
34761 msgstr "Див. L<guestfs-ruby(3)>."
34764 #: ../src/guestfs.pod:760
34765 msgid "B<shell scripts>"
34766 msgstr "B<скрипти оболонки>"
34769 #: ../src/guestfs.pod:762
34770 msgid "See L<guestfish(1)>."
34771 msgstr "Див. L<guestfish(1)>."
34774 #: ../src/guestfs.pod:766
34775 msgid "LIBGUESTFS GOTCHAS"
34779 #: ../src/guestfs.pod:768
34781 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34782 "system [...] that works in the way it is documented but is counterintuitive "
34783 "and almost invites mistakes.\""
34787 #: ../src/guestfs.pod:772
34789 "Since we developed libguestfs and the associated tools, there are several "
34790 "things we would have designed differently, but are now stuck with for "
34791 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
34792 "release, you can expect these to change. Beware of them."
34796 #: ../src/guestfs.pod:780
34797 msgid "Autosync / forgetting to sync."
34801 #: ../src/guestfs.pod:782
34803 "I<Update:> Autosync is enabled by default for all API users starting from "
34804 "libguestfs 1.5.24. This section only applies to older versions."
34808 #: ../src/guestfs.pod:785
34810 "When modifying a filesystem from C or another language, you B<must> unmount "
34811 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34812 "libguestfs handle. You can also call:"
34816 #: ../src/guestfs.pod:789
34819 " guestfs_set_autosync (g, 1);\n"
34822 " guestfs_set_autosync (g, 1);\n"
34826 #: ../src/guestfs.pod:791
34828 "to have the unmount/sync done automatically for you when the handle 'g' is "
34829 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34833 #: ../src/guestfs.pod:795
34835 "If you forget to do this, then it is entirely possible that your changes "
34836 "won't be written out, or will be partially written, or (very rarely) that "
34837 "you'll get disk corruption."
34841 #: ../src/guestfs.pod:799
34843 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
34844 "guestfish scripts that forget to sync will work just fine, which can make "
34845 "this very puzzling if you are trying to debug a problem."
34849 #: ../src/guestfs.pod:803
34850 msgid "Mount option C<-o sync> should not be the default."
34854 #: ../src/guestfs.pod:805
34856 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
34857 "However C<-o sync> does not add any reliability benefit, but does have a "
34858 "very large performance impact."
34862 #: ../src/guestfs.pod:809
34864 "The work around is to use L</guestfs_mount_options> and set the mount "
34865 "options that you actually want to use."
34869 #: ../src/guestfs.pod:812
34870 msgid "Read-only should be the default."
34874 #: ../src/guestfs.pod:814
34876 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34877 "specify I<--rw> if you want to make changes to the image."
34881 #: ../src/guestfs.pod:817
34882 msgid "This would reduce the potential to corrupt live VM images."
34886 #: ../src/guestfs.pod:819
34888 "Note that many filesystems change the disk when you just mount and unmount, "
34889 "even if you didn't perform any writes. You need to use L</"
34890 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34894 #: ../src/guestfs.pod:823
34895 msgid "guestfish command line is hard to use."
34899 #: ../src/guestfs.pod:825
34901 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34902 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
34903 "exist, so it fails. In earlier versions of guestfish the error message was "
34904 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
34905 "we should have used C<guestfish -c command> to run commands."
34909 #: ../src/guestfs.pod:832
34910 msgid "guestfish megabyte modifiers don't work right on all commands"
34914 #: ../src/guestfs.pod:834
34916 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34917 "other modifiers). What guestfish actually does is to multiply the number "
34918 "part by the modifier part and pass the result to the C API. However this "
34919 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34920 "expecting some other unit (eg. megabytes)."
34924 #: ../src/guestfs.pod:841
34925 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
34929 #: ../src/guestfs.pod:843
34932 " lvcreate LV VG 100M\n"
34935 " lvcreate LV VG 100M\n"
34939 #: ../src/guestfs.pod:845
34941 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
34942 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34943 "megabytes * megabytes) logical volume. The error message you get from this "
34944 "is also a little obscure."
34948 #: ../src/guestfs.pod:850
34950 "This could be fixed in the generator by specially marking parameters and "
34951 "return values which take bytes or other units."
34955 #: ../src/guestfs.pod:853
34956 msgid "Ambiguity between devices and paths"
34960 #: ../src/guestfs.pod:855
34962 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34963 "sdb2>) and a similar pathname. A file might just happen to be called "
34964 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34968 #: ../src/guestfs.pod:860
34970 "In the current API we usually resolve this ambiguity by having two separate "
34971 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
34972 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34973 "detecting if the path supplied begins with C</dev/>."
34977 #: ../src/guestfs.pod:866
34979 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34980 "make paths/devices into structured names. One way to do this would be to "
34981 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34982 "aspect of grub. Another way would be to use a structured type, equivalent "
34983 "to this OCaml type:"
34987 #: ../src/guestfs.pod:872
34990 " type path = Path of string | Device of int | Partition of int * int\n"
34995 #: ../src/guestfs.pod:874
34996 msgid "which would allow you to pass arguments like:"
35000 #: ../src/guestfs.pod:876
35003 " Path \"/foo/bar\"\n"
35004 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
35005 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35006 " Path \"/dev/sdb2\" (* not a device *)\n"
35011 #: ../src/guestfs.pod:881
35013 "As you can see there are still problems to resolve even with this "
35014 "representation. Also consider how it might work in guestfish."
35018 #: ../src/guestfs.pod:886
35019 msgid "KEYS AND PASSPHRASES"
35020 msgstr "КЛЮЧІ І ПАРОЛІ"
35023 #: ../src/guestfs.pod:888
35025 "Certain libguestfs calls take a parameter that contains sensitive key "
35026 "material, passed in as a C string."
35030 #: ../src/guestfs.pod:891
35032 "In the future we would hope to change the libguestfs implementation so that "
35033 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35034 "swap. However this is I<not> done at the moment, because of the complexity "
35035 "of such an implementation."
35039 #: ../src/guestfs.pod:896
35041 "Therefore you should be aware that any key parameter you pass to libguestfs "
35042 "might end up being written out to the swap partition. If this is a concern, "
35043 "scrub the swap partition or don't use libguestfs on encrypted devices."
35047 #: ../src/guestfs.pod:901
35048 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35052 #: ../src/guestfs.pod:903
35054 "All high-level libguestfs actions are synchronous. If you want to use "
35055 "libguestfs asynchronously then you must create a thread."
35059 #: ../src/guestfs.pod:906
35061 "Only use the handle from a single thread. Either use the handle exclusively "
35062 "from one thread, or provide your own mutex so that two threads cannot issue "
35063 "calls on the same handle at the same time."
35067 #: ../src/guestfs.pod:910
35069 "See the graphical program guestfs-browser for one possible architecture for "
35070 "multithreaded programs using libvirt and libguestfs."
35074 #: ../src/guestfs.pod:913
35079 #: ../src/guestfs.pod:915
35081 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35086 #: ../src/guestfs.pod:918
35088 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35089 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35093 #: ../src/guestfs.pod:921
35095 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35096 "to change the directories that libguestfs will search in. The value is a "
35097 "colon-separated list of paths. The current directory is I<not> searched "
35098 "unless the path contains an empty element or C<.>. For example "
35099 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35100 "then C</usr/lib/guestfs>."
35104 #: ../src/guestfs.pod:928
35105 msgid "QEMU WRAPPERS"
35109 #: ../src/guestfs.pod:930
35111 "If you want to compile your own qemu, run qemu from a non-standard location, "
35112 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35117 #: ../src/guestfs.pod:934
35119 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35120 "last command in the shell script (so that qemu replaces the shell and "
35121 "becomes the direct child of the libguestfs-using program). If you don't do "
35122 "this, then the qemu process won't be cleaned up correctly."
35126 #: ../src/guestfs.pod:939
35128 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35133 #: ../src/guestfs.pod:942
35137 " qemudir=/home/rjones/d/qemu\n"
35138 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35142 " qemudir=/home/rjones/d/qemu\n"
35143 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35147 #: ../src/guestfs.pod:946
35149 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35150 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
35155 #: ../src/guestfs.pod:950
35158 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35161 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35165 #: ../src/guestfs.pod:952
35167 "Note that libguestfs also calls qemu with the -help and -version options in "
35168 "order to determine features."
35172 #: ../src/guestfs.pod:955
35174 "Wrappers can also be used to edit the options passed to qemu. In the "
35175 "following example, the C<-machine ...> option (C<-machine> and the following "
35176 "argument) are removed from the command line and replaced with C<-machine pc,"
35177 "accel=tcg>. The while loop iterates over the options until it finds the "
35178 "right one to remove, putting the remaining options into the C<args> array."
35182 #: ../src/guestfs.pod:962
35185 #| " #!/usr/bin/guestfish -f\n"
35191 " #!/usr/bin/guestfish -f\n"
35195 #: ../src/guestfs.pod:964
35199 " while [ $# -gt 0 ]; do\n"
35200 " case \"$1\" in\n"
35204 " args[i]=\"$1\"\n"
35213 #: ../src/guestfs.pod:976
35216 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35221 #: ../src/guestfs.pod:978
35222 msgid "ATTACHING TO RUNNING DAEMONS"
35223 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
35226 #: ../src/guestfs.pod:980
35228 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35229 "babies. Use with caution."
35233 #: ../src/guestfs.pod:983
35235 "I<Note (2):> This section explains how to attach to a running daemon from a "
35236 "low level perspective. For most users, simply using virt tools such as "
35237 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35241 #: ../src/guestfs.pod:987
35242 msgid "Using guestfs_set_attach_method"
35243 msgstr "За допомогою guestfs_set_attach_method"
35246 #: ../src/guestfs.pod:989
35248 "By calling L</guestfs_set_attach_method> you can change how the library "
35249 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35250 "ARCHITECTURE> for some background)."
35254 #: ../src/guestfs.pod:993
35256 "The normal attach method is C<appliance>, where a small appliance is created "
35257 "containing the daemon, and then the library connects to this."
35261 #: ../src/guestfs.pod:996
35263 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35264 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35265 "daemon over the Unix domain socket."
35269 #: ../src/guestfs.pod:1000
35271 "The normal use for this is to connect to a running virtual machine that "
35272 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35273 "files inside the live virtual machine."
35277 #: ../src/guestfs.pod:1004
35278 msgid "Using guestfs_add_domain with live flag"
35279 msgstr "За допомогою guestfs_add_domain з прапорцем live"
35282 #: ../src/guestfs.pod:1006
35284 "L</guestfs_add_domain> provides some help for getting the correct attach "
35285 "method. If you pass the C<live> option to this function, then (if the "
35286 "virtual machine is running) it will examine the libvirt XML looking for a "
35287 "virtio-serial channel to connect to:"
35291 #: ../src/guestfs.pod:1012
35298 " <channel type='unix'>\n"
35299 " <source mode='bind' path='/path/to/socket'/>\n"
35300 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35311 " <channel type='unix'>\n"
35312 " <source mode='bind' path='/path/to/socket'/>\n"
35313 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35321 #: ../src/guestfs.pod:1024
35323 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35324 "method to C<unix:/path/to/socket>."
35328 #: ../src/guestfs.pod:1027
35330 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35331 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35332 "to attach to and modify live virtual machines."
35336 #: ../src/guestfs.pod:1031
35338 "The virtual machine needs to have been set up beforehand so that it has the "
35339 "virtio-serial channel and so that guestfsd is running inside it."
35343 #: ../src/guestfs.pod:1035
35344 msgid "ABI GUARANTEE"
35345 msgstr "ГАРАНТІЯ ЩОДО ABI"
35348 #: ../src/guestfs.pod:1037
35350 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35351 "actions as outlined in this section. Although we will deprecate some "
35352 "actions, for example if they get replaced by newer calls, we will keep the "
35353 "old actions forever. This allows you the developer to program in confidence "
35354 "against the libguestfs API."
35358 #: ../src/guestfs.pod:1043
35359 msgid "BLOCK DEVICE NAMING"
35360 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
35363 #: ../src/guestfs.pod:1045
35365 "In the kernel there is now quite a profusion of schemata for naming block "
35366 "devices (in this context, by I<block device> I mean a physical or virtual "
35367 "hard drive). The original Linux IDE driver used names starting with C</dev/"
35368 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
35369 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
35370 "for the old IDE driver (particularly for SATA devices) those devices also "
35371 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
35372 "paravirtualized drivers. This has created several different naming systems, "
35373 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35377 #: ../src/guestfs.pod:1057
35379 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35380 "Linux kernel to access block devices. We can run a variety of appliances "
35381 "based on a variety of Linux kernels."
35385 #: ../src/guestfs.pod:1061
35387 "This causes a problem for libguestfs because many API calls use device or "
35388 "partition names. Working scripts and the recipe (example) scripts that we "
35389 "make available over the internet could fail if the naming scheme changes."
35393 #: ../src/guestfs.pod:1066
35395 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
35396 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35397 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35398 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35402 #: ../src/guestfs.pod:1072
35404 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
35405 "L</guestfs_list_partitions> and similar calls return the true names of the "
35406 "devices and partitions as known to the appliance."
35410 #: ../src/guestfs.pod:1077
35411 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35415 #: ../src/guestfs.pod:1079
35417 "Usually this translation is transparent. However in some (very rare) cases "
35418 "you may need to know the exact algorithm. Such cases include where you use "
35419 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35420 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35424 #: ../src/guestfs.pod:1085
35426 "The algorithm is applied only to I<parameters> which are known to be either "
35427 "device or partition names. Return values from functions such as L</"
35428 "guestfs_list_devices> are never changed."
35432 #: ../src/guestfs.pod:1093
35433 msgid "Is the string a parameter which is a device or partition name?"
35437 #: ../src/guestfs.pod:1097
35438 msgid "Does the string begin with C</dev/sd>?"
35439 msgstr "Чи починається рядок з C</dev/sd>?"
35442 #: ../src/guestfs.pod:1101
35444 "Does the named device exist? If so, we use that device. However if I<not> "
35445 "then we continue with this algorithm."
35449 #: ../src/guestfs.pod:1106
35450 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35454 #: ../src/guestfs.pod:1108
35455 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35459 #: ../src/guestfs.pod:1110
35460 msgid "If that named device exists, use it. If not, continue."
35464 #: ../src/guestfs.pod:1114
35465 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35469 #: ../src/guestfs.pod:1116
35470 msgid "If that named device exists, use it. If not, return an error."
35474 #: ../src/guestfs.pod:1120
35475 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35479 #: ../src/guestfs.pod:1122
35481 "Although the standard naming scheme and automatic translation is useful for "
35482 "simple programs and guestfish scripts, for larger programs it is best not to "
35483 "rely on this mechanism."
35487 #: ../src/guestfs.pod:1126
35489 "Where possible for maximum future portability programs using libguestfs "
35490 "should use these future-proof techniques:"
35494 #: ../src/guestfs.pod:1133
35496 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35497 "device names, and then use those names directly."
35501 #: ../src/guestfs.pod:1136
35503 "Since those device names exist by definition, they will never be translated."
35507 #: ../src/guestfs.pod:1141
35509 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35510 "filesystem labels."
35514 #: ../src/guestfs.pod:1146
35519 #: ../src/guestfs.pod:1148
35521 "This section discusses security implications of using libguestfs, "
35522 "particularly with untrusted or malicious guests or disk images."
35526 #: ../src/guestfs.pod:1151
35527 msgid "GENERAL SECURITY CONSIDERATIONS"
35528 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
35531 #: ../src/guestfs.pod:1153
35533 "Be careful with any files or data that you download from a guest (by "
35534 "\"download\" we mean not just the L</guestfs_download> command but any "
35535 "command that reads files, filenames, directories or anything else from a "
35536 "disk image). An attacker could manipulate the data to fool your program "
35537 "into doing the wrong thing. Consider cases such as:"
35541 #: ../src/guestfs.pod:1163
35542 msgid "the data (file etc) not being present"
35546 #: ../src/guestfs.pod:1167
35547 msgid "being present but empty"
35551 #: ../src/guestfs.pod:1171
35552 msgid "being much larger than normal"
35556 #: ../src/guestfs.pod:1175
35557 msgid "containing arbitrary 8 bit data"
35561 #: ../src/guestfs.pod:1179
35562 msgid "being in an unexpected character encoding"
35566 #: ../src/guestfs.pod:1183
35567 msgid "containing homoglyphs."
35571 #: ../src/guestfs.pod:1187
35572 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35573 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
35576 #: ../src/guestfs.pod:1189
35578 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35579 "(VFS) module can sometimes be escalated into exploits by deliberately "
35580 "creating a malicious, malformed filesystem. These exploits are very severe "
35581 "for two reasons. Firstly there are very many filesystem drivers in the "
35582 "kernel, and many of them are infrequently used and not much developer "
35583 "attention has been paid to the code. Linux userspace helps potential "
35584 "crackers by detecting the filesystem type and automatically choosing the "
35585 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35586 "the administrator. Secondly, a kernel-level exploit is like a local root "
35587 "exploit (worse in some ways), giving immediate and total access to the "
35588 "system right down to the hardware level."
35592 #: ../src/guestfs.pod:1202
35594 "That explains why you should never mount a filesystem from an untrusted "
35595 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
35596 "inside a qemu virtual machine, usually running as a non-root user. The "
35597 "attacker would need to write a filesystem which first exploited the kernel, "
35598 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35599 "the libguestfs protocol, and finally to be as serious as the host kernel "
35600 "exploit it would need to escalate its privileges to root. This multi-step "
35601 "escalation, performed by a static piece of data, is thought to be extremely "
35602 "hard to do, although we never say 'never' about security issues."
35606 #: ../src/guestfs.pod:1213
35608 "In any case callers can reduce the attack surface by forcing the filesystem "
35609 "type when mounting (use L</guestfs_mount_vfs>)."
35613 #: ../src/guestfs.pod:1216
35614 msgid "PROTOCOL SECURITY"
35615 msgstr "ЗАХИСТ ПРОТОКОЛУ"
35618 #: ../src/guestfs.pod:1218
35620 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
35621 "defined upper message size. However a program that uses libguestfs must "
35622 "also take care - for example you can write a program that downloads a binary "
35623 "from a disk image and executes it locally, and no amount of protocol "
35624 "security will save you from the consequences."
35628 #: ../src/guestfs.pod:1224
35629 msgid "INSPECTION SECURITY"
35633 #: ../src/guestfs.pod:1226
35635 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35636 "directly from the guest, and these could contain any 8 bit data. Callers "
35637 "should be careful to escape these before printing them to a structured file "
35638 "(for example, use HTML escaping if creating a web page)."
35642 #: ../src/guestfs.pod:1232
35644 "Guest configuration may be altered in unusual ways by the administrator of "
35645 "the virtual machine, and may not reflect reality (particularly for untrusted "
35646 "or actively malicious guests). For example we parse the hostname from "
35647 "configuration files like C</etc/sysconfig/network> that we find in the "
35648 "guest, but the guest administrator can easily manipulate these files to "
35649 "provide the wrong hostname."
35653 #: ../src/guestfs.pod:1240
35655 "The inspection API parses guest configuration using two external libraries: "
35656 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
35657 "designed to be robust in the face of malicious data, although denial of "
35658 "service attacks are still possible, for example with oversized configuration "
35663 #: ../src/guestfs.pod:1246
35664 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35665 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
35668 #: ../src/guestfs.pod:1248
35670 "Be very cautious about running commands from the guest. By running a "
35671 "command in the guest, you are giving CPU time to a binary that you do not "
35672 "control, under the same user account as the library, albeit wrapped in qemu "
35673 "virtualization. More information and alternatives can be found in the "
35674 "section L</RUNNING COMMANDS>."
35678 #: ../src/guestfs.pod:1254
35679 msgid "CVE-2010-3851"
35680 msgstr "CVE-2010-3851"
35683 #: ../src/guestfs.pod:1256
35684 msgid "https://bugzilla.redhat.com/642934"
35685 msgstr "https://bugzilla.redhat.com/642934"
35688 #: ../src/guestfs.pod:1258
35690 "This security bug concerns the automatic disk format detection that qemu "
35691 "does on disk images."
35695 #: ../src/guestfs.pod:1261
35697 "A raw disk image is just the raw bytes, there is no header. Other disk "
35698 "images like qcow2 contain a special header. Qemu deals with this by looking "
35699 "for one of the known headers, and if none is found then assuming the disk "
35700 "image must be raw."
35704 #: ../src/guestfs.pod:1266
35706 "This allows a guest which has been given a raw disk image to write some "
35707 "other header. At next boot (or when the disk image is accessed by "
35708 "libguestfs) qemu would do autodetection and think the disk image format was, "
35709 "say, qcow2 based on the header written by the guest."
35713 #: ../src/guestfs.pod:1271
35715 "This in itself would not be a problem, but qcow2 offers many features, one "
35716 "of which is to allow a disk image to refer to another image (called the "
35717 "\"backing disk\"). It does this by placing the path to the backing disk "
35718 "into the qcow2 header. This path is not validated and could point to any "
35719 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
35720 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35721 "control of the attacker."
35725 #: ../src/guestfs.pod:1279
35727 "In libguestfs this is rather hard to exploit except under two circumstances:"
35731 #: ../src/guestfs.pod:1286
35732 msgid "You have enabled the network or have opened the disk in write mode."
35736 #: ../src/guestfs.pod:1290
35738 "You are also running untrusted code from the guest (see L</RUNNING "
35743 #: ../src/guestfs.pod:1295
35745 "The way to avoid this is to specify the expected disk format when adding "
35746 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
35747 "should always do this if the disk is raw format, and it's a good idea for "
35752 #: ../src/guestfs.pod:1300
35754 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35755 "format is fetched from libvirt and passed through."
35759 #: ../src/guestfs.pod:1303
35761 "For libguestfs tools, use the I<--format> command line parameter as "
35766 #: ../src/guestfs.pod:1306
35767 msgid "CONNECTION MANAGEMENT"
35768 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
35771 #: ../src/guestfs.pod:1308
35772 msgid "guestfs_h *"
35773 msgstr "guestfs_h *"
35776 #: ../src/guestfs.pod:1310
35778 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
35779 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
35780 "handle and release all resources used."
35784 #: ../src/guestfs.pod:1314
35786 "For information on using multiple handles and threads, see the section L</"
35787 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35791 #: ../src/guestfs.pod:1317
35792 msgid "guestfs_create"
35793 msgstr "guestfs_create"
35796 #: ../src/guestfs.pod:1319
35799 " guestfs_h *guestfs_create (void);\n"
35802 " guestfs_h *guestfs_create (void);\n"
35806 #: ../src/guestfs.pod:1321
35807 msgid "Create a connection handle."
35808 msgstr "Створити дескриптор з’єднання."
35811 #: ../src/guestfs.pod:1323
35813 "On success this returns a non-NULL pointer to a handle. On error it returns "
35818 #: ../src/guestfs.pod:1326
35820 "You have to \"configure\" the handle after creating it. This includes "
35821 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35822 "handle at least once."
35826 #: ../src/guestfs.pod:1330
35827 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35831 #: ../src/guestfs.pod:1332
35833 "You may also want to configure error handling for the handle. See the L</"
35834 "ERROR HANDLING> section below."
35838 #: ../src/guestfs.pod:1335
35839 msgid "guestfs_close"
35840 msgstr "guestfs_close"
35843 #: ../src/guestfs.pod:1337
35846 " void guestfs_close (guestfs_h *g);\n"
35849 " void guestfs_close (guestfs_h *g);\n"
35853 #: ../src/guestfs.pod:1339
35854 msgid "This closes the connection handle and frees up all resources used."
35858 #: ../src/guestfs.pod:1341
35860 "If autosync was set on the handle and the handle was launched, then this "
35861 "implicitly calls various functions to unmount filesystems and sync the "
35862 "disk. See L</guestfs_set_autosync> for more details."
35866 #: ../src/guestfs.pod:1345
35867 msgid "If a close callback was set on the handle, then it is called."
35871 #: ../src/guestfs.pod:1347
35872 msgid "ERROR HANDLING"
35873 msgstr "ОБРОБКА ПОМИЛОК"
35876 #: ../src/guestfs.pod:1349
35878 "API functions can return errors. For example, almost all functions that "
35879 "return C<int> will return C<-1> to indicate an error."
35883 #: ../src/guestfs.pod:1352
35885 "Additional information is available for errors: an error message string and "
35886 "optionally an error number (errno) if the thing that failed was a system "
35891 #: ../src/guestfs.pod:1356
35893 "You can get at the additional information about the last error on the handle "
35894 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35895 "up an error handler with L</guestfs_set_error_handler>."
35899 #: ../src/guestfs.pod:1361
35901 "When the handle is created, a default error handler is installed which "
35902 "prints the error message string to C<stderr>. For small short-running "
35903 "command line programs it is sufficient to do:"
35907 #: ../src/guestfs.pod:1365
35910 " if (guestfs_launch (g) == -1)\n"
35911 " exit (EXIT_FAILURE);\n"
35914 " if (guestfs_launch (g) == -1)\n"
35915 " exit (EXIT_FAILURE);\n"
35919 #: ../src/guestfs.pod:1368
35921 "since the default error handler will ensure that an error message has been "
35922 "printed to C<stderr> before the program exits."
35926 #: ../src/guestfs.pod:1371
35928 "For other programs the caller will almost certainly want to install an "
35929 "alternate error handler or do error handling in-line like this:"
35933 #: ../src/guestfs.pod:1374
35936 " /* This disables the default behaviour of printing errors\n"
35938 " guestfs_set_error_handler (g, NULL, NULL);\n"
35943 #: ../src/guestfs.pod:1378
35946 #| " if (guestfs_launch (g) == -1) {\n"
35947 #| " /* Examine the error message and print it etc. */\n"
35948 #| " char *msg = guestfs_last_error (g);\n"
35949 #| " int errnum = guestfs_last_errno (g);\n"
35950 #| " fprintf (stderr, \"%s\\n\", msg);\n"
35955 " if (guestfs_launch (g) == -1) {\n"
35956 " /* Examine the error message and print it etc. */\n"
35957 " char *msg = guestfs_last_error (g);\n"
35958 " int errnum = guestfs_last_errno (g);\n"
35959 " fprintf (stderr, \"%s\", msg);\n"
35960 " if (errnum != 0)\n"
35961 " fprintf (stderr, \": %s\", strerror (errnum));\n"
35962 " fprintf (stderr, \"\\n\");\n"
35967 " if (guestfs_launch (g) == -1) {\n"
35968 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35969 " char *msg = guestfs_last_error (g);\n"
35970 " int errnum = guestfs_last_errno (g);\n"
35971 " fprintf (stderr, \"%s\\n\", msg);\n"
35977 #: ../src/guestfs.pod:1389
35979 "Out of memory errors are handled differently. The default action is to call "
35980 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
35981 "guestfs_set_out_of_memory_handler>."
35985 #: ../src/guestfs.pod:1393
35987 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35988 "because there is no handle if this happens there is no way to get additional "
35989 "error information. However L</guestfs_create> is supposed to be a "
35990 "lightweight operation which can only fail because of insufficient memory (it "
35991 "returns NULL in this case)."
35995 #: ../src/guestfs.pod:1399
35996 msgid "guestfs_last_error"
35997 msgstr "guestfs_last_error"
36000 #: ../src/guestfs.pod:1401
36003 " const char *guestfs_last_error (guestfs_h *g);\n"
36006 " const char *guestfs_last_error (guestfs_h *g);\n"
36010 #: ../src/guestfs.pod:1403
36012 "This returns the last error message that happened on C<g>. If there has not "
36013 "been an error since the handle was created, then this returns C<NULL>."
36017 #: ../src/guestfs.pod:1407
36019 "The lifetime of the returned string is until the next error occurs, or L</"
36020 "guestfs_close> is called."
36024 #: ../src/guestfs.pod:1410
36025 msgid "guestfs_last_errno"
36026 msgstr "guestfs_last_errno"
36029 #: ../src/guestfs.pod:1412
36032 " int guestfs_last_errno (guestfs_h *g);\n"
36035 " int guestfs_last_errno (guestfs_h *g);\n"
36039 #: ../src/guestfs.pod:1414
36040 msgid "This returns the last error number (errno) that happened on C<g>."
36044 #: ../src/guestfs.pod:1416
36045 msgid "If successful, an errno integer not equal to zero is returned."
36049 #: ../src/guestfs.pod:1418
36051 "If no error, this returns 0. This call can return 0 in three situations:"
36055 #: ../src/guestfs.pod:1425
36056 msgid "There has not been any error on the handle."
36060 #: ../src/guestfs.pod:1429
36062 "There has been an error but the errno was meaningless. This corresponds to "
36063 "the case where the error did not come from a failed system call, but for "
36064 "some other reason."
36068 #: ../src/guestfs.pod:1435
36070 "There was an error from a failed system call, but for some reason the errno "
36071 "was not captured and returned. This usually indicates a bug in libguestfs."
36075 #: ../src/guestfs.pod:1441
36077 "Libguestfs tries to convert the errno from inside the applicance into a "
36078 "corresponding errno for the caller (not entirely trivial: the appliance "
36079 "might be running a completely different operating system from the library "
36080 "and error numbers are not standardized across Un*xen). If this could not be "
36081 "done, then the error is translated to C<EINVAL>. In practice this should "
36082 "only happen in very rare circumstances."
36086 #: ../src/guestfs.pod:1449
36087 msgid "guestfs_set_error_handler"
36088 msgstr "guestfs_set_error_handler"
36091 #: ../src/guestfs.pod:1451
36094 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36096 " const char *msg);\n"
36097 " void guestfs_set_error_handler (guestfs_h *g,\n"
36098 " guestfs_error_handler_cb cb,\n"
36099 " void *opaque);\n"
36102 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36104 " const char *msg);\n"
36105 " void guestfs_set_error_handler (guestfs_h *g,\n"
36106 " guestfs_error_handler_cb cb,\n"
36107 " void *opaque);\n"
36111 #: ../src/guestfs.pod:1458
36113 "The callback C<cb> will be called if there is an error. The parameters "
36114 "passed to the callback are an opaque data pointer and the error message "
36119 #: ../src/guestfs.pod:1462
36121 "C<errno> is not passed to the callback. To get that the callback must call "
36122 "L</guestfs_last_errno>."
36126 #: ../src/guestfs.pod:1465
36128 "Note that the message string C<msg> is freed as soon as the callback "
36129 "function returns, so if you want to stash it somewhere you must make your "
36134 #: ../src/guestfs.pod:1469
36135 msgid "The default handler prints messages on C<stderr>."
36139 #: ../src/guestfs.pod:1471
36140 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36144 #: ../src/guestfs.pod:1473
36145 msgid "guestfs_get_error_handler"
36146 msgstr "guestfs_get_error_handler"
36149 #: ../src/guestfs.pod:1475
36152 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36153 " void **opaque_rtn);\n"
36156 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36157 " void **opaque_rtn);\n"
36161 #: ../src/guestfs.pod:1478
36162 msgid "Returns the current error handler callback."
36166 #: ../src/guestfs.pod:1480
36167 msgid "guestfs_set_out_of_memory_handler"
36168 msgstr "guestfs_set_out_of_memory_handler"
36171 #: ../src/guestfs.pod:1482
36174 #| " typedef void (*guestfs_abort_cb) (void);\n"
36175 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36176 #| " guestfs_abort_cb);\n"
36179 " typedef void (*guestfs_abort_cb) (void);\n"
36180 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36181 " guestfs_abort_cb);\n"
36184 " typedef void (*guestfs_abort_cb) (void);\n"
36185 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36186 " guestfs_abort_cb);\n"
36190 #: ../src/guestfs.pod:1486
36192 "The callback C<cb> will be called if there is an out of memory situation. "
36193 "I<Note this callback must not return>."
36197 #: ../src/guestfs.pod:1489
36198 msgid "The default is to call L<abort(3)>."
36202 #: ../src/guestfs.pod:1491
36204 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
36208 #: ../src/guestfs.pod:1494
36209 msgid "guestfs_get_out_of_memory_handler"
36210 msgstr "guestfs_get_out_of_memory_handler"
36213 #: ../src/guestfs.pod:1496
36216 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36219 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36223 #: ../src/guestfs.pod:1498
36224 msgid "This returns the current out of memory handler."
36228 #: ../src/guestfs.pod:1500
36230 msgstr "ВИКЛИКИ API"
36233 #: ../src/guestfs.pod:1504
36238 #: ../src/guestfs.pod:1506
36243 #: ../src/guestfs.pod:1508
36244 msgid "AVAILABILITY"
36245 msgstr "ДОСТУПНІСТЬ"
36248 #: ../src/guestfs.pod:1510
36249 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36250 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
36253 #: ../src/guestfs.pod:1512
36255 "Using L</guestfs_available> you can test availability of the following "
36256 "groups of functions. This test queries the appliance to see if the "
36257 "appliance you are currently using supports the functionality."
36261 #: ../src/guestfs.pod:1517
36262 msgid "@AVAILABILITY@"
36263 msgstr "@AVAILABILITY@"
36266 #: ../src/guestfs.pod:1519
36267 msgid "GUESTFISH supported COMMAND"
36271 #: ../src/guestfs.pod:1521
36273 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36274 "prints out the available groups and whether they are supported by this build "
36275 "of libguestfs. Note however that you have to do C<run> first."
36279 #: ../src/guestfs.pod:1526
36280 msgid "SINGLE CALLS AT COMPILE TIME"
36284 #: ../src/guestfs.pod:1528
36286 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36287 "function, such as:"
36291 #: ../src/guestfs.pod:1531
36294 " #define LIBGUESTFS_HAVE_DD 1\n"
36297 " #define LIBGUESTFS_HAVE_DD 1\n"
36301 #: ../src/guestfs.pod:1533
36302 msgid "if L</guestfs_dd> is available."
36306 #: ../src/guestfs.pod:1535
36308 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36309 "function is available at compile time, we recommended using build tools such "
36310 "as autoconf or cmake. For example in autotools you could use:"
36314 #: ../src/guestfs.pod:1540
36317 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36318 " AC_CHECK_FUNCS([guestfs_dd])\n"
36321 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36322 " AC_CHECK_FUNCS([guestfs_dd])\n"
36326 #: ../src/guestfs.pod:1543
36328 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36333 #: ../src/guestfs.pod:1546
36334 msgid "SINGLE CALLS AT RUN TIME"
36338 #: ../src/guestfs.pod:1548
36340 "Testing at compile time doesn't guarantee that a function really exists in "
36341 "the library. The reason is that you might be dynamically linked against a "
36342 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
36343 "This situation unfortunately results in a segmentation fault, which is a "
36344 "shortcoming of the C dynamic linking system itself."
36348 #: ../src/guestfs.pod:1555
36350 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36351 "in this example program (note that you still need the compile time check as "
36356 #: ../src/guestfs.pod:1559
36359 " #include <stdio.h>\n"
36360 " #include <stdlib.h>\n"
36361 " #include <unistd.h>\n"
36362 " #include <dlfcn.h>\n"
36363 " #include <guestfs.h>\n"
36366 " #include <stdio.h>\n"
36367 " #include <stdlib.h>\n"
36368 " #include <unistd.h>\n"
36369 " #include <dlfcn.h>\n"
36370 " #include <guestfs.h>\n"
36374 #: ../src/guestfs.pod:1565
36379 " #ifdef LIBGUESTFS_HAVE_DD\n"
36381 " int has_function;\n"
36386 " #ifdef LIBGUESTFS_HAVE_DD\n"
36388 " int has_function;\n"
36392 #: ../src/guestfs.pod:1571
36395 " /* Test if the function guestfs_dd is really available. */\n"
36396 " dl = dlopen (NULL, RTLD_LAZY);\n"
36398 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36399 " exit (EXIT_FAILURE);\n"
36401 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36407 #: ../src/guestfs.pod:1580
36410 " if (!has_function)\n"
36411 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36413 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36414 " /* Now it's safe to call\n"
36415 " guestfs_dd (g, \"foo\", \"bar\");\n"
36419 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36426 #: ../src/guestfs.pod:1593
36428 "You may think the above is an awful lot of hassle, and it is. There are "
36429 "other ways outside of the C linking system to ensure that this kind of "
36430 "incompatibility never arises, such as using package versioning:"
36434 #: ../src/guestfs.pod:1598
36437 " Requires: libguestfs >= 1.0.80\n"
36442 #: ../src/guestfs.pod:1600
36443 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36447 #: ../src/guestfs.pod:1602
36449 "A recent feature of the API is the introduction of calls which take optional "
36450 "arguments. In C these are declared 3 ways. The main way is as a call which "
36451 "takes variable arguments (ie. C<...>), as in this example:"
36455 #: ../src/guestfs.pod:1607
36458 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36461 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36465 #: ../src/guestfs.pod:1609
36467 "Call this with a list of optional arguments, terminated by C<-1>. So to "
36468 "call with no optional arguments specified:"
36472 #: ../src/guestfs.pod:1612
36475 " guestfs_add_drive_opts (g, filename, -1);\n"
36478 " guestfs_add_drive_opts (g, filename, -1);\n"
36482 #: ../src/guestfs.pod:1614
36483 msgid "With a single optional argument:"
36487 #: ../src/guestfs.pod:1616
36490 " guestfs_add_drive_opts (g, filename,\n"
36491 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36495 " guestfs_add_drive_opts (g, filename,\n"
36496 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36501 #: ../src/guestfs.pod:1620
36506 #: ../src/guestfs.pod:1622
36509 " guestfs_add_drive_opts (g, filename,\n"
36510 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36511 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36515 " guestfs_add_drive_opts (g, filename,\n"
36516 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36517 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36522 #: ../src/guestfs.pod:1627
36524 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
36529 #: ../src/guestfs.pod:1630
36530 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36534 #: ../src/guestfs.pod:1632
36536 "The second variant has the same name with the suffix C<_va>, which works the "
36537 "same way but takes a C<va_list>. See the C manual for details. For the "
36538 "example function, this is declared:"
36542 #: ../src/guestfs.pod:1636
36545 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36546 " va_list args);\n"
36549 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36550 " va_list args);\n"
36554 #: ../src/guestfs.pod:1639
36555 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36559 #: ../src/guestfs.pod:1641
36561 "The third variant is useful where you need to construct these calls. You "
36562 "pass in a structure where you fill in the optional fields. The structure "
36563 "has a bitmask as the first element which you must set to indicate which "
36564 "fields you have filled in. For our example function the structure and call "
36569 #: ../src/guestfs.pod:1647
36572 " struct guestfs_add_drive_opts_argv {\n"
36573 " uint64_t bitmask;\n"
36575 " const char *format;\n"
36578 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36579 " const struct guestfs_add_drive_opts_argv *optargs);\n"
36582 " struct guestfs_add_drive_opts_argv {\n"
36583 " uint64_t bitmask;\n"
36585 " const char *format;\n"
36588 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36589 " const struct guestfs_add_drive_opts_argv *optargs);\n"
36593 #: ../src/guestfs.pod:1656
36594 msgid "You could call it like this:"
36598 #: ../src/guestfs.pod:1658
36601 " struct guestfs_add_drive_opts_argv optargs = {\n"
36602 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36603 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36604 " .readonly = 1,\n"
36605 " .format = \"qcow2\"\n"
36609 " struct guestfs_add_drive_opts_argv optargs = {\n"
36610 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36611 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36612 " .readonly = 1,\n"
36613 " .format = \"qcow2\"\n"
36618 #: ../src/guestfs.pod:1665
36621 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36624 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36628 #: ../src/guestfs.pod:1673
36629 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36633 #: ../src/guestfs.pod:1678
36634 msgid "You do not need to fill in all fields of the structure."
36638 #: ../src/guestfs.pod:1682
36640 "There must be a one-to-one correspondence between fields of the structure "
36641 "that are filled in, and bits set in the bitmask."
36645 #: ../src/guestfs.pod:1687
36646 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36650 #: ../src/guestfs.pod:1689
36652 "In other languages, optional arguments are expressed in the way that is "
36653 "natural for that language. We refer you to the language-specific "
36654 "documentation for more details on that."
36658 #: ../src/guestfs.pod:1693
36659 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36663 #: ../src/guestfs.pod:1695
36664 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36668 #: ../src/guestfs.pod:1697
36670 "B<Note:> This section documents the generic event mechanism introduced in "
36671 "libguestfs 1.10, which you should use in new code if possible. The old "
36672 "functions C<guestfs_set_log_message_callback>, "
36673 "C<guestfs_set_subprocess_quit_callback>, "
36674 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36675 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36676 "page. Because of the ABI guarantee, the old functions continue to work."
36680 #: ../src/guestfs.pod:1706
36682 "Handles generate events when certain things happen, such as log messages "
36683 "being generated, progress messages during long-running operations, or the "
36684 "handle being closed. The API calls described below let you register a "
36685 "callback to be called when events happen. You can register multiple "
36686 "callbacks (for the same, different or overlapping sets of events), and "
36687 "individually remove callbacks. If callbacks are not removed, then they "
36688 "remain in force until the handle is closed."
36692 #: ../src/guestfs.pod:1714
36694 "In the current implementation, events are only generated synchronously: that "
36695 "means that events (and hence callbacks) can only happen while you are in the "
36696 "middle of making another libguestfs call. The callback is called in the "
36701 #: ../src/guestfs.pod:1719
36703 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36704 "unsigned integers, or a message buffer. Payloads are discussed later on."
36708 #: ../src/guestfs.pod:1723
36709 msgid "CLASSES OF EVENTS"
36713 #: ../src/guestfs.pod:1727
36714 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36718 #: ../src/guestfs.pod:1730
36720 "The callback function will be called while the handle is being closed "
36721 "(synchronously from L</guestfs_close>)."
36725 #: ../src/guestfs.pod:1733
36727 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36728 "handles that are open when the program exits. This means that this callback "
36729 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36730 "problems in higher-level languages (eg. if your HLL interpreter has already "
36731 "been cleaned up by the time this is called, and if your callback then jumps "
36732 "into some HLL function)."
36736 #: ../src/guestfs.pod:1740
36738 "If no callback is registered: the handle is closed without any callback "
36743 #: ../src/guestfs.pod:1743
36744 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36748 #: ../src/guestfs.pod:1746
36750 "The callback function will be called when the child process quits, either "
36751 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
36752 "corresponds to a transition from any state to the CONFIG state)."
36756 #: ../src/guestfs.pod:1750 ../src/guestfs.pod:1759 ../src/guestfs.pod:1876
36757 msgid "If no callback is registered: the event is ignored."
36761 #: ../src/guestfs.pod:1752
36762 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36766 #: ../src/guestfs.pod:1755
36768 "The callback function will be called when the child process becomes ready "
36769 "first time after it has been launched. (This corresponds to a transition "
36770 "from LAUNCHING to the READY state)."
36774 #: ../src/guestfs.pod:1761
36775 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36779 #: ../src/guestfs.pod:1764
36781 "Some long-running operations can generate progress messages. If this "
36782 "callback is registered, then it will be called each time a progress message "
36783 "is generated (usually two seconds after the operation started, and three "
36784 "times per second thereafter until it completes, although the frequency may "
36785 "change in future versions)."
36789 #: ../src/guestfs.pod:1770
36791 "The callback receives in the payload four unsigned 64 bit numbers which are "
36792 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36796 #: ../src/guestfs.pod:1773
36798 "The units of C<total> are not defined, although for some operations C<total> "
36799 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36800 "or megabytes), and C<position> may be the portion which has been transferred."
36804 #: ../src/guestfs.pod:1778
36805 msgid "The only defined and stable parts of the API are:"
36809 #: ../src/guestfs.pod:1784
36811 "The callback can display to the user some type of progress bar or indicator "
36812 "which shows the ratio of C<position>:C<total>."
36816 #: ../src/guestfs.pod:1789
36817 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36821 #: ../src/guestfs.pod:1793
36823 "If any progress notification is sent during a call, then a final progress "
36824 "notification is always sent when C<position> = C<total> (I<unless> the call "
36825 "fails with an error)."
36829 #: ../src/guestfs.pod:1797
36831 "This is to simplify caller code, so callers can easily set the progress "
36832 "indicator to \"100%\" at the end of the operation, without requiring special "
36833 "code to detect this case."
36837 #: ../src/guestfs.pod:1803
36839 "For some calls we are unable to estimate the progress of the call, but we "
36840 "can still generate progress messages to indicate activity. This is known as "
36841 "\"pulse mode\", and is directly supported by certain progress bar "
36842 "implementations (eg. GtkProgressBar)."
36846 #: ../src/guestfs.pod:1808
36848 "For these calls, zero or more progress messages are generated with "
36849 "C<position = 0> and C<total = 1>, followed by a final message with "
36850 "C<position = total = 1>."
36854 #: ../src/guestfs.pod:1812
36856 "As noted above, if the call fails with an error then the final message may "
36857 "not be generated."
36861 #: ../src/guestfs.pod:1817
36863 "The callback also receives the procedure number (C<proc_nr>) and serial "
36864 "number (C<serial>) of the call. These are only useful for debugging "
36865 "protocol issues, and the callback can normally ignore them. The callback "
36866 "may want to print these numbers in error messages or debugging messages."
36870 #: ../src/guestfs.pod:1823
36871 msgid "If no callback is registered: progress messages are discarded."
36875 #: ../src/guestfs.pod:1825
36876 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36880 #: ../src/guestfs.pod:1828
36882 "The callback function is called whenever a log message is generated by qemu, "
36883 "the appliance kernel, guestfsd (daemon), or utility programs."
36887 #: ../src/guestfs.pod:1831
36889 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36890 "guestfs_launch>) then additional debug messages are generated."
36894 #: ../src/guestfs.pod:1834 ../src/guestfs.pod:1848
36896 "If no callback is registered: the messages are discarded unless the verbose "
36897 "flag is set in which case they are sent to stderr. You can override the "
36898 "printing of verbose messages to stderr by setting up a callback."
36902 #: ../src/guestfs.pod:1839
36903 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36907 #: ../src/guestfs.pod:1842
36909 "The callback function is called whenever a log message is generated by the "
36910 "library part of libguestfs."
36914 #: ../src/guestfs.pod:1845
36916 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36917 "messages are generated."
36921 #: ../src/guestfs.pod:1853
36922 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36926 #: ../src/guestfs.pod:1856
36928 "The callback function is called whenever a trace message is generated. This "
36929 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36933 #: ../src/guestfs.pod:1859
36935 "If no callback is registered: the messages are sent to stderr. You can "
36936 "override the printing of trace messages to stderr by setting up a callback."
36940 #: ../src/guestfs.pod:1863
36941 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36945 #: ../src/guestfs.pod:1866
36947 "The callback function is called whenever a libguestfs function is entered."
36951 #: ../src/guestfs.pod:1869
36953 "The payload is a string which contains the name of the function that we are "
36954 "entering (not including C<guestfs_> prefix)."
36958 #: ../src/guestfs.pod:1872
36960 "Note that libguestfs functions can call themselves, so you may see many "
36961 "events from a single call. A few libguestfs functions do not generate this "
36966 #: ../src/guestfs.pod:1880
36967 msgid "guestfs_set_event_callback"
36971 #: ../src/guestfs.pod:1882
36974 " int guestfs_set_event_callback (guestfs_h *g,\n"
36975 " guestfs_event_callback cb,\n"
36976 " uint64_t event_bitmask,\n"
36978 " void *opaque);\n"
36983 #: ../src/guestfs.pod:1888
36985 "This function registers a callback (C<cb>) for all event classes in the "
36986 "C<event_bitmask>."
36990 #: ../src/guestfs.pod:1891
36992 "For example, to register for all log message events, you could call this "
36993 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
36994 "To register a single callback for all possible classes of events, use "
36995 "C<GUESTFS_EVENT_ALL>."
36999 #: ../src/guestfs.pod:1897
37000 msgid "C<flags> should always be passed as 0."
37004 #: ../src/guestfs.pod:1899
37006 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
37007 "it for any purpose."
37011 #: ../src/guestfs.pod:1902
37013 "The return value is the event handle (an integer) which you can use to "
37014 "delete the callback (see below)."
37018 #: ../src/guestfs.pod:1905
37020 "If there is an error, this function returns C<-1>, and sets the error in the "
37021 "handle in the usual way (see L</guestfs_last_error> etc.)"
37025 #: ../src/guestfs.pod:1908
37027 "Callbacks remain in effect until they are deleted, or until the handle is "
37032 #: ../src/guestfs.pod:1911
37034 "In the case where multiple callbacks are registered for a particular event "
37035 "class, all of the callbacks are called. The order in which multiple "
37036 "callbacks are called is not defined."
37040 #: ../src/guestfs.pod:1915
37041 msgid "guestfs_delete_event_callback"
37045 #: ../src/guestfs.pod:1917
37048 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37053 #: ../src/guestfs.pod:1919
37055 "Delete a callback that was previously registered. C<event_handle> should be "
37056 "the integer that was returned by a previous call to "
37057 "C<guestfs_set_event_callback> on the same handle."
37061 #: ../src/guestfs.pod:1923
37062 msgid "guestfs_event_callback"
37066 #: ../src/guestfs.pod:1925
37069 " typedef void (*guestfs_event_callback) (\n"
37072 " uint64_t event,\n"
37073 " int event_handle,\n"
37075 " const char *buf, size_t buf_len,\n"
37076 " const uint64_t *array, size_t array_len);\n"
37081 #: ../src/guestfs.pod:1934
37083 "This is the type of the event callback function that you have to provide."
37087 #: ../src/guestfs.pod:1937
37089 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37090 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37091 "handle, and C<flags> which in the current API you should ignore."
37095 #: ../src/guestfs.pod:1941
37097 "The remaining parameters contain the event payload (if any). Each event may "
37098 "contain a payload, which usually relates to the event class, but for future "
37099 "proofing your code should be written to handle any payload for any event "
37104 #: ../src/guestfs.pod:1946
37106 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37107 "there is no message buffer). Note that this message buffer can contain "
37108 "arbitrary 8 bit data, including NUL bytes."
37112 #: ../src/guestfs.pod:1950
37114 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
37115 "moment this is only used for progress messages."
37119 #: ../src/guestfs.pod:1953
37120 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37124 #: ../src/guestfs.pod:1955
37126 "One motivation for the generic event API was to allow GUI programs to "
37127 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
37128 "unconditionally to C<stderr>."
37132 #: ../src/guestfs.pod:1959
37134 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37135 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
37136 "messages are not events; you must capture error messages separately)."
37140 #: ../src/guestfs.pod:1964
37142 "Programs have to set up a callback to capture the classes of events of "
37147 #: ../src/guestfs.pod:1967
37151 " guestfs_set_event_callback\n"
37152 " (g, message_callback,\n"
37153 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37154 " GUESTFS_EVENT_TRACE,\n"
37155 " 0, NULL) == -1)\n"
37156 " if (eh == -1) {\n"
37157 " // handle error in the usual way\n"
37163 #: ../src/guestfs.pod:1977
37165 "The callback can then direct messages to the appropriate place. In this "
37166 "example, messages are directed to syslog:"
37170 #: ../src/guestfs.pod:1980
37174 " message_callback (\n"
37177 " uint64_t event,\n"
37178 " int event_handle,\n"
37180 " const char *buf, size_t buf_len,\n"
37181 " const uint64_t *array, size_t array_len)\n"
37183 " const int priority = LOG_USER|LOG_INFO;\n"
37184 " if (buf_len > 0)\n"
37185 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37191 #: ../src/guestfs.pod:1995
37192 msgid "CANCELLING LONG TRANSFERS"
37196 #: ../src/guestfs.pod:1997
37198 "Some operations can be cancelled by the caller while they are in progress. "
37199 "Currently only operations that involve uploading or downloading data can be "
37200 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37201 "parameters in the generator)."
37205 #: ../src/guestfs.pod:2002
37206 msgid "guestfs_user_cancel"
37210 #: ../src/guestfs.pod:2004
37213 " void guestfs_user_cancel (guestfs_h *g);\n"
37218 #: ../src/guestfs.pod:2006
37220 "C<guestfs_user_cancel> cancels the current upload or download operation."
37224 #: ../src/guestfs.pod:2009
37226 "Unlike most other libguestfs calls, this function is signal safe and thread "
37227 "safe. You can call it from a signal handler or from another thread, without "
37228 "needing to do any locking."
37232 #: ../src/guestfs.pod:2013
37234 "The transfer that was in progress (if there is one) will stop shortly "
37235 "afterwards, and will return an error. The errno (see L</"
37236 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37237 "out if the operation was cancelled or failed because of another error."
37241 #: ../src/guestfs.pod:2019
37243 "No cleanup is performed: for example, if a file was being uploaded then "
37244 "after cancellation there may be a partially uploaded file. It is the "
37245 "caller's responsibility to clean up if necessary."
37249 #: ../src/guestfs.pod:2023
37250 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37254 #: ../src/guestfs.pod:2025
37256 "In an interactive text-based program, you might call it from a C<SIGINT> "
37257 "signal handler so that pressing C<^C> cancels the current operation. (You "
37258 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37259 "receive the C<^C> signal)."
37263 #: ../src/guestfs.pod:2030
37265 "In a graphical program, when the main thread is displaying a progress bar "
37266 "with a cancel button, wire up the cancel button to call this function."
37270 #: ../src/guestfs.pod:2034
37271 msgid "PRIVATE DATA AREA"
37275 #: ../src/guestfs.pod:2036
37277 "You can attach named pieces of private data to the libguestfs handle, fetch "
37278 "them by name, and walk over them, for the lifetime of the handle. This is "
37279 "called the private data area and is only available from the C API."
37283 #: ../src/guestfs.pod:2041
37284 msgid "To attach a named piece of data, use the following call:"
37288 #: ../src/guestfs.pod:2043
37291 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37294 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37298 #: ../src/guestfs.pod:2045
37300 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37301 "pointer (which can be C<NULL>). Any previous item with the same key is "
37306 #: ../src/guestfs.pod:2049
37308 "You can use any C<key> you want, but your key should I<not> start with an "
37309 "underscore character. Keys beginning with an underscore character are "
37310 "reserved for internal libguestfs purposes (eg. for implementing language "
37311 "bindings). It is recommended that you prefix the key with some unique "
37312 "string to avoid collisions with other users."
37316 #: ../src/guestfs.pod:2055
37317 msgid "To retrieve the pointer, use:"
37321 #: ../src/guestfs.pod:2057
37324 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37327 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37331 #: ../src/guestfs.pod:2059
37333 "This function returns C<NULL> if either no data is found associated with "
37334 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37339 #: ../src/guestfs.pod:2063
37341 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37342 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
37343 "all. In particular, libguestfs does I<not> try to free the data when the "
37344 "handle is closed. If the data must be freed, then the caller must either "
37345 "free it before calling L</guestfs_close> or must set up a close callback to "
37346 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37350 #: ../src/guestfs.pod:2070
37351 msgid "To walk over all entries, use these two functions:"
37355 #: ../src/guestfs.pod:2072
37358 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37363 #: ../src/guestfs.pod:2074
37366 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37371 #: ../src/guestfs.pod:2076
37373 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37374 "not have any particular meaning -- keys are not returned in any defined "
37375 "order). A pointer to the key is returned in C<*key_rtn> and the "
37376 "corresponding data pointer is returned from the function. C<NULL> is "
37377 "returned if there are no keys stored in the handle."
37381 #: ../src/guestfs.pod:2082
37383 "C<guestfs_next_private> returns the next key, pointer pair. The return "
37384 "value of this function is also C<NULL> is there are no further entries to "
37389 #: ../src/guestfs.pod:2086
37390 msgid "Notes about walking over entries:"
37394 #: ../src/guestfs.pod:2092
37396 "You must not call C<guestfs_set_private> while walking over the entries."
37400 #: ../src/guestfs.pod:2097
37402 "The handle maintains an internal iterator which is reset when you call "
37403 "C<guestfs_first_private>. This internal iterator is invalidated when you "
37404 "call C<guestfs_set_private>."
37408 #: ../src/guestfs.pod:2103
37409 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37413 #: ../src/guestfs.pod:2105
37416 " guestfs_set_private (g, key, NULL);\n"
37421 #: ../src/guestfs.pod:2107
37422 msgid "then that C<key> is not returned when walking."
37426 #: ../src/guestfs.pod:2111
37428 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37429 "C<guestfs_next_private> or C<guestfs_set_private>."
37433 #: ../src/guestfs.pod:2117
37435 "The following example code shows how to print all keys and data pointers "
37436 "that are associated with the handle C<g>:"
37440 #: ../src/guestfs.pod:2120
37443 " const char *key;\n"
37444 " void *data = guestfs_first_private (g, &key);\n"
37445 " while (data != NULL)\n"
37447 " printf (\"key = %s, data = %p\\n\", key, data);\n"
37448 " data = guestfs_next_private (g, &key);\n"
37454 #: ../src/guestfs.pod:2128
37456 "More commonly you are only interested in keys that begin with an application-"
37457 "specific prefix C<foo_>. Modify the loop like so:"
37461 #: ../src/guestfs.pod:2131
37464 " const char *key;\n"
37465 " void *data = guestfs_first_private (g, &key);\n"
37466 " while (data != NULL)\n"
37468 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37469 " printf (\"key = %s, data = %p\\n\", key, data);\n"
37470 " data = guestfs_next_private (g, &key);\n"
37476 #: ../src/guestfs.pod:2140
37478 "If you need to modify keys while walking, then you have to jump back to the "
37479 "beginning of the loop. For example, to delete all keys prefixed with "
37484 #: ../src/guestfs.pod:2144
37487 " const char *key;\n"
37490 " data = guestfs_first_private (g, &key);\n"
37491 " while (data != NULL)\n"
37493 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37495 " guestfs_set_private (g, key, NULL);\n"
37496 " /* note that 'key' pointer is now invalid, and so is\n"
37497 " the internal iterator */\n"
37500 " data = guestfs_next_private (g, &key);\n"
37506 #: ../src/guestfs.pod:2160
37508 "Note that the above loop is guaranteed to terminate because the keys are "
37509 "being deleted, but other manipulations of keys within the loop might not "
37510 "terminate unless you also maintain an indication of which keys have been "
37515 #: ../src/guestfs.pod:2165 ../src/guestfs.pod:2170
37520 #: ../src/guestfs.pod:2167
37522 "<!-- old anchor for the next section --> <a name="
37523 "\"state_machine_and_low_level_event_api\"/>"
37525 "<!-- old anchor for the next section --> <a name="
37526 "\"state_machine_and_low_level_event_api\"/>"
37529 #: ../src/guestfs.pod:2172
37530 msgid "ARCHITECTURE"
37531 msgstr "АРХІТЕКТУРА"
37534 #: ../src/guestfs.pod:2174
37536 "Internally, libguestfs is implemented by running an appliance (a special "
37537 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
37538 "process of the main program."
37542 #: ../src/guestfs.pod:2178
37545 " ___________________\n"
37547 " | main program |\n"
37549 " | | child process / appliance\n"
37550 " | | __________________________\n"
37552 " +-------------------+ RPC | +-----------------+ |\n"
37553 " | libguestfs <--------------------> guestfsd | |\n"
37554 " | | | +-----------------+ |\n"
37555 " \\___________________/ | | Linux kernel | |\n"
37556 " | +--^--------------+ |\n"
37557 " \\_________|________________/\n"
37559 " _______v______\n"
37562 " | disk image |\n"
37563 " \\______________/\n"
37568 #: ../src/guestfs.pod:2198
37570 "The library, linked to the main program, creates the child process and hence "
37571 "the appliance in the L</guestfs_launch> function."
37575 #: ../src/guestfs.pod:2201
37577 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37578 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37579 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
37580 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
37581 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
37582 "attached to the qemu process which translates device access by the "
37583 "appliance's Linux kernel into accesses to the image."
37587 #: ../src/guestfs.pod:2210
37589 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
37590 "Although the disk image you are attached to might also be used by some "
37591 "virtual machine, libguestfs doesn't know or care about this. (But you will "
37592 "care if both libguestfs's qemu process and your virtual machine are trying "
37593 "to update the disk image at the same time, since these usually results in "
37594 "massive disk corruption)."
37598 #: ../src/guestfs.pod:2217
37599 msgid "STATE MACHINE"
37600 msgstr "СКІНЧЕННИЙ АВТОМАТ"
37603 #: ../src/guestfs.pod:2219
37604 msgid "libguestfs uses a state machine to model the child process:"
37608 #: ../src/guestfs.pod:2221
37612 " guestfs_create\n"
37620 " / | \\ \\ guestfs_launch\n"
37621 " / | _\\__V______\n"
37623 " / | | LAUNCHING |\n"
37624 " / | \\___________/\n"
37626 " / | guestfs_launch\n"
37628 " ______ / __|____V\n"
37629 " / \\ ------> / \\\n"
37630 " | BUSY | | READY |\n"
37631 " \\______/ <------ \\________/\n"
37636 #: ../src/guestfs.pod:2243
37638 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37639 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37640 "(3) alternating between READY and BUSY as commands are issued to, and "
37641 "carried out by, the child process."
37645 #: ../src/guestfs.pod:2248
37647 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37648 "asynchronously at any time (eg. due to some internal error), and that causes "
37649 "the state to transition back to CONFIG."
37653 #: ../src/guestfs.pod:2252
37655 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37656 "issued when in the CONFIG state."
37660 #: ../src/guestfs.pod:2255
37662 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
37663 "L</guestfs_launch> blocks until the child process is READY to accept "
37664 "commands (or until some failure or timeout). L</guestfs_launch> internally "
37665 "moves the state from CONFIG to LAUNCHING while it is running."
37669 #: ../src/guestfs.pod:2261
37671 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37672 "state. These API calls block waiting for the command to be carried out (ie. "
37673 "the state to transition to BUSY and then back to READY). There are no non-"
37674 "blocking versions, and no way to issue more than one command per handle at "
37679 #: ../src/guestfs.pod:2267
37681 "Finally, the child process sends asynchronous messages back to the main "
37682 "program, such as kernel log messages. You can register a callback to "
37683 "receive these messages."
37687 #: ../src/guestfs.pod:2271
37692 #: ../src/guestfs.pod:2273
37693 msgid "APPLIANCE BOOT PROCESS"
37697 #: ../src/guestfs.pod:2275
37699 "This process has evolved and continues to evolve. The description here "
37700 "corresponds only to the current version of libguestfs and is provided for "
37701 "information only."
37705 #: ../src/guestfs.pod:2279
37707 "In order to follow the stages involved below, enable libguestfs debugging "
37708 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37712 #: ../src/guestfs.pod:2284
37714 #| msgid "C<appliance>"
37715 msgid "Create the appliance"
37716 msgstr "C<appliance>"
37719 #: ../src/guestfs.pod:2286
37721 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37722 "initrd and the appliance."
37726 #: ../src/guestfs.pod:2289
37728 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37729 "directory if C<TMPDIR> is set)."
37733 #: ../src/guestfs.pod:2292
37735 "For a complete description of how the appliance is created and cached, read "
37736 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37740 #: ../src/guestfs.pod:2296
37741 msgid "Start qemu and boot the kernel"
37745 #: ../src/guestfs.pod:2298
37746 msgid "qemu is invoked to boot the kernel."
37750 #: ../src/guestfs.pod:2300
37751 msgid "Run the initrd"
37755 #: ../src/guestfs.pod:2302
37757 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
37758 "appliance. The purpose of the initrd is to load enough kernel modules in "
37759 "order that the appliance itself can be mounted and started."
37763 #: ../src/guestfs.pod:2306
37765 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37770 #: ../src/guestfs.pod:2309
37772 "When the initrd has started you will see messages showing that kernel "
37773 "modules are being loaded, similar to this:"
37777 #: ../src/guestfs.pod:2312
37780 " febootstrap: ext2 mini initrd starting up\n"
37781 " febootstrap: mounting /sys\n"
37782 " febootstrap: internal insmod libcrc32c.ko\n"
37783 " febootstrap: internal insmod crc32c-intel.ko\n"
37788 #: ../src/guestfs.pod:2317
37789 msgid "Find and mount the appliance device"
37793 #: ../src/guestfs.pod:2319
37795 "The appliance is a sparse file containing an ext2 filesystem which contains "
37796 "a familiar (although reduced in size) Linux operating system. It would "
37797 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37801 #: ../src/guestfs.pod:2323
37803 "The regular disks being inspected by libguestfs are the first devices "
37804 "exposed by qemu (eg. as C</dev/vda>)."
37808 #: ../src/guestfs.pod:2326
37810 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37811 "there was only one regular disk)."
37815 #: ../src/guestfs.pod:2329
37817 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37818 "and switch root into the appliance, and run C</init> from the appliance."
37822 #: ../src/guestfs.pod:2333
37823 msgid "If this works successfully you will see messages such as:"
37827 #: ../src/guestfs.pod:2335
37830 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37831 " febootstrap: creating /dev/root as block special 252:16\n"
37832 " febootstrap: mounting new root on /root\n"
37833 " febootstrap: chroot\n"
37834 " Starting /init script ...\n"
37839 #: ../src/guestfs.pod:2341
37841 "Note that C<Starting /init script ...> indicates that the appliance's init "
37842 "script is now running."
37846 #: ../src/guestfs.pod:2344
37847 msgid "Initialize the appliance"
37851 #: ../src/guestfs.pod:2346
37853 "The appliance itself now initializes itself. This involves starting certain "
37854 "processes like C<udev>, possibly printing some debug information, and "
37855 "finally running the daemon (C<guestfsd>)."
37859 #: ../src/guestfs.pod:2350
37861 #| msgid "C<daemon>"
37866 #: ../src/guestfs.pod:2352
37868 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
37873 #: ../src/guestfs.pod:2355
37876 #| " set-verbose true|false\n"
37879 " verbose daemon enabled\n"
37882 " set-verbose true|false\n"
37886 #: ../src/guestfs.pod:2357
37888 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37889 "connected on the other end to the library."
37893 #: ../src/guestfs.pod:2360
37895 "The daemon connects to this port (and hence to the library) and sends a four "
37896 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37897 "protocol (see below)."
37901 #: ../src/guestfs.pod:2366
37902 msgid "COMMUNICATION PROTOCOL"
37906 #: ../src/guestfs.pod:2368
37908 "Don't rely on using this protocol directly. This section documents how it "
37909 "currently works, but it may change at any time."
37913 #: ../src/guestfs.pod:2371
37915 "The protocol used to talk between the library and the daemon running inside "
37916 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37917 "1014, RFC 1832, RFC 4506)."
37921 #: ../src/guestfs.pod:2375
37923 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37924 "this file is automatically generated)."
37928 #: ../src/guestfs.pod:2378
37930 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37931 "and C<FileOut> parameters, which are handled with very simple request/reply "
37932 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
37933 "parameters, which use the same request and reply messages, but they may also "
37934 "be followed by files sent using a chunked encoding."
37938 #: ../src/guestfs.pod:2385
37939 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37943 #: ../src/guestfs.pod:2387
37944 msgid "For ordinary functions, the request message is:"
37948 #: ../src/guestfs.pod:2389
37951 " total length (header + arguments,\n"
37952 " but not including the length word itself)\n"
37953 " struct guestfs_message_header (encoded as XDR)\n"
37954 " struct guestfs_<foo>_args (encoded as XDR)\n"
37959 #: ../src/guestfs.pod:2394
37961 "The total length field allows the daemon to allocate a fixed size buffer "
37962 "into which it slurps the rest of the message. As a result, the total length "
37963 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37964 "effective size of any request is limited to somewhere under this size."
37968 #: ../src/guestfs.pod:2400
37970 "Note also that many functions don't take any arguments, in which case the "
37971 "C<guestfs_I<foo>_args> is completely omitted."
37975 #: ../src/guestfs.pod:2403
37977 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37978 "receiver knows what type of args structure to expect, or none at all."
37982 #: ../src/guestfs.pod:2407
37984 "For functions that take optional arguments, the optional arguments are "
37985 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37986 "arguments. A bitmask in the header indicates which optional arguments are "
37987 "meaningful. The bitmask is also checked to see if it contains bits set "
37988 "which the daemon does not know about (eg. if more optional arguments were "
37989 "added in a later version of the library), and this causes the call to be "
37994 #: ../src/guestfs.pod:2415
37995 msgid "The reply message for ordinary functions is:"
37999 #: ../src/guestfs.pod:2417
38002 " total length (header + ret,\n"
38003 " but not including the length word itself)\n"
38004 " struct guestfs_message_header (encoded as XDR)\n"
38005 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38010 #: ../src/guestfs.pod:2422
38012 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38013 "functions that return no formal return values."
38017 #: ../src/guestfs.pod:2425
38019 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38023 #: ../src/guestfs.pod:2428
38025 "In the case of an error, a flag is set in the header, and the reply message "
38026 "is slightly changed:"
38030 #: ../src/guestfs.pod:2431
38033 " total length (header + error,\n"
38034 " but not including the length word itself)\n"
38035 " struct guestfs_message_header (encoded as XDR)\n"
38036 " struct guestfs_message_error (encoded as XDR)\n"
38041 #: ../src/guestfs.pod:2436
38043 "The C<guestfs_message_error> structure contains the error message as a "
38048 #: ../src/guestfs.pod:2439
38049 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38053 #: ../src/guestfs.pod:2441
38055 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
38056 "The normal request message is sent (see above). However this is followed by "
38057 "a sequence of file chunks."
38061 #: ../src/guestfs.pod:2445
38064 " total length (header + arguments,\n"
38065 " but not including the length word itself,\n"
38066 " and not including the chunks)\n"
38067 " struct guestfs_message_header (encoded as XDR)\n"
38068 " struct guestfs_<foo>_args (encoded as XDR)\n"
38069 " sequence of chunks for FileIn param #0\n"
38070 " sequence of chunks for FileIn param #1 etc.\n"
38075 #: ../src/guestfs.pod:2453
38076 msgid "The \"sequence of chunks\" is:"
38080 #: ../src/guestfs.pod:2455
38083 " length of chunk (not including length word itself)\n"
38084 " struct guestfs_chunk (encoded as XDR)\n"
38085 " length of chunk\n"
38086 " struct guestfs_chunk (encoded as XDR)\n"
38088 " length of chunk\n"
38089 " struct guestfs_chunk (with data.data_len == 0)\n"
38094 #: ../src/guestfs.pod:2463
38096 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
38097 "is set in the final chunk to indicate either successful completion or early "
38102 #: ../src/guestfs.pod:2467
38104 "At time of writing there are no functions that have more than one FileIn "
38105 "parameter. However this is (theoretically) supported, by sending the "
38106 "sequence of chunks for each FileIn parameter one after another (from left to "
38111 #: ../src/guestfs.pod:2472
38113 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38114 "transfer. The library does this by sending a chunk with a special flag set "
38115 "to indicate cancellation. When the daemon sees this, it cancels the whole "
38116 "RPC, does I<not> send any reply, and goes back to reading the next request."
38120 #: ../src/guestfs.pod:2478
38122 "The daemon may also cancel. It does this by writing a special word "
38123 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
38124 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38125 "cancel chunk). The special word is chosen so that even if cancellation "
38126 "happens right at the end of the transfer (after the library has finished "
38127 "writing and has started listening for the reply), the \"spurious\" cancel "
38128 "flag will not be confused with the reply message."
38132 #: ../src/guestfs.pod:2487
38134 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38135 "limit), and also files where the size is not known in advance (eg. from "
38136 "pipes or sockets). However the chunks are rather small "
38137 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38138 "to keep much in memory."
38142 #: ../src/guestfs.pod:2493
38143 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38147 #: ../src/guestfs.pod:2495
38149 "The protocol for FileOut parameters is exactly the same as for FileIn "
38150 "parameters, but with the roles of daemon and library reversed."
38154 #: ../src/guestfs.pod:2498
38157 " total length (header + ret,\n"
38158 " but not including the length word itself,\n"
38159 " and not including the chunks)\n"
38160 " struct guestfs_message_header (encoded as XDR)\n"
38161 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38162 " sequence of chunks for FileOut param #0\n"
38163 " sequence of chunks for FileOut param #1 etc.\n"
38168 #: ../src/guestfs.pod:2506
38169 msgid "INITIAL MESSAGE"
38173 #: ../src/guestfs.pod:2508
38175 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38176 "which indicates that the guest and daemon is alive. This is what L</"
38177 "guestfs_launch> waits for."
38181 #: ../src/guestfs.pod:2512
38182 msgid "PROGRESS NOTIFICATION MESSAGES"
38186 #: ../src/guestfs.pod:2514
38188 "The daemon may send progress notification messages at any time. These are "
38189 "distinguished by the normal length word being replaced by "
38190 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38194 #: ../src/guestfs.pod:2518
38196 "The library turns them into progress callbacks (see L</"
38197 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38202 #: ../src/guestfs.pod:2522
38204 "The daemon self-limits the frequency of progress messages it sends (see "
38205 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
38210 #: ../src/guestfs.pod:2526
38211 msgid "LIBGUESTFS VERSION NUMBERS"
38215 #: ../src/guestfs.pod:2528
38217 "Since April 2010, libguestfs has started to make separate development and "
38218 "stable releases, along with corresponding branches in our git repository. "
38219 "These separate releases can be identified by version number:"
38223 #: ../src/guestfs.pod:2533
38226 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
38227 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38233 " | `-------- sub-version\n"
38235 " `------ always '1' because we don't change the ABI\n"
38240 #: ../src/guestfs.pod:2544
38241 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38245 #: ../src/guestfs.pod:2546
38247 "As time passes we cherry pick fixes from the development branch and backport "
38248 "those into the stable branch, the effect being that the stable branch should "
38249 "get more stable and less buggy over time. So the stable releases are ideal "
38250 "for people who don't need new features but would just like the software to "
38255 #: ../src/guestfs.pod:2552
38256 msgid "Our criteria for backporting changes are:"
38260 #: ../src/guestfs.pod:2558
38262 "Documentation changes which don't affect any code are backported unless the "
38263 "documentation refers to a future feature which is not in stable."
38267 #: ../src/guestfs.pod:2564
38269 "Bug fixes which are not controversial, fix obvious problems, and have been "
38270 "well tested are backported."
38274 #: ../src/guestfs.pod:2569
38276 "Simple rearrangements of code which shouldn't affect how it works get "
38277 "backported. This is so that the code in the two branches doesn't get too "
38278 "far out of step, allowing us to backport future fixes more easily."
38282 #: ../src/guestfs.pod:2575
38284 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38285 "exceptional case: the new feature is required in order to implement an "
38286 "important bug fix."
38290 #: ../src/guestfs.pod:2581
38292 "A new stable branch starts when we think the new features in development are "
38293 "substantial and compelling enough over the current stable branch to warrant "
38294 "it. When that happens we create new stable and development versions 1.N.0 "
38295 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
38296 "stable at this point, but by backporting fixes from development, that branch "
38297 "will stabilize over time."
38301 #: ../src/guestfs.pod:2589
38302 msgid "EXTENDING LIBGUESTFS"
38306 #: ../src/guestfs.pod:2591
38307 msgid "ADDING A NEW API ACTION"
38311 #: ../src/guestfs.pod:2593
38313 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38314 "documentation) are generated, and this makes it easy to extend the "
38319 #: ../src/guestfs.pod:2597
38320 msgid "To add a new API action there are two changes:"
38324 #: ../src/guestfs.pod:2603
38326 "You need to add a description of the call (name, parameters, return type, "
38327 "tests, documentation) to C<generator/generator_actions.ml>."
38331 #: ../src/guestfs.pod:2606
38333 "There are two sorts of API action, depending on whether the call goes "
38334 "through to the daemon in the appliance, or is serviced entirely by the "
38335 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
38336 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
38337 "an example of the latter, since a trace flag is maintained in the handle and "
38338 "all tracing is done on the library side."
38342 #: ../src/guestfs.pod:2614
38344 "Most new actions are of the first type, and get added to the "
38345 "C<daemon_functions> list. Each function has a unique procedure number used "
38346 "in the RPC protocol which is assigned to that action when we publish "
38347 "libguestfs and cannot be reused. Take the latest procedure number and "
38352 #: ../src/guestfs.pod:2620
38354 "For library-only actions of the second type, add to the "
38355 "C<non_daemon_functions> list. Since these functions are serviced by the "
38356 "library and do not travel over the RPC mechanism to the daemon, these "
38357 "functions do not need a procedure number, and so the procedure number is set "
38362 #: ../src/guestfs.pod:2628
38363 msgid "Implement the action (in C):"
38367 #: ../src/guestfs.pod:2630
38369 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38370 "C<daemon/> directory."
38374 #: ../src/guestfs.pod:2633
38376 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38377 "(note: double underscore) in the C<src/> directory."
38381 #: ../src/guestfs.pod:2636
38382 msgid "In either case, use another function as an example of what to do."
38386 #: ../src/guestfs.pod:2640
38387 msgid "After making these changes, use C<make> to compile."
38391 #: ../src/guestfs.pod:2642
38393 "Note that you don't need to implement the RPC, language bindings, manual "
38394 "pages or anything else. It's all automatically generated from the OCaml "
38399 #: ../src/guestfs.pod:2646
38400 msgid "ADDING TESTS FOR AN API ACTION"
38404 #: ../src/guestfs.pod:2648
38406 "You can supply zero or as many tests as you want per API call. The tests "
38407 "can either be added as part of the API description (C<generator/"
38408 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38409 "into C<regressions/>. Note that adding a script to C<regressions/> is "
38410 "slower, so if possible use the first method."
38414 #: ../src/guestfs.pod:2654
38416 "The following describes the test environment used when you add an API test "
38417 "in C<generator_actions.ml>."
38421 #: ../src/guestfs.pod:2657
38422 msgid "The test environment has 4 block devices:"
38426 #: ../src/guestfs.pod:2661
38427 msgid "C</dev/sda> 500MB"
38428 msgstr "C</dev/sda> 500 МБ"
38431 #: ../src/guestfs.pod:2663
38432 msgid "General block device for testing."
38436 #: ../src/guestfs.pod:2665
38437 msgid "C</dev/sdb> 50MB"
38438 msgstr "C</dev/sdb> 50 МБ"
38441 #: ../src/guestfs.pod:2667
38443 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38448 #: ../src/guestfs.pod:2670
38449 msgid "C</dev/sdc> 10MB"
38450 msgstr "C</dev/sdc> 10 МБ"
38453 #: ../src/guestfs.pod:2672
38454 msgid "Used in a few tests where two block devices are needed."
38458 #: ../src/guestfs.pod:2674
38459 msgid "C</dev/sdd>"
38460 msgstr "C</dev/sdd>"
38463 #: ../src/guestfs.pod:2676
38464 msgid "ISO with fixed content (see C<images/test.iso>)."
38468 #: ../src/guestfs.pod:2680
38470 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38471 "appliance and block devices are reused between tests. So don't try testing "
38472 "L</guestfs_kill_subprocess> :-x"
38476 #: ../src/guestfs.pod:2684
38478 "Each test starts with an initial scenario, selected using one of the "
38479 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
38480 "initialize the disks mentioned above in a particular way as documented in "
38481 "C<generator_types.ml>. You should not assume anything about the previous "
38482 "contents of other disks that are not initialized."
38486 #: ../src/guestfs.pod:2690
38488 "You can add a prerequisite clause to any individual test. This is a run-"
38489 "time check, which, if it fails, causes the test to be skipped. Useful if "
38490 "testing a command which might not work on all variations of libguestfs "
38491 "builds. A test that has prerequisite of C<Always> means to run "
38496 #: ../src/guestfs.pod:2696
38498 "In addition, packagers can skip individual tests by setting environment "
38499 "variables before running C<make check>."
38503 #: ../src/guestfs.pod:2699
38506 " SKIP_TEST_<CMD>_<NUM>=1\n"
38511 #: ../src/guestfs.pod:2701
38512 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38516 #: ../src/guestfs.pod:2703
38521 #: ../src/guestfs.pod:2705
38524 " SKIP_TEST_<CMD>=1\n"
38529 #: ../src/guestfs.pod:2707
38530 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38534 #: ../src/guestfs.pod:2709
38535 msgid "Packagers can run only certain tests by setting for example:"
38539 #: ../src/guestfs.pod:2711
38542 " TEST_ONLY=\"vfs_type zerofree\"\n"
38547 #: ../src/guestfs.pod:2713
38549 "See C<capitests/tests.c> for more details of how these environment variables "
38554 #: ../src/guestfs.pod:2716
38555 msgid "DEBUGGING NEW API ACTIONS"
38559 #: ../src/guestfs.pod:2718
38560 msgid "Test new actions work before submitting them."
38564 #: ../src/guestfs.pod:2720
38565 msgid "You can use guestfish to try out new commands."
38569 #: ../src/guestfs.pod:2722
38571 "Debugging the daemon is a problem because it runs inside a minimal "
38572 "environment. However you can fprintf messages in the daemon to stderr, and "
38573 "they will show up if you use C<guestfish -v>."
38577 #: ../src/guestfs.pod:2726
38578 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38582 #: ../src/guestfs.pod:2728
38584 "Our C source code generally adheres to some basic code-formatting "
38585 "conventions. The existing code base is not totally consistent on this "
38586 "front, but we do prefer that contributed code be formatted similarly. In "
38587 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38588 "indentation level, and other than that, follow the K&R style."
38592 #: ../src/guestfs.pod:2734
38594 "If you use Emacs, add the following to one of one of your start-up files (e."
38595 "g., ~/.emacs), to help ensure that you get indentation right:"
38599 #: ../src/guestfs.pod:2737
38602 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38603 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38604 " (add-hook 'find-file-hook\n"
38605 " '(lambda () (if (and buffer-file-name\n"
38606 " (string-match \"/libguestfs\\\\>\"\n"
38607 " (buffer-file-name))\n"
38608 " (not (string-equal mode-name \"Change Log\"))\n"
38609 " (not (string-equal mode-name \"Makefile\")))\n"
38610 " (setq indent-tabs-mode nil))))\n"
38615 #: ../src/guestfs.pod:2747
38618 " ;;; When editing C sources in libguestfs, use this style.\n"
38619 " (defun libguestfs-c-mode ()\n"
38620 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
38622 " (c-set-style \"K&R\")\n"
38623 " (setq c-indent-level 2)\n"
38624 " (setq c-basic-offset 2))\n"
38625 " (add-hook 'c-mode-hook\n"
38626 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38627 " (buffer-file-name))\n"
38628 " (libguestfs-c-mode))))\n"
38633 #: ../src/guestfs.pod:2759
38634 msgid "Enable warnings when compiling (and fix any problems this finds):"
38638 #: ../src/guestfs.pod:2762
38641 " ./configure --enable-gcc-warnings\n"
38644 " ./configure --enable-gcc-warnings\n"
38648 #: ../src/guestfs.pod:2764
38649 msgid "Useful targets are:"
38653 #: ../src/guestfs.pod:2766
38656 " make syntax-check # checks the syntax of the C code\n"
38657 " make check # runs the test suite\n"
38662 #: ../src/guestfs.pod:2769
38663 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38667 #: ../src/guestfs.pod:2771
38669 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38670 "which are used to do shell quoting."
38674 #: ../src/guestfs.pod:2776
38679 #: ../src/guestfs.pod:2778
38681 "Simple shell quoted string. Any spaces or other shell characters are "
38686 #: ../src/guestfs.pod:2781
38691 #: ../src/guestfs.pod:2783
38693 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38698 #: ../src/guestfs.pod:2790
38701 " asprintf (&cmd, \"cat %R\", path);\n"
38706 #: ../src/guestfs.pod:2792
38707 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38711 #: ../src/guestfs.pod:2794
38713 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38714 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
38715 "they are not passed via the shell (instead, straight to exec). You probably "
38716 "want to use the C<sysroot_path()> function however."
38720 #: ../src/guestfs.pod:2800
38721 msgid "SUBMITTING YOUR NEW API ACTIONS"
38725 #: ../src/guestfs.pod:2802
38727 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38728 "libguestfs> and CC to L<rjones@redhat.com>."
38732 #: ../src/guestfs.pod:2806
38733 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38737 #: ../src/guestfs.pod:2808
38738 msgid "We support i18n (gettext anyhow) in the library."
38742 #: ../src/guestfs.pod:2810
38744 "However many messages come from the daemon, and we don't translate those at "
38745 "the moment. One reason is that the appliance generally has all locale files "
38746 "removed from it, because they take up a lot of space. So we'd have to readd "
38747 "some of those, as well as copying our PO files into the appliance."
38751 #: ../src/guestfs.pod:2816
38753 "Debugging messages are never translated, since they are intended for the "
38758 #: ../src/guestfs.pod:2819
38759 msgid "SOURCE CODE SUBDIRECTORIES"
38763 #: ../src/guestfs.pod:2825
38764 msgid "The libguestfs appliance, build scripts and so on."
38768 #: ../src/guestfs.pod:2827
38769 msgid "C<capitests>"
38770 msgstr "C<capitests>"
38773 #: ../src/guestfs.pod:2829
38774 msgid "Automated tests of the C API."
38778 #: ../src/guestfs.pod:2831
38783 #: ../src/guestfs.pod:2833
38785 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38790 #: ../src/guestfs.pod:2836
38795 #: ../src/guestfs.pod:2838
38797 "Safety and liveness tests of components that libguestfs depends upon (not of "
38798 "libguestfs itself). Mainly this is for qemu and the kernel."
38802 #: ../src/guestfs.pod:2841
38804 msgstr "C<contrib>"
38807 #: ../src/guestfs.pod:2843
38808 msgid "Outside contributions, experimental parts."
38812 #: ../src/guestfs.pod:2845
38817 #: ../src/guestfs.pod:2847
38819 "The daemon that runs inside the libguestfs appliance and carries out actions."
38823 #: ../src/guestfs.pod:2850
38828 #: ../src/guestfs.pod:2852
38829 msgid "L<virt-df(1)> command and documentation."
38833 #: ../src/guestfs.pod:2854
38838 #: ../src/guestfs.pod:2856
38839 msgid "L<virt-edit(1)> command and documentation."
38843 #: ../src/guestfs.pod:2858
38844 msgid "C<examples>"
38845 msgstr "C<examples>"
38848 #: ../src/guestfs.pod:2860
38849 msgid "C API example code."
38850 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38853 #: ../src/guestfs.pod:2862
38858 #: ../src/guestfs.pod:2864
38860 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38861 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38862 "L<virt-tar-out(1)>."
38866 #: ../src/guestfs.pod:2868
38871 #: ../src/guestfs.pod:2870
38873 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38877 #: ../src/guestfs.pod:2872
38878 msgid "C<generator>"
38879 msgstr "C<generator>"
38882 #: ../src/guestfs.pod:2874
38884 "The crucially important generator, used to automatically generate large "
38885 "amounts of boilerplate C code for things like RPC and bindings."
38889 #: ../src/guestfs.pod:2877
38894 #: ../src/guestfs.pod:2879
38895 msgid "Files used by the test suite."
38899 #: ../src/guestfs.pod:2881
38900 msgid "Some \"phony\" guest images which we test against."
38904 #: ../src/guestfs.pod:2883
38905 msgid "C<inspector>"
38906 msgstr "C<inspector>"
38909 #: ../src/guestfs.pod:2885
38910 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38914 #: ../src/guestfs.pod:2887
38919 #: ../src/guestfs.pod:2889
38920 msgid "Logo used on the website. The fish is called Arthur by the way."
38924 #: ../src/guestfs.pod:2891
38929 #: ../src/guestfs.pod:2893
38930 msgid "M4 macros used by autoconf."
38934 #: ../src/guestfs.pod:2895
38939 #: ../src/guestfs.pod:2897
38940 msgid "Translations of simple gettext strings."
38941 msgstr "Переклади простих рядків gettext."
38944 #: ../src/guestfs.pod:2899
38946 msgstr "C<po-docs>"
38949 #: ../src/guestfs.pod:2901
38951 "The build infrastructure and PO files for translations of manpages and POD "
38952 "files. Eventually this will be combined with the C<po> directory, but that "
38953 "is rather complicated."
38957 #: ../src/guestfs.pod:2905
38958 msgid "C<regressions>"
38959 msgstr "C<regressions>"
38962 #: ../src/guestfs.pod:2907
38963 msgid "Regression tests."
38964 msgstr "Тести на регресії."
38967 #: ../src/guestfs.pod:2909
38972 #: ../src/guestfs.pod:2911
38973 msgid "L<virt-rescue(1)> command and documentation."
38977 #: ../src/guestfs.pod:2913
38982 #: ../src/guestfs.pod:2915
38983 msgid "Source code to the C library."
38987 #: ../src/guestfs.pod:2917
38992 #: ../src/guestfs.pod:2919
38993 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
38997 #: ../src/guestfs.pod:2921
38998 msgid "C<test-tool>"
38999 msgstr "C<test-tool>"
39002 #: ../src/guestfs.pod:2923
39004 "Test tool for end users to test if their qemu/kernel combination will work "
39009 #: ../src/guestfs.pod:2926
39014 #: ../src/guestfs.pod:2928
39019 #: ../src/guestfs.pod:2930
39021 msgstr "C<haskell>"
39024 #: ../src/guestfs.pod:2932
39029 #: ../src/guestfs.pod:2934
39034 #: ../src/guestfs.pod:2936
39039 #: ../src/guestfs.pod:2938
39044 #: ../src/guestfs.pod:2940
39049 #: ../src/guestfs.pod:2942
39054 #: ../src/guestfs.pod:2944
39055 msgid "Language bindings."
39056 msgstr "Прив’язки до мов програмування."
39059 #: ../src/guestfs.pod:2948
39060 msgid "MAKING A STABLE RELEASE"
39064 #: ../src/guestfs.pod:2950
39066 "When we make a stable release, there are several steps documented here. See "
39067 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39072 #: ../src/guestfs.pod:2958
39074 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39078 #: ../src/guestfs.pod:2963
39079 msgid "Finalize RELEASE-NOTES."
39083 #: ../src/guestfs.pod:2967
39084 msgid "Update ROADMAP."
39088 #: ../src/guestfs.pod:2971
39089 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39093 #: ../src/guestfs.pod:2975
39094 msgid "Push and pull from Transifex."
39098 #: ../src/guestfs.pod:2977
39103 #: ../src/guestfs.pod:2979
39111 #: ../src/guestfs.pod:2981
39112 msgid "to push the latest POT files to Transifex. Then run:"
39116 #: ../src/guestfs.pod:2983
39124 #: ../src/guestfs.pod:2985
39125 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39129 #: ../src/guestfs.pod:2989
39131 "Create new stable and development directories under L<http://libguestfs.org/"
39136 #: ../src/guestfs.pod:2994
39137 msgid "Create the branch in git:"
39141 #: ../src/guestfs.pod:2996
39144 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39145 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39146 " git branch stable-1.XX\n"
39147 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39152 #: ../src/guestfs.pod:3003
39157 #: ../src/guestfs.pod:3005
39158 msgid "PROTOCOL LIMITS"
39159 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
39162 #: ../src/guestfs.pod:3007
39164 "Internally libguestfs uses a message-based protocol to pass API calls and "
39165 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39166 "plenty more detail about this). The maximum message size used by the "
39167 "protocol is slightly less than 4 MB. For some API calls you may need to be "
39168 "aware of this limit. The API calls which may be affected are individually "
39169 "documented, with a link back to this section of the documentation."
39173 #: ../src/guestfs.pod:3015
39175 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39176 "a simple string. Because this string is at some point internally encoded as "
39177 "a message, the maximum size that it can return is slightly under 4 MB. If "
39178 "the requested file is larger than this then you will get an error."
39182 #: ../src/guestfs.pod:3021
39184 "In order to transfer large files into and out of the guest filesystem, you "
39185 "need to use particular calls that support this. The sections L</UPLOADING> "
39186 "and L</DOWNLOADING> document how to do this."
39190 #: ../src/guestfs.pod:3025
39192 "You might also consider mounting the disk image using our FUSE filesystem "
39193 "support (L<guestmount(1)>)."
39197 #: ../src/guestfs.pod:3028
39198 msgid "MAXIMUM NUMBER OF DISKS"
39202 #: ../src/guestfs.pod:3030
39203 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39207 #: ../src/guestfs.pod:3033
39209 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39210 "slots. However febootstrap only understands disks with names C</dev/vda> "
39211 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39216 #: ../src/guestfs.pod:3038
39218 "We are working to substantially raise this limit in future versions but it "
39219 "requires complex changes to qemu."
39223 #: ../src/guestfs.pod:3041
39225 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39226 "disks (add and remove disks after calling L</guestfs_launch>). This also "
39227 "requires changes to qemu."
39231 #: ../src/guestfs.pod:3045
39232 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39236 #: ../src/guestfs.pod:3047
39237 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39241 #: ../src/guestfs.pod:3049
39243 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39244 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39248 #: ../src/guestfs.pod:3052
39250 "If you attach a disk with more than 15 partitions, the extra partitions are "
39251 "ignored by libguestfs."
39255 #: ../src/guestfs.pod:3055
39256 msgid "MAXIMUM SIZE OF A DISK"
39260 #: ../src/guestfs.pod:3057
39261 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39265 #: ../src/guestfs.pod:3059
39267 "We have tested block devices up to 1 exabyte (2**60 or "
39268 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39273 #: ../src/guestfs.pod:3063
39275 "Although libguestfs probably does not impose any limit, the underlying host "
39276 "storage will. If you store disk images on a host ext4 filesystem, then the "
39277 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39278 "TB). If you store disk images as host logical volumes then you are limited "
39279 "by the maximum size of an LV."
39283 #: ../src/guestfs.pod:3069
39285 "For the hugest disk image files, we recommend using XFS on the host for "
39290 #: ../src/guestfs.pod:3072
39291 msgid "MAXIMUM SIZE OF A PARTITION"
39295 #: ../src/guestfs.pod:3074
39297 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39298 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
39299 "address a partition located beyond 2 TB on the disk."
39303 #: ../src/guestfs.pod:3078
39305 "It is recommended that you use GPT partitions on disks which are larger than "
39306 "this size. GPT uses 64 bit sector numbers and so can address partitions "
39307 "which are theoretically larger than the largest disk we could support."
39311 #: ../src/guestfs.pod:3083
39312 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39316 #: ../src/guestfs.pod:3085
39318 "This depends on the filesystem type. libguestfs itself does not impose any "
39319 "known limit. Consult Wikipedia or the filesystem documentation to find out "
39320 "what these limits are."
39324 #: ../src/guestfs.pod:3089
39325 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39329 #: ../src/guestfs.pod:3091
39331 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39332 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39333 "uploads and downloads."
39337 #: ../src/guestfs.pod:3095
39338 msgid "INSPECTION LIMITS"
39342 #: ../src/guestfs.pod:3097
39344 "The inspection code has several arbitrary limits on things like the size of "
39345 "Windows Registry hive it will read, and the length of product name. These "
39346 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39347 "memory and disk space on the host, and should not be reached in practice. "
39348 "See the source code for more information."
39352 #: ../src/guestfs.pod:3123
39354 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
39355 "effect as calling C<guestfs_set_verbose (g, 1)>."
39359 #: ../src/guestfs.pod:3135
39361 "Set the path that libguestfs uses to search for a supermin appliance. See "
39362 "the discussion of paths in section L</PATH> above."
39366 #: ../src/guestfs.pod:3144
39367 msgid "See also L</QEMU WRAPPERS> above."
39371 #: ../src/guestfs.pod:3148
39373 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
39374 "effect as calling C<guestfs_set_trace (g, 1)>."
39378 #: ../src/guestfs.pod:3166
39380 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39381 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39382 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
39383 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
39384 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
39385 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, "
39386 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
39387 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
39388 "libguestfs.org/>."
39392 #: ../src/guestfs.pod:3197
39394 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39395 "(8)>, L<disktype(1)>."
39399 #: ../src/guestfs.pod:3204 ../tools/virt-make-fs.pl:553
39400 #: ../tools/virt-win-reg.pl:761
39405 #: ../src/guestfs.pod:3206
39406 msgid "To get a list of bugs against libguestfs use this link:"
39408 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
39412 #: ../src/guestfs.pod:3208
39414 "L<https://bugzilla.redhat.com/buglist.cgi?"
39415 "component=libguestfs&product=Virtualization+Tools>"
39417 "L<https://bugzilla.redhat.com/buglist.cgi?"
39418 "component=libguestfs&product=Virtualization+Tools>"
39421 #: ../src/guestfs.pod:3210
39422 msgid "To report a new bug against libguestfs use this link:"
39423 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
39426 #: ../src/guestfs.pod:3212
39428 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39429 "component=libguestfs&product=Virtualization+Tools>"
39431 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39432 "component=libguestfs&product=Virtualization+Tools>"
39435 #: ../src/guestfs.pod:3214
39436 msgid "When reporting a bug, please check:"
39440 #: ../src/guestfs.pod:3220
39441 msgid "That the bug hasn't been reported already."
39445 #: ../src/guestfs.pod:3224
39446 msgid "That you are testing a recent version."
39450 #: ../src/guestfs.pod:3228
39451 msgid "Describe the bug accurately, and give a way to reproduce it."
39455 #: ../src/guestfs.pod:3232
39457 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39462 #: ../test-tool/libguestfs-test-tool.pod:5
39463 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39467 #: ../test-tool/libguestfs-test-tool.pod:9
39470 " libguestfs-test-tool [--options]\n"
39475 #: ../test-tool/libguestfs-test-tool.pod:13
39477 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39478 "to check basic libguestfs functionality is working. This is needed because "
39479 "libguestfs occasionally breaks for reasons beyond our control: usually "
39480 "because of changes in the underlying qemu or kernel packages, or the host "
39485 #: ../test-tool/libguestfs-test-tool.pod:19
39486 msgid "If you suspect a problem in libguestfs, then just run:"
39490 #: ../test-tool/libguestfs-test-tool.pod:21
39493 " libguestfs-test-tool\n"
39498 #: ../test-tool/libguestfs-test-tool.pod:23
39499 msgid "It will print lots of diagnostic messages."
39503 #: ../test-tool/libguestfs-test-tool.pod:25
39504 msgid "If it runs to completion successfully, you will see this near the end:"
39508 #: ../test-tool/libguestfs-test-tool.pod:27
39511 " ===== TEST FINISHED OK =====\n"
39516 #: ../test-tool/libguestfs-test-tool.pod:29
39517 msgid "and the test tool will exit with code 0."
39521 #: ../test-tool/libguestfs-test-tool.pod:31
39523 "If it fails (and/or exits with non-zero error code), please paste the "
39524 "I<complete, unedited> output of the test tool into a bug report. More "
39525 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39530 #: ../test-tool/libguestfs-test-tool.pod:42
39531 msgid "Display short usage information and exit."
39535 #: ../test-tool/libguestfs-test-tool.pod:44
39537 #| msgid "I<--qemu qemu_binary>"
39538 msgid "B<--qemu qemu_binary>"
39539 msgstr "I<--qemu виконуваний_файл_qemu>"
39542 #: ../test-tool/libguestfs-test-tool.pod:46
39544 "If you have downloaded another qemu binary, point this option at the full "
39545 "path of the binary to try it."
39549 #: ../test-tool/libguestfs-test-tool.pod:49
39551 #| msgid "I<--qemu qemu_binary>"
39552 msgid "B<--qemudir qemu_source_dir>"
39553 msgstr "I<--qemu виконуваний_файл_qemu>"
39556 #: ../test-tool/libguestfs-test-tool.pod:51
39558 "If you have compiled qemu from source, point this option at the source "
39559 "directory to try it."
39563 #: ../test-tool/libguestfs-test-tool.pod:54
39568 #: ../test-tool/libguestfs-test-tool.pod:56
39570 #| msgid "I<--timeout N>"
39571 msgid "B<--timeout N>"
39572 msgstr "I<--timeout N>"
39575 #: ../test-tool/libguestfs-test-tool.pod:58
39577 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
39578 "minutes) which does not usually need to be adjusted."
39582 #: ../test-tool/libguestfs-test-tool.pod:63
39583 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39587 #: ../test-tool/libguestfs-test-tool.pod:65
39589 "If you have compiled another version of qemu from source and would like to "
39590 "try that, then you can use the I<--qemudir> option to point to the qemu "
39591 "source directory."
39595 #: ../test-tool/libguestfs-test-tool.pod:69
39597 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39598 "option to point to the binary."
39602 #: ../test-tool/libguestfs-test-tool.pod:72
39604 "Note when using these options, you can ignore the business of qemu wrapper "
39605 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39606 "wrapper script for you if one is needed."
39610 #: ../test-tool/libguestfs-test-tool.pod:76
39611 msgid "TRYING OUT A DIFFERENT KERNEL"
39615 #: ../test-tool/libguestfs-test-tool.pod:78
39617 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39618 "libguestfs tries. You do this by setting the environment variables "
39619 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39623 #: ../test-tool/libguestfs-test-tool.pod:82
39625 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39630 #: ../test-tool/libguestfs-test-tool.pod:85
39631 msgid "SELF-DIAGNOSIS"
39635 #: ../test-tool/libguestfs-test-tool.pod:87
39637 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39638 "produced by libguestfs-test-tool and/or possible errors."
39642 #: ../test-tool/libguestfs-test-tool.pod:92
39644 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39645 "I<1> if there was an error."
39649 #: ../test-tool/libguestfs-test-tool.pod:97
39651 "For the full list of environment variables which may affect libguestfs, "
39652 "please see the L<guestfs(3)> manual page."
39656 #: ../test-tool/libguestfs-test-tool.pod:102
39657 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39661 #: ../tools/virt-list-filesystems.pl:32
39663 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39667 #: ../tools/virt-list-filesystems.pl:36
39670 " virt-list-filesystems [--options] domname\n"
39675 #: ../tools/virt-list-filesystems.pl:38
39678 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39683 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39685 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
39690 #: ../tools/virt-list-filesystems.pl:45
39692 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39693 "are contained in a virtual machine or disk image."
39697 #: ../tools/virt-list-filesystems.pl:49
39699 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39700 "functionality. For more complex cases you should look at the L<guestfish(1)"
39705 #: ../tools/virt-list-filesystems.pl:112
39707 "With this option, C<virt-list-filesystems> displays the type of each "
39708 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39712 #: ../tools/virt-list-filesystems.pl:119
39714 #| msgid "B<-a image>"
39716 msgstr "B<-a образ>"
39719 #: ../tools/virt-list-filesystems.pl:123
39721 "Normally we only show mountable filesystems. If this option is given then "
39722 "swap devices are shown too."
39726 #: ../tools/virt-list-filesystems.pl:197
39728 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39729 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39730 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39732 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39733 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39734 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39737 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39738 msgid "Copyright (C) 2009 Red Hat Inc."
39739 msgstr "© Red Hat Inc., 2009"
39742 #: ../tools/virt-list-partitions.pl:32
39744 "virt-list-partitions - List partitions in a virtual machine or disk image"
39748 #: ../tools/virt-list-partitions.pl:36
39751 " virt-list-partitions [--options] domname\n"
39754 " virt-list-partitions [--параметри] назва_домену\n"
39758 #: ../tools/virt-list-partitions.pl:38
39761 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39764 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
39768 #: ../tools/virt-list-partitions.pl:45
39770 "C<virt-list-partitions> is a command line tool to list the partitions that "
39771 "are contained in a virtual machine or disk image. It is mainly useful as a "
39772 "first step to using L<virt-resize(1)>."
39776 #: ../tools/virt-list-partitions.pl:50
39778 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39779 "functionality. For more complex cases you should look at the L<guestfish(1)"
39784 #: ../tools/virt-list-partitions.pl:113
39785 msgid "Show sizes in human-readable form (eg. \"1G\")."
39789 #: ../tools/virt-list-partitions.pl:123
39791 "With this option, C<virt-list-partitions> displays the type and size of each "
39792 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39796 #: ../tools/virt-list-partitions.pl:130
39801 #: ../tools/virt-list-partitions.pl:132
39803 #| msgid "B<-t> | B<--total>"
39805 msgstr "B<-t> | B<--total>"
39808 #: ../tools/virt-list-partitions.pl:134
39810 "Display the total size of each block device (as a separate row or rows)."
39814 #: ../tools/virt-list-partitions.pl:267
39816 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39817 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39818 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39820 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39821 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39822 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39825 #: ../tools/virt-list-partitions.pl:283
39826 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39827 msgstr "© Red Hat Inc., 2009–2010"
39830 #: ../tools/virt-make-fs.pl:37
39831 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39835 #: ../tools/virt-make-fs.pl:41
39838 " virt-make-fs [--options] input.tar output.img\n"
39843 #: ../tools/virt-make-fs.pl:43
39846 " virt-make-fs [--options] input.tar.gz output.img\n"
39851 #: ../tools/virt-make-fs.pl:45
39854 " virt-make-fs [--options] directory output.img\n"
39859 #: ../tools/virt-make-fs.pl:49
39861 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39862 "archive or some files in a directory. It is similar to tools like L<mkisofs"
39863 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
39864 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39865 "you want to attach these filesystems to existing virtual machines (eg. to "
39866 "import large amounts of read-only data to a VM)."
39870 #: ../tools/virt-make-fs.pl:57
39871 msgid "Basic usage is:"
39875 #: ../tools/virt-make-fs.pl:59
39878 " virt-make-fs input output\n"
39883 #: ../tools/virt-make-fs.pl:61
39885 "where C<input> is either a directory containing files that you want to add, "
39886 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39887 "C<output> is a disk image. The input type is detected automatically. The "
39888 "output disk image defaults to a raw ext2 image unless you specify extra "
39889 "flags (see L</OPTIONS> below)."
39893 #: ../tools/virt-make-fs.pl:67
39894 msgid "EXTRA SPACE"
39898 #: ../tools/virt-make-fs.pl:69
39900 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39901 "the files that it contains, but might have extra space. Depending on how "
39902 "you are going to use the output, you might think this extra space is wasted "
39903 "and want to minimize it, or you might want to leave space so that more files "
39904 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
39905 "but you can use the I<--size> flag to leave space in the filesystem if you "
39910 #: ../tools/virt-make-fs.pl:77
39912 "An alternative way to leave extra space but not make the output image any "
39913 "bigger is to use an alternative disk image format (instead of the default "
39914 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39915 "image format (check your hypervisor supports this before using it). This "
39916 "allows you to choose a large I<--size> but the extra space won't actually be "
39917 "allocated in the image until you try to store something in it."
39921 #: ../tools/virt-make-fs.pl:85
39923 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39924 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39925 "to build another image from scratch."
39929 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39930 #: ../tools/virt-make-fs.pl:142
39935 #: ../tools/virt-make-fs.pl:91
39938 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39941 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39945 #: ../tools/virt-make-fs.pl:93
39946 msgid "FILESYSTEM TYPE"
39947 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39950 #: ../tools/virt-make-fs.pl:95
39952 "The default filesystem type is C<ext2>. Just about any filesystem type that "
39953 "libguestfs supports can be used (but I<not> read-only formats like "
39954 "ISO9660). Here are some of the more common choices:"
39958 #: ../tools/virt-make-fs.pl:101
39963 #: ../tools/virt-make-fs.pl:103
39965 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
39966 "you are not going to use the filesystem in a way that requires the journal, "
39967 "then this is just wasted overhead."
39971 #: ../tools/virt-make-fs.pl:107
39972 msgid "I<ntfs> or I<vfat>"
39973 msgstr "I<ntfs> або I<vfat>"
39976 #: ../tools/virt-make-fs.pl:109
39977 msgid "Useful if exporting data to a Windows guest."
39981 #: ../tools/virt-make-fs.pl:111
39983 "I<Note for vfat>: The tar archive or local directory must only contain files "
39984 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
39985 "program running within libguestfs is unable to change the ownership of non-"
39986 "root files, since vfat itself does not support this."
39990 #: ../tools/virt-make-fs.pl:116
39995 #: ../tools/virt-make-fs.pl:118
39997 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39998 "total filesystem size."
40002 #: ../tools/virt-make-fs.pl:125
40005 " virt-make-fs --type=minix input minixfs.img\n"
40010 #: ../tools/virt-make-fs.pl:127
40011 msgid "TO PARTITION OR NOT TO PARTITION"
40015 #: ../tools/virt-make-fs.pl:129
40016 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40020 #: ../tools/virt-make-fs.pl:131
40022 "Adding a partition can make the disk image more compatible with certain "
40023 "virtualized operating systems which don't expect to see a filesystem "
40024 "directly located on a block device (Linux doesn't care and will happily "
40025 "handle both types)."
40029 #: ../tools/virt-make-fs.pl:136
40031 "On the other hand, if you have a partition table then the output image is no "
40032 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
40033 "directly on a partitioned disk image. (However libguestfs tools such as "
40034 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40038 #: ../tools/virt-make-fs.pl:144
40039 msgid "Add an MBR partition:"
40043 #: ../tools/virt-make-fs.pl:146
40046 " virt-make-fs --partition -- input disk.img\n"
40051 #: ../tools/virt-make-fs.pl:148
40053 "If the output disk image could be terabyte-sized or larger, it's better to "
40054 "use an EFI/GPT-compatible partition table:"
40058 #: ../tools/virt-make-fs.pl:151
40061 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40066 #: ../tools/virt-make-fs.pl:179
40067 msgid "Enable debugging information."
40068 msgstr "Увімкнути виведення діагностичних даних."
40071 #: ../tools/virt-make-fs.pl:185
40072 msgid "B<--size=E<lt>NE<gt>>"
40073 msgstr "B<--size=E<lt>NE<gt>>"
40076 #: ../tools/virt-make-fs.pl:187
40077 msgid "B<--size=+E<lt>NE<gt>>"
40078 msgstr "B<--size=+E<lt>NE<gt>>"
40081 #: ../tools/virt-make-fs.pl:189
40082 msgid "B<-s E<lt>NE<gt>>"
40083 msgstr "B<-s E<lt>NE<gt>>"
40086 #: ../tools/virt-make-fs.pl:191
40087 msgid "B<-s +E<lt>NE<gt>>"
40088 msgstr "B<-s +E<lt>NE<gt>>"
40091 #: ../tools/virt-make-fs.pl:193
40093 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40097 #: ../tools/virt-make-fs.pl:196
40099 "If this option is I<not> given, then the output image will be just large "
40100 "enough to contain all the files, with not much wasted space."
40104 #: ../tools/virt-make-fs.pl:199
40106 "To choose a fixed size output disk, specify an absolute number followed by b/"
40107 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40108 "Petabytes or Exabytes. This must be large enough to contain all the input "
40109 "files, else you will get an error."
40113 #: ../tools/virt-make-fs.pl:204
40115 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40116 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40117 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
40118 "the input files, and (approximately) an extra 200 MB free space."
40122 #: ../tools/virt-make-fs.pl:210
40124 "Note that virt-make-fs estimates free space, and therefore will not produce "
40125 "filesystems containing precisely the free space requested. (It is much more "
40126 "expensive and time-consuming to produce a filesystem which has precisely the "
40127 "desired free space)."
40131 #: ../tools/virt-make-fs.pl:219
40132 msgid "B<--format=E<lt>fmtE<gt>>"
40136 #: ../tools/virt-make-fs.pl:221
40137 msgid "B<-F E<lt>fmtE<gt>>"
40141 #: ../tools/virt-make-fs.pl:223
40142 msgid "Choose the output disk image format."
40146 #: ../tools/virt-make-fs.pl:225
40147 msgid "The default is C<raw> (raw disk image)."
40151 #: ../tools/virt-make-fs.pl:227
40153 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
40154 "that would really make sense here is C<qcow2>."
40158 #: ../tools/virt-make-fs.pl:234
40159 msgid "B<--type=E<lt>fsE<gt>>"
40163 #: ../tools/virt-make-fs.pl:236
40164 msgid "B<-t E<lt>fsE<gt>>"
40168 #: ../tools/virt-make-fs.pl:238
40169 msgid "Choose the output filesystem type."
40173 #: ../tools/virt-make-fs.pl:240
40174 msgid "The default is C<ext2>."
40175 msgstr "Типовим значенням є C<ext2>."
40178 #: ../tools/virt-make-fs.pl:242
40180 "Any filesystem which is supported read-write by libguestfs can be used here."
40184 #: ../tools/virt-make-fs.pl:249
40185 msgid "B<--partition>"
40186 msgstr "B<--partition>"
40189 #: ../tools/virt-make-fs.pl:251
40190 msgid "B<--partition=E<lt>parttypeE<gt>>"
40194 #: ../tools/virt-make-fs.pl:253
40196 "If specified, this flag adds an MBR partition table to the output disk image."
40200 #: ../tools/virt-make-fs.pl:256
40202 "You can change the partition table type, eg. I<--partition=gpt> for large "
40207 #: ../tools/virt-make-fs.pl:259
40209 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40210 "might consider the next parameter to be the partition type. For example:"
40214 #: ../tools/virt-make-fs.pl:263
40217 " virt-make-fs --partition input.tar ...\n"
40222 #: ../tools/virt-make-fs.pl:265
40224 "would cause virt-make-fs to think you wanted to use a partition type of "
40225 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
40226 "dash) between options and the input file argument:"
40230 #: ../tools/virt-make-fs.pl:269
40233 " virt-make-fs --partition -- input.tar ...\n"
40236 " virt-make-fs --partition -- input.tar ...\n"
40240 #: ../tools/virt-make-fs.pl:541
40242 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40243 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40244 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40246 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40247 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40248 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40251 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40253 "When reporting bugs, please enable debugging and capture the I<complete> "
40258 #: ../tools/virt-make-fs.pl:558
40261 " export LIBGUESTFS_DEBUG=1\n"
40262 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40265 " export LIBGUESTFS_DEBUG=1\n"
40266 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40270 #: ../tools/virt-make-fs.pl:561
40272 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40277 #: ../tools/virt-tar.pl:33
40278 msgid "virt-tar - Extract or upload files to a virtual machine"
40282 #: ../tools/virt-tar.pl:37
40285 " virt-tar [--options] -x domname directory tarball\n"
40290 #: ../tools/virt-tar.pl:39
40293 " virt-tar [--options] -u domname tarball directory\n"
40298 #: ../tools/virt-tar.pl:41
40301 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40306 #: ../tools/virt-tar.pl:43
40309 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40314 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40319 #: ../tools/virt-tar.pl:47
40321 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40322 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40326 #: ../tools/virt-tar.pl:52
40327 msgid "Download C</home> from the VM into a local tarball:"
40331 #: ../tools/virt-tar.pl:54
40334 " virt-tar -x domname /home home.tar\n"
40339 #: ../tools/virt-tar.pl:56
40342 " virt-tar -zx domname /home home.tar.gz\n"
40347 #: ../tools/virt-tar.pl:58
40348 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40352 #: ../tools/virt-tar.pl:60
40355 " virt-tar -u domname uploadstuff.tar /tmp\n"
40360 #: ../tools/virt-tar.pl:62
40363 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40368 #: ../tools/virt-tar.pl:66
40370 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40371 "virtual machines. If you do this, you risk disk corruption in the VM. "
40372 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40376 #: ../tools/virt-tar.pl:71
40378 "You can use I<-x> (extract) on live virtual machines, but you might get "
40379 "inconsistent results or errors if there is filesystem activity inside the "
40380 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
40381 "work, but the only way to guarantee consistent results is if the virtual "
40382 "machine is shut down."
40386 #: ../tools/virt-tar.pl:79
40388 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40389 "parts of a guest filesystem. There are many possibilities: making backups, "
40390 "uploading data files, snooping on guest activity, fixing or customizing "
40395 #: ../tools/virt-tar.pl:84
40397 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
40398 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
40399 "should look at the L<guestfish(1)> tool."
40403 #: ../tools/virt-tar.pl:88
40405 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40406 "its contents (recursively) from the virtual machine into a local tarball. "
40407 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40408 "virtual machine. You cannot use these two options together."
40412 #: ../tools/virt-tar.pl:94
40414 "In addition, you may need to use the I<-z> (gZip) option to enable "
40415 "compression. When uploading, you have to specify I<-z> if the upload file "
40416 "is compressed because virt-tar won't detect this on its own."
40420 #: ../tools/virt-tar.pl:98
40422 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
40423 "example it cannot do PKZip files or bzip2 compression. If you want that "
40424 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
40425 "the L<libguestfs(3)> API)."
40429 #: ../tools/virt-tar.pl:160
40431 #| msgid "B<--format>"
40432 msgid "B<--extract>"
40433 msgstr "B<--format>"
40436 #: ../tools/virt-tar.pl:162
40438 #| msgid "download"
40439 msgid "B<--download>"
40443 #: ../tools/virt-tar.pl:164
40448 #: ../tools/virt-tar.pl:166
40450 #| msgid "B<-u> | B<--upload>"
40451 msgid "B<--upload>"
40452 msgstr "B<-u> | B<--upload>"
40455 #: ../tools/virt-tar.pl:168
40457 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40462 #: ../tools/virt-tar.pl:171
40464 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
40465 "Please read the L</WARNING> section above before using this option."
40469 #: ../tools/virt-tar.pl:175
40470 msgid "You must specify exactly one of these options."
40474 #: ../tools/virt-tar.pl:181
40479 #: ../tools/virt-tar.pl:183
40481 #| msgid "B<-z> | B<--gzip>"
40483 msgstr "B<-z> | B<--gzip>"
40486 #: ../tools/virt-tar.pl:185
40487 msgid "Specify that the input or output tarball is gzip-compressed."
40491 #: ../tools/virt-tar.pl:298
40493 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40494 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40495 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40498 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40499 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40500 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40504 #: ../tools/virt-win-reg.pl:37
40506 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40510 #: ../tools/virt-win-reg.pl:41
40513 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40518 #: ../tools/virt-win-reg.pl:43
40521 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40526 #: ../tools/virt-win-reg.pl:45
40529 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40534 #: ../tools/virt-win-reg.pl:47
40537 " virt-win-reg --merge domname [input.reg ...]\n"
40542 #: ../tools/virt-win-reg.pl:49
40545 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40550 #: ../tools/virt-win-reg.pl:53
40552 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40553 "virtual machines. If you do this, you I<will> get irreversible disk "
40554 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
40555 "but doesn't catch all cases."
40559 #: ../tools/virt-win-reg.pl:58
40561 "Modifying the Windows Registry is an inherently risky operation. The format "
40562 "is deliberately obscure and undocumented, and Registry changes can leave the "
40563 "system unbootable. Therefore when using the I<--merge> option, make sure "
40564 "you have a reliable backup first."
40568 #: ../tools/virt-win-reg.pl:65
40570 "This program can export and merge Windows Registry entries from a Windows "
40575 #: ../tools/virt-win-reg.pl:68
40577 "The first parameter is the libvirt guest name or the raw disk image of a "
40582 #: ../tools/virt-win-reg.pl:71
40584 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40585 "exported (recursively). For example:"
40589 #: ../tools/virt-win-reg.pl:74
40592 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40597 #: ../tools/virt-win-reg.pl:76
40599 "You can also display single values from within registry keys, for example:"
40603 #: ../tools/virt-win-reg.pl:79
40606 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40607 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40608 " Windows 7 Enterprise\n"
40613 #: ../tools/virt-win-reg.pl:83
40615 "With I<--merge>, you can merge a textual regedit file into the Windows "
40620 #: ../tools/virt-win-reg.pl:86
40623 " $ virt-win-reg --merge Windows7 changes.reg\n"
40628 #: ../tools/virt-win-reg.pl:90
40630 "This program is only meant for simple access to the registry. If you want "
40631 "to do complicated things with the registry, we suggest you download the "
40632 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40633 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40634 "L<hivexregedit(1)>."
40638 #: ../tools/virt-win-reg.pl:159
40640 msgstr "B<--merge>"
40643 #: ../tools/virt-win-reg.pl:161
40645 "In merge mode, this merges a textual regedit file into the Windows Registry "
40646 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
40647 "displays or exports Registry entries instead."
40651 #: ../tools/virt-win-reg.pl:165
40653 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40654 "result in disk corruption. However exporting (without this flag) is always "
40659 #: ../tools/virt-win-reg.pl:173
40660 msgid "B<--encoding> UTF-16LE|ASCII"
40664 #: ../tools/virt-win-reg.pl:175
40666 "When merging (only), you may need to specify the encoding for strings to be "
40667 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
40668 "(3)/ENCODING STRINGS>."
40672 #: ../tools/virt-win-reg.pl:179
40674 "The default is to use UTF-16LE, which should work with recent versions of "
40679 #: ../tools/virt-win-reg.pl:186
40680 msgid "B<--unsafe-printable-strings>"
40684 #: ../tools/virt-win-reg.pl:188
40686 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40687 "instead of hex sequences. Remove the final zero codepoint from strings if "
40692 #: ../tools/virt-win-reg.pl:192
40694 "This is unsafe and does not preserve the fidelity of strings in the original "
40695 "Registry for various reasons:"
40699 #: ../tools/virt-win-reg.pl:199
40701 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
40702 "other encodings will be corrupted by this transformation."
40706 #: ../tools/virt-win-reg.pl:204
40708 "Assumes that everything which has type 1 or 2 is really a string and that "
40709 "everything else is not a string, but the type field in real Registries is "
40714 #: ../tools/virt-win-reg.pl:210
40716 "Loses information about whether a zero codepoint followed the string in the "
40721 #: ../tools/virt-win-reg.pl:215
40723 "This all happens because the Registry itself contains no information about "
40724 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40728 #: ../tools/virt-win-reg.pl:219
40730 "You should only use this option for quick hacking and debugging of the "
40731 "Registry contents, and I<never> use it if the output is going to be passed "
40732 "into another program or stored in another Registry."
40736 #: ../tools/virt-win-reg.pl:556
40737 msgid "SUPPORTED SYSTEMS"
40741 #: ../tools/virt-win-reg.pl:558
40743 "The program currently supports Windows NT-derived guests starting with "
40744 "Windows XP through to at least Windows 7."
40748 #: ../tools/virt-win-reg.pl:561
40749 msgid "The following Registry keys are supported:"
40753 #: ../tools/virt-win-reg.pl:565
40754 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40758 #: ../tools/virt-win-reg.pl:567
40759 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40763 #: ../tools/virt-win-reg.pl:569
40764 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40768 #: ../tools/virt-win-reg.pl:571
40769 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40773 #: ../tools/virt-win-reg.pl:573
40774 msgid "C<HKEY_USERS\\.DEFAULT>"
40778 #: ../tools/virt-win-reg.pl:575
40779 msgid "C<HKEY_USERS\\I<SID>>"
40783 #: ../tools/virt-win-reg.pl:577
40784 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40788 #: ../tools/virt-win-reg.pl:579
40789 msgid "C<HKEY_USERS\\I<username>>"
40793 #: ../tools/virt-win-reg.pl:581
40795 "where I<username> is a local user name (this is a libguestfs extension)."
40799 #: ../tools/virt-win-reg.pl:585
40801 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40806 #: ../tools/virt-win-reg.pl:588
40808 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40809 "supported (there is no \"current user\")."
40813 #: ../tools/virt-win-reg.pl:591
40818 #: ../tools/virt-win-reg.pl:593
40820 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40821 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
40822 "style line endings. Since Windows regedit files are often in UTF-16LE with "
40823 "Windows-style line endings, you may need to reencode the whole file before "
40824 "or after processing."
40828 #: ../tools/virt-win-reg.pl:599
40830 "To reencode a file from Windows format to Linux (before processing it with "
40831 "the I<--merge> option), you would do something like this:"
40835 #: ../tools/virt-win-reg.pl:602
40838 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40843 #: ../tools/virt-win-reg.pl:604
40845 "To go in the opposite direction, after exporting and before sending the file "
40846 "to a Windows user, do something like this:"
40850 #: ../tools/virt-win-reg.pl:607
40853 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40858 #: ../tools/virt-win-reg.pl:609
40859 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40863 #: ../tools/virt-win-reg.pl:611
40865 "If you are unsure about the current encoding, use the L<file(1)> command. "
40866 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40867 "style (CRLF) line endings, like this:"
40871 #: ../tools/virt-win-reg.pl:615
40874 " $ file software.reg\n"
40875 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40876 " with CRLF line terminators\n"
40881 #: ../tools/virt-win-reg.pl:619
40882 msgid "This file would need conversion before you could I<--merge> it."
40886 #: ../tools/virt-win-reg.pl:621
40887 msgid "CurrentControlSet etc."
40891 #: ../tools/virt-win-reg.pl:623
40893 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40894 "Registry at the level of the hive file, and therefore you cannot modify "
40899 #: ../tools/virt-win-reg.pl:627
40901 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
40902 "circumstances it might refer to another control set. The way to find out is "
40903 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40907 #: ../tools/virt-win-reg.pl:631
40910 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40911 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40912 " \"Current\"=dword:00000001\n"
40913 " \"Default\"=dword:00000001\n"
40914 " \"Failed\"=dword:00000000\n"
40915 " \"LastKnownGood\"=dword:00000002\n"
40920 #: ../tools/virt-win-reg.pl:638
40921 msgid "\"Current\" is the one which Windows will choose when it boots."
40925 #: ../tools/virt-win-reg.pl:640
40927 "Similarly, other C<Current...> keys in the path may need to be replaced."
40931 #: ../tools/virt-win-reg.pl:643
40932 msgid "WINDOWS TIPS"
40936 #: ../tools/virt-win-reg.pl:645
40938 "Note that some of these tips modify the guest disk image. The guest I<must> "
40939 "be shut off, else you will get disk corruption."
40943 #: ../tools/virt-win-reg.pl:648
40944 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40948 #: ../tools/virt-win-reg.pl:650
40950 "Prepare a DOS batch script, VBScript or executable. Upload this using "
40951 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
40952 "is uploaded into C<C:\\>:"
40956 #: ../tools/virt-win-reg.pl:654
40959 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40964 #: ../tools/virt-win-reg.pl:656
40965 msgid "Prepare a regedit file containing the registry change:"
40969 #: ../tools/virt-win-reg.pl:658
40972 " cat > test.reg <<'EOF'\n"
40973 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40974 " \"Test\"=\"c:\\\\test.bat\"\n"
40980 #: ../tools/virt-win-reg.pl:663
40982 "In this example we use the key C<RunOnce> which means that the script will "
40983 "run precisely once when the first user logs in. If you want it to run every "
40984 "time a user logs in, replace C<RunOnce> with C<Run>."
40988 #: ../tools/virt-win-reg.pl:667
40989 msgid "Now update the registry:"
40993 #: ../tools/virt-win-reg.pl:669
40996 " virt-win-reg --merge WindowsGuest test.reg\n"
41001 #: ../tools/virt-win-reg.pl:671
41002 msgid "INSTALLING A SERVICE"
41006 #: ../tools/virt-win-reg.pl:673
41008 "This section assumes you are familiar with Windows services, and you either "
41009 "have a program which handles the Windows Service Control Protocol directly "
41010 "or you want to run any program using a service wrapper like SrvAny or the "
41015 #: ../tools/virt-win-reg.pl:678
41017 "First upload the program and optionally the service wrapper. In this case "
41018 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41022 #: ../tools/virt-win-reg.pl:682
41025 " guestfish -i -d WindowsGuest <<EOF\n"
41026 " upload rhsrvany.exe /rhsrvany.exe\n"
41027 " upload test.exe /test.exe\n"
41033 #: ../tools/virt-win-reg.pl:687
41035 "Prepare a regedit file containing the registry changes. In this example, "
41036 "the first registry change is needed for the service itself or the service "
41037 "wrapper (if used). The second registry change is only needed because I am "
41038 "using the RHSrvAny service wrapper."
41042 #: ../tools/virt-win-reg.pl:692
41045 " cat > service.reg <<'EOF'\n"
41046 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41047 " \"Type\"=dword:00000010\n"
41048 " \"Start\"=dword:00000002\n"
41049 " \"ErrorControl\"=dword:00000001\n"
41050 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41051 " \"DisplayName\"=\"RHSrvAny\"\n"
41052 " \"ObjectName\"=\"NetworkService\"\n"
41057 #: ../tools/virt-win-reg.pl:701
41060 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41061 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41062 " \"PWD\"=\"c:\\\\Temp\"\n"
41068 #: ../tools/virt-win-reg.pl:712
41070 "For use of C<ControlSet001> see the section above in this manual page. You "
41071 "may need to adjust this according to the control set that is in use by the "
41076 #: ../tools/virt-win-reg.pl:718
41078 "C<\"ObjectName\"> controls the privileges that the service will have. An "
41079 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41080 "privileged account."
41084 #: ../tools/virt-win-reg.pl:724
41086 "For the meaning of the magic numbers, see this Microsoft KB article: "
41087 "L<http://support.microsoft.com/kb/103000>."
41091 #: ../tools/virt-win-reg.pl:729
41092 msgid "Update the registry:"
41096 #: ../tools/virt-win-reg.pl:731
41099 " virt-win-reg --merge WindowsGuest service.reg\n"
41104 #: ../tools/virt-win-reg.pl:735
41106 "Be careful when passing parameters containing C<\\> (backslash) in the "
41107 "shell. Usually you will have to use 'single quotes' or double backslashes "
41108 "(but not both) to protect them from the shell."
41112 #: ../tools/virt-win-reg.pl:739
41113 msgid "Paths and value names are case-insensitive."
41117 #: ../tools/virt-win-reg.pl:748
41119 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41120 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41121 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41125 #: ../tools/virt-win-reg.pl:766
41128 " export LIBGUESTFS_DEBUG=1\n"
41129 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41134 #: ../tools/virt-win-reg.pl:769
41136 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41140 #~ msgid "I<--help>"
41141 #~ msgstr "I<--help>"
41143 #~ msgid "EXIT CODE"
41144 #~ msgstr "КОД ВИХОДУ"
41146 #~ msgid "B<-a> | B<--all>"
41147 #~ msgstr "B<-a> | B<--all>"
41149 #~ msgid "B<-x> | B<--extract> | B<--download>"
41150 #~ msgstr "B<-x> | B<--extract> | B<--download>"