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-08-17 12:19+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 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
60 msgstr "КОРОТКИЙ ОПИС"
63 #: ../cat/virt-cat.pod:9
66 #| " virt-list-partitions [--options] domname\n"
69 " virt-cat [--options] -d domname file [file ...]\n"
72 " virt-list-partitions [--параметри] назва_домену\n"
76 #: ../cat/virt-cat.pod:11
79 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
82 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
85 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
89 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
90 #: ../inspector/virt-inspector.pod:13
95 #: ../cat/virt-cat.pod:15
98 " virt-cat domname file\n"
103 #: ../cat/virt-cat.pod:17
106 " virt-cat disk.img file\n"
111 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
112 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
113 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
114 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
115 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
116 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
117 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
118 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
119 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
120 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
121 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
122 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
123 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
124 #: ../tools/virt-win-reg.pl:63
129 #: ../cat/virt-cat.pod:21
131 "C<virt-cat> is a command line tool to display the contents of C<file> where "
132 "C<file> exists in the named virtual machine (or disk image)."
136 #: ../cat/virt-cat.pod:24
138 "Multiple filenames can be given, in which case they are concatenated "
139 "together. Each filename must be a full path, starting at the root directory "
140 "(starting with '/')."
144 #: ../cat/virt-cat.pod:28
146 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
147 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
148 "(see L</USING GUESTFISH> below)."
152 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
153 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
154 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
155 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
156 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
157 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
162 #: ../cat/virt-cat.pod:34
164 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
168 #: ../cat/virt-cat.pod:37
171 " virt-cat -d mydomain /etc/fstab\n"
176 #: ../cat/virt-cat.pod:39
177 msgid "List syslog messages from a VM disk image file:"
181 #: ../cat/virt-cat.pod:41
184 " virt-cat -a disk.img /var/log/messages | tail\n"
189 #: ../cat/virt-cat.pod:43
190 msgid "Find out what DHCP IP address a VM acquired:"
194 #: ../cat/virt-cat.pod:45
197 " virt-cat -d mydomain /var/log/messages | \\\n"
198 " grep 'dhclient: bound to' | tail\n"
203 #: ../cat/virt-cat.pod:48
204 msgid "Find out what packages were recently installed:"
208 #: ../cat/virt-cat.pod:50
211 " virt-cat -d mydomain /var/log/yum.log | tail\n"
216 #: ../cat/virt-cat.pod:52
217 msgid "Find out who is logged on inside a virtual machine:"
221 #: ../cat/virt-cat.pod:54
224 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
230 #: ../cat/virt-cat.pod:57
231 msgid "or who was logged on:"
235 #: ../cat/virt-cat.pod:59
238 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
239 " last -f /tmp/wtmp\n"
244 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
245 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
246 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
247 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
248 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
249 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
250 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
251 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
252 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
253 #: ../tools/virt-win-reg.pl:96
258 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
259 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
260 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
261 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
262 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
263 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
264 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
269 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
270 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
271 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
272 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
273 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
274 #: ../tools/virt-win-reg.pl:106
275 msgid "Display brief help."
279 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
280 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
281 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
283 #| msgid "B<-f file>"
288 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
289 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
290 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
292 #| msgid "B<--add image>"
293 msgid "B<--add> file"
294 msgstr "B<--add образ>"
297 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
298 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
299 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
301 "Add I<file> which should be a disk image from a virtual machine. If the "
302 "virtual machine has multiple block devices, you must supply all of them with "
303 "separate I<-a> options."
307 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
308 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
309 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
310 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
312 "The format of the disk image is auto-detected. To override this and force a "
313 "particular format use the I<--format=..> option."
317 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
318 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
322 msgstr "B<-c адреса>"
325 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
326 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
328 #| msgid "B<--connect URI>"
329 msgid "B<--connect> URI"
330 msgstr "B<--connect адреса>"
333 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
334 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
335 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
336 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
337 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
339 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
340 "to the default libvirt hypervisor."
344 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
345 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
347 "If you specify guest block devices directly (I<-a>), then libvirt is not "
352 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
353 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
354 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
359 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
360 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
361 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
362 msgid "B<--domain> guest"
366 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
367 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
368 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
370 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
375 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
376 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
377 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
378 msgid "B<--echo-keys>"
379 msgstr "B<--echo-keys>"
382 #: ../cat/virt-cat.pod:100
384 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
385 "so you cannot see what you are typing. If you are not worried about Tempest "
386 "attacks and there is no one else in the room you can specify this flag to "
387 "see what you are typing."
391 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
392 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
393 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
394 #: ../rescue/virt-rescue.pod:124
395 msgid "B<--format=raw|qcow2|..>"
396 msgstr "B<--format=raw|qcow2|..>"
399 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
400 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
401 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
402 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
407 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
408 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
409 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
410 #: ../rescue/virt-rescue.pod:128
412 "The default for the I<-a> option is to auto-detect the format of the disk "
413 "image. Using this forces the disk format for I<-a> options which follow on "
414 "the command line. Using I<--format> with no argument switches back to auto-"
415 "detection for subsequent I<-a> options."
419 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
420 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
421 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
422 #: ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133
423 #: ../src/guestfs.pod:2653
428 #: ../cat/virt-cat.pod:116
431 #| " guestfish --format=raw -a disk.img\n"
434 " virt-cat --format=raw -a disk.img file\n"
437 " guestfish --format=raw -a disk.img\n"
441 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
442 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
443 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
444 msgid "forces raw format (no auto-detection) for C<disk.img>."
448 #: ../cat/virt-cat.pod:120
451 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
454 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
457 " guestfish --format=raw -a disk.img --format -a another.img\n"
461 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
462 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
463 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
465 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
466 "detection for C<another.img>."
470 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
471 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
472 #: ../rescue/virt-rescue.pod:144
474 "If you have untrusted raw-format guest disk images, you should use this "
475 "option to specify the disk format. This avoids a possible security problem "
476 "with malicious guests (CVE-2010-3851)."
480 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
481 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
482 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
483 msgid "B<--keys-from-stdin>"
484 msgstr "B<--keys-from-stdin>"
487 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
488 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
489 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
491 "Read key or passphrase parameters from stdin. The default is to try to read "
492 "passphrases from the user by opening C</dev/tty>."
496 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
497 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
498 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
499 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
504 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
505 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
506 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
507 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
509 msgstr "B<--verbose>"
512 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
513 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
514 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
515 msgid "Enable verbose messages for debugging."
519 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
520 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
521 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
522 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
523 #: ../resize/virt-resize.pod:478
528 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
529 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
530 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
531 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
532 #: ../resize/virt-resize.pod:480 ../tools/virt-list-filesystems.pl:69
533 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
534 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
536 msgstr "B<--version>"
539 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
540 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
541 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
542 #: ../resize/virt-resize.pod:482 ../tools/virt-list-filesystems.pl:71
543 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
544 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
545 msgid "Display version number and exit."
546 msgstr "Показати дані щодо версії і завершити роботу."
549 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
550 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
551 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
552 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
553 #: ../tools/virt-tar.pl:158
558 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
559 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
560 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
561 msgid "Enable tracing of libguestfs API calls."
565 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
566 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
567 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
571 #: ../cat/virt-cat.pod:154
572 msgid "Previous versions of virt-cat allowed you to write either:"
576 #: ../cat/virt-cat.pod:156
579 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
582 " virt-cat disk.img [disk.img ...] file\n"
585 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
589 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
590 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
597 #: ../cat/virt-cat.pod:160
600 " virt-cat guestname file\n"
605 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
606 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
608 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
609 "the confusing case where a disk image might have the same name as a guest."
613 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
614 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
615 msgid "For compatibility the old style is still supported."
619 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
620 msgid "USING GUESTFISH"
624 #: ../cat/virt-cat.pod:170
626 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
627 "C<virt-cat> doesn't work."
631 #: ../cat/virt-cat.pod:173
632 msgid "Using C<virt-cat> is approximately equivalent to doing:"
636 #: ../cat/virt-cat.pod:175
639 #| " guestfish --ro -d myguest -i\n"
642 " guestfish --ro -i -d domname download file -\n"
645 " guestfish --ro -d myguest -i\n"
649 #: ../cat/virt-cat.pod:177
651 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
652 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
656 #: ../cat/virt-cat.pod:181
658 "The command above uses libguestfs's guest inspection feature and so does not "
659 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
660 "disk images that don't contain guests. To display a file from a disk image "
665 #: ../cat/virt-cat.pod:186
668 #| " guestfish [--ro] -i disk.img\n"
671 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
674 " guestfish [--ro] -i disk.img\n"
678 #: ../cat/virt-cat.pod:188
680 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
681 "the disk image to edit, and C<file> is the full path to the file."
685 #: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365
686 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
687 #: ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262
688 #: ../resize/virt-resize.pod:543 ../tools/virt-list-filesystems.pl:188
689 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
690 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
691 msgid "SHELL QUOTING"
695 #: ../cat/virt-cat.pod:194 ../cat/virt-filesystems.pod:367
696 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
697 #: ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264
698 #: ../resize/virt-resize.pod:545 ../tools/virt-list-filesystems.pl:190
699 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
700 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
702 "Libvirt guest names can contain arbitrary characters, some of which have "
703 "meaning to the shell such as C<#> and space. You may need to quote or "
704 "escape these characters on the command line. See the shell manual page L<sh"
709 #: ../cat/virt-cat.pod:199 ../cat/virt-filesystems.pod:372
710 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
711 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
712 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
713 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
714 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303
715 #: ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45
716 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
717 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
718 #: ../resize/virt-resize.pod:550 ../ruby/examples/guestfs-ruby.pod:36
719 #: ../src/guestfs.pod:3027 ../test-tool/libguestfs-test-tool.pod:87
720 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
721 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
722 #: ../tools/virt-win-reg.pl:746
724 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
727 #: ../cat/virt-cat.pod:201
730 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
731 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
732 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
734 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
735 "tar-out(1)>, L<http://libguestfs.org/>."
737 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
738 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
739 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
742 #: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383
743 #: ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363
744 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:571
745 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
746 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
747 #: ../tools/virt-win-reg.pl:772
752 #: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385
753 #: ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365
754 #: ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294
755 #: ../resize/virt-resize.pod:573 ../tools/virt-list-filesystems.pl:210
756 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
757 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
758 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
759 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
762 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387
763 #: ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367
764 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
765 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
766 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
767 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318
768 #: ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61
769 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
770 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
771 #: ../resize/virt-resize.pod:575 ../ruby/examples/guestfs-ruby.pod:51
772 #: ../src/guestfs.pod:3103 ../test-tool/libguestfs-test-tool.pod:97
773 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
774 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
775 #: ../tools/virt-win-reg.pl:776
777 msgstr "АВТОРСЬКІ ПРАВА"
780 #: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396
781 #: ../resize/virt-resize.pod:577
783 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
784 msgid "Copyright (C) 2010-2011 Red Hat Inc."
785 msgstr "© Red Hat Inc., 2009–2010"
788 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391
789 #: ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371
790 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
791 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
792 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323
793 #: ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300
794 #: ../resize/virt-resize.pod:579 ../test-tool/libguestfs-test-tool.pod:102
795 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
796 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
797 #: ../tools/virt-win-reg.pl:780
799 "This program is free software; you can redistribute it and/or modify it "
800 "under the terms of the GNU General Public License as published by the Free "
801 "Software Foundation; either version 2 of the License, or (at your option) "
806 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396
807 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
808 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
809 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
810 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328
811 #: ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305
812 #: ../resize/virt-resize.pod:584 ../test-tool/libguestfs-test-tool.pod:107
813 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
814 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
815 #: ../tools/virt-win-reg.pl:785
817 "This program is distributed in the hope that it will be useful, but WITHOUT "
818 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
819 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
822 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
823 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
824 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
825 "дізнатися з GNU General Public License."
828 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401
829 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
830 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
831 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
832 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333
833 #: ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310
834 #: ../resize/virt-resize.pod:589 ../test-tool/libguestfs-test-tool.pod:112
835 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
836 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
837 #: ../tools/virt-win-reg.pl:790
839 "You should have received a copy of the GNU General Public License along with "
840 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
841 "Ave, Cambridge, MA 02139, USA."
845 #: ../cat/virt-filesystems.pod:5
847 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
848 "virtual machine or disk image"
852 #: ../cat/virt-filesystems.pod:9
855 #| " virt-list-partitions [--options] domname\n"
858 " virt-filesystems [--options] -d domname\n"
861 " virt-list-partitions [--параметри] назва_домену\n"
865 #: ../cat/virt-filesystems.pod:11
868 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
871 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
874 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
878 #: ../cat/virt-filesystems.pod:15
880 "This tool allows you to discover filesystems, partitions, logical volumes, "
881 "and their sizes in a disk image or virtual machine. It is a replacement for "
882 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
886 #: ../cat/virt-filesystems.pod:20
888 "One use for this tool is from shell scripts to iterate over all filesystems "
893 #: ../cat/virt-filesystems.pod:23
896 " for fs in $(virt-filesystems -a disk.img); do\n"
903 #: ../cat/virt-filesystems.pod:27
905 "Another use is to list partitions before using another tool to modify those "
906 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
907 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
911 #: ../cat/virt-filesystems.pod:32
913 "Various command line options control what this program displays. You need "
914 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
915 "guest respectively. If you just specify that then the program shows "
916 "filesystems found, one per line, like this:"
920 #: ../cat/virt-filesystems.pod:37
923 " $ virt-filesystems -a disk.img\n"
925 " /dev/vg_guest/lv_root\n"
930 #: ../cat/virt-filesystems.pod:41
932 "If you add I<-l> or I<--long> then the output includes extra information:"
936 #: ../cat/virt-filesystems.pod:44
939 " $ virt-filesystems -a disk.img -l\n"
940 " Name Type VFS Label Size\n"
941 " /dev/sda1 filesystem ext4 boot 524288000\n"
942 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
947 #: ../cat/virt-filesystems.pod:49
949 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
954 #: ../cat/virt-filesystems.pod:52
957 " $ virt-filesystems -a disk.img --extra\n"
959 " /dev/vg_guest/lv_root\n"
960 " /dev/vg_guest/lv_swap\n"
961 " /dev/vg_guest/lv_data\n"
966 #: ../cat/virt-filesystems.pod:58
968 "If you add I<--partitions> then partitions are shown instead of filesystems:"
972 #: ../cat/virt-filesystems.pod:60
975 " $ virt-filesystems -a disk.img --partitions\n"
982 #: ../cat/virt-filesystems.pod:64
984 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
985 "volumes>, I<--block-devices> to list those items."
989 #: ../cat/virt-filesystems.pod:67
991 "You can use these options in combination as well (if you want a combination "
992 "including filesystems, you have to add I<--filesystems>). Notice that some "
993 "items fall into several categories (eg. C</dev/sda1> might be both a "
994 "partition and a filesystem). These items are listed several times. To get "
995 "a list which includes absolutely everything that virt-filesystems knows "
996 "about, use the I<--all> option."
1000 #: ../cat/virt-filesystems.pod:74
1002 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1003 "uuid> option to display device and filesystem UUIDs in the long output."
1007 #: ../cat/virt-filesystems.pod:78
1009 "I<--all --long --uuid> is a useful combination to display all possible "
1010 "information about everything."
1014 #: ../cat/virt-filesystems.pod:81
1017 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1018 " Name Type VFS Label Size Parent UUID\n"
1019 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1020 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1021 " /dev/sda1 partition - - 100M /dev/sda -\n"
1022 " /dev/sda2 partition - - 20G /dev/sda -\n"
1023 " /dev/sda device - - 20G - -\n"
1028 #: ../cat/virt-filesystems.pod:89
1030 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1034 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1036 #| msgid "B<--help>"
1041 #: ../cat/virt-filesystems.pod:112
1043 "Display everything. This is currently the same as specifying these options: "
1044 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1045 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1046 "added to this list in future)."
1050 #: ../cat/virt-filesystems.pod:117
1052 #| msgid "See also L</is-lv>."
1053 msgid "See also I<--long>."
1054 msgstr "Див. також L</is-lv>."
1057 #: ../cat/virt-filesystems.pod:119
1059 #| msgid "B<--live>"
1060 msgid "B<--blkdevs>"
1064 #: ../cat/virt-filesystems.pod:121
1066 #| msgid "is-blockdev"
1067 msgid "B<--block-devices>"
1068 msgstr "is-blockdev"
1071 #: ../cat/virt-filesystems.pod:123
1073 #| msgid "is-blockdev"
1074 msgid "Display block devices."
1075 msgstr "is-blockdev"
1078 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1085 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1087 "Write out the results in CSV format (comma-separated values). This format "
1088 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1089 "ABOUT CSV FORMAT> below."
1093 #: ../cat/virt-filesystems.pod:150
1095 "When prompting for keys and passphrases, virt-filesystems normally turns "
1096 "echoing off so you cannot see what you are typing. If you are not worried "
1097 "about Tempest attacks and there is no one else in the room you can specify "
1098 "this flag to see what you are typing."
1102 #: ../cat/virt-filesystems.pod:155
1109 #: ../cat/virt-filesystems.pod:157
1111 "This causes filesystems that are not ordinary, mountable filesystems to be "
1112 "displayed. This category includes swapspace, and filesystems that are empty "
1113 "or contain unknown data."
1117 #: ../cat/virt-filesystems.pod:161
1118 msgid "This option implies I<--filesystems>."
1122 #: ../cat/virt-filesystems.pod:163
1124 #| msgid "list-filesystems"
1125 msgid "B<--filesystems>"
1126 msgstr "list-filesystems"
1129 #: ../cat/virt-filesystems.pod:165
1131 "Display mountable filesystems. If no display option was selected then this "
1132 "option is implied."
1136 #: ../cat/virt-filesystems.pod:168
1137 msgid "With I<--extra>, non-mountable filesystems are shown too."
1141 #: ../cat/virt-filesystems.pod:181
1144 #| " guestfish --format=raw -a disk.img\n"
1147 " virt-filesystems --format=raw -a disk.img\n"
1150 " guestfish --format=raw -a disk.img\n"
1154 #: ../cat/virt-filesystems.pod:185
1157 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1160 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1163 " guestfish --format=raw -a disk.img --format -a another.img\n"
1167 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1168 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1169 #: ../tools/virt-list-partitions.pl:109
1174 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1175 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1177 #| msgid "B<-h> | B<--human-readable>"
1178 msgid "B<--human-readable>"
1179 msgstr "B<-h> | B<--human-readable>"
1182 #: ../cat/virt-filesystems.pod:198
1183 msgid "In I<--long> mode, display sizes in human-readable format."
1187 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1188 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1193 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1194 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1201 #: ../cat/virt-filesystems.pod:209
1202 msgid "Display extra columns of data (\"long format\")."
1206 #: ../cat/virt-filesystems.pod:211
1207 msgid "A title row is added unless you also specify I<--no-title>."
1211 #: ../cat/virt-filesystems.pod:213
1213 "The extra columns displayed depend on what output you select, and the "
1214 "ordering of columns may change in future versions. Use the title row, I<--"
1215 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1220 #: ../cat/virt-filesystems.pod:218
1222 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1223 "default is to show raw numbers of I<bytes>."
1227 #: ../cat/virt-filesystems.pod:221
1228 msgid "Use I<--uuid> to display UUIDs too."
1232 #: ../cat/virt-filesystems.pod:223
1234 #| msgid "B<--live>"
1239 #: ../cat/virt-filesystems.pod:225
1241 #| msgid "B<--live>"
1242 msgid "B<--logvols>"
1246 #: ../cat/virt-filesystems.pod:227
1248 #| msgid "B<--live>"
1249 msgid "B<--logical-volumes>"
1253 #: ../cat/virt-filesystems.pod:229
1255 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1256 "of whether the LVs contain filesystems."
1260 #: ../cat/virt-filesystems.pod:232
1262 #| msgid "B<--listen>"
1263 msgid "B<--no-title>"
1264 msgstr "B<--listen>"
1267 #: ../cat/virt-filesystems.pod:234
1268 msgid "In I<--long> mode, don't add a title row."
1272 #: ../cat/virt-filesystems.pod:236
1274 "Note that the order of the columns is not fixed, and may change in future "
1275 "versions of virt-filesystems, so using this option may give you unexpected "
1280 #: ../cat/virt-filesystems.pod:240
1282 #| msgid "B<--partition>"
1284 msgstr "B<--partition>"
1287 #: ../cat/virt-filesystems.pod:242
1289 #| msgid "B<--partition>"
1290 msgid "B<--partitions>"
1291 msgstr "B<--partition>"
1294 #: ../cat/virt-filesystems.pod:244
1296 "Display partitions. In this mode, these are displayed irrespective of "
1297 "whether the partitions contain filesystems."
1301 #: ../cat/virt-filesystems.pod:247
1308 #: ../cat/virt-filesystems.pod:249
1310 #| msgid "B<--verbose>"
1311 msgid "B<--physvols>"
1312 msgstr "B<--verbose>"
1315 #: ../cat/virt-filesystems.pod:251
1316 msgid "B<--physical-volumes>"
1320 #: ../cat/virt-filesystems.pod:253
1321 msgid "Display LVM physical volumes."
1325 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1327 #| msgid "B<--live>"
1332 #: ../cat/virt-filesystems.pod:257
1339 #: ../cat/virt-filesystems.pod:259
1340 msgid "In I<--long> mode, display UUIDs as well."
1344 #: ../cat/virt-filesystems.pod:273
1351 #: ../cat/virt-filesystems.pod:275
1353 #| msgid "B<--verbose>"
1354 msgid "B<--volgroups>"
1355 msgstr "B<--verbose>"
1358 #: ../cat/virt-filesystems.pod:277
1360 #| msgid "B<--verbose>"
1361 msgid "B<--volume-groups>"
1362 msgstr "B<--verbose>"
1365 #: ../cat/virt-filesystems.pod:279
1366 msgid "Display LVM volume groups."
1370 #: ../cat/virt-filesystems.pod:287
1375 #: ../cat/virt-filesystems.pod:289
1377 "Note that columns in the output are subject to reordering and change in "
1378 "future versions of this tool."
1382 #: ../cat/virt-filesystems.pod:294
1387 #: ../cat/virt-filesystems.pod:296
1388 msgid "The filesystem, partition, block device or LVM name."
1392 #: ../cat/virt-filesystems.pod:298
1394 "For device and partition names these are displayed as canonical libguestfs "
1395 "names, so that for example C</dev/sda2> is the second partition on the first "
1400 #: ../cat/virt-filesystems.pod:302
1402 "If the I<--long> option is B<not> specified, then only the name column is "
1403 "shown in the output."
1407 #: ../cat/virt-filesystems.pod:305
1409 #| msgid "B<-N type>"
1414 #: ../cat/virt-filesystems.pod:307
1415 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1419 #: ../cat/virt-filesystems.pod:309
1424 #: ../cat/virt-filesystems.pod:311
1426 "If there is a filesystem, then this column displays the filesystem type if "
1427 "one could be detected, eg. C<ext4>."
1431 #: ../cat/virt-filesystems.pod:314
1436 #: ../cat/virt-filesystems.pod:316
1438 "If the object has a label (used for identifying and mounting filesystems) "
1439 "then this column contains the label."
1443 #: ../cat/virt-filesystems.pod:319
1445 #| msgid "B<part_size>"
1447 msgstr "B<part_size>"
1450 #: ../cat/virt-filesystems.pod:321
1452 "The size of the object in bytes. If the I<--human> option is used then the "
1453 "size is displayed in a human-readable form."
1457 #: ../cat/virt-filesystems.pod:324
1462 #: ../cat/virt-filesystems.pod:326
1464 "The parent column records the parent relationship between objects. For "
1465 "example, if the object is a partition, then this column contains the name of "
1466 "the containing device. If the object is a logical volume, then this column "
1467 "is the name of the volume group."
1471 #: ../cat/virt-filesystems.pod:331
1476 #: ../cat/virt-filesystems.pod:333
1478 "If the object has a UUID (used for identifying and mounting filesystems and "
1479 "block devices) then this column contains the UUID as a string."
1483 #: ../cat/virt-filesystems.pod:337
1484 msgid "The UUID is only displayed if the I<--uuid> option is given."
1488 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1489 #: ../df/virt-df.pod:191
1490 msgid "NOTE ABOUT CSV FORMAT"
1494 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1495 #: ../df/virt-df.pod:193
1497 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
1498 "should be easy to parse, but it is definitely not easy to parse."
1502 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1503 #: ../df/virt-df.pod:196
1505 "Myth: Just split fields at commas. Reality: This does I<not> work "
1506 "reliably. This example has two columns:"
1510 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1511 #: ../df/virt-df.pod:199
1514 " \"foo,bar\",baz\n"
1519 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1520 #: ../df/virt-df.pod:201
1522 "Myth: Read the file one line at a time. Reality: This does I<not> work "
1523 "reliably. This example has one row:"
1527 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1528 #: ../df/virt-df.pod:204
1537 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1538 #: ../df/virt-df.pod:207
1540 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1541 "packaged in major Linux distributions)."
1545 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1546 #: ../df/virt-df.pod:210
1548 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1549 "or Python's built-in csv library)."
1553 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1554 #: ../df/virt-df.pod:213
1555 msgid "Most spreadsheets and databases can import CSV directly."
1559 #: ../cat/virt-filesystems.pod:374
1562 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1563 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1564 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1566 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1567 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1570 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1571 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1572 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1575 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570
1576 #: ../tools/virt-win-reg.pl:778
1577 msgid "Copyright (C) 2010 Red Hat Inc."
1581 #: ../cat/virt-ls.pod:5
1582 msgid "virt-ls - List files in a virtual machine"
1586 #: ../cat/virt-ls.pod:9
1589 " virt-ls [--options] -d domname directory [directory ...]\n"
1594 #: ../cat/virt-ls.pod:11
1597 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1600 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1603 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1607 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1612 #: ../cat/virt-ls.pod:15
1615 #| " virt-list-partitions [--options] domname\n"
1618 " virt-ls [--options] domname directory\n"
1621 " virt-list-partitions [--параметри] назва_домену\n"
1625 #: ../cat/virt-ls.pod:17
1628 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1631 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1634 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1638 #: ../cat/virt-ls.pod:21
1640 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1641 "more from a virtual machine or disk image."
1645 #: ../cat/virt-ls.pod:24
1647 "Multiple directory names can be given, in which case the output from each is "
1652 #: ../cat/virt-ls.pod:27
1654 "To list directories from a libvirt guest use the I<-d> option to specify the "
1655 "name of the guest. For a disk image, use the I<-a> option."
1659 #: ../cat/virt-ls.pod:31
1661 "C<virt-ls> can do many simple file listings. For more complicated cases you "
1662 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1667 #: ../cat/virt-ls.pod:37
1668 msgid "Get a list of all files and directories in a virtual machine:"
1672 #: ../cat/virt-ls.pod:39
1675 #| " guestfish --ro -d myguest -i\n"
1678 " virt-ls -R -d guest /\n"
1681 " guestfish --ro -d myguest -i\n"
1685 #: ../cat/virt-ls.pod:41
1686 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1690 #: ../cat/virt-ls.pod:43
1693 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1698 #: ../cat/virt-ls.pod:45
1699 msgid "List all public-writable directories in a Linux virtual machine:"
1703 #: ../cat/virt-ls.pod:47
1706 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1711 #: ../cat/virt-ls.pod:49
1712 msgid "List all Unix domain sockets in a Linux virtual machine:"
1716 #: ../cat/virt-ls.pod:51
1719 " virt-ls -lR -d guest / | grep '^s'\n"
1724 #: ../cat/virt-ls.pod:53
1725 msgid "List all regular files with filenames ending in '.png':"
1729 #: ../cat/virt-ls.pod:55
1732 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1737 #: ../cat/virt-ls.pod:57
1738 msgid "To display files larger than 10MB in home directories:"
1742 #: ../cat/virt-ls.pod:59
1745 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1750 #: ../cat/virt-ls.pod:61
1751 msgid "Find everything modified in the last 7 days:"
1755 #: ../cat/virt-ls.pod:63
1758 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1763 #: ../cat/virt-ls.pod:65
1764 msgid "Find regular files modified in the last 24 hours:"
1768 #: ../cat/virt-ls.pod:67
1771 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1776 #: ../cat/virt-ls.pod:69
1777 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1781 #: ../cat/virt-ls.pod:71
1783 "Find the differences between files in a guest and an earlier snapshot of the "
1788 #: ../cat/virt-ls.pod:74
1791 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1792 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1793 " diff -u old new | less\n"
1798 #: ../cat/virt-ls.pod:78
1800 "The commands above won't find files where the content has changed but the "
1801 "metadata (eg. file size and modification date) is the same. To do that, you "
1802 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
1803 "checksum> can be quite slow since it has to read and compute a checksum of "
1804 "every regular file in the virtual machine."
1808 #: ../cat/virt-ls.pod:84
1809 msgid "OUTPUT MODES"
1813 #: ../cat/virt-ls.pod:86
1815 "C<virt-ls> has four output modes, controlled by different combinations of "
1816 "the I<-l> and I<-R> options."
1820 #: ../cat/virt-ls.pod:89
1821 msgid "SIMPLE LISTING"
1825 #: ../cat/virt-ls.pod:91
1826 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1830 #: ../cat/virt-ls.pod:93
1833 " $ virt-ls -d guest /\n"
1841 #: ../cat/virt-ls.pod:98
1844 msgid "LONG LISTING"
1848 #: ../cat/virt-ls.pod:100
1850 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1851 "(more specifically, like the C<guestfs_ll> function)."
1855 #: ../cat/virt-ls.pod:103
1858 " $ virt-ls -l -d guest /\n"
1860 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
1861 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
1867 #: ../cat/virt-ls.pod:109
1869 "Note that while this is useful for displaying a directory, do not try "
1870 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
1875 #: ../cat/virt-ls.pod:113
1876 msgid "RECURSIVE LISTING"
1880 #: ../cat/virt-ls.pod:115
1882 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1883 "and directories recursively:"
1887 #: ../cat/virt-ls.pod:118
1890 " $ virt-ls -R -d guest /tmp\n"
1898 #: ../cat/virt-ls.pod:123
1900 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1901 "converts C<\\0> characters to C<\\n>."
1905 #: ../cat/virt-ls.pod:126
1906 msgid "RECURSIVE LONG LISTING"
1910 #: ../cat/virt-ls.pod:128
1912 "Using I<-lR> options together changes the output to display directories "
1913 "recursively, with file stats, and optionally other features such as "
1914 "checksums and extended attributes."
1918 #: ../cat/virt-ls.pod:132
1920 "Most of the interesting features of C<virt-ls> are only available when using "
1925 #: ../cat/virt-ls.pod:135
1927 "The fields are normally space-separated. Filenames are B<not> quoted, so "
1928 "you cannot use the output in another program (because filenames can contain "
1929 "spaces and other unsafe characters). If the guest was untrusted and someone "
1930 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1931 "on you by creating filenames with embedded newline characters. To B<safely> "
1932 "parse the output in another program, use the I<--csv> (Comma-Separated "
1937 #: ../cat/virt-ls.pod:143
1939 "Note that this output format is completely unrelated to the C<ls -lR> "
1944 #: ../cat/virt-ls.pod:146
1947 " $ virt-ls -lR -d guest /bin\n"
1948 " d 0555 4096 /bin\n"
1949 " - 0755 123 /bin/alsaunmute\n"
1950 " - 0755 28328 /bin/arch\n"
1951 " l 0777 4 /bin/awk -> gawk\n"
1952 " - 0755 27216 /bin/basename\n"
1953 " - 0755 943360 /bin/bash\n"
1959 #: ../cat/virt-ls.pod:155
1960 msgid "These basic fields are always shown:"
1964 #: ../cat/virt-ls.pod:159
1971 #: ../cat/virt-ls.pod:161
1973 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1974 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1975 "link), C<s> (socket) or C<u> (unknown)."
1979 #: ../cat/virt-ls.pod:171
1986 #: ../cat/virt-ls.pod:173
1987 msgid "The Unix permissions, displayed as a 4 digit octal number."
1991 #: ../cat/virt-ls.pod:175
1998 #: ../cat/virt-ls.pod:177
2000 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2001 "readable> option is given, in which case this is shown as a human-readable "
2006 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
2011 #: ../cat/virt-ls.pod:183
2012 msgid "The full path of the file or directory."
2016 #: ../cat/virt-ls.pod:185
2023 #: ../cat/virt-ls.pod:187
2024 msgid "For symbolic links only, the link target."
2028 #: ../cat/virt-ls.pod:191
2030 "In I<-lR> mode, additional command line options enable the display of more "
2035 #: ../cat/virt-ls.pod:194
2037 "With the I<--uids> flag, these additional fields are displayed before the "
2042 #: ../cat/virt-ls.pod:199
2049 #: ../cat/virt-ls.pod:201
2056 #: ../cat/virt-ls.pod:203
2058 "The UID and GID of the owner of the file (displayed numerically). Note "
2059 "these only make sense in the context of a Unix-like guest."
2063 #: ../cat/virt-ls.pod:208
2064 msgid "With the I<--times> flag, these additional fields are displayed:"
2068 #: ../cat/virt-ls.pod:212
2075 #: ../cat/virt-ls.pod:214
2076 msgid "The time of last access."
2080 #: ../cat/virt-ls.pod:216
2087 #: ../cat/virt-ls.pod:218
2088 msgid "The time of last modification."
2092 #: ../cat/virt-ls.pod:220
2099 #: ../cat/virt-ls.pod:222
2100 msgid "The time of last status change."
2104 #: ../cat/virt-ls.pod:226
2106 "The time fields are displayed as string dates and times, unless one of the "
2107 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2111 #: ../cat/virt-ls.pod:229
2112 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2116 #: ../cat/virt-ls.pod:233
2118 #| msgid "zero-device"
2120 msgstr "zero-device"
2123 #: ../cat/virt-ls.pod:235
2125 "The device containing the file (displayed as major:minor). This may not "
2126 "match devices as known to the guest."
2130 #: ../cat/virt-ls.pod:238
2135 #: ../cat/virt-ls.pod:240
2136 msgid "The inode number."
2140 #: ../cat/virt-ls.pod:242
2147 #: ../cat/virt-ls.pod:244
2148 msgid "The number of hard links."
2152 #: ../cat/virt-ls.pod:246
2157 #: ../cat/virt-ls.pod:248
2159 "For block and char special files, the device (displayed as major:minor)."
2163 #: ../cat/virt-ls.pod:251
2165 #| msgid "C<blocksize>"
2167 msgstr "C<blocksize>"
2170 #: ../cat/virt-ls.pod:253
2171 msgid "The number of 512 byte blocks allocated to the file."
2175 #: ../cat/virt-ls.pod:257
2177 "With the I<--checksum> flag, the checksum of the file contents is shown "
2178 "(only for regular files). Computing file checksums can take a considerable "
2183 #: ../cat/virt-ls.pod:280
2186 msgid "B<--checksum>"
2190 #: ../cat/virt-ls.pod:282
2191 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2195 #: ../cat/virt-ls.pod:284
2197 "Display checksum over file contents for regular files. With no argument, "
2198 "this defaults to using I<md5>. Using an argument, you can select the "
2199 "checksum type to use."
2203 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2204 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2205 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2207 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2212 #: ../cat/virt-ls.pod:316
2214 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2215 "so you cannot see what you are typing. If you are not worried about Tempest "
2216 "attacks and there is no one else in the room you can specify this flag to "
2217 "see what you are typing."
2221 #: ../cat/virt-ls.pod:321
2223 #| msgid "B<--no-dest-paths>"
2224 msgid "B<--extra-stats>"
2225 msgstr "B<--no-dest-paths>"
2228 #: ../cat/virt-ls.pod:323
2229 msgid "Display extra stats."
2233 #: ../cat/virt-ls.pod:339
2236 #| " guestfish --format=raw -a disk.img\n"
2239 " virt-ls --format=raw -a disk.img /dir\n"
2242 " guestfish --format=raw -a disk.img\n"
2246 #: ../cat/virt-ls.pod:343
2249 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2252 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2255 " guestfish --format=raw -a disk.img --format -a another.img\n"
2259 #: ../cat/virt-ls.pod:356
2260 msgid "Display file sizes in human-readable format."
2264 #: ../cat/virt-ls.pod:370
2269 #: ../cat/virt-ls.pod:372
2271 #| msgid "B<--live>"
2272 msgid "B<--recursive>"
2276 #: ../cat/virt-ls.pod:374
2278 "Select the mode. With neither of these options, C<virt-ls> produces a "
2279 "simple, flat list of the files in the named directory. See L</SIMPLE "
2284 #: ../cat/virt-ls.pod:378
2286 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2291 #: ../cat/virt-ls.pod:381
2293 "C<virt-ls -R> produces a recursive list of files starting at the named "
2294 "directory. See L</RECURSIVE LISTING>."
2298 #: ../cat/virt-ls.pod:384
2300 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2301 "parsed. See L</RECURSIVE LONG LISTING>."
2305 #: ../cat/virt-ls.pod:387
2307 #| msgid "B<--live>"
2312 #: ../cat/virt-ls.pod:389
2313 msgid "Display time fields."
2317 #: ../cat/virt-ls.pod:394
2319 #| msgid "B<--echo-keys>"
2320 msgid "B<--time-days>"
2321 msgstr "B<--echo-keys>"
2324 #: ../cat/virt-ls.pod:396
2325 msgid "Display time fields as days before now (negative if in the future)."
2329 #: ../cat/virt-ls.pod:398
2331 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2332 "of the file is between 0 and 86399 seconds."
2336 #: ../cat/virt-ls.pod:404
2338 #| msgid "B<--live>"
2339 msgid "B<--time-relative>"
2343 #: ../cat/virt-ls.pod:406
2344 msgid "Display time fields as seconds before now (negative if in the future)."
2348 #: ../cat/virt-ls.pod:411
2350 #| msgid "I<--timeout N>"
2352 msgstr "I<--timeout N>"
2355 #: ../cat/virt-ls.pod:413
2356 msgid "Display time fields as seconds since the Unix epoch."
2360 #: ../cat/virt-ls.pod:418
2367 #: ../cat/virt-ls.pod:420
2368 msgid "Display UID and GID fields."
2372 #: ../cat/virt-ls.pod:445
2373 msgid "Previous versions of virt-ls allowed you to write either:"
2377 #: ../cat/virt-ls.pod:447
2380 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2383 " virt-ls disk.img [disk.img ...] /dir\n"
2386 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2390 #: ../cat/virt-ls.pod:451
2393 #| " inspect-get-hostname root\n"
2396 " virt-ls guestname /dir\n"
2399 " inspect-get-hostname корінь\n"
2403 #: ../cat/virt-ls.pod:492
2406 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2407 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2408 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2410 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2411 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2412 "L<http://libguestfs.org/>."
2414 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2415 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2416 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2419 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369
2420 #: ../rescue/virt-rescue.pod:298
2422 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2423 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2424 msgstr "© Red Hat Inc., 2009–2010"
2427 #: ../df/virt-df.pod:5
2428 msgid "virt-df - Display free space on virtual filesystems"
2432 #: ../df/virt-df.pod:9
2435 #| " virt-list-partitions [--options] domname\n"
2438 " virt-df [--options]\n"
2441 " virt-list-partitions [--параметри] назва_домену\n"
2445 #: ../df/virt-df.pod:11
2448 #| " virt-list-partitions [--options] domname\n"
2451 " virt-df [--options] -d domname\n"
2454 " virt-list-partitions [--параметри] назва_домену\n"
2458 #: ../df/virt-df.pod:13
2461 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2464 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2467 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2471 #: ../df/virt-df.pod:17
2474 #| " virt-list-partitions [--options] domname\n"
2477 " virt-df [--options] domname\n"
2480 " virt-list-partitions [--параметри] назва_домену\n"
2484 #: ../df/virt-df.pod:19
2487 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2490 " virt-df [--options] disk.img [disk.img ...]\n"
2493 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2497 #: ../df/virt-df.pod:23
2499 "C<virt-df> is a command line tool to display free space on virtual machine "
2500 "filesystems. Unlike other tools, it doesn't just display the size of disk "
2501 "allocated to a virtual machine, but can look inside disk images to see how "
2502 "much space is really being used."
2506 #: ../df/virt-df.pod:28
2508 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2509 "to get a list of all active and inactive guests, and performs a C<df>-type "
2510 "operation on each one in turn, printing out the results."
2514 #: ../df/virt-df.pod:32
2516 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2517 "type operation on either the single named libvirt domain, or on the disk "
2518 "image(s) listed on the command line (which must all belong to a single VM). "
2519 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2520 "guest>. If you want to run on multiple guests, then you have to invoke "
2521 "C<virt-df> multiple times."
2525 #: ../df/virt-df.pod:39
2527 "Use the I<--csv> option to get a format which can be easily parsed by other "
2528 "programs. Other options are similar to the standard L<df(1)> command."
2532 #: ../df/virt-df.pod:45
2534 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
2535 "output human-readable:"
2539 #: ../df/virt-df.pod:48
2542 " # virt-df -d F14x64 -h\n"
2543 " Filesystem Size Used Available Use%\n"
2544 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
2545 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
2550 #: ../df/virt-df.pod:53
2551 msgid "Show disk usage for a disk image file called C<test.img>:"
2555 #: ../df/virt-df.pod:55
2558 " $ virt-df -a test1.img\n"
2559 " Filesystem 1K-blocks Used Available Use%\n"
2560 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
2565 #: ../df/virt-df.pod:112
2568 #| " guestfish --format=raw -a disk.img\n"
2571 " virt-df --format=raw -a disk.img\n"
2574 " guestfish --format=raw -a disk.img\n"
2578 #: ../df/virt-df.pod:116
2581 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2584 " virt-df --format=raw -a disk.img --format -a another.img\n"
2587 " guestfish --format=raw -a disk.img --format -a another.img\n"
2591 #: ../df/virt-df.pod:129
2592 msgid "Print sizes in human-readable format."
2596 #: ../df/virt-df.pod:131
2597 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2601 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2606 #: ../df/virt-df.pod:135
2608 #| msgid "B<--live>"
2613 #: ../df/virt-df.pod:137
2614 msgid "Print inodes instead of blocks."
2618 #: ../df/virt-df.pod:139
2620 #| msgid "B<--merge>"
2621 msgid "B<--one-per-guest>"
2625 #: ../df/virt-df.pod:141
2627 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
2628 "disks from several guests to a single libguestfs appliance."
2632 #: ../df/virt-df.pod:144
2633 msgid "You might use this option in the following circumstances:"
2637 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2638 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2639 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2640 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2641 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2642 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2643 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2644 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2645 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2646 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2647 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2648 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2649 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2650 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2651 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2652 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2653 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2654 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2655 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2656 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2657 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2658 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2659 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2660 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2661 #: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388
2662 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2663 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2664 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2665 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2666 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2667 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2668 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2669 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2670 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2671 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2672 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2673 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2674 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2675 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2676 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2677 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2678 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2679 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2680 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2681 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2682 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2683 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2684 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2685 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2686 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2687 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2048 ../src/guestfs.pod:2053
2688 #: ../src/guestfs.pod:2059 ../src/guestfs.pod:2067 ../src/guestfs.pod:2421
2689 #: ../src/guestfs.pod:2427 ../src/guestfs.pod:2432 ../src/guestfs.pod:2438
2690 #: ../src/guestfs.pod:2819 ../src/guestfs.pod:2824 ../src/guestfs.pod:2828
2691 #: ../src/guestfs.pod:2832 ../src/guestfs.pod:2836 ../src/guestfs.pod:2850
2692 #: ../src/guestfs.pod:2855 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084
2693 #: ../src/guestfs.pod:3088 ../src/guestfs.pod:3092
2694 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2695 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2696 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2701 #: ../df/virt-df.pod:150
2703 "If you think an untrusted guest might actively try to exploit the libguestfs "
2704 "appliance kernel, then this prevents one guest from interfering with the "
2705 "stats printed for another guest."
2709 #: ../df/virt-df.pod:156
2711 "If the kernel has a bug which stops it from accessing a filesystem in one "
2712 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2713 "and report stats for further guests."
2717 #: ../df/virt-df.pod:165
2719 "Print UUIDs instead of names. This is useful for following a guest even "
2720 "when the guest is migrated or renamed, or when two guests happen to have the "
2725 #: ../df/virt-df.pod:169
2727 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
2728 "images, we still print the disk image name even when this option is "
2733 #: ../df/virt-df.pod:224
2735 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2740 #: ../edit/virt-edit.pod:5
2741 msgid "virt-edit - Edit a file in a virtual machine"
2745 #: ../edit/virt-edit.pod:9
2748 #| " virt-list-partitions [--options] domname\n"
2751 " virt-edit [--options] -d domname file [file ...]\n"
2754 " virt-list-partitions [--параметри] назва_домену\n"
2758 #: ../edit/virt-edit.pod:11
2761 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2764 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2767 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2771 #: ../edit/virt-edit.pod:13
2774 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2779 #: ../edit/virt-edit.pod:17
2782 " virt-edit domname file\n"
2787 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2790 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2793 " virt-edit disk.img [disk.img ...] file\n"
2796 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2800 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2801 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2802 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2803 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2805 msgstr "ПОПЕРЕДЖЕННЯ"
2808 #: ../edit/virt-edit.pod:23
2810 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
2811 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
2812 "doing this, but doesn't catch all cases."
2816 #: ../edit/virt-edit.pod:29
2818 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2819 "exists in the named virtual machine (or disk image)."
2823 #: ../edit/virt-edit.pod:32
2825 "Multiple filenames can be given, in which case they are each edited in "
2826 "turn. Each filename must be a full path, starting at the root directory "
2827 "(starting with '/')."
2831 #: ../edit/virt-edit.pod:36
2832 msgid "If you want to just view a file, use L<virt-cat(1)>."
2836 #: ../edit/virt-edit.pod:38
2838 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2839 "USING GUESTFISH> below)."
2843 #: ../edit/virt-edit.pod:41
2845 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
2846 "that and much more."
2850 #: ../edit/virt-edit.pod:46
2851 msgid "Edit the named files interactively:"
2855 #: ../edit/virt-edit.pod:48
2858 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2863 #: ../edit/virt-edit.pod:50
2866 " virt-edit -d mydomain /etc/passwd\n"
2871 #: ../edit/virt-edit.pod:52
2872 msgid "For Windows guests, some Windows paths are understood:"
2876 #: ../edit/virt-edit.pod:54
2879 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2884 #: ../edit/virt-edit.pod:56
2886 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2887 "INTERACTIVE EDITING> below). To change the init default level to 5:"
2891 #: ../edit/virt-edit.pod:60
2894 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2899 #: ../edit/virt-edit.pod:81
2900 msgid "B<-b> extension"
2904 #: ../edit/virt-edit.pod:83
2905 msgid "B<--backup> extension"
2909 #: ../edit/virt-edit.pod:85
2911 "Create a backup of the original file I<in the guest disk image>. The backup "
2912 "has the original filename with C<extension> added."
2916 #: ../edit/virt-edit.pod:88
2918 "Usually the first character of C<extension> would be a dot C<.> so you would "
2923 #: ../edit/virt-edit.pod:91
2926 " virt-edit -b .orig [etc]\n"
2931 #: ../edit/virt-edit.pod:93
2932 msgid "By default, no backup file is made."
2936 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2937 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2938 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2939 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2941 msgstr "B<-c адреса>"
2944 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2945 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2946 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2947 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2948 msgid "B<--connect URI>"
2949 msgstr "B<--connect адреса>"
2952 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2953 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2954 #: ../tools/virt-win-reg.pl:135
2956 "If you specify guest block devices directly, then libvirt is not used at all."
2960 #: ../edit/virt-edit.pod:114
2962 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2963 "off so you cannot see what you are typing. If you are not worried about "
2964 "Tempest attacks and there is no one else in the room you can specify this "
2965 "flag to see what you are typing."
2969 #: ../edit/virt-edit.pod:119
2974 #: ../edit/virt-edit.pod:121
2976 #| msgid "B<--help>"
2977 msgid "B<--expr> EXPR"
2981 #: ../edit/virt-edit.pod:123
2983 "Instead of launching the external editor, non-interactively apply the Perl "
2984 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
2989 #: ../edit/virt-edit.pod:127
2991 "Be careful to properly quote the expression to prevent it from being altered "
2996 #: ../edit/virt-edit.pod:130
2997 msgid "Note that this option is only available when Perl 5 is installed."
3001 #: ../edit/virt-edit.pod:132
3003 #| msgid "B<--format=raw|qcow2|..>"
3004 msgid "B<--format> raw|qcow2|..."
3005 msgstr "B<--format=raw|qcow2|..>"
3008 #: ../edit/virt-edit.pod:143
3011 #| " guestfish --format=raw -a disk.img\n"
3014 " virt-edit --format=raw -a disk.img file\n"
3017 " guestfish --format=raw -a disk.img\n"
3021 #: ../edit/virt-edit.pod:147
3024 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3027 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3030 " guestfish --format=raw -a disk.img --format -a another.img\n"
3034 #: ../edit/virt-edit.pod:181
3035 msgid "Previous versions of virt-edit allowed you to write either:"
3039 #: ../edit/virt-edit.pod:187
3042 #| " edit filename\n"
3045 " virt-edit guestname file\n"
3048 " edit назва_файла\n"
3052 #: ../edit/virt-edit.pod:195
3053 msgid "NON-INTERACTIVE EDITING"
3057 #: ../edit/virt-edit.pod:197
3059 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3060 "administrator can interactively edit the file."
3064 #: ../edit/virt-edit.pod:200
3066 "There are two ways also to use C<virt-edit> from scripts in order to make "
3067 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
3068 "like this, it's less error-prone to write scripts directly using the "
3069 "libguestfs API and Augeas for configuration file editing.)"
3073 #: ../edit/virt-edit.pod:206
3075 "The first method is to temporarily set C<$EDITOR> to any script or program "
3076 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
3077 "update C<tmpfile> in place however it likes."
3081 #: ../edit/virt-edit.pod:210
3083 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3084 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
3085 "instances of C<foo> with C<bar> in a file:"
3089 #: ../edit/virt-edit.pod:214
3092 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3097 #: ../edit/virt-edit.pod:216
3099 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
3100 "For example to delete root's password you could do:"
3104 #: ../edit/virt-edit.pod:219
3107 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3112 #: ../edit/virt-edit.pod:221
3114 "What really happens is that the snippet is evaluated as a Perl expression "
3115 "for each line of the file. The line, including the final C<\\n>, is passed "
3116 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3120 #: ../edit/virt-edit.pod:226
3122 "To delete a line, set C<$_> to the empty string. For example, to delete the "
3123 "C<apache> user account from the password file you can do:"
3127 #: ../edit/virt-edit.pod:229
3130 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3135 #: ../edit/virt-edit.pod:231
3137 "To insert a line, prepend or append it to C<$_>. However appending lines to "
3138 "the end of the file is rather difficult this way since there is no concept "
3139 "of \"last line of the file\" - your expression just doesn't get called "
3140 "again. You might want to use the first method (setting C<$EDITOR>) if you "
3145 #: ../edit/virt-edit.pod:237
3147 "The variable C<$lineno> contains the current line number. As is "
3148 "traditional, the first line in the file is number C<1>."
3152 #: ../edit/virt-edit.pod:240
3154 "The return value from the expression is ignored, but the expression may call "
3155 "C<die> in order to abort the whole program, leaving the original file "
3160 #: ../edit/virt-edit.pod:244
3162 "Remember when matching the end of a line that C<$_> may contain the final C<"
3163 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3164 "newline then neither of these. Thus to match or substitute some text at the "
3165 "end of a line, use this regular expression:"
3169 #: ../edit/virt-edit.pod:249
3172 " /some text(\\r?\\n)?$/\n"
3177 #: ../edit/virt-edit.pod:251
3179 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3180 "$_> itself (since that would remove all newlines from the file):"
3184 #: ../edit/virt-edit.pod:255
3187 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3192 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3193 msgid "WINDOWS PATHS"
3197 #: ../edit/virt-edit.pod:259
3199 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3200 "paths (eg. C<E:\\foo\\bar.txt>)."
3204 #: ../edit/virt-edit.pod:262
3205 msgid "If and only if the guest is running Windows then:"
3209 #: ../edit/virt-edit.pod:268
3211 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3212 "to the correct filesystem."
3216 #: ../edit/virt-edit.pod:273
3218 "Any backslash (C<\\>) characters in the path are replaced with forward "
3219 "slashes so that libguestfs can process it."
3223 #: ../edit/virt-edit.pod:278
3225 "The path is resolved case insensitively to locate the file that should be "
3230 #: ../edit/virt-edit.pod:283
3231 msgid "There are some known shortcomings:"
3235 #: ../edit/virt-edit.pod:289
3236 msgid "Some NTFS symbolic links may not be followed correctly."
3240 #: ../edit/virt-edit.pod:293
3241 msgid "NTFS junction points that cross filesystems are not followed."
3245 #: ../edit/virt-edit.pod:299
3247 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3248 "C<virt-edit> doesn't work."
3252 #: ../edit/virt-edit.pod:302
3253 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3257 #: ../edit/virt-edit.pod:304
3260 #| " guestfish --ro -d myguest -i\n"
3263 " guestfish --rw -i -d domname edit /file\n"
3266 " guestfish --ro -d myguest -i\n"
3270 #: ../edit/virt-edit.pod:306
3272 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3277 #: ../edit/virt-edit.pod:309
3279 "The command above uses libguestfs's guest inspection feature and so does not "
3280 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3281 "disk images that don't contain guests. To edit a file on a disk image "
3286 #: ../edit/virt-edit.pod:314
3289 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3292 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3295 " guestfish --format=raw -a disk.img --format -a another.img\n"
3299 #: ../edit/virt-edit.pod:316
3301 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3302 "the disk image to edit, and C</file> is the full path to the file."
3306 #: ../edit/virt-edit.pod:320
3308 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3309 "C<write> or C<upload> instead:"
3313 #: ../edit/virt-edit.pod:323
3316 #| " guestfish --ro -d myguest -i\n"
3319 " guestfish --rw -i -d domname touch /newfile\n"
3322 " guestfish --ro -d myguest -i\n"
3326 #: ../edit/virt-edit.pod:325
3329 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3334 #: ../edit/virt-edit.pod:327
3337 " guestfish --rw -i -d domname upload localfile /newfile\n"
3342 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3343 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2966
3344 #: ../test-tool/libguestfs-test-tool.pod:82
3345 msgid "ENVIRONMENT VARIABLES"
3346 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3349 #: ../edit/virt-edit.pod:333
3356 #: ../edit/virt-edit.pod:335
3358 "If set, this string is used as the editor. It may contain arguments, eg. C<"
3363 #: ../edit/virt-edit.pod:338
3364 msgid "If not set, C<vi> is used."
3368 #: ../edit/virt-edit.pod:351
3371 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3372 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3373 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3375 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3376 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3377 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3379 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3380 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3381 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3384 #: ../examples/guestfs-examples.pod:5
3385 msgid "guestfs-examples - Examples of using libguestfs from C"
3389 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3392 " #include <guestfs.h>\n"
3395 " #include <guestfs.h>\n"
3399 #: ../examples/guestfs-examples.pod:11
3402 " guestfs_h *g = guestfs_create ();\n"
3403 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3404 " guestfs_launch (g);\n"
3409 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3412 " cc prog.c -o prog -lguestfs\n"
3414 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3417 " cc prog.c -o prog -lguestfs\n"
3419 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3423 #: ../examples/guestfs-examples.pod:21
3425 "This manual page contains examples of calling libguestfs from the C "
3426 "programming language. If you are not familiar with using libguestfs, you "
3427 "also need to read L<guestfs(3)>."
3431 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3432 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3433 #: ../python/examples/guestfs-python.pod:34
3434 #: ../ruby/examples/guestfs-ruby.pod:28
3435 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3439 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3440 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3441 #: ../python/examples/guestfs-python.pod:36
3442 #: ../ruby/examples/guestfs-ruby.pod:30
3449 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3450 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3451 #: ../python/examples/guestfs-python.pod:38
3452 #: ../ruby/examples/guestfs-ruby.pod:32
3453 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3457 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3458 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3459 #: ../python/examples/guestfs-python.pod:40
3460 #: ../ruby/examples/guestfs-ruby.pod:34
3467 #: ../examples/guestfs-examples.pod:35
3470 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3471 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3472 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3474 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3475 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3478 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3479 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3480 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3483 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3484 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3485 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3486 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314
3487 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57
3488 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3489 #: ../python/examples/guestfs-python.pod:53
3490 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3099
3491 #: ../test-tool/libguestfs-test-tool.pod:93
3496 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3497 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3498 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3499 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316
3500 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3501 #: ../perl/examples/guestfs-perl.pod:53
3502 #: ../python/examples/guestfs-python.pod:55
3503 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3101
3504 #: ../test-tool/libguestfs-test-tool.pod:95
3505 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3509 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3510 #: ../python/examples/guestfs-python.pod:59
3511 #: ../ruby/examples/guestfs-ruby.pod:53
3513 #| msgid "Copyright (C) 2009 Red Hat Inc."
3514 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3515 msgstr "© Red Hat Inc., 2009"
3518 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3519 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3520 #: ../perl/examples/guestfs-perl.pod:59
3521 #: ../python/examples/guestfs-python.pod:61
3522 #: ../ruby/examples/guestfs-ruby.pod:55
3524 "The examples in this manual page may be freely copied, modified and "
3525 "distributed without any restrictions."
3529 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3530 #: ../java/examples/guestfs-java.pod:68
3531 #: ../ocaml/examples/guestfs-ocaml.pod:101
3532 #: ../perl/examples/guestfs-perl.pod:62
3533 #: ../python/examples/guestfs-python.pod:64
3534 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3108
3536 "This library is free software; you can redistribute it and/or modify it "
3537 "under the terms of the GNU Lesser General Public License as published by the "
3538 "Free Software Foundation; either version 2 of the License, or (at your "
3539 "option) any later version."
3543 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3544 #: ../java/examples/guestfs-java.pod:73
3545 #: ../ocaml/examples/guestfs-ocaml.pod:106
3546 #: ../perl/examples/guestfs-perl.pod:67
3547 #: ../python/examples/guestfs-python.pod:69
3548 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3113
3550 "This library is distributed in the hope that it will be useful, but WITHOUT "
3551 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3552 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
3557 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3558 #: ../java/examples/guestfs-java.pod:78
3559 #: ../ocaml/examples/guestfs-ocaml.pod:111
3560 #: ../perl/examples/guestfs-perl.pod:72
3561 #: ../python/examples/guestfs-python.pod:74
3562 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3118
3564 "You should have received a copy of the GNU Lesser General Public License "
3565 "along with this library; if not, write to the Free Software Foundation, "
3566 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3570 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3575 #: ../examples/guestfs-recipes.pod:5
3577 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3578 "here. The only way which works for both sorts of output is to just write "
3579 "the URL directly. Do NOT use L<...> for URLs."
3583 #: ../examples/guestfs-recipes.pod:9
3585 "We break with tradition here and don't use ALL CAPS for the section "
3586 "headings, as this makes them much easier to read."
3590 #: ../examples/guestfs-recipes.pod:16
3591 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3595 #: ../examples/guestfs-recipes.pod:20
3597 "This page contains recipes for and links to things you can do using "
3598 "libguestfs, L<guestfish(1)> and the virt tools."
3602 #: ../examples/guestfs-recipes.pod:23
3603 msgid "Audit a virtual machine for setuid files"
3607 #: ../examples/guestfs-recipes.pod:25
3609 "The link below contains a small program which can be used to audit a Linux "
3610 "virtual machine to see what setuid and setgid files it contains."
3614 #: ../examples/guestfs-recipes.pod:28
3616 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3621 #: ../examples/guestfs-recipes.pod:30
3622 msgid "Change the background image in a Windows XP VM"
3626 #: ../examples/guestfs-recipes.pod:32
3628 "The links below explain how to use L<guestfish(1)> to change the background "
3629 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
3630 "be substantially different for each version of Windows."
3634 #: ../examples/guestfs-recipes.pod:37
3636 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3637 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3641 #: ../examples/guestfs-recipes.pod:40
3642 msgid "Cloning a virtual machine (Linux)"
3646 #: ../examples/guestfs-recipes.pod:42
3648 "The guestfish technique described in the link below works well for most "
3649 "Linux VMs. Depending on the Linux distro you may need to change the paths "
3654 #: ../examples/guestfs-recipes.pod:46
3656 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3661 #: ../examples/guestfs-recipes.pod:48
3663 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
3668 #: ../examples/guestfs-recipes.pod:51
3669 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3673 #: ../examples/guestfs-recipes.pod:53
3674 msgid "Cloning a virtual machine (Windows)"
3678 #: ../examples/guestfs-recipes.pod:55
3680 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3681 "straightforward. Currently there is code in the Aeolus Oz project which "
3682 "does this (using libguestfs). As part of our review of the virt-clone tool, "
3683 "we may add sysprepping ability."
3687 #: ../examples/guestfs-recipes.pod:60
3689 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3690 "list/2011-May/msg00019.html"
3694 #: ../examples/guestfs-recipes.pod:63
3695 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3699 #: ../examples/guestfs-recipes.pod:65
3700 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3704 #: ../examples/guestfs-recipes.pod:67
3707 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3712 #: ../examples/guestfs-recipes.pod:69
3713 msgid "To export just a subdirectory, eg. C</files>, do:"
3717 #: ../examples/guestfs-recipes.pod:71
3720 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3725 #: ../examples/guestfs-recipes.pod:73
3726 msgid "Create empty disk images"
3730 #: ../examples/guestfs-recipes.pod:75
3732 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
3733 "The useful guide below explains the options available."
3737 #: ../examples/guestfs-recipes.pod:78
3739 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3744 #: ../examples/guestfs-recipes.pod:80
3745 msgid "Dump raw filesystem content from inside a disk image or VM"
3749 #: ../examples/guestfs-recipes.pod:82
3751 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3752 "filesystem content from any filesystem in a disk image or a VM (even one "
3753 "which is encrypted or buried inside an LV):"
3757 #: ../examples/guestfs-recipes.pod:86
3760 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3763 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3766 " guestfish --format=raw -a disk.img --format -a another.img\n"
3770 #: ../examples/guestfs-recipes.pod:88
3773 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3778 #: ../examples/guestfs-recipes.pod:90
3779 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3783 #: ../examples/guestfs-recipes.pod:92
3784 msgid "Edit grub configuration in a VM"
3788 #: ../examples/guestfs-recipes.pod:94
3789 msgid "You can use this to:"
3793 #: ../examples/guestfs-recipes.pod:100
3794 msgid "Fix a virtual machine that does not boot."
3798 #: ../examples/guestfs-recipes.pod:104
3799 msgid "Change which kernel is used to boot the VM."
3803 #: ../examples/guestfs-recipes.pod:108
3804 msgid "Change kernel command line options."
3808 #: ../examples/guestfs-recipes.pod:112
3809 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3813 #: ../examples/guestfs-recipes.pod:114
3816 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3821 #: ../examples/guestfs-recipes.pod:116
3823 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3828 #: ../examples/guestfs-recipes.pod:119
3831 " virt-rescue -d BrokenGuest\n"
3836 #: ../examples/guestfs-recipes.pod:121
3837 msgid "Export any directory from a VM"
3841 #: ../examples/guestfs-recipes.pod:123
3843 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3847 #: ../examples/guestfs-recipes.pod:126
3850 #| " copy-out /home .\n"
3853 " virt-copy-out -d Guest /home .\n"
3856 " copy-out /home .\n"
3860 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3861 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3862 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922
3863 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640
3864 #: ../tools/virt-win-reg.pl:706
3869 #: ../examples/guestfs-recipes.pod:134
3871 "The final dot of the command is not a printing error. It means we want to "
3872 "copy out to the current directory."
3876 #: ../examples/guestfs-recipes.pod:139
3877 msgid "This creates a directory called C<home> under the current directory."
3881 #: ../examples/guestfs-recipes.pod:143
3883 "If the guest is a Windows guest then you can use drive letters and "
3884 "backslashes, but you must prefix the path with C<win:> and quote it to "
3885 "protect it from the shell, like this:"
3889 #: ../examples/guestfs-recipes.pod:147
3892 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3897 #: ../examples/guestfs-recipes.pod:149
3898 msgid "To get the output as a compressed tarball, do:"
3902 #: ../examples/guestfs-recipes.pod:151
3905 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3910 #: ../examples/guestfs-recipes.pod:153
3912 "Although it sounds tempting, this is usually not a reliable way to get a "
3913 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
3914 "org/FAQ.html#backup"
3918 #: ../examples/guestfs-recipes.pod:157
3919 msgid "Find out which user is using the most space"
3923 #: ../examples/guestfs-recipes.pod:159
3925 "This simple script examines a Linux guest to find out which user is using "
3926 "the most space in their home directory:"
3930 #: ../examples/guestfs-recipes.pod:162
3933 #| " #!/usr/bin/guestfish -f\n"
3939 " #!/usr/bin/guestfish -f\n"
3943 #: ../examples/guestfs-recipes.pod:164
3946 #| " set-qemu qemu\n"
3956 #: ../examples/guestfs-recipes.pod:166
3965 #: ../examples/guestfs-recipes.pod:169
3968 #| " guestfish --ro -d myguest -i\n"
3971 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3974 " guestfish --ro -d myguest -i\n"
3978 #: ../examples/guestfs-recipes.pod:171
3981 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3982 " echo -n \"$dir/$d\"\n"
3984 " guestfish --remote du \"$dir/$d\";\n"
3985 " done | sort -nr -k 2\n"
3990 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3993 " guestfish --remote exit\n"
3998 #: ../examples/guestfs-recipes.pod:179
3999 msgid "Get DHCP address from a VM"
4003 #: ../examples/guestfs-recipes.pod:181
4005 "The link below explains the many different possible techniques for getting "
4006 "the last assigned DHCP address of a virtual machine."
4010 #: ../examples/guestfs-recipes.pod:184
4012 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4013 "a-virtual-machine-disk-image/#content"
4017 #: ../examples/guestfs-recipes.pod:186
4019 "In the libguestfs source examples directory you will find the latest version "
4020 "of the C<virt-dhcp-address.c> program."
4024 #: ../examples/guestfs-recipes.pod:189
4025 msgid "Get the operating system product name string"
4029 #: ../examples/guestfs-recipes.pod:191
4030 msgid "Save the following script into a file called C<product-name.sh>:"
4034 #: ../examples/guestfs-recipes.pod:193
4037 #| " eval \"`guestfish --listen`\"\n"
4038 #| " guestfish --remote add-ro disk.img\n"
4039 #| " guestfish --remote run\n"
4040 #| " guestfish --remote lvs\n"
4045 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4046 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4047 " guestfish --remote inspect-get-product-name \"$root\"\n"
4048 " guestfish --remote exit\n"
4051 " eval \"`guestfish --listen`\"\n"
4052 " guestfish --remote add-ro disk.img\n"
4053 " guestfish --remote run\n"
4054 " guestfish --remote lvs\n"
4058 #: ../examples/guestfs-recipes.pod:200
4059 msgid "Make the script executable and run it on a named guest:"
4063 #: ../examples/guestfs-recipes.pod:202
4066 " # product-name.sh RHEL60x64\n"
4067 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4072 #: ../examples/guestfs-recipes.pod:205
4074 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4075 "C<xpath> command line tool or from your favourite programming language:"
4079 #: ../examples/guestfs-recipes.pod:209
4082 " # virt-inspector RHEL60x64 > xml\n"
4083 " # xpath '//product_name' < xml\n"
4086 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4091 #: ../examples/guestfs-recipes.pod:215
4092 msgid "Get the default boot kernel for a Linux VM"
4096 #: ../examples/guestfs-recipes.pod:217
4098 "The link below contains a program to print the default boot kernel for a "
4103 #: ../examples/guestfs-recipes.pod:220
4105 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4106 "kernel-for-a-vm/#content"
4110 #: ../examples/guestfs-recipes.pod:222
4112 "It uses Augeas, and the technique is generally applicable for many different "
4117 #: ../examples/guestfs-recipes.pod:229
4118 msgid "listing the user accounts in the guest"
4122 #: ../examples/guestfs-recipes.pod:233
4123 msgid "what repositories is it configured to use"
4127 #: ../examples/guestfs-recipes.pod:237
4128 msgid "what NTP servers does it connect to"
4132 #: ../examples/guestfs-recipes.pod:241
4133 msgid "what were the boot messages last time it booted"
4137 #: ../examples/guestfs-recipes.pod:245
4138 msgid "listing who was logged in recently"
4142 #: ../examples/guestfs-recipes.pod:249
4143 msgid "http://augeas.net/"
4147 #: ../examples/guestfs-recipes.pod:251
4148 msgid "Install RPMs in a guest"
4152 #: ../examples/guestfs-recipes.pod:253
4154 "The link below contains a method to install RPMs in a guest. In fact the "
4155 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4156 "installs them next time the guest is booted. You could use this technique "
4157 "to install vital security updates in an offline guest."
4161 #: ../examples/guestfs-recipes.pod:259
4163 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4167 #: ../examples/guestfs-recipes.pod:261
4168 msgid "List applications installed in a VM"
4172 #: ../examples/guestfs-recipes.pod:263
4173 msgid "Save the following to a file C<list-apps.sh>:"
4177 #: ../examples/guestfs-recipes.pod:265
4180 #| " eval \"`guestfish --listen`\"\n"
4181 #| " guestfish --remote add-ro disk.img\n"
4182 #| " guestfish --remote run\n"
4183 #| " guestfish --remote lvs\n"
4188 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4189 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4190 " guestfish --remote inspect-list-applications \"$root\"\n"
4191 " guestfish --remote exit\n"
4194 " eval \"`guestfish --listen`\"\n"
4195 " guestfish --remote add-ro disk.img\n"
4196 " guestfish --remote run\n"
4197 " guestfish --remote lvs\n"
4201 #: ../examples/guestfs-recipes.pod:272
4203 "Make the file executable and then you can run it on any named virtual "
4208 #: ../examples/guestfs-recipes.pod:275
4211 " # list-apps.sh WinGuest\n"
4213 " app_name: Mozilla Firefox (3.6.12)\n"
4214 " app_display_name: Mozilla Firefox (3.6.12)\n"
4216 " app_version: 3.6.12 (en-GB)\n"
4218 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4219 " app_trans_path:\n"
4220 " app_publisher: Mozilla\n"
4221 " app_url: http://www.mozilla.com/en-GB/\n"
4222 " app_source_package:\n"
4224 " app_description: Mozilla Firefox\n"
4227 " app_name: VLC media player\n"
4228 " app_display_name: VLC media player 1.1.5\n"
4230 " app_version: 1.1.5\n"
4232 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4233 " app_trans_path:\n"
4234 " app_publisher: VideoLAN\n"
4235 " app_url: http://www.videolan.org/\n"
4236 " app_source_package:\n"
4238 " app_description:\n"
4244 #: ../examples/guestfs-recipes.pod:305
4246 "If you want to run the script on disk images (instead of libvirt virtual "
4247 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4252 #: ../examples/guestfs-recipes.pod:309
4253 msgid "List files and directories in a VM"
4257 #: ../examples/guestfs-recipes.pod:311
4258 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4262 #: ../examples/guestfs-recipes.pod:313
4265 #| " guestfish --ro -d myguest -i\n"
4268 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4271 " guestfish --ro -d myguest -i\n"
4275 #: ../examples/guestfs-recipes.pod:315
4276 msgid "List services in a Windows VM"
4280 #: ../examples/guestfs-recipes.pod:317
4282 "The link below contains a script that can be used to list out the services "
4283 "from a Windows VM, and whether those services run at boot time or are loaded "
4288 #: ../examples/guestfs-recipes.pod:321
4290 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4295 #: ../examples/guestfs-recipes.pod:323
4296 msgid "Make a disk image sparse"
4300 #: ../examples/guestfs-recipes.pod:325
4302 "The link below contains some guides for making a disk image sparse (or "
4303 "reintroducing sparseness)."
4307 #: ../examples/guestfs-recipes.pod:328
4309 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4313 #: ../examples/guestfs-recipes.pod:330
4314 msgid "Monitor disk usage over time"
4318 #: ../examples/guestfs-recipes.pod:332
4320 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4321 "The link below contains a guide."
4325 #: ../examples/guestfs-recipes.pod:335
4326 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4330 #: ../examples/guestfs-recipes.pod:337
4331 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4335 #: ../examples/guestfs-recipes.pod:339
4337 "L<guestfish(1)> plus the tools described in the link below can be used to "
4338 "read out the Windows Event Log from any virtual machine running Windows "
4339 "Vista or a later version."
4343 #: ../examples/guestfs-recipes.pod:343
4345 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4346 "guestfish/#content"
4350 #: ../examples/guestfs-recipes.pod:345
4351 msgid "Remove root password (Linux)"
4355 #: ../examples/guestfs-recipes.pod:347
4357 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4358 "files. One use is to remove the root password from a Linux guest:"
4362 #: ../examples/guestfs-recipes.pod:350
4365 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4370 #: ../examples/guestfs-recipes.pod:352
4371 msgid "Remove Administrator password (Windows)"
4375 #: ../examples/guestfs-recipes.pod:354
4377 "The link below contains one technique for removing the Administrator "
4378 "password from a Windows VM, or to be more precise, it gives you a command "
4379 "prompt the next time you log in which you can use to bypass any security:"
4383 #: ../examples/guestfs-recipes.pod:359
4385 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4386 "administrator-password-with-guestfish/"
4390 #: ../examples/guestfs-recipes.pod:361
4391 msgid "Unpack a live CD"
4395 #: ../examples/guestfs-recipes.pod:363
4397 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4398 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
4399 "layers, as outlined in the guide below."
4403 #: ../examples/guestfs-recipes.pod:367
4405 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4410 #: ../examples/guestfs-recipes.pod:369
4411 msgid "Uploading and downloading files"
4415 #: ../examples/guestfs-recipes.pod:371
4417 "The link below contains general tips on uploading (copying in) and "
4418 "downloading (copying out) files from VMs."
4422 #: ../examples/guestfs-recipes.pod:374
4424 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4428 #: ../examples/guestfs-recipes.pod:376
4429 msgid "Use libguestfs tools on VMware ESX guests"
4433 #: ../examples/guestfs-recipes.pod:378
4435 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4436 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4440 #: ../examples/guestfs-recipes.pod:382
4442 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4447 #: ../examples/guestfs-recipes.pod:386
4450 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4451 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4452 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4454 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4455 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4456 "(3)>, L<http://libguestfs.org/>."
4458 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4459 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4460 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4463 #: ../examples/guestfs-recipes.pod:402
4465 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4466 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4467 msgstr "© Red Hat Inc., 2009–2010"
4470 #: ../fish/guestfish-actions.pod:1
4475 #: ../fish/guestfish-actions.pod:3
4478 " add-cdrom filename\n"
4483 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4484 msgid "This function adds a virtual CD-ROM disk image to the guest."
4488 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4489 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4493 #: ../fish/guestfish-actions.pod:15
4495 "This call checks for the existence of C<filename>. This stops you from "
4496 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4497 "and C<http:> URLs. To specify those, use the general L</config> call "
4502 #: ../fish/guestfish-actions.pod:22
4504 "If you just want to add an ISO file (often you use this as an efficient way "
4505 "to transfer large files into the guest), then you should probably use L</add-"
4506 "drive-ro> instead."
4510 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4511 #: ../fish/guestfish-actions.pod:177
4513 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4518 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4519 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4520 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4521 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4522 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4523 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4524 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4525 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4526 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4527 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4528 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4529 #: ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926
4530 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255
4531 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565
4532 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662
4533 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703
4534 #: ../src/guestfs-actions.pod:7886
4536 "Deprecated functions will not be removed from the API, but the fact that "
4537 "they are deprecated indicates that there are problems with correct use of "
4542 #: ../fish/guestfish-actions.pod:35
4547 #: ../fish/guestfish-actions.pod:37
4552 #: ../fish/guestfish-actions.pod:39
4555 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4560 #: ../fish/guestfish-actions.pod:41
4562 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4563 "It works by connecting to libvirt, requesting the domain and domain XML from "
4564 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4568 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4570 "The number of disks added is returned. This operation is atomic: if an "
4571 "error is returned, then no disks are added."
4575 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4577 "This function does some minimal checks to make sure the libvirt domain is "
4578 "not running (unless C<readonly> is true). In a future version we will try "
4579 "to acquire the libvirt lock on each disk."
4583 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4585 "Disks must be accessible locally. This often means that adding disks from a "
4586 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4587 "unless those disks are accessible via the same device path locally too."
4591 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4593 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4594 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4595 "libvirt URI (or one set through an environment variable, see the libvirt "
4596 "documentation for full details)."
4600 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4602 "The optional C<live> flag controls whether this call will try to connect to "
4603 "a running virtual machine C<guestfsd> process if it sees a suitable "
4604 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4605 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4606 "DAEMONS> for more information."
4610 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4612 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4613 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4614 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4619 #: ../fish/guestfish-actions.pod:76
4621 "The other optional parameters are passed directly through to L</add-drive-"
4626 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4627 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4628 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4629 #: ../fish/guestfish-actions.pod:3447
4631 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4635 #: ../fish/guestfish-actions.pod:81
4640 #: ../fish/guestfish-actions.pod:83
4643 " add-drive filename\n"
4646 " add-drive назва_файла\n"
4650 #: ../fish/guestfish-actions.pod:85
4652 "This function is the equivalent of calling L</add-drive-opts> with no "
4653 "optional parameters, so the disk is added writable, with the format being "
4654 "detected automatically."
4658 #: ../fish/guestfish-actions.pod:89
4660 "Automatic detection of the format opens you up to a potential security hole "
4661 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4662 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4663 "you should think about replacing calls to this function with calls to L</add-"
4664 "drive-opts>, and specifying the format."
4668 #: ../fish/guestfish-actions.pod:96
4669 msgid "add-drive-opts"
4670 msgstr "add-drive-opts"
4673 #: ../fish/guestfish-actions.pod:98
4678 #: ../fish/guestfish-actions.pod:100
4681 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4686 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4688 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4689 "The first time you call this function, the disk appears as C</dev/sda>, the "
4690 "second time as C</dev/sdb>, and so on."
4694 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4696 "You don't necessarily need to be root when using libguestfs. However you "
4697 "obviously do need sufficient permissions to access the filename for whatever "
4698 "operations you want to perform (ie. read access if you just want to read the "
4699 "image or write access if you want to modify the image)."
4703 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4704 msgid "This call checks that C<filename> exists."
4708 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4709 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4710 msgid "The optional arguments are:"
4714 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4716 msgstr "C<readonly>"
4719 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4721 "If true then the image is treated as read-only. Writes are still allowed, "
4722 "but they are stored in a temporary snapshot overlay which is discarded at "
4723 "the end. The disk that you add is not modified."
4727 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4732 #: ../fish/guestfish-actions.pod:127
4734 "This forces the image format. If you omit this (or use L</add-drive> or L</"
4735 "add-drive-ro>) then the format is automatically detected. Possible formats "
4736 "include C<raw> and C<qcow2>."
4740 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4742 "Automatic detection of the format opens you up to a potential security hole "
4743 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4744 "RHBZ#642934. Specifying the format closes this security hole."
4748 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4753 #: ../fish/guestfish-actions.pod:138
4755 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4756 "add-drive-with-if> call (q.v.)"
4760 #: ../fish/guestfish-actions.pod:145
4761 msgid "add-drive-ro"
4762 msgstr "add-drive-ro"
4765 #: ../fish/guestfish-actions.pod:147
4770 #: ../fish/guestfish-actions.pod:149
4773 " add-drive-ro filename\n"
4778 #: ../fish/guestfish-actions.pod:151
4780 "This function is the equivalent of calling L</add-drive-opts> with the "
4781 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4782 "is added read-only, with the format being detected automatically."
4786 #: ../fish/guestfish-actions.pod:156
4787 msgid "add-drive-ro-with-if"
4791 #: ../fish/guestfish-actions.pod:158
4794 " add-drive-ro-with-if filename iface\n"
4799 #: ../fish/guestfish-actions.pod:160
4801 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4802 "interface emulation to use at run time."
4806 #: ../fish/guestfish-actions.pod:170
4807 msgid "add-drive-with-if"
4811 #: ../fish/guestfish-actions.pod:172
4814 " add-drive-with-if filename iface\n"
4819 #: ../fish/guestfish-actions.pod:174
4821 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4822 "interface emulation to use at run time."
4826 #: ../fish/guestfish-actions.pod:184
4831 #: ../fish/guestfish-actions.pod:186
4834 " aug-clear augpath\n"
4839 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4841 "Set the value associated with C<path> to C<NULL>. This is the same as the "
4842 "L<augtool(1)> C<clear> command."
4846 #: ../fish/guestfish-actions.pod:191
4851 #: ../fish/guestfish-actions.pod:193
4859 #: ../fish/guestfish-actions.pod:195
4861 "Close the current Augeas handle and free up any resources used by it. After "
4862 "calling this, you have to call L</aug-init> again before you can use any "
4863 "other Augeas functions."
4867 #: ../fish/guestfish-actions.pod:200
4872 #: ../fish/guestfish-actions.pod:202
4875 " aug-defnode name expr val\n"
4880 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4882 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4886 #: ../fish/guestfish-actions.pod:207
4888 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4889 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
4890 "containing that single node."
4894 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4896 "On success this returns a pair containing the number of nodes in the "
4897 "nodeset, and a boolean flag if a node was created."
4901 #: ../fish/guestfish-actions.pod:215
4906 #: ../fish/guestfish-actions.pod:217
4909 " aug-defvar name expr\n"
4914 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4916 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4917 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
4921 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4923 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4924 "evaluates to something which is not a nodeset."
4928 #: ../fish/guestfish-actions.pod:226
4933 #: ../fish/guestfish-actions.pod:228
4936 " aug-get augpath\n"
4941 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4943 "Look up the value associated with C<path>. If C<path> matches exactly one "
4944 "node, the C<value> is returned."
4948 #: ../fish/guestfish-actions.pod:233
4953 #: ../fish/guestfish-actions.pod:235
4956 " aug-init root flags\n"
4961 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4963 "Create a new Augeas handle for editing configuration files. If there was "
4964 "any previous Augeas handle associated with this guestfs session, then it is "
4969 #: ../fish/guestfish-actions.pod:241
4970 msgid "You must call this before using any other L</aug-*> commands."
4974 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4976 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
4980 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4982 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4983 "logical I<or> of the following integers:"
4987 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4988 msgid "C<AUG_SAVE_BACKUP> = 1"
4989 msgstr "C<AUG_SAVE_BACKUP> = 1"
4992 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4993 msgid "Keep the original file with a C<.augsave> extension."
4997 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4998 msgid "C<AUG_SAVE_NEWFILE> = 2"
4999 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5002 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5004 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5005 "original. Overrides C<AUG_SAVE_BACKUP>."
5009 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5010 msgid "C<AUG_TYPE_CHECK> = 4"
5011 msgstr "C<AUG_TYPE_CHECK> = 4"
5014 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5015 msgid "Typecheck lenses."
5019 #: ../fish/guestfish-actions.pod:266
5021 "This option is only useful when debugging Augeas lenses. Use of this option "
5022 "may require additional memory for the libguestfs appliance. You may need to "
5023 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5027 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5028 msgid "C<AUG_NO_STDINC> = 8"
5029 msgstr "C<AUG_NO_STDINC> = 8"
5032 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5033 msgid "Do not use standard load path for modules."
5037 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5038 msgid "C<AUG_SAVE_NOOP> = 16"
5039 msgstr "C<AUG_SAVE_NOOP> = 16"
5042 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5043 msgid "Make save a no-op, just record what would have been changed."
5047 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5048 msgid "C<AUG_NO_LOAD> = 32"
5049 msgstr "C<AUG_NO_LOAD> = 32"
5052 #: ../fish/guestfish-actions.pod:281
5053 msgid "Do not load the tree in L</aug-init>."
5057 #: ../fish/guestfish-actions.pod:285
5058 msgid "To close the handle, you can call L</aug-close>."
5062 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5063 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5067 #: ../fish/guestfish-actions.pod:289
5072 #: ../fish/guestfish-actions.pod:291
5075 " aug-insert augpath label true|false\n"
5080 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5082 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5083 "or after C<path> (depending on the boolean flag C<before>)."
5087 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5089 "C<path> must match exactly one existing node in the tree, and C<label> must "
5090 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5094 #: ../fish/guestfish-actions.pod:301
5099 #: ../fish/guestfish-actions.pod:303
5107 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5108 msgid "Load files into the tree."
5109 msgstr "Завантажити файли до ієрархії."
5112 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5113 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5117 #: ../fish/guestfish-actions.pod:310
5122 #: ../fish/guestfish-actions.pod:312
5130 #: ../fish/guestfish-actions.pod:314
5132 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5133 "resulting nodes into alphabetical order."
5137 #: ../fish/guestfish-actions.pod:317
5142 #: ../fish/guestfish-actions.pod:319
5145 " aug-match augpath\n"
5150 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5152 "Returns a list of paths which match the path expression C<path>. The "
5153 "returned paths are sufficiently qualified so that they match exactly one "
5154 "node in the current tree."
5158 #: ../fish/guestfish-actions.pod:325
5163 #: ../fish/guestfish-actions.pod:327
5166 " aug-mv src dest\n"
5171 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5173 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5174 "C<dest> is overwritten if it exists."
5178 #: ../fish/guestfish-actions.pod:332
5183 #: ../fish/guestfish-actions.pod:334
5191 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5192 msgid "Remove C<path> and all of its children."
5196 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5197 msgid "On success this returns the number of entries which were removed."
5201 #: ../fish/guestfish-actions.pod:340
5206 #: ../fish/guestfish-actions.pod:342
5214 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5215 msgid "This writes all pending changes to disk."
5219 #: ../fish/guestfish-actions.pod:346
5221 "The flags which were passed to L</aug-init> affect exactly how files are "
5226 #: ../fish/guestfish-actions.pod:349
5231 #: ../fish/guestfish-actions.pod:351
5234 " aug-set augpath val\n"
5239 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5240 msgid "Set the value associated with C<path> to C<val>."
5244 #: ../fish/guestfish-actions.pod:355
5246 "In the Augeas API, it is possible to clear a node by setting the value to "
5247 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5248 "this call. Instead you must use the L</aug-clear> call."
5252 #: ../fish/guestfish-actions.pod:360
5257 #: ../fish/guestfish-actions.pod:362
5260 " available 'groups ...'\n"
5265 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5267 "This command is used to check the availability of some groups of "
5268 "functionality in the appliance, which not all builds of the libguestfs "
5269 "appliance will be able to provide."
5273 #: ../fish/guestfish-actions.pod:368
5275 "The libguestfs groups, and the functions that those groups correspond to, "
5276 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5277 "runtime by calling L</available-all-groups>."
5281 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5283 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5284 "\"]> would check for the availability of the Linux inotify functions and "
5285 "Augeas (configuration file editing) functions."
5289 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5290 msgid "The command returns no error if I<all> requested groups are available."
5294 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5296 "It fails with an error if one or more of the requested groups is unavailable "
5301 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5303 "If an unknown group name is included in the list of groups then an error is "
5308 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5310 msgstr "I<Нотатки:>"
5313 #: ../fish/guestfish-actions.pod:392
5314 msgid "You must call L</launch> before calling this function."
5318 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5320 "The reason is because we don't know what groups are supported by the "
5321 "appliance/daemon until it is running and can be queried."
5325 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5327 "If a group of functions is available, this does not necessarily mean that "
5328 "they will work. You still have to check for errors when calling individual "
5329 "API functions even if they are available."
5333 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5335 "It is usually the job of distro packagers to build complete functionality "
5336 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5337 "with all requirements satisfied, will support everything."
5341 #: ../fish/guestfish-actions.pod:414
5343 "This call was added in version C<1.0.80>. In previous versions of "
5344 "libguestfs all you could do would be to speculatively execute a command to "
5345 "find out if the daemon implemented it. See also L</version>."
5349 #: ../fish/guestfish-actions.pod:421
5350 msgid "available-all-groups"
5354 #: ../fish/guestfish-actions.pod:423
5357 " available-all-groups\n"
5362 #: ../fish/guestfish-actions.pod:425
5364 "This command returns a list of all optional groups that this daemon knows "
5365 "about. Note this returns both supported and unsupported groups. To find "
5366 "out which ones the daemon can actually support you have to call L</"
5367 "available> on each member of the returned list."
5371 #: ../fish/guestfish-actions.pod:431
5372 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5376 #: ../fish/guestfish-actions.pod:433
5381 #: ../fish/guestfish-actions.pod:435
5384 " base64-in (base64file|-) filename\n"
5389 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5391 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5395 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5396 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5397 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5398 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5399 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5400 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5401 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5402 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5406 #: ../fish/guestfish-actions.pod:442
5411 #: ../fish/guestfish-actions.pod:444
5414 " base64-out filename (base64file|-)\n"
5419 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5421 "This command downloads the contents of C<filename>, writing it out to local "
5422 "file C<base64file> encoded as base64."
5426 #: ../fish/guestfish-actions.pod:451
5427 msgid "blockdev-flushbufs"
5431 #: ../fish/guestfish-actions.pod:453
5434 " blockdev-flushbufs device\n"
5439 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5441 "This tells the kernel to flush internal buffers associated with C<device>."
5445 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5446 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5447 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5448 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5449 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5450 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5451 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5452 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5453 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5454 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5455 msgid "This uses the L<blockdev(8)> command."
5459 #: ../fish/guestfish-actions.pod:460
5460 msgid "blockdev-getbsz"
5464 #: ../fish/guestfish-actions.pod:462
5467 " blockdev-getbsz device\n"
5472 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5473 msgid "This returns the block size of a device."
5477 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5478 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5480 "(Note this is different from both I<size in blocks> and I<filesystem block "
5485 #: ../fish/guestfish-actions.pod:471
5486 msgid "blockdev-getro"
5490 #: ../fish/guestfish-actions.pod:473
5493 " blockdev-getro device\n"
5498 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5500 "Returns a boolean indicating if the block device is read-only (true if read-"
5501 "only, false if not)."
5505 #: ../fish/guestfish-actions.pod:480
5506 msgid "blockdev-getsize64"
5510 #: ../fish/guestfish-actions.pod:482
5513 " blockdev-getsize64 device\n"
5518 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5519 msgid "This returns the size of the device in bytes."
5523 #: ../fish/guestfish-actions.pod:486
5524 msgid "See also L</blockdev-getsz>."
5528 #: ../fish/guestfish-actions.pod:490
5529 msgid "blockdev-getss"
5533 #: ../fish/guestfish-actions.pod:492
5536 " blockdev-getss device\n"
5541 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5543 "This returns the size of sectors on a block device. Usually 512, but can be "
5544 "larger for modern devices."
5548 #: ../fish/guestfish-actions.pod:497
5550 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5554 #: ../fish/guestfish-actions.pod:502
5555 msgid "blockdev-getsz"
5559 #: ../fish/guestfish-actions.pod:504
5562 " blockdev-getsz device\n"
5567 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5569 "This returns the size of the device in units of 512-byte sectors (even if "
5570 "the sectorsize isn't 512 bytes ... weird)."
5574 #: ../fish/guestfish-actions.pod:509
5576 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5577 "blockdev-getsize64> for the more useful I<size in bytes>."
5581 #: ../fish/guestfish-actions.pod:515
5582 msgid "blockdev-rereadpt"
5586 #: ../fish/guestfish-actions.pod:517
5589 " blockdev-rereadpt device\n"
5594 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5595 msgid "Reread the partition table on C<device>."
5599 #: ../fish/guestfish-actions.pod:523
5600 msgid "blockdev-setbsz"
5604 #: ../fish/guestfish-actions.pod:525
5607 " blockdev-setbsz device blocksize\n"
5612 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5613 msgid "This sets the block size of a device."
5617 #: ../fish/guestfish-actions.pod:534
5618 msgid "blockdev-setro"
5622 #: ../fish/guestfish-actions.pod:536
5625 " blockdev-setro device\n"
5630 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5631 msgid "Sets the block device named C<device> to read-only."
5635 #: ../fish/guestfish-actions.pod:542
5636 msgid "blockdev-setrw"
5640 #: ../fish/guestfish-actions.pod:544
5643 " blockdev-setrw device\n"
5648 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5649 msgid "Sets the block device named C<device> to read-write."
5653 #: ../fish/guestfish-actions.pod:550
5654 msgid "btrfs-filesystem-resize"
5658 #: ../fish/guestfish-actions.pod:552
5661 " btrfs-filesystem-resize mountpoint [size:..]\n"
5666 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5667 msgid "This command resizes a btrfs filesystem."
5671 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5673 "Note that unlike other resize calls, the filesystem has to be mounted and "
5674 "the parameter is the mountpoint not the device (this is a requirement of "
5679 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5680 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5681 msgid "The optional parameters are:"
5685 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5686 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5691 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5693 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5694 "resized to the maximum size."
5698 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5699 msgid "See also L<btrfs(8)>."
5703 #: ../fish/guestfish-actions.pod:575
5704 msgid "case-sensitive-path"
5708 #: ../fish/guestfish-actions.pod:577
5711 " case-sensitive-path path\n"
5716 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5718 "This can be used to resolve case insensitive paths on a filesystem which is "
5719 "case sensitive. The use case is to resolve paths which you have read from "
5720 "Windows configuration files or the Windows Registry, to the true path."
5724 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5726 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5727 "(and probably others), which is that although the underlying filesystem is "
5728 "case-insensitive, the driver exports the filesystem to Linux as case-"
5733 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5735 "One consequence of this is that special directories such as C<c:\\windows> "
5736 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5737 "precise details of how they were created. In Windows itself this would not "
5742 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5744 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5749 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5751 "This function resolves the true case of each element in the path and returns "
5752 "the case-sensitive path."
5756 #: ../fish/guestfish-actions.pod:601
5758 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
5759 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5760 "the directories were originally created under Windows)."
5764 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5765 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5769 #: ../fish/guestfish-actions.pod:609
5770 msgid "See also L</realpath>."
5774 #: ../fish/guestfish-actions.pod:611
5779 #: ../fish/guestfish-actions.pod:613
5789 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5790 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5791 msgid "Return the contents of the file named C<path>."
5795 #: ../fish/guestfish-actions.pod:617
5797 "Note that this function cannot correctly handle binary files (specifically, "
5798 "files containing C<\\0> character which is treated as end of string). For "
5799 "those you need to use the L</read-file> or L</download> functions which have "
5800 "a more complex interface."
5804 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5805 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5806 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5807 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5808 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5809 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5810 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5811 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5812 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5813 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5814 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5815 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5816 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5817 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5818 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5819 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5820 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5821 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5822 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5823 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5824 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5825 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5826 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5827 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5828 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5829 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5830 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5831 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5832 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720
5833 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5834 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5835 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5837 "Because of the message protocol, there is a transfer limit of somewhere "
5838 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
5842 #: ../fish/guestfish-actions.pod:625
5847 #: ../fish/guestfish-actions.pod:627
5850 " checksum csumtype path\n"
5855 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5857 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5861 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5863 "The type of checksum to compute is given by the C<csumtype> parameter which "
5864 "must have one of the following values:"
5868 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5873 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5875 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5880 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5885 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5886 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5890 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5895 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5896 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5900 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5905 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5906 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5910 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5915 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5916 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5920 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5925 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5926 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5930 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5935 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5936 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5940 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5941 msgid "The checksum is returned as a printable string."
5945 #: ../fish/guestfish-actions.pod:670
5946 msgid "To get the checksum for a device, use L</checksum-device>."
5950 #: ../fish/guestfish-actions.pod:672
5951 msgid "To get the checksums for many files, use L</checksums-out>."
5955 #: ../fish/guestfish-actions.pod:674
5956 msgid "checksum-device"
5957 msgstr "checksum-device"
5960 #: ../fish/guestfish-actions.pod:676
5963 " checksum-device csumtype device\n"
5968 #: ../fish/guestfish-actions.pod:678
5970 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5971 "device named C<device>. For the types of checksums supported see the L</"
5972 "checksum> command."
5976 #: ../fish/guestfish-actions.pod:682
5977 msgid "checksums-out"
5981 #: ../fish/guestfish-actions.pod:684
5984 " checksums-out csumtype directory (sumsfile|-)\n"
5989 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5991 "This command computes the checksums of all regular files in C<directory> and "
5992 "then emits a list of those checksums to the local output file C<sumsfile>."
5996 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5998 "This can be used for verifying the integrity of a virtual machine. However "
5999 "to be properly secure you should pay attention to the output of the checksum "
6000 "command (it uses the ones from GNU coreutils). In particular when the "
6001 "filename is not printable, coreutils uses a special backslash syntax. For "
6002 "more information, see the GNU coreutils info file."
6006 #: ../fish/guestfish-actions.pod:700
6011 #: ../fish/guestfish-actions.pod:702
6014 " chmod mode path\n"
6019 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6021 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6026 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6028 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6029 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6034 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
6035 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
6036 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
6037 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
6038 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
6039 msgid "The mode actually set is affected by the umask."
6043 #: ../fish/guestfish-actions.pod:713
6048 #: ../fish/guestfish-actions.pod:715
6051 " chown owner group path\n"
6056 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6057 msgid "Change the file owner to C<owner> and group to C<group>."
6061 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
6062 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
6064 "Only numeric uid and gid are supported. If you want to use names, you will "
6065 "need to locate and parse the password file yourself (Augeas support makes "
6066 "this relatively easy)."
6070 #: ../fish/guestfish-actions.pod:723
6075 #: ../fish/guestfish-actions.pod:725
6078 " command 'arguments ...'\n"
6083 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6085 "This call runs a command from the guest filesystem. The filesystem must be "
6086 "mounted, and must contain a compatible operating system (ie. something "
6087 "Linux, with the same or compatible processor architecture)."
6091 #: ../fish/guestfish-actions.pod:732
6093 "The single parameter is an argv-style list of arguments. The first element "
6094 "is the name of the program to run. Subsequent elements are parameters. The "
6095 "list must be non-empty (ie. must contain a program name). Note that the "
6096 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6100 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6101 msgid "The return value is anything printed to I<stdout> by the command."
6105 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6107 "If the command returns a non-zero exit status, then this function returns an "
6108 "error message. The error message string is the content of I<stderr> from "
6113 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6115 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6116 "bin>. If you require a program from another location, you should provide "
6117 "the full path in the first parameter."
6121 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6123 "Shared libraries and data files required by the program must be available on "
6124 "filesystems which are mounted in the correct places. It is the caller's "
6125 "responsibility to ensure all filesystems that are needed are mounted at the "
6130 #: ../fish/guestfish-actions.pod:760
6131 msgid "command-lines"
6135 #: ../fish/guestfish-actions.pod:762
6138 " command-lines 'arguments ...'\n"
6143 #: ../fish/guestfish-actions.pod:764
6145 "This is the same as L</command>, but splits the result into a list of lines."
6149 #: ../fish/guestfish-actions.pod:767
6150 msgid "See also: L</sh-lines>"
6154 #: ../fish/guestfish-actions.pod:772
6159 #: ../fish/guestfish-actions.pod:774
6162 " config qemuparam qemuvalue\n"
6167 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6169 "This can be used to add arbitrary qemu command line parameters of the form "
6170 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6171 "setting some parameters which would interfere with parameters that we use."
6175 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6176 msgid "The first character of C<param> string must be a C<-> (dash)."
6180 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6181 msgid "C<value> can be NULL."
6185 #: ../fish/guestfish-actions.pod:785
6190 #: ../fish/guestfish-actions.pod:787
6193 " copy-size src dest size\n"
6198 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6200 "This command copies exactly C<size> bytes from one source device or file "
6201 "C<src> to another destination device or file C<dest>."
6205 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6207 "Note this will fail if the source is too short or if the destination is not "
6212 #: ../fish/guestfish-actions.pod:795
6217 #: ../fish/guestfish-actions.pod:797
6225 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6227 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6228 "destination filename or destination directory."
6232 #: ../fish/guestfish-actions.pod:802
6237 #: ../fish/guestfish-actions.pod:804
6245 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6247 "This copies a file or directory from C<src> to C<dest> recursively using the "
6252 #: ../fish/guestfish-actions.pod:809
6257 #: ../fish/guestfish-actions.pod:811
6265 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6267 "This command copies from one source device or file C<src> to another "
6268 "destination device or file C<dest>. Normally you would use this to copy to "
6269 "or from a device or partition, for example to duplicate a filesystem."
6273 #: ../fish/guestfish-actions.pod:818
6275 "If the destination is a device, it must be as large or larger than the "
6276 "source file or device, otherwise the copy will fail. This command cannot do "
6277 "partial copies (see L</copy-size>)."
6281 #: ../fish/guestfish-actions.pod:822
6286 #: ../fish/guestfish-actions.pod:824
6296 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6297 msgid "This command runs the C<df> command to report disk space used."
6301 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6303 "This command is mostly useful for interactive sessions. It is I<not> "
6304 "intended that you try to parse the output string. Use L</statvfs> from "
6309 #: ../fish/guestfish-actions.pod:832
6314 #: ../fish/guestfish-actions.pod:834
6324 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6326 "This command runs the C<df -h> command to report disk space used in human-"
6331 #: ../fish/guestfish-actions.pod:843
6336 #: ../fish/guestfish-actions.pod:845
6346 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6348 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6349 "This is sometimes useful for extended debugging of problems."
6353 #: ../fish/guestfish-actions.pod:851
6355 "Another way to get the same information is to enable verbose messages with "
6356 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6357 "before running the program."
6361 #: ../fish/guestfish-actions.pod:856
6366 #: ../fish/guestfish-actions.pod:858
6369 " download remotefilename (filename|-)\n"
6374 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6375 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6377 "Download file C<remotefilename> and save it as C<filename> on the local "
6382 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
6383 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
6384 msgid "C<filename> can also be a named pipe."
6388 #: ../fish/guestfish-actions.pod:865
6389 msgid "See also L</upload>, L</cat>."
6393 #: ../fish/guestfish-actions.pod:869
6394 msgid "download-offset"
6395 msgstr "download-offset"
6398 #: ../fish/guestfish-actions.pod:871
6401 " download-offset remotefilename (filename|-) offset size\n"
6406 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6408 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6409 "region must be within the file or device)."
6413 #: ../fish/guestfish-actions.pod:879
6415 "Note that there is no limit on the amount of data that can be downloaded "
6416 "with this call, unlike with L</pread>, and this call always reads the full "
6417 "amount unless an error occurs."
6421 #: ../fish/guestfish-actions.pod:884
6422 msgid "See also L</download>, L</pread>."
6426 #: ../fish/guestfish-actions.pod:888
6431 #: ../fish/guestfish-actions.pod:890
6434 " drop-caches whattodrop\n"
6439 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6441 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6442 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6443 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6447 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6448 msgid "Setting C<whattodrop> to 3 should drop everything."
6452 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6454 "This automatically calls L<sync(2)> before the operation, so that the "
6455 "maximum guest memory is freed."
6459 #: ../fish/guestfish-actions.pod:902
6464 #: ../fish/guestfish-actions.pod:904
6474 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6476 "This command runs the C<du -s> command to estimate file space usage for "
6481 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6483 "C<path> can be a file or a directory. If C<path> is a directory then the "
6484 "estimate includes the contents of the directory and all subdirectories "
6489 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6491 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6495 #: ../fish/guestfish-actions.pod:916
6500 #: ../fish/guestfish-actions.pod:918
6503 " e2fsck-f device\n"
6508 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6510 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6511 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6516 #: ../fish/guestfish-actions.pod:924
6518 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6519 "should use L</fsck>."
6523 #: ../fish/guestfish-actions.pod:927
6528 #: ../fish/guestfish-actions.pod:929
6531 " echo-daemon 'words ...'\n"
6536 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6538 "This command concatenates the list of C<words> passed with single spaces "
6539 "between them and returns the resulting string."
6543 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6544 msgid "You can use this command to test the connection through to the daemon."
6548 #: ../fish/guestfish-actions.pod:936
6549 msgid "See also L</ping-daemon>."
6553 #: ../fish/guestfish-actions.pod:938
6558 #: ../fish/guestfish-actions.pod:940
6561 " egrep regex path\n"
6566 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6568 "This calls the external C<egrep> program and returns the matching lines."
6572 #: ../fish/guestfish-actions.pod:948
6577 #: ../fish/guestfish-actions.pod:950
6580 " egrepi regex path\n"
6585 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6587 "This calls the external C<egrep -i> program and returns the matching lines."
6591 #: ../fish/guestfish-actions.pod:958
6596 #: ../fish/guestfish-actions.pod:960
6599 " equal file1 file2\n"
6602 " equal файл1 файл2\n"
6606 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6608 "This compares the two files C<file1> and C<file2> and returns true if their "
6609 "content is exactly equal, or false otherwise."
6613 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6614 msgid "The external L<cmp(1)> program is used for the comparison."
6618 #: ../fish/guestfish-actions.pod:967
6623 #: ../fish/guestfish-actions.pod:969
6633 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6635 "This returns C<true> if and only if there is a file, directory (or anything) "
6636 "with the given C<path> name."
6640 #: ../fish/guestfish-actions.pod:974
6641 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6642 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6645 #: ../fish/guestfish-actions.pod:976
6650 #: ../fish/guestfish-actions.pod:978
6653 " fallocate path len\n"
6656 " fallocate шлях довжина\n"
6660 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6661 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6663 "This command preallocates a file (containing zero bytes) named C<path> of "
6664 "size C<len> bytes. If the file exists already, it is overwritten."
6668 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6670 "Do not confuse this with the guestfish-specific C<alloc> command which "
6671 "allocates a file in the host and attaches it as a device."
6675 #: ../fish/guestfish-actions.pod:988
6677 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6682 #: ../fish/guestfish-actions.pod:995
6684 msgstr "fallocate64"
6687 #: ../fish/guestfish-actions.pod:997
6690 " fallocate64 path len\n"
6693 " fallocate64 шлях довжина\n"
6697 #: ../fish/guestfish-actions.pod:1003
6699 "Note that this call allocates disk blocks for the file. To create a sparse "
6700 "file use L</truncate-size> instead."
6704 #: ../fish/guestfish-actions.pod:1006
6706 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6707 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6708 "maximum size of files created through that call to 1GB."
6712 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6714 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6715 "commands which create a file in the host and attach it as a device."
6719 #: ../fish/guestfish-actions.pod:1015
6724 #: ../fish/guestfish-actions.pod:1017
6727 " fgrep pattern path\n"
6730 " fgrep шаблон шлях\n"
6734 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6736 "This calls the external C<fgrep> program and returns the matching lines."
6740 #: ../fish/guestfish-actions.pod:1025
6745 #: ../fish/guestfish-actions.pod:1027
6748 " fgrepi pattern path\n"
6751 " fgrepi шаблон шлях\n"
6755 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6757 "This calls the external C<fgrep -i> program and returns the matching lines."
6761 #: ../fish/guestfish-actions.pod:1035
6766 #: ../fish/guestfish-actions.pod:1037
6776 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6778 "This call uses the standard L<file(1)> command to determine the type or "
6779 "contents of the file."
6783 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6785 "This call will also transparently look inside various types of compressed "
6790 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6792 "The exact command which runs is C<file -zb path>. Note in particular that "
6793 "the filename is not prepended to the output (the I<-b> option)."
6797 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6799 "The output depends on the output of the underlying L<file(1)> command and it "
6800 "can change in future in ways beyond our control. In other words, the output "
6801 "is not guaranteed by the ABI."
6805 #: ../fish/guestfish-actions.pod:1053
6807 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6808 "(etc), L</is-zero>."
6812 #: ../fish/guestfish-actions.pod:1056
6813 msgid "file-architecture"
6814 msgstr "file-architecture"
6817 #: ../fish/guestfish-actions.pod:1058
6820 " file-architecture filename\n"
6823 " file-architecture назва_файла\n"
6827 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6829 "This detects the architecture of the binary C<filename>, and returns it if "
6834 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6835 msgid "Currently defined architectures are:"
6839 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6844 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6846 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6847 "irrespective of the precise processor requirements of the binary."
6851 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6856 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6857 msgid "64 bit x86-64."
6861 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6866 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6867 msgid "32 bit SPARC."
6871 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6876 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6877 msgid "64 bit SPARC V9 and above."
6881 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6886 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6887 msgid "Intel Itanium."
6888 msgstr "Intel Itanium."
6891 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6896 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6897 msgid "32 bit Power PC."
6901 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6906 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6907 msgid "64 bit Power PC."
6911 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6912 msgid "Libguestfs may return other architecture strings in future."
6916 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6917 msgid "The function works on at least the following types of files:"
6921 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6922 msgid "many types of Un*x and Linux binary"
6926 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6927 msgid "many types of Un*x and Linux shared library"
6931 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6932 msgid "Windows Win32 and Win64 binaries"
6936 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6937 msgid "Windows Win32 and Win64 DLLs"
6941 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6942 msgid "Win32 binaries and DLLs return C<i386>."
6946 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6947 msgid "Win64 binaries and DLLs return C<x86_64>."
6951 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6952 msgid "Linux kernel modules"
6956 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6957 msgid "Linux new-style initrd images"
6961 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6962 msgid "some non-x86 Linux vmlinuz kernels"
6966 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6967 msgid "What it can't do currently:"
6971 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6972 msgid "static libraries (libfoo.a)"
6976 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6977 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6981 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6982 msgid "x86 Linux vmlinuz kernels"
6986 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6988 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6989 "compressed code, and are horribly hard to unpack. If you want to find the "
6990 "architecture of a kernel, use the architecture of the associated initrd or "
6991 "kernel module(s) instead."
6995 #: ../fish/guestfish-actions.pod:1161
7000 #: ../fish/guestfish-actions.pod:1163
7010 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7011 msgid "This command returns the size of C<file> in bytes."
7015 #: ../fish/guestfish-actions.pod:1167
7017 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7018 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7022 #: ../fish/guestfish-actions.pod:1171
7027 #: ../fish/guestfish-actions.pod:1173
7030 " fill c len path\n"
7035 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7037 "This command creates a new file called C<path>. The initial content of the "
7038 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7043 #: ../fish/guestfish-actions.pod:1179
7045 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7046 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7051 #: ../fish/guestfish-actions.pod:1184
7052 msgid "fill-pattern"
7053 msgstr "fill-pattern"
7056 #: ../fish/guestfish-actions.pod:1186
7059 " fill-pattern pattern len path\n"
7064 #: ../fish/guestfish-actions.pod:1188
7066 "This function is like L</fill> except that it creates a new file of length "
7067 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7068 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7073 #: ../fish/guestfish-actions.pod:1193
7078 #: ../fish/guestfish-actions.pod:1195
7088 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7090 "This command lists out all files and directories, recursively, starting at "
7091 "C<directory>. It is essentially equivalent to running the shell command "
7092 "C<find directory -print> but some post-processing happens on the output, "
7097 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7099 "This returns a list of strings I<without any prefix>. Thus if the directory "
7104 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7114 #: ../fish/guestfish-actions.pod:1209
7115 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7119 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7130 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7131 msgid "If C<directory> is not a directory, then this command returns an error."
7135 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7136 msgid "The returned list is sorted."
7140 #: ../fish/guestfish-actions.pod:1222
7141 msgid "See also L</find0>."
7142 msgstr "Див. також L</find0>."
7145 #: ../fish/guestfish-actions.pod:1227
7150 #: ../fish/guestfish-actions.pod:1229
7153 " find0 directory (files|-)\n"
7156 " find0 каталог (файли|-)\n"
7160 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7162 "This command lists out all files and directories, recursively, starting at "
7163 "C<directory>, placing the resulting list in the external file called "
7168 #: ../fish/guestfish-actions.pod:1235
7170 "This command works the same way as L</find> with the following exceptions:"
7174 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7175 msgid "The resulting list is written to an external file."
7179 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7181 "Items (filenames) in the result are separated by C<\\0> characters. See "
7182 "L<find(1)> option I<-print0>."
7186 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7187 msgid "This command is not limited in the number of names that it can return."
7191 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7192 msgid "The result list is not sorted."
7196 #: ../fish/guestfish-actions.pod:1262
7197 msgid "findfs-label"
7198 msgstr "findfs-label"
7201 #: ../fish/guestfish-actions.pod:1264
7204 " findfs-label label\n"
7207 " findfs-label мітка\n"
7211 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7213 "This command searches the filesystems and returns the one which has the "
7214 "given label. An error is returned if no such filesystem can be found."
7218 #: ../fish/guestfish-actions.pod:1270
7219 msgid "To find the label of a filesystem, use L</vfs-label>."
7220 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7223 #: ../fish/guestfish-actions.pod:1272
7225 msgstr "findfs-uuid"
7228 #: ../fish/guestfish-actions.pod:1274
7231 " findfs-uuid uuid\n"
7234 " findfs-uuid uuid\n"
7238 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7240 "This command searches the filesystems and returns the one which has the "
7241 "given UUID. An error is returned if no such filesystem can be found."
7245 #: ../fish/guestfish-actions.pod:1280
7246 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7247 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7250 #: ../fish/guestfish-actions.pod:1282
7255 #: ../fish/guestfish-actions.pod:1284
7258 " fsck fstype device\n"
7261 " fsck тип_файлової_системи пристрій\n"
7265 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7267 "This runs the filesystem checker (fsck) on C<device> which should have "
7268 "filesystem type C<fstype>."
7272 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7274 "The returned integer is the status. See L<fsck(8)> for the list of status "
7275 "codes from C<fsck>."
7279 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7280 msgid "Multiple status codes can be summed together."
7284 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7286 "A non-zero return code can mean \"success\", for example if errors have been "
7287 "corrected on the filesystem."
7291 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7292 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7296 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7298 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7302 #: ../fish/guestfish-actions.pod:1314
7307 #: ../fish/guestfish-actions.pod:1316
7317 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7319 "Return the additional kernel options which are added to the guest kernel "
7324 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7325 msgid "If C<NULL> then no options are added."
7329 #: ../fish/guestfish-actions.pod:1323
7330 msgid "get-attach-method"
7331 msgstr "get-attach-method"
7334 #: ../fish/guestfish-actions.pod:1325
7337 " get-attach-method\n"
7340 " get-attach-method\n"
7344 #: ../fish/guestfish-actions.pod:1327
7345 msgid "Return the current attach method. See L</set-attach-method>."
7349 #: ../fish/guestfish-actions.pod:1329
7350 msgid "get-autosync"
7351 msgstr "get-autosync"
7354 #: ../fish/guestfish-actions.pod:1331
7364 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7365 msgid "Get the autosync flag."
7369 #: ../fish/guestfish-actions.pod:1335
7374 #: ../fish/guestfish-actions.pod:1337
7384 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7385 msgid "Return the direct appliance mode flag."
7389 #: ../fish/guestfish-actions.pod:1341
7391 msgstr "get-e2label"
7394 #: ../fish/guestfish-actions.pod:1343
7397 " get-e2label device\n"
7400 " get-e2label пристрій\n"
7404 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
7406 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7410 #: ../fish/guestfish-actions.pod:1348
7412 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7417 #: ../fish/guestfish-actions.pod:1355
7422 #: ../fish/guestfish-actions.pod:1357
7425 " get-e2uuid device\n"
7428 " get-e2uuid пристрій\n"
7432 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
7434 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7438 #: ../fish/guestfish-actions.pod:1362
7440 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7445 #: ../fish/guestfish-actions.pod:1369
7447 msgstr "get-memsize"
7450 #: ../fish/guestfish-actions.pod:1371
7460 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7462 "This gets the memory size in megabytes allocated to the qemu subprocess."
7466 #: ../fish/guestfish-actions.pod:1376
7468 "If L</set-memsize> was not called on this handle, and if "
7469 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7470 "value for memsize."
7474 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7475 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7476 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7477 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7479 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7483 #: ../fish/guestfish-actions.pod:1383
7485 msgstr "get-network"
7488 #: ../fish/guestfish-actions.pod:1385
7498 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7499 msgid "This returns the enable network flag."
7503 #: ../fish/guestfish-actions.pod:1389
7508 #: ../fish/guestfish-actions.pod:1391
7518 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7519 msgid "Return the current search path."
7523 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7525 "This is always non-NULL. If it wasn't set already, then this will return "
7530 #: ../fish/guestfish-actions.pod:1398
7535 #: ../fish/guestfish-actions.pod:1400
7543 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7544 msgid "This returns the process group flag."
7548 #: ../fish/guestfish-actions.pod:1404
7553 #: ../fish/guestfish-actions.pod:1406
7558 #: ../fish/guestfish-actions.pod:1408
7568 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7570 "Return the process ID of the qemu subprocess. If there is no qemu "
7571 "subprocess, then this will return an error."
7575 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7576 msgid "This is an internal call used for debugging and testing."
7580 #: ../fish/guestfish-actions.pod:1415
7585 #: ../fish/guestfish-actions.pod:1417
7595 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7596 msgid "Return the current qemu binary."
7600 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7602 "This is always non-NULL. If it wasn't set already, then this will return "
7603 "the default qemu binary name."
7607 #: ../fish/guestfish-actions.pod:1424
7608 msgid "get-recovery-proc"
7609 msgstr "get-recovery-proc"
7612 #: ../fish/guestfish-actions.pod:1426
7615 " get-recovery-proc\n"
7618 " get-recovery-proc\n"
7622 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7623 msgid "Return the recovery process enabled flag."
7627 #: ../fish/guestfish-actions.pod:1430
7629 msgstr "get-selinux"
7632 #: ../fish/guestfish-actions.pod:1432
7642 #: ../fish/guestfish-actions.pod:1434
7644 "This returns the current setting of the selinux flag which is passed to the "
7645 "appliance at boot time. See L</set-selinux>."
7649 #: ../fish/guestfish-actions.pod:1440
7654 #: ../fish/guestfish-actions.pod:1442
7664 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7666 "This returns the current state as an opaque integer. This is only useful "
7667 "for printing debug and internal error messages."
7671 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7672 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7673 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7674 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7675 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7676 msgid "For more information on states, see L<guestfs(3)>."
7680 #: ../fish/guestfish-actions.pod:1449
7685 #: ../fish/guestfish-actions.pod:1451
7695 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7696 msgid "Return the command trace flag."
7700 #: ../fish/guestfish-actions.pod:1455
7705 #: ../fish/guestfish-actions.pod:1457
7715 #: ../fish/guestfish-actions.pod:1459
7717 "Return the current umask. By default the umask is C<022> unless it has been "
7718 "set by calling L</umask>."
7722 #: ../fish/guestfish-actions.pod:1462
7724 msgstr "get-verbose"
7727 #: ../fish/guestfish-actions.pod:1464
7737 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7738 msgid "This returns the verbose messages flag."
7742 #: ../fish/guestfish-actions.pod:1468
7747 #: ../fish/guestfish-actions.pod:1470
7757 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7758 msgid "This gets the SELinux security context of the daemon."
7762 #: ../fish/guestfish-actions.pod:1474
7763 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7767 #: ../fish/guestfish-actions.pod:1477
7772 #: ../fish/guestfish-actions.pod:1479
7775 " getxattr path name\n"
7778 " getxattr шлях назва\n"
7782 #: ../fish/guestfish-actions.pod:1481
7784 "Get a single extended attribute from file C<path> named C<name>. This call "
7785 "follows symlinks. If you want to lookup an extended attribute for the "
7786 "symlink itself, use L</lgetxattr>."
7790 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7792 "Normally it is better to get all extended attributes from a file in one go "
7793 "by calling L</getxattrs>. However some Linux filesystem implementations are "
7794 "buggy and do not provide a way to list out attributes. For these "
7795 "filesystems (notably ntfs-3g) you have to know the names of the extended "
7796 "attributes you want in advance and call this function."
7800 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7801 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7803 "Extended attribute values are blobs of binary data. If there is no extended "
7804 "attribute named C<name>, this returns an error."
7808 #: ../fish/guestfish-actions.pod:1495
7809 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7810 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7813 #: ../fish/guestfish-actions.pod:1497
7818 #: ../fish/guestfish-actions.pod:1499
7828 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7830 "This call lists the extended attributes of the file or directory C<path>."
7834 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7836 "At the system call level, this is a combination of the L<listxattr(2)> and "
7837 "L<getxattr(2)> calls."
7841 #: ../fish/guestfish-actions.pod:1507
7842 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7843 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7846 #: ../fish/guestfish-actions.pod:1509
7848 msgstr "glob-expand"
7851 #: ../fish/guestfish-actions.pod:1511
7854 " glob-expand pattern\n"
7857 " glob-expand шаблон\n"
7861 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7863 "This command searches for all the pathnames matching C<pattern> according to "
7864 "the wildcard expansion rules used by the shell."
7868 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7870 "If no paths match, then this returns an empty list (note: not an error)."
7874 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7876 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7877 "GLOB_BRACE>. See that manual page for more details."
7881 #: ../fish/guestfish-actions.pod:1524
7886 #: ../fish/guestfish-actions.pod:1526
7889 " grep regex path\n"
7892 " grepi формальний_вираз шлях\n"
7896 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7897 msgid "This calls the external C<grep> program and returns the matching lines."
7901 #: ../fish/guestfish-actions.pod:1534
7906 #: ../fish/guestfish-actions.pod:1536
7909 " grepi regex path\n"
7912 " grepi формальний_вираз шлях\n"
7916 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7918 "This calls the external C<grep -i> program and returns the matching lines."
7922 #: ../fish/guestfish-actions.pod:1544
7923 msgid "grub-install"
7924 msgstr "grub-install"
7927 #: ../fish/guestfish-actions.pod:1546
7930 " grub-install root device\n"
7933 " grub-install кореневий пристрій\n"
7937 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7939 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7940 "the root directory being C<root>."
7944 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7946 "Note: If grub-install reports the error \"No suitable drive was found in the "
7947 "generated device map.\" it may be that you need to create a C</boot/grub/"
7948 "device.map> file first that contains the mapping between grub device names "
7949 "and Linux device names. It is usually sufficient to create a file "
7954 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7962 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7963 msgid "replacing C</dev/vda> with the name of the installation device."
7967 #: ../fish/guestfish-actions.pod:1562
7972 #: ../fish/guestfish-actions.pod:1564
7982 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7984 "This command returns up to the first 10 lines of a file as a list of strings."
7988 #: ../fish/guestfish-actions.pod:1572
7993 #: ../fish/guestfish-actions.pod:1574
7996 " head-n nrlines path\n"
8001 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
8003 "If the parameter C<nrlines> is a positive number, this returns the first "
8004 "C<nrlines> lines of the file C<path>."
8008 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
8010 "If the parameter C<nrlines> is a negative number, this returns lines from "
8011 "the file C<path>, excluding the last C<nrlines> lines."
8015 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
8016 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
8017 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8021 #: ../fish/guestfish-actions.pod:1587
8026 #: ../fish/guestfish-actions.pod:1589
8036 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
8038 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8039 "readable, canonical hex dump of the file."
8043 #: ../fish/guestfish-actions.pod:1597
8048 #: ../fish/guestfish-actions.pod:1599
8051 " initrd-cat initrdpath filename\n"
8054 " initrd-cat шлях_initrd назва_файла\n"
8058 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
8060 "This command unpacks the file C<filename> from the initrd file called "
8061 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8066 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
8068 "For example, in guestfish you could use the following command to examine the "
8069 "boot script (usually called C</init>) contained in a Linux initrd or "
8074 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
8077 " initrd-cat /boot/initrd-<version>.img init\n"
8082 #: ../fish/guestfish-actions.pod:1611
8083 msgid "See also L</initrd-list>."
8084 msgstr "Див. також L</initrd-list>."
8087 #: ../fish/guestfish-actions.pod:1616
8089 msgstr "initrd-list"
8092 #: ../fish/guestfish-actions.pod:1618
8095 " initrd-list path\n"
8098 " initrd-list шлях\n"
8102 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
8103 msgid "This command lists out files contained in an initrd."
8107 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
8109 "The files are listed without any initial C</> character. The files are "
8110 "listed in the order they appear (not necessarily alphabetical). Directory "
8111 "names are listed as separate items."
8115 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
8117 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8118 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8123 #: ../fish/guestfish-actions.pod:1630
8124 msgid "inotify-add-watch"
8125 msgstr "inotify-add-watch"
8128 #: ../fish/guestfish-actions.pod:1632
8131 " inotify-add-watch path mask\n"
8134 " inotify-add-watch шлях маска\n"
8138 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
8139 msgid "Watch C<path> for the events listed in C<mask>."
8143 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
8145 "Note that if C<path> is a directory then events within that directory are "
8146 "watched, but this does I<not> happen recursively (in subdirectories)."
8150 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
8152 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8153 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8157 #: ../fish/guestfish-actions.pod:1644
8158 msgid "inotify-close"
8159 msgstr "inotify-close"
8162 #: ../fish/guestfish-actions.pod:1646
8172 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
8174 "This closes the inotify handle which was previously opened by inotify_init. "
8175 "It removes all watches, throws away any pending events, and deallocates all "
8180 #: ../fish/guestfish-actions.pod:1652
8181 msgid "inotify-files"
8182 msgstr "inotify-files"
8185 #: ../fish/guestfish-actions.pod:1654
8195 #: ../fish/guestfish-actions.pod:1656
8197 "This function is a helpful wrapper around L</inotify-read> which just "
8198 "returns a list of pathnames of objects that were touched. The returned "
8199 "pathnames are sorted and deduplicated."
8203 #: ../fish/guestfish-actions.pod:1660
8204 msgid "inotify-init"
8205 msgstr "inotify-init"
8208 #: ../fish/guestfish-actions.pod:1662
8211 " inotify-init maxevents\n"
8216 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
8218 "This command creates a new inotify handle. The inotify subsystem can be "
8219 "used to notify events which happen to objects in the guest filesystem."
8223 #: ../fish/guestfish-actions.pod:1668
8225 "C<maxevents> is the maximum number of events which will be queued up between "
8226 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8227 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8228 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8229 "but records the fact that it threw them away by setting a flag "
8230 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8234 #: ../fish/guestfish-actions.pod:1678
8236 "Before any events are generated, you have to add some watches to the "
8237 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8238 "L</inotify-watch-all>."
8242 #: ../fish/guestfish-actions.pod:1684
8244 "Queued up events should be read periodically by calling L</inotify-read> (or "
8245 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8246 "If you don't read the events out often enough then you risk the internal "
8247 "queue overflowing."
8251 #: ../fish/guestfish-actions.pod:1691
8253 "The handle should be closed after use by calling L</inotify-close>. This "
8254 "also removes any watches automatically."
8258 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
8260 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8261 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8262 "that there is one global inotify handle per libguestfs instance."
8266 #: ../fish/guestfish-actions.pod:1700
8267 msgid "inotify-read"
8268 msgstr "inotify-read"
8271 #: ../fish/guestfish-actions.pod:1702
8281 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8283 "Return the complete queue of events that have happened since the previous "
8288 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
8289 msgid "If no events have happened, this returns an empty list."
8293 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
8295 "I<Note>: In order to make sure that all events have been read, you must call "
8296 "this function repeatedly until it returns an empty list. The reason is that "
8297 "the call will read events up to the maximum appliance-to-host message size "
8298 "and leave remaining events in the queue."
8302 #: ../fish/guestfish-actions.pod:1715
8303 msgid "inotify-rm-watch"
8304 msgstr "inotify-rm-watch"
8307 #: ../fish/guestfish-actions.pod:1717
8310 " inotify-rm-watch wd\n"
8315 #: ../fish/guestfish-actions.pod:1719
8316 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8320 #: ../fish/guestfish-actions.pod:1722
8321 msgid "inspect-get-arch"
8322 msgstr "inspect-get-arch"
8325 #: ../fish/guestfish-actions.pod:1724
8328 " inspect-get-arch root\n"
8331 " inspect-get-arch корінь\n"
8335 #: ../fish/guestfish-actions.pod:1726
8337 "This returns the architecture of the inspected operating system. The "
8338 "possible return values are listed under L</file-architecture>."
8342 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
8344 "If the architecture could not be determined, then the string C<unknown> is "
8349 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
8350 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
8351 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
8352 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
8353 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
8354 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
8355 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
8356 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
8357 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
8358 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
8359 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
8360 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
8361 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
8362 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
8363 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
8364 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
8365 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
8366 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8370 #: ../fish/guestfish-actions.pod:1735
8371 msgid "inspect-get-distro"
8372 msgstr "inspect-get-distro"
8375 #: ../fish/guestfish-actions.pod:1737
8378 " inspect-get-distro root\n"
8381 " inspect-get-distro корінь\n"
8385 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
8387 "This returns the distro (distribution) of the inspected operating system."
8391 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
8392 msgid "Currently defined distros are:"
8396 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
8397 msgid "\"archlinux\""
8398 msgstr "\"archlinux\""
8401 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
8403 msgstr "Arch Linux."
8406 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
8411 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
8416 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
8421 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
8426 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
8431 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
8436 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
8441 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8446 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
8447 msgid "\"linuxmint\""
8448 msgstr "\"linuxmint\""
8451 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8453 msgstr "Linux Mint."
8456 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8457 msgid "\"mandriva\""
8458 msgstr "\"mandriva\""
8461 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8466 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8471 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8476 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8481 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8486 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8487 msgid "\"redhat-based\""
8488 msgstr "\"redhat-based\""
8491 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8492 msgid "Some Red Hat-derived distro."
8493 msgstr "Дистрибутив, що походить від Red Hat."
8496 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8501 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8502 msgid "Red Hat Enterprise Linux."
8506 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8507 msgid "\"scientificlinux\""
8511 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8512 msgid "Scientific Linux."
8516 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8517 msgid "\"slackware\""
8521 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8526 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8531 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8536 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8537 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8538 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8540 msgstr "\"unknown\""
8543 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8544 msgid "The distro could not be determined."
8545 msgstr "Дистрибутив, тип якого не вдалося визначити."
8548 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8549 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8551 msgstr "\"windows\""
8554 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8556 "Windows does not have distributions. This string is returned if the OS type "
8561 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8562 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8563 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8565 "Future versions of libguestfs may return other strings here. The caller "
8566 "should be prepared to handle any string."
8570 #: ../fish/guestfish-actions.pod:1818
8571 msgid "inspect-get-drive-mappings"
8575 #: ../fish/guestfish-actions.pod:1820
8578 " inspect-get-drive-mappings root\n"
8583 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8585 "This call is useful for Windows which uses a primitive system of assigning "
8586 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8587 "Windows Registry to find out how disks/partitions are mapped to drive "
8588 "letters, and returns a hash table as in the example below:"
8592 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8602 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8604 "Note that keys are drive letters. For Windows, the key is case insensitive "
8605 "and just contains the drive letter, without the customary colon separator "
8610 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8612 "In future we may support other operating systems that also used drive "
8613 "letters, but the keys for those might not be case insensitive and might be "
8614 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
8619 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8621 "For Windows guests, currently only hard drive mappings are returned. "
8622 "Removable disks (eg. DVD-ROMs) are ignored."
8626 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8628 "For guests that do not use drive mappings, or if the drive mappings could "
8629 "not be determined, this returns an empty hash table."
8633 #: ../fish/guestfish-actions.pod:1847
8635 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8636 "get-mountpoints>, L</inspect-get-filesystems>."
8640 #: ../fish/guestfish-actions.pod:1851
8641 msgid "inspect-get-filesystems"
8642 msgstr "inspect-get-filesystems"
8645 #: ../fish/guestfish-actions.pod:1853
8648 " inspect-get-filesystems root\n"
8651 " inspect-get-filesystems корінь\n"
8655 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8657 "This returns a list of all the filesystems that we think are associated with "
8658 "this operating system. This includes the root filesystem, other ordinary "
8659 "filesystems, and non-mounted devices like swap partitions."
8663 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8665 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8666 "to be shared between operating systems."
8670 #: ../fish/guestfish-actions.pod:1863
8672 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8677 #: ../fish/guestfish-actions.pod:1866
8678 msgid "inspect-get-format"
8679 msgstr "inspect-get-format"
8682 #: ../fish/guestfish-actions.pod:1868
8685 " inspect-get-format root\n"
8688 " inspect-get-format корінь\n"
8692 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8694 "This returns the format of the inspected operating system. You can use it "
8695 "to detect install images, live CDs and similar."
8699 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8700 msgid "Currently defined formats are:"
8704 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8705 msgid "\"installed\""
8706 msgstr "\"installed\""
8709 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8710 msgid "This is an installed operating system."
8711 msgstr "Це встановлена операційна система."
8714 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8715 msgid "\"installer\""
8719 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8721 "The disk image being inspected is not an installed operating system, but a "
8722 "I<bootable> install disk, live CD, or similar."
8726 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8727 msgid "The format of this disk image is not known."
8731 #: ../fish/guestfish-actions.pod:1897
8732 msgid "inspect-get-hostname"
8733 msgstr "inspect-get-hostname"
8736 #: ../fish/guestfish-actions.pod:1899
8739 " inspect-get-hostname root\n"
8742 " inspect-get-hostname корінь\n"
8746 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8748 "This function returns the hostname of the operating system as found by "
8749 "inspection of the guest's configuration files."
8753 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8755 "If the hostname could not be determined, then the string C<unknown> is "
8760 #: ../fish/guestfish-actions.pod:1909
8761 msgid "inspect-get-icon"
8765 #: ../fish/guestfish-actions.pod:1911
8768 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8773 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8775 "This function returns an icon corresponding to the inspected operating "
8776 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
8777 "to PNG if necessary)."
8781 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8783 "If it was not possible to get an icon this function returns a zero-length "
8784 "(non-NULL) buffer. I<Callers must check for this case>."
8788 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8790 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8791 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8792 "this file will be returned. You can disable favicons by passing the "
8793 "optional C<favicon> boolean as false (default is true)."
8797 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8799 "If finding the favicon fails, then we look in other places in the guest for "
8804 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8806 "If the optional C<highquality> boolean is true then only high quality icons "
8807 "are returned, which means only icons of high resolution with an alpha "
8808 "channel. The default (false) is to return any icon we can, even if it is of "
8809 "substandard quality."
8813 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8815 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8816 "before you call this, since it needs to read information from the guest "
8817 "filesystem during the call."
8821 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8823 "B<Security:> The icon data comes from the untrusted guest, and should be "
8824 "treated with caution. PNG files have been known to contain exploits. "
8825 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8826 "trying to process or display the icon."
8830 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8832 "The PNG image returned can be any size. It might not be square. Libguestfs "
8833 "tries to return the largest, highest quality icon available. The "
8834 "application must scale the icon to the required size."
8838 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8840 "Extracting icons from Windows guests requires the external C<wrestool> "
8841 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8842 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
8843 "installed separately."
8847 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8849 "Operating system icons are usually trademarks. Seek legal advice before "
8850 "using trademarks in applications."
8854 #: ../fish/guestfish-actions.pod:1975
8855 msgid "inspect-get-major-version"
8856 msgstr "inspect-get-major-version"
8859 #: ../fish/guestfish-actions.pod:1977
8862 " inspect-get-major-version root\n"
8865 " inspect-get-major-version корінь\n"
8869 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8871 "This returns the major version number of the inspected operating system."
8875 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8877 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8878 "popular public names used by the operating system. Notably the operating "
8879 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8880 "1). You can find out the real versions corresponding to releases of Windows "
8881 "by consulting Wikipedia or MSDN."
8885 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8886 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8887 msgid "If the version could not be determined, then C<0> is returned."
8891 #: ../fish/guestfish-actions.pod:1993
8892 msgid "inspect-get-minor-version"
8893 msgstr "inspect-get-minor-version"
8896 #: ../fish/guestfish-actions.pod:1995
8899 " inspect-get-minor-version root\n"
8902 " inspect-get-minor-version корінь\n"
8906 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8908 "This returns the minor version number of the inspected operating system."
8912 #: ../fish/guestfish-actions.pod:2002
8914 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8915 "get-major-version>."
8919 #: ../fish/guestfish-actions.pod:2005
8920 msgid "inspect-get-mountpoints"
8921 msgstr "inspect-get-mountpoints"
8924 #: ../fish/guestfish-actions.pod:2007
8927 " inspect-get-mountpoints root\n"
8930 " inspect-get-mountpoints корінь\n"
8934 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8936 "This returns a hash of where we think the filesystems associated with this "
8937 "operating system should be mounted. Callers should note that this is at "
8938 "best an educated guess made by reading configuration files such as C</etc/"
8939 "fstab>. I<In particular note> that this may return filesystems which are "
8940 "non-existent or not mountable and callers should be prepared to handle or "
8941 "ignore failures if they try to mount them."
8945 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8947 "Each element in the returned hashtable has a key which is the path of the "
8948 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8949 "mounted there (eg. C</dev/sda1>)."
8953 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8955 "Non-mounted devices such as swap devices are I<not> returned in this list."
8959 #: ../fish/guestfish-actions.pod:2026
8961 "For operating systems like Windows which still use drive letters, this call "
8962 "will only return an entry for the first drive \"mounted on\" C</>. For "
8963 "information about the mapping of drive letters to partitions, see L</inspect-"
8964 "get-drive-mappings>."
8968 #: ../fish/guestfish-actions.pod:2032
8970 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8975 #: ../fish/guestfish-actions.pod:2035
8976 msgid "inspect-get-package-format"
8977 msgstr "inspect-get-package-format"
8980 #: ../fish/guestfish-actions.pod:2037
8983 " inspect-get-package-format root\n"
8986 " inspect-get-package-format корінь\n"
8990 #: ../fish/guestfish-actions.pod:2039
8992 "This function and L</inspect-get-package-management> return the package "
8993 "format and package management tool used by the inspected operating system. "
8994 "For example for Fedora these functions would return C<rpm> (package format) "
8995 "and C<yum> (package management)."
8999 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
9001 "This returns the string C<unknown> if we could not determine the package "
9002 "format I<or> if the operating system does not have a real packaging system "
9007 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
9009 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9010 "Future versions of libguestfs may return other strings."
9014 #: ../fish/guestfish-actions.pod:2054
9015 msgid "inspect-get-package-management"
9016 msgstr "inspect-get-package-management"
9019 #: ../fish/guestfish-actions.pod:2056
9022 " inspect-get-package-management root\n"
9025 " inspect-get-package-management корінь\n"
9029 #: ../fish/guestfish-actions.pod:2058
9031 "L</inspect-get-package-format> and this function return the package format "
9032 "and package management tool used by the inspected operating system. For "
9033 "example for Fedora these functions would return C<rpm> (package format) and "
9034 "C<yum> (package management)."
9038 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
9040 "This returns the string C<unknown> if we could not determine the package "
9041 "management tool I<or> if the operating system does not have a real packaging "
9042 "system (eg. Windows)."
9046 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
9048 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9049 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9050 "libguestfs may return other strings."
9054 #: ../fish/guestfish-actions.pod:2075
9055 msgid "inspect-get-product-name"
9056 msgstr "inspect-get-product-name"
9059 #: ../fish/guestfish-actions.pod:2077
9062 " inspect-get-product-name root\n"
9065 " inspect-get-product-name корінь\n"
9069 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9071 "This returns the product name of the inspected operating system. The "
9072 "product name is generally some freeform string which can be displayed to the "
9073 "user, but should not be parsed by programs."
9077 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
9079 "If the product name could not be determined, then the string C<unknown> is "
9084 #: ../fish/guestfish-actions.pod:2089
9085 msgid "inspect-get-product-variant"
9089 #: ../fish/guestfish-actions.pod:2091
9092 " inspect-get-product-variant root\n"
9097 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
9098 msgid "This returns the product variant of the inspected operating system."
9102 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
9104 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9105 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9106 "is usually a string such as C<Client> or C<Server> (other values are "
9107 "possible). This can be used to distinguish consumer and enterprise versions "
9108 "of Windows that have the same version number (for example, Windows 7 and "
9109 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9110 "the latter is C<Server>)."
9114 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
9116 "For enterprise Linux guests, in future we intend this to return the product "
9117 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9118 "implemented at present."
9122 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
9124 "If the product variant could not be determined, then the string C<unknown> "
9129 #: ../fish/guestfish-actions.pod:2112
9131 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9132 "get-product-name>, L</inspect-get-major-version>."
9136 #: ../fish/guestfish-actions.pod:2116
9137 msgid "inspect-get-roots"
9138 msgstr "inspect-get-roots"
9141 #: ../fish/guestfish-actions.pod:2118
9144 " inspect-get-roots\n"
9147 " inspect-get-roots\n"
9151 #: ../fish/guestfish-actions.pod:2120
9153 "This function is a convenient way to get the list of root devices, as "
9154 "returned from a previous call to L</inspect-os>, but without redoing the "
9155 "whole inspection process."
9159 #: ../fish/guestfish-actions.pod:2124
9161 "This returns an empty list if either no root devices were found or the "
9162 "caller has not called L</inspect-os>."
9166 #: ../fish/guestfish-actions.pod:2129
9167 msgid "inspect-get-type"
9168 msgstr "inspect-get-type"
9171 #: ../fish/guestfish-actions.pod:2131
9174 " inspect-get-type root\n"
9177 " inspect-get-type корінь\n"
9181 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9183 "This returns the type of the inspected operating system. Currently defined "
9188 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
9193 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
9194 msgid "Any Linux-based operating system."
9198 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
9199 msgid "Any Microsoft Windows operating system."
9203 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
9205 msgstr "\"freebsd\""
9208 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
9213 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
9214 msgid "The operating system type could not be determined."
9218 #: ../fish/guestfish-actions.pod:2161
9219 msgid "inspect-get-windows-current-control-set"
9223 #: ../fish/guestfish-actions.pod:2163
9226 " inspect-get-windows-current-control-set root\n"
9231 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
9233 "This returns the Windows CurrentControlSet of the inspected guest. The "
9234 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9238 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
9240 "This call assumes that the guest is Windows and that the Registry could be "
9241 "examined by inspection. If this is not the case then an error is returned."
9245 #: ../fish/guestfish-actions.pod:2174
9246 msgid "inspect-get-windows-systemroot"
9247 msgstr "inspect-get-windows-systemroot"
9250 #: ../fish/guestfish-actions.pod:2176
9253 " inspect-get-windows-systemroot root\n"
9256 " inspect-get-windows-systemroot корінь\n"
9260 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
9262 "This returns the Windows systemroot of the inspected guest. The systemroot "
9263 "is a directory path such as C</WINDOWS>."
9267 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
9269 "This call assumes that the guest is Windows and that the systemroot could be "
9270 "determined by inspection. If this is not the case then an error is returned."
9274 #: ../fish/guestfish-actions.pod:2187
9275 msgid "inspect-is-live"
9276 msgstr "inspect-is-live"
9279 #: ../fish/guestfish-actions.pod:2189
9282 " inspect-is-live root\n"
9285 " inspect-is-live корінь\n"
9289 #: ../fish/guestfish-actions.pod:2191
9291 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9292 "then this returns true if a live image was detected on the disk."
9296 #: ../fish/guestfish-actions.pod:2197
9297 msgid "inspect-is-multipart"
9298 msgstr "inspect-is-multipart"
9301 #: ../fish/guestfish-actions.pod:2199
9304 " inspect-is-multipart root\n"
9307 " inspect-is-multipart корінь\n"
9311 #: ../fish/guestfish-actions.pod:2201
9313 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9314 "then this returns true if the disk is part of a set."
9318 #: ../fish/guestfish-actions.pod:2207
9319 msgid "inspect-is-netinst"
9320 msgstr "inspect-is-netinst"
9323 #: ../fish/guestfish-actions.pod:2209
9326 " inspect-is-netinst root\n"
9329 " inspect-is-netinst корінь\n"
9333 #: ../fish/guestfish-actions.pod:2211
9335 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9336 "then this returns true if the disk is a network installer, ie. not a self-"
9337 "contained install CD but one which is likely to require network access to "
9338 "complete the install."
9342 #: ../fish/guestfish-actions.pod:2219
9343 msgid "inspect-list-applications"
9344 msgstr "inspect-list-applications"
9347 #: ../fish/guestfish-actions.pod:2221
9350 " inspect-list-applications root\n"
9353 " inspect-list-applications кореневий_каталог\n"
9357 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
9358 msgid "Return the list of applications installed in the operating system."
9362 #: ../fish/guestfish-actions.pod:2225
9364 "I<Note:> This call works differently from other parts of the inspection "
9365 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9366 "then mount up the disks, before calling this. Listing applications is a "
9367 "significantly more difficult operation which requires access to the full "
9368 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9369 "are just returning data cached in the libguestfs handle, this call actually "
9370 "reads parts of the mounted filesystems during the call."
9374 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
9376 "This returns an empty list if the inspection code was not able to determine "
9377 "the list of applications."
9381 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
9382 msgid "The application structure contains the following fields:"
9386 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9388 msgstr "C<app_name>"
9391 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9393 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9394 "guests, this is the package name."
9398 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9399 msgid "C<app_display_name>"
9400 msgstr "C<app_display_name>"
9403 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9405 "The display name of the application, sometimes localized to the install "
9406 "language of the guest operating system."
9410 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9412 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9413 "to display something can use C<app_name> instead."
9417 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9418 msgid "C<app_epoch>"
9419 msgstr "C<app_epoch>"
9422 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9424 "For package managers which use epochs, this contains the epoch of the "
9425 "package (an integer). If unavailable, this is returned as C<0>."
9429 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9430 msgid "C<app_version>"
9431 msgstr "C<app_version>"
9434 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9436 "The version string of the application or package. If unavailable this is "
9437 "returned as an empty string C<\"\">."
9441 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
9442 msgid "C<app_release>"
9443 msgstr "C<app_release>"
9446 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
9448 "The release string of the application or package, for package managers that "
9449 "use this. If unavailable this is returned as an empty string C<\"\">."
9453 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9454 msgid "C<app_install_path>"
9455 msgstr "C<app_install_path>"
9458 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9460 "The installation path of the application (on operating systems such as "
9461 "Windows which use installation paths). This path is in the format used by "
9462 "the guest operating system, it is not a libguestfs path."
9466 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9467 msgid "If unavailable this is returned as an empty string C<\"\">."
9471 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9472 msgid "C<app_trans_path>"
9473 msgstr "C<app_trans_path>"
9476 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9478 "The install path translated into a libguestfs path. If unavailable this is "
9479 "returned as an empty string C<\"\">."
9483 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
9484 msgid "C<app_publisher>"
9485 msgstr "C<app_publisher>"
9488 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9490 "The name of the publisher of the application, for package managers that use "
9491 "this. If unavailable this is returned as an empty string C<\"\">."
9495 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9500 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9502 "The URL (eg. upstream URL) of the application. If unavailable this is "
9503 "returned as an empty string C<\"\">."
9507 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9508 msgid "C<app_source_package>"
9509 msgstr "C<app_source_package>"
9512 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9514 "For packaging systems which support this, the name of the source package. "
9515 "If unavailable this is returned as an empty string C<\"\">."
9519 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9520 msgid "C<app_summary>"
9521 msgstr "C<app_summary>"
9524 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9526 "A short (usually one line) description of the application or package. If "
9527 "unavailable this is returned as an empty string C<\"\">."
9531 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9532 msgid "C<app_description>"
9533 msgstr "C<app_description>"
9536 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9538 "A longer description of the application or package. If unavailable this is "
9539 "returned as an empty string C<\"\">."
9543 #: ../fish/guestfish-actions.pod:2315
9548 #: ../fish/guestfish-actions.pod:2317
9558 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9560 "This function uses other libguestfs functions and certain heuristics to "
9561 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9562 "for operating systems."
9566 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9567 msgid "The list returned is empty if no operating systems were found."
9571 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9573 "If one operating system was found, then this returns a list with a single "
9574 "element, which is the name of the root filesystem of this operating system. "
9575 "It is also possible for this function to return a list containing more than "
9576 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9577 "element being the root filesystem of one of the operating systems."
9581 #: ../fish/guestfish-actions.pod:2332
9583 "You can pass the root string(s) returned to other L</inspect-get-*> "
9584 "functions in order to query further information about each operating system, "
9585 "such as the name and version."
9589 #: ../fish/guestfish-actions.pod:2337
9591 "This function uses other libguestfs features such as L</mount-ro> and L</"
9592 "umount-all> in order to mount and unmount filesystems and look at the "
9593 "contents. This should be called with no disks currently mounted. The "
9594 "function may also use Augeas, so any existing Augeas handle will be closed."
9598 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9600 "This function cannot decrypt encrypted disks. The caller must do that first "
9601 "(supplying the necessary keys) if the disk is encrypted."
9605 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9606 #: ../fish/guestfish-actions.pod:2606
9607 msgid "See also L</list-filesystems>."
9608 msgstr "Див. також L</list-filesystems>."
9611 #: ../fish/guestfish-actions.pod:2351
9613 msgstr "is-blockdev"
9616 #: ../fish/guestfish-actions.pod:2353
9619 " is-blockdev path\n"
9622 " is-blockdev шлях\n"
9626 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9628 "This returns C<true> if and only if there is a block device with the given "
9633 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9634 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9635 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9636 #: ../fish/guestfish-actions.pod:2457
9637 msgid "See also L</stat>."
9638 msgstr "Див. також L</stat>."
9641 #: ../fish/guestfish-actions.pod:2360
9646 #: ../fish/guestfish-actions.pod:2362
9656 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9658 "This returns true iff this handle is busy processing a command (in the "
9663 #: ../fish/guestfish-actions.pod:2369
9668 #: ../fish/guestfish-actions.pod:2371
9671 " is-chardev path\n"
9674 " is-chardev шлях\n"
9678 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9680 "This returns C<true> if and only if there is a character device with the "
9681 "given C<path> name."
9685 #: ../fish/guestfish-actions.pod:2378
9690 #: ../fish/guestfish-actions.pod:2380
9700 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9702 "This returns true iff this handle is being configured (in the C<CONFIG> "
9707 #: ../fish/guestfish-actions.pod:2387
9712 #: ../fish/guestfish-actions.pod:2389
9722 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9724 "This returns C<true> if and only if there is a directory with the given "
9725 "C<path> name. Note that it returns false for other objects like files."
9729 #: ../fish/guestfish-actions.pod:2397
9734 #: ../fish/guestfish-actions.pod:2399
9744 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9746 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
9747 "given C<path> name."
9751 #: ../fish/guestfish-actions.pod:2406
9756 #: ../fish/guestfish-actions.pod:2408
9766 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9768 "This returns C<true> if and only if there is a regular file with the given "
9769 "C<path> name. Note that it returns false for other objects like directories."
9773 #: ../fish/guestfish-actions.pod:2416
9774 msgid "is-launching"
9775 msgstr "is-launching"
9778 #: ../fish/guestfish-actions.pod:2418
9788 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9790 "This returns true iff this handle is launching the subprocess (in the "
9791 "C<LAUNCHING> state)."
9795 #: ../fish/guestfish-actions.pod:2425
9800 #: ../fish/guestfish-actions.pod:2427
9810 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9812 "This command tests whether C<device> is a logical volume, and returns true "
9813 "iff this is the case."
9817 #: ../fish/guestfish-actions.pod:2432
9822 #: ../fish/guestfish-actions.pod:2434
9832 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9834 "This returns true iff this handle is ready to accept commands (in the "
9839 #: ../fish/guestfish-actions.pod:2441
9844 #: ../fish/guestfish-actions.pod:2443
9854 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9856 "This returns C<true> if and only if there is a Unix domain socket with the "
9857 "given C<path> name."
9861 #: ../fish/guestfish-actions.pod:2450
9866 #: ../fish/guestfish-actions.pod:2452
9869 " is-symlink path\n"
9872 " is-symlink шлях\n"
9876 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9878 "This returns C<true> if and only if there is a symbolic link with the given "
9883 #: ../fish/guestfish-actions.pod:2459
9888 #: ../fish/guestfish-actions.pod:2461
9896 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9898 "This returns true iff the file exists and the file is empty or it contains "
9903 #: ../fish/guestfish-actions.pod:2466
9904 msgid "is-zero-device"
9908 #: ../fish/guestfish-actions.pod:2468
9911 " is-zero-device device\n"
9916 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9917 msgid "This returns true iff the device exists and contains all zero bytes."
9921 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9922 msgid "Note that for large devices this can take a long time to run."
9926 #: ../fish/guestfish-actions.pod:2474
9927 msgid "kill-subprocess"
9928 msgstr "kill-subprocess"
9931 #: ../fish/guestfish-actions.pod:2476
9934 " kill-subprocess\n"
9937 " kill-subprocess\n"
9941 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9942 msgid "This kills the qemu subprocess. You should never need to call this."
9946 #: ../fish/guestfish-actions.pod:2480
9951 #: ../fish/guestfish-actions.pod:2482
9956 #: ../fish/guestfish-actions.pod:2484
9966 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9968 "Internally libguestfs is implemented by running a virtual machine using "
9973 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9975 "You should call this after configuring the handle (eg. adding drives) but "
9976 "before performing any actions."
9980 #: ../fish/guestfish-actions.pod:2492
9985 #: ../fish/guestfish-actions.pod:2494
9988 " lchown owner group path\n"
9991 " lchown власник група шлях\n"
9995 #: ../fish/guestfish-actions.pod:2496
9997 "Change the file owner to C<owner> and group to C<group>. This is like L</"
9998 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10003 #: ../fish/guestfish-actions.pod:2504
10008 #: ../fish/guestfish-actions.pod:2506
10011 " lgetxattr path name\n"
10014 " lgetxattr шлях назва\n"
10018 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
10020 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10021 "is a symlink, then this call returns an extended attribute from the symlink."
10025 #: ../fish/guestfish-actions.pod:2522
10026 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10027 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10030 #: ../fish/guestfish-actions.pod:2524
10032 msgstr "lgetxattrs"
10035 #: ../fish/guestfish-actions.pod:2526
10038 " lgetxattrs path\n"
10041 " lgetxattrs шлях\n"
10045 #: ../fish/guestfish-actions.pod:2528
10047 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10048 "it returns the extended attributes of the link itself."
10052 #: ../fish/guestfish-actions.pod:2532
10057 #: ../fish/guestfish-actions.pod:2534
10065 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
10067 "List all 9p filesystems attached to the guest. A list of mount tags is "
10072 #: ../fish/guestfish-actions.pod:2539
10073 msgid "list-devices"
10074 msgstr "list-devices"
10077 #: ../fish/guestfish-actions.pod:2541
10087 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
10088 msgid "List all the block devices."
10092 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
10093 msgid "The full block device names are returned, eg. C</dev/sda>."
10097 #: ../fish/guestfish-actions.pod:2549
10098 msgid "list-dm-devices"
10102 #: ../fish/guestfish-actions.pod:2551
10105 " list-dm-devices\n"
10110 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
10111 msgid "List all device mapper devices."
10115 #: ../fish/guestfish-actions.pod:2555
10117 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10118 "previous call to L</luks-open>."
10122 #: ../fish/guestfish-actions.pod:2558
10124 "Device mapper devices which correspond to logical volumes are I<not> "
10125 "returned in this list. Call L</lvs> if you want to list logical volumes."
10129 #: ../fish/guestfish-actions.pod:2562
10130 msgid "list-filesystems"
10131 msgstr "list-filesystems"
10134 #: ../fish/guestfish-actions.pod:2564
10137 " list-filesystems\n"
10140 " list-filesystems\n"
10144 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
10146 "This inspection command looks for filesystems on partitions, block devices "
10147 "and logical volumes, returning a list of devices containing filesystems and "
10152 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
10154 "The return value is a hash, where the keys are the devices containing "
10155 "filesystems, and the values are the filesystem types. For example:"
10159 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10162 " \"/dev/sda1\" => \"ntfs\"\n"
10163 " \"/dev/sda2\" => \"ext2\"\n"
10164 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10165 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10170 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
10172 "The value can have the special value \"unknown\", meaning the content of the "
10173 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10177 #: ../fish/guestfish-actions.pod:2583
10179 "This command runs other libguestfs commands, which might include L</mount> "
10180 "and L</umount>, and therefore you should use this soon after launch and only "
10181 "when nothing is mounted."
10185 #: ../fish/guestfish-actions.pod:2587
10187 "Not all of the filesystems returned will be mountable. In particular, swap "
10188 "partitions are returned in the list. Also this command does not check that "
10189 "each filesystem found is valid and mountable, and some filesystems might be "
10190 "mountable but require special options. Filesystems may not all belong to a "
10191 "single logical operating system (use L</inspect-os> to look for OSes)."
10195 #: ../fish/guestfish-actions.pod:2595
10196 msgid "list-partitions"
10197 msgstr "list-partitions"
10200 #: ../fish/guestfish-actions.pod:2597
10203 " list-partitions\n"
10206 " list-partitions\n"
10210 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
10211 msgid "List all the partitions detected on all block devices."
10215 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
10216 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10220 #: ../fish/guestfish-actions.pod:2603
10222 "This does not return logical volumes. For that you will need to call L</"
10227 #: ../fish/guestfish-actions.pod:2608
10232 #: ../fish/guestfish-actions.pod:2610
10242 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
10244 "List the files in C<directory> (relative to the root directory, there is no "
10245 "cwd) in the format of 'ls -la'."
10249 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
10251 "This command is mostly useful for interactive sessions. It is I<not> "
10252 "intended that you try to parse the output string."
10256 #: ../fish/guestfish-actions.pod:2618
10261 #: ../fish/guestfish-actions.pod:2620
10264 " ln target linkname\n"
10267 " ln призначення назва_посилання\n"
10271 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
10272 msgid "This command creates a hard link using the C<ln> command."
10276 #: ../fish/guestfish-actions.pod:2624
10281 #: ../fish/guestfish-actions.pod:2626
10284 " ln-f target linkname\n"
10287 " ln-f призначення назва_посилання\n"
10291 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
10293 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10294 "option removes the link (C<linkname>) if it exists already."
10298 #: ../fish/guestfish-actions.pod:2631
10303 #: ../fish/guestfish-actions.pod:2633
10306 " ln-s target linkname\n"
10309 " ln-s призначення назва_посилання\n"
10313 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
10314 msgid "This command creates a symbolic link using the C<ln -s> command."
10318 #: ../fish/guestfish-actions.pod:2637
10323 #: ../fish/guestfish-actions.pod:2639
10326 " ln-sf target linkname\n"
10329 " ln-sf призначення назва_посилання\n"
10333 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
10335 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10336 "option removes the link (C<linkname>) if it exists already."
10340 #: ../fish/guestfish-actions.pod:2644
10341 msgid "lremovexattr"
10342 msgstr "lremovexattr"
10345 #: ../fish/guestfish-actions.pod:2646
10348 " lremovexattr xattr path\n"
10353 #: ../fish/guestfish-actions.pod:2648
10355 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10356 "it removes an extended attribute of the link itself."
10360 #: ../fish/guestfish-actions.pod:2652
10365 #: ../fish/guestfish-actions.pod:2654
10375 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
10377 "List the files in C<directory> (relative to the root directory, there is no "
10378 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10382 #: ../fish/guestfish-actions.pod:2660
10384 "This command is mostly useful for interactive sessions. Programs should "
10385 "probably use L</readdir> instead."
10389 #: ../fish/guestfish-actions.pod:2663
10394 #: ../fish/guestfish-actions.pod:2665
10397 " lsetxattr xattr val vallen path\n"
10402 #: ../fish/guestfish-actions.pod:2667
10404 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10405 "sets an extended attribute of the link itself."
10409 #: ../fish/guestfish-actions.pod:2671
10414 #: ../fish/guestfish-actions.pod:2673
10424 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
10425 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
10426 msgid "Returns file information for the given C<path>."
10430 #: ../fish/guestfish-actions.pod:2677
10432 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10433 "the link is stat-ed, not the file it refers to."
10437 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
10438 msgid "This is the same as the C<lstat(2)> system call."
10442 #: ../fish/guestfish-actions.pod:2683
10447 #: ../fish/guestfish-actions.pod:2685
10450 " lstatlist path 'names ...'\n"
10455 #: ../fish/guestfish-actions.pod:2687
10457 "This call allows you to perform the L</lstat> operation on multiple files, "
10458 "where all files are in the directory C<path>. C<names> is the list of files "
10459 "from this directory."
10463 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
10465 "On return you get a list of stat structs, with a one-to-one correspondence "
10466 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10467 "then the C<ino> field of that structure is set to C<-1>."
10471 #: ../fish/guestfish-actions.pod:2696
10473 "This call is intended for programs that want to efficiently list a directory "
10474 "contents without making many round-trips. See also L</lxattrlist> for a "
10475 "similarly efficient call for getting extended attributes. Very long "
10476 "directory listings might cause the protocol message size to be exceeded, "
10477 "causing this call to fail. The caller must split up such requests into "
10478 "smaller groups of names."
10482 #: ../fish/guestfish-actions.pod:2704
10483 msgid "luks-add-key"
10484 msgstr "luks-add-key"
10487 #: ../fish/guestfish-actions.pod:2706
10490 " luks-add-key device keyslot\n"
10495 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
10497 "This command adds a new key on LUKS device C<device>. C<key> is any "
10498 "existing key, and is used to access the device. C<newkey> is the new key to "
10499 "add. C<keyslot> is the key slot that will be replaced."
10503 #: ../fish/guestfish-actions.pod:2713
10505 "Note that if C<keyslot> already contains a key, then this command will "
10506 "fail. You have to use L</luks-kill-slot> first to remove that key."
10510 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
10511 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
10512 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
10514 "This command has one or more key or passphrase parameters. Guestfish will "
10515 "prompt for these separately."
10519 #: ../fish/guestfish-actions.pod:2720
10521 msgstr "luks-close"
10524 #: ../fish/guestfish-actions.pod:2722
10527 " luks-close device\n"
10530 " luks-close пристрій\n"
10534 #: ../fish/guestfish-actions.pod:2724
10536 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10537 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10538 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10543 #: ../fish/guestfish-actions.pod:2730
10544 msgid "luks-format"
10545 msgstr "luks-format"
10548 #: ../fish/guestfish-actions.pod:2732
10551 " luks-format device keyslot\n"
10556 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
10558 "This command erases existing data on C<device> and formats the device as a "
10559 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10560 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10564 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
10565 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
10566 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
10567 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
10568 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
10569 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
10570 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
10571 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580
10572 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
10574 "B<This command is dangerous. Without careful use you can easily destroy all "
10579 #: ../fish/guestfish-actions.pod:2745
10580 msgid "luks-format-cipher"
10581 msgstr "luks-format-cipher"
10584 #: ../fish/guestfish-actions.pod:2747
10587 " luks-format-cipher device keyslot cipher\n"
10592 #: ../fish/guestfish-actions.pod:2749
10594 "This command is the same as L</luks-format> but it also allows you to set "
10595 "the C<cipher> used."
10599 #: ../fish/guestfish-actions.pod:2758
10600 msgid "luks-kill-slot"
10601 msgstr "luks-kill-slot"
10604 #: ../fish/guestfish-actions.pod:2760
10607 " luks-kill-slot device keyslot\n"
10612 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10614 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10615 "device C<device>. C<key> must be one of the I<other> keys."
10619 #: ../fish/guestfish-actions.pod:2769
10624 #: ../fish/guestfish-actions.pod:2771
10627 " luks-open device mapname\n"
10632 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10634 "This command opens a block device which has been encrypted according to the "
10635 "Linux Unified Key Setup (LUKS) standard."
10639 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10640 msgid "C<device> is the encrypted block device or partition."
10644 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10646 "The caller must supply one of the keys associated with the LUKS block "
10647 "device, in the C<key> parameter."
10651 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10653 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
10654 "writes to this block device are decrypted from and encrypted to the "
10655 "underlying C<device> respectively."
10659 #: ../fish/guestfish-actions.pod:2785
10661 "If this block device contains LVM volume groups, then calling L</vgscan> "
10662 "followed by L</vg-activate-all> will make them visible."
10666 #: ../fish/guestfish-actions.pod:2789
10667 msgid "Use L</list-dm-devices> to list all device mapper devices."
10671 #: ../fish/guestfish-actions.pod:2795
10672 msgid "luks-open-ro"
10673 msgstr "luks-open-ro"
10676 #: ../fish/guestfish-actions.pod:2797
10679 " luks-open-ro device mapname\n"
10684 #: ../fish/guestfish-actions.pod:2799
10686 "This is the same as L</luks-open> except that a read-only mapping is created."
10690 #: ../fish/guestfish-actions.pod:2805
10695 #: ../fish/guestfish-actions.pod:2807
10698 " lvcreate logvol volgroup mbytes\n"
10703 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10705 "This creates an LVM logical volume called C<logvol> on the volume group "
10706 "C<volgroup>, with C<size> megabytes."
10710 #: ../fish/guestfish-actions.pod:2812
10711 msgid "lvm-canonical-lv-name"
10712 msgstr "lvm-canonical-lv-name"
10715 #: ../fish/guestfish-actions.pod:2814
10718 " lvm-canonical-lv-name lvname\n"
10723 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10725 "This converts alternative naming schemes for LVs that you might find to the "
10726 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10731 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10733 "This command returns an error if the C<lvname> parameter does not refer to a "
10738 #: ../fish/guestfish-actions.pod:2823
10739 msgid "See also L</is-lv>."
10740 msgstr "Див. також L</is-lv>."
10743 #: ../fish/guestfish-actions.pod:2825
10744 msgid "lvm-clear-filter"
10745 msgstr "lvm-clear-filter"
10748 #: ../fish/guestfish-actions.pod:2827
10751 " lvm-clear-filter\n"
10754 " lvm-clear-filter\n"
10758 #: ../fish/guestfish-actions.pod:2829
10760 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
10765 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10766 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10768 "This command also clears the LVM cache and performs a volume group scan."
10772 #: ../fish/guestfish-actions.pod:2835
10773 msgid "lvm-remove-all"
10774 msgstr "lvm-remove-all"
10777 #: ../fish/guestfish-actions.pod:2837
10780 " lvm-remove-all\n"
10783 " lvm-remove-all\n"
10787 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10789 "This command removes all LVM logical volumes, volume groups and physical "
10794 #: ../fish/guestfish-actions.pod:2845
10795 msgid "lvm-set-filter"
10796 msgstr "lvm-set-filter"
10799 #: ../fish/guestfish-actions.pod:2847
10802 " lvm-set-filter 'devices ...'\n"
10805 " lvm-set-filter 'пристрої...'\n"
10809 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10811 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10812 "block devices in the list C<devices>, and will ignore all other attached "
10817 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10819 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10820 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
10821 "there are two types of duplication possible: either cloned PVs/VGs which "
10822 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10823 "same name. In normal operation you cannot create this situation, but you "
10824 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
10825 "inside the LVM metadata."
10829 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10830 msgid "You can filter whole block devices or individual partitions."
10834 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10836 "You cannot use this if any VG is currently in use (eg. contains a mounted "
10837 "filesystem), even if you are not filtering out that VG."
10841 #: ../fish/guestfish-actions.pod:2872
10846 #: ../fish/guestfish-actions.pod:2874
10849 " lvremove device\n"
10852 " lvremove пристрій\n"
10856 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10858 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10859 "LV, such as C</dev/VG/LV>."
10863 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10865 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10870 #: ../fish/guestfish-actions.pod:2882
10875 #: ../fish/guestfish-actions.pod:2884
10878 " lvrename logvol newlogvol\n"
10883 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10884 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10888 #: ../fish/guestfish-actions.pod:2888
10893 #: ../fish/guestfish-actions.pod:2890
10896 " lvresize device mbytes\n"
10901 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10903 "This resizes (expands or shrinks) an existing LVM logical volume to "
10904 "C<mbytes>. When reducing, data in the reduced part is lost."
10908 #: ../fish/guestfish-actions.pod:2896
10909 msgid "lvresize-free"
10910 msgstr "lvresize-free"
10913 #: ../fish/guestfish-actions.pod:2898
10916 " lvresize-free lv percent\n"
10921 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10923 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10924 "remaining free space in the volume group. Commonly you would call this with "
10925 "pc = 100 which expands the logical volume as much as possible, using all "
10926 "remaining free space in the volume group."
10930 #: ../fish/guestfish-actions.pod:2906
10935 #: ../fish/guestfish-actions.pod:2908
10945 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10947 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10952 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10954 "This returns a list of the logical volume device names (eg. C</dev/"
10955 "VolGroup00/LogVol00>)."
10959 #: ../fish/guestfish-actions.pod:2916
10960 msgid "See also L</lvs-full>, L</list-filesystems>."
10961 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10964 #: ../fish/guestfish-actions.pod:2918
10969 #: ../fish/guestfish-actions.pod:2920
10979 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10981 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10982 "(8)> command. The \"full\" version includes all fields."
10986 #: ../fish/guestfish-actions.pod:2925
10991 #: ../fish/guestfish-actions.pod:2927
10997 " lvuuid пристрій\n"
11001 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
11002 msgid "This command returns the UUID of the LVM LV C<device>."
11006 #: ../fish/guestfish-actions.pod:2931
11008 msgstr "lxattrlist"
11011 #: ../fish/guestfish-actions.pod:2933
11014 " lxattrlist path 'names ...'\n"
11019 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
11021 "This call allows you to get the extended attributes of multiple files, where "
11022 "all files are in the directory C<path>. C<names> is the list of files from "
11027 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
11029 "On return you get a flat list of xattr structs which must be interpreted "
11030 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11031 "C<attrval> in this struct is zero-length to indicate there was an error "
11032 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11033 "number (the number of following attributes for this file, which could be C<"
11034 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11035 "for the first named file. This repeats for the second and subsequent files."
11039 #: ../fish/guestfish-actions.pod:2949
11041 "This call is intended for programs that want to efficiently list a directory "
11042 "contents without making many round-trips. See also L</lstatlist> for a "
11043 "similarly efficient call for getting standard stats. Very long directory "
11044 "listings might cause the protocol message size to be exceeded, causing this "
11045 "call to fail. The caller must split up such requests into smaller groups of "
11050 #: ../fish/guestfish-actions.pod:2957
11055 #: ../fish/guestfish-actions.pod:2959
11065 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
11066 msgid "Create a directory named C<path>."
11070 #: ../fish/guestfish-actions.pod:2963
11072 msgstr "mkdir-mode"
11075 #: ../fish/guestfish-actions.pod:2965
11078 " mkdir-mode path mode\n"
11081 " mkdir-mode шлях режим\n"
11085 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
11087 "This command creates a directory, setting the initial permissions of the "
11088 "directory to C<mode>."
11092 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
11094 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11095 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11100 #: ../fish/guestfish-actions.pod:2974
11101 msgid "See also L</mkdir>, L</umask>"
11102 msgstr "Див. також L</mkdir>, L</umask>"
11105 #: ../fish/guestfish-actions.pod:2976
11110 #: ../fish/guestfish-actions.pod:2978
11120 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
11122 "Create a directory named C<path>, creating any parent directories as "
11123 "necessary. This is like the C<mkdir -p> shell command."
11127 #: ../fish/guestfish-actions.pod:2983
11132 #: ../fish/guestfish-actions.pod:2985
11135 " mkdtemp template\n"
11138 " mkdtemp шаблон\n"
11142 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11144 "This command creates a temporary directory. The C<template> parameter "
11145 "should be a full pathname for the temporary directory name with the final "
11146 "six characters being \"XXXXXX\"."
11150 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
11152 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11153 "being suitable for Windows filesystems."
11157 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
11158 msgid "The name of the temporary directory that was created is returned."
11162 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
11163 msgid "The temporary directory is created with mode 0700 and is owned by root."
11167 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
11169 "The caller is responsible for deleting the temporary directory and its "
11170 "contents after use."
11174 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
11175 msgid "See also: L<mkdtemp(3)>"
11179 #: ../fish/guestfish-actions.pod:3006
11184 #: ../fish/guestfish-actions.pod:3008
11187 " mke2fs-J fstype blocksize device journal\n"
11192 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
11194 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11195 "C<journal>. It is equivalent to the command:"
11199 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
11202 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11205 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11209 #: ../fish/guestfish-actions.pod:3016
11210 msgid "See also L</mke2journal>."
11211 msgstr "Див. також L</mke2journal>."
11214 #: ../fish/guestfish-actions.pod:3018
11219 #: ../fish/guestfish-actions.pod:3020
11222 " mke2fs-JL fstype blocksize device label\n"
11227 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
11229 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11230 "the journal labeled C<label>."
11234 #: ../fish/guestfish-actions.pod:3025
11235 msgid "See also L</mke2journal-L>."
11236 msgstr "Див. також L</mke2journal-L>."
11239 #: ../fish/guestfish-actions.pod:3027
11244 #: ../fish/guestfish-actions.pod:3029
11247 " mke2fs-JU fstype blocksize device uuid\n"
11252 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
11254 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11255 "the journal with UUID C<uuid>."
11259 #: ../fish/guestfish-actions.pod:3034
11260 msgid "See also L</mke2journal-U>."
11261 msgstr "Див. також L</mke2journal-U>."
11264 #: ../fish/guestfish-actions.pod:3036
11265 msgid "mke2journal"
11266 msgstr "mke2journal"
11269 #: ../fish/guestfish-actions.pod:3038
11272 " mke2journal blocksize device\n"
11277 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
11279 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11284 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
11287 " mke2fs -O journal_dev -b blocksize device\n"
11292 #: ../fish/guestfish-actions.pod:3045
11293 msgid "mke2journal-L"
11294 msgstr "mke2journal-L"
11297 #: ../fish/guestfish-actions.pod:3047
11300 " mke2journal-L blocksize label device\n"
11305 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
11306 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11310 #: ../fish/guestfish-actions.pod:3051
11311 msgid "mke2journal-U"
11312 msgstr "mke2journal-U"
11315 #: ../fish/guestfish-actions.pod:3053
11318 " mke2journal-U blocksize uuid device\n"
11323 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
11324 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11328 #: ../fish/guestfish-actions.pod:3057
11333 #: ../fish/guestfish-actions.pod:3059
11336 " mkfifo mode path\n"
11339 " mkfifo режим шлях\n"
11343 #: ../fish/guestfish-actions.pod:3061
11345 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11346 "is just a convenient wrapper around L</mknod>."
11350 #: ../fish/guestfish-actions.pod:3067
11355 #: ../fish/guestfish-actions.pod:3069
11358 " mkfs fstype device\n"
11361 " mkfs тип_файлової_системи пристрій\n"
11365 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
11367 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11368 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11372 #: ../fish/guestfish-actions.pod:3075
11377 #: ../fish/guestfish-actions.pod:3077
11380 " mkfs-b fstype blocksize device\n"
11385 #: ../fish/guestfish-actions.pod:3079
11387 "This call is similar to L</mkfs>, but it allows you to control the block "
11388 "size of the resulting filesystem. Supported block sizes depend on the "
11389 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11393 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
11394 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
11396 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11401 #: ../fish/guestfish-actions.pod:3087
11403 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11408 #: ../fish/guestfish-actions.pod:3094
11413 #: ../fish/guestfish-actions.pod:3096
11416 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11421 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
11423 "This function creates a filesystem on C<device>. The filesystem type is "
11424 "C<fstype>, for example C<ext3>."
11428 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
11429 msgid "C<blocksize>"
11430 msgstr "C<blocksize>"
11433 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
11435 "The filesystem block size. Supported block sizes depend on the filesystem "
11436 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11441 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
11442 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11446 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
11447 msgid "C<features>"
11448 msgstr "C<features>"
11451 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
11452 msgid "This passes the I<-O> parameter to the external mkfs program."
11456 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11458 "For certain filesystem types, this allows extra filesystem features to be "
11459 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11463 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11465 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11470 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11475 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11477 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11478 "sets the inode size (only for ext2/3/4 filesystems at present)."
11482 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
11483 msgid "C<sectorsize>"
11487 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
11489 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11490 "sets sector size for ufs filesystem."
11494 #: ../fish/guestfish-actions.pod:3141
11495 msgid "mkmountpoint"
11496 msgstr "mkmountpoint"
11499 #: ../fish/guestfish-actions.pod:3143
11502 " mkmountpoint exemptpath\n"
11507 #: ../fish/guestfish-actions.pod:3145
11509 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11510 "to create extra mountpoints before mounting the first filesystem."
11514 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
11516 "These calls are I<only> necessary in some very limited circumstances, mainly "
11517 "the case where you want to mount a mix of unrelated and/or read-only "
11518 "filesystems together."
11522 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11524 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11525 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11526 "inside that. You can unpack this as follows in guestfish:"
11530 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
11533 " add-ro Fedora-11-i686-Live.iso\n"
11535 " mkmountpoint /cd\n"
11536 " mkmountpoint /sqsh\n"
11537 " mkmountpoint /ext3fs\n"
11538 " mount /dev/sda /cd\n"
11539 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11540 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11543 " add-ro Fedora-11-i686-Live.iso\n"
11545 " mkmountpoint /cd\n"
11546 " mkmountpoint /sqsh\n"
11547 " mkmountpoint /ext3fs\n"
11548 " mount /dev/sda /cd\n"
11549 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11550 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11554 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
11555 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11559 #: ../fish/guestfish-actions.pod:3169
11561 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11562 "unexpected errors if you try to mix these calls. It is safest to manually "
11563 "unmount filesystems and remove mountpoints after use."
11567 #: ../fish/guestfish-actions.pod:3173
11569 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11570 "for this to work for manual mountpoints, you must ensure that the innermost "
11571 "mountpoints have the longest pathnames, as in the example code above."
11575 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
11577 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11581 #: ../fish/guestfish-actions.pod:3180
11583 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11584 "L</umount-all> to be called when the handle is closed which can also trigger "
11589 #: ../fish/guestfish-actions.pod:3184
11594 #: ../fish/guestfish-actions.pod:3186
11597 " mknod mode devmajor devminor path\n"
11602 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
11604 "This call creates block or character special devices, or named pipes (FIFOs)."
11608 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
11610 "The C<mode> parameter should be the mode, using the standard constants. "
11611 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11612 "used when creating block and character special devices."
11616 #: ../fish/guestfish-actions.pod:3196
11618 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11619 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11620 "regular file). These constants are available in the standard Linux header "
11621 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11622 "wrappers around this command which bitwise OR in the appropriate constant "
11627 #: ../fish/guestfish-actions.pod:3206
11632 #: ../fish/guestfish-actions.pod:3208
11635 " mknod-b mode devmajor devminor path\n"
11640 #: ../fish/guestfish-actions.pod:3210
11642 "This call creates a block device node called C<path> with mode C<mode> and "
11643 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11644 "wrapper around L</mknod>."
11648 #: ../fish/guestfish-actions.pod:3216
11653 #: ../fish/guestfish-actions.pod:3218
11656 " mknod-c mode devmajor devminor path\n"
11661 #: ../fish/guestfish-actions.pod:3220
11663 "This call creates a char device node called C<path> with mode C<mode> and "
11664 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11665 "wrapper around L</mknod>."
11669 #: ../fish/guestfish-actions.pod:3226
11674 #: ../fish/guestfish-actions.pod:3228
11680 " mkswap пристрій\n"
11684 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11685 msgid "Create a swap partition on C<device>."
11689 #: ../fish/guestfish-actions.pod:3232
11694 #: ../fish/guestfish-actions.pod:3234
11697 " mkswap-L label device\n"
11700 " mkswap-L мітка пристрій\n"
11704 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11705 msgid "Create a swap partition on C<device> with label C<label>."
11709 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11711 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11712 "sda>), just to a partition. This appears to be a limitation of the kernel "
11717 #: ../fish/guestfish-actions.pod:3242
11722 #: ../fish/guestfish-actions.pod:3244
11725 " mkswap-U uuid device\n"
11728 " mkswap-U uuid пристрій\n"
11732 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11733 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11737 #: ../fish/guestfish-actions.pod:3248
11738 msgid "mkswap-file"
11739 msgstr "mkswap-file"
11742 #: ../fish/guestfish-actions.pod:3250
11745 " mkswap-file path\n"
11748 " mkswap-file шлях\n"
11752 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11753 msgid "Create a swap file."
11754 msgstr "Створити файл резервної пам’яті."
11757 #: ../fish/guestfish-actions.pod:3254
11759 "This command just writes a swap file signature to an existing file. To "
11760 "create the file itself, use something like L</fallocate>."
11764 #: ../fish/guestfish-actions.pod:3257
11769 #: ../fish/guestfish-actions.pod:3259
11772 " modprobe modulename\n"
11775 " modprobe назва_модуля\n"
11779 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11780 msgid "This loads a kernel module in the appliance."
11784 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11786 "The kernel module must have been whitelisted when libguestfs was built (see "
11787 "C<appliance/kmod.whitelist.in> in the source)."
11791 #: ../fish/guestfish-actions.pod:3266
11796 #: ../fish/guestfish-actions.pod:3268
11799 " mount device mountpoint\n"
11802 " mount пристрій точка_монтування\n"
11806 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
11808 "Mount a guest disk at a position in the filesystem. Block devices are named "
11809 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
11810 "those block devices contain partitions, they will have the usual names (eg. "
11811 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
11815 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11817 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11818 "mounted on C</> before others can be mounted. Other filesystems can only be "
11819 "mounted on directories which already exist."
11823 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
11825 "The mounted filesystem is writable, if we have sufficient permissions on the "
11826 "underlying device."
11830 #: ../fish/guestfish-actions.pod:3284
11832 "B<Important note:> When you use this call, the filesystem options C<sync> "
11833 "and C<noatime> are set implicitly. This was originally done because we "
11834 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11835 "very large negative performance impact and negligible effect on "
11836 "reliability. Therefore we recommend that you avoid using L</mount> in any "
11837 "code that needs performance, and instead use L</mount-options> (use an empty "
11838 "string for the first parameter if you don't want any options)."
11842 #: ../fish/guestfish-actions.pod:3294
11844 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11849 #: ../fish/guestfish-actions.pod:3301
11854 #: ../fish/guestfish-actions.pod:3303
11857 " mount-9p mounttag mountpoint [options:..]\n"
11862 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11864 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11869 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11871 "If required, C<trans=virtio> will be automatically added to the options. "
11872 "Any other options required can be passed in the optional C<options> "
11877 #: ../fish/guestfish-actions.pod:3314
11879 msgstr "mount-loop"
11882 #: ../fish/guestfish-actions.pod:3316
11885 " mount-loop file mountpoint\n"
11890 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11892 "This command lets you mount C<file> (a filesystem image in a file) on a "
11893 "mount point. It is entirely equivalent to the command C<mount -o loop file "
11898 #: ../fish/guestfish-actions.pod:3322
11899 msgid "mount-options"
11900 msgstr "mount-options"
11903 #: ../fish/guestfish-actions.pod:3324
11906 " mount-options options device mountpoint\n"
11911 #: ../fish/guestfish-actions.pod:3326
11913 "This is the same as the L</mount> command, but it allows you to set the "
11914 "mount options as for the L<mount(8)> I<-o> flag."
11918 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11920 "If the C<options> parameter is an empty string, then no options are passed "
11921 "(all options default to whatever the filesystem uses)."
11925 #: ../fish/guestfish-actions.pod:3334
11930 #: ../fish/guestfish-actions.pod:3336
11933 " mount-ro device mountpoint\n"
11936 " mount-ro пристрій точка_монтування\n"
11940 #: ../fish/guestfish-actions.pod:3338
11942 "This is the same as the L</mount> command, but it mounts the filesystem with "
11943 "the read-only (I<-o ro>) flag."
11947 #: ../fish/guestfish-actions.pod:3341
11952 #: ../fish/guestfish-actions.pod:3343
11955 " mount-vfs options vfstype device mountpoint\n"
11960 #: ../fish/guestfish-actions.pod:3345
11962 "This is the same as the L</mount> command, but it allows you to set both the "
11963 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11967 #: ../fish/guestfish-actions.pod:3349
11968 msgid "mountpoints"
11969 msgstr "mountpoints"
11972 #: ../fish/guestfish-actions.pod:3351
11982 #: ../fish/guestfish-actions.pod:3353
11984 "This call is similar to L</mounts>. That call returns a list of devices. "
11985 "This one returns a hash table (map) of device name to directory where the "
11986 "device is mounted."
11990 #: ../fish/guestfish-actions.pod:3357
11995 #: ../fish/guestfish-actions.pod:3359
12005 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12007 "This returns the list of currently mounted filesystems. It returns the list "
12008 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12012 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
12013 msgid "Some internal mounts are not shown."
12017 #: ../fish/guestfish-actions.pod:3366
12018 msgid "See also: L</mountpoints>"
12019 msgstr "Див. також L</mountpoints>"
12022 #: ../fish/guestfish-actions.pod:3368
12027 #: ../fish/guestfish-actions.pod:3370
12033 " mv джерело призначення\n"
12037 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
12039 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12040 "destination filename or destination directory."
12044 #: ../fish/guestfish-actions.pod:3375
12045 msgid "ntfs-3g-probe"
12046 msgstr "ntfs-3g-probe"
12049 #: ../fish/guestfish-actions.pod:3377
12052 " ntfs-3g-probe true|false device\n"
12057 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
12059 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12060 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12061 "write, and some cannot be mounted at all)."
12065 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
12067 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12068 "can be mounted read-write. Set it to false if you want to test if the "
12069 "volume can be mounted read-only."
12073 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
12075 "The return value is an integer which C<0> if the operation would succeed, or "
12076 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12080 #: ../fish/guestfish-actions.pod:3391
12082 msgstr "ntfsresize"
12085 #: ../fish/guestfish-actions.pod:3393
12088 " ntfsresize device\n"
12091 " ntfsresize пристрій\n"
12095 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
12096 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
12098 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12099 "size of the underlying device."
12103 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
12105 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12106 "consistency check (for safety). You have to boot into Windows to perform "
12107 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12108 "resize filesystems which have been marked in this way. So in effect it is "
12109 "not possible to call ntfsresize multiple times on a single filesystem "
12110 "without booting into Windows between each resize."
12114 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
12115 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
12116 msgid "See also L<ntfsresize(8)>."
12120 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
12122 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12127 #: ../fish/guestfish-actions.pod:3415
12128 msgid "ntfsresize-opts"
12132 #: ../fish/guestfish-actions.pod:3417
12135 " ntfsresize-opts device [size:..] [force:..]\n"
12140 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12142 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12143 "resized to fit the container (eg. partition)."
12147 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
12152 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
12154 "If this option is true, then force the resize of the filesystem even if the "
12155 "filesystem is marked as requiring a consistency check."
12159 #: ../fish/guestfish-actions.pod:3436
12161 "After the resize operation, the filesystem is always marked as requiring a "
12162 "consistency check (for safety). You have to boot into Windows to perform "
12163 "this check and clear this condition. If you I<don't> set the C<force> "
12164 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12165 "a single filesystem without booting into Windows between each resize."
12169 #: ../fish/guestfish-actions.pod:3449
12170 msgid "ntfsresize-size"
12171 msgstr "ntfsresize-size"
12174 #: ../fish/guestfish-actions.pod:3451
12177 " ntfsresize-size device size\n"
12182 #: ../fish/guestfish-actions.pod:3453
12184 "This command is the same as L</ntfsresize> except that it allows you to "
12185 "specify the new size (in bytes) explicitly."
12189 #: ../fish/guestfish-actions.pod:3463
12194 #: ../fish/guestfish-actions.pod:3465
12197 " part-add device prlogex startsect endsect\n"
12202 #: ../fish/guestfish-actions.pod:3467
12204 "This command adds a partition to C<device>. If there is no partition table "
12205 "on the device, call L</part-init> first."
12209 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12211 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12212 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12213 "C<logical>) and C<e> (or C<extended>) partition types."
12217 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
12219 "C<startsect> and C<endsect> are the start and end of the partition in "
12220 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12221 "from the end of the disk (C<-1> is the last sector)."
12225 #: ../fish/guestfish-actions.pod:3479
12227 "Creating a partition which covers the whole disk is not so easy. Use L</"
12228 "part-disk> to do that."
12232 #: ../fish/guestfish-actions.pod:3482
12237 #: ../fish/guestfish-actions.pod:3484
12240 " part-del device partnum\n"
12245 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
12246 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12250 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
12252 "Note that in the case of MBR partitioning, deleting an extended partition "
12253 "also deletes any logical partitions it contains."
12257 #: ../fish/guestfish-actions.pod:3492
12262 #: ../fish/guestfish-actions.pod:3494
12265 " part-disk device parttype\n"
12268 " part-disk пристрій тип_розділу\n"
12272 #: ../fish/guestfish-actions.pod:3496
12274 "This command is simply a combination of L</part-init> followed by L</part-"
12275 "add> to create a single primary partition covering the whole disk."
12279 #: ../fish/guestfish-actions.pod:3500
12281 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12282 "possible values are described in L</part-init>."
12286 #: ../fish/guestfish-actions.pod:3506
12287 msgid "part-get-bootable"
12288 msgstr "part-get-bootable"
12291 #: ../fish/guestfish-actions.pod:3508
12294 " part-get-bootable device partnum\n"
12299 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
12301 "This command returns true if the partition C<partnum> on C<device> has the "
12302 "bootable flag set."
12306 #: ../fish/guestfish-actions.pod:3513
12307 msgid "See also L</part-set-bootable>."
12308 msgstr "Див. також L</part-set-bootable>."
12311 #: ../fish/guestfish-actions.pod:3515
12312 msgid "part-get-mbr-id"
12313 msgstr "part-get-mbr-id"
12316 #: ../fish/guestfish-actions.pod:3517
12319 " part-get-mbr-id device partnum\n"
12324 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
12326 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12327 "partition C<partnum>."
12331 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
12333 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12334 "undefined results for other partition table types (see L</part-get-"
12339 #: ../fish/guestfish-actions.pod:3526
12340 msgid "part-get-parttype"
12341 msgstr "part-get-parttype"
12344 #: ../fish/guestfish-actions.pod:3528
12347 " part-get-parttype device\n"
12350 " part-get-parttype пристрій\n"
12354 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
12356 "This command examines the partition table on C<device> and returns the "
12357 "partition table type (format) being used."
12361 #: ../fish/guestfish-actions.pod:3533
12363 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12364 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12365 "possible, although unusual. See L</part-init> for a full list."
12369 #: ../fish/guestfish-actions.pod:3538
12374 #: ../fish/guestfish-actions.pod:3540
12377 " part-init device parttype\n"
12382 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
12384 "This creates an empty partition table on C<device> of one of the partition "
12385 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12386 "(for large disks)."
12390 #: ../fish/guestfish-actions.pod:3546
12392 "Initially there are no partitions. Following this, you should call L</part-"
12393 "add> for each partition required."
12397 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
12398 msgid "Possible values for C<parttype> are:"
12402 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
12407 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
12412 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
12413 msgid "Intel EFI / GPT partition table."
12417 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
12419 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12420 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12421 "the C<mbr> format."
12425 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
12430 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
12435 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
12437 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12438 "Windows. This partition type will B<only> work for device sizes up to 2 "
12439 "TB. For large disks we recommend using C<gpt>."
12443 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12445 "Other partition table types that may work but are not supported include:"
12449 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12454 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12455 msgid "AIX disk labels."
12456 msgstr "Мітки дисків AIX."
12459 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12461 #| msgid "B<amiga> | B<rdb>"
12463 msgstr "B<amiga> | B<rdb>"
12466 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12471 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12472 msgid "Amiga \"Rigid Disk Block\" format."
12473 msgstr "Формат \"Rigid Disk Block\" Amiga."
12476 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12481 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12482 msgid "BSD disk labels."
12483 msgstr "Мітки дисків BSD."
12486 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12491 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
12492 msgid "DASD, used on IBM mainframes."
12493 msgstr "DASD, використовувалися у мейнфреймах IBM."
12496 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
12501 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
12502 msgid "MIPS/SGI volumes."
12503 msgstr "Томи MIPS/SGI."
12506 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12511 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12512 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12513 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12516 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12521 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12522 msgid "NEC PC-98 format, common in Japan apparently."
12523 msgstr "Формат NEC PC-98, поширений у Японії."
12526 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12531 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12532 msgid "Sun disk labels."
12533 msgstr "Мітки дисків Sun."
12536 #: ../fish/guestfish-actions.pod:3615
12541 #: ../fish/guestfish-actions.pod:3617
12544 " part-list device\n"
12547 " part-list device\n"
12551 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
12553 "This command parses the partition table on C<device> and returns the list of "
12554 "partitions found."
12558 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
12559 msgid "The fields in the returned structure are:"
12563 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
12564 msgid "B<part_num>"
12565 msgstr "B<part_num>"
12568 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
12569 msgid "Partition number, counting from 1."
12573 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12574 msgid "B<part_start>"
12575 msgstr "B<part_start>"
12578 #: ../fish/guestfish-actions.pod:3632
12580 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12581 "the device's sector size, see L</blockdev-getss>."
12585 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
12586 msgid "B<part_end>"
12587 msgstr "B<part_end>"
12590 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
12591 msgid "End of the partition in bytes."
12595 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
12596 msgid "B<part_size>"
12597 msgstr "B<part_size>"
12600 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12601 msgid "Size of the partition in bytes."
12605 #: ../fish/guestfish-actions.pod:3645
12606 msgid "part-set-bootable"
12607 msgstr "part-set-bootable"
12610 #: ../fish/guestfish-actions.pod:3647
12613 " part-set-bootable device partnum true|false\n"
12618 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
12620 "This sets the bootable flag on partition numbered C<partnum> on device "
12621 "C<device>. Note that partitions are numbered from 1."
12625 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
12627 "The bootable flag is used by some operating systems (notably Windows) to "
12628 "determine which partition to boot from. It is by no means universally "
12633 #: ../fish/guestfish-actions.pod:3656
12634 msgid "part-set-mbr-id"
12635 msgstr "part-set-mbr-id"
12638 #: ../fish/guestfish-actions.pod:3658
12641 " part-set-mbr-id device partnum idbyte\n"
12646 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
12648 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12649 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
12650 "documentation are in fact hexadecimal numbers, but usually documented "
12651 "without any leading \"0x\" which might be confusing."
12655 #: ../fish/guestfish-actions.pod:3670
12656 msgid "part-set-name"
12657 msgstr "part-set-name"
12660 #: ../fish/guestfish-actions.pod:3672
12663 " part-set-name device partnum name\n"
12668 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12670 "This sets the partition name on partition numbered C<partnum> on device "
12671 "C<device>. Note that partitions are numbered from 1."
12675 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12677 "The partition name can only be set on certain types of partition table. "
12678 "This works on C<gpt> but not on C<mbr> partitions."
12682 #: ../fish/guestfish-actions.pod:3680
12683 msgid "part-to-dev"
12684 msgstr "part-to-dev"
12687 #: ../fish/guestfish-actions.pod:3682
12690 " part-to-dev partition\n"
12693 " part-to-dev розділ\n"
12697 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12699 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12700 "partition number, returning the device name (eg. \"/dev/sdb\")."
12704 #: ../fish/guestfish-actions.pod:3688
12706 "The named partition must exist, for example as a string returned from L</"
12707 "list-partitions>."
12711 #: ../fish/guestfish-actions.pod:3691
12712 msgid "ping-daemon"
12713 msgstr "ping-daemon"
12716 #: ../fish/guestfish-actions.pod:3693
12726 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12728 "This is a test probe into the guestfs daemon running inside the qemu "
12729 "subprocess. Calling this function checks that the daemon responds to the "
12730 "ping message, without affecting the daemon or attached block device(s) in "
12735 #: ../fish/guestfish-actions.pod:3700
12740 #: ../fish/guestfish-actions.pod:3702
12743 " pread path count offset\n"
12748 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12750 "This command lets you read part of a file. It reads C<count> bytes of the "
12751 "file, starting at C<offset>, from file C<path>."
12755 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12756 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12758 "This may read fewer bytes than requested. For further details see the "
12759 "L<pread(2)> system call."
12763 #: ../fish/guestfish-actions.pod:3710
12764 msgid "See also L</pwrite>, L</pread-device>."
12765 msgstr "Див. також L</pwrite>, L</pread-device>."
12768 #: ../fish/guestfish-actions.pod:3715
12769 msgid "pread-device"
12770 msgstr "pread-device"
12773 #: ../fish/guestfish-actions.pod:3717
12776 " pread-device device count offset\n"
12781 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12783 "This command lets you read part of a file. It reads C<count> bytes of "
12784 "C<device>, starting at C<offset>."
12788 #: ../fish/guestfish-actions.pod:3725
12789 msgid "See also L</pread>."
12790 msgstr "Див. також L</pread>."
12793 #: ../fish/guestfish-actions.pod:3730
12798 #: ../fish/guestfish-actions.pod:3732
12801 " pvcreate device\n"
12804 " pvcreate пристрій\n"
12808 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12810 "This creates an LVM physical volume on the named C<device>, where C<device> "
12811 "should usually be a partition name such as C</dev/sda1>."
12815 #: ../fish/guestfish-actions.pod:3738
12820 #: ../fish/guestfish-actions.pod:3740
12823 " pvremove device\n"
12826 " pvremove пристрій\n"
12830 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12832 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12837 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12839 "The implementation uses the C<pvremove> command which refuses to wipe "
12840 "physical volumes that contain any volume groups, so you have to remove those "
12845 #: ../fish/guestfish-actions.pod:3749
12850 #: ../fish/guestfish-actions.pod:3751
12853 " pvresize device\n"
12856 " pvresize пристрій\n"
12860 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12862 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12863 "the new size of the underlying device."
12867 #: ../fish/guestfish-actions.pod:3756
12868 msgid "pvresize-size"
12869 msgstr "pvresize-size"
12872 #: ../fish/guestfish-actions.pod:3758
12875 " pvresize-size device size\n"
12880 #: ../fish/guestfish-actions.pod:3760
12882 "This command is the same as L</pvresize> except that it allows you to "
12883 "specify the new size (in bytes) explicitly."
12887 #: ../fish/guestfish-actions.pod:3763
12892 #: ../fish/guestfish-actions.pod:3765
12902 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12904 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12909 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12911 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12916 #: ../fish/guestfish-actions.pod:3773
12917 msgid "See also L</pvs-full>."
12918 msgstr "Див. також L</pvs-full>."
12921 #: ../fish/guestfish-actions.pod:3775
12926 #: ../fish/guestfish-actions.pod:3777
12936 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12938 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12939 "(8)> command. The \"full\" version includes all fields."
12943 #: ../fish/guestfish-actions.pod:3782
12948 #: ../fish/guestfish-actions.pod:3784
12954 " pvuuid пристрій\n"
12958 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12959 msgid "This command returns the UUID of the LVM PV C<device>."
12963 #: ../fish/guestfish-actions.pod:3788
12968 #: ../fish/guestfish-actions.pod:3790
12971 " pwrite path content offset\n"
12976 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12978 "This command writes to part of a file. It writes the data buffer C<content> "
12979 "to the file C<path> starting at offset C<offset>."
12983 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12985 "This command implements the L<pwrite(2)> system call, and like that system "
12986 "call it may not write the full data requested. The return value is the "
12987 "number of bytes that were actually written to the file. This could even be "
12988 "0, although short writes are unlikely for regular files in ordinary "
12993 #: ../fish/guestfish-actions.pod:3801
12994 msgid "See also L</pread>, L</pwrite-device>."
12995 msgstr "Див. також L</pread>, L</pwrite-device>."
12998 #: ../fish/guestfish-actions.pod:3806
12999 msgid "pwrite-device"
13000 msgstr "pwrite-device"
13003 #: ../fish/guestfish-actions.pod:3808
13006 " pwrite-device device content offset\n"
13011 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
13013 "This command writes to part of a device. It writes the data buffer "
13014 "C<content> to C<device> starting at offset C<offset>."
13018 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
13020 "This command implements the L<pwrite(2)> system call, and like that system "
13021 "call it may not write the full data requested (although short writes to disk "
13022 "devices and partitions are probably impossible with standard Linux kernels)."
13026 #: ../fish/guestfish-actions.pod:3818
13027 msgid "See also L</pwrite>."
13028 msgstr "Див. також L</pwrite>."
13031 #: ../fish/guestfish-actions.pod:3823
13036 #: ../fish/guestfish-actions.pod:3825
13039 " read-file path\n"
13042 " read-file шлях\n"
13046 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
13047 msgid "This calls returns the contents of the file C<path> as a buffer."
13051 #: ../fish/guestfish-actions.pod:3830
13053 "Unlike L</cat>, this function can correctly handle files that contain "
13054 "embedded ASCII NUL characters. However unlike L</download>, this function "
13055 "is limited in the total size of file that can be handled."
13059 #: ../fish/guestfish-actions.pod:3838
13061 msgstr "read-lines"
13064 #: ../fish/guestfish-actions.pod:3840
13067 " read-lines path\n"
13070 " read-lines шлях\n"
13074 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
13076 "The file contents are returned as a list of lines. Trailing C<LF> and "
13077 "C<CRLF> character sequences are I<not> returned."
13081 #: ../fish/guestfish-actions.pod:3847
13083 "Note that this function cannot correctly handle binary files (specifically, "
13084 "files containing C<\\0> character which is treated as end of line). For "
13085 "those you need to use the L</read-file> function which has a more complex "
13090 #: ../fish/guestfish-actions.pod:3852
13095 #: ../fish/guestfish-actions.pod:3854
13101 " readdir каталог\n"
13105 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
13106 msgid "This returns the list of directory entries in directory C<dir>."
13110 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
13112 "All entries in the directory are returned, including C<.> and C<..>. The "
13113 "entries are I<not> sorted, but returned in the same order as the underlying "
13118 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13120 "Also this call returns basic file type information about each file. The "
13121 "C<ftyp> field will contain one of the following characters:"
13125 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
13130 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
13131 msgid "Block special"
13132 msgstr "Блоковий особливий"
13135 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
13140 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
13141 msgid "Char special"
13142 msgstr "Символьний особливий"
13145 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
13150 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
13155 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
13160 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
13161 msgid "FIFO (named pipe)"
13162 msgstr "FIFO (іменований канал)"
13165 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
13170 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
13171 msgid "Symbolic link"
13172 msgstr "Символічне посилання"
13175 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
13180 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13181 msgid "Regular file"
13182 msgstr "Звичайний файл"
13185 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13190 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13195 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13200 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13201 msgid "Unknown file type"
13202 msgstr "Невідомий тип файла"
13205 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13210 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13212 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13216 #: ../fish/guestfish-actions.pod:3906
13218 "This function is primarily intended for use by programs. To get a simple "
13219 "list of names, use L</ls>. To get a printable directory for human "
13220 "consumption, use L</ll>."
13224 #: ../fish/guestfish-actions.pod:3910
13229 #: ../fish/guestfish-actions.pod:3912
13239 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
13240 msgid "This command reads the target of a symbolic link."
13244 #: ../fish/guestfish-actions.pod:3916
13245 msgid "readlinklist"
13246 msgstr "readlinklist"
13249 #: ../fish/guestfish-actions.pod:3918
13252 " readlinklist path 'names ...'\n"
13257 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
13259 "This call allows you to do a C<readlink> operation on multiple files, where "
13260 "all files are in the directory C<path>. C<names> is the list of files from "
13265 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
13267 "On return you get a list of strings, with a one-to-one correspondence to the "
13268 "C<names> list. Each string is the value of the symbolic link."
13272 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
13274 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13275 "result string is the empty string C<\"\">. However the whole operation is "
13276 "completed even if there were C<readlink(2)> errors, and so you can call this "
13277 "function with names where you don't know if they are symbolic links already "
13278 "(albeit slightly less efficient)."
13282 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
13284 "This call is intended for programs that want to efficiently list a directory "
13285 "contents without making many round-trips. Very long directory listings "
13286 "might cause the protocol message size to be exceeded, causing this call to "
13287 "fail. The caller must split up such requests into smaller groups of names."
13291 #: ../fish/guestfish-actions.pod:3942
13296 #: ../fish/guestfish-actions.pod:3944
13306 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
13308 "Return the canonicalized absolute pathname of C<path>. The returned path "
13309 "has no C<.>, C<..> or symbolic link path elements."
13313 #: ../fish/guestfish-actions.pod:3949
13314 msgid "removexattr"
13315 msgstr "removexattr"
13318 #: ../fish/guestfish-actions.pod:3951
13321 " removexattr xattr path\n"
13326 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
13328 "This call removes the extended attribute named C<xattr> of the file C<path>."
13332 #: ../fish/guestfish-actions.pod:3956
13333 msgid "See also: L</lremovexattr>, L<attr(5)>."
13334 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13337 #: ../fish/guestfish-actions.pod:3958
13342 #: ../fish/guestfish-actions.pod:3960
13345 " resize2fs device\n"
13348 " resize2fs пристрій\n"
13352 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
13354 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13355 "underlying device."
13359 #: ../fish/guestfish-actions.pod:3965
13361 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13362 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13363 "gives an error about this and sometimes not. In any case, it is always safe "
13364 "to call L</e2fsck-f> before calling this function."
13368 #: ../fish/guestfish-actions.pod:3971
13369 msgid "resize2fs-M"
13370 msgstr "resize2fs-M"
13373 #: ../fish/guestfish-actions.pod:3973
13376 " resize2fs-M device\n"
13379 " resize2fs-M пристрій\n"
13383 #: ../fish/guestfish-actions.pod:3975
13385 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13386 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13391 #: ../fish/guestfish-actions.pod:3979
13393 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13394 "and read the C<Block size> and C<Block count> values. These two numbers, "
13395 "multiplied together, give the resulting size of the minimal filesystem in "
13400 #: ../fish/guestfish-actions.pod:3984
13401 msgid "resize2fs-size"
13402 msgstr "resize2fs-size"
13405 #: ../fish/guestfish-actions.pod:3986
13408 " resize2fs-size device size\n"
13413 #: ../fish/guestfish-actions.pod:3988
13415 "This command is the same as L</resize2fs> except that it allows you to "
13416 "specify the new size (in bytes) explicitly."
13420 #: ../fish/guestfish-actions.pod:3991
13425 #: ../fish/guestfish-actions.pod:3993
13435 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
13436 msgid "Remove the single file C<path>."
13440 #: ../fish/guestfish-actions.pod:3997
13445 #: ../fish/guestfish-actions.pod:3999
13455 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
13457 "Remove the file or directory C<path>, recursively removing the contents if "
13458 "its a directory. This is like the C<rm -rf> shell command."
13462 #: ../fish/guestfish-actions.pod:4005
13467 #: ../fish/guestfish-actions.pod:4007
13477 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
13478 msgid "Remove the single directory C<path>."
13482 #: ../fish/guestfish-actions.pod:4011
13483 msgid "rmmountpoint"
13484 msgstr "rmmountpoint"
13487 #: ../fish/guestfish-actions.pod:4013
13490 " rmmountpoint exemptpath\n"
13495 #: ../fish/guestfish-actions.pod:4015
13497 "This calls removes a mountpoint that was previously created with L</"
13498 "mkmountpoint>. See L</mkmountpoint> for full details."
13502 #: ../fish/guestfish-actions.pod:4019
13503 msgid "scrub-device"
13504 msgstr "scrub-device"
13507 #: ../fish/guestfish-actions.pod:4021
13510 " scrub-device device\n"
13513 " scrub-device пристрій\n"
13517 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
13519 "This command writes patterns over C<device> to make data retrieval more "
13524 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
13525 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
13526 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
13528 "It is an interface to the L<scrub(1)> program. See that manual page for "
13533 #: ../fish/guestfish-actions.pod:4032
13535 msgstr "scrub-file"
13538 #: ../fish/guestfish-actions.pod:4034
13541 " scrub-file file\n"
13544 " scrub-file файл\n"
13548 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
13550 "This command writes patterns over a file to make data retrieval more "
13555 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
13556 msgid "The file is I<removed> after scrubbing."
13560 #: ../fish/guestfish-actions.pod:4044
13561 msgid "scrub-freespace"
13562 msgstr "scrub-freespace"
13565 #: ../fish/guestfish-actions.pod:4046
13568 " scrub-freespace dir\n"
13571 " scrub-freespace каталог\n"
13575 #: ../fish/guestfish-actions.pod:4048
13577 "This command creates the directory C<dir> and then fills it with files until "
13578 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13579 "deletes them. The intention is to scrub any free space on the partition "
13580 "containing C<dir>."
13584 #: ../fish/guestfish-actions.pod:4057
13586 msgstr "set-append"
13589 #: ../fish/guestfish-actions.pod:4059
13594 #: ../fish/guestfish-actions.pod:4061
13597 " set-append append\n"
13602 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
13604 "This function is used to add additional options to the guest kernel command "
13609 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
13611 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13612 "environment variable."
13616 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
13618 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13619 "(libguestfs always adds a few of its own)."
13623 #: ../fish/guestfish-actions.pod:4072
13624 msgid "set-attach-method"
13625 msgstr "set-attach-method"
13628 #: ../fish/guestfish-actions.pod:4074
13629 msgid "attach-method"
13633 #: ../fish/guestfish-actions.pod:4076
13636 " set-attach-method attachmethod\n"
13641 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13643 "Set the method that libguestfs uses to connect to the back end guestfsd "
13644 "daemon. Possible methods are:"
13648 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13649 #: ../src/guestfs.pod:2688
13650 msgid "C<appliance>"
13651 msgstr "C<appliance>"
13654 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13656 "Launch an appliance and connect to it. This is the ordinary method and the "
13661 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
13662 msgid "C<unix:I<path>>"
13663 msgstr "C<unix:I<шлях>>"
13666 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
13667 msgid "Connect to the Unix domain socket I<path>."
13668 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13671 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
13673 "This method lets you connect to an existing daemon or (using virtio-serial) "
13674 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
13675 "RUNNING DAEMONS>."
13679 #: ../fish/guestfish-actions.pod:4098
13680 msgid "set-autosync"
13681 msgstr "set-autosync"
13684 #: ../fish/guestfish-actions.pod:4100
13689 #: ../fish/guestfish-actions.pod:4102
13692 " set-autosync true|false\n"
13695 " set-autosync true|false\n"
13699 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13701 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
13702 "effort attempt to make filesystems consistent and synchronized when the "
13703 "handle is closed (also if the program exits without closing handles)."
13707 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13709 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13710 "disabled by default)."
13714 #: ../fish/guestfish-actions.pod:4112
13716 msgstr "set-direct"
13719 #: ../fish/guestfish-actions.pod:4114
13724 #: ../fish/guestfish-actions.pod:4116
13727 " set-direct true|false\n"
13730 " set-direct true|false\n"
13734 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13736 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13737 "passed directly through to the appliance once it is launched."
13741 #: ../fish/guestfish-actions.pod:4122
13743 "One consequence of this is that log messages aren't caught by the library "
13744 "and handled by L</set-log-message-callback>, but go straight to stdout."
13748 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13749 msgid "You probably don't want to use this unless you know what you are doing."
13753 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13754 msgid "The default is disabled."
13758 #: ../fish/guestfish-actions.pod:4131
13759 msgid "set-e2label"
13760 msgstr "set-e2label"
13763 #: ../fish/guestfish-actions.pod:4133
13766 " set-e2label device label\n"
13771 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13773 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13774 "C<label>. Filesystem labels are limited to 16 characters."
13778 #: ../fish/guestfish-actions.pod:4139
13780 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13781 "label on a filesystem."
13785 #: ../fish/guestfish-actions.pod:4142
13787 msgstr "set-e2uuid"
13790 #: ../fish/guestfish-actions.pod:4144
13793 " set-e2uuid device uuid\n"
13798 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13800 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13801 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
13802 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13806 #: ../fish/guestfish-actions.pod:4151
13808 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13809 "UUID of a filesystem."
13813 #: ../fish/guestfish-actions.pod:4154
13814 msgid "set-memsize"
13815 msgstr "set-memsize"
13818 #: ../fish/guestfish-actions.pod:4156
13823 #: ../fish/guestfish-actions.pod:4158
13826 " set-memsize memsize\n"
13831 #: ../fish/guestfish-actions.pod:4160
13833 "This sets the memory size in megabytes allocated to the qemu subprocess. "
13834 "This only has any effect if called before L</launch>."
13838 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13840 "You can also change this by setting the environment variable "
13841 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13845 #: ../fish/guestfish-actions.pod:4171
13846 msgid "set-network"
13847 msgstr "set-network"
13850 #: ../fish/guestfish-actions.pod:4173
13855 #: ../fish/guestfish-actions.pod:4175
13858 " set-network true|false\n"
13861 " set-network true|false\n"
13865 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13867 "If C<network> is true, then the network is enabled in the libguestfs "
13868 "appliance. The default is false."
13872 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13874 "This affects whether commands are able to access the network (see L<guestfs"
13875 "(3)/RUNNING COMMANDS>)."
13879 #: ../fish/guestfish-actions.pod:4183
13881 "You must call this before calling L</launch>, otherwise it has no effect."
13885 #: ../fish/guestfish-actions.pod:4186
13890 #: ../fish/guestfish-actions.pod:4190
13893 " set-path searchpath\n"
13898 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13899 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13903 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13905 "The default is C<$libdir/guestfs> unless overridden by setting "
13906 "C<LIBGUESTFS_PATH> environment variable."
13910 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13911 msgid "Setting C<path> to C<NULL> restores the default path."
13915 #: ../fish/guestfish-actions.pod:4199
13920 #: ../fish/guestfish-actions.pod:4201
13925 #: ../fish/guestfish-actions.pod:4203
13928 " set-pgroup true|false\n"
13933 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13935 "If C<pgroup> is true, child processes are placed into their own process "
13940 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13942 "The practical upshot of this is that signals like C<SIGINT> (from users "
13943 "pressing C<^C>) won't be received by the child process."
13947 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13949 "The default for this flag is false, because usually you want C<^C> to kill "
13954 #: ../fish/guestfish-actions.pod:4214
13959 #: ../fish/guestfish-actions.pod:4216
13964 #: ../fish/guestfish-actions.pod:4218
13974 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13975 msgid "Set the qemu binary that we will use."
13979 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13981 "The default is chosen when the library was compiled by the configure script."
13985 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13987 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13992 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13993 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13997 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13999 "Note that you should call this function as early as possible after creating "
14000 "the handle. This is because some pre-launch operations depend on testing "
14001 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14002 "don't retest features, and so you might see inconsistent results. Using the "
14003 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14004 "the qemu binary at the same time as the handle is created."
14008 #: ../fish/guestfish-actions.pod:4238
14009 msgid "set-recovery-proc"
14010 msgstr "set-recovery-proc"
14013 #: ../fish/guestfish-actions.pod:4240
14014 msgid "recovery-proc"
14015 msgstr "recovery-proc"
14018 #: ../fish/guestfish-actions.pod:4242
14021 " set-recovery-proc true|false\n"
14024 " set-recovery-proc true|false\n"
14028 #: ../fish/guestfish-actions.pod:4244
14030 "If this is called with the parameter C<false> then L</launch> does not "
14031 "create a recovery process. The purpose of the recovery process is to stop "
14032 "runaway qemu processes in the case where the main program aborts abruptly."
14036 #: ../fish/guestfish-actions.pod:4249
14038 "This only has any effect if called before L</launch>, and the default is "
14043 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
14045 "About the only time when you would want to disable this is if the main "
14046 "process will fork itself into the background (\"daemonize\" itself). In "
14047 "this case the recovery process thinks that the main program has disappeared "
14048 "and so kills qemu, which is not very helpful."
14052 #: ../fish/guestfish-actions.pod:4258
14053 msgid "set-selinux"
14054 msgstr "set-selinux"
14057 #: ../fish/guestfish-actions.pod:4260
14062 #: ../fish/guestfish-actions.pod:4262
14065 " set-selinux true|false\n"
14068 " set-selinux true|false\n"
14072 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
14074 "This sets the selinux flag that is passed to the appliance at boot time. "
14075 "The default is C<selinux=0> (disabled)."
14079 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
14081 "Note that if SELinux is enabled, it is always in Permissive mode "
14082 "(C<enforcing=0>)."
14086 #: ../fish/guestfish-actions.pod:4273
14091 #: ../fish/guestfish-actions.pod:4275
14096 #: ../fish/guestfish-actions.pod:4277
14099 " set-trace true|false\n"
14102 " set-trace true|false\n"
14106 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
14108 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14109 "return values are traced."
14113 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
14115 "If you want to trace C API calls into libguestfs (and other libraries) then "
14116 "possibly a better way is to use the external ltrace(1) command."
14120 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
14122 "Command traces are disabled unless the environment variable "
14123 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14127 #: ../fish/guestfish-actions.pod:4289
14129 "Trace messages are normally sent to C<stderr>, unless you register a "
14130 "callback to send them somewhere else (see L</set-event-callback>)."
14134 #: ../fish/guestfish-actions.pod:4293
14135 msgid "set-verbose"
14136 msgstr "set-verbose"
14139 #: ../fish/guestfish-actions.pod:4295
14144 #: ../fish/guestfish-actions.pod:4297
14147 " set-verbose true|false\n"
14150 " set-verbose true|false\n"
14154 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
14155 msgid "If C<verbose> is true, this turns on verbose messages."
14159 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
14161 "Verbose messages are disabled unless the environment variable "
14162 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14166 #: ../fish/guestfish-actions.pod:4304
14168 "Verbose messages are normally sent to C<stderr>, unless you register a "
14169 "callback to send them somewhere else (see L</set-event-callback>)."
14173 #: ../fish/guestfish-actions.pod:4308
14178 #: ../fish/guestfish-actions.pod:4310
14181 " setcon context\n"
14184 " setcon контекст\n"
14188 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
14190 "This sets the SELinux security context of the daemon to the string "
14195 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
14196 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14200 #: ../fish/guestfish-actions.pod:4317
14205 #: ../fish/guestfish-actions.pod:4319
14208 " setxattr xattr val vallen path\n"
14213 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
14215 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14216 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14220 #: ../fish/guestfish-actions.pod:4325
14221 msgid "See also: L</lsetxattr>, L<attr(5)>."
14222 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14225 #: ../fish/guestfish-actions.pod:4327
14230 #: ../fish/guestfish-actions.pod:4329
14233 " sfdisk device cyls heads sectors 'lines ...'\n"
14238 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
14240 "This is a direct interface to the L<sfdisk(8)> program for creating "
14241 "partitions on block devices."
14245 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
14246 msgid "C<device> should be a block device, for example C</dev/sda>."
14250 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
14252 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14253 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14254 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14255 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14256 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14257 "the kernel) cannot work out the right geometry and you will need to tell it."
14261 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
14263 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14264 "refer to the L<sfdisk(8)> manpage."
14268 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
14270 "To create a single partition occupying the whole disk, you would pass "
14271 "C<lines> as a single element list, when the single element being the string "
14276 #: ../fish/guestfish-actions.pod:4351
14277 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14278 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14281 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
14282 #: ../fish/guestfish-actions.pod:4402
14284 "I<This function is deprecated.> In new code, use the L</part_add> call "
14289 #: ../fish/guestfish-actions.pod:4364
14294 #: ../fish/guestfish-actions.pod:4366
14297 " sfdiskM device 'lines ...'\n"
14302 #: ../fish/guestfish-actions.pod:4368
14304 "This is a simplified interface to the L</sfdisk> command, where partition "
14305 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14306 "you don't need to specify the cyls, heads and sectors parameters which were "
14307 "rarely if ever used anyway."
14311 #: ../fish/guestfish-actions.pod:4374
14312 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14314 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14317 #: ../fish/guestfish-actions.pod:4387
14322 #: ../fish/guestfish-actions.pod:4389
14325 " sfdisk-N device partnum cyls heads sectors line\n"
14330 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
14332 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14333 "(note: C<n> counts from 1)."
14337 #: ../fish/guestfish-actions.pod:4394
14339 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14340 "cyls/heads/sectors parameters."
14344 #: ../fish/guestfish-actions.pod:4397
14345 msgid "See also: L</part-add>"
14346 msgstr "Див. також L</part-add>"
14349 #: ../fish/guestfish-actions.pod:4409
14350 msgid "sfdisk-disk-geometry"
14351 msgstr "sfdisk-disk-geometry"
14354 #: ../fish/guestfish-actions.pod:4411
14357 " sfdisk-disk-geometry device\n"
14360 " sfdisk-disk-geometry пристрій\n"
14364 #: ../fish/guestfish-actions.pod:4413
14366 "This displays the disk geometry of C<device> read from the partition table. "
14367 "Especially in the case where the underlying block device has been resized, "
14368 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14369 "kernel-geometry>)."
14373 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
14374 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
14375 msgid "The result is in human-readable format, and not designed to be parsed."
14379 #: ../fish/guestfish-actions.pod:4421
14380 msgid "sfdisk-kernel-geometry"
14381 msgstr "sfdisk-kernel-geometry"
14384 #: ../fish/guestfish-actions.pod:4423
14387 " sfdisk-kernel-geometry device\n"
14390 " sfdisk-kernel-geometry пристрій\n"
14394 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
14395 msgid "This displays the kernel's idea of the geometry of C<device>."
14399 #: ../fish/guestfish-actions.pod:4430
14404 #: ../fish/guestfish-actions.pod:4432
14407 " sfdisk-l device\n"
14410 " sfdisk-l пристрій\n"
14414 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
14416 "This displays the partition table on C<device>, in the human-readable output "
14417 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14421 #: ../fish/guestfish-actions.pod:4438
14422 msgid "See also: L</part-list>"
14423 msgstr "Див. також L</part-list>"
14426 #: ../fish/guestfish-actions.pod:4440
14428 "I<This function is deprecated.> In new code, use the L</part_list> call "
14433 #: ../fish/guestfish-actions.pod:4447
14438 #: ../fish/guestfish-actions.pod:4449
14448 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14450 "This call runs a command from the guest filesystem via the guest's C</bin/"
14455 #: ../fish/guestfish-actions.pod:4454
14456 msgid "This is like L</command>, but passes the command to:"
14460 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
14463 " /bin/sh -c \"command\"\n"
14468 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
14470 "Depending on the guest's shell, this usually results in wildcards being "
14471 "expanded, shell expressions being interpolated and so on."
14475 #: ../fish/guestfish-actions.pod:4462
14476 msgid "All the provisos about L</command> apply to this call."
14480 #: ../fish/guestfish-actions.pod:4464
14485 #: ../fish/guestfish-actions.pod:4466
14488 " sh-lines command\n"
14491 " sh-lines команда\n"
14495 #: ../fish/guestfish-actions.pod:4468
14496 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14500 #: ../fish/guestfish-actions.pod:4471
14501 msgid "See also: L</command-lines>"
14502 msgstr "Див. також L</command-lines>"
14505 #: ../fish/guestfish-actions.pod:4473
14510 #: ../fish/guestfish-actions.pod:4475
14516 " sleep час_у_секундах\n"
14520 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
14521 msgid "Sleep for C<secs> seconds."
14525 #: ../fish/guestfish-actions.pod:4479
14530 #: ../fish/guestfish-actions.pod:4481
14540 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
14541 msgid "This is the same as the C<stat(2)> system call."
14545 #: ../fish/guestfish-actions.pod:4487
14550 #: ../fish/guestfish-actions.pod:4489
14560 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
14562 "Returns file system statistics for any mounted file system. C<path> should "
14563 "be a file or directory in the mounted file system (typically it is the mount "
14564 "point itself, but it doesn't need to be)."
14568 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
14569 msgid "This is the same as the C<statvfs(2)> system call."
14573 #: ../fish/guestfish-actions.pod:4497
14578 #: ../fish/guestfish-actions.pod:4499
14588 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
14590 "This runs the L<strings(1)> command on a file and returns the list of "
14591 "printable strings found."
14595 #: ../fish/guestfish-actions.pod:4507
14600 #: ../fish/guestfish-actions.pod:4509
14603 " strings-e encoding path\n"
14606 " strings-e кодування шлях\n"
14610 #: ../fish/guestfish-actions.pod:4511
14612 "This is like the L</strings> command, but allows you to specify the encoding "
14613 "of strings that are looked for in the source file C<path>."
14617 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
14618 msgid "Allowed encodings are:"
14619 msgstr "Можливими кодуваннями є:"
14622 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14627 #: ../fish/guestfish-actions.pod:4521
14629 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14630 "ISO-8859-X (this is what L</strings> uses)."
14634 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
14639 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
14640 msgid "Single 8-bit-byte characters."
14641 msgstr "Окремі 8-бітові-байтові символи."
14644 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14649 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14650 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14654 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14655 msgid "l (lower case letter L)"
14659 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14661 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
14662 "examining binaries in Windows guests."
14666 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
14671 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
14672 msgid "32-bit big endian such as UCS-4BE."
14676 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
14681 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
14682 msgid "32-bit little endian such as UCS-4LE."
14686 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14687 msgid "The returned strings are transcoded to UTF-8."
14691 #: ../fish/guestfish-actions.pod:4553
14692 msgid "swapoff-device"
14693 msgstr "swapoff-device"
14696 #: ../fish/guestfish-actions.pod:4555
14699 " swapoff-device device\n"
14702 " swapoff-device пристрій\n"
14706 #: ../fish/guestfish-actions.pod:4557
14708 "This command disables the libguestfs appliance swap device or partition "
14709 "named C<device>. See L</swapon-device>."
14713 #: ../fish/guestfish-actions.pod:4561
14714 msgid "swapoff-file"
14715 msgstr "swapoff-file"
14718 #: ../fish/guestfish-actions.pod:4563
14721 " swapoff-file file\n"
14724 " swapoff-file файл\n"
14728 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
14729 msgid "This command disables the libguestfs appliance swap on file."
14733 #: ../fish/guestfish-actions.pod:4567
14734 msgid "swapoff-label"
14735 msgstr "swapoff-label"
14738 #: ../fish/guestfish-actions.pod:4569
14741 " swapoff-label label\n"
14744 " swapoff-label мітка\n"
14748 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14750 "This command disables the libguestfs appliance swap on labeled swap "
14755 #: ../fish/guestfish-actions.pod:4574
14756 msgid "swapoff-uuid"
14757 msgstr "swapoff-uuid"
14760 #: ../fish/guestfish-actions.pod:4576
14763 " swapoff-uuid uuid\n"
14766 " swapoff-uuid uuid\n"
14770 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14772 "This command disables the libguestfs appliance swap partition with the given "
14777 #: ../fish/guestfish-actions.pod:4581
14778 msgid "swapon-device"
14779 msgstr "swapon-device"
14782 #: ../fish/guestfish-actions.pod:4583
14785 " swapon-device device\n"
14788 " swapon-device пристрій\n"
14792 #: ../fish/guestfish-actions.pod:4585
14794 "This command enables the libguestfs appliance to use the swap device or "
14795 "partition named C<device>. The increased memory is made available for all "
14796 "commands, for example those run using L</command> or L</sh>."
14800 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14802 "Note that you should not swap to existing guest swap partitions unless you "
14803 "know what you are doing. They may contain hibernation information, or other "
14804 "information that the guest doesn't want you to trash. You also risk leaking "
14805 "information about the host to the guest this way. Instead, attach a new "
14806 "host device to the guest and swap on that."
14810 #: ../fish/guestfish-actions.pod:4597
14811 msgid "swapon-file"
14812 msgstr "swapon-file"
14815 #: ../fish/guestfish-actions.pod:4599
14818 " swapon-file file\n"
14821 " swapon-file файл\n"
14825 #: ../fish/guestfish-actions.pod:4601
14827 "This command enables swap to a file. See L</swapon-device> for other notes."
14831 #: ../fish/guestfish-actions.pod:4604
14832 msgid "swapon-label"
14833 msgstr "swapon-label"
14836 #: ../fish/guestfish-actions.pod:4606
14839 " swapon-label label\n"
14842 " swapon-label мітка\n"
14846 #: ../fish/guestfish-actions.pod:4608
14848 "This command enables swap to a labeled swap partition. See L</swapon-"
14849 "device> for other notes."
14853 #: ../fish/guestfish-actions.pod:4611
14854 msgid "swapon-uuid"
14855 msgstr "swapon-uuid"
14858 #: ../fish/guestfish-actions.pod:4613
14861 " swapon-uuid uuid\n"
14864 " swapon-uuid uuid\n"
14868 #: ../fish/guestfish-actions.pod:4615
14870 "This command enables swap to a swap partition with the given UUID. See L</"
14871 "swapon-device> for other notes."
14875 #: ../fish/guestfish-actions.pod:4618
14880 #: ../fish/guestfish-actions.pod:4620
14890 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14892 "This syncs the disk, so that any writes are flushed through to the "
14893 "underlying disk image."
14897 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14899 "You should always call this if you have modified a disk image, before "
14900 "closing the handle."
14904 #: ../fish/guestfish-actions.pod:4628
14909 #: ../fish/guestfish-actions.pod:4630
14919 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14921 "This command returns up to the last 10 lines of a file as a list of strings."
14925 #: ../fish/guestfish-actions.pod:4638
14930 #: ../fish/guestfish-actions.pod:4640
14933 " tail-n nrlines path\n"
14938 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14940 "If the parameter C<nrlines> is a positive number, this returns the last "
14941 "C<nrlines> lines of the file C<path>."
14945 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14947 "If the parameter C<nrlines> is a negative number, this returns lines from "
14948 "the file C<path>, starting with the C<-nrlines>th line."
14952 #: ../fish/guestfish-actions.pod:4653
14957 #: ../fish/guestfish-actions.pod:4655
14960 " tar-in (tarfile|-) directory\n"
14963 " tar-in (файл_tar|-) каталог\n"
14967 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14969 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14970 "tar file) into C<directory>."
14974 #: ../fish/guestfish-actions.pod:4660
14975 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14979 #: ../fish/guestfish-actions.pod:4665
14984 #: ../fish/guestfish-actions.pod:4667
14987 " tar-out directory (tarfile|-)\n"
14990 " tar-out каталог (файл tar|-)\n"
14994 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14996 "This command packs the contents of C<directory> and downloads it to local "
15001 #: ../fish/guestfish-actions.pod:4672
15002 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15006 #: ../fish/guestfish-actions.pod:4677
15011 #: ../fish/guestfish-actions.pod:4679
15014 " tgz-in (tarball|-) directory\n"
15017 " tgz-in (архів tar|-) каталог\n"
15021 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
15023 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15024 "tar file) into C<directory>."
15028 #: ../fish/guestfish-actions.pod:4684
15029 msgid "To upload an uncompressed tarball, use L</tar-in>."
15033 #: ../fish/guestfish-actions.pod:4688
15038 #: ../fish/guestfish-actions.pod:4690
15041 " tgz-out directory (tarball|-)\n"
15044 " tgz-out каталог (архів tar|-)\n"
15048 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
15050 "This command packs the contents of C<directory> and downloads it to local "
15055 #: ../fish/guestfish-actions.pod:4695
15056 msgid "To download an uncompressed tarball, use L</tar-out>."
15060 #: ../fish/guestfish-actions.pod:4699
15065 #: ../fish/guestfish-actions.pod:4701
15075 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
15077 "Touch acts like the L<touch(1)> command. It can be used to update the "
15078 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15083 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
15085 "This command only works on regular files, and will fail on other file types "
15086 "such as directories, symbolic links, block special etc."
15090 #: ../fish/guestfish-actions.pod:4710
15095 #: ../fish/guestfish-actions.pod:4712
15105 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
15107 "This command truncates C<path> to a zero-length file. The file must exist "
15112 #: ../fish/guestfish-actions.pod:4717
15113 msgid "truncate-size"
15114 msgstr "truncate-size"
15117 #: ../fish/guestfish-actions.pod:4719
15120 " truncate-size path size\n"
15123 " truncate-size шлях розмір\n"
15127 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
15129 "This command truncates C<path> to size C<size> bytes. The file must exist "
15134 #: ../fish/guestfish-actions.pod:4724
15136 "If the current file size is less than C<size> then the file is extended to "
15137 "the required size with zero bytes. This creates a sparse file (ie. disk "
15138 "blocks are not allocated for the file until you write to it). To create a "
15139 "non-sparse file of zeroes, use L</fallocate64> instead."
15143 #: ../fish/guestfish-actions.pod:4730
15148 #: ../fish/guestfish-actions.pod:4732
15151 " tune2fs-l device\n"
15154 " tune2fs-l пристрій\n"
15158 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
15160 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15165 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
15167 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15168 "for more details. The list of fields returned isn't clearly defined, and "
15169 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15170 "and the filesystem itself."
15174 #: ../fish/guestfish-actions.pod:4742
15179 #: ../fish/guestfish-actions.pod:4744
15182 " txz-in (tarball|-) directory\n"
15185 " txz-in (архів tar|-) каталог\n"
15189 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
15191 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15192 "tar file) into C<directory>."
15196 #: ../fish/guestfish-actions.pod:4751
15201 #: ../fish/guestfish-actions.pod:4753
15204 " txz-out directory (tarball|-)\n"
15207 " txz-out каталог (архів tar|-)\n"
15211 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
15213 "This command packs the contents of C<directory> and downloads it to local "
15214 "file C<tarball> (as an xz compressed tar archive)."
15218 #: ../fish/guestfish-actions.pod:4760
15223 #: ../fish/guestfish-actions.pod:4762
15233 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
15235 "This function sets the mask used for creating new files and device nodes to "
15240 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15242 "Typical umask values would be C<022> which creates new files with "
15243 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15244 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15248 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
15250 "The default umask is C<022>. This is important because it means that "
15251 "directories and device nodes will be created with C<0644> or C<0755> mode "
15252 "even if you specify C<0777>."
15256 #: ../fish/guestfish-actions.pod:4776
15257 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15258 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15261 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
15262 msgid "This call returns the previous umask."
15266 #: ../fish/guestfish-actions.pod:4781
15271 #: ../fish/guestfish-actions.pod:4783
15276 #: ../fish/guestfish-actions.pod:4785
15279 " umount pathordevice\n"
15282 " umount шлях_або_пристрій\n"
15286 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
15288 "This unmounts the given filesystem. The filesystem may be specified either "
15289 "by its mountpoint (path) or the device which contains the filesystem."
15293 #: ../fish/guestfish-actions.pod:4791
15295 msgstr "umount-all"
15298 #: ../fish/guestfish-actions.pod:4793
15299 msgid "unmount-all"
15300 msgstr "unmount-all"
15303 #: ../fish/guestfish-actions.pod:4795
15313 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
15314 msgid "This unmounts all mounted filesystems."
15318 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
15319 msgid "Some internal mounts are not unmounted by this call."
15323 #: ../fish/guestfish-actions.pod:4801
15328 #: ../fish/guestfish-actions.pod:4803
15331 " upload (filename|-) remotefilename\n"
15334 " upload (назва_файла|-) назва_віддаленого_файла\n"
15338 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
15339 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
15340 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15344 #: ../fish/guestfish-actions.pod:4810
15345 msgid "See also L</download>."
15346 msgstr "Див. також L</download>."
15349 #: ../fish/guestfish-actions.pod:4814
15350 msgid "upload-offset"
15351 msgstr "upload-offset"
15354 #: ../fish/guestfish-actions.pod:4816
15357 " upload-offset (filename|-) remotefilename offset\n"
15360 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15364 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
15366 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15367 "The intention is to overwrite parts of existing files or devices, although "
15368 "if a non-existant file is specified then it is created with a \"hole\" "
15369 "before C<offset>. The size of the data written is implicit in the size of "
15370 "the source C<filename>."
15374 #: ../fish/guestfish-actions.pod:4828
15376 "Note that there is no limit on the amount of data that can be uploaded with "
15377 "this call, unlike with L</pwrite>, and this call always writes the full "
15378 "amount unless an error occurs."
15382 #: ../fish/guestfish-actions.pod:4833
15383 msgid "See also L</upload>, L</pwrite>."
15384 msgstr "Див. також L</upload>, L</pwrite>."
15387 #: ../fish/guestfish-actions.pod:4837
15392 #: ../fish/guestfish-actions.pod:4839
15395 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15400 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
15401 msgid "This command sets the timestamps of a file with nanosecond precision."
15405 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
15407 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15412 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
15414 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15415 "nanoseconds from the epoch."
15419 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
15421 "If the C<*nsecs> field contains the special value C<-1> then the "
15422 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15423 "ignored in this case)."
15427 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
15429 "If the C<*nsecs> field contains the special value C<-2> then the "
15430 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15435 #: ../fish/guestfish-actions.pod:4858
15440 #: ../fish/guestfish-actions.pod:4860
15450 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
15452 "Return the libguestfs version number that the program is linked against."
15456 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15458 "Note that because of dynamic linking this is not necessarily the version of "
15459 "libguestfs that you compiled against. You can compile the program, and then "
15460 "at runtime dynamically link against a completely different C<libguestfs.so> "
15465 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
15467 "This call was added in version C<1.0.58>. In previous versions of "
15468 "libguestfs there was no way to get the version number. From C code you can "
15469 "use dynamic linker functions to find out if this symbol exists (if it "
15470 "doesn't, then it's an earlier version)."
15474 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
15476 "The call returns a structure with four elements. The first three (C<major>, "
15477 "C<minor> and C<release>) are numbers and correspond to the usual version "
15478 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15479 "but may be used for distro-specific information."
15483 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
15485 "To construct the original version string: C<$major.$minor.$release$extra>"
15489 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
15490 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15494 #: ../fish/guestfish-actions.pod:4887
15496 "I<Note:> Don't use this call to test for availability of features. In "
15497 "enterprise distributions we backport features from later versions into "
15498 "earlier versions, making this an unreliable way to test for features. Use "
15499 "L</available> instead."
15503 #: ../fish/guestfish-actions.pod:4893
15508 #: ../fish/guestfish-actions.pod:4895
15511 " vfs-label device\n"
15514 " vfs-label пристрій\n"
15518 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
15519 msgid "This returns the filesystem label of the filesystem on C<device>."
15523 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
15524 msgid "If the filesystem is unlabeled, this returns the empty string."
15528 #: ../fish/guestfish-actions.pod:4902
15529 msgid "To find a filesystem from the label, use L</findfs-label>."
15533 #: ../fish/guestfish-actions.pod:4904
15538 #: ../fish/guestfish-actions.pod:4906
15541 " vfs-type device\n"
15544 " vfs-type пристрій\n"
15548 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
15550 "This command gets the filesystem type corresponding to the filesystem on "
15555 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
15557 "For most filesystems, the result is the name of the Linux VFS module which "
15558 "would be used to mount this filesystem if you mounted it without specifying "
15559 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15563 #: ../fish/guestfish-actions.pod:4916
15568 #: ../fish/guestfish-actions.pod:4918
15571 " vfs-uuid device\n"
15574 " vfs-uuid пристрій\n"
15578 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
15579 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15583 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
15584 msgid "If the filesystem does not have a UUID, this returns the empty string."
15588 #: ../fish/guestfish-actions.pod:4925
15589 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15593 #: ../fish/guestfish-actions.pod:4927
15594 msgid "vg-activate"
15595 msgstr "vg-activate"
15598 #: ../fish/guestfish-actions.pod:4929
15601 " vg-activate true|false 'volgroups ...'\n"
15606 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15608 "This command activates or (if C<activate> is false) deactivates all logical "
15609 "volumes in the listed volume groups C<volgroups>."
15613 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
15614 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15618 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
15620 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15621 "activated or deactivated."
15625 #: ../fish/guestfish-actions.pod:4939
15626 msgid "vg-activate-all"
15627 msgstr "vg-activate-all"
15630 #: ../fish/guestfish-actions.pod:4941
15633 " vg-activate-all true|false\n"
15636 " vg-activate-all true|false\n"
15640 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
15642 "This command activates or (if C<activate> is false) deactivates all logical "
15643 "volumes in all volume groups."
15647 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
15648 msgid "This command is the same as running C<vgchange -a y|n>"
15652 #: ../fish/guestfish-actions.pod:4948
15657 #: ../fish/guestfish-actions.pod:4950
15660 " vgcreate volgroup 'physvols ...'\n"
15665 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
15667 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15668 "of physical volumes C<physvols>."
15672 #: ../fish/guestfish-actions.pod:4955
15677 #: ../fish/guestfish-actions.pod:4957
15680 " vglvuuids vgname\n"
15685 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
15687 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15688 "volumes created in this volume group."
15692 #: ../fish/guestfish-actions.pod:4962
15694 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15695 "logical volumes and volume groups."
15699 #: ../fish/guestfish-actions.pod:4965
15700 msgid "See also L</vgpvuuids>."
15701 msgstr "Див. також L</vgpvuuids>."
15704 #: ../fish/guestfish-actions.pod:4967
15709 #: ../fish/guestfish-actions.pod:4969
15712 " vgpvuuids vgname\n"
15717 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
15719 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15720 "volumes that this volume group resides on."
15724 #: ../fish/guestfish-actions.pod:4974
15726 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15727 "physical volumes and volume groups."
15731 #: ../fish/guestfish-actions.pod:4977
15732 msgid "See also L</vglvuuids>."
15733 msgstr "Див. також L</vglvuuids>."
15736 #: ../fish/guestfish-actions.pod:4979
15741 #: ../fish/guestfish-actions.pod:4981
15744 " vgremove vgname\n"
15749 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
15750 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15754 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
15756 "This also forcibly removes all logical volumes in the volume group (if any)."
15760 #: ../fish/guestfish-actions.pod:4988
15765 #: ../fish/guestfish-actions.pod:4990
15768 " vgrename volgroup newvolgroup\n"
15773 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
15774 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15778 #: ../fish/guestfish-actions.pod:4994
15783 #: ../fish/guestfish-actions.pod:4996
15793 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
15795 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15800 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15802 "This returns a list of just the volume group names that were detected (eg. "
15807 #: ../fish/guestfish-actions.pod:5004
15808 msgid "See also L</vgs-full>."
15809 msgstr "Див. також L</vgs-full>."
15812 #: ../fish/guestfish-actions.pod:5006
15817 #: ../fish/guestfish-actions.pod:5008
15827 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15829 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15830 "> command. The \"full\" version includes all fields."
15834 #: ../fish/guestfish-actions.pod:5013
15839 #: ../fish/guestfish-actions.pod:5015
15849 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15851 "This rescans all block devices and rebuilds the list of LVM physical "
15852 "volumes, volume groups and logical volumes."
15856 #: ../fish/guestfish-actions.pod:5020
15861 #: ../fish/guestfish-actions.pod:5022
15869 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15870 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15874 #: ../fish/guestfish-actions.pod:5026
15879 #: ../fish/guestfish-actions.pod:5028
15889 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15891 "This command counts the characters in a file, using the C<wc -c> external "
15896 #: ../fish/guestfish-actions.pod:5033
15901 #: ../fish/guestfish-actions.pod:5035
15911 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15913 "This command counts the lines in a file, using the C<wc -l> external command."
15917 #: ../fish/guestfish-actions.pod:5040
15922 #: ../fish/guestfish-actions.pod:5042
15932 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15934 "This command counts the words in a file, using the C<wc -w> external command."
15938 #: ../fish/guestfish-actions.pod:5047
15943 #: ../fish/guestfish-actions.pod:5049
15946 " write path content\n"
15949 " write шлях дані\n"
15953 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15955 "This call creates a file called C<path>. The content of the file is the "
15956 "string C<content> (which can contain any 8 bit data)."
15960 #: ../fish/guestfish-actions.pod:5054
15961 msgid "See also L</write-append>."
15965 #: ../fish/guestfish-actions.pod:5059
15966 msgid "write-append"
15970 #: ../fish/guestfish-actions.pod:5061
15973 " write-append path content\n"
15978 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15980 "This call appends C<content> to the end of file C<path>. If C<path> does "
15981 "not exist, then a new file is created."
15985 #: ../fish/guestfish-actions.pod:5066
15986 msgid "See also L</write>."
15990 #: ../fish/guestfish-actions.pod:5071
15992 msgstr "write-file"
15995 #: ../fish/guestfish-actions.pod:5073
15998 " write-file path content size\n"
16003 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
16005 "This call creates a file called C<path>. The contents of the file is the "
16006 "string C<content> (which can contain any 8 bit data), with length C<size>."
16010 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
16012 "As a special case, if C<size> is C<0> then the length is calculated using "
16013 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16017 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
16019 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16020 "I<not> work, even if the length is specified."
16024 #: ../fish/guestfish-actions.pod:5089
16026 "I<This function is deprecated.> In new code, use the L</write> call instead."
16030 #: ../fish/guestfish-actions.pod:5096
16035 #: ../fish/guestfish-actions.pod:5098
16038 " zegrep regex path\n"
16041 " zegrep формальний_вираз шлях\n"
16045 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
16047 "This calls the external C<zegrep> program and returns the matching lines."
16051 #: ../fish/guestfish-actions.pod:5106
16056 #: ../fish/guestfish-actions.pod:5108
16059 " zegrepi regex path\n"
16064 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
16066 "This calls the external C<zegrep -i> program and returns the matching lines."
16070 #: ../fish/guestfish-actions.pod:5116
16075 #: ../fish/guestfish-actions.pod:5118
16085 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
16086 msgid "This command writes zeroes over the first few blocks of C<device>."
16090 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
16092 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16093 "securely wipe the device). It should be sufficient to remove any partition "
16094 "tables, filesystem superblocks and so on."
16098 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
16099 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
16101 "If blocks are already zero, then this command avoids writing zeroes. This "
16102 "prevents the underlying device from becoming non-sparse or growing "
16107 #: ../fish/guestfish-actions.pod:5130
16108 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16112 #: ../fish/guestfish-actions.pod:5133
16113 msgid "zero-device"
16114 msgstr "zero-device"
16117 #: ../fish/guestfish-actions.pod:5135
16120 " zero-device device\n"
16123 " zero-device пристрій\n"
16127 #: ../fish/guestfish-actions.pod:5137
16129 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16130 "which just zeroes the first few blocks of a device."
16134 #: ../fish/guestfish-actions.pod:5148
16139 #: ../fish/guestfish-actions.pod:5150
16142 " zerofree device\n"
16145 " zerofree пристрій\n"
16149 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
16151 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16152 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16153 "possible to compress the filesystem more effectively."
16157 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
16158 msgid "You should B<not> run this program if the filesystem is mounted."
16162 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
16164 "It is possible that using this program can damage the filesystem or data on "
16169 #: ../fish/guestfish-actions.pod:5163
16174 #: ../fish/guestfish-actions.pod:5165
16177 " zfgrep pattern path\n"
16180 " zfgrep шаблон шлях\n"
16184 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
16186 "This calls the external C<zfgrep> program and returns the matching lines."
16190 #: ../fish/guestfish-actions.pod:5173
16195 #: ../fish/guestfish-actions.pod:5175
16198 " zfgrepi pattern path\n"
16201 " zfgrepi шаблон шлях\n"
16205 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
16207 "This calls the external C<zfgrep -i> program and returns the matching lines."
16211 #: ../fish/guestfish-actions.pod:5183
16216 #: ../fish/guestfish-actions.pod:5185
16219 " zfile meth path\n"
16222 " zfile метод шлях\n"
16226 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
16228 "This command runs C<file> after first decompressing C<path> using C<method>."
16232 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
16233 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16237 #: ../fish/guestfish-actions.pod:5192
16239 "Since 1.0.63, use L</file> instead which can now process compressed files."
16243 #: ../fish/guestfish-actions.pod:5195
16245 "I<This function is deprecated.> In new code, use the L</file> call instead."
16249 #: ../fish/guestfish-actions.pod:5202
16254 #: ../fish/guestfish-actions.pod:5204
16257 " zgrep regex path\n"
16260 " zgrep формальний_вираз шлях\n"
16264 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
16266 "This calls the external C<zgrep> program and returns the matching lines."
16270 #: ../fish/guestfish-actions.pod:5212
16275 #: ../fish/guestfish-actions.pod:5214
16278 " zgrepi regex path\n"
16281 " zgrepi формальний_вираз шлях\n"
16285 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
16287 "This calls the external C<zgrep -i> program and returns the matching lines."
16291 #: ../fish/guestfish-commands.pod:1
16296 #: ../fish/guestfish-commands.pod:3
16301 #: ../fish/guestfish-commands.pod:5
16304 " alloc filename size\n"
16309 #: ../fish/guestfish-commands.pod:7
16311 "This creates an empty (zeroed) file of the given size, and then adds so it "
16312 "can be further examined."
16316 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16317 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16321 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16322 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16326 #: ../fish/guestfish-commands.pod:14
16328 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16329 "image, see L</PREPARED DISK IMAGES>."
16333 #: ../fish/guestfish-commands.pod:17
16338 #: ../fish/guestfish-commands.pod:19
16341 " copy-in local [local ...] /remotedir\n"
16346 #: ../fish/guestfish-commands.pod:21
16348 "C<copy-in> copies local files or directories recursively into the disk "
16349 "image, placing them in the directory called C</remotedir> (which must "
16350 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16351 "other commands as necessary."
16355 #: ../fish/guestfish-commands.pod:26
16357 "Multiple local files and directories can be specified, but the last "
16358 "parameter must always be a remote directory. Wildcards cannot be used."
16362 #: ../fish/guestfish-commands.pod:30
16367 #: ../fish/guestfish-commands.pod:32
16370 " copy-out remote [remote ...] localdir\n"
16375 #: ../fish/guestfish-commands.pod:34
16377 "C<copy-out> copies remote files or directories recursively out of the disk "
16378 "image, placing them on the host disk in a local directory called C<localdir> "
16379 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16380 "download>, L</tar-out> and other commands as necessary."
16384 #: ../fish/guestfish-commands.pod:40
16386 "Multiple remote files and directories can be specified, but the last "
16387 "parameter must always be a local directory. To download to the current "
16388 "directory, use C<.> as in:"
16392 #: ../fish/guestfish-commands.pod:44
16395 " copy-out /home .\n"
16398 " copy-out /home .\n"
16402 #: ../fish/guestfish-commands.pod:46
16404 "Wildcards cannot be used in the ordinary command, but you can use them with "
16405 "the help of L</glob> like this:"
16409 #: ../fish/guestfish-commands.pod:49
16412 " glob copy-out /home/* .\n"
16415 " glob copy-out /home/* .\n"
16419 #: ../fish/guestfish-commands.pod:51
16424 #: ../fish/guestfish-commands.pod:53
16427 " display filename\n"
16432 #: ../fish/guestfish-commands.pod:55
16434 "Use C<display> (a graphical display program) to display an image file. It "
16435 "downloads the file, and runs C<display> on it."
16439 #: ../fish/guestfish-commands.pod:58
16441 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16442 "environment variable. For example to use the GNOME display program:"
16446 #: ../fish/guestfish-commands.pod:61
16449 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16454 #: ../fish/guestfish-commands.pod:63
16455 msgid "See also L<display(1)>."
16459 #: ../fish/guestfish-commands.pod:65
16464 #: ../fish/guestfish-commands.pod:67
16467 " echo [params ...]\n"
16470 " echo [параметри...]\n"
16474 #: ../fish/guestfish-commands.pod:69
16475 msgid "This echos the parameters to the terminal."
16479 #: ../fish/guestfish-commands.pod:71
16484 #: ../fish/guestfish-commands.pod:73
16489 #: ../fish/guestfish-commands.pod:75
16494 #: ../fish/guestfish-commands.pod:77
16500 " edit назва_файла\n"
16504 #: ../fish/guestfish-commands.pod:79
16506 "This is used to edit a file. It downloads the file, edits it locally using "
16507 "your editor, then uploads the result."
16511 #: ../fish/guestfish-commands.pod:82
16513 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16514 "or C<emacs> you will get those corresponding editors."
16518 #: ../fish/guestfish-commands.pod:86
16523 #: ../fish/guestfish-commands.pod:88
16526 " glob command args...\n"
16529 " glob команда параметри...\n"
16533 #: ../fish/guestfish-commands.pod:90
16535 "Expand wildcards in any paths in the args list, and run C<command> "
16536 "repeatedly on each matching path."
16540 #: ../fish/guestfish-commands.pod:93
16541 msgid "See L</WILDCARDS AND GLOBBING>."
16542 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16545 #: ../fish/guestfish-commands.pod:95
16550 #: ../fish/guestfish-commands.pod:97
16553 " hexedit <filename|device>\n"
16554 " hexedit <filename|device> <max>\n"
16555 " hexedit <filename|device> <start> <max>\n"
16560 #: ../fish/guestfish-commands.pod:101
16562 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16567 #: ../fish/guestfish-commands.pod:104
16569 "This command works by downloading potentially the whole file or device, "
16570 "editing it locally, then uploading it. If the file or device is large, you "
16571 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16572 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
16573 "usual modifiers allowed such as C<1M> (1 megabyte)."
16577 #: ../fish/guestfish-commands.pod:111
16578 msgid "For example to edit the first few sectors of a disk you might do:"
16582 #: ../fish/guestfish-commands.pod:114
16585 " hexedit /dev/sda 1M\n"
16588 " hexedit /dev/sda 1M\n"
16592 #: ../fish/guestfish-commands.pod:116
16594 "which would allow you to edit anywhere within the first megabyte of the disk."
16598 #: ../fish/guestfish-commands.pod:119
16599 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16603 #: ../fish/guestfish-commands.pod:121
16606 " hexedit /dev/sda1 0x400 0x400\n"
16609 " hexedit /dev/sda1 0x400 0x400\n"
16613 #: ../fish/guestfish-commands.pod:123
16614 msgid "(assuming the superblock is in the standard location)."
16618 #: ../fish/guestfish-commands.pod:125
16620 "This command requires the external L<hexedit(1)> program. You can specify "
16621 "another program to use by setting the C<HEXEDITOR> environment variable."
16625 #: ../fish/guestfish-commands.pod:129
16626 msgid "See also L</hexdump>."
16627 msgstr "Див. також L</hexdump>."
16630 #: ../fish/guestfish-commands.pod:131
16635 #: ../fish/guestfish-commands.pod:133
16643 #: ../fish/guestfish-commands.pod:135
16645 "Change the local directory, ie. the current directory of guestfish itself."
16649 #: ../fish/guestfish-commands.pod:138
16650 msgid "Note that C<!cd> won't do what you might expect."
16654 #: ../fish/guestfish-commands.pod:140
16659 #: ../fish/guestfish-commands.pod:142
16664 #: ../fish/guestfish-commands.pod:144
16674 #: ../fish/guestfish-commands.pod:146
16675 msgid "Opens the manual page for guestfish."
16679 #: ../fish/guestfish-commands.pod:148
16684 #: ../fish/guestfish-commands.pod:150
16689 #: ../fish/guestfish-commands.pod:152
16697 #: ../fish/guestfish-commands.pod:154
16705 #: ../fish/guestfish-commands.pod:156
16706 msgid "This is used to view a file."
16710 #: ../fish/guestfish-commands.pod:158
16712 "The default viewer is C<$PAGER>. However if you use the alternate command "
16713 "C<less> you will get the C<less> command specifically."
16717 #: ../fish/guestfish-commands.pod:161
16722 #: ../fish/guestfish-commands.pod:163
16730 #: ../fish/guestfish-commands.pod:165
16732 "Close and reopen the libguestfs handle. It is not necessary to use this "
16733 "normally, because the handle is closed properly when guestfish exits. "
16734 "However this is occasionally useful for testing."
16738 #: ../fish/guestfish-commands.pod:169
16743 #: ../fish/guestfish-commands.pod:171
16746 " setenv VAR value\n"
16751 #: ../fish/guestfish-commands.pod:173
16752 msgid "Set the environment variable C<VAR> to the string C<value>."
16756 #: ../fish/guestfish-commands.pod:175
16758 "To print the value of an environment variable use a shell command such as:"
16762 #: ../fish/guestfish-commands.pod:178
16770 #: ../fish/guestfish-commands.pod:180
16775 #: ../fish/guestfish-commands.pod:182
16778 " sparse filename size\n"
16783 #: ../fish/guestfish-commands.pod:184
16785 "This creates an empty sparse file of the given size, and then adds so it can "
16786 "be further examined."
16790 #: ../fish/guestfish-commands.pod:187
16792 "In all respects it works the same as the L</alloc> command, except that the "
16793 "image file is allocated sparsely, which means that disk blocks are not "
16794 "assigned to the file until they are needed. Sparse disk files only use "
16795 "space when written to, but they are slower and there is a danger you could "
16796 "run out of real disk space during a write operation."
16800 #: ../fish/guestfish-commands.pod:197
16805 #: ../fish/guestfish-commands.pod:199
16815 #: ../fish/guestfish-commands.pod:201
16817 "This command returns a list of the optional groups known to the daemon, and "
16818 "indicates which ones are supported by this build of the libguestfs appliance."
16822 #: ../fish/guestfish-commands.pod:205
16823 msgid "See also L<guestfs(3)/AVAILABILITY>."
16827 #: ../fish/guestfish-commands.pod:207
16832 #: ../fish/guestfish-commands.pod:209
16835 " time command args...\n"
16840 #: ../fish/guestfish-commands.pod:211
16842 "Run the command as usual, but print the elapsed time afterwards. This can "
16843 "be useful for benchmarking operations."
16847 #: ../fish/guestfish-commands.pod:214
16852 #: ../fish/guestfish-commands.pod:216
16860 #: ../fish/guestfish-commands.pod:218
16861 msgid "Remove C<VAR> from the environment."
16865 #: ../fish/guestfish.pod:5
16866 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16870 #: ../fish/guestfish.pod:9
16873 " guestfish [--options] [commands]\n"
16878 #: ../fish/guestfish.pod:11
16886 #: ../fish/guestfish.pod:13
16889 " guestfish [--ro|--rw] -a disk.img\n"
16894 #: ../fish/guestfish.pod:15
16897 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16902 #: ../fish/guestfish.pod:17
16905 " guestfish -d libvirt-domain\n"
16910 #: ../fish/guestfish.pod:19
16913 " guestfish [--ro|--rw] -a disk.img -i\n"
16918 #: ../fish/guestfish.pod:21
16921 " guestfish -d libvirt-domain -i\n"
16926 #: ../fish/guestfish.pod:25
16928 "Using guestfish in read/write mode on live virtual machines can be "
16929 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
16930 "option to use guestfish safely if the disk image or virtual machine might be "
16935 #: ../fish/guestfish.pod:32
16937 "Guestfish is a shell and command-line tool for examining and modifying "
16938 "virtual machine filesystems. It uses libguestfs and exposes all of the "
16939 "functionality of the guestfs API, see L<guestfs(3)>."
16943 #: ../fish/guestfish.pod:36
16945 "Guestfish gives you structured access to the libguestfs API, from shell "
16946 "scripts or the command line or interactively. If you want to rescue a "
16947 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16952 #: ../fish/guestfish.pod:43
16953 msgid "As an interactive shell"
16957 #: ../fish/guestfish.pod:45
16965 #: ../fish/guestfish.pod:47
16968 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16969 " editing virtual machine filesystems.\n"
16974 #: ../fish/guestfish.pod:50
16977 " Type: 'help' for a list of commands\n"
16978 " 'man' to read the manual\n"
16979 " 'quit' to quit the shell\n"
16984 #: ../fish/guestfish.pod:54
16987 " ><fs> add-ro disk.img\n"
16989 " ><fs> list-filesystems\n"
16990 " /dev/sda1: ext4\n"
16991 " /dev/vg_guest/lv_root: ext4\n"
16992 " /dev/vg_guest/lv_swap: swap\n"
16993 " ><fs> mount /dev/vg_guest/lv_root /\n"
16994 " ><fs> cat /etc/fstab\n"
16996 " # Created by anaconda\n"
17003 #: ../fish/guestfish.pod:67
17004 msgid "From shell scripts"
17008 #: ../fish/guestfish.pod:69
17009 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17013 #: ../fish/guestfish.pod:71
17016 " guestfish <<_EOF_\n"
17019 " mount /dev/vg_guest/lv_root /\n"
17020 " write /etc/motd \"Welcome, new users\"\n"
17026 #: ../fish/guestfish.pod:78
17027 msgid "List the LVM logical volumes in a disk image:"
17031 #: ../fish/guestfish.pod:80
17034 " guestfish -a disk.img --ro <<_EOF_\n"
17042 #: ../fish/guestfish.pod:85
17043 msgid "List all the filesystems in a disk image:"
17047 #: ../fish/guestfish.pod:87
17050 " guestfish -a disk.img --ro <<_EOF_\n"
17052 " list-filesystems\n"
17058 #: ../fish/guestfish.pod:92
17059 msgid "On one command line"
17063 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17064 msgid "Update C</etc/resolv.conf> in a guest:"
17068 #: ../fish/guestfish.pod:96
17072 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17073 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17078 #: ../fish/guestfish.pod:100
17079 msgid "Edit C</boot/grub/grub.conf> interactively:"
17083 #: ../fish/guestfish.pod:102
17086 " guestfish --rw --add disk.img \\\n"
17087 " --mount /dev/vg_guest/lv_root \\\n"
17088 " --mount /dev/sda1:/boot \\\n"
17089 " edit /boot/grub/grub.conf\n"
17094 #: ../fish/guestfish.pod:107
17095 msgid "Mount disks automatically"
17099 #: ../fish/guestfish.pod:109
17101 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17105 #: ../fish/guestfish.pod:112
17108 " guestfish --ro -a disk.img -i cat /etc/group\n"
17113 #: ../fish/guestfish.pod:114
17116 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17121 #: ../fish/guestfish.pod:116
17122 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17126 #: ../fish/guestfish.pod:118
17129 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17134 #: ../fish/guestfish.pod:120
17135 msgid "As a script interpreter"
17139 #: ../fish/guestfish.pod:122
17140 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17144 #: ../fish/guestfish.pod:124
17147 " #!/usr/bin/guestfish -f\n"
17148 " sparse test1.img 100M\n"
17150 " part-disk /dev/sda mbr\n"
17151 " mkfs ext2 /dev/sda1\n"
17156 #: ../fish/guestfish.pod:130
17157 msgid "Start with a prepared disk"
17161 #: ../fish/guestfish.pod:132
17163 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17164 "single ext2-formatted partition:"
17168 #: ../fish/guestfish.pod:135
17171 " guestfish -N fs\n"
17176 #: ../fish/guestfish.pod:137
17177 msgid "To list what is available do:"
17181 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17184 " guestfish -N help | less\n"
17189 #: ../fish/guestfish.pod:141
17190 msgid "Remote control"
17191 msgstr "Дистанційне керування"
17194 #: ../fish/guestfish.pod:143
17197 " eval \"`guestfish --listen`\"\n"
17198 " guestfish --remote add-ro disk.img\n"
17199 " guestfish --remote run\n"
17200 " guestfish --remote lvs\n"
17203 " eval \"`guestfish --listen`\"\n"
17204 " guestfish --remote add-ro disk.img\n"
17205 " guestfish --remote run\n"
17206 " guestfish --remote lvs\n"
17210 #: ../fish/guestfish.pod:154
17211 msgid "Displays general help on options."
17215 #: ../fish/guestfish.pod:158
17216 msgid "B<--cmd-help>"
17217 msgstr "B<--cmd-help>"
17220 #: ../fish/guestfish.pod:160
17221 msgid "Lists all available guestfish commands."
17225 #: ../fish/guestfish.pod:162
17227 msgstr "B<-h команда>"
17230 #: ../fish/guestfish.pod:164
17231 msgid "B<--cmd-help cmd>"
17232 msgstr "B<--cmd-help команда>"
17235 #: ../fish/guestfish.pod:166
17236 msgid "Displays detailed help on a single command C<cmd>."
17240 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17241 msgid "B<-a image>"
17242 msgstr "B<-a образ>"
17245 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17246 msgid "B<--add image>"
17247 msgstr "B<--add образ>"
17250 #: ../fish/guestfish.pod:172
17251 msgid "Add a block device or virtual machine image to the shell."
17255 #: ../fish/guestfish.pod:177
17257 "Using this flag is mostly equivalent to using the C<add> command, with "
17258 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17259 "the I<--format=...> flag was given."
17263 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17265 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17266 "URI to use. The default is to use the default libvirt connection."
17270 #: ../fish/guestfish.pod:189
17275 #: ../fish/guestfish.pod:191
17277 "If using the I<--listen> option and a csh-like shell, use this option. See "
17278 "section L</REMOTE CONTROL AND CSH> below."
17282 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17283 msgid "B<-d libvirt-domain>"
17284 msgstr "B<-d домен-libvirt>"
17287 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17288 msgid "B<--domain libvirt-domain>"
17289 msgstr "B<--domain домен-libvirt>"
17292 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17294 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17295 "used, then any libvirt domain can be used. However in write mode, only "
17296 "libvirt domains which are shut down can be named here."
17300 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17301 msgid "Domain UUIDs can be used instead of names."
17305 #: ../fish/guestfish.pod:204
17307 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17308 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17309 "if the I<--format:...> flag was given."
17313 #: ../fish/guestfish.pod:208
17318 #: ../fish/guestfish.pod:210
17319 msgid "B<--no-dest-paths>"
17320 msgstr "B<--no-dest-paths>"
17323 #: ../fish/guestfish.pod:212
17325 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17326 "to hit the tab key to complete paths on the guest filesystem, but this "
17327 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17328 "allow this feature to be disabled."
17332 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17334 "When prompting for keys and passphrases, guestfish normally turns echoing "
17335 "off so you cannot see what you are typing. If you are not worried about "
17336 "Tempest attacks and there is no one else in the room you can specify this "
17337 "flag to see what you are typing."
17341 #: ../fish/guestfish.pod:224
17343 msgstr "B<-f файл>"
17346 #: ../fish/guestfish.pod:226
17347 msgid "B<--file file>"
17348 msgstr "B<--file файл>"
17351 #: ../fish/guestfish.pod:228
17352 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17356 #: ../fish/guestfish.pod:231
17359 " #!/usr/bin/guestfish -f\n"
17362 " #!/usr/bin/guestfish -f\n"
17366 #: ../fish/guestfish.pod:244
17369 " guestfish --format=raw -a disk.img\n"
17372 " guestfish --format=raw -a disk.img\n"
17376 #: ../fish/guestfish.pod:248
17379 " guestfish --format=raw -a disk.img --format -a another.img\n"
17382 " guestfish --format=raw -a disk.img --format -a another.img\n"
17386 #: ../fish/guestfish.pod:253
17388 "If you have untrusted raw-format guest disk images, you should use this "
17389 "option to specify the disk format. This avoids a possible security problem "
17390 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17394 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17395 msgid "B<--inspector>"
17396 msgstr "B<--inspector>"
17399 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17401 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17402 "system and mount filesystems as they would be mounted on the real virtual "
17407 #: ../fish/guestfish.pod:266
17408 msgid "Typical usage is either:"
17412 #: ../fish/guestfish.pod:268
17415 " guestfish -d myguest -i\n"
17418 " guestfish -d myguest -i\n"
17422 #: ../fish/guestfish.pod:270
17423 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17427 #: ../fish/guestfish.pod:272
17430 " guestfish --ro -d myguest -i\n"
17433 " guestfish --ro -d myguest -i\n"
17437 #: ../fish/guestfish.pod:274
17438 msgid "(for active domains, readonly), or specify the block device directly:"
17442 #: ../fish/guestfish.pod:276
17445 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17448 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17452 #: ../fish/guestfish.pod:278
17454 "Note that the command line syntax changed slightly over older versions of "
17455 "guestfish. You can still use the old syntax:"
17459 #: ../fish/guestfish.pod:281
17462 " guestfish [--ro] -i disk.img\n"
17465 " guestfish [--ro] -i disk.img\n"
17469 #: ../fish/guestfish.pod:283
17472 " guestfish [--ro] -i libvirt-domain\n"
17477 #: ../fish/guestfish.pod:285
17479 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17480 "then using other commands to mount the filesystems that were found."
17484 #: ../fish/guestfish.pod:294
17485 msgid "B<--listen>"
17486 msgstr "B<--listen>"
17489 #: ../fish/guestfish.pod:296
17491 "Fork into the background and listen for remote commands. See section L</"
17492 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17496 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17501 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17503 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17504 "ATTACHING TO RUNNING DAEMONS>)."
17508 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17509 msgid "B<-m dev[:mountpoint[:options]]>"
17513 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17514 msgid "B<--mount dev[:mountpoint[:options]]>"
17518 #: ../fish/guestfish.pod:308
17519 msgid "Mount the named partition or logical volume on the given mountpoint."
17523 #: ../fish/guestfish.pod:310
17524 msgid "If the mountpoint is omitted, it defaults to C</>."
17528 #: ../fish/guestfish.pod:312
17529 msgid "You have to mount something on C</> before most commands will work."
17533 #: ../fish/guestfish.pod:314
17535 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17540 #: ../fish/guestfish.pod:317
17542 "If you don't know what filesystems a disk image contains, you can either run "
17543 "guestfish without this option, then list the partitions, filesystems and LVs "
17544 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17545 "commands), or you can use the L<virt-filesystems(1)> program."
17549 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17551 "The third (and rarely used) part of the mount parameter is the list of mount "
17552 "options used to mount the underlying filesystem. If this is not given, then "
17553 "the mount options are either the empty string or C<ro> (the latter if the "
17554 "I<--ro> flag is used). By specifying the mount options, you override this "
17555 "default choice. Probably the only time you would use this is to enable ACLs "
17556 "and/or extended attributes if the filesystem can support them:"
17560 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17563 " -m /dev/sda1:/:acl,user_xattr\n"
17568 #: ../fish/guestfish.pod:333
17569 msgid "Using this flag is equivalent to using the C<mount-options> command."
17573 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17574 #: ../resize/virt-resize.pod:352
17579 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17580 msgid "B<--no-sync>"
17581 msgstr "B<--no-sync>"
17584 #: ../fish/guestfish.pod:339
17586 "Disable autosync. This is enabled by default. See the discussion of "
17587 "autosync in the L<guestfs(3)> manpage."
17591 #: ../fish/guestfish.pod:342
17596 #: ../fish/guestfish.pod:344
17597 msgid "B<--new type>"
17598 msgstr "B<--new тип>"
17601 #: ../fish/guestfish.pod:346
17603 msgstr "B<-N help>"
17606 #: ../fish/guestfish.pod:348
17608 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
17609 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17610 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
17615 #: ../fish/guestfish.pod:353
17616 msgid "B<--progress-bars>"
17617 msgstr "B<--progress-bars>"
17620 #: ../fish/guestfish.pod:355
17621 msgid "Enable progress bars, even when guestfish is used non-interactively."
17625 #: ../fish/guestfish.pod:357
17627 "Progress bars are enabled by default when guestfish is used as an "
17628 "interactive shell."
17632 #: ../fish/guestfish.pod:360
17633 msgid "B<--no-progress-bars>"
17634 msgstr "B<--no-progress-bars>"
17637 #: ../fish/guestfish.pod:362
17638 msgid "Disable progress bars."
17642 #: ../fish/guestfish.pod:364
17643 msgid "B<--remote[=pid]>"
17644 msgstr "B<--remote[=pid]>"
17647 #: ../fish/guestfish.pod:366
17649 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
17650 "CONTROL GUESTFISH OVER A SOCKET> below."
17654 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17655 #: ../rescue/virt-rescue.pod:161
17660 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17661 #: ../rescue/virt-rescue.pod:163
17666 #: ../fish/guestfish.pod:373
17668 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17669 "mounts are done read-only."
17673 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17675 "The option must always be used if the disk image or virtual machine might be "
17676 "running, and is generally recommended in cases where you don't need write "
17677 "access to the disk."
17681 #: ../fish/guestfish.pod:380
17683 "Note that prepared disk images created with I<-N> are not affected by this "
17684 "option. Also commands like C<add> are not affected - you have to specify "
17685 "the C<readonly:true> option explicitly if you need it."
17689 #: ../fish/guestfish.pod:384
17690 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17694 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17695 #: ../rescue/virt-rescue.pod:173
17696 msgid "B<--selinux>"
17697 msgstr "B<--selinux>"
17700 #: ../fish/guestfish.pod:388
17701 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
17705 #: ../fish/guestfish.pod:394
17707 "Enable very verbose messages. This is particularly useful if you find a bug."
17711 #: ../fish/guestfish.pod:401
17712 msgid "Display the guestfish / libguestfs version number and exit."
17716 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17717 #: ../rescue/virt-rescue.pod:190
17722 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17723 #: ../rescue/virt-rescue.pod:192
17728 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17730 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17731 "mounts are done read-write."
17735 #: ../fish/guestfish.pod:410
17736 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17740 #: ../fish/guestfish.pod:414
17741 msgid "Echo each command before executing it."
17745 #: ../fish/guestfish.pod:418
17746 msgid "COMMANDS ON COMMAND LINE"
17750 #: ../fish/guestfish.pod:420
17752 "Any additional (non-option) arguments are treated as commands to execute."
17756 #: ../fish/guestfish.pod:423
17758 "Commands to execute should be separated by a colon (C<:>), where the colon "
17759 "is a separate parameter. Thus:"
17763 #: ../fish/guestfish.pod:426
17766 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17771 #: ../fish/guestfish.pod:428
17773 "If there are no additional arguments, then we enter a shell, either an "
17774 "interactive shell with a prompt (if the input is a terminal) or a non-"
17775 "interactive shell."
17779 #: ../fish/guestfish.pod:432
17781 "In either command line mode or non-interactive shell, the first command that "
17782 "gives an error causes the whole shell to exit. In interactive mode (with a "
17783 "prompt) if a command fails, you can continue to enter commands."
17787 #: ../fish/guestfish.pod:437
17788 msgid "USING launch (OR run)"
17792 #: ../fish/guestfish.pod:439
17794 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17795 "then launch it, then mount any disks you need, and finally issue actions/"
17796 "commands. So the general order of the day is:"
17800 #: ../fish/guestfish.pod:447
17801 msgid "add or -a/--add"
17805 #: ../fish/guestfish.pod:451
17806 msgid "launch (aka run)"
17810 #: ../fish/guestfish.pod:455
17811 msgid "mount or -m/--mount"
17815 #: ../fish/guestfish.pod:459
17816 msgid "any other commands"
17820 #: ../fish/guestfish.pod:463
17822 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
17823 "guest before mounting or performing any other commands."
17827 #: ../fish/guestfish.pod:466
17829 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17830 "I<--new> options were given then C<run> is done automatically, simply "
17831 "because guestfish can't perform the action you asked for without doing this."
17835 #: ../fish/guestfish.pod:471
17836 msgid "OPENING DISKS FOR READ AND WRITE"
17840 #: ../fish/guestfish.pod:473
17842 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17843 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17844 "I<-i> and I<-m> open disk images read-only or for writing."
17848 #: ../fish/guestfish.pod:478
17850 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17851 "opening disk images supplied on the command line for write. To open a disk "
17852 "image read-only you have to do I<-a image --ro>."
17856 #: ../fish/guestfish.pod:482
17858 "This matters: If you accidentally open a live VM disk image writable then "
17859 "you will cause irreversible disk corruption."
17863 #: ../fish/guestfish.pod:485
17865 "In a future libguestfs we intend to change the default the other way. Disk "
17866 "images will be opened read-only. You will have to either specify "
17867 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17868 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17869 "access for disk images specified by those other command line options."
17873 #: ../fish/guestfish.pod:492
17875 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17876 "which does nothing (it is already the default). However it is highly "
17877 "recommended that you use this option to indicate that you need write access, "
17878 "and prepare your scripts for the day when this option will be required for "
17883 #: ../fish/guestfish.pod:498
17885 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17886 "other libguestfs program apart from guestfish and guestmount."
17890 #: ../fish/guestfish.pod:501
17895 #: ../fish/guestfish.pod:503
17897 "You can quote ordinary parameters using either single or double quotes. For "
17902 #: ../fish/guestfish.pod:506
17905 " add \"file with a space.img\"\n"
17910 #: ../fish/guestfish.pod:508
17913 " rm '/file name'\n"
17918 #: ../fish/guestfish.pod:510
17926 #: ../fish/guestfish.pod:512
17928 "A few commands require a list of strings to be passed. For these, use a "
17929 "whitespace-separated list, enclosed in quotes. Strings containing "
17930 "whitespace to be passed through must be enclosed in single quotes. A "
17931 "literal single quote must be escaped with a backslash."
17935 #: ../fish/guestfish.pod:517
17938 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17939 " command \"/bin/echo 'foo bar'\"\n"
17940 " command \"/bin/echo \\'foo\\'\"\n"
17945 #: ../fish/guestfish.pod:521
17946 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17950 #: ../fish/guestfish.pod:523
17952 "In double-quoted arguments (only) use backslash to insert special characters:"
17956 #: ../fish/guestfish.pod:528
17961 #: ../fish/guestfish.pod:530
17962 msgid "Alert (bell) character."
17966 #: ../fish/guestfish.pod:532
17971 #: ../fish/guestfish.pod:534
17972 msgid "Backspace character."
17976 #: ../fish/guestfish.pod:536
17981 #: ../fish/guestfish.pod:538
17982 msgid "Form feed character."
17986 #: ../fish/guestfish.pod:540
17991 #: ../fish/guestfish.pod:542
17992 msgid "Newline character."
17996 #: ../fish/guestfish.pod:544
18001 #: ../fish/guestfish.pod:546
18002 msgid "Carriage return character."
18006 #: ../fish/guestfish.pod:548
18011 #: ../fish/guestfish.pod:550
18012 msgid "Horizontal tab character."
18016 #: ../fish/guestfish.pod:552
18021 #: ../fish/guestfish.pod:554
18022 msgid "Vertical tab character."
18026 #: ../fish/guestfish.pod:556
18031 #: ../fish/guestfish.pod:558
18032 msgid "A literal double quote character."
18036 #: ../fish/guestfish.pod:560
18041 #: ../fish/guestfish.pod:562
18043 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18048 #: ../fish/guestfish.pod:565
18053 #: ../fish/guestfish.pod:567
18055 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18059 #: ../fish/guestfish.pod:570
18061 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18066 #: ../fish/guestfish.pod:573
18071 #: ../fish/guestfish.pod:575
18072 msgid "A literal backslash character."
18076 #: ../fish/guestfish.pod:579
18077 msgid "OPTIONAL ARGUMENTS"
18081 #: ../fish/guestfish.pod:581
18083 "Some commands take optional arguments. These arguments appear in this "
18084 "documentation as C<[argname:..]>. You can use them as in these examples:"
18088 #: ../fish/guestfish.pod:585
18091 " add-drive-opts filename\n"
18096 #: ../fish/guestfish.pod:587
18099 " add-drive-opts filename readonly:true\n"
18104 #: ../fish/guestfish.pod:589
18107 " add-drive-opts filename format:qcow2 readonly:false\n"
18112 #: ../fish/guestfish.pod:591
18114 "Each optional argument can appear at most once. All optional arguments must "
18115 "appear after the required ones."
18119 #: ../fish/guestfish.pod:594
18124 #: ../fish/guestfish.pod:596
18126 "This section applies to all commands which can take integers as parameters."
18130 #: ../fish/guestfish.pod:599
18131 msgid "SIZE SUFFIX"
18135 #: ../fish/guestfish.pod:601
18137 "When the command takes a parameter measured in bytes, you can use one of the "
18138 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18142 #: ../fish/guestfish.pod:607
18143 msgid "B<k> or B<K> or B<KiB>"
18144 msgstr "B<k>, B<K> або B<KiB>"
18147 #: ../fish/guestfish.pod:609
18148 msgid "The size in kilobytes (multiplied by 1024)."
18152 #: ../fish/guestfish.pod:611
18157 #: ../fish/guestfish.pod:613
18158 msgid "The size in SI 1000 byte units."
18162 #: ../fish/guestfish.pod:615
18163 msgid "B<M> or B<MiB>"
18164 msgstr "B<M> або B<MiB>"
18167 #: ../fish/guestfish.pod:617
18168 msgid "The size in megabytes (multiplied by 1048576)."
18172 #: ../fish/guestfish.pod:619
18177 #: ../fish/guestfish.pod:621
18178 msgid "The size in SI 1000000 byte units."
18182 #: ../fish/guestfish.pod:623
18183 msgid "B<G> or B<GiB>"
18184 msgstr "B<G> або B<GiB>"
18187 #: ../fish/guestfish.pod:625
18188 msgid "The size in gigabytes (multiplied by 2**30)."
18189 msgstr "Розмір у гігабайтах (з множником 2**30)."
18192 #: ../fish/guestfish.pod:627
18197 #: ../fish/guestfish.pod:629
18198 msgid "The size in SI 10**9 byte units."
18199 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18202 #: ../fish/guestfish.pod:631
18203 msgid "B<T> or B<TiB>"
18204 msgstr "B<T> або B<TiB>"
18207 #: ../fish/guestfish.pod:633
18208 msgid "The size in terabytes (multiplied by 2**40)."
18209 msgstr "Розмір у терабайтах (з множником 2**40)."
18212 #: ../fish/guestfish.pod:635
18217 #: ../fish/guestfish.pod:637
18218 msgid "The size in SI 10**12 byte units."
18222 #: ../fish/guestfish.pod:639
18223 msgid "B<P> or B<PiB>"
18224 msgstr "B<P> або B<PiB>"
18227 #: ../fish/guestfish.pod:641
18228 msgid "The size in petabytes (multiplied by 2**50)."
18232 #: ../fish/guestfish.pod:643
18237 #: ../fish/guestfish.pod:645
18238 msgid "The size in SI 10**15 byte units."
18242 #: ../fish/guestfish.pod:647
18243 msgid "B<E> or B<EiB>"
18244 msgstr "B<E> або B<EiB>"
18247 #: ../fish/guestfish.pod:649
18248 msgid "The size in exabytes (multiplied by 2**60)."
18252 #: ../fish/guestfish.pod:651
18257 #: ../fish/guestfish.pod:653
18258 msgid "The size in SI 10**18 byte units."
18262 #: ../fish/guestfish.pod:655
18263 msgid "B<Z> or B<ZiB>"
18264 msgstr "B<Z> або B<ZiB>"
18267 #: ../fish/guestfish.pod:657
18268 msgid "The size in zettabytes (multiplied by 2**70)."
18272 #: ../fish/guestfish.pod:659
18277 #: ../fish/guestfish.pod:661
18278 msgid "The size in SI 10**21 byte units."
18282 #: ../fish/guestfish.pod:663
18283 msgid "B<Y> or B<YiB>"
18284 msgstr "B<Y> або B<YiB>"
18287 #: ../fish/guestfish.pod:665
18288 msgid "The size in yottabytes (multiplied by 2**80)."
18292 #: ../fish/guestfish.pod:667
18297 #: ../fish/guestfish.pod:669
18298 msgid "The size in SI 10**24 byte units."
18302 #: ../fish/guestfish.pod:675
18305 " truncate-size /file 1G\n"
18310 #: ../fish/guestfish.pod:677
18311 msgid "would truncate the file to 1 gigabyte."
18315 #: ../fish/guestfish.pod:679
18317 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18318 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18319 "suffix will probably not do what you expect."
18323 #: ../fish/guestfish.pod:683
18324 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18328 #: ../fish/guestfish.pod:685
18330 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18331 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18335 #: ../fish/guestfish.pod:688
18338 " 1234 decimal number 1234\n"
18339 " 02322 octal number, equivalent to decimal 1234\n"
18340 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18345 #: ../fish/guestfish.pod:692
18347 "When using the C<chmod> command, you almost always want to specify an octal "
18348 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18349 "L<chmod(1)> program):"
18353 #: ../fish/guestfish.pod:696
18356 " chmod 0777 /public # OK\n"
18357 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18362 #: ../fish/guestfish.pod:699
18364 "Commands that return numbers usually print them in decimal, but some "
18365 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18366 "octal, preceeded by C<0>)."
18370 #: ../fish/guestfish.pod:703
18371 msgid "WILDCARDS AND GLOBBING"
18375 #: ../fish/guestfish.pod:705
18377 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18378 "(globbing) by default. So for example the following will not do what you "
18383 #: ../fish/guestfish.pod:709
18391 #: ../fish/guestfish.pod:711
18393 "Assuming you don't have a directory called literally C</home/*> then the "
18394 "above command will return an error."
18398 #: ../fish/guestfish.pod:714
18399 msgid "To perform wildcard expansion, use the C<glob> command."
18403 #: ../fish/guestfish.pod:716
18406 " glob rm-rf /home/*\n"
18411 #: ../fish/guestfish.pod:718
18413 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18414 "many times), equivalent to:"
18418 #: ../fish/guestfish.pod:721
18421 " rm-rf /home/jim\n"
18422 " rm-rf /home/joe\n"
18423 " rm-rf /home/mary\n"
18428 #: ../fish/guestfish.pod:725
18429 msgid "C<glob> only works on simple guest paths and not on device names."
18433 #: ../fish/guestfish.pod:727
18435 "If you have several parameters, each containing a wildcard, then glob will "
18436 "perform a Cartesian product."
18440 #: ../fish/guestfish.pod:730
18445 #: ../fish/guestfish.pod:732
18447 "Any line which starts with a I<#> character is treated as a comment and "
18448 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18449 "a command. For example:"
18453 #: ../fish/guestfish.pod:736
18456 " # this is a comment\n"
18457 " # this is a comment\n"
18458 " foo # NOT a comment\n"
18463 #: ../fish/guestfish.pod:740
18464 msgid "Blank lines are also ignored."
18468 #: ../fish/guestfish.pod:742
18469 msgid "RUNNING COMMANDS LOCALLY"
18473 #: ../fish/guestfish.pod:744
18475 "Any line which starts with a I<!> character is treated as a command sent to "
18476 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18480 #: ../fish/guestfish.pod:748
18484 " tgz-out /remote local/remote-data.tar.gz\n"
18489 #: ../fish/guestfish.pod:751
18491 "will create a directory C<local> on the host, and then export the contents "
18492 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18493 "(See C<tgz-out>)."
18497 #: ../fish/guestfish.pod:755
18499 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18500 "effect, due to the way that subprocesses work in Unix."
18504 #: ../fish/guestfish.pod:758
18505 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18509 #: ../fish/guestfish.pod:760
18511 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18512 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18513 "and executed as guestfish commands."
18517 #: ../fish/guestfish.pod:764
18519 "Thus you can use shell script to construct arbitrary guestfish commands "
18520 "which are then parsed by guestfish."
18524 #: ../fish/guestfish.pod:767
18526 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18527 "through C</foo.100>) using guestfish commands alone. However this is simple "
18528 "if we use a shell script to create the guestfish commands for us:"
18532 #: ../fish/guestfish.pod:772
18535 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18540 #: ../fish/guestfish.pod:774
18541 msgid "or with names like C</foo.001>:"
18545 #: ../fish/guestfish.pod:776
18548 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18553 #: ../fish/guestfish.pod:778
18555 "When using guestfish interactively it can be helpful to just run the shell "
18556 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18557 "ordinary I<!> local command), see what guestfish commands it would run, and "
18558 "when you are happy with those prepend the C<E<lt>> character to run the "
18559 "guestfish commands for real."
18563 #: ../fish/guestfish.pod:784
18568 #: ../fish/guestfish.pod:786
18570 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18571 "command (a guestfish command) to the second command (any host command). For "
18576 #: ../fish/guestfish.pod:790
18579 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18584 #: ../fish/guestfish.pod:792
18586 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18587 "program). The above command would list all accounts in the guest filesystem "
18588 "which have UID 0, ie. root accounts including backdoors. Other examples:"
18592 #: ../fish/guestfish.pod:797
18595 " hexdump /bin/ls | head\n"
18596 " list-devices | tail -1\n"
18597 " tgz-out / - | tar ztf -\n"
18602 #: ../fish/guestfish.pod:801
18604 "The space before the pipe symbol is required, any space after the pipe "
18605 "symbol is optional. Everything after the pipe symbol is just passed "
18606 "straight to the host shell, so it can contain redirections, globs and "
18607 "anything else that makes sense on the host side."
18611 #: ../fish/guestfish.pod:806
18613 "To use a literal argument which begins with a pipe symbol, you have to quote "
18618 #: ../fish/guestfish.pod:809
18626 #: ../fish/guestfish.pod:811
18627 msgid "HOME DIRECTORIES"
18631 #: ../fish/guestfish.pod:813
18633 "If a parameter starts with the character C<~> then the tilde may be expanded "
18634 "as a home directory path (either C<~> for the current user's home directory, "
18635 "or C<~user> for another user)."
18639 #: ../fish/guestfish.pod:817
18641 "Note that home directory expansion happens for users known I<on the host>, "
18642 "not in the guest filesystem."
18646 #: ../fish/guestfish.pod:820
18648 "To use a literal argument which begins with a tilde, you have to quote it, "
18653 #: ../fish/guestfish.pod:823
18661 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18662 msgid "ENCRYPTED DISKS"
18663 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18666 #: ../fish/guestfish.pod:827
18668 "Libguestfs has some support for Linux guests encrypted according to the "
18669 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18670 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
18671 "LUKS is supported."
18675 #: ../fish/guestfish.pod:832
18676 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18680 #: ../fish/guestfish.pod:834
18683 " ><fs> vfs-type /dev/sda2\n"
18689 #: ../fish/guestfish.pod:837
18691 "Then open those devices using L</luks-open>. This creates a device-mapper "
18692 "device called C</dev/mapper/luksdev>."
18696 #: ../fish/guestfish.pod:840
18699 " ><fs> luks-open /dev/sda2 luksdev\n"
18700 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18705 #: ../fish/guestfish.pod:843
18707 "Finally you have to tell LVM to scan for volume groups on the newly created "
18712 #: ../fish/guestfish.pod:846
18716 " vg-activate-all true\n"
18721 #: ../fish/guestfish.pod:849
18722 msgid "The logical volume(s) can now be mounted in the usual way."
18726 #: ../fish/guestfish.pod:851
18728 "Before closing a LUKS device you must unmount any logical volumes on it and "
18729 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18730 "one. Then you can close the mapper device:"
18734 #: ../fish/guestfish.pod:855
18737 " vg-activate false /dev/VG\n"
18738 " luks-close /dev/mapper/luksdev\n"
18743 #: ../fish/guestfish.pod:860
18745 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18746 "letters and paths (with some limitations). The following commands are "
18751 #: ../fish/guestfish.pod:864
18754 " file /WINDOWS/system32/config/system.LOG\n"
18759 #: ../fish/guestfish.pod:866
18762 " file win:\\windows\\system32\\config\\system.log\n"
18767 #: ../fish/guestfish.pod:868
18770 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18775 #: ../fish/guestfish.pod:870
18777 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18778 "where the drive is mounted, prepending that to the path, changing all "
18779 "backslash characters to forward slash, then resolving the result using L</"
18780 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
18781 "the parameter might be rewritten like this:"
18785 #: ../fish/guestfish.pod:876
18788 " win:e:\\foo\\bar => /e/FOO/bar\n"
18793 #: ../fish/guestfish.pod:878
18794 msgid "This only works in argument positions that expect a path."
18798 #: ../fish/guestfish.pod:880
18799 msgid "UPLOADING AND DOWNLOADING FILES"
18803 #: ../fish/guestfish.pod:882
18805 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18806 "others which upload from or download to a local file, you can use the "
18807 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
18811 #: ../fish/guestfish.pod:886
18819 #: ../fish/guestfish.pod:888
18821 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18825 #: ../fish/guestfish.pod:891
18828 " tar-out /etc - | tar tf -\n"
18833 #: ../fish/guestfish.pod:893
18835 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18836 "command (see L</PIPES>)."
18840 #: ../fish/guestfish.pod:896
18842 "When using C<-> to read from stdin, the input is read up to the end of "
18843 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
18844 "some arbitrary end marker:"
18848 #: ../fish/guestfish.pod:900
18851 " upload -<<END /foo\n"
18860 #: ../fish/guestfish.pod:906
18862 "Any string of characters can be used instead of C<END>. The end marker must "
18863 "appear on a line of its own, without any preceeding or following characters "
18864 "(not even spaces)."
18868 #: ../fish/guestfish.pod:910
18870 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18871 "upload local files (so-called \"FileIn\" parameters in the generator)."
18875 #: ../fish/guestfish.pod:913
18876 msgid "EXIT ON ERROR BEHAVIOUR"
18880 #: ../fish/guestfish.pod:915
18882 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18883 "taking commands from a human over a tty), and will exit on the first error "
18884 "in non-interactive mode (scripts, commands given on the command line)."
18888 #: ../fish/guestfish.pod:920
18890 "If you prefix a command with a I<-> character, then that command will not "
18891 "cause guestfish to exit, even if that (one) command returns an error."
18895 #: ../fish/guestfish.pod:924
18896 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18900 #: ../fish/guestfish.pod:926
18902 "Guestfish can be remote-controlled over a socket. This is useful "
18903 "particularly in shell scripts where you want to make several different "
18904 "changes to a filesystem, but you don't want the overhead of starting up a "
18905 "guestfish process each time."
18909 #: ../fish/guestfish.pod:931
18910 msgid "Start a guestfish server process using:"
18914 #: ../fish/guestfish.pod:933
18917 " eval \"`guestfish --listen`\"\n"
18922 #: ../fish/guestfish.pod:935
18923 msgid "and then send it commands by doing:"
18927 #: ../fish/guestfish.pod:937
18930 " guestfish --remote cmd [...]\n"
18935 #: ../fish/guestfish.pod:939
18936 msgid "To cause the server to exit, send it the exit command:"
18940 #: ../fish/guestfish.pod:943
18942 "Note that the server will normally exit if there is an error in a command. "
18943 "You can change this in the usual way. See section L</EXIT ON ERROR "
18948 #: ../fish/guestfish.pod:947
18949 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18953 #: ../fish/guestfish.pod:949
18955 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18956 "is how the I<--remote> option knows where to send the commands. You can "
18957 "have several guestfish listener processes running using:"
18961 #: ../fish/guestfish.pod:953
18964 " eval \"`guestfish --listen`\"\n"
18965 " pid1=$GUESTFISH_PID\n"
18966 " eval \"`guestfish --listen`\"\n"
18967 " pid2=$GUESTFISH_PID\n"
18969 " guestfish --remote=$pid1 cmd\n"
18970 " guestfish --remote=$pid2 cmd\n"
18975 #: ../fish/guestfish.pod:961
18976 msgid "REMOTE CONTROL AND CSH"
18980 #: ../fish/guestfish.pod:963
18982 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18987 #: ../fish/guestfish.pod:966
18990 " eval \"`guestfish --listen --csh`\"\n"
18995 #: ../fish/guestfish.pod:968
18996 msgid "REMOTE CONTROL DETAILS"
19000 #: ../fish/guestfish.pod:970
19002 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19003 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19004 "and C<$PID> is the process ID of the server."
19008 #: ../fish/guestfish.pod:974
19009 msgid "Guestfish client and server versions must match exactly."
19013 #: ../fish/guestfish.pod:976
19014 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19018 #: ../fish/guestfish.pod:978
19020 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19021 "context hangs, ie. don't do (note the backquotes):"
19025 #: ../fish/guestfish.pod:981
19028 #| " guestfish --ro -d myguest -i\n"
19031 " a=`guestfish --remote run`\n"
19034 " guestfish --ro -d myguest -i\n"
19038 #: ../fish/guestfish.pod:983
19040 "Since the C<run> command produces no output on stdout, this is not useful "
19041 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19046 #: ../fish/guestfish.pod:987
19047 msgid "PREPARED DISK IMAGES"
19051 #: ../fish/guestfish.pod:989
19053 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19054 "preformatted disk images that guestfish can make for you to save typing. "
19055 "This is particularly useful for testing purposes. This option is used "
19056 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19057 "can be mixed with I<-a>)."
19061 #: ../fish/guestfish.pod:995
19063 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19064 "the second and so on. Existing files in the current directory are "
19069 #: ../fish/guestfish.pod:999
19071 "The type briefly describes how the disk should be sized, partitioned, how "
19072 "filesystem(s) should be created, and how content should be added. "
19073 "Optionally the type can be followed by extra parameters, separated by C<:> "
19074 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19075 "allocated disk, containing a single partition, with the partition formatted "
19076 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19081 #: ../fish/guestfish.pod:1007
19082 msgid "To list the available types and any extra parameters they take, run:"
19086 #: ../fish/guestfish.pod:1011
19088 "Note that the prepared filesystem is not mounted. You would usually have to "
19089 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19093 #: ../fish/guestfish.pod:1015
19095 "If any I<-N> or I<--new> options are given, the guest is automatically "
19100 #: ../fish/guestfish.pod:1020
19101 msgid "Create a 100MB disk with an ext4-formatted partition:"
19105 #: ../fish/guestfish.pod:1022
19108 " guestfish -N fs:ext4\n"
19113 #: ../fish/guestfish.pod:1024
19114 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19118 #: ../fish/guestfish.pod:1026
19121 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19126 #: ../fish/guestfish.pod:1028
19127 msgid "Create a blank 200MB disk:"
19131 #: ../fish/guestfish.pod:1030
19134 " guestfish -N disk:200M\n"
19139 #: ../fish/guestfish.pod:1032
19140 msgid "PROGRESS BARS"
19144 #: ../fish/guestfish.pod:1034
19146 "Some (not all) long-running commands send progress notification messages as "
19147 "they are running. Guestfish turns these messages into progress bars."
19151 #: ../fish/guestfish.pod:1038
19153 "When a command that supports progress bars takes longer than two seconds to "
19154 "run, and if progress bars are enabled, then you will see one appearing below "
19159 #: ../fish/guestfish.pod:1042
19162 " ><fs> copy-size /large-file /another-file 2048M\n"
19163 " / 10% [#####-----------------------------------------] 00:30\n"
19168 #: ../fish/guestfish.pod:1045
19170 "The spinner on the left hand side moves round once for every progress "
19171 "notification received from the backend. This is a (reasonably) golden "
19172 "assurance that the command is \"doing something\" even if the progress bar "
19173 "is not moving, because the command is able to send the progress "
19174 "notifications. When the bar reaches 100% and the command finishes, the "
19175 "spinner disappears."
19179 #: ../fish/guestfish.pod:1052
19181 "Progress bars are enabled by default when guestfish is used interactively. "
19182 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19183 "and you can disable them completely using I<--no-progress-bars>."
19187 #: ../fish/guestfish.pod:1057
19188 msgid "GUESTFISH COMMANDS"
19192 #: ../fish/guestfish.pod:1059
19194 "The commands in this section are guestfish convenience commands, in other "
19195 "words, they are not part of the L<guestfs(3)> API."
19199 #: ../fish/guestfish.pod:1062
19204 #: ../fish/guestfish.pod:1064
19216 #: ../fish/guestfish.pod:1067
19217 msgid "Without any parameter, this provides general help."
19218 msgstr "Без параметра показує загальну довідкову інформацію."
19221 #: ../fish/guestfish.pod:1069
19222 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19226 #: ../fish/guestfish.pod:1071
19227 msgid "quit | exit"
19231 #: ../fish/guestfish.pod:1073
19232 msgid "This exits guestfish. You can also use C<^D> key."
19236 #: ../fish/guestfish.pod:1075
19237 msgid "@FISH_COMMANDS@"
19241 #: ../fish/guestfish.pod:1077
19246 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
19251 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:77
19253 msgstr "КОД ВИХОДУ"
19256 #: ../fish/guestfish.pod:1083
19258 "guestfish returns 0 if the commands completed without error, or 1 if there "
19263 #: ../fish/guestfish.pod:1090
19268 #: ../fish/guestfish.pod:1092
19270 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19275 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2970
19276 msgid "FEBOOTSTRAP_KERNEL"
19280 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2972
19281 msgid "FEBOOTSTRAP_MODULES"
19285 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2974
19287 "These two environment variables allow the kernel that libguestfs uses in the "
19288 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19289 "most recent host kernel is chosen. For more information about kernel "
19290 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19291 "available in febootstrap E<ge> 3.8."
19295 #: ../fish/guestfish.pod:1105
19296 msgid "GUESTFISH_DISPLAY_IMAGE"
19300 #: ../fish/guestfish.pod:1107
19302 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19303 "If not set, it uses L<display(1)>."
19307 #: ../fish/guestfish.pod:1110
19308 msgid "GUESTFISH_PID"
19312 #: ../fish/guestfish.pod:1112
19314 "Used with the I<--remote> option to specify the remote guestfish process to "
19315 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19319 #: ../fish/guestfish.pod:1116
19324 #: ../fish/guestfish.pod:1118
19326 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19327 "not specified, the external L<hexedit(1)> program is used."
19331 #: ../fish/guestfish.pod:1122
19336 #: ../fish/guestfish.pod:1124
19338 "If compiled with GNU readline support, various files in the home directory "
19339 "can be used. See L</FILES>."
19343 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2980
19344 msgid "LIBGUESTFS_APPEND"
19348 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2982
19349 msgid "Pass additional options to the guest kernel."
19353 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2984
19354 msgid "LIBGUESTFS_DEBUG"
19355 msgstr "LIBGUESTFS_DEBUG"
19358 #: ../fish/guestfish.pod:1133
19360 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19361 "effect as using the B<-v> option."
19365 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:2989
19366 msgid "LIBGUESTFS_MEMSIZE"
19367 msgstr "LIBGUESTFS_MEMSIZE"
19370 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:2991
19372 "Set the memory allocated to the qemu process, in megabytes. For example:"
19376 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:2994
19379 " LIBGUESTFS_MEMSIZE=700\n"
19382 " LIBGUESTFS_MEMSIZE=700\n"
19386 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:2996
19387 msgid "LIBGUESTFS_PATH"
19391 #: ../fish/guestfish.pod:1145
19393 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19394 "the discussion of paths in L<guestfs(3)>."
19398 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3001
19399 msgid "LIBGUESTFS_QEMU"
19403 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3003
19405 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19406 "which was found at compile time by the configure script is used."
19410 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3009
19411 msgid "LIBGUESTFS_TRACE"
19415 #: ../fish/guestfish.pod:1156
19416 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19420 #: ../fish/guestfish.pod:1158
19422 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19425 #: ../fish/guestfish.pod:1160
19427 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19432 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3014
19437 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3016
19439 "Location of temporary directory, defaults to C</tmp> except for the cached "
19440 "supermin appliance which defaults to C</var/tmp>."
19444 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3019
19446 "If libguestfs was compiled to use the supermin appliance then the real "
19447 "appliance is cached in this directory, shared between all handles belonging "
19448 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19449 "use in case C</var/tmp> is not large enough."
19453 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19454 #: ../rescue/virt-rescue.pod:269
19459 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19460 #: ../rescue/virt-rescue.pod:273
19461 msgid "$HOME/.libguestfs-tools.rc"
19465 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19466 #: ../rescue/virt-rescue.pod:275
19467 msgid "/etc/libguestfs-tools.conf"
19471 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19472 #: ../rescue/virt-rescue.pod:277
19474 "This configuration file controls the default read-only or read-write mode "
19475 "(I<--ro> or I<--rw>)."
19479 #: ../fish/guestfish.pod:1187
19480 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19484 #: ../fish/guestfish.pod:1189
19485 msgid "$HOME/.guestfish"
19489 #: ../fish/guestfish.pod:1191
19491 "If compiled with GNU readline support, then the command history is saved in "
19496 #: ../fish/guestfish.pod:1194
19497 msgid "$HOME/.inputrc"
19501 #: ../fish/guestfish.pod:1196
19502 msgid "/etc/inputrc"
19506 #: ../fish/guestfish.pod:1198
19508 "If compiled with GNU readline support, then these files can be used to "
19509 "configure readline. For further information, please see L<readline(3)/"
19510 "INITIALIZATION FILE>."
19514 #: ../fish/guestfish.pod:1202
19515 msgid "To write rules which only apply to guestfish, use:"
19519 #: ../fish/guestfish.pod:1204
19529 #: ../fish/guestfish.pod:1208
19531 "Variables that you can set in inputrc that change the behaviour of guestfish "
19532 "in useful ways include:"
19536 #: ../fish/guestfish.pod:1213
19537 msgid "completion-ignore-case (default: on)"
19541 #: ../fish/guestfish.pod:1215
19543 "By default, guestfish will ignore case when tab-completing paths on the "
19548 #: ../fish/guestfish.pod:1218
19551 " set completion-ignore-case off\n"
19556 #: ../fish/guestfish.pod:1220
19557 msgid "to make guestfish case sensitive."
19561 #: ../fish/guestfish.pod:1224
19566 #: ../fish/guestfish.pod:1226
19567 msgid "test2.img (etc)"
19571 #: ../fish/guestfish.pod:1228
19573 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19574 "will be created in the file C<test1.img> in the current directory. The "
19575 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
19576 "the same name will be overwritten."
19580 #: ../fish/guestfish.pod:1237
19582 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19583 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19584 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19585 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19586 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19587 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19591 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3105
19592 #: ../test-tool/libguestfs-test-tool.pod:99
19593 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
19597 #: ../fish/virt-copy-in.pod:5
19599 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19603 #: ../fish/virt-copy-in.pod:9
19606 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19611 #: ../fish/virt-copy-in.pod:11
19614 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19619 #: ../fish/virt-copy-in.pod:15
19621 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19622 "causing disk corruption. The virtual machine must be shut down before you "
19623 "use this command."
19627 #: ../fish/virt-copy-in.pod:21
19629 "C<virt-copy-in> copies files and directories from the local disk into a "
19630 "virtual machine disk image or named libvirt domain."
19634 #: ../fish/virt-copy-in.pod:24
19636 "You can give one of more filenames and directories on the command line. "
19637 "Directories are copied in recursively. The final parameter must be the "
19638 "destination directory in the disk image which must be an absolute path "
19639 "starting with a C</> character."
19643 #: ../fish/virt-copy-in.pod:33
19646 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19651 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19652 msgid "Upload a home directory to a guest:"
19656 #: ../fish/virt-copy-in.pod:37
19659 " virt-copy-in -d MyGuest skel /home\n"
19664 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19665 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19666 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19670 #: ../fish/virt-copy-in.pod:41
19672 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19673 "> C<copy-in> command. For anything more complex than a trivial copy, you "
19674 "are probably better off using guestfish directly."
19678 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19679 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19681 "Since the shell script just passes options straight to guestfish, read "
19682 "L<guestfish(1)> to see the full list of options."
19686 #: ../fish/virt-copy-in.pod:52
19689 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19690 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19691 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19692 #| "libguestfs.org/>."
19694 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19695 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19697 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19698 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19699 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19703 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19704 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19706 #| msgid "Copyright (C) 2009 Red Hat Inc."
19707 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19708 msgstr "© Red Hat Inc., 2009"
19711 #: ../fish/virt-copy-out.pod:5
19713 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19718 #: ../fish/virt-copy-out.pod:9
19721 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19726 #: ../fish/virt-copy-out.pod:11
19729 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19734 #: ../fish/virt-copy-out.pod:15
19736 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19737 "image or named libvirt domain."
19741 #: ../fish/virt-copy-out.pod:18
19743 "You can give one of more filenames and directories on the command line. "
19744 "Directories are copied out recursively."
19748 #: ../fish/virt-copy-out.pod:23
19749 msgid "Download the home directories from a virtual machine:"
19753 #: ../fish/virt-copy-out.pod:25
19757 " virt-copy-out -d MyGuest /home homes\n"
19762 #: ../fish/virt-copy-out.pod:30
19764 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19765 "> C<copy-out> command. For anything more complex than a trivial copy, you "
19766 "are probably better off using guestfish directly."
19770 #: ../fish/virt-copy-out.pod:41
19773 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19774 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19775 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19776 #| "libguestfs.org/>."
19778 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19779 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19781 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19782 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19783 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19787 #: ../fish/virt-tar-in.pod:5
19788 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19792 #: ../fish/virt-tar-in.pod:9
19795 " virt-tar-in -a disk.img data.tar /destination\n"
19800 #: ../fish/virt-tar-in.pod:11
19803 " virt-tar-in -d domain data.tar /destination\n"
19808 #: ../fish/virt-tar-in.pod:13
19811 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19816 #: ../fish/virt-tar-in.pod:17
19818 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19819 "causing disk corruption. The virtual machine must be shut down before you "
19820 "use this command."
19824 #: ../fish/virt-tar-in.pod:23
19826 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19827 "image or named libvirt domain."
19831 #: ../fish/virt-tar-in.pod:26
19833 "The first parameter is the tar file. Use C<-> to read the tar file from "
19834 "standard input. The second parameter is the absolute target directory to "
19839 #: ../fish/virt-tar-in.pod:34
19842 " virt-tar-in -d MyGuest homes.tar /home\n"
19847 #: ../fish/virt-tar-in.pod:38
19849 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19850 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
19851 "probably better off using guestfish directly."
19855 #: ../fish/virt-tar-in.pod:49
19858 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19859 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19860 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19861 #| "libguestfs.org/>."
19863 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19864 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19867 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19868 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19869 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19873 #: ../fish/virt-tar-out.pod:5
19875 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19879 #: ../fish/virt-tar-out.pod:9
19882 " virt-tar-out -a disk.img /dir files.tar\n"
19887 #: ../fish/virt-tar-out.pod:11
19890 " virt-tar-out -d domain /dir files.tar\n"
19895 #: ../fish/virt-tar-out.pod:13
19898 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19903 #: ../fish/virt-tar-out.pod:17
19905 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19909 #: ../fish/virt-tar-out.pod:20
19911 "The first parameter is the absolute path of the virtual machine directory. "
19912 "The second parameter is the tar file to write. Use C<-> to write to "
19917 #: ../fish/virt-tar-out.pod:26
19918 msgid "Download the home directories from a guest:"
19922 #: ../fish/virt-tar-out.pod:28
19925 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19930 #: ../fish/virt-tar-out.pod:32
19932 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19933 "> C<tar-out> command. For anything more complex than a trivial copy, you "
19934 "are probably better off using guestfish directly."
19938 #: ../fish/virt-tar-out.pod:43
19941 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19942 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19943 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19944 #| "libguestfs.org/>."
19946 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19947 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19949 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19950 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19951 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19955 #: ../fuse/guestmount.pod:5
19957 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19961 #: ../fuse/guestmount.pod:9
19964 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19969 #: ../fuse/guestmount.pod:11
19972 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19977 #: ../fuse/guestmount.pod:13
19980 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19985 #: ../fuse/guestmount.pod:17
19987 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19988 "machines. If you do this, you risk disk corruption in the VM."
19992 #: ../fuse/guestmount.pod:22
19994 "The guestmount program can be used to mount virtual machine filesystems and "
19995 "other disk images on the host. It uses libguestfs for access to the guest "
19996 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19997 "a mountable device."
20001 #: ../fuse/guestmount.pod:27
20003 "Along with other options, you have to give at least one device (I<-a> "
20004 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20005 "option) or use the I<-i> inspection option. How this works is better "
20006 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20011 #: ../fuse/guestmount.pod:33
20013 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
20014 "by you, and the filesystem will not be visible to any other users unless you "
20015 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
20016 "the filesystem, use the C<fusermount -u> command."
20020 #: ../fuse/guestmount.pod:41
20022 "For a typical Windows guest which has its main filesystem on the first "
20027 #: ../fuse/guestmount.pod:44
20030 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20035 #: ../fuse/guestmount.pod:46
20037 "For a typical Linux guest which has a /boot filesystem on the first "
20038 "partition, and the root filesystem on a logical volume:"
20042 #: ../fuse/guestmount.pod:49
20045 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20050 #: ../fuse/guestmount.pod:51
20051 msgid "To get libguestfs to detect guest mountpoints for you:"
20055 #: ../fuse/guestmount.pod:53
20058 " guestmount -a guest.img -i --ro /mnt\n"
20063 #: ../fuse/guestmount.pod:55
20064 msgid "For a libvirt guest called \"Guest\" you could do:"
20068 #: ../fuse/guestmount.pod:57
20071 " guestmount -d Guest -i --ro /mnt\n"
20076 #: ../fuse/guestmount.pod:59
20078 "If you don't know what filesystems are contained in a guest or disk image, "
20079 "use L<virt-filesystems(1)> first:"
20083 #: ../fuse/guestmount.pod:62
20086 " virt-filesystems MyGuest\n"
20091 #: ../fuse/guestmount.pod:64
20093 "If you want to trace the libguestfs calls but without excessive debugging "
20094 "information, we recommend:"
20098 #: ../fuse/guestmount.pod:67
20101 " guestmount [...] --trace /mnt\n"
20106 #: ../fuse/guestmount.pod:69
20107 msgid "If you want to debug the program, we recommend:"
20111 #: ../fuse/guestmount.pod:71
20114 " guestmount [...] --trace --verbose /mnt\n"
20119 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20120 #: ../resize/virt-resize.pod:486
20125 #: ../fuse/guestmount.pod:75
20126 msgid "Other users cannot see the filesystem by default"
20130 #: ../fuse/guestmount.pod:77
20132 "If you mount a filesystem as one user (eg. root), then other users will not "
20133 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20134 "option when mounting:"
20138 #: ../fuse/guestmount.pod:81
20141 " sudo guestmount [...] -o allow_other /mnt\n"
20146 #: ../fuse/guestmount.pod:91
20147 msgid "Add a block device or virtual machine image."
20151 #: ../fuse/guestmount.pod:114
20152 msgid "B<--dir-cache-timeout N>"
20153 msgstr "B<--dir-cache-timeout N>"
20156 #: ../fuse/guestmount.pod:116
20158 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20159 "seconds. The readdir cache [actually, there are several semi-independent "
20160 "caches] is populated after a readdir(2) call with the stat and extended "
20161 "attributes of the files in the directory, in anticipation that they will be "
20162 "requested soon after."
20166 #: ../fuse/guestmount.pod:122
20168 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20169 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20170 "requests, only cache existing ones."
20174 #: ../fuse/guestmount.pod:142
20176 "If you have untrusted raw-format guest disk images, you should use this "
20177 "option to specify the disk format. This avoids a possible security problem "
20178 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20179 "guestfs_add_drive_opts>."
20183 #: ../fuse/guestmount.pod:147
20184 msgid "B<--fuse-help>"
20185 msgstr "B<--fuse-help>"
20188 #: ../fuse/guestmount.pod:149
20189 msgid "Display help on special FUSE options (see I<-o> below)."
20193 #: ../fuse/guestmount.pod:153
20194 msgid "Display brief help and exit."
20198 #: ../fuse/guestmount.pod:177
20200 "Mount the named partition or logical volume on the given mountpoint B<in the "
20201 "guest> (this has nothing to do with mountpoints in the host)."
20205 #: ../fuse/guestmount.pod:180
20207 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20208 "something on C</>."
20212 #: ../fuse/guestmount.pod:197
20214 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20215 "unmounted. If you specify this option, then we don't attempt to sync the "
20216 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20220 #: ../fuse/guestmount.pod:202
20222 #| msgid "B<--partition>"
20223 msgid "B<-o option>"
20224 msgstr "B<--partition>"
20227 #: ../fuse/guestmount.pod:204
20229 #| msgid "B<--partition>"
20230 msgid "B<--option option>"
20231 msgstr "B<--partition>"
20234 #: ../fuse/guestmount.pod:206
20235 msgid "Pass extra options to FUSE."
20239 #: ../fuse/guestmount.pod:208
20241 "To get a list of all the extra options supported by FUSE, use the command "
20242 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20243 "of them are a good idea."
20247 #: ../fuse/guestmount.pod:212
20250 " guestmount --fuse-help\n"
20255 #: ../fuse/guestmount.pod:214
20256 msgid "Some potentially useful FUSE options:"
20260 #: ../fuse/guestmount.pod:218
20261 msgid "B<-o allow_other>"
20265 #: ../fuse/guestmount.pod:220
20266 msgid "Allow other users to see the filesystem."
20270 #: ../fuse/guestmount.pod:222
20271 msgid "B<-o attr_timeout=N>"
20272 msgstr "B<-o attr_timeout=N>"
20275 #: ../fuse/guestmount.pod:224
20276 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20280 #: ../fuse/guestmount.pod:226
20281 msgid "B<-o kernel_cache>"
20285 #: ../fuse/guestmount.pod:228
20287 "Allow the kernel to cache files (reduces the number of reads that have to go "
20288 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20289 "afford the extra memory usage."
20293 #: ../fuse/guestmount.pod:232
20294 msgid "B<-o uid=N> B<-o gid=N>"
20298 #: ../fuse/guestmount.pod:234
20300 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20301 "the chosen values."
20305 #: ../fuse/guestmount.pod:243
20307 "Add devices and mount everything read-only. Also disallow writes and make "
20308 "the disk appear read-only to FUSE."
20312 #: ../fuse/guestmount.pod:246
20314 "This is highly recommended if you are not going to edit the guest disk. If "
20315 "the guest is running and this option is I<not> supplied, then there is a "
20316 "strong risk of disk corruption in the guest. We try to prevent this from "
20317 "happening, but it is not always possible."
20321 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20322 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20326 #: ../fuse/guestmount.pod:255
20327 msgid "Enable SELinux support for the guest."
20331 #: ../fuse/guestmount.pod:261
20332 msgid "Enable verbose messages from underlying libguestfs."
20336 #: ../fuse/guestmount.pod:267
20337 msgid "Display the program version and exit."
20341 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20342 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20343 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20347 #: ../fuse/guestmount.pod:280
20354 #: ../fuse/guestmount.pod:282
20355 msgid "Trace libguestfs calls and entry into each FUSE function."
20359 #: ../fuse/guestmount.pod:284
20360 msgid "This also stops the daemon from forking into the background."
20364 #: ../fuse/guestmount.pod:305
20366 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20367 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20372 #: ../fuse/guestmount.pod:320
20373 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20377 #: ../inspector/virt-inspector.pod:5
20379 "virt-inspector - Display operating system version and other information "
20380 "about a virtual machine"
20384 #: ../inspector/virt-inspector.pod:9
20387 #| " virt-list-partitions [--options] domname\n"
20390 " virt-inspector [--options] -d domname\n"
20393 " virt-list-partitions [--параметри] назва_домену\n"
20397 #: ../inspector/virt-inspector.pod:11
20400 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20403 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20406 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20410 #: ../inspector/virt-inspector.pod:15
20413 #| " virt-list-partitions [--options] domname\n"
20416 " virt-inspector domname\n"
20419 " virt-list-partitions [--параметри] назва_домену\n"
20423 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20426 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20429 " virt-inspector disk.img [disk.img ...]\n"
20432 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20436 #: ../inspector/virt-inspector.pod:21
20438 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20439 "determine the version of the operating system and other information about "
20440 "the virtual machine."
20444 #: ../inspector/virt-inspector.pod:25
20445 msgid "Virt-inspector produces XML output for feeding into other programs."
20449 #: ../inspector/virt-inspector.pod:27
20451 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20452 "the libvirt domain (see: C<virsh list --all>)."
20456 #: ../inspector/virt-inspector.pod:30
20458 "You can also run virt-inspector directly on disk images from a single "
20459 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20460 "has several block devices, in which case you should list several I<-a> "
20461 "options one after another, with the first corresponding to the guest's C</"
20462 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20466 #: ../inspector/virt-inspector.pod:37
20468 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20469 "keys and similar."
20473 #: ../inspector/virt-inspector.pod:40
20475 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20476 "inspect several virtual machines, you have to run virt-inspector several "
20477 "times (for example, from a shell script for-loop)."
20481 #: ../inspector/virt-inspector.pod:45
20483 "Because virt-inspector needs direct access to guest images, it won't "
20484 "normally work over remote libvirt connections."
20488 #: ../inspector/virt-inspector.pod:48
20490 "All of the information available from virt-inspector is also available "
20491 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20492 "The same information can also be fetched using guestfish or via libguestfs "
20493 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20494 "WITH OTHER PROGRAMMING LANGUAGES>)."
20498 #: ../inspector/virt-inspector.pod:81
20500 "Libvirt is only used if you specify a C<domname> on the command line. If "
20501 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20506 #: ../inspector/virt-inspector.pod:94
20508 "When prompting for keys and passphrases, virt-inspector normally turns "
20509 "echoing off so you cannot see what you are typing. If you are not worried "
20510 "about Tempest attacks and there is no one else in the room you can specify "
20511 "this flag to see what you are typing."
20515 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20516 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20517 #: ../tools/virt-win-reg.pl:144
20519 "Specify the format of disk images given on the command line. If this is "
20520 "omitted then the format is autodetected from the content of the disk image."
20524 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20525 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20526 #: ../tools/virt-win-reg.pl:148
20528 "If disk images are requested from libvirt, then this program asks libvirt "
20529 "for this information. In this case, the value of the format parameter is "
20534 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20535 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
20536 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20537 #: ../tools/virt-win-reg.pl:152
20539 "If working with untrusted raw-format guest disk images, you should ensure "
20540 "the format is always specified."
20544 #: ../inspector/virt-inspector.pod:139
20545 msgid "Previous versions of virt-inspector allowed you to write either:"
20549 #: ../inspector/virt-inspector.pod:145
20552 #| " inspect-get-hostname root\n"
20555 " virt-inspector guestname\n"
20558 " inspect-get-hostname корінь\n"
20562 #: ../inspector/virt-inspector.pod:153
20567 #: ../inspector/virt-inspector.pod:155
20569 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20570 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20571 "just an overview."
20575 #: ../inspector/virt-inspector.pod:159
20577 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20578 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
20579 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20580 "which is vanishingly rare in real world VMs."
20584 #: ../inspector/virt-inspector.pod:164
20585 msgid "E<lt>operatingsystemE<gt>"
20589 #: ../inspector/virt-inspector.pod:166
20591 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20592 "describe the operating system, its architecture, the descriptive \"product "
20593 "name\" string, the type of OS and so on, as in this example:"
20597 #: ../inspector/virt-inspector.pod:170
20600 " <operatingsystems>\n"
20601 " <operatingsystem>\n"
20602 " <root>/dev/sda2</root>\n"
20603 " <name>windows</name>\n"
20604 " <arch>i386</arch>\n"
20605 " <distro>windows</distro>\n"
20606 " <product_name>Windows 7 Enterprise</product_name>\n"
20607 " <product_variant>Client</product_variant>\n"
20608 " <major_version>6</major_version>\n"
20609 " <minor_version>1</minor_version>\n"
20610 " <windows_systemroot>/Windows</windows_systemroot>\n"
20611 " <format>installed</format>\n"
20616 #: ../inspector/virt-inspector.pod:183
20618 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20619 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20620 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20621 "architecture. The other fields are fairly self-explanatory, but because "
20622 "these fields are taken directly from the libguestfs inspection API you can "
20623 "find precise information from L<guestfs(3)/INSPECTION>."
20627 #: ../inspector/virt-inspector.pod:191
20629 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20630 "of view of libguestfs (block devices may have completely different names "
20631 "inside the VM itself)."
20635 #: ../inspector/virt-inspector.pod:195
20637 #| msgid "mountpoints"
20638 msgid "E<lt>mountpointsE<gt>"
20639 msgstr "mountpoints"
20642 #: ../inspector/virt-inspector.pod:197
20644 "Un*x-like guests typically have multiple filesystems which are mounted at "
20645 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20646 "element which looks like this:"
20650 #: ../inspector/virt-inspector.pod:201
20653 " <operatingsystems>\n"
20654 " <operatingsystem>\n"
20657 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20658 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20659 " </mountpoints>\n"
20664 #: ../inspector/virt-inspector.pod:209
20666 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20667 "and may have completely different names inside the guest. Only mountable "
20668 "filesystems appear in this list, not things like swap devices."
20672 #: ../inspector/virt-inspector.pod:214
20674 #| msgid "list-filesystems"
20675 msgid "E<lt>filesystemsE<gt>"
20676 msgstr "list-filesystems"
20679 #: ../inspector/virt-inspector.pod:216
20681 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20682 "filesystems belonging to the guest, including swap and empty partitions. "
20683 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20684 "this OS or shared with this OS and other OSes)."
20688 #: ../inspector/virt-inspector.pod:222
20689 msgid "You might see something like this:"
20693 #: ../inspector/virt-inspector.pod:224
20696 " <operatingsystems>\n"
20697 " <operatingsystem>\n"
20700 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20701 " <type>ext4</type>\n"
20702 " <label>Fedora-13-x86_64</label>\n"
20703 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20709 #: ../inspector/virt-inspector.pod:234
20711 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20712 "the label, and the UUID."
20716 #: ../inspector/virt-inspector.pod:237
20717 msgid "E<lt>applicationsE<gt>"
20721 #: ../inspector/virt-inspector.pod:239
20723 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20724 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20729 #: ../inspector/virt-inspector.pod:243
20731 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
20732 "Typical values would be C<rpm> and C<deb>."
20736 #: ../inspector/virt-inspector.pod:246
20738 "E<lt>package_managementE<gt>, if present, describes the package manager. "
20739 "Typical values include C<yum>, C<up2date> and C<apt>"
20743 #: ../inspector/virt-inspector.pod:249
20744 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20748 #: ../inspector/virt-inspector.pod:252
20751 " <operatingsystems>\n"
20752 " <operatingsystem>\n"
20754 " <applications>\n"
20756 " <name>coreutils</name>\n"
20757 " <version>8.5</version>\n"
20758 " <release>1</release>\n"
20759 " </application>\n"
20764 #: ../inspector/virt-inspector.pod:262
20766 "The version and release fields may not be available for some types guests. "
20767 "Other fields are possible, see L<guestfs(3)/"
20768 "guestfs_inspect_list_applications>."
20772 #: ../inspector/virt-inspector.pod:266
20773 msgid "E<lt>drive_mappingsE<gt>"
20777 #: ../inspector/virt-inspector.pod:268
20779 "For operating systems like Windows which use drive letters, virt-inspector "
20780 "is able to find out how drive letters map to filesystems."
20784 #: ../inspector/virt-inspector.pod:272
20787 " <operatingsystems>\n"
20788 " <operatingsystem>\n"
20790 " <drive_mappings>\n"
20791 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20792 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20793 " </drive_mappings>\n"
20798 #: ../inspector/virt-inspector.pod:280
20800 "In the example above, drive C maps to the filesystem on the second partition "
20801 "on the first disk, and drive E maps to the filesystem on the first partition "
20802 "on the second disk."
20806 #: ../inspector/virt-inspector.pod:284
20808 "Note that this only covers permanent local filesystem mappings, not things "
20809 "like network shares. Furthermore NTFS volume mount points may not be listed "
20814 #: ../inspector/virt-inspector.pod:288
20816 #| msgid "B<-s E<lt>NE<gt>>"
20817 msgid "E<lt>iconE<gt>"
20818 msgstr "B<-s E<lt>NE<gt>>"
20821 #: ../inspector/virt-inspector.pod:290
20823 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
20824 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
20825 "very large and high quality."
20829 #: ../inspector/virt-inspector.pod:294
20832 " <operatingsystems>\n"
20833 " <operatingsystem>\n"
20836 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20837 " [... many lines of base64 data ...]\n"
20843 #: ../inspector/virt-inspector.pod:302
20845 "To display the icon, you have to extract it and convert the base64 data back "
20846 "to a binary file. Use an XPath query or simply an editor to extract the "
20847 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20852 #: ../inspector/virt-inspector.pod:307
20855 " base64 -i -d < icon.data > icon.png\n"
20860 #: ../inspector/virt-inspector.pod:309
20861 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20865 #: ../inspector/virt-inspector.pod:311
20867 "Virt-inspector can detect some operating system installers on install disks, "
20868 "live CDs, bootable USB keys and more."
20872 #: ../inspector/virt-inspector.pod:314
20874 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20875 "fields may be present to indicate a live CD, network installer, or one part "
20876 "of a multipart CD. For example:"
20880 #: ../inspector/virt-inspector.pod:318
20883 " <operatingsystems>\n"
20884 " <operatingsystem>\n"
20885 " <root>/dev/sda</root>\n"
20886 " <name>linux</name>\n"
20887 " <arch>i386</arch>\n"
20888 " <distro>ubuntu</distro>\n"
20889 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
20890 " <major_version>10</major_version>\n"
20891 " <minor_version>10</minor_version>\n"
20892 " <format>installer</format>\n"
20898 #: ../inspector/virt-inspector.pod:330
20899 msgid "USING XPATH"
20903 #: ../inspector/virt-inspector.pod:332
20905 "You can use the XPath query language, and/or the xpath tool, in order to "
20906 "select parts of the XML."
20910 #: ../inspector/virt-inspector.pod:337
20913 " $ virt-inspector -d Guest | xpath //filesystems\n"
20914 " Found 1 nodes:\n"
20917 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20918 " <type>ext4</type>\n"
20924 #: ../inspector/virt-inspector.pod:345
20927 " $ virt-inspector -d Guest | \\\n"
20928 " xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20929 " Query didn't return a nodeset. Value: ext4\n"
20934 #: ../inspector/virt-inspector.pod:356
20935 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20939 #: ../inspector/virt-inspector.pod:358
20941 "Early versions of libguestfs shipped with a different virt-inspector program "
20942 "written in Perl (the current version is written in C). The XML output of "
20943 "the Perl virt-inspector was different and it could also output in other "
20944 "formats like text."
20948 #: ../inspector/virt-inspector.pod:363
20950 "The old virt-inspector is no longer supported or shipped with libguestfs."
20954 #: ../inspector/virt-inspector.pod:366
20956 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20957 "versions of virt-inspector with different names:"
20961 #: ../inspector/virt-inspector.pod:369
20964 " virt-inspector Old Perl version.\n"
20965 " virt-inspector2 New C version.\n"
20970 #: ../inspector/virt-inspector.pod:374
20972 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20973 ">, L<http://libguestfs.org/>."
20977 #: ../inspector/virt-inspector.pod:390
20978 msgid "Matthew Booth L<mbooth@redhat.com>"
20982 #: ../java/examples/guestfs-java.pod:5
20983 msgid "guestfs-java - How to use libguestfs from Java"
20987 #: ../java/examples/guestfs-java.pod:9
20990 " import com.redhat.et.libguestfs.*;\n"
20995 #: ../java/examples/guestfs-java.pod:11
20998 " GuestFS g = new GuestFS ();\n"
20999 " g.add_drive_opts (\"disk.img\", null);\n"
21005 #: ../java/examples/guestfs-java.pod:17
21007 "This manual page documents how to call libguestfs from the Java programming "
21008 "language. This page just documents the differences from the C API and gives "
21009 "some examples. If you are not familiar with using libguestfs, you also need "
21010 "to read L<guestfs(3)>."
21014 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21015 msgid "CLOSING THE HANDLE"
21019 #: ../java/examples/guestfs-java.pod:24
21021 "The handle is closed when it is reaped by the garbage collector. Because "
21022 "libguestfs handles include a lot of state, it is also possible to close (and "
21023 "hence free) them explicitly by calling the C<close> method."
21027 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21028 #: ../python/examples/guestfs-python.pod:21
21029 #: ../ruby/examples/guestfs-ruby.pod:22
21036 #: ../java/examples/guestfs-java.pod:31
21038 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21039 "exception. This has a single parameter which is the error message (a "
21044 #: ../java/examples/guestfs-java.pod:35
21045 msgid "Calling any method on a closed handle raises the same exception."
21049 #: ../java/examples/guestfs-java.pod:47
21052 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21053 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21054 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21056 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21057 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21058 "libguestfs.org/>, L<http://caml.inria.fr/>."
21060 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21061 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21062 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21065 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21067 #| msgid "Copyright (C) 2009 Red Hat Inc."
21068 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21069 msgstr "© Red Hat Inc., 2009"
21072 #: ../ocaml/examples/guestfs-ocaml.pod:5
21073 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21077 #: ../ocaml/examples/guestfs-ocaml.pod:9
21078 msgid "Module style:"
21082 #: ../ocaml/examples/guestfs-ocaml.pod:11
21085 " let g = Guestfs.create () in\n"
21086 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21087 " Guestfs.launch g;\n"
21092 #: ../ocaml/examples/guestfs-ocaml.pod:15
21093 msgid "Object-oriented style:"
21097 #: ../ocaml/examples/guestfs-ocaml.pod:17
21100 " let g = new Guestfs.guestfs () in\n"
21101 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21107 #: ../ocaml/examples/guestfs-ocaml.pod:21
21110 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21112 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21117 #: ../ocaml/examples/guestfs-ocaml.pod:27
21119 "This manual page documents how to call libguestfs from the OCaml programming "
21120 "language. This page just documents the differences from the C API and gives "
21121 "some examples. If you are not familiar with using libguestfs, you also need "
21122 "to read L<guestfs(3)>."
21126 #: ../ocaml/examples/guestfs-ocaml.pod:32
21127 msgid "PROGRAMMING STYLES"
21131 #: ../ocaml/examples/guestfs-ocaml.pod:34
21133 "There are two different programming styles supported by the OCaml bindings. "
21134 "You can use a module style, with each C function mapped to an OCaml function:"
21138 #: ../ocaml/examples/guestfs-ocaml.pod:38
21141 #| " int guestfs_last_errno (guestfs_h *g);\n"
21144 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21147 " int guestfs_last_errno (guestfs_h *g);\n"
21151 #: ../ocaml/examples/guestfs-ocaml.pod:40
21156 #: ../ocaml/examples/guestfs-ocaml.pod:42
21159 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21164 #: ../ocaml/examples/guestfs-ocaml.pod:44
21166 "Alternately you can use an object-oriented style, calling methods on the "
21167 "class C<Guestfs.guestfs>:"
21171 #: ../ocaml/examples/guestfs-ocaml.pod:47
21174 " method set_verbose : bool -> unit\n"
21179 #: ../ocaml/examples/guestfs-ocaml.pod:49
21181 "The object-oriented style is usually briefer, and the minor performance "
21182 "penalty isn't noticable in the general overhead of performing libguestfs "
21187 #: ../ocaml/examples/guestfs-ocaml.pod:55
21189 "The handle is closed when it is reaped by the garbage collector. Because "
21190 "libguestfs handles include a lot of state, it is also possible to close (and "
21191 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21196 #: ../ocaml/examples/guestfs-ocaml.pod:62
21198 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21199 "exception. This has a single parameter which is the error message (a "
21204 #: ../ocaml/examples/guestfs-ocaml.pod:66
21206 "Calling any function/method on a closed handle raises C<Guestfs."
21207 "Handle_closed>. The single parameter is the name of the function that you "
21212 #: ../ocaml/examples/guestfs-ocaml.pod:80
21215 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21216 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21217 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21219 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21220 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21221 "libguestfs.org/>, L<http://caml.inria.fr/>."
21223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21224 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21225 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21228 #: ../perl/examples/guestfs-perl.pod:5
21229 msgid "guestfs-perl - How to use libguestfs from Perl"
21233 #: ../perl/examples/guestfs-perl.pod:9
21236 " use Sys::Guestfs;\n"
21241 #: ../perl/examples/guestfs-perl.pod:11
21244 " my $h = Sys::Guestfs->new ();\n"
21245 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21246 " $h->launch ();\n"
21247 " $h->mount_options ('', '/dev/sda1', '/');\n"
21248 " $h->touch ('/hello');\n"
21254 #: ../perl/examples/guestfs-perl.pod:20
21256 "This manual page documents how to call libguestfs from the Perl programming "
21257 "language. This page just documents the differences from the C API and gives "
21258 "some examples. If you are not familiar with using libguestfs, you also need "
21259 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21263 #: ../perl/examples/guestfs-perl.pod:26
21268 #: ../perl/examples/guestfs-perl.pod:28
21270 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21275 #: ../perl/examples/guestfs-perl.pod:41
21278 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21279 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21280 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21282 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21283 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21284 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21286 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21287 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21288 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21291 #: ../python/examples/guestfs-python.pod:5
21292 msgid "guestfs-python - How to use libguestfs from Python"
21296 #: ../python/examples/guestfs-python.pod:9
21299 " import guestfs\n"
21300 " g = guestfs.GuestFS ()\n"
21301 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21307 #: ../python/examples/guestfs-python.pod:16
21309 "This manual page documents how to call libguestfs from the Python "
21310 "programming language. This page just documents the differences from the C "
21311 "API and gives some examples. If you are not familiar with using libguestfs, "
21312 "you also need to read L<guestfs(3)>."
21316 #: ../python/examples/guestfs-python.pod:23
21318 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21319 "single string argument which is the error message."
21323 #: ../python/examples/guestfs-python.pod:26
21324 msgid "MORE DOCUMENTATION"
21328 #: ../python/examples/guestfs-python.pod:28
21333 #: ../python/examples/guestfs-python.pod:30
21337 " >>> import guestfs\n"
21338 " >>> help (guestfs)\n"
21343 #: ../python/examples/guestfs-python.pod:44
21346 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21347 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21348 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21350 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21351 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21352 "libguestfs.org/>."
21354 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21355 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21356 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21359 #: ../rescue/virt-rescue.pod:5
21360 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21364 #: ../rescue/virt-rescue.pod:9
21367 #| " virt-list-partitions [--options] domname\n"
21370 " virt-rescue [--options] -d domname\n"
21373 " virt-list-partitions [--параметри] назва_домену\n"
21377 #: ../rescue/virt-rescue.pod:11
21380 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21383 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21386 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21390 #: ../rescue/virt-rescue.pod:15
21393 #| " virt-list-partitions [--options] domname\n"
21396 " virt-rescue [--options] domname\n"
21399 " virt-list-partitions [--параметри] назва_домену\n"
21403 #: ../rescue/virt-rescue.pod:17
21406 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21409 " virt-rescue [--options] disk.img [disk.img ...]\n"
21412 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21416 #: ../rescue/virt-rescue.pod:21
21418 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21419 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21420 "you from doing this, but doesn't catch all cases."
21424 #: ../rescue/virt-rescue.pod:25
21426 "However if you use the I<--ro> (read only) option, then you can attach a "
21427 "shell to a live virtual machine. The results might be strange or "
21428 "inconsistent at times but you won't get disk corruption."
21432 #: ../rescue/virt-rescue.pod:31
21434 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21435 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21436 "recovery tools which you can use to examine or rescue a virtual machine or "
21441 #: ../rescue/virt-rescue.pod:36
21443 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21444 "on disk image(s):"
21448 #: ../rescue/virt-rescue.pod:39
21451 " virt-rescue -d GuestName\n"
21456 #: ../rescue/virt-rescue.pod:41
21459 " virt-rescue --ro -a /path/to/disk.img\n"
21464 #: ../rescue/virt-rescue.pod:43
21467 " virt-rescue -a /dev/sdc\n"
21472 #: ../rescue/virt-rescue.pod:45
21473 msgid "For live VMs you I<must> use the --ro option."
21477 #: ../rescue/virt-rescue.pod:47
21479 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21480 "in an interactive bash shell where you can use many ordinary Linux "
21481 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21482 "appliance. You must mount the virtual machine's filesystems by hand. There "
21483 "is an empty directory called C</sysroot> where you can mount filesystems."
21487 #: ../rescue/virt-rescue.pod:54
21489 "In the example below, we list logical volumes, then choose one to mount "
21490 "under C</sysroot>:"
21494 #: ../rescue/virt-rescue.pod:57
21498 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21499 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21500 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21501 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21502 " ><rescue> ls /sysroot\n"
21507 #: ../rescue/virt-rescue.pod:64
21509 "If you don't know what filesystems are available on the virtual machine then "
21510 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21514 #: ../rescue/virt-rescue.pod:70
21516 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21517 "virtual machine. For example you can use it on a blank file if you want to "
21518 "partition that file (although we would recommend using L<guestfish(1)> "
21519 "instead as it is more suitable for this purpose). You can even use virt-"
21520 "rescue on things like SD cards."
21524 #: ../rescue/virt-rescue.pod:76
21526 "Virt-rescue does not require root. You only need to run it as root if you "
21527 "need root to open the disk image."
21531 #: ../rescue/virt-rescue.pod:79
21533 "This tool is just designed for quick interactive hacking on a virtual "
21534 "machine. For more structured access to a virtual machine disk image, you "
21535 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21536 "make scripted changes to guests, use L<guestfish(1)>."
21540 #: ../rescue/virt-rescue.pod:103
21541 msgid "B<--append kernelopts>"
21545 #: ../rescue/virt-rescue.pod:105
21546 msgid "Pass additional options to the rescue kernel."
21550 #: ../rescue/virt-rescue.pod:135
21553 #| " guestfish --format=raw -a disk.img\n"
21556 " virt-rescue --format=raw -a disk.img\n"
21559 " guestfish --format=raw -a disk.img\n"
21563 #: ../rescue/virt-rescue.pod:139
21566 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21569 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21572 " guestfish --format=raw -a disk.img --format -a another.img\n"
21576 #: ../rescue/virt-rescue.pod:148
21581 #: ../rescue/virt-rescue.pod:150
21583 #| msgid "B<--merge>"
21584 msgid "B<--memsize MB>"
21585 msgstr "B<--merge>"
21588 #: ../rescue/virt-rescue.pod:152
21590 "Change the amount of memory allocated to the rescue system. The default is "
21591 "set by libguestfs and is small but adequate for running system tools. The "
21592 "occasional program might need more memory. The parameter is specified in "
21597 #: ../rescue/virt-rescue.pod:157
21599 #| msgid "B<--inspector>"
21600 msgid "B<--network>"
21601 msgstr "B<--inspector>"
21604 #: ../rescue/virt-rescue.pod:159
21605 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
21609 #: ../rescue/virt-rescue.pod:165
21610 msgid "Open the image read-only."
21614 #: ../rescue/virt-rescue.pod:175
21616 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
21617 "SELINUX> before using this option."
21621 #: ../rescue/virt-rescue.pod:194
21623 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21624 "are done read-write."
21628 #: ../rescue/virt-rescue.pod:207
21629 msgid "Previous versions of virt-rescue allowed you to write either:"
21633 #: ../rescue/virt-rescue.pod:209
21636 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21639 " virt-rescue disk.img [disk.img ...]\n"
21642 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21646 #: ../rescue/virt-rescue.pod:213
21649 #| " file-architecture filename\n"
21652 " virt-rescue guestname\n"
21655 " file-architecture назва_файла\n"
21659 #: ../rescue/virt-rescue.pod:221
21664 #: ../rescue/virt-rescue.pod:223
21666 "Adding the I<--network> option enables QEMU user networking in the rescue "
21667 "appliance. There are some differences between user networking and ordinary "
21672 #: ../rescue/virt-rescue.pod:229
21673 msgid "ping does not work"
21677 #: ../rescue/virt-rescue.pod:231
21679 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21680 "send the ping packets, and because virt-rescue must be able to run as non-"
21681 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
21682 "The ping command will appear to resolve addresses but will not be able to "
21683 "send or receive any packets. This does not mean that the network is not "
21688 #: ../rescue/virt-rescue.pod:238
21689 msgid "cannot receive connections"
21693 #: ../rescue/virt-rescue.pod:240
21694 msgid "QEMU user networking cannot receive incoming connections."
21698 #: ../rescue/virt-rescue.pod:242
21699 msgid "making TCP connections"
21703 #: ../rescue/virt-rescue.pod:244
21705 "The virt-rescue appliance needs to be small and so does not include many "
21706 "network tools. In particular there is no L<telnet(1)> command. You can "
21707 "make TCP connections from the shell using the magical C</dev/tcp/"
21708 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21712 #: ../rescue/virt-rescue.pod:249
21715 " exec 3<>/dev/tcp/redhat.com/80\n"
21716 " echo \"GET /\" >&3\n"
21722 #: ../rescue/virt-rescue.pod:253
21723 msgid "See L<bash(1)> for more details."
21727 #: ../rescue/virt-rescue.pod:259
21729 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
21730 "ENVIRONMENT VARIABLES> for the complete list."
21734 #: ../rescue/virt-rescue.pod:286
21737 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21738 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21739 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21742 "libguestfs.org/>."
21744 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21745 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21746 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21749 #: ../resize/virt-resize.pod:5
21750 msgid "virt-resize - Resize a virtual machine disk"
21754 #: ../resize/virt-resize.pod:9
21757 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21758 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21759 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21764 #: ../resize/virt-resize.pod:15
21766 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21767 "larger or smaller overall, and resizing or deleting any partitions contained "
21772 #: ../resize/virt-resize.pod:19
21774 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
21775 "not> be used on live virtual machines - for consistent results, shut the "
21776 "virtual machine down before resizing it."
21780 #: ../resize/virt-resize.pod:23
21782 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21783 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21787 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
21788 #: ../src/guestfs.pod:1396 ../src/guestfs.pod:2466
21793 #: ../resize/virt-resize.pod:33
21795 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21796 "fill the extra 5GB of space."
21800 #: ../resize/virt-resize.pod:36
21803 " virt-filesystems --long -h --all -a olddisk\n"
21808 #: ../resize/virt-resize.pod:38
21811 " truncate -r olddisk newdisk\n"
21812 " truncate -s +5G newdisk\n"
21817 #: ../resize/virt-resize.pod:41
21820 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21821 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21826 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
21827 #: ../src/guestfs.pod:1400 ../src/guestfs.pod:2491
21832 #: ../resize/virt-resize.pod:46
21834 "As above, but make the /boot partition 200MB bigger, while giving the "
21835 "remaining space to /dev/sda2:"
21839 #: ../resize/virt-resize.pod:49
21842 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21843 " olddisk newdisk\n"
21848 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1406
21853 #: ../resize/virt-resize.pod:54
21855 "As in the first example, but expand a logical volume as the final step. "
21856 "This is what you would typically use for Linux guests that use LVM:"
21860 #: ../resize/virt-resize.pod:58
21863 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21864 " olddisk newdisk\n"
21869 #: ../resize/virt-resize.pod:61
21874 #: ../resize/virt-resize.pod:63
21876 "As in the first example, but the output format will be qcow2 instead of a "
21881 #: ../resize/virt-resize.pod:66
21884 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21885 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21890 #: ../resize/virt-resize.pod:71
21891 msgid "DETAILED USAGE"
21895 #: ../resize/virt-resize.pod:73
21896 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21900 #: ../resize/virt-resize.pod:77
21901 msgid "1. Shut down the virtual machine"
21905 #: ../resize/virt-resize.pod:79
21906 msgid "2. Locate input disk image"
21910 #: ../resize/virt-resize.pod:81
21912 "Locate the input disk image (ie. the file or device on the host containing "
21913 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
21914 "dumpxml> like this to find the disk image name:"
21918 #: ../resize/virt-resize.pod:85
21921 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21922 " Found 1 nodes:\n"
21924 " <source dev=\"/dev/vg/lv_guest\" />\n"
21929 #: ../resize/virt-resize.pod:90
21930 msgid "3. Look at current sizing"
21934 #: ../resize/virt-resize.pod:92
21935 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21939 #: ../resize/virt-resize.pod:95
21942 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21943 " Name Type Size Parent\n"
21944 " /dev/sda1 partition 101M /dev/sda\n"
21945 " /dev/sda2 partition 7.9G /dev/sda\n"
21946 " /dev/sda device 8.0G -\n"
21951 #: ../resize/virt-resize.pod:101
21953 "(This example is a virtual machine with an 8 GB disk which we would like to "
21954 "expand up to 10 GB)."
21958 #: ../resize/virt-resize.pod:104
21959 msgid "4. Create output disk"
21963 #: ../resize/virt-resize.pod:106
21965 "Virt-resize cannot do in-place disk modifications. You have to have space "
21966 "to store the resized output disk."
21970 #: ../resize/virt-resize.pod:109
21972 "To store the resized disk image in a file, create a file of a suitable size:"
21976 #: ../resize/virt-resize.pod:112
21979 " # rm -f outdisk\n"
21980 " # truncate -s 10G outdisk\n"
21985 #: ../resize/virt-resize.pod:115
21986 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21990 #: ../resize/virt-resize.pod:117
21993 " # lvcreate -L 10G -n lv_name vg_name\n"
21998 #: ../resize/virt-resize.pod:119
21999 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22003 #: ../resize/virt-resize.pod:121
22006 " # virsh pool-list\n"
22007 " # virsh vol-create-as poolname newvol 10G\n"
22012 #: ../resize/virt-resize.pod:124
22017 #: ../resize/virt-resize.pod:126
22019 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22020 "file) and the output disk. The output disk is the one created in the "
22025 #: ../resize/virt-resize.pod:130
22028 " # virt-resize indisk outdisk\n"
22033 #: ../resize/virt-resize.pod:132
22035 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22036 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22037 "larger, then an extra, empty partition is created at the end of the disk "
22038 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22043 #: ../resize/virt-resize.pod:138
22045 "More realistically you'd want to expand existing partitions in the disk "
22046 "image by passing extra options (for the full list see the L</OPTIONS> "
22051 #: ../resize/virt-resize.pod:142
22053 "L</--expand> is the most useful option. It expands the named partition "
22054 "within the disk to fill any extra space:"
22058 #: ../resize/virt-resize.pod:145
22061 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22066 #: ../resize/virt-resize.pod:147
22068 "(In this case, an extra partition is I<not> created at the end of the disk, "
22069 "because there will be no unused space)."
22073 #: ../resize/virt-resize.pod:150
22075 "L</--resize> is the other commonly used option. The following would "
22076 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22077 "rest of the available space:"
22081 #: ../resize/virt-resize.pod:154
22084 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22085 " indisk outdisk\n"
22090 #: ../resize/virt-resize.pod:157
22092 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22093 "if virt-resize knows how, it will resize the contents, the equivalent of "
22094 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22095 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22096 "filesystems, so you would have to online resize them after booting the guest."
22100 #: ../resize/virt-resize.pod:164
22101 msgid "Other options are covered below."
22105 #: ../resize/virt-resize.pod:166
22110 #: ../resize/virt-resize.pod:168
22111 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22115 #: ../resize/virt-resize.pod:170
22116 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22120 #: ../resize/virt-resize.pod:172
22123 #| " edit filename\n"
22126 " # virsh edit guestname\n"
22129 " edit назва_файла\n"
22133 #: ../resize/virt-resize.pod:174
22135 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22136 "html#elementsDisks>"
22140 #: ../resize/virt-resize.pod:177
22141 msgid "Then start up the domain with the new, resized disk:"
22145 #: ../resize/virt-resize.pod:179
22148 #| " ln-s target linkname\n"
22151 " # virsh start guestname\n"
22154 " ln-s призначення назва_посилання\n"
22158 #: ../resize/virt-resize.pod:181
22160 "and check that it still works. See also the L</NOTES> section below for "
22161 "additional information."
22165 #: ../resize/virt-resize.pod:184
22166 msgid "7. Resize LVs etc inside the guest"
22170 #: ../resize/virt-resize.pod:186
22171 msgid "(This can also be done offline using L<guestfish(1)>)"
22175 #: ../resize/virt-resize.pod:188
22177 "Once the guest has booted you should see the new space available, at least "
22178 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22179 "may need to resize LVs inside PVs, and also resize filesystem types that "
22180 "virt-resize does not know how to expand."
22184 #: ../resize/virt-resize.pod:195
22185 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22189 #: ../resize/virt-resize.pod:197
22191 "Shrinking is somewhat more complex than expanding, and only an overview is "
22196 #: ../resize/virt-resize.pod:200
22198 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22199 "filesystems). The user has to shrink content before passing the disk image "
22200 "to virt-resize, and virt-resize will check that the content has been shrunk "
22205 #: ../resize/virt-resize.pod:205
22206 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22210 #: ../resize/virt-resize.pod:207
22212 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22213 "steps 3 and 4 above to allocate a new disk image."
22217 #: ../resize/virt-resize.pod:210
22219 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22223 #: ../resize/virt-resize.pod:213
22224 msgid "IGNORING OR DELETING PARTITIONS"
22228 #: ../resize/virt-resize.pod:215
22230 "virt-resize also gives a convenient way to ignore or delete partitions when "
22231 "copying from the input disk to the output disk. Ignoring a partition speeds "
22232 "up the copy where you don't care about the existing contents of a "
22233 "partition. Deleting a partition removes it completely, but note that it "
22234 "also renumbers any partitions after the one which is deleted, which can "
22235 "leave some guests unbootable."
22239 #: ../resize/virt-resize.pod:222
22240 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22244 #: ../resize/virt-resize.pod:224
22246 "If the input disk is in qcow2 format, then you may prefer that the output is "
22247 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22248 "the fly. The output format is simply determined by the format of the empty "
22249 "output container that you provide. Thus to create qcow2 output, use:"
22253 #: ../resize/virt-resize.pod:230
22256 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22261 #: ../resize/virt-resize.pod:232
22262 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22266 #: ../resize/virt-resize.pod:234
22267 msgid "Similarly, to get non-sparse raw output use:"
22271 #: ../resize/virt-resize.pod:236
22274 #| " fallocate path len\n"
22277 " fallocate -l size outdisk\n"
22280 " fallocate шлях довжина\n"
22284 #: ../resize/virt-resize.pod:238
22286 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22287 "dev/zero of=outdisk bs=1M count=..>)"
22291 #: ../resize/virt-resize.pod:247
22292 msgid "Display help."
22296 #: ../resize/virt-resize.pod:249
22301 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22302 #: ../tools/virt-win-reg.pl:120
22304 msgstr "B<--debug>"
22307 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22308 msgid "Enable debugging messages."
22312 #: ../resize/virt-resize.pod:255
22314 #| msgid "B<--no-dest-paths>"
22315 msgid "B<--delete part>"
22316 msgstr "B<--no-dest-paths>"
22319 #: ../resize/virt-resize.pod:257
22321 "Delete the named partition. It would be more accurate to describe this as "
22322 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22323 "the original disk image is left intact."
22327 #: ../resize/virt-resize.pod:261
22329 "Note that when you delete a partition, then anything contained in the "
22330 "partition is also deleted. Furthermore, this causes any partitions that "
22331 "come after to be I<renumbered>, which can easily make your guest unbootable."
22335 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22336 #: ../resize/virt-resize.pod:448
22337 msgid "You can give this option multiple times."
22341 #: ../resize/virt-resize.pod:268
22343 #| msgid "B<--partition>"
22344 msgid "B<--expand part>"
22345 msgstr "B<--partition>"
22348 #: ../resize/virt-resize.pod:270
22350 "Expand the named partition so it uses up all extra space (space left over "
22351 "after any other resize changes that you request have been done)."
22355 #: ../resize/virt-resize.pod:273
22357 "If virt-resize knows how, it will expand the direct content of the "
22358 "partition. For example, if the partition is an LVM PV, it will expand the "
22359 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22360 "content it doesn't know about alone."
22364 #: ../resize/virt-resize.pod:278
22365 msgid "Currently virt-resize can resize:"
22369 #: ../resize/virt-resize.pod:284
22370 msgid "ext2, ext3 and ext4 filesystems."
22374 #: ../resize/virt-resize.pod:288
22375 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22379 #: ../resize/virt-resize.pod:290
22381 "The filesystem must have been shut down consistently last time it was used. "
22382 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22383 "consistency check, so at the first boot after resizing Windows will check "
22388 #: ../resize/virt-resize.pod:297
22390 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22391 "inside the PV, but see the I<--LV-expand> option. The user could also "
22392 "resize LVs as desired after boot."
22396 #: ../resize/virt-resize.pod:303
22397 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22401 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
22402 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22406 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22407 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22408 #: ../tools/virt-win-reg.pl:142
22409 msgid "B<--format> raw"
22413 #: ../resize/virt-resize.pod:311
22415 "Specify the format of the input disk image. If this flag is not given then "
22416 "it is auto-detected from the image itself."
22420 #: ../resize/virt-resize.pod:317
22422 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22423 "AND NON-SPARSE RAW FORMATS>."
22427 #: ../resize/virt-resize.pod:320
22429 #| msgid "B<--format>"
22430 msgid "B<--ignore part>"
22431 msgstr "B<--format>"
22434 #: ../resize/virt-resize.pod:322
22436 "Ignore the named partition. Effectively this means the partition is "
22437 "allocated on the destination disk, but the content is not copied across from "
22438 "the source disk. The content of the partition will be blank (all zero "
22443 #: ../resize/virt-resize.pod:329
22444 msgid "B<--LV-expand logvol>"
22448 #: ../resize/virt-resize.pod:331
22450 "This takes the logical volume and, as a final step, expands it to fill all "
22451 "the space available in its volume group. A typical usage, assuming a Linux "
22452 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22453 "lv_root> would be:"
22457 #: ../resize/virt-resize.pod:336
22460 " virt-resize indisk outdisk \\\n"
22461 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22466 #: ../resize/virt-resize.pod:339
22468 "This would first expand the partition (and PV), and then expand the root "
22469 "device to fill the extra space in the PV."
22473 #: ../resize/virt-resize.pod:342
22475 "The contents of the LV are also resized if virt-resize knows how to do "
22476 "that. You can stop virt-resize from trying to expand the content by using "
22477 "the option I<--no-expand-content>."
22481 #: ../resize/virt-resize.pod:346
22482 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22486 #: ../resize/virt-resize.pod:348
22488 "You can give this option multiple times, I<but> it doesn't make sense to do "
22489 "this unless the logical volumes you specify are all in different volume "
22494 #: ../resize/virt-resize.pod:354
22496 #| msgid "B<--debug>"
22497 msgid "B<--dryrun>"
22498 msgstr "B<--debug>"
22501 #: ../resize/virt-resize.pod:356
22502 msgid "Print a summary of what would be done, but don't do anything."
22506 #: ../resize/virt-resize.pod:358
22507 msgid "B<--no-copy-boot-loader>"
22511 #: ../resize/virt-resize.pod:360
22513 "By default, virt-resize copies over some sectors at the start of the disk "
22514 "(up to the beginning of the first partition). Commonly these sectors "
22515 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22516 "in order for the guest to boot correctly."
22520 #: ../resize/virt-resize.pod:365
22522 "If you specify this flag, then this initial copy is not done. You may need "
22523 "to reinstall the boot loader in this case."
22527 #: ../resize/virt-resize.pod:368
22529 #| msgid "B<--partition>"
22530 msgid "B<--no-extra-partition>"
22531 msgstr "B<--partition>"
22534 #: ../resize/virt-resize.pod:370
22536 "By default, virt-resize creates an extra partition if there is any extra, "
22537 "unused space after all resizing has happened. Use this option to prevent "
22538 "the extra partition from being created. If you do this then the extra space "
22539 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22540 "tool in the guest."
22544 #: ../resize/virt-resize.pod:376
22546 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22551 #: ../resize/virt-resize.pod:379
22553 #| msgid "B<--no-dest-paths>"
22554 msgid "B<--no-expand-content>"
22555 msgstr "B<--no-dest-paths>"
22558 #: ../resize/virt-resize.pod:381
22560 "By default, virt-resize will try to expand the direct contents of "
22561 "partitions, if it knows how (see I<--expand> option above)."
22565 #: ../resize/virt-resize.pod:384
22567 "If you give the I<--no-expand-content> option then virt-resize will not "
22572 #: ../resize/virt-resize.pod:387
22574 #| msgid "ntfsresize-size"
22575 msgid "B<--ntfsresize-force>"
22576 msgstr "ntfsresize-size"
22579 #: ../resize/virt-resize.pod:389
22581 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22582 "the NTFS disk is marked as needing a consistency check. You have to use "
22583 "this option if you want to resize a Windows guest multiple times without "
22584 "booting into Windows between each resize."
22588 #: ../resize/virt-resize.pod:395
22590 #| msgid "B<--format>"
22591 msgid "B<--output-format> raw"
22592 msgstr "B<--format>"
22595 #: ../resize/virt-resize.pod:397
22597 "Specify the format of the output disk image. If this flag is not given then "
22598 "it is auto-detected from the image itself."
22602 #: ../resize/virt-resize.pod:403
22604 "Note that this option I<does not create> the output format. This option "
22605 "just tells libguestfs what it is so it doesn't try to guess it. You still "
22606 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
22607 "SPARSE RAW FORMATS>."
22611 #: ../resize/virt-resize.pod:408
22616 #: ../resize/virt-resize.pod:410
22618 #| msgid "B<--live>"
22623 #: ../resize/virt-resize.pod:412
22624 msgid "Don't print the summary."
22628 #: ../resize/virt-resize.pod:414
22630 #| msgid "B<part_size>"
22631 msgid "B<--resize part=size>"
22632 msgstr "B<part_size>"
22635 #: ../resize/virt-resize.pod:416
22637 "Resize the named partition (expanding or shrinking it) so that it has the "
22642 #: ../resize/virt-resize.pod:419
22644 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22645 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22646 "size; or as a relative number or percentage. For example:"
22650 #: ../resize/virt-resize.pod:425
22653 #| " hexedit /dev/sda 1M\n"
22656 " --resize /dev/sda2=10G\n"
22659 " hexedit /dev/sda 1M\n"
22663 #: ../resize/virt-resize.pod:427
22666 #| " pvresize device\n"
22669 " --resize /dev/sda4=90%\n"
22672 " pvresize пристрій\n"
22676 #: ../resize/virt-resize.pod:429
22679 #| " hexedit /dev/sda 1M\n"
22682 " --resize /dev/sda2=+1G\n"
22685 " hexedit /dev/sda 1M\n"
22689 #: ../resize/virt-resize.pod:431
22692 #| " hexedit /dev/sda 1M\n"
22695 " --resize /dev/sda2=-200M\n"
22698 " hexedit /dev/sda 1M\n"
22702 #: ../resize/virt-resize.pod:433
22705 #| " hexedit /dev/sda 1M\n"
22708 " --resize /dev/sda1=+128K\n"
22711 " hexedit /dev/sda 1M\n"
22715 #: ../resize/virt-resize.pod:435
22718 #| " hexedit /dev/sda 1M\n"
22721 " --resize /dev/sda1=+10%\n"
22724 " hexedit /dev/sda 1M\n"
22728 #: ../resize/virt-resize.pod:437
22731 #| " hexedit /dev/sda 1M\n"
22734 " --resize /dev/sda1=-10%\n"
22737 " hexedit /dev/sda 1M\n"
22741 #: ../resize/virt-resize.pod:439
22743 "You can increase the size of any partition. Virt-resize will expand the "
22744 "direct content of the partition if it knows how (see I<--expand> below)."
22748 #: ../resize/virt-resize.pod:443
22750 "You can only I<decrease> the size of partitions that contain filesystems or "
22751 "PVs which have already been shrunk. Virt-resize will check this has been "
22752 "done before proceeding, or else will print an error (see also I<--resize-"
22757 #: ../resize/virt-resize.pod:450
22758 msgid "B<--resize-force part=size>"
22762 #: ../resize/virt-resize.pod:452
22764 "This is the same as I<--resize> except that it will let you decrease the "
22765 "size of any partition. Generally this means you will lose any data which "
22766 "was at the end of the partition you shrink, but you may not care about that "
22767 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22768 "as a swap partition)."
22772 #: ../resize/virt-resize.pod:458
22773 msgid "See also the I<--ignore> option."
22777 #: ../resize/virt-resize.pod:460
22779 #| msgid "B<--partition>"
22780 msgid "B<--shrink part>"
22781 msgstr "B<--partition>"
22784 #: ../resize/virt-resize.pod:462
22786 "Shrink the named partition until the overall disk image fits in the "
22787 "destination. The named partition B<must> contain a filesystem or PV which "
22788 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22789 "online tools). Virt-resize will check this and give an error if it has not "
22794 #: ../resize/virt-resize.pod:468
22796 "The amount by which the overall disk must be shrunk (after carrying out all "
22797 "other operations requested by the user) is called the \"deficit\". For "
22798 "example, a straight copy (assume no other operations) from a 5GB disk image "
22799 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
22800 "would give an error unless the user specified a partition to shrink and that "
22801 "partition had more than a gigabyte of free space."
22805 #: ../resize/virt-resize.pod:488
22806 msgid "\"Partition 1 does not end on cylinder boundary.\""
22810 #: ../resize/virt-resize.pod:490
22812 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
22813 "means the partitions will not be aligned to the ancient CHS geometry. "
22814 "However CHS geometry is meaningless for disks manufactured since the early "
22815 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
22816 "cylinders is not required by any modern operating system."
22820 #: ../resize/virt-resize.pod:497
22821 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22825 #: ../resize/virt-resize.pod:499
22827 "In Windows Vista and later versions, Microsoft switched to using a separate "
22828 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
22829 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
22830 "the boot partition. Doing so seems to break the guest completely. However "
22831 "expanding the second partition (ie. C: drive) should work."
22835 #: ../resize/virt-resize.pod:506
22837 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22838 "NTFS partitions have been expanded. This is just a safety check and (unless "
22839 "it find errors) is nothing to worry about."
22843 #: ../resize/virt-resize.pod:510
22844 msgid "GUEST BOOT STUCK AT \"GRUB\""
22848 #: ../resize/virt-resize.pod:512
22850 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22851 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
22852 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22853 "although we think is to do with partition alignment."
22857 #: ../resize/virt-resize.pod:517
22860 " guestfish -i -a newdisk\n"
22861 " ><fs> cat /boot/grub/device.map\n"
22862 " # check the contents of this file are sensible or\n"
22863 " # edit the file if necessary\n"
22864 " ><fs> grub-install / /dev/vda\n"
22870 #: ../resize/virt-resize.pod:524
22872 "For more flexible guest reconfiguration, including if you need to specify "
22873 "other parameters to grub-install, use L<virt-rescue(1)>."
22877 #: ../resize/virt-resize.pod:527
22878 msgid "ALTERNATIVE TOOLS"
22882 #: ../resize/virt-resize.pod:529
22884 "There are several proprietary tools for resizing partitions. We won't "
22885 "mention any here."
22889 #: ../resize/virt-resize.pod:532
22891 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22892 "operations on disk images. They can resize and move partitions, but I don't "
22893 "think they can do anything with the contents, and they certainly don't "
22898 #: ../resize/virt-resize.pod:537
22900 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22901 "but at a much lower level. You will probably end up hand-calculating sector "
22902 "offsets, which is something that virt-resize was designed to avoid. If you "
22903 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22908 #: ../resize/virt-resize.pod:552
22910 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22911 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22912 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22913 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22917 #: ../ruby/examples/guestfs-ruby.pod:5
22918 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22922 #: ../ruby/examples/guestfs-ruby.pod:9
22925 " require 'guestfs'\n"
22926 " g = Guestfs::Guestfs.new()\n"
22927 " g.add_drive_opts(\"disk.img\",\n"
22928 " :readonly => 1, :format => \"raw\")\n"
22934 #: ../ruby/examples/guestfs-ruby.pod:17
22936 "This manual page documents how to call libguestfs from the Ruby programming "
22937 "language. This page just documents the differences from the C API and gives "
22938 "some examples. If you are not familiar with using libguestfs, you also need "
22939 "to read L<guestfs(3)>."
22943 #: ../ruby/examples/guestfs-ruby.pod:24
22945 "Errors from libguestfs functions are mapped into the C<Error> exception. "
22946 "This has a single parameter which is the error message (a string)."
22950 #: ../ruby/examples/guestfs-ruby.pod:38
22953 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22954 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22955 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22957 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
22958 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
22959 "libguestfs.org/>."
22961 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22962 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22963 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22966 #: ../src/guestfs-actions.pod:1
22967 msgid "guestfs_add_cdrom"
22971 #: ../src/guestfs-actions.pod:3
22975 " guestfs_add_cdrom (guestfs_h *g,\n"
22976 " const char *filename);\n"
22981 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
22982 #: ../src/guestfs-actions.pod:270
22984 "I<This function is deprecated.> In new code, use the L</"
22985 "guestfs_add_drive_opts> call instead."
22989 #: ../src/guestfs-actions.pod:24
22991 "This call checks for the existence of C<filename>. This stops you from "
22992 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22993 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
22998 #: ../src/guestfs-actions.pod:31
23000 "If you just want to add an ISO file (often you use this as an efficient way "
23001 "to transfer large files into the guest), then you should probably use "
23002 "C<guestfs_add_drive_ro> instead."
23006 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23007 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23008 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23009 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23010 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23011 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23012 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23013 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23014 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23015 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23016 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23017 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23018 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23019 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23020 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23021 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23022 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23023 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
23024 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23025 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23026 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
23027 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
23028 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
23029 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
23030 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
23031 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
23032 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
23033 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
23034 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
23035 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
23036 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
23037 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
23038 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
23039 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
23040 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
23041 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
23042 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
23043 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
23044 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
23045 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635
23046 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
23047 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
23048 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
23049 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
23050 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
23051 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980
23052 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
23053 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
23054 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172
23055 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262
23056 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
23057 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
23058 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
23059 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
23060 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
23061 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
23062 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
23063 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
23064 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
23065 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
23066 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
23067 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
23068 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
23069 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
23070 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
23071 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
23072 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
23073 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
23074 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
23075 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
23076 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578
23077 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726
23078 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
23079 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
23080 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
23081 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23082 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
23083 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
23084 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
23085 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
23086 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
23087 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
23088 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
23089 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
23090 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
23091 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
23092 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609
23093 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
23094 #: ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782
23095 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
23096 msgid "This function returns 0 on success or -1 on error."
23100 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23101 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23102 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23103 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
23104 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
23105 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
23106 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
23107 #: ../src/guestfs-actions.pod:7611
23108 msgid "(Added in 0.3)"
23112 #: ../src/guestfs-actions.pod:41
23113 msgid "guestfs_add_domain"
23117 #: ../src/guestfs-actions.pod:43
23121 " guestfs_add_domain (guestfs_h *g,\n"
23122 " const char *dom,\n"
23128 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23129 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
23130 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
23131 #: ../src/guestfs-actions.pod:5183
23133 "You may supply a list of optional arguments to this call. Use zero or more "
23134 "of the following pairs of parameters, and terminate the list with C<-1> on "
23135 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23139 #: ../src/guestfs-actions.pod:53
23142 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23143 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23144 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23145 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23146 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23151 #: ../src/guestfs-actions.pod:59
23153 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23154 "It works by connecting to libvirt, requesting the domain and domain XML from "
23155 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23160 #: ../src/guestfs-actions.pod:94
23162 "The other optional parameters are passed directly through to "
23163 "C<guestfs_add_drive_opts>."
23167 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23168 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23169 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23170 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23171 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23172 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23173 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23174 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
23175 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
23176 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
23177 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
23178 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
23179 #: ../src/guestfs-actions.pod:7648
23180 msgid "On error this function returns -1."
23184 #: ../src/guestfs-actions.pod:99
23185 msgid "(Added in 1.7.4)"
23189 #: ../src/guestfs-actions.pod:101
23190 msgid "guestfs_add_domain_va"
23194 #: ../src/guestfs-actions.pod:103
23198 " guestfs_add_domain_va (guestfs_h *g,\n"
23199 " const char *dom,\n"
23200 " va_list args);\n"
23205 #: ../src/guestfs-actions.pod:108
23206 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23210 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23211 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23212 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23213 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
23214 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
23215 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
23216 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
23217 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23218 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23221 #: ../src/guestfs-actions.pod:112
23222 msgid "guestfs_add_domain_argv"
23223 msgstr "guestfs_add_domain_argv"
23226 #: ../src/guestfs-actions.pod:114
23230 " guestfs_add_domain_argv (guestfs_h *g,\n"
23231 " const char *dom,\n"
23232 " const struct guestfs_add_domain_argv *optargs);\n"
23237 #: ../src/guestfs-actions.pod:119
23238 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23242 #: ../src/guestfs-actions.pod:123
23243 msgid "guestfs_add_drive"
23247 #: ../src/guestfs-actions.pod:125
23251 " guestfs_add_drive (guestfs_h *g,\n"
23252 " const char *filename);\n"
23257 #: ../src/guestfs-actions.pod:129
23259 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23260 "optional parameters, so the disk is added writable, with the format being "
23261 "detected automatically."
23265 #: ../src/guestfs-actions.pod:133
23267 "Automatic detection of the format opens you up to a potential security hole "
23268 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23269 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23270 "you should think about replacing calls to this function with calls to "
23271 "C<guestfs_add_drive_opts>, and specifying the format."
23275 #: ../src/guestfs-actions.pod:144
23276 msgid "guestfs_add_drive_opts"
23280 #: ../src/guestfs-actions.pod:146
23284 " guestfs_add_drive_opts (guestfs_h *g,\n"
23285 " const char *filename,\n"
23291 #: ../src/guestfs-actions.pod:156
23294 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23295 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23296 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23301 #: ../src/guestfs-actions.pod:185
23303 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23304 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23305 "Possible formats include C<raw> and C<qcow2>."
23309 #: ../src/guestfs-actions.pod:196
23311 "This rarely-used option lets you emulate the behaviour of the deprecated "
23312 "C<guestfs_add_drive_with_if> call (q.v.)"
23316 #: ../src/guestfs-actions.pod:203
23317 msgid "(Added in 1.5.23)"
23321 #: ../src/guestfs-actions.pod:205
23322 msgid "guestfs_add_drive_opts_va"
23326 #: ../src/guestfs-actions.pod:207
23330 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23331 " const char *filename,\n"
23332 " va_list args);\n"
23337 #: ../src/guestfs-actions.pod:212
23338 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23342 #: ../src/guestfs-actions.pod:216
23343 msgid "guestfs_add_drive_opts_argv"
23347 #: ../src/guestfs-actions.pod:218
23351 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23352 " const char *filename,\n"
23353 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23358 #: ../src/guestfs-actions.pod:223
23359 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23363 #: ../src/guestfs-actions.pod:227
23364 msgid "guestfs_add_drive_ro"
23368 #: ../src/guestfs-actions.pod:229
23372 " guestfs_add_drive_ro (guestfs_h *g,\n"
23373 " const char *filename);\n"
23378 #: ../src/guestfs-actions.pod:233
23380 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23381 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23382 "disk is added read-only, with the format being detected automatically."
23386 #: ../src/guestfs-actions.pod:240
23387 msgid "(Added in 1.0.38)"
23391 #: ../src/guestfs-actions.pod:242
23392 msgid "guestfs_add_drive_ro_with_if"
23396 #: ../src/guestfs-actions.pod:244
23400 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23401 " const char *filename,\n"
23402 " const char *iface);\n"
23407 #: ../src/guestfs-actions.pod:256
23409 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23410 "QEMU interface emulation to use at run time."
23414 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23415 #: ../src/guestfs-actions.pod:2436
23416 msgid "(Added in 1.0.84)"
23420 #: ../src/guestfs-actions.pod:263
23421 msgid "guestfs_add_drive_with_if"
23425 #: ../src/guestfs-actions.pod:265
23429 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23430 " const char *filename,\n"
23431 " const char *iface);\n"
23436 #: ../src/guestfs-actions.pod:277
23438 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23439 "QEMU interface emulation to use at run time."
23443 #: ../src/guestfs-actions.pod:284
23444 msgid "guestfs_aug_clear"
23448 #: ../src/guestfs-actions.pod:286
23452 " guestfs_aug_clear (guestfs_h *g,\n"
23453 " const char *augpath);\n"
23458 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23459 msgid "(Added in 1.3.4)"
23463 #: ../src/guestfs-actions.pod:297
23464 msgid "guestfs_aug_close"
23468 #: ../src/guestfs-actions.pod:299
23472 " guestfs_aug_close (guestfs_h *g);\n"
23477 #: ../src/guestfs-actions.pod:302
23479 "Close the current Augeas handle and free up any resources used by it. After "
23480 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23481 "any other Augeas functions."
23485 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23486 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23487 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23488 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23489 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23490 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23491 #: ../src/guestfs-actions.pod:5851
23492 msgid "(Added in 0.7)"
23496 #: ../src/guestfs-actions.pod:311
23497 msgid "guestfs_aug_defnode"
23501 #: ../src/guestfs-actions.pod:313
23504 " struct guestfs_int_bool *\n"
23505 " guestfs_aug_defnode (guestfs_h *g,\n"
23506 " const char *name,\n"
23507 " const char *expr,\n"
23508 " const char *val);\n"
23513 #: ../src/guestfs-actions.pod:322
23515 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23516 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
23517 "containing that single node."
23521 #: ../src/guestfs-actions.pod:330
23523 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23524 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
23528 #: ../src/guestfs-actions.pod:336
23529 msgid "guestfs_aug_defvar"
23533 #: ../src/guestfs-actions.pod:338
23537 " guestfs_aug_defvar (guestfs_h *g,\n"
23538 " const char *name,\n"
23539 " const char *expr);\n"
23544 #: ../src/guestfs-actions.pod:354
23545 msgid "guestfs_aug_get"
23549 #: ../src/guestfs-actions.pod:356
23553 " guestfs_aug_get (guestfs_h *g,\n"
23554 " const char *augpath);\n"
23559 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23560 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23561 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23562 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23563 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23564 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23565 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23566 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
23567 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
23568 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
23569 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
23570 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
23571 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
23572 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
23573 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
23574 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
23575 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
23576 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
23577 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
23578 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
23579 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672
23580 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
23581 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
23582 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
23584 "This function returns a string, or NULL on error. I<The caller must free "
23585 "the returned string after use>."
23589 #: ../src/guestfs-actions.pod:368
23590 msgid "guestfs_aug_init"
23594 #: ../src/guestfs-actions.pod:370
23598 " guestfs_aug_init (guestfs_h *g,\n"
23599 " const char *root,\n"
23605 #: ../src/guestfs-actions.pod:379
23606 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23610 #: ../src/guestfs-actions.pod:404
23612 "This option is only useful when debugging Augeas lenses. Use of this option "
23613 "may require additional memory for the libguestfs appliance. You may need to "
23614 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23615 "C<guestfs_set_memsize>."
23619 #: ../src/guestfs-actions.pod:419
23620 msgid "Do not load the tree in C<guestfs_aug_init>."
23624 #: ../src/guestfs-actions.pod:423
23625 msgid "To close the handle, you can call C<guestfs_aug_close>."
23629 #: ../src/guestfs-actions.pod:431
23630 msgid "guestfs_aug_insert"
23634 #: ../src/guestfs-actions.pod:433
23638 " guestfs_aug_insert (guestfs_h *g,\n"
23639 " const char *augpath,\n"
23640 " const char *label,\n"
23646 #: ../src/guestfs-actions.pod:451
23647 msgid "guestfs_aug_load"
23651 #: ../src/guestfs-actions.pod:453
23655 " guestfs_aug_load (guestfs_h *g);\n"
23660 #: ../src/guestfs-actions.pod:465
23661 msgid "guestfs_aug_ls"
23665 #: ../src/guestfs-actions.pod:467
23669 " guestfs_aug_ls (guestfs_h *g,\n"
23670 " const char *augpath);\n"
23675 #: ../src/guestfs-actions.pod:471
23677 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23678 "sorting the resulting nodes into alphabetical order."
23682 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23683 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23684 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23685 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23686 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23687 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23688 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
23689 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
23690 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
23691 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
23692 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
23693 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
23694 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
23695 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
23696 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
23697 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
23698 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
23699 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
23700 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
23701 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
23702 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
23703 #: ../src/guestfs-actions.pod:7932
23705 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23706 ">), or NULL if there was an error. I<The caller must free the strings and "
23707 "the array after use>."
23711 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23712 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23713 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
23714 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
23715 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
23716 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
23717 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
23718 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
23719 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
23720 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
23721 #: ../src/guestfs-actions.pod:7723
23722 msgid "(Added in 0.8)"
23726 #: ../src/guestfs-actions.pod:480
23727 msgid "guestfs_aug_match"
23731 #: ../src/guestfs-actions.pod:482
23735 " guestfs_aug_match (guestfs_h *g,\n"
23736 " const char *augpath);\n"
23741 #: ../src/guestfs-actions.pod:496
23742 msgid "guestfs_aug_mv"
23746 #: ../src/guestfs-actions.pod:498
23750 " guestfs_aug_mv (guestfs_h *g,\n"
23751 " const char *src,\n"
23752 " const char *dest);\n"
23757 #: ../src/guestfs-actions.pod:510
23758 msgid "guestfs_aug_rm"
23762 #: ../src/guestfs-actions.pod:512
23766 " guestfs_aug_rm (guestfs_h *g,\n"
23767 " const char *augpath);\n"
23772 #: ../src/guestfs-actions.pod:524
23773 msgid "guestfs_aug_save"
23777 #: ../src/guestfs-actions.pod:526
23781 " guestfs_aug_save (guestfs_h *g);\n"
23786 #: ../src/guestfs-actions.pod:531
23788 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23793 #: ../src/guestfs-actions.pod:538
23794 msgid "guestfs_aug_set"
23798 #: ../src/guestfs-actions.pod:540
23802 " guestfs_aug_set (guestfs_h *g,\n"
23803 " const char *augpath,\n"
23804 " const char *val);\n"
23809 #: ../src/guestfs-actions.pod:547
23811 "In the Augeas API, it is possible to clear a node by setting the value to "
23812 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
23813 "this call. Instead you must use the C<guestfs_aug_clear> call."
23817 #: ../src/guestfs-actions.pod:556
23818 msgid "guestfs_available"
23822 #: ../src/guestfs-actions.pod:558
23826 " guestfs_available (guestfs_h *g,\n"
23827 " char *const *groups);\n"
23832 #: ../src/guestfs-actions.pod:566
23834 "The libguestfs groups, and the functions that those groups correspond to, "
23835 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
23836 "runtime by calling C<guestfs_available_all_groups>."
23840 #: ../src/guestfs-actions.pod:590
23841 msgid "You must call C<guestfs_launch> before calling this function."
23845 #: ../src/guestfs-actions.pod:612
23847 "This call was added in version C<1.0.80>. In previous versions of "
23848 "libguestfs all you could do would be to speculatively execute a command to "
23849 "find out if the daemon implemented it. See also C<guestfs_version>."
23853 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23854 msgid "(Added in 1.0.80)"
23858 #: ../src/guestfs-actions.pod:623
23859 msgid "guestfs_available_all_groups"
23863 #: ../src/guestfs-actions.pod:625
23867 " guestfs_available_all_groups (guestfs_h *g);\n"
23872 #: ../src/guestfs-actions.pod:628
23874 "This command returns a list of all optional groups that this daemon knows "
23875 "about. Note this returns both supported and unsupported groups. To find "
23876 "out which ones the daemon can actually support you have to call "
23877 "C<guestfs_available> on each member of the returned list."
23881 #: ../src/guestfs-actions.pod:634
23882 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23886 #: ../src/guestfs-actions.pod:640
23887 msgid "(Added in 1.3.15)"
23891 #: ../src/guestfs-actions.pod:642
23892 msgid "guestfs_base64_in"
23896 #: ../src/guestfs-actions.pod:644
23900 " guestfs_base64_in (guestfs_h *g,\n"
23901 " const char *base64file,\n"
23902 " const char *filename);\n"
23907 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23908 msgid "(Added in 1.3.5)"
23912 #: ../src/guestfs-actions.pod:656
23913 msgid "guestfs_base64_out"
23917 #: ../src/guestfs-actions.pod:658
23921 " guestfs_base64_out (guestfs_h *g,\n"
23922 " const char *filename,\n"
23923 " const char *base64file);\n"
23928 #: ../src/guestfs-actions.pod:670
23929 msgid "guestfs_blockdev_flushbufs"
23933 #: ../src/guestfs-actions.pod:672
23937 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23938 " const char *device);\n"
23943 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23944 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23945 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23946 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23947 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23948 msgid "(Added in 0.9.3)"
23952 #: ../src/guestfs-actions.pod:685
23953 msgid "guestfs_blockdev_getbsz"
23957 #: ../src/guestfs-actions.pod:687
23961 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23962 " const char *device);\n"
23967 #: ../src/guestfs-actions.pod:702
23968 msgid "guestfs_blockdev_getro"
23972 #: ../src/guestfs-actions.pod:704
23976 " guestfs_blockdev_getro (guestfs_h *g,\n"
23977 " const char *device);\n"
23982 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
23983 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
23984 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
23985 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
23986 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
23987 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
23988 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
23989 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
23990 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
23991 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
23992 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
23993 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
23994 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
23995 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
23996 #: ../src/guestfs-actions.pod:5344
23997 msgid "This function returns a C truth value on success or -1 on error."
24001 #: ../src/guestfs-actions.pod:717
24002 msgid "guestfs_blockdev_getsize64"
24006 #: ../src/guestfs-actions.pod:719
24010 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24011 " const char *device);\n"
24016 #: ../src/guestfs-actions.pod:725
24017 msgid "See also C<guestfs_blockdev_getsz>."
24021 #: ../src/guestfs-actions.pod:733
24022 msgid "guestfs_blockdev_getss"
24026 #: ../src/guestfs-actions.pod:735
24030 " guestfs_blockdev_getss (guestfs_h *g,\n"
24031 " const char *device);\n"
24036 #: ../src/guestfs-actions.pod:742
24038 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24043 #: ../src/guestfs-actions.pod:751
24044 msgid "guestfs_blockdev_getsz"
24048 #: ../src/guestfs-actions.pod:753
24052 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24053 " const char *device);\n"
24058 #: ../src/guestfs-actions.pod:760
24060 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24061 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24065 #: ../src/guestfs-actions.pod:770
24066 msgid "guestfs_blockdev_rereadpt"
24070 #: ../src/guestfs-actions.pod:772
24074 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24075 " const char *device);\n"
24080 #: ../src/guestfs-actions.pod:784
24081 msgid "guestfs_blockdev_setbsz"
24085 #: ../src/guestfs-actions.pod:786
24089 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24090 " const char *device,\n"
24091 " int blocksize);\n"
24096 #: ../src/guestfs-actions.pod:802
24097 msgid "guestfs_blockdev_setro"
24101 #: ../src/guestfs-actions.pod:804
24105 " guestfs_blockdev_setro (guestfs_h *g,\n"
24106 " const char *device);\n"
24111 #: ../src/guestfs-actions.pod:816
24112 msgid "guestfs_blockdev_setrw"
24116 #: ../src/guestfs-actions.pod:818
24120 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24121 " const char *device);\n"
24126 #: ../src/guestfs-actions.pod:830
24127 msgid "guestfs_btrfs_filesystem_resize"
24131 #: ../src/guestfs-actions.pod:832
24135 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24136 " const char *mountpoint,\n"
24142 #: ../src/guestfs-actions.pod:842
24145 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24150 #: ../src/guestfs-actions.pod:865
24151 msgid "(Added in 1.11.17)"
24155 #: ../src/guestfs-actions.pod:867
24156 msgid "guestfs_btrfs_filesystem_resize_va"
24160 #: ../src/guestfs-actions.pod:869
24164 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24165 " const char *mountpoint,\n"
24166 " va_list args);\n"
24171 #: ../src/guestfs-actions.pod:874
24172 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24176 #: ../src/guestfs-actions.pod:878
24177 msgid "guestfs_btrfs_filesystem_resize_argv"
24181 #: ../src/guestfs-actions.pod:880
24185 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24186 " const char *mountpoint,\n"
24187 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24192 #: ../src/guestfs-actions.pod:885
24193 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24197 #: ../src/guestfs-actions.pod:889
24198 msgid "guestfs_case_sensitive_path"
24202 #: ../src/guestfs-actions.pod:891
24206 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24207 " const char *path);\n"
24212 #: ../src/guestfs-actions.pod:917
24214 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24215 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24216 "how the directories were originally created under Windows)."
24220 #: ../src/guestfs-actions.pod:925
24221 msgid "See also C<guestfs_realpath>."
24225 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
24226 msgid "(Added in 1.0.75)"
24230 #: ../src/guestfs-actions.pod:932
24231 msgid "guestfs_cat"
24235 #: ../src/guestfs-actions.pod:934
24239 " guestfs_cat (guestfs_h *g,\n"
24240 " const char *path);\n"
24245 #: ../src/guestfs-actions.pod:940
24247 "Note that this function cannot correctly handle binary files (specifically, "
24248 "files containing C<\\0> character which is treated as end of string). For "
24249 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24250 "functions which have a more complex interface."
24254 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
24255 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
24256 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
24257 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
24258 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
24259 #: ../src/guestfs-actions.pod:7559
24260 msgid "(Added in 0.4)"
24264 #: ../src/guestfs-actions.pod:953
24265 msgid "guestfs_checksum"
24269 #: ../src/guestfs-actions.pod:955
24273 " guestfs_checksum (guestfs_h *g,\n"
24274 " const char *csumtype,\n"
24275 " const char *path);\n"
24280 #: ../src/guestfs-actions.pod:1001
24281 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24285 #: ../src/guestfs-actions.pod:1003
24286 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24290 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24291 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
24292 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
24293 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
24294 msgid "(Added in 1.0.2)"
24298 #: ../src/guestfs-actions.pod:1010
24299 msgid "guestfs_checksum_device"
24303 #: ../src/guestfs-actions.pod:1012
24307 " guestfs_checksum_device (guestfs_h *g,\n"
24308 " const char *csumtype,\n"
24309 " const char *device);\n"
24314 #: ../src/guestfs-actions.pod:1017
24316 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24317 "device named C<device>. For the types of checksums supported see the "
24318 "C<guestfs_checksum> command."
24322 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
24323 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
24324 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
24325 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
24326 #: ../src/guestfs-actions.pod:7571
24327 msgid "(Added in 1.3.2)"
24331 #: ../src/guestfs-actions.pod:1026
24332 msgid "guestfs_checksums_out"
24336 #: ../src/guestfs-actions.pod:1028
24340 " guestfs_checksums_out (guestfs_h *g,\n"
24341 " const char *csumtype,\n"
24342 " const char *directory,\n"
24343 " const char *sumsfile);\n"
24348 #: ../src/guestfs-actions.pod:1048
24349 msgid "(Added in 1.3.7)"
24353 #: ../src/guestfs-actions.pod:1050
24354 msgid "guestfs_chmod"
24358 #: ../src/guestfs-actions.pod:1052
24362 " guestfs_chmod (guestfs_h *g,\n"
24364 " const char *path);\n"
24369 #: ../src/guestfs-actions.pod:1070
24370 msgid "guestfs_chown"
24374 #: ../src/guestfs-actions.pod:1072
24378 " guestfs_chown (guestfs_h *g,\n"
24381 " const char *path);\n"
24386 #: ../src/guestfs-actions.pod:1088
24387 msgid "guestfs_command"
24391 #: ../src/guestfs-actions.pod:1090
24395 " guestfs_command (guestfs_h *g,\n"
24396 " char *const *arguments);\n"
24401 #: ../src/guestfs-actions.pod:1099
24403 "The single parameter is an argv-style list of arguments. The first element "
24404 "is the name of the program to run. Subsequent elements are parameters. The "
24405 "list must be non-empty (ie. must contain a program name). Note that the "
24406 "command runs directly, and is I<not> invoked via the shell (see "
24411 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24412 #: ../src/guestfs-actions.pod:1615
24413 msgid "(Added in 0.9.1)"
24417 #: ../src/guestfs-actions.pod:1132
24418 msgid "guestfs_command_lines"
24422 #: ../src/guestfs-actions.pod:1134
24426 " guestfs_command_lines (guestfs_h *g,\n"
24427 " char *const *arguments);\n"
24432 #: ../src/guestfs-actions.pod:1138
24434 "This is the same as C<guestfs_command>, but splits the result into a list of "
24439 #: ../src/guestfs-actions.pod:1141
24440 msgid "See also: C<guestfs_sh_lines>"
24444 #: ../src/guestfs-actions.pod:1152
24445 msgid "guestfs_config"
24449 #: ../src/guestfs-actions.pod:1154
24453 " guestfs_config (guestfs_h *g,\n"
24454 " const char *qemuparam,\n"
24455 " const char *qemuvalue);\n"
24460 #: ../src/guestfs-actions.pod:1172
24461 msgid "guestfs_copy_size"
24465 #: ../src/guestfs-actions.pod:1174
24469 " guestfs_copy_size (guestfs_h *g,\n"
24470 " const char *src,\n"
24471 " const char *dest,\n"
24472 " int64_t size);\n"
24477 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24478 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24479 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24480 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
24481 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
24482 #: ../src/guestfs-actions.pod:7807
24484 "This long-running command can generate progress notification messages so "
24485 "that the caller can display a progress bar or indicator. To receive these "
24486 "messages, the caller must register a progress event callback. See L<guestfs"
24487 "(3)/GUESTFS_EVENT_PROGRESS>."
24491 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
24492 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
24493 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
24494 msgid "(Added in 1.0.87)"
24498 #: ../src/guestfs-actions.pod:1195
24503 #: ../src/guestfs-actions.pod:1197
24507 " guestfs_cp (guestfs_h *g,\n"
24508 " const char *src,\n"
24509 " const char *dest);\n"
24514 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24515 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24516 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
24517 #: ../src/guestfs-actions.pod:5596
24518 msgid "(Added in 1.0.18)"
24522 #: ../src/guestfs-actions.pod:1209
24523 msgid "guestfs_cp_a"
24527 #: ../src/guestfs-actions.pod:1211
24531 " guestfs_cp_a (guestfs_h *g,\n"
24532 " const char *src,\n"
24533 " const char *dest);\n"
24538 #: ../src/guestfs-actions.pod:1223
24543 #: ../src/guestfs-actions.pod:1225
24547 " guestfs_dd (guestfs_h *g,\n"
24548 " const char *src,\n"
24549 " const char *dest);\n"
24554 #: ../src/guestfs-actions.pod:1235
24556 "If the destination is a device, it must be as large or larger than the "
24557 "source file or device, otherwise the copy will fail. This command cannot do "
24558 "partial copies (see C<guestfs_copy_size>)."
24562 #: ../src/guestfs-actions.pod:1243
24567 #: ../src/guestfs-actions.pod:1245
24571 " guestfs_df (guestfs_h *g);\n"
24576 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24578 "This command is mostly useful for interactive sessions. It is I<not> "
24579 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
24584 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24585 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
24586 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
24587 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
24588 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
24589 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
24590 #: ../src/guestfs-actions.pod:7650
24591 msgid "(Added in 1.0.54)"
24595 #: ../src/guestfs-actions.pod:1259
24596 msgid "guestfs_df_h"
24600 #: ../src/guestfs-actions.pod:1261
24604 " guestfs_df_h (guestfs_h *g);\n"
24609 #: ../src/guestfs-actions.pod:1276
24610 msgid "guestfs_dmesg"
24614 #: ../src/guestfs-actions.pod:1278
24618 " guestfs_dmesg (guestfs_h *g);\n"
24623 #: ../src/guestfs-actions.pod:1285
24625 "Another way to get the same information is to enable verbose messages with "
24626 "C<guestfs_set_verbose> or by setting the environment variable "
24627 "C<LIBGUESTFS_DEBUG=1> before running the program."
24631 #: ../src/guestfs-actions.pod:1295
24632 msgid "guestfs_download"
24636 #: ../src/guestfs-actions.pod:1297
24640 " guestfs_download (guestfs_h *g,\n"
24641 " const char *remotefilename,\n"
24642 " const char *filename);\n"
24647 #: ../src/guestfs-actions.pod:1307
24648 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24652 #: ../src/guestfs-actions.pod:1318
24653 msgid "guestfs_download_offset"
24657 #: ../src/guestfs-actions.pod:1320
24661 " guestfs_download_offset (guestfs_h *g,\n"
24662 " const char *remotefilename,\n"
24663 " const char *filename,\n"
24664 " int64_t offset,\n"
24665 " int64_t size);\n"
24670 #: ../src/guestfs-actions.pod:1333
24672 "Note that there is no limit on the amount of data that can be downloaded "
24673 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24674 "full amount unless an error occurs."
24678 #: ../src/guestfs-actions.pod:1338
24679 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24683 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
24684 msgid "(Added in 1.5.17)"
24688 #: ../src/guestfs-actions.pod:1349
24689 msgid "guestfs_drop_caches"
24693 #: ../src/guestfs-actions.pod:1351
24697 " guestfs_drop_caches (guestfs_h *g,\n"
24698 " int whattodrop);\n"
24703 #: ../src/guestfs-actions.pod:1369
24708 #: ../src/guestfs-actions.pod:1371
24712 " guestfs_du (guestfs_h *g,\n"
24713 " const char *path);\n"
24718 #: ../src/guestfs-actions.pod:1394
24719 msgid "guestfs_e2fsck_f"
24723 #: ../src/guestfs-actions.pod:1396
24727 " guestfs_e2fsck_f (guestfs_h *g,\n"
24728 " const char *device);\n"
24733 #: ../src/guestfs-actions.pod:1404
24735 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
24736 "Normally you should use C<guestfs_fsck>."
24740 #: ../src/guestfs-actions.pod:1409
24741 msgid "(Added in 1.0.29)"
24745 #: ../src/guestfs-actions.pod:1411
24746 msgid "guestfs_echo_daemon"
24750 #: ../src/guestfs-actions.pod:1413
24754 " guestfs_echo_daemon (guestfs_h *g,\n"
24755 " char *const *words);\n"
24760 #: ../src/guestfs-actions.pod:1422
24761 msgid "See also C<guestfs_ping_daemon>."
24765 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24766 #: ../src/guestfs-actions.pod:6453
24767 msgid "(Added in 1.0.69)"
24771 #: ../src/guestfs-actions.pod:1429
24772 msgid "guestfs_egrep"
24776 #: ../src/guestfs-actions.pod:1431
24780 " guestfs_egrep (guestfs_h *g,\n"
24781 " const char *regex,\n"
24782 " const char *path);\n"
24787 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24788 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24789 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24790 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
24791 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
24792 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
24793 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
24794 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
24795 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
24796 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
24797 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
24798 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
24799 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
24800 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
24801 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
24802 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
24803 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
24804 msgid "(Added in 1.0.66)"
24808 #: ../src/guestfs-actions.pod:1448
24809 msgid "guestfs_egrepi"
24813 #: ../src/guestfs-actions.pod:1450
24817 " guestfs_egrepi (guestfs_h *g,\n"
24818 " const char *regex,\n"
24819 " const char *path);\n"
24824 #: ../src/guestfs-actions.pod:1467
24825 msgid "guestfs_equal"
24829 #: ../src/guestfs-actions.pod:1469
24833 " guestfs_equal (guestfs_h *g,\n"
24834 " const char *file1,\n"
24835 " const char *file2);\n"
24840 #: ../src/guestfs-actions.pod:1483
24841 msgid "guestfs_exists"
24845 #: ../src/guestfs-actions.pod:1485
24849 " guestfs_exists (guestfs_h *g,\n"
24850 " const char *path);\n"
24855 #: ../src/guestfs-actions.pod:1492
24856 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24860 #: ../src/guestfs-actions.pod:1498
24861 msgid "guestfs_fallocate"
24865 #: ../src/guestfs-actions.pod:1500
24869 " guestfs_fallocate (guestfs_h *g,\n"
24870 " const char *path,\n"
24876 #: ../src/guestfs-actions.pod:1505
24878 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24883 #: ../src/guestfs-actions.pod:1524
24884 msgid "guestfs_fallocate64"
24888 #: ../src/guestfs-actions.pod:1526
24892 " guestfs_fallocate64 (guestfs_h *g,\n"
24893 " const char *path,\n"
24899 #: ../src/guestfs-actions.pod:1535
24901 "Note that this call allocates disk blocks for the file. To create a sparse "
24902 "file use C<guestfs_truncate_size> instead."
24906 #: ../src/guestfs-actions.pod:1538
24908 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24909 "oversight it only allowed 30 bit lengths to be specified, effectively "
24910 "limiting the maximum size of files created through that call to 1GB."
24914 #: ../src/guestfs-actions.pod:1549
24915 msgid "(Added in 1.3.17)"
24919 #: ../src/guestfs-actions.pod:1551
24920 msgid "guestfs_fgrep"
24924 #: ../src/guestfs-actions.pod:1553
24928 " guestfs_fgrep (guestfs_h *g,\n"
24929 " const char *pattern,\n"
24930 " const char *path);\n"
24935 #: ../src/guestfs-actions.pod:1570
24936 msgid "guestfs_fgrepi"
24940 #: ../src/guestfs-actions.pod:1572
24944 " guestfs_fgrepi (guestfs_h *g,\n"
24945 " const char *pattern,\n"
24946 " const char *path);\n"
24951 #: ../src/guestfs-actions.pod:1589
24952 msgid "guestfs_file"
24956 #: ../src/guestfs-actions.pod:1591
24960 " guestfs_file (guestfs_h *g,\n"
24961 " const char *path);\n"
24966 #: ../src/guestfs-actions.pod:1609
24968 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24969 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24973 #: ../src/guestfs-actions.pod:1617
24974 msgid "guestfs_file_architecture"
24978 #: ../src/guestfs-actions.pod:1619
24982 " guestfs_file_architecture (guestfs_h *g,\n"
24983 " const char *filename);\n"
24988 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
24989 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
24990 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
24991 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
24992 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
24993 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
24994 #: ../src/guestfs-actions.pod:3546
24995 msgid "(Added in 1.5.3)"
24999 #: ../src/guestfs-actions.pod:1729
25000 msgid "guestfs_filesize"
25004 #: ../src/guestfs-actions.pod:1731
25008 " guestfs_filesize (guestfs_h *g,\n"
25009 " const char *file);\n"
25014 #: ../src/guestfs-actions.pod:1737
25016 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25017 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
25018 "devices, use C<guestfs_blockdev_getsize64>."
25022 #: ../src/guestfs-actions.pod:1743
25023 msgid "(Added in 1.0.82)"
25027 #: ../src/guestfs-actions.pod:1745
25028 msgid "guestfs_fill"
25032 #: ../src/guestfs-actions.pod:1747
25036 " guestfs_fill (guestfs_h *g,\n"
25039 " const char *path);\n"
25044 #: ../src/guestfs-actions.pod:1757
25046 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25047 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
25048 "bytes use C<guestfs_fill_pattern>."
25052 #: ../src/guestfs-actions.pod:1769
25053 msgid "(Added in 1.0.79)"
25057 #: ../src/guestfs-actions.pod:1771
25058 msgid "guestfs_fill_pattern"
25062 #: ../src/guestfs-actions.pod:1773
25066 " guestfs_fill_pattern (guestfs_h *g,\n"
25067 " const char *pattern,\n"
25069 " const char *path);\n"
25074 #: ../src/guestfs-actions.pod:1779
25076 "This function is like C<guestfs_fill> except that it creates a new file of "
25077 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
25078 "pattern is truncated if necessary to ensure the length of the file is "
25079 "exactly C<len> bytes."
25083 #: ../src/guestfs-actions.pod:1791
25084 msgid "(Added in 1.3.12)"
25088 #: ../src/guestfs-actions.pod:1793
25089 msgid "guestfs_find"
25093 #: ../src/guestfs-actions.pod:1795
25097 " guestfs_find (guestfs_h *g,\n"
25098 " const char *directory);\n"
25103 #: ../src/guestfs-actions.pod:1811
25105 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25109 #: ../src/guestfs-actions.pod:1824
25110 msgid "See also C<guestfs_find0>."
25114 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
25115 #: ../src/guestfs-actions.pod:6014
25116 msgid "(Added in 1.0.27)"
25120 #: ../src/guestfs-actions.pod:1835
25121 msgid "guestfs_find0"
25125 #: ../src/guestfs-actions.pod:1837
25129 " guestfs_find0 (guestfs_h *g,\n"
25130 " const char *directory,\n"
25131 " const char *files);\n"
25136 #: ../src/guestfs-actions.pod:1846
25138 "This command works the same way as C<guestfs_find> with the following "
25143 #: ../src/guestfs-actions.pod:1873
25144 msgid "(Added in 1.0.74)"
25148 #: ../src/guestfs-actions.pod:1875
25149 msgid "guestfs_findfs_label"
25153 #: ../src/guestfs-actions.pod:1877
25157 " guestfs_findfs_label (guestfs_h *g,\n"
25158 " const char *label);\n"
25163 #: ../src/guestfs-actions.pod:1885
25164 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25168 #: ../src/guestfs-actions.pod:1892
25169 msgid "guestfs_findfs_uuid"
25173 #: ../src/guestfs-actions.pod:1894
25177 " guestfs_findfs_uuid (guestfs_h *g,\n"
25178 " const char *uuid);\n"
25183 #: ../src/guestfs-actions.pod:1902
25184 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25188 #: ../src/guestfs-actions.pod:1909
25189 msgid "guestfs_fsck"
25193 #: ../src/guestfs-actions.pod:1911
25197 " guestfs_fsck (guestfs_h *g,\n"
25198 " const char *fstype,\n"
25199 " const char *device);\n"
25204 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
25205 msgid "(Added in 1.0.16)"
25209 #: ../src/guestfs-actions.pod:1948
25210 msgid "guestfs_get_append"
25214 #: ../src/guestfs-actions.pod:1950
25218 " guestfs_get_append (guestfs_h *g);\n"
25223 #: ../src/guestfs-actions.pod:1958
25225 "This function returns a string which may be NULL. There is no way to return "
25226 "an error from this function. The string is owned by the guest handle and "
25227 "must I<not> be freed."
25231 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
25232 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
25233 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
25234 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
25235 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
25236 msgid "(Added in 1.0.26)"
25240 #: ../src/guestfs-actions.pod:1964
25241 msgid "guestfs_get_attach_method"
25245 #: ../src/guestfs-actions.pod:1966
25249 " guestfs_get_attach_method (guestfs_h *g);\n"
25254 #: ../src/guestfs-actions.pod:1969
25255 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
25259 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
25260 msgid "(Added in 1.9.8)"
25264 #: ../src/guestfs-actions.pod:1976
25265 msgid "guestfs_get_autosync"
25269 #: ../src/guestfs-actions.pod:1978
25273 " guestfs_get_autosync (guestfs_h *g);\n"
25278 #: ../src/guestfs-actions.pod:1987
25279 msgid "guestfs_get_direct"
25283 #: ../src/guestfs-actions.pod:1989
25287 " guestfs_get_direct (guestfs_h *g);\n"
25292 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
25293 msgid "(Added in 1.0.72)"
25297 #: ../src/guestfs-actions.pod:1998
25298 msgid "guestfs_get_e2label"
25302 #: ../src/guestfs-actions.pod:2000
25306 " guestfs_get_e2label (guestfs_h *g,\n"
25307 " const char *device);\n"
25312 #: ../src/guestfs-actions.pod:2004
25314 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25319 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25320 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
25321 msgid "(Added in 1.0.15)"
25325 #: ../src/guestfs-actions.pod:2019
25326 msgid "guestfs_get_e2uuid"
25330 #: ../src/guestfs-actions.pod:2021
25334 " guestfs_get_e2uuid (guestfs_h *g,\n"
25335 " const char *device);\n"
25340 #: ../src/guestfs-actions.pod:2025
25342 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25347 #: ../src/guestfs-actions.pod:2040
25348 msgid "guestfs_get_memsize"
25352 #: ../src/guestfs-actions.pod:2042
25356 " guestfs_get_memsize (guestfs_h *g);\n"
25361 #: ../src/guestfs-actions.pod:2048
25363 "If C<guestfs_set_memsize> was not called on this handle, and if "
25364 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25365 "value for memsize."
25369 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
25370 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
25371 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
25372 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
25373 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
25374 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
25375 msgid "(Added in 1.0.55)"
25379 #: ../src/guestfs-actions.pod:2059
25380 msgid "guestfs_get_network"
25384 #: ../src/guestfs-actions.pod:2061
25388 " guestfs_get_network (guestfs_h *g);\n"
25393 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
25394 msgid "(Added in 1.5.4)"
25398 #: ../src/guestfs-actions.pod:2070
25399 msgid "guestfs_get_path"
25403 #: ../src/guestfs-actions.pod:2072
25407 " guestfs_get_path (guestfs_h *g);\n"
25412 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25414 "This function returns a string, or NULL on error. The string is owned by "
25415 "the guest handle and must I<not> be freed."
25419 #: ../src/guestfs-actions.pod:2085
25420 msgid "guestfs_get_pgroup"
25424 #: ../src/guestfs-actions.pod:2087
25428 " guestfs_get_pgroup (guestfs_h *g);\n"
25433 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
25434 #: ../src/guestfs-actions.pod:7690
25436 #| msgid "(Added in 1.5.1)"
25437 msgid "(Added in 1.11.18)"
25438 msgstr "(Додано у 1.5.1)"
25441 #: ../src/guestfs-actions.pod:2096
25442 msgid "guestfs_get_pid"
25446 #: ../src/guestfs-actions.pod:2098
25450 " guestfs_get_pid (guestfs_h *g);\n"
25455 #: ../src/guestfs-actions.pod:2108
25456 msgid "(Added in 1.0.56)"
25460 #: ../src/guestfs-actions.pod:2110
25461 msgid "guestfs_get_qemu"
25465 #: ../src/guestfs-actions.pod:2112
25469 " guestfs_get_qemu (guestfs_h *g);\n"
25474 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
25475 msgid "(Added in 1.0.6)"
25479 #: ../src/guestfs-actions.pod:2125
25480 msgid "guestfs_get_recovery_proc"
25484 #: ../src/guestfs-actions.pod:2127
25488 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25493 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
25494 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
25495 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
25496 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
25497 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
25498 #: ../src/guestfs-actions.pod:7313
25499 msgid "(Added in 1.0.77)"
25503 #: ../src/guestfs-actions.pod:2136
25504 msgid "guestfs_get_selinux"
25508 #: ../src/guestfs-actions.pod:2138
25512 " guestfs_get_selinux (guestfs_h *g);\n"
25517 #: ../src/guestfs-actions.pod:2141
25519 "This returns the current setting of the selinux flag which is passed to the "
25520 "appliance at boot time. See C<guestfs_set_selinux>."
25524 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25525 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
25526 msgid "(Added in 1.0.67)"
25530 #: ../src/guestfs-actions.pod:2151
25531 msgid "guestfs_get_state"
25535 #: ../src/guestfs-actions.pod:2153
25539 " guestfs_get_state (guestfs_h *g);\n"
25544 #: ../src/guestfs-actions.pod:2165
25545 msgid "guestfs_get_trace"
25549 #: ../src/guestfs-actions.pod:2167
25553 " guestfs_get_trace (guestfs_h *g);\n"
25558 #: ../src/guestfs-actions.pod:2176
25559 msgid "guestfs_get_umask"
25563 #: ../src/guestfs-actions.pod:2178
25567 " guestfs_get_umask (guestfs_h *g);\n"
25572 #: ../src/guestfs-actions.pod:2181
25574 "Return the current umask. By default the umask is C<022> unless it has been "
25575 "set by calling C<guestfs_umask>."
25579 #: ../src/guestfs-actions.pod:2188
25580 msgid "guestfs_get_verbose"
25584 #: ../src/guestfs-actions.pod:2190
25588 " guestfs_get_verbose (guestfs_h *g);\n"
25593 #: ../src/guestfs-actions.pod:2199
25594 msgid "guestfs_getcon"
25598 #: ../src/guestfs-actions.pod:2201
25602 " guestfs_getcon (guestfs_h *g);\n"
25607 #: ../src/guestfs-actions.pod:2206
25609 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25613 #: ../src/guestfs-actions.pod:2214
25614 msgid "guestfs_getxattr"
25618 #: ../src/guestfs-actions.pod:2216
25622 " guestfs_getxattr (guestfs_h *g,\n"
25623 " const char *path,\n"
25624 " const char *name,\n"
25625 " size_t *size_r);\n"
25630 #: ../src/guestfs-actions.pod:2222
25632 "Get a single extended attribute from file C<path> named C<name>. This call "
25633 "follows symlinks. If you want to lookup an extended attribute for the "
25634 "symlink itself, use C<guestfs_lgetxattr>."
25638 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
25640 "Normally it is better to get all extended attributes from a file in one go "
25641 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
25642 "implementations are buggy and do not provide a way to list out attributes. "
25643 "For these filesystems (notably ntfs-3g) you have to know the names of the "
25644 "extended attributes you want in advance and call this function."
25648 #: ../src/guestfs-actions.pod:2236
25649 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25653 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
25654 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
25655 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
25656 #: ../src/guestfs-actions.pod:5822
25658 "This function returns a buffer, or NULL on error. The size of the returned "
25659 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
25664 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
25665 msgid "(Added in 1.7.24)"
25669 #: ../src/guestfs-actions.pod:2244
25670 msgid "guestfs_getxattrs"
25674 #: ../src/guestfs-actions.pod:2246
25677 " struct guestfs_xattr_list *\n"
25678 " guestfs_getxattrs (guestfs_h *g,\n"
25679 " const char *path);\n"
25684 #: ../src/guestfs-actions.pod:2256
25685 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25689 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
25690 #: ../src/guestfs-actions.pod:4398
25692 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25693 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
25697 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
25698 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
25699 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
25700 #: ../src/guestfs-actions.pod:7901
25701 msgid "(Added in 1.0.59)"
25705 #: ../src/guestfs-actions.pod:2264
25706 msgid "guestfs_glob_expand"
25710 #: ../src/guestfs-actions.pod:2266
25714 " guestfs_glob_expand (guestfs_h *g,\n"
25715 " const char *pattern);\n"
25720 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
25721 #: ../src/guestfs-actions.pod:6716
25722 msgid "(Added in 1.0.50)"
25726 #: ../src/guestfs-actions.pod:2287
25727 msgid "guestfs_grep"
25731 #: ../src/guestfs-actions.pod:2289
25735 " guestfs_grep (guestfs_h *g,\n"
25736 " const char *regex,\n"
25737 " const char *path);\n"
25742 #: ../src/guestfs-actions.pod:2306
25743 msgid "guestfs_grepi"
25747 #: ../src/guestfs-actions.pod:2308
25751 " guestfs_grepi (guestfs_h *g,\n"
25752 " const char *regex,\n"
25753 " const char *path);\n"
25758 #: ../src/guestfs-actions.pod:2325
25759 msgid "guestfs_grub_install"
25763 #: ../src/guestfs-actions.pod:2327
25767 " guestfs_grub_install (guestfs_h *g,\n"
25768 " const char *root,\n"
25769 " const char *device);\n"
25774 #: ../src/guestfs-actions.pod:2348
25775 msgid "(Added in 1.0.17)"
25779 #: ../src/guestfs-actions.pod:2350
25780 msgid "guestfs_head"
25784 #: ../src/guestfs-actions.pod:2352
25788 " guestfs_head (guestfs_h *g,\n"
25789 " const char *path);\n"
25794 #: ../src/guestfs-actions.pod:2368
25795 msgid "guestfs_head_n"
25799 #: ../src/guestfs-actions.pod:2370
25803 " guestfs_head_n (guestfs_h *g,\n"
25805 " const char *path);\n"
25810 #: ../src/guestfs-actions.pod:2392
25811 msgid "guestfs_hexdump"
25815 #: ../src/guestfs-actions.pod:2394
25819 " guestfs_hexdump (guestfs_h *g,\n"
25820 " const char *path);\n"
25825 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
25826 #: ../src/guestfs-actions.pod:6835
25827 msgid "(Added in 1.0.22)"
25831 #: ../src/guestfs-actions.pod:2409
25832 msgid "guestfs_initrd_cat"
25836 #: ../src/guestfs-actions.pod:2411
25840 " guestfs_initrd_cat (guestfs_h *g,\n"
25841 " const char *initrdpath,\n"
25842 " const char *filename,\n"
25843 " size_t *size_r);\n"
25848 #: ../src/guestfs-actions.pod:2427
25849 msgid "See also C<guestfs_initrd_list>."
25853 #: ../src/guestfs-actions.pod:2438
25854 msgid "guestfs_initrd_list"
25858 #: ../src/guestfs-actions.pod:2440
25862 " guestfs_initrd_list (guestfs_h *g,\n"
25863 " const char *path);\n"
25868 #: ../src/guestfs-actions.pod:2460
25869 msgid "guestfs_inotify_add_watch"
25873 #: ../src/guestfs-actions.pod:2462
25877 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25878 " const char *path,\n"
25884 #: ../src/guestfs-actions.pod:2481
25885 msgid "guestfs_inotify_close"
25889 #: ../src/guestfs-actions.pod:2483
25893 " guestfs_inotify_close (guestfs_h *g);\n"
25898 #: ../src/guestfs-actions.pod:2494
25899 msgid "guestfs_inotify_files"
25903 #: ../src/guestfs-actions.pod:2496
25907 " guestfs_inotify_files (guestfs_h *g);\n"
25912 #: ../src/guestfs-actions.pod:2499
25914 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25915 "returns a list of pathnames of objects that were touched. The returned "
25916 "pathnames are sorted and deduplicated."
25920 #: ../src/guestfs-actions.pod:2509
25921 msgid "guestfs_inotify_init"
25925 #: ../src/guestfs-actions.pod:2511
25929 " guestfs_inotify_init (guestfs_h *g,\n"
25930 " int maxevents);\n"
25935 #: ../src/guestfs-actions.pod:2519
25937 "C<maxevents> is the maximum number of events which will be queued up between "
25938 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
25939 "passed as C<0>, then the kernel (or previously set) default is used. For "
25940 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
25941 "throws away events, but records the fact that it threw them away by setting "
25942 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25943 "C<guestfs_inotify_read>)."
25947 #: ../src/guestfs-actions.pod:2529
25949 "Before any events are generated, you have to add some watches to the "
25950 "internal watch list. See: C<guestfs_inotify_add_watch>, "
25951 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25955 #: ../src/guestfs-actions.pod:2535
25957 "Queued up events should be read periodically by calling "
25958 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25959 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
25960 "often enough then you risk the internal queue overflowing."
25964 #: ../src/guestfs-actions.pod:2542
25966 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
25967 "This also removes any watches automatically."
25971 #: ../src/guestfs-actions.pod:2555
25972 msgid "guestfs_inotify_read"
25976 #: ../src/guestfs-actions.pod:2557
25979 " struct guestfs_inotify_event_list *\n"
25980 " guestfs_inotify_read (guestfs_h *g);\n"
25985 #: ../src/guestfs-actions.pod:2571
25987 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25988 "there was an error. I<The caller must call "
25989 "C<guestfs_free_inotify_event_list> after use>."
25993 #: ../src/guestfs-actions.pod:2577
25994 msgid "guestfs_inotify_rm_watch"
25998 #: ../src/guestfs-actions.pod:2579
26002 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26008 #: ../src/guestfs-actions.pod:2583
26010 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
26014 #: ../src/guestfs-actions.pod:2590
26015 msgid "guestfs_inspect_get_arch"
26019 #: ../src/guestfs-actions.pod:2592
26023 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26024 " const char *root);\n"
26029 #: ../src/guestfs-actions.pod:2596
26031 "This returns the architecture of the inspected operating system. The "
26032 "possible return values are listed under C<guestfs_file_architecture>."
26036 #: ../src/guestfs-actions.pod:2610
26037 msgid "guestfs_inspect_get_distro"
26041 #: ../src/guestfs-actions.pod:2612
26045 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26046 " const char *root);\n"
26051 #: ../src/guestfs-actions.pod:2700
26052 msgid "guestfs_inspect_get_drive_mappings"
26056 #: ../src/guestfs-actions.pod:2702
26060 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26061 " const char *root);\n"
26066 #: ../src/guestfs-actions.pod:2731
26068 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26069 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26073 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
26074 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
26075 #: ../src/guestfs-actions.pod:7137
26077 "This function returns a NULL-terminated array of strings, or NULL if there "
26078 "was an error. The array of strings will always have length C<2n+1>, where "
26079 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
26080 "caller must free the strings and the array after use>."
26084 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
26085 msgid "(Added in 1.9.17)"
26089 #: ../src/guestfs-actions.pod:2743
26090 msgid "guestfs_inspect_get_filesystems"
26094 #: ../src/guestfs-actions.pod:2745
26098 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26099 " const char *root);\n"
26104 #: ../src/guestfs-actions.pod:2757
26106 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26107 "C<guestfs_inspect_get_mountpoints>."
26111 #: ../src/guestfs-actions.pod:2766
26112 msgid "guestfs_inspect_get_format"
26116 #: ../src/guestfs-actions.pod:2768
26120 " guestfs_inspect_get_format (guestfs_h *g,\n"
26121 " const char *root);\n"
26126 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
26127 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
26128 #: ../src/guestfs-actions.pod:6033
26129 msgid "(Added in 1.9.4)"
26133 #: ../src/guestfs-actions.pod:2804
26134 msgid "guestfs_inspect_get_hostname"
26138 #: ../src/guestfs-actions.pod:2806
26142 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26143 " const char *root);\n"
26148 #: ../src/guestfs-actions.pod:2821
26149 msgid "(Added in 1.7.9)"
26153 #: ../src/guestfs-actions.pod:2823
26154 msgid "guestfs_inspect_get_icon"
26158 #: ../src/guestfs-actions.pod:2825
26162 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26163 " const char *root,\n"
26164 " size_t *size_r,\n"
26170 #: ../src/guestfs-actions.pod:2836
26173 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26174 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26179 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
26180 #: ../src/guestfs-actions.pod:4982
26181 msgid "(Added in 1.11.12)"
26185 #: ../src/guestfs-actions.pod:2905
26186 msgid "guestfs_inspect_get_icon_va"
26190 #: ../src/guestfs-actions.pod:2907
26194 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26195 " const char *root,\n"
26196 " size_t *size_r,\n"
26197 " va_list args);\n"
26202 #: ../src/guestfs-actions.pod:2913
26203 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26207 #: ../src/guestfs-actions.pod:2917
26208 msgid "guestfs_inspect_get_icon_argv"
26212 #: ../src/guestfs-actions.pod:2919
26216 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26217 " const char *root,\n"
26218 " size_t *size_r,\n"
26219 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
26224 #: ../src/guestfs-actions.pod:2925
26225 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26229 #: ../src/guestfs-actions.pod:2929
26230 msgid "guestfs_inspect_get_major_version"
26234 #: ../src/guestfs-actions.pod:2931
26238 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26239 " const char *root);\n"
26244 #: ../src/guestfs-actions.pod:2953
26245 msgid "guestfs_inspect_get_minor_version"
26249 #: ../src/guestfs-actions.pod:2955
26253 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26254 " const char *root);\n"
26259 #: ../src/guestfs-actions.pod:2964
26261 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26262 "C<guestfs_inspect_get_major_version>."
26266 #: ../src/guestfs-actions.pod:2971
26267 msgid "guestfs_inspect_get_mountpoints"
26271 #: ../src/guestfs-actions.pod:2973
26275 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26276 " const char *root);\n"
26281 #: ../src/guestfs-actions.pod:2994
26283 "For operating systems like Windows which still use drive letters, this call "
26284 "will only return an entry for the first drive \"mounted on\" C</>. For "
26285 "information about the mapping of drive letters to partitions, see "
26286 "C<guestfs_inspect_get_drive_mappings>."
26290 #: ../src/guestfs-actions.pod:3000
26292 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26293 "C<guestfs_inspect_get_filesystems>."
26297 #: ../src/guestfs-actions.pod:3011
26298 msgid "guestfs_inspect_get_package_format"
26302 #: ../src/guestfs-actions.pod:3013
26306 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26307 " const char *root);\n"
26312 #: ../src/guestfs-actions.pod:3017
26314 "This function and C<guestfs_inspect_get_package_management> return the "
26315 "package format and package management tool used by the inspected operating "
26316 "system. For example for Fedora these functions would return C<rpm> (package "
26317 "format) and C<yum> (package management)."
26321 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
26322 msgid "(Added in 1.7.5)"
26326 #: ../src/guestfs-actions.pod:3037
26327 msgid "guestfs_inspect_get_package_management"
26331 #: ../src/guestfs-actions.pod:3039
26335 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26336 " const char *root);\n"
26341 #: ../src/guestfs-actions.pod:3043
26343 "C<guestfs_inspect_get_package_format> and this function return the package "
26344 "format and package management tool used by the inspected operating system. "
26345 "For example for Fedora these functions would return C<rpm> (package format) "
26346 "and C<yum> (package management)."
26350 #: ../src/guestfs-actions.pod:3065
26351 msgid "guestfs_inspect_get_product_name"
26355 #: ../src/guestfs-actions.pod:3067
26359 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26360 " const char *root);\n"
26365 #: ../src/guestfs-actions.pod:3086
26366 msgid "guestfs_inspect_get_product_variant"
26370 #: ../src/guestfs-actions.pod:3088
26374 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26375 " const char *root);\n"
26380 #: ../src/guestfs-actions.pod:3111
26382 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26383 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26387 #: ../src/guestfs-actions.pod:3118
26388 msgid "(Added in 1.9.13)"
26392 #: ../src/guestfs-actions.pod:3120
26393 msgid "guestfs_inspect_get_roots"
26397 #: ../src/guestfs-actions.pod:3122
26401 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26406 #: ../src/guestfs-actions.pod:3125
26408 "This function is a convenient way to get the list of root devices, as "
26409 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26410 "the whole inspection process."
26414 #: ../src/guestfs-actions.pod:3129
26416 "This returns an empty list if either no root devices were found or the "
26417 "caller has not called C<guestfs_inspect_os>."
26421 #: ../src/guestfs-actions.pod:3138
26422 msgid "(Added in 1.7.3)"
26426 #: ../src/guestfs-actions.pod:3140
26427 msgid "guestfs_inspect_get_type"
26431 #: ../src/guestfs-actions.pod:3142
26435 " guestfs_inspect_get_type (guestfs_h *g,\n"
26436 " const char *root);\n"
26441 #: ../src/guestfs-actions.pod:3179
26442 msgid "guestfs_inspect_get_windows_current_control_set"
26446 #: ../src/guestfs-actions.pod:3181
26450 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26451 " const char *root);\n"
26456 #: ../src/guestfs-actions.pod:3199
26457 msgid "guestfs_inspect_get_windows_systemroot"
26461 #: ../src/guestfs-actions.pod:3201
26465 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26466 " const char *root);\n"
26471 #: ../src/guestfs-actions.pod:3217
26472 msgid "(Added in 1.5.25)"
26476 #: ../src/guestfs-actions.pod:3219
26477 msgid "guestfs_inspect_is_live"
26481 #: ../src/guestfs-actions.pod:3221
26485 " guestfs_inspect_is_live (guestfs_h *g,\n"
26486 " const char *root);\n"
26491 #: ../src/guestfs-actions.pod:3225
26493 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26494 "disk), then this returns true if a live image was detected on the disk."
26498 #: ../src/guestfs-actions.pod:3235
26499 msgid "guestfs_inspect_is_multipart"
26503 #: ../src/guestfs-actions.pod:3237
26507 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26508 " const char *root);\n"
26513 #: ../src/guestfs-actions.pod:3241
26515 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26516 "disk), then this returns true if the disk is part of a set."
26520 #: ../src/guestfs-actions.pod:3251
26521 msgid "guestfs_inspect_is_netinst"
26525 #: ../src/guestfs-actions.pod:3253
26529 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26530 " const char *root);\n"
26535 #: ../src/guestfs-actions.pod:3257
26537 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26538 "disk), then this returns true if the disk is a network installer, ie. not a "
26539 "self-contained install CD but one which is likely to require network access "
26540 "to complete the install."
26544 #: ../src/guestfs-actions.pod:3269
26545 msgid "guestfs_inspect_list_applications"
26549 #: ../src/guestfs-actions.pod:3271
26552 " struct guestfs_application_list *\n"
26553 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26554 " const char *root);\n"
26559 #: ../src/guestfs-actions.pod:3277
26561 "I<Note:> This call works differently from other parts of the inspection "
26562 "API. You have to call C<guestfs_inspect_os>, then "
26563 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26564 "this. Listing applications is a significantly more difficult operation "
26565 "which requires access to the full filesystem. Also note that unlike the "
26566 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26567 "the libguestfs handle, this call actually reads parts of the mounted "
26568 "filesystems during the call."
26572 #: ../src/guestfs-actions.pod:3367
26574 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26575 "there was an error. I<The caller must call C<guestfs_free_application_list> "
26580 #: ../src/guestfs-actions.pod:3371
26581 msgid "(Added in 1.7.8)"
26585 #: ../src/guestfs-actions.pod:3373
26586 msgid "guestfs_inspect_os"
26590 #: ../src/guestfs-actions.pod:3375
26594 " guestfs_inspect_os (guestfs_h *g);\n"
26599 #: ../src/guestfs-actions.pod:3391
26601 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26602 "functions in order to query further information about each operating system, "
26603 "such as the name and version."
26607 #: ../src/guestfs-actions.pod:3396
26609 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26610 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26611 "the contents. This should be called with no disks currently mounted. The "
26612 "function may also use Augeas, so any existing Augeas handle will be closed."
26616 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
26617 #: ../src/guestfs-actions.pod:3821
26618 msgid "See also C<guestfs_list_filesystems>."
26622 #: ../src/guestfs-actions.pod:3416
26623 msgid "guestfs_is_blockdev"
26627 #: ../src/guestfs-actions.pod:3418
26631 " guestfs_is_blockdev (guestfs_h *g,\n"
26632 " const char *path);\n"
26637 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
26638 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
26639 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
26640 #: ../src/guestfs-actions.pod:3586
26641 msgid "See also C<guestfs_stat>."
26645 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
26646 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
26647 #: ../src/guestfs-actions.pod:3590
26648 msgid "(Added in 1.5.10)"
26652 #: ../src/guestfs-actions.pod:3431
26653 msgid "guestfs_is_busy"
26657 #: ../src/guestfs-actions.pod:3433
26661 " guestfs_is_busy (guestfs_h *g);\n"
26666 #: ../src/guestfs-actions.pod:3445
26667 msgid "guestfs_is_chardev"
26671 #: ../src/guestfs-actions.pod:3447
26675 " guestfs_is_chardev (guestfs_h *g,\n"
26676 " const char *path);\n"
26681 #: ../src/guestfs-actions.pod:3460
26682 msgid "guestfs_is_config"
26686 #: ../src/guestfs-actions.pod:3462
26690 " guestfs_is_config (guestfs_h *g);\n"
26695 #: ../src/guestfs-actions.pod:3474
26696 msgid "guestfs_is_dir"
26700 #: ../src/guestfs-actions.pod:3476
26704 " guestfs_is_dir (guestfs_h *g,\n"
26705 " const char *path);\n"
26710 #: ../src/guestfs-actions.pod:3490
26711 msgid "guestfs_is_fifo"
26715 #: ../src/guestfs-actions.pod:3492
26719 " guestfs_is_fifo (guestfs_h *g,\n"
26720 " const char *path);\n"
26725 #: ../src/guestfs-actions.pod:3505
26726 msgid "guestfs_is_file"
26730 #: ../src/guestfs-actions.pod:3507
26734 " guestfs_is_file (guestfs_h *g,\n"
26735 " const char *path);\n"
26740 #: ../src/guestfs-actions.pod:3521
26741 msgid "guestfs_is_launching"
26745 #: ../src/guestfs-actions.pod:3523
26749 " guestfs_is_launching (guestfs_h *g);\n"
26754 #: ../src/guestfs-actions.pod:3535
26755 msgid "guestfs_is_lv"
26759 #: ../src/guestfs-actions.pod:3537
26763 " guestfs_is_lv (guestfs_h *g,\n"
26764 " const char *device);\n"
26769 #: ../src/guestfs-actions.pod:3548
26770 msgid "guestfs_is_ready"
26774 #: ../src/guestfs-actions.pod:3550
26778 " guestfs_is_ready (guestfs_h *g);\n"
26783 #: ../src/guestfs-actions.pod:3562
26784 msgid "guestfs_is_socket"
26788 #: ../src/guestfs-actions.pod:3564
26792 " guestfs_is_socket (guestfs_h *g,\n"
26793 " const char *path);\n"
26798 #: ../src/guestfs-actions.pod:3577
26799 msgid "guestfs_is_symlink"
26803 #: ../src/guestfs-actions.pod:3579
26807 " guestfs_is_symlink (guestfs_h *g,\n"
26808 " const char *path);\n"
26813 #: ../src/guestfs-actions.pod:3592
26814 msgid "guestfs_is_zero"
26818 #: ../src/guestfs-actions.pod:3594
26822 " guestfs_is_zero (guestfs_h *g,\n"
26823 " const char *path);\n"
26828 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
26829 msgid "(Added in 1.11.8)"
26833 #: ../src/guestfs-actions.pod:3605
26834 msgid "guestfs_is_zero_device"
26838 #: ../src/guestfs-actions.pod:3607
26842 " guestfs_is_zero_device (guestfs_h *g,\n"
26843 " const char *device);\n"
26848 #: ../src/guestfs-actions.pod:3619
26849 msgid "guestfs_kill_subprocess"
26853 #: ../src/guestfs-actions.pod:3621
26857 " guestfs_kill_subprocess (guestfs_h *g);\n"
26862 #: ../src/guestfs-actions.pod:3630
26863 msgid "guestfs_launch"
26867 #: ../src/guestfs-actions.pod:3632
26871 " guestfs_launch (guestfs_h *g);\n"
26876 #: ../src/guestfs-actions.pod:3650
26877 msgid "guestfs_lchown"
26881 #: ../src/guestfs-actions.pod:3652
26885 " guestfs_lchown (guestfs_h *g,\n"
26888 " const char *path);\n"
26893 #: ../src/guestfs-actions.pod:3658
26895 "Change the file owner to C<owner> and group to C<group>. This is like "
26896 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26897 "changed, not the target."
26901 #: ../src/guestfs-actions.pod:3670
26902 msgid "guestfs_lgetxattr"
26906 #: ../src/guestfs-actions.pod:3672
26910 " guestfs_lgetxattr (guestfs_h *g,\n"
26911 " const char *path,\n"
26912 " const char *name,\n"
26913 " size_t *size_r);\n"
26918 #: ../src/guestfs-actions.pod:3692
26919 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26923 #: ../src/guestfs-actions.pod:3700
26924 msgid "guestfs_lgetxattrs"
26928 #: ../src/guestfs-actions.pod:3702
26931 " struct guestfs_xattr_list *\n"
26932 " guestfs_lgetxattrs (guestfs_h *g,\n"
26933 " const char *path);\n"
26938 #: ../src/guestfs-actions.pod:3706
26940 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26941 "then it returns the extended attributes of the link itself."
26945 #: ../src/guestfs-actions.pod:3716
26946 msgid "guestfs_list_9p"
26950 #: ../src/guestfs-actions.pod:3718
26954 " guestfs_list_9p (guestfs_h *g);\n"
26959 #: ../src/guestfs-actions.pod:3730
26960 msgid "guestfs_list_devices"
26964 #: ../src/guestfs-actions.pod:3732
26968 " guestfs_list_devices (guestfs_h *g);\n"
26973 #: ../src/guestfs-actions.pod:3747
26974 msgid "guestfs_list_dm_devices"
26978 #: ../src/guestfs-actions.pod:3749
26982 " guestfs_list_dm_devices (guestfs_h *g);\n"
26987 #: ../src/guestfs-actions.pod:3754
26989 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26990 "previous call to C<guestfs_luks_open>."
26994 #: ../src/guestfs-actions.pod:3757
26996 "Device mapper devices which correspond to logical volumes are I<not> "
26997 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
27002 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
27003 msgid "(Added in 1.11.15)"
27007 #: ../src/guestfs-actions.pod:3767
27008 msgid "guestfs_list_filesystems"
27012 #: ../src/guestfs-actions.pod:3769
27016 " guestfs_list_filesystems (guestfs_h *g);\n"
27021 #: ../src/guestfs-actions.pod:3789
27023 "This command runs other libguestfs commands, which might include "
27024 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27025 "soon after launch and only when nothing is mounted."
27029 #: ../src/guestfs-actions.pod:3793
27031 "Not all of the filesystems returned will be mountable. In particular, swap "
27032 "partitions are returned in the list. Also this command does not check that "
27033 "each filesystem found is valid and mountable, and some filesystems might be "
27034 "mountable but require special options. Filesystems may not all belong to a "
27035 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27039 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
27040 msgid "(Added in 1.5.15)"
27044 #: ../src/guestfs-actions.pod:3809
27045 msgid "guestfs_list_partitions"
27046 msgstr "guestfs_list_partitions"
27049 #: ../src/guestfs-actions.pod:3811
27053 " guestfs_list_partitions (guestfs_h *g);\n"
27057 " guestfs_list_partitions (guestfs_h *g);\n"
27061 #: ../src/guestfs-actions.pod:3818
27063 "This does not return logical volumes. For that you will need to call "
27068 #: ../src/guestfs-actions.pod:3829
27070 msgstr "guestfs_ll"
27073 #: ../src/guestfs-actions.pod:3831
27077 " guestfs_ll (guestfs_h *g,\n"
27078 " const char *directory);\n"
27082 " guestfs_ll (guestfs_h *g,\n"
27083 " const char *directory);\n"
27087 #: ../src/guestfs-actions.pod:3846
27089 msgstr "guestfs_ln"
27092 #: ../src/guestfs-actions.pod:3848
27096 " guestfs_ln (guestfs_h *g,\n"
27097 " const char *target,\n"
27098 " const char *linkname);\n"
27102 " guestfs_ln (guestfs_h *g,\n"
27103 " const char *target,\n"
27104 " const char *linkname);\n"
27108 #: ../src/guestfs-actions.pod:3859
27109 msgid "guestfs_ln_f"
27110 msgstr "guestfs_ln_f"
27113 #: ../src/guestfs-actions.pod:3861
27117 " guestfs_ln_f (guestfs_h *g,\n"
27118 " const char *target,\n"
27119 " const char *linkname);\n"
27123 " guestfs_ln_f (guestfs_h *g,\n"
27124 " const char *target,\n"
27125 " const char *linkname);\n"
27129 #: ../src/guestfs-actions.pod:3873
27130 msgid "guestfs_ln_s"
27131 msgstr "guestfs_ln_s"
27134 #: ../src/guestfs-actions.pod:3875
27138 " guestfs_ln_s (guestfs_h *g,\n"
27139 " const char *target,\n"
27140 " const char *linkname);\n"
27144 " guestfs_ln_s (guestfs_h *g,\n"
27145 " const char *target,\n"
27146 " const char *linkname);\n"
27150 #: ../src/guestfs-actions.pod:3886
27151 msgid "guestfs_ln_sf"
27152 msgstr "guestfs_ln_sf"
27155 #: ../src/guestfs-actions.pod:3888
27159 " guestfs_ln_sf (guestfs_h *g,\n"
27160 " const char *target,\n"
27161 " const char *linkname);\n"
27165 " guestfs_ln_sf (guestfs_h *g,\n"
27166 " const char *target,\n"
27167 " const char *linkname);\n"
27171 #: ../src/guestfs-actions.pod:3900
27172 msgid "guestfs_lremovexattr"
27173 msgstr "guestfs_lremovexattr"
27176 #: ../src/guestfs-actions.pod:3902
27180 " guestfs_lremovexattr (guestfs_h *g,\n"
27181 " const char *xattr,\n"
27182 " const char *path);\n"
27186 " guestfs_lremovexattr (guestfs_h *g,\n"
27187 " const char *xattr,\n"
27188 " const char *path);\n"
27192 #: ../src/guestfs-actions.pod:3907
27194 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27195 "link, then it removes an extended attribute of the link itself."
27199 #: ../src/guestfs-actions.pod:3915
27201 msgstr "guestfs_ls"
27204 #: ../src/guestfs-actions.pod:3917
27208 " guestfs_ls (guestfs_h *g,\n"
27209 " const char *directory);\n"
27213 " guestfs_ls (guestfs_h *g,\n"
27214 " const char *directory);\n"
27218 #: ../src/guestfs-actions.pod:3925
27220 "This command is mostly useful for interactive sessions. Programs should "
27221 "probably use C<guestfs_readdir> instead."
27225 #: ../src/guestfs-actions.pod:3934
27226 msgid "guestfs_lsetxattr"
27227 msgstr "guestfs_lsetxattr"
27230 #: ../src/guestfs-actions.pod:3936
27234 " guestfs_lsetxattr (guestfs_h *g,\n"
27235 " const char *xattr,\n"
27236 " const char *val,\n"
27238 " const char *path);\n"
27242 " guestfs_lsetxattr (guestfs_h *g,\n"
27243 " const char *xattr,\n"
27244 " const char *val,\n"
27246 " const char *path);\n"
27250 #: ../src/guestfs-actions.pod:3943
27252 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27253 "then it sets an extended attribute of the link itself."
27257 #: ../src/guestfs-actions.pod:3951
27258 msgid "guestfs_lstat"
27259 msgstr "guestfs_lstat"
27262 #: ../src/guestfs-actions.pod:3953
27265 " struct guestfs_stat *\n"
27266 " guestfs_lstat (guestfs_h *g,\n"
27267 " const char *path);\n"
27270 " struct guestfs_stat *\n"
27271 " guestfs_lstat (guestfs_h *g,\n"
27272 " const char *path);\n"
27276 #: ../src/guestfs-actions.pod:3959
27278 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27279 "link, then the link is stat-ed, not the file it refers to."
27283 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
27285 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27286 "error. I<The caller must call C<guestfs_free_stat> after use>."
27290 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
27291 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
27292 msgid "(Added in 0.9.2)"
27293 msgstr "(Додано у 0.9.2)"
27296 #: ../src/guestfs-actions.pod:3971
27297 msgid "guestfs_lstatlist"
27298 msgstr "guestfs_lstatlist"
27301 #: ../src/guestfs-actions.pod:3973
27304 " struct guestfs_stat_list *\n"
27305 " guestfs_lstatlist (guestfs_h *g,\n"
27306 " const char *path,\n"
27307 " char *const *names);\n"
27310 " struct guestfs_stat_list *\n"
27311 " guestfs_lstatlist (guestfs_h *g,\n"
27312 " const char *path,\n"
27313 " char *const *names);\n"
27317 #: ../src/guestfs-actions.pod:3978
27319 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27320 "files, where all files are in the directory C<path>. C<names> is the list "
27321 "of files from this directory."
27325 #: ../src/guestfs-actions.pod:3987
27327 "This call is intended for programs that want to efficiently list a directory "
27328 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
27329 "for a similarly efficient call for getting extended attributes. Very long "
27330 "directory listings might cause the protocol message size to be exceeded, "
27331 "causing this call to fail. The caller must split up such requests into "
27332 "smaller groups of names."
27336 #: ../src/guestfs-actions.pod:3995
27338 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27339 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
27343 #: ../src/guestfs-actions.pod:4001
27344 msgid "guestfs_luks_add_key"
27345 msgstr "guestfs_luks_add_key"
27348 #: ../src/guestfs-actions.pod:4003
27352 " guestfs_luks_add_key (guestfs_h *g,\n"
27353 " const char *device,\n"
27354 " const char *key,\n"
27355 " const char *newkey,\n"
27360 " guestfs_luks_add_key (guestfs_h *g,\n"
27361 " const char *device,\n"
27362 " const char *key,\n"
27363 " const char *newkey,\n"
27368 #: ../src/guestfs-actions.pod:4015
27370 "Note that if C<keyslot> already contains a key, then this command will "
27371 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
27375 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
27376 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
27377 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
27379 "This function takes a key or passphrase parameter which could contain "
27380 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
27385 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
27386 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
27387 msgid "(Added in 1.5.2)"
27388 msgstr "(Додано у 1.5.2)"
27391 #: ../src/guestfs-actions.pod:4027
27392 msgid "guestfs_luks_close"
27393 msgstr "guestfs_luks_close"
27396 #: ../src/guestfs-actions.pod:4029
27400 " guestfs_luks_close (guestfs_h *g,\n"
27401 " const char *device);\n"
27405 " guestfs_luks_close (guestfs_h *g,\n"
27406 " const char *device);\n"
27410 #: ../src/guestfs-actions.pod:4033
27412 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27413 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
27414 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27415 "underlying block device."
27419 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
27420 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
27421 #: ../src/guestfs-actions.pod:4260
27422 msgid "(Added in 1.5.1)"
27423 msgstr "(Додано у 1.5.1)"
27426 #: ../src/guestfs-actions.pod:4043
27427 msgid "guestfs_luks_format"
27428 msgstr "guestfs_luks_format"
27431 #: ../src/guestfs-actions.pod:4045
27435 " guestfs_luks_format (guestfs_h *g,\n"
27436 " const char *device,\n"
27437 " const char *key,\n"
27442 " guestfs_luks_format (guestfs_h *g,\n"
27443 " const char *device,\n"
27444 " const char *key,\n"
27449 #: ../src/guestfs-actions.pod:4067
27450 msgid "guestfs_luks_format_cipher"
27451 msgstr "guestfs_luks_format_cipher"
27454 #: ../src/guestfs-actions.pod:4069
27458 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27459 " const char *device,\n"
27460 " const char *key,\n"
27462 " const char *cipher);\n"
27466 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27467 " const char *device,\n"
27468 " const char *key,\n"
27470 " const char *cipher);\n"
27474 #: ../src/guestfs-actions.pod:4076
27476 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27477 "set the C<cipher> used."
27481 #: ../src/guestfs-actions.pod:4090
27482 msgid "guestfs_luks_kill_slot"
27483 msgstr "guestfs_luks_kill_slot"
27486 #: ../src/guestfs-actions.pod:4092
27490 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27491 " const char *device,\n"
27492 " const char *key,\n"
27497 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27498 " const char *device,\n"
27499 " const char *key,\n"
27504 #: ../src/guestfs-actions.pod:4110
27505 msgid "guestfs_luks_open"
27506 msgstr "guestfs_luks_open"
27509 #: ../src/guestfs-actions.pod:4112
27513 " guestfs_luks_open (guestfs_h *g,\n"
27514 " const char *device,\n"
27515 " const char *key,\n"
27516 " const char *mapname);\n"
27520 " guestfs_luks_open (guestfs_h *g,\n"
27521 " const char *device,\n"
27522 " const char *key,\n"
27523 " const char *mapname);\n"
27527 #: ../src/guestfs-actions.pod:4130
27529 "If this block device contains LVM volume groups, then calling "
27530 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27535 #: ../src/guestfs-actions.pod:4134
27536 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27540 #: ../src/guestfs-actions.pod:4145
27541 msgid "guestfs_luks_open_ro"
27542 msgstr "guestfs_luks_open_ro"
27545 #: ../src/guestfs-actions.pod:4147
27549 " guestfs_luks_open_ro (guestfs_h *g,\n"
27550 " const char *device,\n"
27551 " const char *key,\n"
27552 " const char *mapname);\n"
27556 " guestfs_luks_open_ro (guestfs_h *g,\n"
27557 " const char *device,\n"
27558 " const char *key,\n"
27559 " const char *mapname);\n"
27563 #: ../src/guestfs-actions.pod:4153
27565 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27570 #: ../src/guestfs-actions.pod:4164
27571 msgid "guestfs_lvcreate"
27572 msgstr "guestfs_lvcreate"
27575 #: ../src/guestfs-actions.pod:4166
27579 " guestfs_lvcreate (guestfs_h *g,\n"
27580 " const char *logvol,\n"
27581 " const char *volgroup,\n"
27586 " guestfs_lvcreate (guestfs_h *g,\n"
27587 " const char *logvol,\n"
27588 " const char *volgroup,\n"
27593 #: ../src/guestfs-actions.pod:4179
27594 msgid "guestfs_lvm_canonical_lv_name"
27595 msgstr "guestfs_lvm_canonical_lv_name"
27598 #: ../src/guestfs-actions.pod:4181
27602 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27603 " const char *lvname);\n"
27607 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27608 " const char *lvname);\n"
27612 #: ../src/guestfs-actions.pod:4192
27613 msgid "See also C<guestfs_is_lv>."
27617 #: ../src/guestfs-actions.pod:4197
27618 msgid "(Added in 1.5.24)"
27619 msgstr "(Додано у 1.5.24)"
27622 #: ../src/guestfs-actions.pod:4199
27623 msgid "guestfs_lvm_clear_filter"
27624 msgstr "guestfs_lvm_clear_filter"
27627 #: ../src/guestfs-actions.pod:4201
27631 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27635 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27639 #: ../src/guestfs-actions.pod:4204
27641 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
27642 "see every block device."
27646 #: ../src/guestfs-actions.pod:4214
27647 msgid "guestfs_lvm_remove_all"
27648 msgstr "guestfs_lvm_remove_all"
27651 #: ../src/guestfs-actions.pod:4216
27655 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27659 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27663 #: ../src/guestfs-actions.pod:4229
27664 msgid "guestfs_lvm_set_filter"
27665 msgstr "guestfs_lvm_set_filter"
27668 #: ../src/guestfs-actions.pod:4231
27672 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27673 " char *const *devices);\n"
27677 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27678 " char *const *devices);\n"
27682 #: ../src/guestfs-actions.pod:4262
27683 msgid "guestfs_lvremove"
27684 msgstr "guestfs_lvremove"
27687 #: ../src/guestfs-actions.pod:4264
27691 " guestfs_lvremove (guestfs_h *g,\n"
27692 " const char *device);\n"
27696 " guestfs_lvremove (guestfs_h *g,\n"
27697 " const char *device);\n"
27701 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
27702 #: ../src/guestfs-actions.pod:7513
27703 msgid "(Added in 1.0.13)"
27704 msgstr "(Додано у 1.0.13)"
27707 #: ../src/guestfs-actions.pod:4278
27708 msgid "guestfs_lvrename"
27709 msgstr "guestfs_lvrename"
27712 #: ../src/guestfs-actions.pod:4280
27716 " guestfs_lvrename (guestfs_h *g,\n"
27717 " const char *logvol,\n"
27718 " const char *newlogvol);\n"
27722 " guestfs_lvrename (guestfs_h *g,\n"
27723 " const char *logvol,\n"
27724 " const char *newlogvol);\n"
27728 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
27729 msgid "(Added in 1.0.83)"
27730 msgstr "(Додано у 1.0.83)"
27733 #: ../src/guestfs-actions.pod:4291
27734 msgid "guestfs_lvresize"
27735 msgstr "guestfs_lvresize"
27738 #: ../src/guestfs-actions.pod:4293
27742 " guestfs_lvresize (guestfs_h *g,\n"
27743 " const char *device,\n"
27748 " guestfs_lvresize (guestfs_h *g,\n"
27749 " const char *device,\n"
27754 #: ../src/guestfs-actions.pod:4306
27755 msgid "guestfs_lvresize_free"
27756 msgstr "guestfs_lvresize_free"
27759 #: ../src/guestfs-actions.pod:4308
27763 " guestfs_lvresize_free (guestfs_h *g,\n"
27764 " const char *lv,\n"
27769 " guestfs_lvresize_free (guestfs_h *g,\n"
27770 " const char *lv,\n"
27775 #: ../src/guestfs-actions.pod:4321
27776 msgid "(Added in 1.3.3)"
27777 msgstr "(Додано у 1.3.3)"
27780 #: ../src/guestfs-actions.pod:4323
27781 msgid "guestfs_lvs"
27782 msgstr "guestfs_lvs"
27785 #: ../src/guestfs-actions.pod:4325
27789 " guestfs_lvs (guestfs_h *g);\n"
27793 " guestfs_lvs (guestfs_h *g);\n"
27797 #: ../src/guestfs-actions.pod:4334
27798 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27802 #: ../src/guestfs-actions.pod:4342
27803 msgid "guestfs_lvs_full"
27804 msgstr "guestfs_lvs_full"
27807 #: ../src/guestfs-actions.pod:4344
27810 " struct guestfs_lvm_lv_list *\n"
27811 " guestfs_lvs_full (guestfs_h *g);\n"
27814 " struct guestfs_lvm_lv_list *\n"
27815 " guestfs_lvs_full (guestfs_h *g);\n"
27819 #: ../src/guestfs-actions.pod:4350
27821 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27822 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27826 #: ../src/guestfs-actions.pod:4356
27827 msgid "guestfs_lvuuid"
27828 msgstr "guestfs_lvuuid"
27831 #: ../src/guestfs-actions.pod:4358
27835 " guestfs_lvuuid (guestfs_h *g,\n"
27836 " const char *device);\n"
27840 " guestfs_lvuuid (guestfs_h *g,\n"
27841 " const char *device);\n"
27845 #: ../src/guestfs-actions.pod:4369
27846 msgid "guestfs_lxattrlist"
27847 msgstr "guestfs_lxattrlist"
27850 #: ../src/guestfs-actions.pod:4371
27853 " struct guestfs_xattr_list *\n"
27854 " guestfs_lxattrlist (guestfs_h *g,\n"
27855 " const char *path,\n"
27856 " char *const *names);\n"
27859 " struct guestfs_xattr_list *\n"
27860 " guestfs_lxattrlist (guestfs_h *g,\n"
27861 " const char *path,\n"
27862 " char *const *names);\n"
27866 #: ../src/guestfs-actions.pod:4390
27868 "This call is intended for programs that want to efficiently list a directory "
27869 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
27870 "a similarly efficient call for getting standard stats. Very long directory "
27871 "listings might cause the protocol message size to be exceeded, causing this "
27872 "call to fail. The caller must split up such requests into smaller groups of "
27877 #: ../src/guestfs-actions.pod:4404
27878 msgid "guestfs_mkdir"
27879 msgstr "guestfs_mkdir"
27882 #: ../src/guestfs-actions.pod:4406
27886 " guestfs_mkdir (guestfs_h *g,\n"
27887 " const char *path);\n"
27891 " guestfs_mkdir (guestfs_h *g,\n"
27892 " const char *path);\n"
27896 #: ../src/guestfs-actions.pod:4416
27897 msgid "guestfs_mkdir_mode"
27898 msgstr "guestfs_mkdir_mode"
27901 #: ../src/guestfs-actions.pod:4418
27905 " guestfs_mkdir_mode (guestfs_h *g,\n"
27906 " const char *path,\n"
27911 " guestfs_mkdir_mode (guestfs_h *g,\n"
27912 " const char *path,\n"
27917 #: ../src/guestfs-actions.pod:4430
27918 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27922 #: ../src/guestfs-actions.pod:4436
27923 msgid "guestfs_mkdir_p"
27924 msgstr "guestfs_mkdir_p"
27927 #: ../src/guestfs-actions.pod:4438
27931 " guestfs_mkdir_p (guestfs_h *g,\n"
27932 " const char *path);\n"
27936 " guestfs_mkdir_p (guestfs_h *g,\n"
27937 " const char *path);\n"
27941 #: ../src/guestfs-actions.pod:4449
27942 msgid "guestfs_mkdtemp"
27943 msgstr "guestfs_mkdtemp"
27946 #: ../src/guestfs-actions.pod:4451
27950 " guestfs_mkdtemp (guestfs_h *g,\n"
27951 " const char *template);\n"
27955 " guestfs_mkdtemp (guestfs_h *g,\n"
27956 " const char *template);\n"
27960 #: ../src/guestfs-actions.pod:4479
27961 msgid "guestfs_mke2fs_J"
27962 msgstr "guestfs_mke2fs_J"
27965 #: ../src/guestfs-actions.pod:4481
27969 " guestfs_mke2fs_J (guestfs_h *g,\n"
27970 " const char *fstype,\n"
27971 " int blocksize,\n"
27972 " const char *device,\n"
27973 " const char *journal);\n"
27977 " guestfs_mke2fs_J (guestfs_h *g,\n"
27978 " const char *fstype,\n"
27979 " int blocksize,\n"
27980 " const char *device,\n"
27981 " const char *journal);\n"
27985 #: ../src/guestfs-actions.pod:4494
27986 msgid "See also C<guestfs_mke2journal>."
27990 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
27991 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
27992 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
27993 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
27994 msgid "(Added in 1.0.68)"
27995 msgstr "(Додано у 1.0.68)"
27998 #: ../src/guestfs-actions.pod:4500
27999 msgid "guestfs_mke2fs_JL"
28000 msgstr "guestfs_mke2fs_JL"
28003 #: ../src/guestfs-actions.pod:4502
28007 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28008 " const char *fstype,\n"
28009 " int blocksize,\n"
28010 " const char *device,\n"
28011 " const char *label);\n"
28015 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28016 " const char *fstype,\n"
28017 " int blocksize,\n"
28018 " const char *device,\n"
28019 " const char *label);\n"
28023 #: ../src/guestfs-actions.pod:4512
28024 msgid "See also C<guestfs_mke2journal_L>."
28028 #: ../src/guestfs-actions.pod:4518
28029 msgid "guestfs_mke2fs_JU"
28030 msgstr "guestfs_mke2fs_JU"
28033 #: ../src/guestfs-actions.pod:4520
28037 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28038 " const char *fstype,\n"
28039 " int blocksize,\n"
28040 " const char *device,\n"
28041 " const char *uuid);\n"
28045 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28046 " const char *fstype,\n"
28047 " int blocksize,\n"
28048 " const char *device,\n"
28049 " const char *uuid);\n"
28053 #: ../src/guestfs-actions.pod:4530
28054 msgid "See also C<guestfs_mke2journal_U>."
28058 #: ../src/guestfs-actions.pod:4536
28059 msgid "guestfs_mke2journal"
28060 msgstr "guestfs_mke2journal"
28063 #: ../src/guestfs-actions.pod:4538
28067 " guestfs_mke2journal (guestfs_h *g,\n"
28068 " int blocksize,\n"
28069 " const char *device);\n"
28073 " guestfs_mke2journal (guestfs_h *g,\n"
28074 " int blocksize,\n"
28075 " const char *device);\n"
28079 #: ../src/guestfs-actions.pod:4552
28080 msgid "guestfs_mke2journal_L"
28081 msgstr "guestfs_mke2journal_L"
28084 #: ../src/guestfs-actions.pod:4554
28088 " guestfs_mke2journal_L (guestfs_h *g,\n"
28089 " int blocksize,\n"
28090 " const char *label,\n"
28091 " const char *device);\n"
28095 " guestfs_mke2journal_L (guestfs_h *g,\n"
28096 " int blocksize,\n"
28097 " const char *label,\n"
28098 " const char *device);\n"
28102 #: ../src/guestfs-actions.pod:4566
28103 msgid "guestfs_mke2journal_U"
28104 msgstr "guestfs_mke2journal_U"
28107 #: ../src/guestfs-actions.pod:4568
28111 " guestfs_mke2journal_U (guestfs_h *g,\n"
28112 " int blocksize,\n"
28113 " const char *uuid,\n"
28114 " const char *device);\n"
28118 " guestfs_mke2journal_U (guestfs_h *g,\n"
28119 " int blocksize,\n"
28120 " const char *uuid,\n"
28121 " const char *device);\n"
28125 #: ../src/guestfs-actions.pod:4580
28126 msgid "guestfs_mkfifo"
28127 msgstr "guestfs_mkfifo"
28130 #: ../src/guestfs-actions.pod:4582
28134 " guestfs_mkfifo (guestfs_h *g,\n"
28136 " const char *path);\n"
28140 " guestfs_mkfifo (guestfs_h *g,\n"
28142 " const char *path);\n"
28146 #: ../src/guestfs-actions.pod:4587
28148 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28149 "is just a convenient wrapper around C<guestfs_mknod>."
28153 #: ../src/guestfs-actions.pod:4597
28154 msgid "guestfs_mkfs"
28155 msgstr "guestfs_mkfs"
28158 #: ../src/guestfs-actions.pod:4599
28162 " guestfs_mkfs (guestfs_h *g,\n"
28163 " const char *fstype,\n"
28164 " const char *device);\n"
28168 " guestfs_mkfs (guestfs_h *g,\n"
28169 " const char *fstype,\n"
28170 " const char *device);\n"
28174 #: ../src/guestfs-actions.pod:4612
28175 msgid "guestfs_mkfs_b"
28176 msgstr "guestfs_mkfs_b"
28179 #: ../src/guestfs-actions.pod:4614
28183 " guestfs_mkfs_b (guestfs_h *g,\n"
28184 " const char *fstype,\n"
28185 " int blocksize,\n"
28186 " const char *device);\n"
28190 " guestfs_mkfs_b (guestfs_h *g,\n"
28191 " const char *fstype,\n"
28192 " int blocksize,\n"
28193 " const char *device);\n"
28197 #: ../src/guestfs-actions.pod:4620
28199 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28204 #: ../src/guestfs-actions.pod:4627
28206 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28207 "block size of the resulting filesystem. Supported block sizes depend on the "
28208 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28212 #: ../src/guestfs-actions.pod:4639
28213 msgid "guestfs_mkfs_opts"
28214 msgstr "guestfs_mkfs_opts"
28217 #: ../src/guestfs-actions.pod:4641
28221 " guestfs_mkfs_opts (guestfs_h *g,\n"
28222 " const char *fstype,\n"
28223 " const char *device,\n"
28228 " guestfs_mkfs_opts (guestfs_h *g,\n"
28229 " const char *fstype,\n"
28230 " const char *device,\n"
28235 #: ../src/guestfs-actions.pod:4652
28238 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28239 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28240 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28241 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28246 #: ../src/guestfs-actions.pod:4700
28247 msgid "(Added in 1.7.19)"
28248 msgstr "(Додано у 1.7.19)"
28251 #: ../src/guestfs-actions.pod:4702
28252 msgid "guestfs_mkfs_opts_va"
28253 msgstr "guestfs_mkfs_opts_va"
28256 #: ../src/guestfs-actions.pod:4704
28260 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28261 " const char *fstype,\n"
28262 " const char *device,\n"
28263 " va_list args);\n"
28267 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28268 " const char *fstype,\n"
28269 " const char *device,\n"
28270 " va_list args);\n"
28274 #: ../src/guestfs-actions.pod:4710
28275 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28279 #: ../src/guestfs-actions.pod:4714
28280 msgid "guestfs_mkfs_opts_argv"
28281 msgstr "guestfs_mkfs_opts_argv"
28284 #: ../src/guestfs-actions.pod:4716
28288 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28289 " const char *fstype,\n"
28290 " const char *device,\n"
28291 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28295 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28296 " const char *fstype,\n"
28297 " const char *device,\n"
28298 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28302 #: ../src/guestfs-actions.pod:4722
28303 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28307 #: ../src/guestfs-actions.pod:4726
28308 msgid "guestfs_mkmountpoint"
28309 msgstr "guestfs_mkmountpoint"
28312 #: ../src/guestfs-actions.pod:4728
28316 " guestfs_mkmountpoint (guestfs_h *g,\n"
28317 " const char *exemptpath);\n"
28321 " guestfs_mkmountpoint (guestfs_h *g,\n"
28322 " const char *exemptpath);\n"
28326 #: ../src/guestfs-actions.pod:4732
28328 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28329 "that can be used to create extra mountpoints before mounting the first "
28334 #: ../src/guestfs-actions.pod:4756
28336 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
28337 "may get unexpected errors if you try to mix these calls. It is safest to "
28338 "manually unmount filesystems and remove mountpoints after use."
28342 #: ../src/guestfs-actions.pod:4760
28344 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28345 "first, so for this to work for manual mountpoints, you must ensure that the "
28346 "innermost mountpoints have the longest pathnames, as in the example code "
28351 #: ../src/guestfs-actions.pod:4767
28353 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28354 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28355 "can also trigger these issues."
28359 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
28360 #: ../src/guestfs-actions.pod:6099
28361 msgid "(Added in 1.0.62)"
28362 msgstr "(Додано у 1.0.62)"
28365 #: ../src/guestfs-actions.pod:4775
28366 msgid "guestfs_mknod"
28370 #: ../src/guestfs-actions.pod:4777
28374 " guestfs_mknod (guestfs_h *g,\n"
28378 " const char *path);\n"
28383 #: ../src/guestfs-actions.pod:4792
28385 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28386 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28387 "regular file). These constants are available in the standard Linux header "
28388 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28389 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28390 "the appropriate constant for you."
28394 #: ../src/guestfs-actions.pod:4806
28395 msgid "guestfs_mknod_b"
28399 #: ../src/guestfs-actions.pod:4808
28403 " guestfs_mknod_b (guestfs_h *g,\n"
28407 " const char *path);\n"
28412 #: ../src/guestfs-actions.pod:4815
28414 "This call creates a block device node called C<path> with mode C<mode> and "
28415 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28416 "wrapper around C<guestfs_mknod>."
28420 #: ../src/guestfs-actions.pod:4825
28421 msgid "guestfs_mknod_c"
28425 #: ../src/guestfs-actions.pod:4827
28429 " guestfs_mknod_c (guestfs_h *g,\n"
28433 " const char *path);\n"
28438 #: ../src/guestfs-actions.pod:4834
28440 "This call creates a char device node called C<path> with mode C<mode> and "
28441 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28442 "wrapper around C<guestfs_mknod>."
28446 #: ../src/guestfs-actions.pod:4844
28447 msgid "guestfs_mkswap"
28451 #: ../src/guestfs-actions.pod:4846
28455 " guestfs_mkswap (guestfs_h *g,\n"
28456 " const char *device);\n"
28461 #: ../src/guestfs-actions.pod:4856
28462 msgid "guestfs_mkswap_L"
28466 #: ../src/guestfs-actions.pod:4858
28470 " guestfs_mkswap_L (guestfs_h *g,\n"
28471 " const char *label,\n"
28472 " const char *device);\n"
28477 #: ../src/guestfs-actions.pod:4873
28478 msgid "guestfs_mkswap_U"
28482 #: ../src/guestfs-actions.pod:4875
28486 " guestfs_mkswap_U (guestfs_h *g,\n"
28487 " const char *uuid,\n"
28488 " const char *device);\n"
28493 #: ../src/guestfs-actions.pod:4886
28494 msgid "guestfs_mkswap_file"
28498 #: ../src/guestfs-actions.pod:4888
28502 " guestfs_mkswap_file (guestfs_h *g,\n"
28503 " const char *path);\n"
28508 #: ../src/guestfs-actions.pod:4894
28510 "This command just writes a swap file signature to an existing file. To "
28511 "create the file itself, use something like C<guestfs_fallocate>."
28515 #: ../src/guestfs-actions.pod:4901
28516 msgid "guestfs_modprobe"
28520 #: ../src/guestfs-actions.pod:4903
28524 " guestfs_modprobe (guestfs_h *g,\n"
28525 " const char *modulename);\n"
28530 #: ../src/guestfs-actions.pod:4916
28531 msgid "guestfs_mount"
28535 #: ../src/guestfs-actions.pod:4918
28539 " guestfs_mount (guestfs_h *g,\n"
28540 " const char *device,\n"
28541 " const char *mountpoint);\n"
28546 #: ../src/guestfs-actions.pod:4923
28548 "I<This function is deprecated.> In new code, use the L</"
28549 "guestfs_mount_options> call instead."
28553 #: ../src/guestfs-actions.pod:4944
28555 "B<Important note:> When you use this call, the filesystem options C<sync> "
28556 "and C<noatime> are set implicitly. This was originally done because we "
28557 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28558 "very large negative performance impact and negligible effect on "
28559 "reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
28560 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28561 "(use an empty string for the first parameter if you don't want any options)."
28565 #: ../src/guestfs-actions.pod:4958
28566 msgid "guestfs_mount_9p"
28570 #: ../src/guestfs-actions.pod:4960
28574 " guestfs_mount_9p (guestfs_h *g,\n"
28575 " const char *mounttag,\n"
28576 " const char *mountpoint,\n"
28582 #: ../src/guestfs-actions.pod:4971
28585 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28590 #: ../src/guestfs-actions.pod:4984
28591 msgid "guestfs_mount_9p_va"
28595 #: ../src/guestfs-actions.pod:4986
28599 " guestfs_mount_9p_va (guestfs_h *g,\n"
28600 " const char *mounttag,\n"
28601 " const char *mountpoint,\n"
28602 " va_list args);\n"
28607 #: ../src/guestfs-actions.pod:4992
28608 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28612 #: ../src/guestfs-actions.pod:4996
28613 msgid "guestfs_mount_9p_argv"
28617 #: ../src/guestfs-actions.pod:4998
28621 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28622 " const char *mounttag,\n"
28623 " const char *mountpoint,\n"
28624 " const struct guestfs_mount_9p_argv *optargs);\n"
28629 #: ../src/guestfs-actions.pod:5004
28630 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28634 #: ../src/guestfs-actions.pod:5008
28635 msgid "guestfs_mount_loop"
28639 #: ../src/guestfs-actions.pod:5010
28643 " guestfs_mount_loop (guestfs_h *g,\n"
28644 " const char *file,\n"
28645 " const char *mountpoint);\n"
28650 #: ../src/guestfs-actions.pod:5023
28651 msgid "guestfs_mount_options"
28655 #: ../src/guestfs-actions.pod:5025
28659 " guestfs_mount_options (guestfs_h *g,\n"
28660 " const char *options,\n"
28661 " const char *device,\n"
28662 " const char *mountpoint);\n"
28667 #: ../src/guestfs-actions.pod:5031
28669 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28670 "the mount options as for the L<mount(8)> I<-o> flag."
28674 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
28675 #: ../src/guestfs-actions.pod:5072
28676 msgid "(Added in 1.0.10)"
28680 #: ../src/guestfs-actions.pod:5043
28681 msgid "guestfs_mount_ro"
28685 #: ../src/guestfs-actions.pod:5045
28689 " guestfs_mount_ro (guestfs_h *g,\n"
28690 " const char *device,\n"
28691 " const char *mountpoint);\n"
28696 #: ../src/guestfs-actions.pod:5050
28698 "This is the same as the C<guestfs_mount> command, but it mounts the "
28699 "filesystem with the read-only (I<-o ro>) flag."
28703 #: ../src/guestfs-actions.pod:5057
28704 msgid "guestfs_mount_vfs"
28708 #: ../src/guestfs-actions.pod:5059
28712 " guestfs_mount_vfs (guestfs_h *g,\n"
28713 " const char *options,\n"
28714 " const char *vfstype,\n"
28715 " const char *device,\n"
28716 " const char *mountpoint);\n"
28721 #: ../src/guestfs-actions.pod:5066
28723 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28724 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28729 #: ../src/guestfs-actions.pod:5074
28730 msgid "guestfs_mountpoints"
28734 #: ../src/guestfs-actions.pod:5076
28738 " guestfs_mountpoints (guestfs_h *g);\n"
28743 #: ../src/guestfs-actions.pod:5079
28745 "This call is similar to C<guestfs_mounts>. That call returns a list of "
28746 "devices. This one returns a hash table (map) of device name to directory "
28747 "where the device is mounted."
28751 #: ../src/guestfs-actions.pod:5091
28752 msgid "guestfs_mounts"
28756 #: ../src/guestfs-actions.pod:5093
28760 " guestfs_mounts (guestfs_h *g);\n"
28765 #: ../src/guestfs-actions.pod:5101
28766 msgid "See also: C<guestfs_mountpoints>"
28770 #: ../src/guestfs-actions.pod:5109
28775 #: ../src/guestfs-actions.pod:5111
28779 " guestfs_mv (guestfs_h *g,\n"
28780 " const char *src,\n"
28781 " const char *dest);\n"
28786 #: ../src/guestfs-actions.pod:5123
28787 msgid "guestfs_ntfs_3g_probe"
28791 #: ../src/guestfs-actions.pod:5125
28795 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28797 " const char *device);\n"
28802 #: ../src/guestfs-actions.pod:5144
28803 msgid "(Added in 1.0.43)"
28807 #: ../src/guestfs-actions.pod:5146
28808 msgid "guestfs_ntfsresize"
28812 #: ../src/guestfs-actions.pod:5148
28816 " guestfs_ntfsresize (guestfs_h *g,\n"
28817 " const char *device);\n"
28822 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
28824 "I<This function is deprecated.> In new code, use the L</"
28825 "guestfs_ntfsresize_opts> call instead."
28829 #: ../src/guestfs-actions.pod:5176
28830 msgid "guestfs_ntfsresize_opts"
28834 #: ../src/guestfs-actions.pod:5178
28838 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28839 " const char *device,\n"
28845 #: ../src/guestfs-actions.pod:5188
28848 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28849 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28854 #: ../src/guestfs-actions.pod:5208
28856 "After the resize operation, the filesystem is always marked as requiring a "
28857 "consistency check (for safety). You have to boot into Windows to perform "
28858 "this check and clear this condition. If you I<don't> set the C<force> "
28859 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28860 "times on a single filesystem without booting into Windows between each "
28865 #: ../src/guestfs-actions.pod:5223
28866 msgid "guestfs_ntfsresize_opts_va"
28870 #: ../src/guestfs-actions.pod:5225
28874 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28875 " const char *device,\n"
28876 " va_list args);\n"
28881 #: ../src/guestfs-actions.pod:5230
28882 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28886 #: ../src/guestfs-actions.pod:5234
28887 msgid "guestfs_ntfsresize_opts_argv"
28891 #: ../src/guestfs-actions.pod:5236
28895 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28896 " const char *device,\n"
28897 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28902 #: ../src/guestfs-actions.pod:5241
28903 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28907 #: ../src/guestfs-actions.pod:5245
28908 msgid "guestfs_ntfsresize_size"
28912 #: ../src/guestfs-actions.pod:5247
28916 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28917 " const char *device,\n"
28918 " int64_t size);\n"
28923 #: ../src/guestfs-actions.pod:5259
28925 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28926 "to specify the new size (in bytes) explicitly."
28930 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
28931 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
28932 #: ../src/guestfs-actions.pod:7670
28933 msgid "(Added in 1.3.14)"
28937 #: ../src/guestfs-actions.pod:5266
28938 msgid "guestfs_part_add"
28942 #: ../src/guestfs-actions.pod:5268
28946 " guestfs_part_add (guestfs_h *g,\n"
28947 " const char *device,\n"
28948 " const char *prlogex,\n"
28949 " int64_t startsect,\n"
28950 " int64_t endsect);\n"
28955 #: ../src/guestfs-actions.pod:5275
28957 "This command adds a partition to C<device>. If there is no partition table "
28958 "on the device, call C<guestfs_part_init> first."
28962 #: ../src/guestfs-actions.pod:5287
28964 "Creating a partition which covers the whole disk is not so easy. Use "
28965 "C<guestfs_part_disk> to do that."
28969 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
28970 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
28971 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
28972 #: ../src/guestfs-actions.pod:5564
28973 msgid "(Added in 1.0.78)"
28977 #: ../src/guestfs-actions.pod:5294
28978 msgid "guestfs_part_del"
28982 #: ../src/guestfs-actions.pod:5296
28986 " guestfs_part_del (guestfs_h *g,\n"
28987 " const char *device,\n"
28993 #: ../src/guestfs-actions.pod:5311
28994 msgid "guestfs_part_disk"
28998 #: ../src/guestfs-actions.pod:5313
29002 " guestfs_part_disk (guestfs_h *g,\n"
29003 " const char *device,\n"
29004 " const char *parttype);\n"
29009 #: ../src/guestfs-actions.pod:5318
29011 "This command is simply a combination of C<guestfs_part_init> followed by "
29012 "C<guestfs_part_add> to create a single primary partition covering the whole "
29017 #: ../src/guestfs-actions.pod:5322
29019 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29020 "possible values are described in C<guestfs_part_init>."
29024 #: ../src/guestfs-actions.pod:5332
29025 msgid "guestfs_part_get_bootable"
29029 #: ../src/guestfs-actions.pod:5334
29033 " guestfs_part_get_bootable (guestfs_h *g,\n"
29034 " const char *device,\n"
29040 #: ../src/guestfs-actions.pod:5342
29041 msgid "See also C<guestfs_part_set_bootable>."
29045 #: ../src/guestfs-actions.pod:5348
29046 msgid "guestfs_part_get_mbr_id"
29050 #: ../src/guestfs-actions.pod:5350
29054 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29055 " const char *device,\n"
29061 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
29063 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
29064 "undefined results for other partition table types (see "
29065 "C<guestfs_part_get_parttype>)."
29069 #: ../src/guestfs-actions.pod:5366
29070 msgid "guestfs_part_get_parttype"
29074 #: ../src/guestfs-actions.pod:5368
29078 " guestfs_part_get_parttype (guestfs_h *g,\n"
29079 " const char *device);\n"
29084 #: ../src/guestfs-actions.pod:5375
29086 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29087 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
29088 "possible, although unusual. See C<guestfs_part_init> for a full list."
29092 #: ../src/guestfs-actions.pod:5385
29093 msgid "guestfs_part_init"
29097 #: ../src/guestfs-actions.pod:5387
29101 " guestfs_part_init (guestfs_h *g,\n"
29102 " const char *device,\n"
29103 " const char *parttype);\n"
29108 #: ../src/guestfs-actions.pod:5396
29110 "Initially there are no partitions. Following this, you should call "
29111 "C<guestfs_part_add> for each partition required."
29115 #: ../src/guestfs-actions.pod:5469
29116 msgid "guestfs_part_list"
29117 msgstr "guestfs_part_list"
29120 #: ../src/guestfs-actions.pod:5471
29123 " struct guestfs_partition_list *\n"
29124 " guestfs_part_list (guestfs_h *g,\n"
29125 " const char *device);\n"
29128 " struct guestfs_partition_list *\n"
29129 " guestfs_part_list (guestfs_h *g,\n"
29130 " const char *device);\n"
29134 #: ../src/guestfs-actions.pod:5488
29136 "Start of the partition I<in bytes>. To get sectors you have to divide by "
29137 "the device's sector size, see C<guestfs_blockdev_getss>."
29141 #: ../src/guestfs-actions.pod:5501
29143 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29144 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
29149 #: ../src/guestfs-actions.pod:5507
29150 msgid "guestfs_part_set_bootable"
29154 #: ../src/guestfs-actions.pod:5509
29158 " guestfs_part_set_bootable (guestfs_h *g,\n"
29159 " const char *device,\n"
29161 " int bootable);\n"
29166 #: ../src/guestfs-actions.pod:5526
29167 msgid "guestfs_part_set_mbr_id"
29171 #: ../src/guestfs-actions.pod:5528
29175 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29176 " const char *device,\n"
29183 #: ../src/guestfs-actions.pod:5548
29184 msgid "guestfs_part_set_name"
29188 #: ../src/guestfs-actions.pod:5550
29192 " guestfs_part_set_name (guestfs_h *g,\n"
29193 " const char *device,\n"
29195 " const char *name);\n"
29200 #: ../src/guestfs-actions.pod:5566
29201 msgid "guestfs_part_to_dev"
29205 #: ../src/guestfs-actions.pod:5568
29209 " guestfs_part_to_dev (guestfs_h *g,\n"
29210 " const char *partition);\n"
29215 #: ../src/guestfs-actions.pod:5576
29217 "The named partition must exist, for example as a string returned from "
29218 "C<guestfs_list_partitions>."
29222 #: ../src/guestfs-actions.pod:5584
29223 msgid "guestfs_ping_daemon"
29227 #: ../src/guestfs-actions.pod:5586
29231 " guestfs_ping_daemon (guestfs_h *g);\n"
29236 #: ../src/guestfs-actions.pod:5598
29237 msgid "guestfs_pread"
29241 #: ../src/guestfs-actions.pod:5600
29245 " guestfs_pread (guestfs_h *g,\n"
29246 " const char *path,\n"
29248 " int64_t offset,\n"
29249 " size_t *size_r);\n"
29254 #: ../src/guestfs-actions.pod:5613
29255 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29259 #: ../src/guestfs-actions.pod:5624
29260 msgid "guestfs_pread_device"
29264 #: ../src/guestfs-actions.pod:5626
29268 " guestfs_pread_device (guestfs_h *g,\n"
29269 " const char *device,\n"
29271 " int64_t offset,\n"
29272 " size_t *size_r);\n"
29277 #: ../src/guestfs-actions.pod:5639
29278 msgid "See also C<guestfs_pread>."
29282 #: ../src/guestfs-actions.pod:5648
29283 msgid "(Added in 1.5.21)"
29287 #: ../src/guestfs-actions.pod:5650
29288 msgid "guestfs_pvcreate"
29292 #: ../src/guestfs-actions.pod:5652
29296 " guestfs_pvcreate (guestfs_h *g,\n"
29297 " const char *device);\n"
29302 #: ../src/guestfs-actions.pod:5664
29303 msgid "guestfs_pvremove"
29307 #: ../src/guestfs-actions.pod:5666
29311 " guestfs_pvremove (guestfs_h *g,\n"
29312 " const char *device);\n"
29317 #: ../src/guestfs-actions.pod:5681
29318 msgid "guestfs_pvresize"
29322 #: ../src/guestfs-actions.pod:5683
29326 " guestfs_pvresize (guestfs_h *g,\n"
29327 " const char *device);\n"
29332 #: ../src/guestfs-actions.pod:5694
29333 msgid "guestfs_pvresize_size"
29337 #: ../src/guestfs-actions.pod:5696
29341 " guestfs_pvresize_size (guestfs_h *g,\n"
29342 " const char *device,\n"
29343 " int64_t size);\n"
29348 #: ../src/guestfs-actions.pod:5701
29350 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29351 "specify the new size (in bytes) explicitly."
29355 #: ../src/guestfs-actions.pod:5708
29356 msgid "guestfs_pvs"
29360 #: ../src/guestfs-actions.pod:5710
29364 " guestfs_pvs (guestfs_h *g);\n"
29369 #: ../src/guestfs-actions.pod:5719
29370 msgid "See also C<guestfs_pvs_full>."
29374 #: ../src/guestfs-actions.pod:5727
29375 msgid "guestfs_pvs_full"
29379 #: ../src/guestfs-actions.pod:5729
29382 " struct guestfs_lvm_pv_list *\n"
29383 " guestfs_pvs_full (guestfs_h *g);\n"
29388 #: ../src/guestfs-actions.pod:5735
29390 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29391 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29395 #: ../src/guestfs-actions.pod:5741
29396 msgid "guestfs_pvuuid"
29400 #: ../src/guestfs-actions.pod:5743
29404 " guestfs_pvuuid (guestfs_h *g,\n"
29405 " const char *device);\n"
29410 #: ../src/guestfs-actions.pod:5754
29411 msgid "guestfs_pwrite"
29415 #: ../src/guestfs-actions.pod:5756
29419 " guestfs_pwrite (guestfs_h *g,\n"
29420 " const char *path,\n"
29421 " const char *content,\n"
29422 " size_t content_size,\n"
29423 " int64_t offset);\n"
29428 #: ../src/guestfs-actions.pod:5772
29429 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29433 #: ../src/guestfs-actions.pod:5781
29434 msgid "guestfs_pwrite_device"
29438 #: ../src/guestfs-actions.pod:5783
29442 " guestfs_pwrite_device (guestfs_h *g,\n"
29443 " const char *device,\n"
29444 " const char *content,\n"
29445 " size_t content_size,\n"
29446 " int64_t offset);\n"
29451 #: ../src/guestfs-actions.pod:5798
29452 msgid "See also C<guestfs_pwrite>."
29456 #: ../src/guestfs-actions.pod:5805
29457 msgid "(Added in 1.5.20)"
29461 #: ../src/guestfs-actions.pod:5807
29462 msgid "guestfs_read_file"
29466 #: ../src/guestfs-actions.pod:5809
29470 " guestfs_read_file (guestfs_h *g,\n"
29471 " const char *path,\n"
29472 " size_t *size_r);\n"
29477 #: ../src/guestfs-actions.pod:5817
29479 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29480 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
29481 "function is limited in the total size of file that can be handled."
29485 #: ../src/guestfs-actions.pod:5829
29486 msgid "(Added in 1.0.63)"
29490 #: ../src/guestfs-actions.pod:5831
29491 msgid "guestfs_read_lines"
29495 #: ../src/guestfs-actions.pod:5833
29499 " guestfs_read_lines (guestfs_h *g,\n"
29500 " const char *path);\n"
29505 #: ../src/guestfs-actions.pod:5842
29507 "Note that this function cannot correctly handle binary files (specifically, "
29508 "files containing C<\\0> character which is treated as end of line). For "
29509 "those you need to use the C<guestfs_read_file> function which has a more "
29510 "complex interface."
29514 #: ../src/guestfs-actions.pod:5853
29515 msgid "guestfs_readdir"
29519 #: ../src/guestfs-actions.pod:5855
29522 " struct guestfs_dirent_list *\n"
29523 " guestfs_readdir (guestfs_h *g,\n"
29524 " const char *dir);\n"
29529 #: ../src/guestfs-actions.pod:5909
29531 "This function is primarily intended for use by programs. To get a simple "
29532 "list of names, use C<guestfs_ls>. To get a printable directory for human "
29533 "consumption, use C<guestfs_ll>."
29537 #: ../src/guestfs-actions.pod:5913
29539 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29540 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
29544 #: ../src/guestfs-actions.pod:5919
29545 msgid "guestfs_readlink"
29549 #: ../src/guestfs-actions.pod:5921
29553 " guestfs_readlink (guestfs_h *g,\n"
29554 " const char *path);\n"
29559 #: ../src/guestfs-actions.pod:5932
29560 msgid "guestfs_readlinklist"
29564 #: ../src/guestfs-actions.pod:5934
29568 " guestfs_readlinklist (guestfs_h *g,\n"
29569 " const char *path,\n"
29570 " char *const *names);\n"
29575 #: ../src/guestfs-actions.pod:5967
29576 msgid "guestfs_realpath"
29580 #: ../src/guestfs-actions.pod:5969
29584 " guestfs_realpath (guestfs_h *g,\n"
29585 " const char *path);\n"
29590 #: ../src/guestfs-actions.pod:5981
29591 msgid "guestfs_removexattr"
29595 #: ../src/guestfs-actions.pod:5983
29599 " guestfs_removexattr (guestfs_h *g,\n"
29600 " const char *xattr,\n"
29601 " const char *path);\n"
29606 #: ../src/guestfs-actions.pod:5991
29607 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29611 #: ../src/guestfs-actions.pod:5997
29612 msgid "guestfs_resize2fs"
29616 #: ../src/guestfs-actions.pod:5999
29620 " guestfs_resize2fs (guestfs_h *g,\n"
29621 " const char *device);\n"
29626 #: ../src/guestfs-actions.pod:6006
29628 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29629 "C<device> before calling this command. For unknown reasons C<resize2fs> "
29630 "sometimes gives an error about this and sometimes not. In any case, it is "
29631 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29635 #: ../src/guestfs-actions.pod:6016
29636 msgid "guestfs_resize2fs_M"
29640 #: ../src/guestfs-actions.pod:6018
29644 " guestfs_resize2fs_M (guestfs_h *g,\n"
29645 " const char *device);\n"
29650 #: ../src/guestfs-actions.pod:6022
29652 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29653 "resized to its minimum size. This works like the I<-M> option to the "
29654 "C<resize2fs> command."
29658 #: ../src/guestfs-actions.pod:6026
29660 "To get the resulting size of the filesystem you should call "
29661 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
29662 "These two numbers, multiplied together, give the resulting size of the "
29663 "minimal filesystem in bytes."
29667 #: ../src/guestfs-actions.pod:6035
29668 msgid "guestfs_resize2fs_size"
29672 #: ../src/guestfs-actions.pod:6037
29676 " guestfs_resize2fs_size (guestfs_h *g,\n"
29677 " const char *device,\n"
29678 " int64_t size);\n"
29683 #: ../src/guestfs-actions.pod:6042
29685 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29686 "to specify the new size (in bytes) explicitly."
29690 #: ../src/guestfs-actions.pod:6049
29695 #: ../src/guestfs-actions.pod:6051
29699 " guestfs_rm (guestfs_h *g,\n"
29700 " const char *path);\n"
29705 #: ../src/guestfs-actions.pod:6061
29706 msgid "guestfs_rm_rf"
29710 #: ../src/guestfs-actions.pod:6063
29714 " guestfs_rm_rf (guestfs_h *g,\n"
29715 " const char *path);\n"
29720 #: ../src/guestfs-actions.pod:6075
29721 msgid "guestfs_rmdir"
29725 #: ../src/guestfs-actions.pod:6077
29729 " guestfs_rmdir (guestfs_h *g,\n"
29730 " const char *path);\n"
29735 #: ../src/guestfs-actions.pod:6087
29736 msgid "guestfs_rmmountpoint"
29740 #: ../src/guestfs-actions.pod:6089
29744 " guestfs_rmmountpoint (guestfs_h *g,\n"
29745 " const char *exemptpath);\n"
29750 #: ../src/guestfs-actions.pod:6093
29752 "This calls removes a mountpoint that was previously created with "
29753 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
29757 #: ../src/guestfs-actions.pod:6101
29758 msgid "guestfs_scrub_device"
29762 #: ../src/guestfs-actions.pod:6103
29766 " guestfs_scrub_device (guestfs_h *g,\n"
29767 " const char *device);\n"
29772 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
29773 #: ../src/guestfs-actions.pod:6155
29774 msgid "(Added in 1.0.52)"
29778 #: ../src/guestfs-actions.pod:6120
29779 msgid "guestfs_scrub_file"
29783 #: ../src/guestfs-actions.pod:6122
29787 " guestfs_scrub_file (guestfs_h *g,\n"
29788 " const char *file);\n"
29793 #: ../src/guestfs-actions.pod:6138
29794 msgid "guestfs_scrub_freespace"
29798 #: ../src/guestfs-actions.pod:6140
29802 " guestfs_scrub_freespace (guestfs_h *g,\n"
29803 " const char *dir);\n"
29808 #: ../src/guestfs-actions.pod:6144
29810 "This command creates the directory C<dir> and then fills it with files until "
29811 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29812 "and deletes them. The intention is to scrub any free space on the partition "
29813 "containing C<dir>."
29817 #: ../src/guestfs-actions.pod:6157
29818 msgid "guestfs_set_append"
29822 #: ../src/guestfs-actions.pod:6159
29826 " guestfs_set_append (guestfs_h *g,\n"
29827 " const char *append);\n"
29832 #: ../src/guestfs-actions.pod:6176
29833 msgid "guestfs_set_attach_method"
29837 #: ../src/guestfs-actions.pod:6178
29841 " guestfs_set_attach_method (guestfs_h *g,\n"
29842 " const char *attachmethod);\n"
29847 #: ../src/guestfs-actions.pod:6206
29848 msgid "guestfs_set_autosync"
29852 #: ../src/guestfs-actions.pod:6208
29856 " guestfs_set_autosync (guestfs_h *g,\n"
29857 " int autosync);\n"
29862 #: ../src/guestfs-actions.pod:6224
29863 msgid "guestfs_set_direct"
29867 #: ../src/guestfs-actions.pod:6226
29871 " guestfs_set_direct (guestfs_h *g,\n"
29877 #: ../src/guestfs-actions.pod:6234
29879 "One consequence of this is that log messages aren't caught by the library "
29880 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29885 #: ../src/guestfs-actions.pod:6247
29886 msgid "guestfs_set_e2label"
29890 #: ../src/guestfs-actions.pod:6249
29894 " guestfs_set_e2label (guestfs_h *g,\n"
29895 " const char *device,\n"
29896 " const char *label);\n"
29901 #: ../src/guestfs-actions.pod:6258
29903 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29904 "the existing label on a filesystem."
29908 #: ../src/guestfs-actions.pod:6265
29909 msgid "guestfs_set_e2uuid"
29913 #: ../src/guestfs-actions.pod:6267
29917 " guestfs_set_e2uuid (guestfs_h *g,\n"
29918 " const char *device,\n"
29919 " const char *uuid);\n"
29924 #: ../src/guestfs-actions.pod:6277
29926 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29927 "the existing UUID of a filesystem."
29931 #: ../src/guestfs-actions.pod:6284
29932 msgid "guestfs_set_memsize"
29936 #: ../src/guestfs-actions.pod:6286
29940 " guestfs_set_memsize (guestfs_h *g,\n"
29946 #: ../src/guestfs-actions.pod:6290
29948 "This sets the memory size in megabytes allocated to the qemu subprocess. "
29949 "This only has any effect if called before C<guestfs_launch>."
29953 #: ../src/guestfs-actions.pod:6305
29954 msgid "guestfs_set_network"
29958 #: ../src/guestfs-actions.pod:6307
29962 " guestfs_set_network (guestfs_h *g,\n"
29968 #: ../src/guestfs-actions.pod:6317
29970 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29975 #: ../src/guestfs-actions.pod:6324
29976 msgid "guestfs_set_path"
29980 #: ../src/guestfs-actions.pod:6326
29984 " guestfs_set_path (guestfs_h *g,\n"
29985 " const char *searchpath);\n"
29990 #: ../src/guestfs-actions.pod:6341
29991 msgid "guestfs_set_pgroup"
29995 #: ../src/guestfs-actions.pod:6343
29999 " guestfs_set_pgroup (guestfs_h *g,\n"
30005 #: ../src/guestfs-actions.pod:6360
30006 msgid "guestfs_set_qemu"
30010 #: ../src/guestfs-actions.pod:6362
30014 " guestfs_set_qemu (guestfs_h *g,\n"
30015 " const char *qemu);\n"
30020 #: ../src/guestfs-actions.pod:6388
30021 msgid "guestfs_set_recovery_proc"
30025 #: ../src/guestfs-actions.pod:6390
30029 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30030 " int recoveryproc);\n"
30035 #: ../src/guestfs-actions.pod:6394
30037 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30038 "not create a recovery process. The purpose of the recovery process is to "
30039 "stop runaway qemu processes in the case where the main program aborts "
30044 #: ../src/guestfs-actions.pod:6399
30046 "This only has any effect if called before C<guestfs_launch>, and the default "
30051 #: ../src/guestfs-actions.pod:6412
30052 msgid "guestfs_set_selinux"
30056 #: ../src/guestfs-actions.pod:6414
30060 " guestfs_set_selinux (guestfs_h *g,\n"
30066 #: ../src/guestfs-actions.pod:6431
30067 msgid "guestfs_set_trace"
30071 #: ../src/guestfs-actions.pod:6433
30075 " guestfs_set_trace (guestfs_h *g,\n"
30081 #: ../src/guestfs-actions.pod:6447
30083 "Trace messages are normally sent to C<stderr>, unless you register a "
30084 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30088 #: ../src/guestfs-actions.pod:6455
30089 msgid "guestfs_set_verbose"
30093 #: ../src/guestfs-actions.pod:6457
30097 " guestfs_set_verbose (guestfs_h *g,\n"
30103 #: ../src/guestfs-actions.pod:6466
30105 "Verbose messages are normally sent to C<stderr>, unless you register a "
30106 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30110 #: ../src/guestfs-actions.pod:6474
30111 msgid "guestfs_setcon"
30115 #: ../src/guestfs-actions.pod:6476
30119 " guestfs_setcon (guestfs_h *g,\n"
30120 " const char *context);\n"
30125 #: ../src/guestfs-actions.pod:6489
30126 msgid "guestfs_setxattr"
30130 #: ../src/guestfs-actions.pod:6491
30134 " guestfs_setxattr (guestfs_h *g,\n"
30135 " const char *xattr,\n"
30136 " const char *val,\n"
30138 " const char *path);\n"
30143 #: ../src/guestfs-actions.pod:6502
30144 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30148 #: ../src/guestfs-actions.pod:6508
30149 msgid "guestfs_sfdisk"
30153 #: ../src/guestfs-actions.pod:6510
30157 " guestfs_sfdisk (guestfs_h *g,\n"
30158 " const char *device,\n"
30162 " char *const *lines);\n"
30167 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562
30168 #: ../src/guestfs-actions.pod:6596
30170 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30175 #: ../src/guestfs-actions.pod:6545
30177 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30181 #: ../src/guestfs-actions.pod:6555
30182 msgid "guestfs_sfdiskM"
30186 #: ../src/guestfs-actions.pod:6557
30190 " guestfs_sfdiskM (guestfs_h *g,\n"
30191 " const char *device,\n"
30192 " char *const *lines);\n"
30197 #: ../src/guestfs-actions.pod:6569
30199 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30200 "partition sizes are specified in megabytes only (rounded to the nearest "
30201 "cylinder) and you don't need to specify the cyls, heads and sectors "
30202 "parameters which were rarely if ever used anyway."
30206 #: ../src/guestfs-actions.pod:6575
30208 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30209 "C<guestfs_part_disk>"
30213 #: ../src/guestfs-actions.pod:6585
30214 msgid "guestfs_sfdisk_N"
30218 #: ../src/guestfs-actions.pod:6587
30222 " guestfs_sfdisk_N (guestfs_h *g,\n"
30223 " const char *device,\n"
30228 " const char *line);\n"
30233 #: ../src/guestfs-actions.pod:6606
30235 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
30236 "for the cyls/heads/sectors parameters."
30240 #: ../src/guestfs-actions.pod:6609
30241 msgid "See also: C<guestfs_part_add>"
30245 #: ../src/guestfs-actions.pod:6618
30246 msgid "guestfs_sfdisk_disk_geometry"
30250 #: ../src/guestfs-actions.pod:6620
30254 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30255 " const char *device);\n"
30260 #: ../src/guestfs-actions.pod:6624
30262 "This displays the disk geometry of C<device> read from the partition table. "
30263 "Especially in the case where the underlying block device has been resized, "
30264 "this can be different from the kernel's idea of the geometry (see "
30265 "C<guestfs_sfdisk_kernel_geometry>)."
30269 #: ../src/guestfs-actions.pod:6637
30270 msgid "guestfs_sfdisk_kernel_geometry"
30274 #: ../src/guestfs-actions.pod:6639
30278 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30279 " const char *device);\n"
30284 #: ../src/guestfs-actions.pod:6653
30285 msgid "guestfs_sfdisk_l"
30289 #: ../src/guestfs-actions.pod:6655
30293 " guestfs_sfdisk_l (guestfs_h *g,\n"
30294 " const char *device);\n"
30299 #: ../src/guestfs-actions.pod:6659
30301 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30306 #: ../src/guestfs-actions.pod:6670
30307 msgid "See also: C<guestfs_part_list>"
30311 #: ../src/guestfs-actions.pod:6677
30316 #: ../src/guestfs-actions.pod:6679
30320 " guestfs_sh (guestfs_h *g,\n"
30321 " const char *command);\n"
30326 #: ../src/guestfs-actions.pod:6686
30327 msgid "This is like C<guestfs_command>, but passes the command to:"
30331 #: ../src/guestfs-actions.pod:6694
30332 msgid "All the provisos about C<guestfs_command> apply to this call."
30336 #: ../src/guestfs-actions.pod:6701
30337 msgid "guestfs_sh_lines"
30341 #: ../src/guestfs-actions.pod:6703
30345 " guestfs_sh_lines (guestfs_h *g,\n"
30346 " const char *command);\n"
30351 #: ../src/guestfs-actions.pod:6707
30353 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30358 #: ../src/guestfs-actions.pod:6710
30359 msgid "See also: C<guestfs_command_lines>"
30363 #: ../src/guestfs-actions.pod:6718
30364 msgid "guestfs_sleep"
30368 #: ../src/guestfs-actions.pod:6720
30372 " guestfs_sleep (guestfs_h *g,\n"
30378 #: ../src/guestfs-actions.pod:6728
30379 msgid "(Added in 1.0.41)"
30383 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
30384 msgid "guestfs_stat"
30388 #: ../src/guestfs-actions.pod:6732
30391 " struct guestfs_stat *\n"
30392 " guestfs_stat (guestfs_h *g,\n"
30393 " const char *path);\n"
30398 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
30399 msgid "guestfs_statvfs"
30403 #: ../src/guestfs-actions.pod:6748
30406 " struct guestfs_statvfs *\n"
30407 " guestfs_statvfs (guestfs_h *g,\n"
30408 " const char *path);\n"
30413 #: ../src/guestfs-actions.pod:6758
30415 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30416 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
30420 #: ../src/guestfs-actions.pod:6764
30421 msgid "guestfs_strings"
30425 #: ../src/guestfs-actions.pod:6766
30429 " guestfs_strings (guestfs_h *g,\n"
30430 " const char *path);\n"
30435 #: ../src/guestfs-actions.pod:6782
30436 msgid "guestfs_strings_e"
30440 #: ../src/guestfs-actions.pod:6784
30444 " guestfs_strings_e (guestfs_h *g,\n"
30445 " const char *encoding,\n"
30446 " const char *path);\n"
30451 #: ../src/guestfs-actions.pod:6789
30453 "This is like the C<guestfs_strings> command, but allows you to specify the "
30454 "encoding of strings that are looked for in the source file C<path>."
30458 #: ../src/guestfs-actions.pod:6799
30460 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30461 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30465 #: ../src/guestfs-actions.pod:6837
30466 msgid "guestfs_swapoff_device"
30470 #: ../src/guestfs-actions.pod:6839
30474 " guestfs_swapoff_device (guestfs_h *g,\n"
30475 " const char *device);\n"
30480 #: ../src/guestfs-actions.pod:6843
30482 "This command disables the libguestfs appliance swap device or partition "
30483 "named C<device>. See C<guestfs_swapon_device>."
30487 #: ../src/guestfs-actions.pod:6851
30488 msgid "guestfs_swapoff_file"
30492 #: ../src/guestfs-actions.pod:6853
30496 " guestfs_swapoff_file (guestfs_h *g,\n"
30497 " const char *file);\n"
30502 #: ../src/guestfs-actions.pod:6863
30503 msgid "guestfs_swapoff_label"
30507 #: ../src/guestfs-actions.pod:6865
30511 " guestfs_swapoff_label (guestfs_h *g,\n"
30512 " const char *label);\n"
30517 #: ../src/guestfs-actions.pod:6876
30518 msgid "guestfs_swapoff_uuid"
30522 #: ../src/guestfs-actions.pod:6878
30526 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30527 " const char *uuid);\n"
30532 #: ../src/guestfs-actions.pod:6889
30533 msgid "guestfs_swapon_device"
30537 #: ../src/guestfs-actions.pod:6891
30541 " guestfs_swapon_device (guestfs_h *g,\n"
30542 " const char *device);\n"
30547 #: ../src/guestfs-actions.pod:6895
30549 "This command enables the libguestfs appliance to use the swap device or "
30550 "partition named C<device>. The increased memory is made available for all "
30551 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30555 #: ../src/guestfs-actions.pod:6911
30556 msgid "guestfs_swapon_file"
30560 #: ../src/guestfs-actions.pod:6913
30564 " guestfs_swapon_file (guestfs_h *g,\n"
30565 " const char *file);\n"
30570 #: ../src/guestfs-actions.pod:6917
30572 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
30577 #: ../src/guestfs-actions.pod:6924
30578 msgid "guestfs_swapon_label"
30582 #: ../src/guestfs-actions.pod:6926
30586 " guestfs_swapon_label (guestfs_h *g,\n"
30587 " const char *label);\n"
30592 #: ../src/guestfs-actions.pod:6930
30594 "This command enables swap to a labeled swap partition. See "
30595 "C<guestfs_swapon_device> for other notes."
30599 #: ../src/guestfs-actions.pod:6937
30600 msgid "guestfs_swapon_uuid"
30604 #: ../src/guestfs-actions.pod:6939
30608 " guestfs_swapon_uuid (guestfs_h *g,\n"
30609 " const char *uuid);\n"
30614 #: ../src/guestfs-actions.pod:6943
30616 "This command enables swap to a swap partition with the given UUID. See "
30617 "C<guestfs_swapon_device> for other notes."
30621 #: ../src/guestfs-actions.pod:6950
30622 msgid "guestfs_sync"
30626 #: ../src/guestfs-actions.pod:6952
30630 " guestfs_sync (guestfs_h *g);\n"
30635 #: ../src/guestfs-actions.pod:6965
30636 msgid "guestfs_tail"
30640 #: ../src/guestfs-actions.pod:6967
30644 " guestfs_tail (guestfs_h *g,\n"
30645 " const char *path);\n"
30650 #: ../src/guestfs-actions.pod:6983
30651 msgid "guestfs_tail_n"
30655 #: ../src/guestfs-actions.pod:6985
30659 " guestfs_tail_n (guestfs_h *g,\n"
30661 " const char *path);\n"
30666 #: ../src/guestfs-actions.pod:7007
30667 msgid "guestfs_tar_in"
30671 #: ../src/guestfs-actions.pod:7009
30675 " guestfs_tar_in (guestfs_h *g,\n"
30676 " const char *tarfile,\n"
30677 " const char *directory);\n"
30682 #: ../src/guestfs-actions.pod:7017
30684 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30688 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
30689 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
30690 msgid "(Added in 1.0.3)"
30694 #: ../src/guestfs-actions.pod:7024
30695 msgid "guestfs_tar_out"
30699 #: ../src/guestfs-actions.pod:7026
30703 " guestfs_tar_out (guestfs_h *g,\n"
30704 " const char *directory,\n"
30705 " const char *tarfile);\n"
30710 #: ../src/guestfs-actions.pod:7034
30712 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30713 "C<guestfs_txz_out>."
30717 #: ../src/guestfs-actions.pod:7041
30718 msgid "guestfs_tgz_in"
30722 #: ../src/guestfs-actions.pod:7043
30726 " guestfs_tgz_in (guestfs_h *g,\n"
30727 " const char *tarball,\n"
30728 " const char *directory);\n"
30733 #: ../src/guestfs-actions.pod:7051
30734 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30738 #: ../src/guestfs-actions.pod:7057
30739 msgid "guestfs_tgz_out"
30743 #: ../src/guestfs-actions.pod:7059
30747 " guestfs_tgz_out (guestfs_h *g,\n"
30748 " const char *directory,\n"
30749 " const char *tarball);\n"
30754 #: ../src/guestfs-actions.pod:7067
30755 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30759 #: ../src/guestfs-actions.pod:7073
30760 msgid "guestfs_touch"
30764 #: ../src/guestfs-actions.pod:7075
30768 " guestfs_touch (guestfs_h *g,\n"
30769 " const char *path);\n"
30774 #: ../src/guestfs-actions.pod:7090
30775 msgid "guestfs_truncate"
30779 #: ../src/guestfs-actions.pod:7092
30783 " guestfs_truncate (guestfs_h *g,\n"
30784 " const char *path);\n"
30789 #: ../src/guestfs-actions.pod:7103
30790 msgid "guestfs_truncate_size"
30794 #: ../src/guestfs-actions.pod:7105
30798 " guestfs_truncate_size (guestfs_h *g,\n"
30799 " const char *path,\n"
30800 " int64_t size);\n"
30805 #: ../src/guestfs-actions.pod:7113
30807 "If the current file size is less than C<size> then the file is extended to "
30808 "the required size with zero bytes. This creates a sparse file (ie. disk "
30809 "blocks are not allocated for the file until you write to it). To create a "
30810 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30814 #: ../src/guestfs-actions.pod:7123
30815 msgid "guestfs_tune2fs_l"
30819 #: ../src/guestfs-actions.pod:7125
30823 " guestfs_tune2fs_l (guestfs_h *g,\n"
30824 " const char *device);\n"
30829 #: ../src/guestfs-actions.pod:7145
30830 msgid "guestfs_txz_in"
30834 #: ../src/guestfs-actions.pod:7147
30838 " guestfs_txz_in (guestfs_h *g,\n"
30839 " const char *tarball,\n"
30840 " const char *directory);\n"
30845 #: ../src/guestfs-actions.pod:7159
30846 msgid "guestfs_txz_out"
30850 #: ../src/guestfs-actions.pod:7161
30854 " guestfs_txz_out (guestfs_h *g,\n"
30855 " const char *directory,\n"
30856 " const char *tarball);\n"
30861 #: ../src/guestfs-actions.pod:7173
30862 msgid "guestfs_umask"
30866 #: ../src/guestfs-actions.pod:7175
30870 " guestfs_umask (guestfs_h *g,\n"
30876 #: ../src/guestfs-actions.pod:7191
30878 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30879 "C<guestfs_mkdir>."
30883 #: ../src/guestfs-actions.pod:7200
30884 msgid "guestfs_umount"
30888 #: ../src/guestfs-actions.pod:7202
30892 " guestfs_umount (guestfs_h *g,\n"
30893 " const char *pathordevice);\n"
30898 #: ../src/guestfs-actions.pod:7214
30899 msgid "guestfs_umount_all"
30903 #: ../src/guestfs-actions.pod:7216
30907 " guestfs_umount_all (guestfs_h *g);\n"
30912 #: ../src/guestfs-actions.pod:7227
30913 msgid "guestfs_upload"
30917 #: ../src/guestfs-actions.pod:7229
30921 " guestfs_upload (guestfs_h *g,\n"
30922 " const char *filename,\n"
30923 " const char *remotefilename);\n"
30928 #: ../src/guestfs-actions.pod:7239
30929 msgid "See also C<guestfs_download>."
30933 #: ../src/guestfs-actions.pod:7250
30934 msgid "guestfs_upload_offset"
30938 #: ../src/guestfs-actions.pod:7252
30942 " guestfs_upload_offset (guestfs_h *g,\n"
30943 " const char *filename,\n"
30944 " const char *remotefilename,\n"
30945 " int64_t offset);\n"
30950 #: ../src/guestfs-actions.pod:7268
30952 "Note that there is no limit on the amount of data that can be uploaded with "
30953 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30954 "full amount unless an error occurs."
30958 #: ../src/guestfs-actions.pod:7273
30959 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30963 #: ../src/guestfs-actions.pod:7284
30964 msgid "guestfs_utimens"
30968 #: ../src/guestfs-actions.pod:7286
30972 " guestfs_utimens (guestfs_h *g,\n"
30973 " const char *path,\n"
30974 " int64_t atsecs,\n"
30975 " int64_t atnsecs,\n"
30976 " int64_t mtsecs,\n"
30977 " int64_t mtnsecs);\n"
30982 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
30983 msgid "guestfs_version"
30987 #: ../src/guestfs-actions.pod:7317
30990 " struct guestfs_version *\n"
30991 " guestfs_version (guestfs_h *g);\n"
30996 #: ../src/guestfs-actions.pod:7345
30998 "I<Note:> Don't use this call to test for availability of features. In "
30999 "enterprise distributions we backport features from later versions into "
31000 "earlier versions, making this an unreliable way to test for features. Use "
31001 "C<guestfs_available> instead."
31005 #: ../src/guestfs-actions.pod:7351
31007 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31008 "error. I<The caller must call C<guestfs_free_version> after use>."
31012 #: ../src/guestfs-actions.pod:7355
31013 msgid "(Added in 1.0.58)"
31017 #: ../src/guestfs-actions.pod:7357
31018 msgid "guestfs_vfs_label"
31022 #: ../src/guestfs-actions.pod:7359
31026 " guestfs_vfs_label (guestfs_h *g,\n"
31027 " const char *device);\n"
31032 #: ../src/guestfs-actions.pod:7368
31033 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31037 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
31038 msgid "(Added in 1.3.18)"
31042 #: ../src/guestfs-actions.pod:7375
31043 msgid "guestfs_vfs_type"
31047 #: ../src/guestfs-actions.pod:7377
31051 " guestfs_vfs_type (guestfs_h *g,\n"
31052 " const char *device);\n"
31057 #: ../src/guestfs-actions.pod:7394
31058 msgid "guestfs_vfs_uuid"
31062 #: ../src/guestfs-actions.pod:7396
31066 " guestfs_vfs_uuid (guestfs_h *g,\n"
31067 " const char *device);\n"
31072 #: ../src/guestfs-actions.pod:7405
31073 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31077 #: ../src/guestfs-actions.pod:7412
31078 msgid "guestfs_vg_activate"
31082 #: ../src/guestfs-actions.pod:7414
31086 " guestfs_vg_activate (guestfs_h *g,\n"
31088 " char *const *volgroups);\n"
31093 #: ../src/guestfs-actions.pod:7431
31094 msgid "guestfs_vg_activate_all"
31098 #: ../src/guestfs-actions.pod:7433
31102 " guestfs_vg_activate_all (guestfs_h *g,\n"
31103 " int activate);\n"
31108 #: ../src/guestfs-actions.pod:7446
31109 msgid "guestfs_vgcreate"
31113 #: ../src/guestfs-actions.pod:7448
31117 " guestfs_vgcreate (guestfs_h *g,\n"
31118 " const char *volgroup,\n"
31119 " char *const *physvols);\n"
31124 #: ../src/guestfs-actions.pod:7460
31125 msgid "guestfs_vglvuuids"
31129 #: ../src/guestfs-actions.pod:7462
31133 " guestfs_vglvuuids (guestfs_h *g,\n"
31134 " const char *vgname);\n"
31139 #: ../src/guestfs-actions.pod:7469
31141 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31142 "associate logical volumes and volume groups."
31146 #: ../src/guestfs-actions.pod:7472
31147 msgid "See also C<guestfs_vgpvuuids>."
31151 #: ../src/guestfs-actions.pod:7480
31152 msgid "guestfs_vgpvuuids"
31156 #: ../src/guestfs-actions.pod:7482
31160 " guestfs_vgpvuuids (guestfs_h *g,\n"
31161 " const char *vgname);\n"
31166 #: ../src/guestfs-actions.pod:7489
31168 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31169 "associate physical volumes and volume groups."
31173 #: ../src/guestfs-actions.pod:7492
31174 msgid "See also C<guestfs_vglvuuids>."
31178 #: ../src/guestfs-actions.pod:7500
31179 msgid "guestfs_vgremove"
31183 #: ../src/guestfs-actions.pod:7502
31187 " guestfs_vgremove (guestfs_h *g,\n"
31188 " const char *vgname);\n"
31193 #: ../src/guestfs-actions.pod:7515
31194 msgid "guestfs_vgrename"
31198 #: ../src/guestfs-actions.pod:7517
31202 " guestfs_vgrename (guestfs_h *g,\n"
31203 " const char *volgroup,\n"
31204 " const char *newvolgroup);\n"
31209 #: ../src/guestfs-actions.pod:7528
31210 msgid "guestfs_vgs"
31214 #: ../src/guestfs-actions.pod:7530
31218 " guestfs_vgs (guestfs_h *g);\n"
31223 #: ../src/guestfs-actions.pod:7539
31224 msgid "See also C<guestfs_vgs_full>."
31228 #: ../src/guestfs-actions.pod:7547
31229 msgid "guestfs_vgs_full"
31233 #: ../src/guestfs-actions.pod:7549
31236 " struct guestfs_lvm_vg_list *\n"
31237 " guestfs_vgs_full (guestfs_h *g);\n"
31242 #: ../src/guestfs-actions.pod:7555
31244 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31245 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31249 #: ../src/guestfs-actions.pod:7561
31250 msgid "guestfs_vgscan"
31254 #: ../src/guestfs-actions.pod:7563
31258 " guestfs_vgscan (guestfs_h *g);\n"
31263 #: ../src/guestfs-actions.pod:7573
31264 msgid "guestfs_vguuid"
31268 #: ../src/guestfs-actions.pod:7575
31272 " guestfs_vguuid (guestfs_h *g,\n"
31273 " const char *vgname);\n"
31278 #: ../src/guestfs-actions.pod:7586
31279 msgid "guestfs_wait_ready"
31283 #: ../src/guestfs-actions.pod:7588
31287 " guestfs_wait_ready (guestfs_h *g);\n"
31292 #: ../src/guestfs-actions.pod:7591
31294 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31299 #: ../src/guestfs-actions.pod:7598
31300 msgid "This function is a no op."
31304 #: ../src/guestfs-actions.pod:7600
31306 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31307 "calling C<guestfs_launch> to wait for the launch to complete. However this "
31308 "is no longer necessary because C<guestfs_launch> now does the waiting."
31312 #: ../src/guestfs-actions.pod:7605
31314 "If you see any calls to this function in code then you can just remove them, "
31315 "unless you want to retain compatibility with older versions of the API."
31319 #: ../src/guestfs-actions.pod:7613
31320 msgid "guestfs_wc_c"
31324 #: ../src/guestfs-actions.pod:7615
31328 " guestfs_wc_c (guestfs_h *g,\n"
31329 " const char *path);\n"
31334 #: ../src/guestfs-actions.pod:7626
31335 msgid "guestfs_wc_l"
31339 #: ../src/guestfs-actions.pod:7628
31343 " guestfs_wc_l (guestfs_h *g,\n"
31344 " const char *path);\n"
31349 #: ../src/guestfs-actions.pod:7639
31350 msgid "guestfs_wc_w"
31354 #: ../src/guestfs-actions.pod:7641
31358 " guestfs_wc_w (guestfs_h *g,\n"
31359 " const char *path);\n"
31364 #: ../src/guestfs-actions.pod:7652
31365 msgid "guestfs_write"
31369 #: ../src/guestfs-actions.pod:7654
31373 " guestfs_write (guestfs_h *g,\n"
31374 " const char *path,\n"
31375 " const char *content,\n"
31376 " size_t content_size);\n"
31381 #: ../src/guestfs-actions.pod:7663
31382 msgid "See also C<guestfs_write_append>."
31386 #: ../src/guestfs-actions.pod:7672
31387 msgid "guestfs_write_append"
31391 #: ../src/guestfs-actions.pod:7674
31395 " guestfs_write_append (guestfs_h *g,\n"
31396 " const char *path,\n"
31397 " const char *content,\n"
31398 " size_t content_size);\n"
31403 #: ../src/guestfs-actions.pod:7683
31404 msgid "See also C<guestfs_write>."
31408 #: ../src/guestfs-actions.pod:7692
31409 msgid "guestfs_write_file"
31410 msgstr "guestfs_write_file"
31413 #: ../src/guestfs-actions.pod:7694
31417 " guestfs_write_file (guestfs_h *g,\n"
31418 " const char *path,\n"
31419 " const char *content,\n"
31424 " guestfs_write_file (guestfs_h *g,\n"
31425 " const char *path,\n"
31426 " const char *content,\n"
31431 #: ../src/guestfs-actions.pod:7700
31433 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31438 #: ../src/guestfs-actions.pod:7725
31439 msgid "guestfs_zegrep"
31440 msgstr "guestfs_zegrep"
31443 #: ../src/guestfs-actions.pod:7727
31447 " guestfs_zegrep (guestfs_h *g,\n"
31448 " const char *regex,\n"
31449 " const char *path);\n"
31453 " guestfs_zegrep (guestfs_h *g,\n"
31454 " const char *regex,\n"
31455 " const char *path);\n"
31459 #: ../src/guestfs-actions.pod:7744
31460 msgid "guestfs_zegrepi"
31461 msgstr "guestfs_zegrepi"
31464 #: ../src/guestfs-actions.pod:7746
31468 " guestfs_zegrepi (guestfs_h *g,\n"
31469 " const char *regex,\n"
31470 " const char *path);\n"
31474 " guestfs_zegrepi (guestfs_h *g,\n"
31475 " const char *regex,\n"
31476 " const char *path);\n"
31480 #: ../src/guestfs-actions.pod:7763
31481 msgid "guestfs_zero"
31482 msgstr "guestfs_zero"
31485 #: ../src/guestfs-actions.pod:7765
31489 " guestfs_zero (guestfs_h *g,\n"
31490 " const char *device);\n"
31494 " guestfs_zero (guestfs_h *g,\n"
31495 " const char *device);\n"
31499 #: ../src/guestfs-actions.pod:7779
31501 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31502 "C<guestfs_is_zero_device>"
31506 #: ../src/guestfs-actions.pod:7791
31507 msgid "guestfs_zero_device"
31508 msgstr "guestfs_zero_device"
31511 #: ../src/guestfs-actions.pod:7793
31515 " guestfs_zero_device (guestfs_h *g,\n"
31516 " const char *device);\n"
31520 " guestfs_zero_device (guestfs_h *g,\n"
31521 " const char *device);\n"
31525 #: ../src/guestfs-actions.pod:7797
31527 "This command writes zeroes over the entire C<device>. Compare with "
31528 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31532 #: ../src/guestfs-actions.pod:7815
31533 msgid "(Added in 1.3.1)"
31534 msgstr "(Додано у 1.3.1)"
31537 #: ../src/guestfs-actions.pod:7817
31538 msgid "guestfs_zerofree"
31539 msgstr "guestfs_zerofree"
31542 #: ../src/guestfs-actions.pod:7819
31546 " guestfs_zerofree (guestfs_h *g,\n"
31547 " const char *device);\n"
31551 " guestfs_zerofree (guestfs_h *g,\n"
31552 " const char *device);\n"
31556 #: ../src/guestfs-actions.pod:7838
31557 msgid "guestfs_zfgrep"
31558 msgstr "guestfs_zfgrep"
31561 #: ../src/guestfs-actions.pod:7840
31565 " guestfs_zfgrep (guestfs_h *g,\n"
31566 " const char *pattern,\n"
31567 " const char *path);\n"
31571 " guestfs_zfgrep (guestfs_h *g,\n"
31572 " const char *pattern,\n"
31573 " const char *path);\n"
31577 #: ../src/guestfs-actions.pod:7857
31578 msgid "guestfs_zfgrepi"
31579 msgstr "guestfs_zfgrepi"
31582 #: ../src/guestfs-actions.pod:7859
31586 " guestfs_zfgrepi (guestfs_h *g,\n"
31587 " const char *pattern,\n"
31588 " const char *path);\n"
31592 " guestfs_zfgrepi (guestfs_h *g,\n"
31593 " const char *pattern,\n"
31594 " const char *path);\n"
31598 #: ../src/guestfs-actions.pod:7876
31599 msgid "guestfs_zfile"
31600 msgstr "guestfs_zfile"
31603 #: ../src/guestfs-actions.pod:7878
31607 " guestfs_zfile (guestfs_h *g,\n"
31608 " const char *meth,\n"
31609 " const char *path);\n"
31613 " guestfs_zfile (guestfs_h *g,\n"
31614 " const char *meth,\n"
31615 " const char *path);\n"
31619 #: ../src/guestfs-actions.pod:7883
31621 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31626 #: ../src/guestfs-actions.pod:7895
31628 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31633 #: ../src/guestfs-actions.pod:7903
31634 msgid "guestfs_zgrep"
31635 msgstr "guestfs_zgrep"
31638 #: ../src/guestfs-actions.pod:7905
31642 " guestfs_zgrep (guestfs_h *g,\n"
31643 " const char *regex,\n"
31644 " const char *path);\n"
31648 " guestfs_zgrep (guestfs_h *g,\n"
31649 " const char *regex,\n"
31650 " const char *path);\n"
31654 #: ../src/guestfs-actions.pod:7922
31655 msgid "guestfs_zgrepi"
31656 msgstr "guestfs_zgrepi"
31659 #: ../src/guestfs-actions.pod:7924
31663 " guestfs_zgrepi (guestfs_h *g,\n"
31664 " const char *regex,\n"
31665 " const char *path);\n"
31669 " guestfs_zgrepi (guestfs_h *g,\n"
31670 " const char *regex,\n"
31671 " const char *path);\n"
31675 #: ../src/guestfs-availability.pod:3
31680 #: ../src/guestfs-availability.pod:5
31682 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31683 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31684 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31685 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31686 "L</guestfs_aug_save> L</guestfs_aug_set>"
31690 #: ../src/guestfs-availability.pod:21
31695 #: ../src/guestfs-availability.pod:23
31696 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31700 #: ../src/guestfs-availability.pod:26
31702 msgstr "B<inotify>"
31705 #: ../src/guestfs-availability.pod:28
31707 "The following functions: L</guestfs_inotify_add_watch> L</"
31708 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31709 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31713 #: ../src/guestfs-availability.pod:36
31714 msgid "B<linuxfsuuid>"
31715 msgstr "B<linuxfsuuid>"
31718 #: ../src/guestfs-availability.pod:38
31720 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31721 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31725 #: ../src/guestfs-availability.pod:45
31726 msgid "B<linuxmodules>"
31727 msgstr "B<linuxmodules>"
31730 #: ../src/guestfs-availability.pod:47
31731 msgid "The following functions: L</guestfs_modprobe>"
31735 #: ../src/guestfs-availability.pod:50
31736 msgid "B<linuxxattrs>"
31737 msgstr "B<linuxxattrs>"
31740 #: ../src/guestfs-availability.pod:52
31742 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31743 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31744 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31745 "guestfs_setxattr>"
31749 #: ../src/guestfs-availability.pod:63
31754 #: ../src/guestfs-availability.pod:65
31756 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31757 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31758 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31762 #: ../src/guestfs-availability.pod:74
31767 #: ../src/guestfs-availability.pod:76
31769 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31770 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31771 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31772 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31773 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31774 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31775 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31779 #: ../src/guestfs-availability.pod:99
31784 #: ../src/guestfs-availability.pod:101
31786 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31787 "guestfs_mknod_b> L</guestfs_mknod_c>"
31791 #: ../src/guestfs-availability.pod:107
31796 #: ../src/guestfs-availability.pod:109
31797 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31801 #: ../src/guestfs-availability.pod:112
31802 msgid "B<ntfsprogs>"
31803 msgstr "B<ntfsprogs>"
31806 #: ../src/guestfs-availability.pod:114
31808 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31809 "L</guestfs_ntfsresize_size>"
31813 #: ../src/guestfs-availability.pod:119
31814 msgid "B<realpath>"
31815 msgstr "B<realpath>"
31818 #: ../src/guestfs-availability.pod:121
31819 msgid "The following functions: L</guestfs_realpath>"
31823 #: ../src/guestfs-availability.pod:124
31828 #: ../src/guestfs-availability.pod:126
31830 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31831 "guestfs_scrub_freespace>"
31835 #: ../src/guestfs-availability.pod:131
31837 msgstr "B<selinux>"
31840 #: ../src/guestfs-availability.pod:133
31841 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31845 #: ../src/guestfs-availability.pod:137
31850 #: ../src/guestfs-availability.pod:139
31851 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31855 #: ../src/guestfs-availability.pod:143
31856 msgid "B<zerofree>"
31857 msgstr "B<zerofree>"
31860 #: ../src/guestfs-availability.pod:145
31861 msgid "The following functions: L</guestfs_zerofree>"
31865 #: ../src/guestfs-structs.pod:1
31866 msgid "guestfs_int_bool"
31870 #: ../src/guestfs-structs.pod:3
31873 " struct guestfs_int_bool {\n"
31881 #: ../src/guestfs-structs.pod:8
31884 " struct guestfs_int_bool_list {\n"
31885 " uint32_t len; /* Number of elements in list. */\n"
31886 " struct guestfs_int_bool *val; /* Elements. */\n"
31892 #: ../src/guestfs-structs.pod:13
31895 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31896 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31901 #: ../src/guestfs-structs.pod:16
31902 msgid "guestfs_lvm_pv"
31906 #: ../src/guestfs-structs.pod:18
31909 " struct guestfs_lvm_pv {\n"
31910 " char *pv_name;\n"
31911 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31912 " char pv_uuid[32];\n"
31914 " uint64_t pv_size;\n"
31915 " uint64_t dev_size;\n"
31916 " uint64_t pv_free;\n"
31917 " uint64_t pv_used;\n"
31918 " char *pv_attr;\n"
31919 " int64_t pv_pe_count;\n"
31920 " int64_t pv_pe_alloc_count;\n"
31921 " char *pv_tags;\n"
31922 " uint64_t pe_start;\n"
31923 " int64_t pv_mda_count;\n"
31924 " uint64_t pv_mda_free;\n"
31930 #: ../src/guestfs-structs.pod:36
31933 " struct guestfs_lvm_pv_list {\n"
31934 " uint32_t len; /* Number of elements in list. */\n"
31935 " struct guestfs_lvm_pv *val; /* Elements. */\n"
31941 #: ../src/guestfs-structs.pod:41
31944 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31945 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31950 #: ../src/guestfs-structs.pod:44
31951 msgid "guestfs_lvm_vg"
31955 #: ../src/guestfs-structs.pod:46
31958 " struct guestfs_lvm_vg {\n"
31959 " char *vg_name;\n"
31960 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31961 " char vg_uuid[32];\n"
31963 " char *vg_attr;\n"
31964 " uint64_t vg_size;\n"
31965 " uint64_t vg_free;\n"
31966 " char *vg_sysid;\n"
31967 " uint64_t vg_extent_size;\n"
31968 " int64_t vg_extent_count;\n"
31969 " int64_t vg_free_count;\n"
31970 " int64_t max_lv;\n"
31971 " int64_t max_pv;\n"
31972 " int64_t pv_count;\n"
31973 " int64_t lv_count;\n"
31974 " int64_t snap_count;\n"
31975 " int64_t vg_seqno;\n"
31976 " char *vg_tags;\n"
31977 " int64_t vg_mda_count;\n"
31978 " uint64_t vg_mda_free;\n"
31984 #: ../src/guestfs-structs.pod:69
31987 " struct guestfs_lvm_vg_list {\n"
31988 " uint32_t len; /* Number of elements in list. */\n"
31989 " struct guestfs_lvm_vg *val; /* Elements. */\n"
31995 #: ../src/guestfs-structs.pod:74
31998 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31999 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32004 #: ../src/guestfs-structs.pod:77
32005 msgid "guestfs_lvm_lv"
32009 #: ../src/guestfs-structs.pod:79
32012 " struct guestfs_lvm_lv {\n"
32013 " char *lv_name;\n"
32014 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32015 " char lv_uuid[32];\n"
32016 " char *lv_attr;\n"
32017 " int64_t lv_major;\n"
32018 " int64_t lv_minor;\n"
32019 " int64_t lv_kernel_major;\n"
32020 " int64_t lv_kernel_minor;\n"
32021 " uint64_t lv_size;\n"
32022 " int64_t seg_count;\n"
32024 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32025 " float snap_percent;\n"
32026 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32027 " float copy_percent;\n"
32028 " char *move_pv;\n"
32029 " char *lv_tags;\n"
32030 " char *mirror_log;\n"
32031 " char *modules;\n"
32037 #: ../src/guestfs-structs.pod:101
32040 " struct guestfs_lvm_lv_list {\n"
32041 " uint32_t len; /* Number of elements in list. */\n"
32042 " struct guestfs_lvm_lv *val; /* Elements. */\n"
32048 #: ../src/guestfs-structs.pod:106
32051 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32052 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32057 #: ../src/guestfs-structs.pod:111
32060 " struct guestfs_stat {\n"
32064 " int64_t nlink;\n"
32069 " int64_t blksize;\n"
32070 " int64_t blocks;\n"
32071 " int64_t atime;\n"
32072 " int64_t mtime;\n"
32073 " int64_t ctime;\n"
32079 #: ../src/guestfs-structs.pod:127
32082 " struct guestfs_stat_list {\n"
32083 " uint32_t len; /* Number of elements in list. */\n"
32084 " struct guestfs_stat *val; /* Elements. */\n"
32090 #: ../src/guestfs-structs.pod:132
32093 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32094 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32099 #: ../src/guestfs-structs.pod:137
32102 " struct guestfs_statvfs {\n"
32103 " int64_t bsize;\n"
32104 " int64_t frsize;\n"
32105 " int64_t blocks;\n"
32106 " int64_t bfree;\n"
32107 " int64_t bavail;\n"
32108 " int64_t files;\n"
32109 " int64_t ffree;\n"
32110 " int64_t favail;\n"
32113 " int64_t namemax;\n"
32119 #: ../src/guestfs-structs.pod:151
32122 " struct guestfs_statvfs_list {\n"
32123 " uint32_t len; /* Number of elements in list. */\n"
32124 " struct guestfs_statvfs *val; /* Elements. */\n"
32130 #: ../src/guestfs-structs.pod:156
32133 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32134 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32139 #: ../src/guestfs-structs.pod:159
32140 msgid "guestfs_dirent"
32144 #: ../src/guestfs-structs.pod:161
32147 " struct guestfs_dirent {\n"
32156 #: ../src/guestfs-structs.pod:167
32159 " struct guestfs_dirent_list {\n"
32160 " uint32_t len; /* Number of elements in list. */\n"
32161 " struct guestfs_dirent *val; /* Elements. */\n"
32167 #: ../src/guestfs-structs.pod:172
32170 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32171 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32176 #: ../src/guestfs-structs.pod:177
32179 " struct guestfs_version {\n"
32180 " int64_t major;\n"
32181 " int64_t minor;\n"
32182 " int64_t release;\n"
32189 #: ../src/guestfs-structs.pod:184
32192 " struct guestfs_version_list {\n"
32193 " uint32_t len; /* Number of elements in list. */\n"
32194 " struct guestfs_version *val; /* Elements. */\n"
32200 #: ../src/guestfs-structs.pod:189
32203 " void guestfs_free_version (struct guestfs_free_version *);\n"
32204 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32209 #: ../src/guestfs-structs.pod:192
32210 msgid "guestfs_xattr"
32214 #: ../src/guestfs-structs.pod:194
32217 " struct guestfs_xattr {\n"
32218 " char *attrname;\n"
32219 " /* The next two fields describe a byte array. */\n"
32220 " uint32_t attrval_len;\n"
32221 " char *attrval;\n"
32227 #: ../src/guestfs-structs.pod:201
32230 " struct guestfs_xattr_list {\n"
32231 " uint32_t len; /* Number of elements in list. */\n"
32232 " struct guestfs_xattr *val; /* Elements. */\n"
32238 #: ../src/guestfs-structs.pod:206
32241 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32242 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32247 #: ../src/guestfs-structs.pod:209
32248 msgid "guestfs_inotify_event"
32252 #: ../src/guestfs-structs.pod:211
32255 " struct guestfs_inotify_event {\n"
32256 " int64_t in_wd;\n"
32257 " uint32_t in_mask;\n"
32258 " uint32_t in_cookie;\n"
32259 " char *in_name;\n"
32265 #: ../src/guestfs-structs.pod:218
32268 " struct guestfs_inotify_event_list {\n"
32269 " uint32_t len; /* Number of elements in list. */\n"
32270 " struct guestfs_inotify_event *val; /* Elements. */\n"
32276 #: ../src/guestfs-structs.pod:223
32279 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32280 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32285 #: ../src/guestfs-structs.pod:226
32286 msgid "guestfs_partition"
32290 #: ../src/guestfs-structs.pod:228
32293 " struct guestfs_partition {\n"
32294 " int32_t part_num;\n"
32295 " uint64_t part_start;\n"
32296 " uint64_t part_end;\n"
32297 " uint64_t part_size;\n"
32303 #: ../src/guestfs-structs.pod:235
32306 " struct guestfs_partition_list {\n"
32307 " uint32_t len; /* Number of elements in list. */\n"
32308 " struct guestfs_partition *val; /* Elements. */\n"
32314 #: ../src/guestfs-structs.pod:240
32317 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32318 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32323 #: ../src/guestfs-structs.pod:243
32324 msgid "guestfs_application"
32328 #: ../src/guestfs-structs.pod:245
32331 " struct guestfs_application {\n"
32332 " char *app_name;\n"
32333 " char *app_display_name;\n"
32334 " int32_t app_epoch;\n"
32335 " char *app_version;\n"
32336 " char *app_release;\n"
32337 " char *app_install_path;\n"
32338 " char *app_trans_path;\n"
32339 " char *app_publisher;\n"
32340 " char *app_url;\n"
32341 " char *app_source_package;\n"
32342 " char *app_summary;\n"
32343 " char *app_description;\n"
32349 #: ../src/guestfs-structs.pod:260
32352 " struct guestfs_application_list {\n"
32353 " uint32_t len; /* Number of elements in list. */\n"
32354 " struct guestfs_application *val; /* Elements. */\n"
32360 #: ../src/guestfs-structs.pod:265
32363 " void guestfs_free_application (struct guestfs_free_application *);\n"
32364 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32369 #: ../src/guestfs.pod:5
32370 msgid "guestfs - Library for accessing and modifying virtual machine images"
32372 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32376 #: ../src/guestfs.pod:11
32379 " guestfs_h *g = guestfs_create ();\n"
32380 " guestfs_add_drive (g, \"guest.img\");\n"
32381 " guestfs_launch (g);\n"
32382 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32383 " guestfs_touch (g, \"/hello\");\n"
32384 " guestfs_umount (g, \"/\");\n"
32385 " guestfs_close (g);\n"
32388 " guestfs_h *g = guestfs_create ();\n"
32389 " guestfs_add_drive (g, \"guest.img\");\n"
32390 " guestfs_launch (g);\n"
32391 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32392 " guestfs_touch (g, \"/hello\");\n"
32393 " guestfs_umount (g, \"/\");\n"
32394 " guestfs_close (g);\n"
32398 #: ../src/guestfs.pod:25
32400 "Libguestfs is a library for accessing and modifying guest disk images. "
32401 "Amongst the things this is good for: making batch configuration changes to "
32402 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32403 "between virtualization systems (see also: virt-p2v), performing partial "
32404 "backups, performing partial guest clones, cloning guests and changing "
32405 "registry/UUID/hostname info, and much else besides."
32409 #: ../src/guestfs.pod:33
32411 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32412 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32413 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32418 #: ../src/guestfs.pod:38
32420 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32421 "what filesystem is in each LV, etc.). It can also run commands in the "
32422 "context of the guest. Also you can access filesystems over FUSE."
32426 #: ../src/guestfs.pod:43
32428 "Libguestfs is a library that can be linked with C and C++ management "
32429 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32430 "PHP, Haskell or C#). You can also use it from shell scripts or the command "
32435 #: ../src/guestfs.pod:48
32437 "You don't need to be root to use libguestfs, although obviously you do need "
32438 "enough permissions to access the disk images."
32442 #: ../src/guestfs.pod:51
32444 "Libguestfs is a large API because it can do many things. For a gentle "
32445 "introduction, please read the L</API OVERVIEW> section next."
32449 #: ../src/guestfs.pod:54
32451 "There are also some example programs in the L<guestfs-examples(3)> manual "
32456 #: ../src/guestfs.pod:57
32457 msgid "API OVERVIEW"
32461 #: ../src/guestfs.pod:59
32463 "This section provides a gentler overview of the libguestfs API. We also try "
32464 "to group API calls together, where that may not be obvious from reading "
32465 "about the individual calls in the main section of this manual."
32469 #: ../src/guestfs.pod:64
32474 #: ../src/guestfs.pod:66
32476 "Before you can use libguestfs calls, you have to create a handle. Then you "
32477 "must add at least one disk image to the handle, followed by launching the "
32478 "handle, then performing whatever operations you want, and finally closing "
32479 "the handle. By convention we use the single letter C<g> for the name of the "
32480 "handle variable, although of course you can use any name you want."
32484 #: ../src/guestfs.pod:73
32485 msgid "The general structure of all libguestfs-using programs looks like this:"
32489 #: ../src/guestfs.pod:76
32492 " guestfs_h *g = guestfs_create ();\n"
32495 " guestfs_h *g = guestfs_create ();\n"
32499 #: ../src/guestfs.pod:78
32502 " /* Call guestfs_add_drive additional times if there are\n"
32503 " * multiple disk images.\n"
32505 " guestfs_add_drive (g, \"guest.img\");\n"
32510 #: ../src/guestfs.pod:83
32513 " /* Most manipulation calls won't work until you've launched\n"
32514 " * the handle 'g'. You have to do this _after_ adding drives\n"
32515 " * and _before_ other commands.\n"
32517 " guestfs_launch (g);\n"
32522 #: ../src/guestfs.pod:89
32525 " /* Now you can examine what partitions, LVs etc are available.\n"
32527 " char **partitions = guestfs_list_partitions (g);\n"
32528 " char **logvols = guestfs_lvs (g);\n"
32531 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32533 " char **partitions = guestfs_list_partitions (g);\n"
32534 " char **logvols = guestfs_lvs (g);\n"
32538 #: ../src/guestfs.pod:94
32541 " /* To access a filesystem in the image, you must mount it.\n"
32543 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32546 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32548 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32552 #: ../src/guestfs.pod:98
32555 " /* Now you can perform filesystem actions on the guest\n"
32558 " guestfs_touch (g, \"/hello\");\n"
32563 #: ../src/guestfs.pod:103
32566 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
32567 " * it is done automatically when you close the handle. See\n"
32568 " * discussion of autosync in this page.\n"
32570 " guestfs_sync (g);\n"
32575 #: ../src/guestfs.pod:109
32578 " /* Close the handle 'g'. */\n"
32579 " guestfs_close (g);\n"
32582 " /* Закрити дескриптор 'g'. */\n"
32583 " guestfs_close (g);\n"
32587 #: ../src/guestfs.pod:112
32589 "The code above doesn't include any error checking. In real code you should "
32590 "check return values carefully for errors. In general all functions that "
32591 "return integers return C<-1> on error, and all functions that return "
32592 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
32593 "how to handle errors, and consult the documentation for each function call "
32594 "below to see precisely how they return error indications. See L<guestfs-"
32595 "examples(3)> for fully worked examples."
32599 #: ../src/guestfs.pod:121
32600 msgid "DISK IMAGES"
32601 msgstr "ОБРАЗИ ДИСКІВ"
32604 #: ../src/guestfs.pod:123
32606 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32607 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32608 "actual block device, or simply an empty file of zeroes that you have created "
32609 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
32614 #: ../src/guestfs.pod:129
32616 "The call you should use in modern code for adding drives is L</"
32617 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
32618 "specifying that the format is raw, do:"
32622 #: ../src/guestfs.pod:133
32625 " guestfs_add_drive_opts (g, filename,\n"
32626 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32630 " guestfs_add_drive_opts (g, filename,\n"
32631 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32636 #: ../src/guestfs.pod:137
32637 msgid "You can add a disk read-only using:"
32638 msgstr "Ви можете додати диск у режимі лише читання:"
32641 #: ../src/guestfs.pod:139
32644 " guestfs_add_drive_opts (g, filename,\n"
32645 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32646 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32650 " guestfs_add_drive_opts (g, filename,\n"
32651 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32652 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32657 #: ../src/guestfs.pod:144
32659 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
32660 "libguestfs won't modify the file."
32664 #: ../src/guestfs.pod:147
32666 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32667 "by a virtual machine. Adding it read-write will almost certainly cause disk "
32668 "corruption, but adding it read-only is safe."
32672 #: ../src/guestfs.pod:151
32674 "You must add at least one disk image, and you may add multiple disk images. "
32675 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32676 "first one you added), C</dev/sdb> (for the second one you added), etc."
32680 #: ../src/guestfs.pod:156
32682 "Once L</guestfs_launch> has been called you cannot add any more images. You "
32683 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32684 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
32688 #: ../src/guestfs.pod:161
32690 msgstr "МОНТУВАННЯ"
32693 #: ../src/guestfs.pod:163
32695 "Before you can read or write files, create directories and so on in a disk "
32696 "image that contains filesystems, you have to mount those filesystems using "
32697 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
32698 "a disk image contains (for example) one partition with a filesystem on that "
32699 "partition, then you can mount it directly:"
32703 #: ../src/guestfs.pod:170
32706 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32709 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32713 #: ../src/guestfs.pod:172
32715 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32716 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
32717 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
32718 "that these are libguestfs virtual devices, and are nothing to do with host "
32723 #: ../src/guestfs.pod:178
32725 "If you are given a disk image and you don't know what it contains then you "
32726 "have to find out. Libguestfs can do that too: use L</"
32727 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32728 "LVs, and either try mounting each to see what is mountable, or else examine "
32729 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
32730 "filesystems, use L</guestfs_list_filesystems>."
32734 #: ../src/guestfs.pod:186
32736 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32737 "L</INSPECTION> below). But you might find it easier to look at higher level "
32738 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32742 #: ../src/guestfs.pod:191
32744 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
32745 "several other variations of the C<guestfs_mount_*> call."
32749 #: ../src/guestfs.pod:194
32750 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32751 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32754 #: ../src/guestfs.pod:196
32756 "The majority of the libguestfs API consists of fairly low-level calls for "
32757 "accessing and modifying the files, directories, symlinks etc on mounted "
32758 "filesystems. There are over a hundred such calls which you can find listed "
32759 "in detail below in this man page, and we don't even pretend to cover them "
32760 "all in this overview."
32764 #: ../src/guestfs.pod:202
32766 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32769 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32770 "точкою монтування."
32773 #: ../src/guestfs.pod:205
32775 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32776 "the file called C<\"etc/passwd\"> then you could do:"
32778 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32779 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32783 #: ../src/guestfs.pod:208
32786 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32789 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32793 #: ../src/guestfs.pod:210
32795 "This would return C<data> as a newly allocated buffer containing the full "
32796 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32797 "or C<NULL> if there was an error."
32801 #: ../src/guestfs.pod:214
32803 "As another example, to create a top-level directory on that filesystem "
32804 "called C<\"var\"> you would do:"
32808 #: ../src/guestfs.pod:217
32811 " guestfs_mkdir (g, \"/var\");\n"
32814 " guestfs_mkdir (g, \"/var\");\n"
32818 #: ../src/guestfs.pod:219
32819 msgid "To create a symlink you could do:"
32820 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32823 #: ../src/guestfs.pod:221
32826 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32827 " \"/etc/rc3.d/S30portmap\");\n"
32830 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32831 " \"/etc/rc3.d/S30portmap\");\n"
32835 #: ../src/guestfs.pod:224
32837 "Libguestfs will reject attempts to use relative paths and there is no "
32838 "concept of a current working directory."
32842 #: ../src/guestfs.pod:227
32844 "Libguestfs can return errors in many situations: for example if the "
32845 "filesystem isn't writable, or if a file or directory that you requested "
32846 "doesn't exist. If you are using the C API (documented here) you have to "
32847 "check for those error conditions after each call. (Other language bindings "
32848 "turn these errors into exceptions)."
32852 #: ../src/guestfs.pod:233
32854 "File writes are affected by the per-handle umask, set by calling L</"
32855 "guestfs_umask> and defaulting to 022. See L</UMASK>."
32859 #: ../src/guestfs.pod:236
32860 msgid "PARTITIONING"
32861 msgstr "ПОДІЛ НА РОЗДІЛИ"
32864 #: ../src/guestfs.pod:238
32866 "Libguestfs contains API calls to read, create and modify partition tables on "
32871 #: ../src/guestfs.pod:241
32873 "In the common case where you want to create a single partition covering the "
32874 "whole disk, you should use the L</guestfs_part_disk> call:"
32878 #: ../src/guestfs.pod:245
32881 " const char *parttype = \"mbr\";\n"
32882 " if (disk_is_larger_than_2TB)\n"
32883 " parttype = \"gpt\";\n"
32884 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32887 " const char *parttype = \"mbr\";\n"
32888 " if (disk_is_larger_than_2TB)\n"
32889 " parttype = \"gpt\";\n"
32890 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32894 #: ../src/guestfs.pod:250
32896 "Obviously this effectively wipes anything that was on that disk image before."
32900 #: ../src/guestfs.pod:253
32905 #: ../src/guestfs.pod:255
32907 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32908 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
32909 "you familiarize yourself with the concepts of physical volumes, volume "
32910 "groups and logical volumes."
32914 #: ../src/guestfs.pod:260
32916 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32917 "tldp.org/HOWTO/LVM-HOWTO/>."
32921 #: ../src/guestfs.pod:263
32922 msgid "DOWNLOADING"
32923 msgstr "ОТРИМАННЯ ДАНИХ"
32926 #: ../src/guestfs.pod:265
32928 "Use L</guestfs_cat> to download small, text only files. This call is "
32929 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32930 "NUL (C<\\0>) characters. However the API is very simple to use."
32934 #: ../src/guestfs.pod:269
32936 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32937 "bit data, since it returns a (pointer, size) pair. However it is still "
32938 "limited to \"small\" files, less than 2 MB."
32942 #: ../src/guestfs.pod:273
32944 "L</guestfs_download> can be used to download any file, with no limits on "
32945 "content or size (even files larger than 4 GB)."
32949 #: ../src/guestfs.pod:276
32951 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32955 #: ../src/guestfs.pod:279
32957 msgstr "ВИВАНТАЖЕННЯ"
32960 #: ../src/guestfs.pod:281
32962 "It's often the case that you want to write a file or files to the disk image."
32966 #: ../src/guestfs.pod:284
32968 "To write a small file with fixed content, use L</guestfs_write>. To create "
32969 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32970 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
32971 "of other functions for creating test files, for example L</guestfs_fill> and "
32972 "L</guestfs_fill_pattern>."
32976 #: ../src/guestfs.pod:290
32978 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
32979 "file content or size (even files larger than 4 GB)."
32983 #: ../src/guestfs.pod:293
32985 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32989 #: ../src/guestfs.pod:295
32991 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32992 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32993 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
32994 "in a predictable way (eg. adding it last after all other drives) then you "
32995 "can get the device name from L</guestfs_list_devices> and mount it directly "
32996 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
32997 "portable between kernel versions, and they don't support labels or UUIDs. "
32998 "If you want to pre-build an image or you need to mount it using a label or "
32999 "UUID, use an ISO image instead."
33003 #: ../src/guestfs.pod:306
33005 msgstr "КОПІЮВАННЯ"
33008 #: ../src/guestfs.pod:308
33010 "There are various different commands for copying between files and devices "
33011 "and in and out of the guest filesystem. These are summarised in the table "
33016 #: ../src/guestfs.pod:314
33017 msgid "B<file> to B<file>"
33018 msgstr "B<файл> у B<файл>"
33021 #: ../src/guestfs.pod:316
33023 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33024 "directories recursively."
33028 #: ../src/guestfs.pod:319
33029 msgid "B<file or device> to B<file or device>"
33030 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33033 #: ../src/guestfs.pod:321
33035 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33036 "devices in the guest."
33040 #: ../src/guestfs.pod:324
33041 msgid "Example: duplicate the contents of an LV:"
33045 #: ../src/guestfs.pod:326
33048 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33051 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33055 #: ../src/guestfs.pod:328
33057 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33058 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
33059 "guestfs_copy_size>."
33063 #: ../src/guestfs.pod:332
33064 msgid "B<file on the host> to B<file or device>"
33068 #: ../src/guestfs.pod:334
33069 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
33073 #: ../src/guestfs.pod:336
33074 msgid "B<file or device> to B<file on the host>"
33078 #: ../src/guestfs.pod:338
33079 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
33083 #: ../src/guestfs.pod:342
33084 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33088 #: ../src/guestfs.pod:344
33090 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33091 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33092 "appears you can only upload and download to files. However many Un*x-like "
33093 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33094 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33095 "and arbitrary file descriptor N."
33099 #: ../src/guestfs.pod:352
33100 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33104 #: ../src/guestfs.pod:355
33107 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33110 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33114 #: ../src/guestfs.pod:357
33115 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33119 #: ../src/guestfs.pod:359
33122 " char devfd[64];\n"
33123 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33124 " guestfs_tar_out (g, \"/\", devfd);\n"
33127 " char devfd[64];\n"
33128 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33129 " guestfs_tar_out (g, \"/\", devfd);\n"
33133 #: ../src/guestfs.pod:363
33134 msgid "LISTING FILES"
33135 msgstr "СПИСКИ ФАЙЛІВ"
33138 #: ../src/guestfs.pod:365
33140 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33141 "L<guestfish(1)>-equivalent command C<ll>)."
33145 #: ../src/guestfs.pod:368
33147 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33148 "programs, as a flat list of strings."
33152 #: ../src/guestfs.pod:371
33154 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33155 "directory, plus additional information about each one. It is more "
33156 "equivalent to using the L<readdir(3)> call on a local filesystem."
33160 #: ../src/guestfs.pod:375
33162 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33166 #: ../src/guestfs.pod:378
33167 msgid "RUNNING COMMANDS"
33168 msgstr "ВИКОНАННЯ КОМАНД"
33171 #: ../src/guestfs.pod:380
33173 "Although libguestfs is primarily an API for manipulating files inside guest "
33174 "images, we also provide some limited facilities for running commands inside "
33179 #: ../src/guestfs.pod:384
33180 msgid "There are many limitations to this:"
33184 #: ../src/guestfs.pod:390
33186 "The kernel version that the command runs under will be different from what "
33191 #: ../src/guestfs.pod:395
33193 "If the command needs to communicate with daemons, then most likely they "
33194 "won't be running."
33198 #: ../src/guestfs.pod:400
33199 msgid "The command will be running in limited memory."
33203 #: ../src/guestfs.pod:404
33205 "The network may not be available unless you enable it (see L</"
33206 "guestfs_set_network>)."
33210 #: ../src/guestfs.pod:409
33211 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33215 #: ../src/guestfs.pod:413
33217 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33221 #: ../src/guestfs.pod:418
33223 "For SELinux guests, you may need to enable SELinux and load policy first. "
33224 "See L</SELINUX> in this manpage."
33228 #: ../src/guestfs.pod:423
33230 "I<Security:> It is not safe to run commands from untrusted, possibly "
33231 "malicious guests. These commands may attempt to exploit your program by "
33232 "sending unexpected output. They could also try to exploit the Linux kernel "
33233 "or qemu provided by the libguestfs appliance. They could use the network "
33234 "provided by the libguestfs appliance to bypass ordinary network partitions "
33235 "and firewalls. They could use the elevated privileges or different SELinux "
33236 "context of your program to their advantage."
33240 #: ../src/guestfs.pod:432
33242 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33243 "(a script which runs when the guest next boots normally), and to have this "
33244 "script run the commands you want in the normal context of the running guest, "
33245 "network security and so on. For information about other security issues, "
33246 "see L</SECURITY>."
33250 #: ../src/guestfs.pod:440
33252 "The two main API calls to run commands are L</guestfs_command> and L</"
33253 "guestfs_sh> (there are also variations)."
33257 #: ../src/guestfs.pod:443
33259 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33260 "shell globs, redirections, etc will work."
33264 #: ../src/guestfs.pod:446
33265 msgid "CONFIGURATION FILES"
33266 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33269 #: ../src/guestfs.pod:448
33271 "To read and write configuration files in Linux guest filesystems, we "
33272 "strongly recommend using Augeas. For example, Augeas understands how to "
33273 "read and write, say, a Linux shadow password file or X.org configuration "
33274 "file, and so avoids you having to write that code."
33278 #: ../src/guestfs.pod:453
33280 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
33281 "document Augeas itself here because there is excellent documentation on the "
33282 "L<http://augeas.net/> website."
33286 #: ../src/guestfs.pod:457
33288 "If you don't want to use Augeas (you fool!) then try calling L</"
33289 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33294 #: ../src/guestfs.pod:461
33299 #: ../src/guestfs.pod:463
33301 "We support SELinux guests. To ensure that labeling happens correctly in "
33302 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33306 #: ../src/guestfs.pod:471
33307 msgid "Before launching, do:"
33311 #: ../src/guestfs.pod:473
33314 " guestfs_set_selinux (g, 1);\n"
33317 " guestfs_set_selinux (g, 1);\n"
33321 #: ../src/guestfs.pod:477
33323 "After mounting the guest's filesystem(s), load the policy. This is best "
33324 "done by running the L<load_policy(8)> command in the guest itself:"
33328 #: ../src/guestfs.pod:481
33331 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33334 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33338 #: ../src/guestfs.pod:483
33340 "(Older versions of C<load_policy> require you to specify the name of the "
33345 #: ../src/guestfs.pod:488
33347 "Optionally, set the security context for the API. The correct security "
33348 "context to use can only be known by inspecting the guest. As an example:"
33352 #: ../src/guestfs.pod:492
33355 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33358 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33362 #: ../src/guestfs.pod:496
33363 msgid "This will work for running commands and editing existing files."
33367 #: ../src/guestfs.pod:498
33369 "When new files are created, you may need to label them explicitly, for "
33370 "example by running the external command C<restorecon pathname>."
33374 #: ../src/guestfs.pod:502
33379 #: ../src/guestfs.pod:504
33381 "Certain calls are affected by the current file mode creation mask (the "
33382 "\"umask\"). In particular ones which create files or directories, such as "
33383 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
33384 "either the default mode that the file is created with or modifies the mode "
33389 #: ../src/guestfs.pod:510
33391 "The default umask is C<022>, so files are created with modes such as C<0644> "
33392 "and directories with C<0755>."
33396 #: ../src/guestfs.pod:513
33398 "There are two ways to avoid being affected by umask. Either set umask to 0 "
33399 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
33400 "guestfs_chmod> after creating each file or directory."
33404 #: ../src/guestfs.pod:517
33405 msgid "For more information about umask, see L<umask(2)>."
33409 #: ../src/guestfs.pod:521
33411 "Libguestfs allows you to access Linux guests which have been encrypted using "
33412 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33413 "standard. This includes nearly all whole disk encryption systems used by "
33414 "modern Linux guests."
33418 #: ../src/guestfs.pod:527
33420 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33421 "returns the string C<crypto_LUKS>)."
33425 #: ../src/guestfs.pod:530
33427 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
33428 "will require the passphrase!"
33432 #: ../src/guestfs.pod:533
33434 "Opening a LUKS device creates a new device mapper device called C</dev/"
33435 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33436 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
33437 "from and encrypted to the underlying block device respectively."
33441 #: ../src/guestfs.pod:539
33443 "LVM volume groups on the device can be made visible by calling L</"
33444 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
33445 "(s) can now be mounted in the usual way."
33449 #: ../src/guestfs.pod:543
33451 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
33452 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33453 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
33454 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33455 "underlying encrypted block device)."
33459 #: ../src/guestfs.pod:550
33464 #: ../src/guestfs.pod:552
33466 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33467 "contains operating systems, an install CD or a live CD. (These APIs used to "
33468 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33469 "version 1.5.3 the most frequently used part of this library has been "
33470 "rewritten in C and moved into the core code)."
33474 #: ../src/guestfs.pod:559
33476 "Add all disks belonging to the unknown virtual machine and call L</"
33477 "guestfs_launch> in the usual way."
33481 #: ../src/guestfs.pod:562
33483 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
33484 "and certain heuristics, and returns a list of operating systems that were "
33485 "found. An empty list means none were found. A single element is the root "
33486 "filesystem of the operating system. For dual- or multi-boot guests, "
33487 "multiple roots can be returned, each one corresponding to a separate "
33488 "operating system. (Multi-boot virtual machines are extremely rare in the "
33489 "world of virtualization, but since this scenario can happen, we have built "
33490 "libguestfs to deal with it.)"
33494 #: ../src/guestfs.pod:571
33496 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33497 "to get additional details about that operating system. For example, call L</"
33498 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33499 "Windows and Linux-based operating systems respectively."
33503 #: ../src/guestfs.pod:577
33505 "Un*x-like and Linux-based operating systems usually consist of several "
33506 "filesystems which are mounted at boot time (for example, a separate boot "
33507 "partition mounted on C</boot>). The inspection rules are able to detect how "
33508 "filesystems correspond to mount points. Call "
33509 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
33510 "hash table like this example:"
33514 #: ../src/guestfs.pod:584
33517 " /boot => /dev/sda1\n"
33518 " / => /dev/vg_guest/lv_root\n"
33519 " /usr => /dev/vg_guest/lv_usr\n"
33522 " /boot => /dev/sda1\n"
33523 " / => /dev/vg_guest/lv_root\n"
33524 " /usr => /dev/vg_guest/lv_usr\n"
33528 #: ../src/guestfs.pod:588
33530 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33531 "filesystems as suggested."
33535 #: ../src/guestfs.pod:591
33537 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33538 "usr>). Sorting the keys of the hash by length, shortest first, should work."
33542 #: ../src/guestfs.pod:595
33544 "Inspection currently only works for some common operating systems. "
33545 "Contributors are welcome to send patches for other operating systems that we "
33546 "currently cannot detect."
33550 #: ../src/guestfs.pod:599
33552 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
33553 "for more details. The L</guestfs_inspect_os> function just ignores any "
33554 "encrypted devices."
33558 #: ../src/guestfs.pod:603
33560 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33561 "inspection and caches the results in the guest handle. Subsequent calls to "
33562 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33563 "read the disks. If you change the content of the guest disks, you can redo "
33564 "inspection by calling L</guestfs_inspect_os> again. (L</"
33565 "guestfs_inspect_list_applications> works a little differently from the other "
33566 "calls and does read the disks. See documentation for that function for "
33571 #: ../src/guestfs.pod:612
33572 msgid "INSPECTING INSTALL DISKS"
33576 #: ../src/guestfs.pod:614
33578 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33583 #: ../src/guestfs.pod:617
33585 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33586 "system, which currently can be C<installed> (a regular operating system) or "
33587 "C<installer> (some sort of install disk)."
33591 #: ../src/guestfs.pod:621
33593 "Further information is available about the operating system that can be "
33594 "installed using the regular inspection APIs like L</"
33595 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33599 #: ../src/guestfs.pod:626
33601 "Some additional information specific to installer disks is also available "
33602 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33603 "guestfs_inspect_is_multipart> calls."
33607 #: ../src/guestfs.pod:631
33608 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33612 #: ../src/guestfs.pod:633
33614 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
33615 "ntfs-3g.org/> driver."
33619 #: ../src/guestfs.pod:636
33620 msgid "DRIVE LETTERS AND PATHS"
33621 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33624 #: ../src/guestfs.pod:638
33626 "DOS and Windows still use drive letters, and the filesystems are always "
33627 "treated as case insensitive by Windows itself, and therefore you might find "
33628 "a Windows configuration file referring to a path like C<c:\\windows"
33629 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
33630 "might be referred to as C</WINDOWS/System32>."
33634 #: ../src/guestfs.pod:644
33636 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33637 "L</guestfs_inspect_get_drive_mappings>)"
33641 #: ../src/guestfs.pod:647
33643 "Dealing with separator characters (backslash vs forward slash) is outside "
33644 "the scope of libguestfs, but usually a simple character replacement will "
33649 #: ../src/guestfs.pod:651
33651 "To resolve the case insensitivity of paths, call L</"
33652 "guestfs_case_sensitive_path>."
33656 #: ../src/guestfs.pod:654
33657 msgid "ACCESSING THE WINDOWS REGISTRY"
33658 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33661 #: ../src/guestfs.pod:656
33663 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33664 "files, through the library C<hivex> which is part of the libguestfs project "
33665 "although ships as a separate tarball. You have to locate and download the "
33666 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
33667 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33668 "reg(1)> for more help on this issue."
33672 #: ../src/guestfs.pod:664
33673 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33674 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33677 #: ../src/guestfs.pod:666
33679 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33680 "provide something which looks like a Linux symlink. The way it tries to do "
33681 "the rewriting is described here:"
33685 #: ../src/guestfs.pod:670
33687 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33690 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33694 #: ../src/guestfs.pod:672
33696 "The essential problem is that ntfs-3g simply does not have enough "
33697 "information to do a correct job. NTFS links can contain drive letters and "
33698 "references to external device GUIDs that ntfs-3g has no way of resolving. "
33699 "It is almost certainly the case that libguestfs callers should ignore what "
33700 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33704 #: ../src/guestfs.pod:679
33706 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33707 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33708 "attribute, and read the raw reparse data from that (you can find the format "
33709 "documented in various places around the web)."
33713 #: ../src/guestfs.pod:684
33714 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33718 #: ../src/guestfs.pod:686
33720 "There are other useful extended attributes that can be read from ntfs-3g "
33721 "filesystems (using L</guestfs_getxattr>). See:"
33725 #: ../src/guestfs.pod:689
33727 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33729 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33732 #: ../src/guestfs.pod:691
33733 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33734 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33737 #: ../src/guestfs.pod:693
33739 "Although we don't want to discourage you from using the C API, we will "
33740 "mention here that the same API is also available in other languages."
33744 #: ../src/guestfs.pod:696
33746 "The API is broadly identical in all supported languages. This means that "
33747 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33748 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33749 "OCaml. In other words, a straightforward, predictable isomorphism between "
33754 #: ../src/guestfs.pod:702
33756 "Error messages are automatically transformed into exceptions if the language "
33761 #: ../src/guestfs.pod:705
33763 "We don't try to \"object orientify\" parts of the API in OO languages, "
33764 "although contributors are welcome to write higher level APIs above what we "
33765 "provide in their favourite languages if they wish."
33769 #: ../src/guestfs.pod:711
33774 #: ../src/guestfs.pod:713
33776 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
33777 "identical to the C API. C++ classes and exceptions are not used."
33781 #: ../src/guestfs.pod:717
33786 #: ../src/guestfs.pod:719
33788 "The C# bindings are highly experimental. Please read the warnings at the "
33789 "top of C<csharp/Libguestfs.cs>."
33793 #: ../src/guestfs.pod:722
33795 msgstr "B<Haskell>"
33798 #: ../src/guestfs.pod:724
33800 "This is the only language binding that is working but incomplete. Only "
33801 "calls which return simple integers have been bound in Haskell, and we are "
33802 "looking for help to complete this binding."
33806 #: ../src/guestfs.pod:728
33811 #: ../src/guestfs.pod:730
33813 "Full documentation is contained in the Javadoc which is distributed with "
33814 "libguestfs. For examples, see L<guestfs-java(3)>."
33818 #: ../src/guestfs.pod:733
33823 #: ../src/guestfs.pod:735
33824 msgid "See L<guestfs-ocaml(3)>."
33825 msgstr "Див. L<guestfs-ocaml(3)>."
33828 #: ../src/guestfs.pod:737
33833 #: ../src/guestfs.pod:739
33834 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33835 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33838 #: ../src/guestfs.pod:741
33843 #: ../src/guestfs.pod:743
33845 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33846 "the php-libguestfs package for your distribution."
33850 #: ../src/guestfs.pod:746
33851 msgid "The PHP binding only works correctly on 64 bit machines."
33855 #: ../src/guestfs.pod:748
33860 #: ../src/guestfs.pod:750
33861 msgid "See L<guestfs-python(3)>."
33862 msgstr "Див. L<guestfs-python(3)>."
33865 #: ../src/guestfs.pod:752
33870 #: ../src/guestfs.pod:754
33871 msgid "See L<guestfs-ruby(3)>."
33872 msgstr "Див. L<guestfs-ruby(3)>."
33875 #: ../src/guestfs.pod:756
33876 msgid "B<shell scripts>"
33877 msgstr "B<скрипти оболонки>"
33880 #: ../src/guestfs.pod:758
33881 msgid "See L<guestfish(1)>."
33882 msgstr "Див. L<guestfish(1)>."
33885 #: ../src/guestfs.pod:762
33886 msgid "LIBGUESTFS GOTCHAS"
33890 #: ../src/guestfs.pod:764
33892 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33893 "system [...] that works in the way it is documented but is counterintuitive "
33894 "and almost invites mistakes.\""
33898 #: ../src/guestfs.pod:768
33900 "Since we developed libguestfs and the associated tools, there are several "
33901 "things we would have designed differently, but are now stuck with for "
33902 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
33903 "release, you can expect these to change. Beware of them."
33907 #: ../src/guestfs.pod:776
33908 msgid "Autosync / forgetting to sync."
33912 #: ../src/guestfs.pod:778
33914 "I<Update:> Autosync is enabled by default for all API users starting from "
33915 "libguestfs 1.5.24. This section only applies to older versions."
33919 #: ../src/guestfs.pod:781
33921 "When modifying a filesystem from C or another language, you B<must> unmount "
33922 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33923 "libguestfs handle. You can also call:"
33927 #: ../src/guestfs.pod:785
33930 " guestfs_set_autosync (g, 1);\n"
33933 " guestfs_set_autosync (g, 1);\n"
33937 #: ../src/guestfs.pod:787
33939 "to have the unmount/sync done automatically for you when the handle 'g' is "
33940 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33944 #: ../src/guestfs.pod:791
33946 "If you forget to do this, then it is entirely possible that your changes "
33947 "won't be written out, or will be partially written, or (very rarely) that "
33948 "you'll get disk corruption."
33952 #: ../src/guestfs.pod:795
33954 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
33955 "guestfish scripts that forget to sync will work just fine, which can make "
33956 "this very puzzling if you are trying to debug a problem."
33960 #: ../src/guestfs.pod:799
33961 msgid "Mount option C<-o sync> should not be the default."
33965 #: ../src/guestfs.pod:801
33967 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
33968 "However C<-o sync> does not add any reliability benefit, but does have a "
33969 "very large performance impact."
33973 #: ../src/guestfs.pod:805
33975 "The work around is to use L</guestfs_mount_options> and set the mount "
33976 "options that you actually want to use."
33980 #: ../src/guestfs.pod:808
33981 msgid "Read-only should be the default."
33985 #: ../src/guestfs.pod:810
33987 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33988 "specify I<--rw> if you want to make changes to the image."
33992 #: ../src/guestfs.pod:813
33993 msgid "This would reduce the potential to corrupt live VM images."
33997 #: ../src/guestfs.pod:815
33999 "Note that many filesystems change the disk when you just mount and unmount, "
34000 "even if you didn't perform any writes. You need to use L</"
34001 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34005 #: ../src/guestfs.pod:819
34006 msgid "guestfish command line is hard to use."
34010 #: ../src/guestfs.pod:821
34012 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34013 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
34014 "exist, so it fails. In earlier versions of guestfish the error message was "
34015 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
34016 "we should have used C<guestfish -c command> to run commands."
34020 #: ../src/guestfs.pod:828
34021 msgid "guestfish megabyte modifiers don't work right on all commands"
34025 #: ../src/guestfs.pod:830
34027 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34028 "other modifiers). What guestfish actually does is to multiply the number "
34029 "part by the modifier part and pass the result to the C API. However this "
34030 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34031 "expecting some other unit (eg. megabytes)."
34035 #: ../src/guestfs.pod:837
34036 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
34040 #: ../src/guestfs.pod:839
34043 " lvcreate LV VG 100M\n"
34046 " lvcreate LV VG 100M\n"
34050 #: ../src/guestfs.pod:841
34052 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
34053 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34054 "megabytes * megabytes) logical volume. The error message you get from this "
34055 "is also a little obscure."
34059 #: ../src/guestfs.pod:846
34061 "This could be fixed in the generator by specially marking parameters and "
34062 "return values which take bytes or other units."
34066 #: ../src/guestfs.pod:849
34067 msgid "Ambiguity between devices and paths"
34071 #: ../src/guestfs.pod:851
34073 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34074 "sdb2>) and a similar pathname. A file might just happen to be called "
34075 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34079 #: ../src/guestfs.pod:856
34081 "In the current API we usually resolve this ambiguity by having two separate "
34082 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
34083 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34084 "detecting if the path supplied begins with C</dev/>."
34088 #: ../src/guestfs.pod:862
34090 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34091 "make paths/devices into structured names. One way to do this would be to "
34092 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34093 "aspect of grub. Another way would be to use a structured type, equivalent "
34094 "to this OCaml type:"
34098 #: ../src/guestfs.pod:868
34101 " type path = Path of string | Device of int | Partition of int * int\n"
34106 #: ../src/guestfs.pod:870
34107 msgid "which would allow you to pass arguments like:"
34111 #: ../src/guestfs.pod:872
34114 " Path \"/foo/bar\"\n"
34115 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
34116 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34117 " Path \"/dev/sdb2\" (* not a device *)\n"
34122 #: ../src/guestfs.pod:877
34124 "As you can see there are still problems to resolve even with this "
34125 "representation. Also consider how it might work in guestfish."
34129 #: ../src/guestfs.pod:882
34130 msgid "KEYS AND PASSPHRASES"
34131 msgstr "КЛЮЧІ І ПАРОЛІ"
34134 #: ../src/guestfs.pod:884
34136 "Certain libguestfs calls take a parameter that contains sensitive key "
34137 "material, passed in as a C string."
34141 #: ../src/guestfs.pod:887
34143 "In the future we would hope to change the libguestfs implementation so that "
34144 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34145 "swap. However this is I<not> done at the moment, because of the complexity "
34146 "of such an implementation."
34150 #: ../src/guestfs.pod:892
34152 "Therefore you should be aware that any key parameter you pass to libguestfs "
34153 "might end up being written out to the swap partition. If this is a concern, "
34154 "scrub the swap partition or don't use libguestfs on encrypted devices."
34158 #: ../src/guestfs.pod:897
34159 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34163 #: ../src/guestfs.pod:899
34165 "All high-level libguestfs actions are synchronous. If you want to use "
34166 "libguestfs asynchronously then you must create a thread."
34170 #: ../src/guestfs.pod:902
34172 "Only use the handle from a single thread. Either use the handle exclusively "
34173 "from one thread, or provide your own mutex so that two threads cannot issue "
34174 "calls on the same handle at the same time."
34178 #: ../src/guestfs.pod:906
34180 "See the graphical program guestfs-browser for one possible architecture for "
34181 "multithreaded programs using libvirt and libguestfs."
34185 #: ../src/guestfs.pod:909
34190 #: ../src/guestfs.pod:911
34192 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34197 #: ../src/guestfs.pod:914
34199 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34200 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34204 #: ../src/guestfs.pod:917
34206 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34207 "to change the directories that libguestfs will search in. The value is a "
34208 "colon-separated list of paths. The current directory is I<not> searched "
34209 "unless the path contains an empty element or C<.>. For example "
34210 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34211 "then C</usr/lib/guestfs>."
34215 #: ../src/guestfs.pod:924
34216 msgid "QEMU WRAPPERS"
34220 #: ../src/guestfs.pod:926
34222 "If you want to compile your own qemu, run qemu from a non-standard location, "
34223 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34228 #: ../src/guestfs.pod:930
34230 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34231 "last command in the shell script (so that qemu replaces the shell and "
34232 "becomes the direct child of the libguestfs-using program). If you don't do "
34233 "this, then the qemu process won't be cleaned up correctly."
34237 #: ../src/guestfs.pod:935
34239 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34244 #: ../src/guestfs.pod:938
34248 " qemudir=/home/rjones/d/qemu\n"
34249 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34253 " qemudir=/home/rjones/d/qemu\n"
34254 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34258 #: ../src/guestfs.pod:942
34260 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34261 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
34266 #: ../src/guestfs.pod:946
34269 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34272 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34276 #: ../src/guestfs.pod:948
34278 "Note that libguestfs also calls qemu with the -help and -version options in "
34279 "order to determine features."
34283 #: ../src/guestfs.pod:951
34284 msgid "ATTACHING TO RUNNING DAEMONS"
34285 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34288 #: ../src/guestfs.pod:953
34290 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34291 "babies. Use with caution."
34295 #: ../src/guestfs.pod:956
34297 "I<Note (2):> This section explains how to attach to a running daemon from a "
34298 "low level perspective. For most users, simply using virt tools such as "
34299 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34303 #: ../src/guestfs.pod:960
34304 msgid "Using guestfs_set_attach_method"
34305 msgstr "За допомогою guestfs_set_attach_method"
34308 #: ../src/guestfs.pod:962
34310 "By calling L</guestfs_set_attach_method> you can change how the library "
34311 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34312 "ARCHITECTURE> for some background)."
34316 #: ../src/guestfs.pod:966
34318 "The normal attach method is C<appliance>, where a small appliance is created "
34319 "containing the daemon, and then the library connects to this."
34323 #: ../src/guestfs.pod:969
34325 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34326 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34327 "daemon over the Unix domain socket."
34331 #: ../src/guestfs.pod:973
34333 "The normal use for this is to connect to a running virtual machine that "
34334 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34335 "files inside the live virtual machine."
34339 #: ../src/guestfs.pod:977
34340 msgid "Using guestfs_add_domain with live flag"
34341 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34344 #: ../src/guestfs.pod:979
34346 "L</guestfs_add_domain> provides some help for getting the correct attach "
34347 "method. If you pass the C<live> option to this function, then (if the "
34348 "virtual machine is running) it will examine the libvirt XML looking for a "
34349 "virtio-serial channel to connect to:"
34353 #: ../src/guestfs.pod:985
34360 " <channel type='unix'>\n"
34361 " <source mode='bind' path='/path/to/socket'/>\n"
34362 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34373 " <channel type='unix'>\n"
34374 " <source mode='bind' path='/path/to/socket'/>\n"
34375 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34383 #: ../src/guestfs.pod:997
34385 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34386 "method to C<unix:/path/to/socket>."
34390 #: ../src/guestfs.pod:1000
34392 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34393 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34394 "to attach to and modify live virtual machines."
34398 #: ../src/guestfs.pod:1004
34400 "The virtual machine needs to have been set up beforehand so that it has the "
34401 "virtio-serial channel and so that guestfsd is running inside it."
34405 #: ../src/guestfs.pod:1008
34406 msgid "ABI GUARANTEE"
34407 msgstr "ГАРАНТІЯ ЩОДО ABI"
34410 #: ../src/guestfs.pod:1010
34412 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34413 "actions as outlined in this section. Although we will deprecate some "
34414 "actions, for example if they get replaced by newer calls, we will keep the "
34415 "old actions forever. This allows you the developer to program in confidence "
34416 "against the libguestfs API."
34420 #: ../src/guestfs.pod:1016
34421 msgid "BLOCK DEVICE NAMING"
34422 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34425 #: ../src/guestfs.pod:1018
34427 "In the kernel there is now quite a profusion of schemata for naming block "
34428 "devices (in this context, by I<block device> I mean a physical or virtual "
34429 "hard drive). The original Linux IDE driver used names starting with C</dev/"
34430 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
34431 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
34432 "for the old IDE driver (particularly for SATA devices) those devices also "
34433 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
34434 "paravirtualized drivers. This has created several different naming systems, "
34435 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34439 #: ../src/guestfs.pod:1030
34441 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34442 "Linux kernel to access block devices. We can run a variety of appliances "
34443 "based on a variety of Linux kernels."
34447 #: ../src/guestfs.pod:1034
34449 "This causes a problem for libguestfs because many API calls use device or "
34450 "partition names. Working scripts and the recipe (example) scripts that we "
34451 "make available over the internet could fail if the naming scheme changes."
34455 #: ../src/guestfs.pod:1039
34457 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
34458 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34459 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34460 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34464 #: ../src/guestfs.pod:1045
34466 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
34467 "L</guestfs_list_partitions> and similar calls return the true names of the "
34468 "devices and partitions as known to the appliance."
34472 #: ../src/guestfs.pod:1050
34473 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34477 #: ../src/guestfs.pod:1052
34479 "Usually this translation is transparent. However in some (very rare) cases "
34480 "you may need to know the exact algorithm. Such cases include where you use "
34481 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34482 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34486 #: ../src/guestfs.pod:1058
34488 "The algorithm is applied only to I<parameters> which are known to be either "
34489 "device or partition names. Return values from functions such as L</"
34490 "guestfs_list_devices> are never changed."
34494 #: ../src/guestfs.pod:1066
34495 msgid "Is the string a parameter which is a device or partition name?"
34499 #: ../src/guestfs.pod:1070
34500 msgid "Does the string begin with C</dev/sd>?"
34501 msgstr "Чи починається рядок з C</dev/sd>?"
34504 #: ../src/guestfs.pod:1074
34506 "Does the named device exist? If so, we use that device. However if I<not> "
34507 "then we continue with this algorithm."
34511 #: ../src/guestfs.pod:1079
34512 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34516 #: ../src/guestfs.pod:1081
34517 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34521 #: ../src/guestfs.pod:1083
34522 msgid "If that named device exists, use it. If not, continue."
34526 #: ../src/guestfs.pod:1087
34527 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34531 #: ../src/guestfs.pod:1089
34532 msgid "If that named device exists, use it. If not, return an error."
34536 #: ../src/guestfs.pod:1093
34537 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34541 #: ../src/guestfs.pod:1095
34543 "Although the standard naming scheme and automatic translation is useful for "
34544 "simple programs and guestfish scripts, for larger programs it is best not to "
34545 "rely on this mechanism."
34549 #: ../src/guestfs.pod:1099
34551 "Where possible for maximum future portability programs using libguestfs "
34552 "should use these future-proof techniques:"
34556 #: ../src/guestfs.pod:1106
34558 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34559 "device names, and then use those names directly."
34563 #: ../src/guestfs.pod:1109
34565 "Since those device names exist by definition, they will never be translated."
34569 #: ../src/guestfs.pod:1114
34571 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34572 "filesystem labels."
34576 #: ../src/guestfs.pod:1119
34581 #: ../src/guestfs.pod:1121
34583 "This section discusses security implications of using libguestfs, "
34584 "particularly with untrusted or malicious guests or disk images."
34588 #: ../src/guestfs.pod:1124
34589 msgid "GENERAL SECURITY CONSIDERATIONS"
34590 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34593 #: ../src/guestfs.pod:1126
34595 "Be careful with any files or data that you download from a guest (by "
34596 "\"download\" we mean not just the L</guestfs_download> command but any "
34597 "command that reads files, filenames, directories or anything else from a "
34598 "disk image). An attacker could manipulate the data to fool your program "
34599 "into doing the wrong thing. Consider cases such as:"
34603 #: ../src/guestfs.pod:1136
34604 msgid "the data (file etc) not being present"
34608 #: ../src/guestfs.pod:1140
34609 msgid "being present but empty"
34613 #: ../src/guestfs.pod:1144
34614 msgid "being much larger than normal"
34618 #: ../src/guestfs.pod:1148
34619 msgid "containing arbitrary 8 bit data"
34623 #: ../src/guestfs.pod:1152
34624 msgid "being in an unexpected character encoding"
34628 #: ../src/guestfs.pod:1156
34629 msgid "containing homoglyphs."
34633 #: ../src/guestfs.pod:1160
34634 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34635 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34638 #: ../src/guestfs.pod:1162
34640 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34641 "(VFS) module can sometimes be escalated into exploits by deliberately "
34642 "creating a malicious, malformed filesystem. These exploits are very severe "
34643 "for two reasons. Firstly there are very many filesystem drivers in the "
34644 "kernel, and many of them are infrequently used and not much developer "
34645 "attention has been paid to the code. Linux userspace helps potential "
34646 "crackers by detecting the filesystem type and automatically choosing the "
34647 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34648 "the administrator. Secondly, a kernel-level exploit is like a local root "
34649 "exploit (worse in some ways), giving immediate and total access to the "
34650 "system right down to the hardware level."
34654 #: ../src/guestfs.pod:1175
34656 "That explains why you should never mount a filesystem from an untrusted "
34657 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
34658 "inside a qemu virtual machine, usually running as a non-root user. The "
34659 "attacker would need to write a filesystem which first exploited the kernel, "
34660 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34661 "the libguestfs protocol, and finally to be as serious as the host kernel "
34662 "exploit it would need to escalate its privileges to root. This multi-step "
34663 "escalation, performed by a static piece of data, is thought to be extremely "
34664 "hard to do, although we never say 'never' about security issues."
34668 #: ../src/guestfs.pod:1186
34670 "In any case callers can reduce the attack surface by forcing the filesystem "
34671 "type when mounting (use L</guestfs_mount_vfs>)."
34675 #: ../src/guestfs.pod:1189
34676 msgid "PROTOCOL SECURITY"
34677 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34680 #: ../src/guestfs.pod:1191
34682 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
34683 "defined upper message size. However a program that uses libguestfs must "
34684 "also take care - for example you can write a program that downloads a binary "
34685 "from a disk image and executes it locally, and no amount of protocol "
34686 "security will save you from the consequences."
34690 #: ../src/guestfs.pod:1197
34691 msgid "INSPECTION SECURITY"
34695 #: ../src/guestfs.pod:1199
34697 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34698 "directly from the guest, and these could contain any 8 bit data. Callers "
34699 "should be careful to escape these before printing them to a structured file "
34700 "(for example, use HTML escaping if creating a web page)."
34704 #: ../src/guestfs.pod:1205
34706 "Guest configuration may be altered in unusual ways by the administrator of "
34707 "the virtual machine, and may not reflect reality (particularly for untrusted "
34708 "or actively malicious guests). For example we parse the hostname from "
34709 "configuration files like C</etc/sysconfig/network> that we find in the "
34710 "guest, but the guest administrator can easily manipulate these files to "
34711 "provide the wrong hostname."
34715 #: ../src/guestfs.pod:1213
34717 "The inspection API parses guest configuration using two external libraries: "
34718 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
34719 "designed to be robust in the face of malicious data, although denial of "
34720 "service attacks are still possible, for example with oversized configuration "
34725 #: ../src/guestfs.pod:1219
34726 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34727 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34730 #: ../src/guestfs.pod:1221
34732 "Be very cautious about running commands from the guest. By running a "
34733 "command in the guest, you are giving CPU time to a binary that you do not "
34734 "control, under the same user account as the library, albeit wrapped in qemu "
34735 "virtualization. More information and alternatives can be found in the "
34736 "section L</RUNNING COMMANDS>."
34740 #: ../src/guestfs.pod:1227
34741 msgid "CVE-2010-3851"
34742 msgstr "CVE-2010-3851"
34745 #: ../src/guestfs.pod:1229
34746 msgid "https://bugzilla.redhat.com/642934"
34747 msgstr "https://bugzilla.redhat.com/642934"
34750 #: ../src/guestfs.pod:1231
34752 "This security bug concerns the automatic disk format detection that qemu "
34753 "does on disk images."
34757 #: ../src/guestfs.pod:1234
34759 "A raw disk image is just the raw bytes, there is no header. Other disk "
34760 "images like qcow2 contain a special header. Qemu deals with this by looking "
34761 "for one of the known headers, and if none is found then assuming the disk "
34762 "image must be raw."
34766 #: ../src/guestfs.pod:1239
34768 "This allows a guest which has been given a raw disk image to write some "
34769 "other header. At next boot (or when the disk image is accessed by "
34770 "libguestfs) qemu would do autodetection and think the disk image format was, "
34771 "say, qcow2 based on the header written by the guest."
34775 #: ../src/guestfs.pod:1244
34777 "This in itself would not be a problem, but qcow2 offers many features, one "
34778 "of which is to allow a disk image to refer to another image (called the "
34779 "\"backing disk\"). It does this by placing the path to the backing disk "
34780 "into the qcow2 header. This path is not validated and could point to any "
34781 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
34782 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34783 "control of the attacker."
34787 #: ../src/guestfs.pod:1252
34789 "In libguestfs this is rather hard to exploit except under two circumstances:"
34793 #: ../src/guestfs.pod:1259
34794 msgid "You have enabled the network or have opened the disk in write mode."
34798 #: ../src/guestfs.pod:1263
34800 "You are also running untrusted code from the guest (see L</RUNNING "
34805 #: ../src/guestfs.pod:1268
34807 "The way to avoid this is to specify the expected disk format when adding "
34808 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
34809 "should always do this if the disk is raw format, and it's a good idea for "
34814 #: ../src/guestfs.pod:1273
34816 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34817 "format is fetched from libvirt and passed through."
34821 #: ../src/guestfs.pod:1276
34823 "For libguestfs tools, use the I<--format> command line parameter as "
34828 #: ../src/guestfs.pod:1279
34829 msgid "CONNECTION MANAGEMENT"
34830 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34833 #: ../src/guestfs.pod:1281
34834 msgid "guestfs_h *"
34835 msgstr "guestfs_h *"
34838 #: ../src/guestfs.pod:1283
34840 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
34841 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
34842 "handle and release all resources used."
34846 #: ../src/guestfs.pod:1287
34848 "For information on using multiple handles and threads, see the section L</"
34849 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34853 #: ../src/guestfs.pod:1290
34854 msgid "guestfs_create"
34855 msgstr "guestfs_create"
34858 #: ../src/guestfs.pod:1292
34861 " guestfs_h *guestfs_create (void);\n"
34864 " guestfs_h *guestfs_create (void);\n"
34868 #: ../src/guestfs.pod:1294
34869 msgid "Create a connection handle."
34870 msgstr "Створити дескриптор з’єднання."
34873 #: ../src/guestfs.pod:1296
34875 "On success this returns a non-NULL pointer to a handle. On error it returns "
34880 #: ../src/guestfs.pod:1299
34882 "You have to \"configure\" the handle after creating it. This includes "
34883 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34884 "handle at least once."
34888 #: ../src/guestfs.pod:1303
34889 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34893 #: ../src/guestfs.pod:1305
34895 "You may also want to configure error handling for the handle. See the L</"
34896 "ERROR HANDLING> section below."
34900 #: ../src/guestfs.pod:1308
34901 msgid "guestfs_close"
34902 msgstr "guestfs_close"
34905 #: ../src/guestfs.pod:1310
34908 " void guestfs_close (guestfs_h *g);\n"
34911 " void guestfs_close (guestfs_h *g);\n"
34915 #: ../src/guestfs.pod:1312
34916 msgid "This closes the connection handle and frees up all resources used."
34920 #: ../src/guestfs.pod:1314
34922 "If autosync was set on the handle and the handle was launched, then this "
34923 "implicitly calls various functions to unmount filesystems and sync the "
34924 "disk. See L</guestfs_set_autosync> for more details."
34928 #: ../src/guestfs.pod:1318
34929 msgid "If a close callback was set on the handle, then it is called."
34933 #: ../src/guestfs.pod:1320
34934 msgid "ERROR HANDLING"
34935 msgstr "ОБРОБКА ПОМИЛОК"
34938 #: ../src/guestfs.pod:1322
34940 "API functions can return errors. For example, almost all functions that "
34941 "return C<int> will return C<-1> to indicate an error."
34945 #: ../src/guestfs.pod:1325
34947 "Additional information is available for errors: an error message string and "
34948 "optionally an error number (errno) if the thing that failed was a system "
34953 #: ../src/guestfs.pod:1329
34955 "You can get at the additional information about the last error on the handle "
34956 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34957 "up an error handler with L</guestfs_set_error_handler>."
34961 #: ../src/guestfs.pod:1334
34963 "When the handle is created, a default error handler is installed which "
34964 "prints the error message string to C<stderr>. For small short-running "
34965 "command line programs it is sufficient to do:"
34969 #: ../src/guestfs.pod:1338
34972 " if (guestfs_launch (g) == -1)\n"
34973 " exit (EXIT_FAILURE);\n"
34976 " if (guestfs_launch (g) == -1)\n"
34977 " exit (EXIT_FAILURE);\n"
34981 #: ../src/guestfs.pod:1341
34983 "since the default error handler will ensure that an error message has been "
34984 "printed to C<stderr> before the program exits."
34988 #: ../src/guestfs.pod:1344
34990 "For other programs the caller will almost certainly want to install an "
34991 "alternate error handler or do error handling in-line like this:"
34995 #: ../src/guestfs.pod:1347
34998 " /* This disables the default behaviour of printing errors\n"
35000 " guestfs_set_error_handler (g, NULL, NULL);\n"
35005 #: ../src/guestfs.pod:1351
35008 #| " if (guestfs_launch (g) == -1) {\n"
35009 #| " /* Examine the error message and print it etc. */\n"
35010 #| " char *msg = guestfs_last_error (g);\n"
35011 #| " int errnum = guestfs_last_errno (g);\n"
35012 #| " fprintf (stderr, \"%s\\n\", msg);\n"
35017 " if (guestfs_launch (g) == -1) {\n"
35018 " /* Examine the error message and print it etc. */\n"
35019 " char *msg = guestfs_last_error (g);\n"
35020 " int errnum = guestfs_last_errno (g);\n"
35021 " fprintf (stderr, \"%s\", msg);\n"
35022 " if (errnum != 0)\n"
35023 " fprintf (stderr, \": %s\", strerror (errnum));\n"
35024 " fprintf (stderr, \"\\n\");\n"
35029 " if (guestfs_launch (g) == -1) {\n"
35030 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35031 " char *msg = guestfs_last_error (g);\n"
35032 " int errnum = guestfs_last_errno (g);\n"
35033 " fprintf (stderr, \"%s\\n\", msg);\n"
35039 #: ../src/guestfs.pod:1362
35041 "Out of memory errors are handled differently. The default action is to call "
35042 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
35043 "guestfs_set_out_of_memory_handler>."
35047 #: ../src/guestfs.pod:1366
35049 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35050 "because there is no handle if this happens there is no way to get additional "
35051 "error information. However L</guestfs_create> is supposed to be a "
35052 "lightweight operation which can only fail because of insufficient memory (it "
35053 "returns NULL in this case)."
35057 #: ../src/guestfs.pod:1372
35058 msgid "guestfs_last_error"
35059 msgstr "guestfs_last_error"
35062 #: ../src/guestfs.pod:1374
35065 " const char *guestfs_last_error (guestfs_h *g);\n"
35068 " const char *guestfs_last_error (guestfs_h *g);\n"
35072 #: ../src/guestfs.pod:1376
35074 "This returns the last error message that happened on C<g>. If there has not "
35075 "been an error since the handle was created, then this returns C<NULL>."
35079 #: ../src/guestfs.pod:1380
35081 "The lifetime of the returned string is until the next error occurs, or L</"
35082 "guestfs_close> is called."
35086 #: ../src/guestfs.pod:1383
35087 msgid "guestfs_last_errno"
35088 msgstr "guestfs_last_errno"
35091 #: ../src/guestfs.pod:1385
35094 " int guestfs_last_errno (guestfs_h *g);\n"
35097 " int guestfs_last_errno (guestfs_h *g);\n"
35101 #: ../src/guestfs.pod:1387
35102 msgid "This returns the last error number (errno) that happened on C<g>."
35106 #: ../src/guestfs.pod:1389
35107 msgid "If successful, an errno integer not equal to zero is returned."
35111 #: ../src/guestfs.pod:1391
35113 "If no error, this returns 0. This call can return 0 in three situations:"
35117 #: ../src/guestfs.pod:1398
35118 msgid "There has not been any error on the handle."
35122 #: ../src/guestfs.pod:1402
35124 "There has been an error but the errno was meaningless. This corresponds to "
35125 "the case where the error did not come from a failed system call, but for "
35126 "some other reason."
35130 #: ../src/guestfs.pod:1408
35132 "There was an error from a failed system call, but for some reason the errno "
35133 "was not captured and returned. This usually indicates a bug in libguestfs."
35137 #: ../src/guestfs.pod:1414
35139 "Libguestfs tries to convert the errno from inside the applicance into a "
35140 "corresponding errno for the caller (not entirely trivial: the appliance "
35141 "might be running a completely different operating system from the library "
35142 "and error numbers are not standardized across Un*xen). If this could not be "
35143 "done, then the error is translated to C<EINVAL>. In practice this should "
35144 "only happen in very rare circumstances."
35148 #: ../src/guestfs.pod:1422
35149 msgid "guestfs_set_error_handler"
35150 msgstr "guestfs_set_error_handler"
35153 #: ../src/guestfs.pod:1424
35156 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35158 " const char *msg);\n"
35159 " void guestfs_set_error_handler (guestfs_h *g,\n"
35160 " guestfs_error_handler_cb cb,\n"
35161 " void *opaque);\n"
35164 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35166 " const char *msg);\n"
35167 " void guestfs_set_error_handler (guestfs_h *g,\n"
35168 " guestfs_error_handler_cb cb,\n"
35169 " void *opaque);\n"
35173 #: ../src/guestfs.pod:1431
35175 "The callback C<cb> will be called if there is an error. The parameters "
35176 "passed to the callback are an opaque data pointer and the error message "
35181 #: ../src/guestfs.pod:1435
35183 "C<errno> is not passed to the callback. To get that the callback must call "
35184 "L</guestfs_last_errno>."
35188 #: ../src/guestfs.pod:1438
35190 "Note that the message string C<msg> is freed as soon as the callback "
35191 "function returns, so if you want to stash it somewhere you must make your "
35196 #: ../src/guestfs.pod:1442
35197 msgid "The default handler prints messages on C<stderr>."
35201 #: ../src/guestfs.pod:1444
35202 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35206 #: ../src/guestfs.pod:1446
35207 msgid "guestfs_get_error_handler"
35208 msgstr "guestfs_get_error_handler"
35211 #: ../src/guestfs.pod:1448
35214 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35215 " void **opaque_rtn);\n"
35218 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35219 " void **opaque_rtn);\n"
35223 #: ../src/guestfs.pod:1451
35224 msgid "Returns the current error handler callback."
35228 #: ../src/guestfs.pod:1453
35229 msgid "guestfs_set_out_of_memory_handler"
35230 msgstr "guestfs_set_out_of_memory_handler"
35233 #: ../src/guestfs.pod:1455
35236 #| " typedef void (*guestfs_abort_cb) (void);\n"
35237 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35238 #| " guestfs_abort_cb);\n"
35241 " typedef void (*guestfs_abort_cb) (void);\n"
35242 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35243 " guestfs_abort_cb);\n"
35246 " typedef void (*guestfs_abort_cb) (void);\n"
35247 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35248 " guestfs_abort_cb);\n"
35252 #: ../src/guestfs.pod:1459
35254 "The callback C<cb> will be called if there is an out of memory situation. "
35255 "I<Note this callback must not return>."
35259 #: ../src/guestfs.pod:1462
35260 msgid "The default is to call L<abort(3)>."
35264 #: ../src/guestfs.pod:1464
35266 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
35270 #: ../src/guestfs.pod:1467
35271 msgid "guestfs_get_out_of_memory_handler"
35272 msgstr "guestfs_get_out_of_memory_handler"
35275 #: ../src/guestfs.pod:1469
35278 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35281 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35285 #: ../src/guestfs.pod:1471
35286 msgid "This returns the current out of memory handler."
35290 #: ../src/guestfs.pod:1473
35292 msgstr "ВИКЛИКИ API"
35295 #: ../src/guestfs.pod:1477
35300 #: ../src/guestfs.pod:1479
35305 #: ../src/guestfs.pod:1481
35306 msgid "AVAILABILITY"
35307 msgstr "ДОСТУПНІСТЬ"
35310 #: ../src/guestfs.pod:1483
35311 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35312 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35315 #: ../src/guestfs.pod:1485
35317 "Using L</guestfs_available> you can test availability of the following "
35318 "groups of functions. This test queries the appliance to see if the "
35319 "appliance you are currently using supports the functionality."
35323 #: ../src/guestfs.pod:1490
35324 msgid "@AVAILABILITY@"
35325 msgstr "@AVAILABILITY@"
35328 #: ../src/guestfs.pod:1492
35329 msgid "GUESTFISH supported COMMAND"
35333 #: ../src/guestfs.pod:1494
35335 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35336 "prints out the available groups and whether they are supported by this build "
35337 "of libguestfs. Note however that you have to do C<run> first."
35341 #: ../src/guestfs.pod:1499
35342 msgid "SINGLE CALLS AT COMPILE TIME"
35346 #: ../src/guestfs.pod:1501
35348 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35349 "function, such as:"
35353 #: ../src/guestfs.pod:1504
35356 " #define LIBGUESTFS_HAVE_DD 1\n"
35359 " #define LIBGUESTFS_HAVE_DD 1\n"
35363 #: ../src/guestfs.pod:1506
35364 msgid "if L</guestfs_dd> is available."
35368 #: ../src/guestfs.pod:1508
35370 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35371 "function is available at compile time, we recommended using build tools such "
35372 "as autoconf or cmake. For example in autotools you could use:"
35376 #: ../src/guestfs.pod:1513
35379 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35380 " AC_CHECK_FUNCS([guestfs_dd])\n"
35383 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35384 " AC_CHECK_FUNCS([guestfs_dd])\n"
35388 #: ../src/guestfs.pod:1516
35390 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35395 #: ../src/guestfs.pod:1519
35396 msgid "SINGLE CALLS AT RUN TIME"
35400 #: ../src/guestfs.pod:1521
35402 "Testing at compile time doesn't guarantee that a function really exists in "
35403 "the library. The reason is that you might be dynamically linked against a "
35404 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
35405 "This situation unfortunately results in a segmentation fault, which is a "
35406 "shortcoming of the C dynamic linking system itself."
35410 #: ../src/guestfs.pod:1528
35412 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35413 "in this example program (note that you still need the compile time check as "
35418 #: ../src/guestfs.pod:1532
35421 " #include <stdio.h>\n"
35422 " #include <stdlib.h>\n"
35423 " #include <unistd.h>\n"
35424 " #include <dlfcn.h>\n"
35425 " #include <guestfs.h>\n"
35428 " #include <stdio.h>\n"
35429 " #include <stdlib.h>\n"
35430 " #include <unistd.h>\n"
35431 " #include <dlfcn.h>\n"
35432 " #include <guestfs.h>\n"
35436 #: ../src/guestfs.pod:1538
35441 " #ifdef LIBGUESTFS_HAVE_DD\n"
35443 " int has_function;\n"
35448 " #ifdef LIBGUESTFS_HAVE_DD\n"
35450 " int has_function;\n"
35454 #: ../src/guestfs.pod:1544
35457 " /* Test if the function guestfs_dd is really available. */\n"
35458 " dl = dlopen (NULL, RTLD_LAZY);\n"
35460 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35461 " exit (EXIT_FAILURE);\n"
35463 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35469 #: ../src/guestfs.pod:1553
35472 " if (!has_function)\n"
35473 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35475 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35476 " /* Now it's safe to call\n"
35477 " guestfs_dd (g, \"foo\", \"bar\");\n"
35481 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35488 #: ../src/guestfs.pod:1566
35490 "You may think the above is an awful lot of hassle, and it is. There are "
35491 "other ways outside of the C linking system to ensure that this kind of "
35492 "incompatibility never arises, such as using package versioning:"
35496 #: ../src/guestfs.pod:1571
35499 " Requires: libguestfs >= 1.0.80\n"
35504 #: ../src/guestfs.pod:1573
35505 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35509 #: ../src/guestfs.pod:1575
35511 "A recent feature of the API is the introduction of calls which take optional "
35512 "arguments. In C these are declared 3 ways. The main way is as a call which "
35513 "takes variable arguments (ie. C<...>), as in this example:"
35517 #: ../src/guestfs.pod:1580
35520 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35523 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35527 #: ../src/guestfs.pod:1582
35529 "Call this with a list of optional arguments, terminated by C<-1>. So to "
35530 "call with no optional arguments specified:"
35534 #: ../src/guestfs.pod:1585
35537 " guestfs_add_drive_opts (g, filename, -1);\n"
35540 " guestfs_add_drive_opts (g, filename, -1);\n"
35544 #: ../src/guestfs.pod:1587
35545 msgid "With a single optional argument:"
35549 #: ../src/guestfs.pod:1589
35552 " guestfs_add_drive_opts (g, filename,\n"
35553 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35557 " guestfs_add_drive_opts (g, filename,\n"
35558 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35563 #: ../src/guestfs.pod:1593
35568 #: ../src/guestfs.pod:1595
35571 " guestfs_add_drive_opts (g, filename,\n"
35572 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35573 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35577 " guestfs_add_drive_opts (g, filename,\n"
35578 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35579 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35584 #: ../src/guestfs.pod:1600
35586 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
35591 #: ../src/guestfs.pod:1603
35592 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35596 #: ../src/guestfs.pod:1605
35598 "The second variant has the same name with the suffix C<_va>, which works the "
35599 "same way but takes a C<va_list>. See the C manual for details. For the "
35600 "example function, this is declared:"
35604 #: ../src/guestfs.pod:1609
35607 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35608 " va_list args);\n"
35611 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35612 " va_list args);\n"
35616 #: ../src/guestfs.pod:1612
35617 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35621 #: ../src/guestfs.pod:1614
35623 "The third variant is useful where you need to construct these calls. You "
35624 "pass in a structure where you fill in the optional fields. The structure "
35625 "has a bitmask as the first element which you must set to indicate which "
35626 "fields you have filled in. For our example function the structure and call "
35631 #: ../src/guestfs.pod:1620
35634 " struct guestfs_add_drive_opts_argv {\n"
35635 " uint64_t bitmask;\n"
35637 " const char *format;\n"
35640 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35641 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35644 " struct guestfs_add_drive_opts_argv {\n"
35645 " uint64_t bitmask;\n"
35647 " const char *format;\n"
35650 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35651 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35655 #: ../src/guestfs.pod:1629
35656 msgid "You could call it like this:"
35660 #: ../src/guestfs.pod:1631
35663 " struct guestfs_add_drive_opts_argv optargs = {\n"
35664 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35665 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35666 " .readonly = 1,\n"
35667 " .format = \"qcow2\"\n"
35671 " struct guestfs_add_drive_opts_argv optargs = {\n"
35672 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35673 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35674 " .readonly = 1,\n"
35675 " .format = \"qcow2\"\n"
35680 #: ../src/guestfs.pod:1638
35683 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35686 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35690 #: ../src/guestfs.pod:1646
35691 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35695 #: ../src/guestfs.pod:1651
35696 msgid "You do not need to fill in all fields of the structure."
35700 #: ../src/guestfs.pod:1655
35702 "There must be a one-to-one correspondence between fields of the structure "
35703 "that are filled in, and bits set in the bitmask."
35707 #: ../src/guestfs.pod:1660
35708 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35712 #: ../src/guestfs.pod:1662
35714 "In other languages, optional arguments are expressed in the way that is "
35715 "natural for that language. We refer you to the language-specific "
35716 "documentation for more details on that."
35720 #: ../src/guestfs.pod:1666
35721 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35725 #: ../src/guestfs.pod:1668
35726 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35730 #: ../src/guestfs.pod:1670
35732 "B<Note:> This section documents the generic event mechanism introduced in "
35733 "libguestfs 1.10, which you should use in new code if possible. The old "
35734 "functions C<guestfs_set_log_message_callback>, "
35735 "C<guestfs_set_subprocess_quit_callback>, "
35736 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35737 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35738 "page. Because of the ABI guarantee, the old functions continue to work."
35742 #: ../src/guestfs.pod:1679
35744 "Handles generate events when certain things happen, such as log messages "
35745 "being generated, progress messages during long-running operations, or the "
35746 "handle being closed. The API calls described below let you register a "
35747 "callback to be called when events happen. You can register multiple "
35748 "callbacks (for the same, different or overlapping sets of events), and "
35749 "individually remove callbacks. If callbacks are not removed, then they "
35750 "remain in force until the handle is closed."
35754 #: ../src/guestfs.pod:1687
35756 "In the current implementation, events are only generated synchronously: that "
35757 "means that events (and hence callbacks) can only happen while you are in the "
35758 "middle of making another libguestfs call. The callback is called in the "
35763 #: ../src/guestfs.pod:1692
35765 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35766 "unsigned integers, or a message buffer. Payloads are discussed later on."
35770 #: ../src/guestfs.pod:1696
35771 msgid "CLASSES OF EVENTS"
35775 #: ../src/guestfs.pod:1700
35776 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35780 #: ../src/guestfs.pod:1703
35782 "The callback function will be called while the handle is being closed "
35783 "(synchronously from L</guestfs_close>)."
35787 #: ../src/guestfs.pod:1706
35789 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35790 "handles that are open when the program exits. This means that this callback "
35791 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35792 "problems in higher-level languages (eg. if your HLL interpreter has already "
35793 "been cleaned up by the time this is called, and if your callback then jumps "
35794 "into some HLL function)."
35798 #: ../src/guestfs.pod:1713
35800 "If no callback is registered: the handle is closed without any callback "
35805 #: ../src/guestfs.pod:1716
35806 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35810 #: ../src/guestfs.pod:1719
35812 "The callback function will be called when the child process quits, either "
35813 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
35814 "corresponds to a transition from any state to the CONFIG state)."
35818 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732
35819 msgid "If no callback is registered: the event is ignored."
35823 #: ../src/guestfs.pod:1725
35824 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35828 #: ../src/guestfs.pod:1728
35830 "The callback function will be called when the child process becomes ready "
35831 "first time after it has been launched. (This corresponds to a transition "
35832 "from LAUNCHING to the READY state)."
35836 #: ../src/guestfs.pod:1734
35837 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35841 #: ../src/guestfs.pod:1737
35843 "Some long-running operations can generate progress messages. If this "
35844 "callback is registered, then it will be called each time a progress message "
35845 "is generated (usually two seconds after the operation started, and three "
35846 "times per second thereafter until it completes, although the frequency may "
35847 "change in future versions)."
35851 #: ../src/guestfs.pod:1743
35853 "The callback receives in the payload four unsigned 64 bit numbers which are "
35854 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35858 #: ../src/guestfs.pod:1746
35860 "The units of C<total> are not defined, although for some operations C<total> "
35861 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35862 "or megabytes), and C<position> may be the portion which has been transferred."
35866 #: ../src/guestfs.pod:1751
35867 msgid "The only defined and stable parts of the API are:"
35871 #: ../src/guestfs.pod:1757
35873 "The callback can display to the user some type of progress bar or indicator "
35874 "which shows the ratio of C<position>:C<total>."
35878 #: ../src/guestfs.pod:1762
35879 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35883 #: ../src/guestfs.pod:1766
35885 "If any progress notification is sent during a call, then a final progress "
35886 "notification is always sent when C<position> = C<total> (I<unless> the call "
35887 "fails with an error)."
35891 #: ../src/guestfs.pod:1770
35893 "This is to simplify caller code, so callers can easily set the progress "
35894 "indicator to \"100%\" at the end of the operation, without requiring special "
35895 "code to detect this case."
35899 #: ../src/guestfs.pod:1776
35901 "For some calls we are unable to estimate the progress of the call, but we "
35902 "can still generate progress messages to indicate activity. This is known as "
35903 "\"pulse mode\", and is directly supported by certain progress bar "
35904 "implementations (eg. GtkProgressBar)."
35908 #: ../src/guestfs.pod:1781
35910 "For these calls, zero or more progress messages are generated with "
35911 "C<position = 0> and C<total = 1>, followed by a final message with "
35912 "C<position = total = 1>."
35916 #: ../src/guestfs.pod:1785
35918 "As noted above, if the call fails with an error then the final message may "
35919 "not be generated."
35923 #: ../src/guestfs.pod:1790
35925 "The callback also receives the procedure number (C<proc_nr>) and serial "
35926 "number (C<serial>) of the call. These are only useful for debugging "
35927 "protocol issues, and the callback can normally ignore them. The callback "
35928 "may want to print these numbers in error messages or debugging messages."
35932 #: ../src/guestfs.pod:1796
35933 msgid "If no callback is registered: progress messages are discarded."
35937 #: ../src/guestfs.pod:1798
35938 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35942 #: ../src/guestfs.pod:1801
35944 "The callback function is called whenever a log message is generated by qemu, "
35945 "the appliance kernel, guestfsd (daemon), or utility programs."
35949 #: ../src/guestfs.pod:1804
35951 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35952 "guestfs_launch>) then additional debug messages are generated."
35956 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
35958 "If no callback is registered: the messages are discarded unless the verbose "
35959 "flag is set in which case they are sent to stderr. You can override the "
35960 "printing of verbose messages to stderr by setting up a callback."
35964 #: ../src/guestfs.pod:1812
35965 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35969 #: ../src/guestfs.pod:1815
35971 "The callback function is called whenever a log message is generated by the "
35972 "library part of libguestfs."
35976 #: ../src/guestfs.pod:1818
35978 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35979 "messages are generated."
35983 #: ../src/guestfs.pod:1826
35984 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35988 #: ../src/guestfs.pod:1829
35990 "The callback function is called whenever a trace message is generated. This "
35991 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35995 #: ../src/guestfs.pod:1832
35997 "If no callback is registered: the messages are sent to stderr. You can "
35998 "override the printing of trace messages to stderr by setting up a callback."
36002 #: ../src/guestfs.pod:1838
36003 msgid "guestfs_set_event_callback"
36007 #: ../src/guestfs.pod:1840
36010 " int guestfs_set_event_callback (guestfs_h *g,\n"
36011 " guestfs_event_callback cb,\n"
36012 " uint64_t event_bitmask,\n"
36014 " void *opaque);\n"
36019 #: ../src/guestfs.pod:1846
36021 "This function registers a callback (C<cb>) for all event classes in the "
36022 "C<event_bitmask>."
36026 #: ../src/guestfs.pod:1849
36028 "For example, to register for all log message events, you could call this "
36029 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
36030 "To register a single callback for all possible classes of events, use "
36031 "C<GUESTFS_EVENT_ALL>."
36035 #: ../src/guestfs.pod:1855
36036 msgid "C<flags> should always be passed as 0."
36040 #: ../src/guestfs.pod:1857
36042 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
36043 "it for any purpose."
36047 #: ../src/guestfs.pod:1860
36049 "The return value is the event handle (an integer) which you can use to "
36050 "delete the callback (see below)."
36054 #: ../src/guestfs.pod:1863
36056 "If there is an error, this function returns C<-1>, and sets the error in the "
36057 "handle in the usual way (see L</guestfs_last_error> etc.)"
36061 #: ../src/guestfs.pod:1866
36063 "Callbacks remain in effect until they are deleted, or until the handle is "
36068 #: ../src/guestfs.pod:1869
36070 "In the case where multiple callbacks are registered for a particular event "
36071 "class, all of the callbacks are called. The order in which multiple "
36072 "callbacks are called is not defined."
36076 #: ../src/guestfs.pod:1873
36077 msgid "guestfs_delete_event_callback"
36081 #: ../src/guestfs.pod:1875
36084 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36089 #: ../src/guestfs.pod:1877
36091 "Delete a callback that was previously registered. C<event_handle> should be "
36092 "the integer that was returned by a previous call to "
36093 "C<guestfs_set_event_callback> on the same handle."
36097 #: ../src/guestfs.pod:1881
36098 msgid "guestfs_event_callback"
36102 #: ../src/guestfs.pod:1883
36105 " typedef void (*guestfs_event_callback) (\n"
36108 " uint64_t event,\n"
36109 " int event_handle,\n"
36111 " const char *buf, size_t buf_len,\n"
36112 " const uint64_t *array, size_t array_len);\n"
36117 #: ../src/guestfs.pod:1892
36119 "This is the type of the event callback function that you have to provide."
36123 #: ../src/guestfs.pod:1895
36125 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36126 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36127 "handle, and C<flags> which in the current API you should ignore."
36131 #: ../src/guestfs.pod:1899
36133 "The remaining parameters contain the event payload (if any). Each event may "
36134 "contain a payload, which usually relates to the event class, but for future "
36135 "proofing your code should be written to handle any payload for any event "
36140 #: ../src/guestfs.pod:1904
36142 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36143 "there is no message buffer). Note that this message buffer can contain "
36144 "arbitrary 8 bit data, including NUL bytes."
36148 #: ../src/guestfs.pod:1908
36150 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
36151 "moment this is only used for progress messages."
36155 #: ../src/guestfs.pod:1911
36156 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36160 #: ../src/guestfs.pod:1913
36162 "One motivation for the generic event API was to allow GUI programs to "
36163 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
36164 "unconditionally to C<stderr>."
36168 #: ../src/guestfs.pod:1917
36170 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36171 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
36172 "messages are not events; you must capture error messages separately)."
36176 #: ../src/guestfs.pod:1922
36178 "Programs have to set up a callback to capture the classes of events of "
36183 #: ../src/guestfs.pod:1925
36187 " guestfs_set_event_callback\n"
36188 " (g, message_callback,\n"
36189 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36190 " GUESTFS_EVENT_TRACE,\n"
36191 " 0, NULL) == -1)\n"
36192 " if (eh == -1) {\n"
36193 " // handle error in the usual way\n"
36199 #: ../src/guestfs.pod:1935
36201 "The callback can then direct messages to the appropriate place. In this "
36202 "example, messages are directed to syslog:"
36206 #: ../src/guestfs.pod:1938
36210 " message_callback (\n"
36213 " uint64_t event,\n"
36214 " int event_handle,\n"
36216 " const char *buf, size_t buf_len,\n"
36217 " const uint64_t *array, size_t array_len)\n"
36219 " const int priority = LOG_USER|LOG_INFO;\n"
36220 " if (buf_len > 0)\n"
36221 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36227 #: ../src/guestfs.pod:1953
36228 msgid "CANCELLING LONG TRANSFERS"
36232 #: ../src/guestfs.pod:1955
36234 "Some operations can be cancelled by the caller while they are in progress. "
36235 "Currently only operations that involve uploading or downloading data can be "
36236 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36237 "parameters in the generator)."
36241 #: ../src/guestfs.pod:1960
36242 msgid "guestfs_user_cancel"
36246 #: ../src/guestfs.pod:1962
36249 " void guestfs_user_cancel (guestfs_h *g);\n"
36254 #: ../src/guestfs.pod:1964
36256 "C<guestfs_user_cancel> cancels the current upload or download operation."
36260 #: ../src/guestfs.pod:1967
36262 "Unlike most other libguestfs calls, this function is signal safe and thread "
36263 "safe. You can call it from a signal handler or from another thread, without "
36264 "needing to do any locking."
36268 #: ../src/guestfs.pod:1971
36270 "The transfer that was in progress (if there is one) will stop shortly "
36271 "afterwards, and will return an error. The errno (see L</"
36272 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36273 "out if the operation was cancelled or failed because of another error."
36277 #: ../src/guestfs.pod:1977
36279 "No cleanup is performed: for example, if a file was being uploaded then "
36280 "after cancellation there may be a partially uploaded file. It is the "
36281 "caller's responsibility to clean up if necessary."
36285 #: ../src/guestfs.pod:1981
36286 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36290 #: ../src/guestfs.pod:1983
36292 "In an interactive text-based program, you might call it from a C<SIGINT> "
36293 "signal handler so that pressing C<^C> cancels the current operation. (You "
36294 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36295 "receive the C<^C> signal)."
36299 #: ../src/guestfs.pod:1988
36301 "In a graphical program, when the main thread is displaying a progress bar "
36302 "with a cancel button, wire up the cancel button to call this function."
36306 #: ../src/guestfs.pod:1992
36307 msgid "PRIVATE DATA AREA"
36311 #: ../src/guestfs.pod:1994
36313 "You can attach named pieces of private data to the libguestfs handle, fetch "
36314 "them by name, and walk over them, for the lifetime of the handle. This is "
36315 "called the private data area and is only available from the C API."
36319 #: ../src/guestfs.pod:1999
36320 msgid "To attach a named piece of data, use the following call:"
36324 #: ../src/guestfs.pod:2001
36327 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36330 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36334 #: ../src/guestfs.pod:2003
36336 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36337 "pointer (which can be C<NULL>). Any previous item with the same key is "
36342 #: ../src/guestfs.pod:2007
36344 "You can use any C<key> you want, but your key should I<not> start with an "
36345 "underscore character. Keys beginning with an underscore character are "
36346 "reserved for internal libguestfs purposes (eg. for implementing language "
36347 "bindings). It is recommended that you prefix the key with some unique "
36348 "string to avoid collisions with other users."
36352 #: ../src/guestfs.pod:2013
36353 msgid "To retrieve the pointer, use:"
36357 #: ../src/guestfs.pod:2015
36360 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36363 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36367 #: ../src/guestfs.pod:2017
36369 "This function returns C<NULL> if either no data is found associated with "
36370 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36375 #: ../src/guestfs.pod:2021
36377 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36378 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
36379 "all. In particular, libguestfs does I<not> try to free the data when the "
36380 "handle is closed. If the data must be freed, then the caller must either "
36381 "free it before calling L</guestfs_close> or must set up a close callback to "
36382 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36386 #: ../src/guestfs.pod:2028
36387 msgid "To walk over all entries, use these two functions:"
36391 #: ../src/guestfs.pod:2030
36394 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36399 #: ../src/guestfs.pod:2032
36402 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36407 #: ../src/guestfs.pod:2034
36409 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36410 "not have any particular meaning -- keys are not returned in any defined "
36411 "order). A pointer to the key is returned in C<*key_rtn> and the "
36412 "corresponding data pointer is returned from the function. C<NULL> is "
36413 "returned if there are no keys stored in the handle."
36417 #: ../src/guestfs.pod:2040
36419 "C<guestfs_next_private> returns the next key, pointer pair. The return "
36420 "value of this function is also C<NULL> is there are no further entries to "
36425 #: ../src/guestfs.pod:2044
36426 msgid "Notes about walking over entries:"
36430 #: ../src/guestfs.pod:2050
36432 "You must not call C<guestfs_set_private> while walking over the entries."
36436 #: ../src/guestfs.pod:2055
36438 "The handle maintains an internal iterator which is reset when you call "
36439 "C<guestfs_first_private>. This internal iterator is invalidated when you "
36440 "call C<guestfs_set_private>."
36444 #: ../src/guestfs.pod:2061
36445 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36449 #: ../src/guestfs.pod:2063
36452 " guestfs_set_private (g, key, NULL);\n"
36457 #: ../src/guestfs.pod:2065
36458 msgid "then that C<key> is not returned when walking."
36462 #: ../src/guestfs.pod:2069
36464 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36465 "C<guestfs_next_private> or C<guestfs_set_private>."
36469 #: ../src/guestfs.pod:2075
36471 "The following example code shows how to print all keys and data pointers "
36472 "that are associated with the handle C<g>:"
36476 #: ../src/guestfs.pod:2078
36479 " const char *key;\n"
36480 " void *data = guestfs_first_private (g, &key);\n"
36481 " while (data != NULL)\n"
36483 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36484 " data = guestfs_next_private (g, &key);\n"
36490 #: ../src/guestfs.pod:2086
36492 "More commonly you are only interested in keys that begin with an application-"
36493 "specific prefix C<foo_>. Modify the loop like so:"
36497 #: ../src/guestfs.pod:2089
36500 " const char *key;\n"
36501 " void *data = guestfs_first_private (g, &key);\n"
36502 " while (data != NULL)\n"
36504 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36505 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36506 " data = guestfs_next_private (g, &key);\n"
36512 #: ../src/guestfs.pod:2098
36514 "If you need to modify keys while walking, then you have to jump back to the "
36515 "beginning of the loop. For example, to delete all keys prefixed with "
36520 #: ../src/guestfs.pod:2102
36523 " const char *key;\n"
36526 " data = guestfs_first_private (g, &key);\n"
36527 " while (data != NULL)\n"
36529 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36531 " guestfs_set_private (g, key, NULL);\n"
36532 " /* note that 'key' pointer is now invalid, and so is\n"
36533 " the internal iterator */\n"
36536 " data = guestfs_next_private (g, &key);\n"
36542 #: ../src/guestfs.pod:2118
36544 "Note that the above loop is guaranteed to terminate because the keys are "
36545 "being deleted, but other manipulations of keys within the loop might not "
36546 "terminate unless you also maintain an indication of which keys have been "
36551 #: ../src/guestfs.pod:2123 ../src/guestfs.pod:2128
36556 #: ../src/guestfs.pod:2125
36558 "<!-- old anchor for the next section --> <a name="
36559 "\"state_machine_and_low_level_event_api\"/>"
36561 "<!-- old anchor for the next section --> <a name="
36562 "\"state_machine_and_low_level_event_api\"/>"
36565 #: ../src/guestfs.pod:2130
36566 msgid "ARCHITECTURE"
36567 msgstr "АРХІТЕКТУРА"
36570 #: ../src/guestfs.pod:2132
36572 "Internally, libguestfs is implemented by running an appliance (a special "
36573 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
36574 "process of the main program."
36578 #: ../src/guestfs.pod:2136
36581 " ___________________\n"
36583 " | main program |\n"
36585 " | | child process / appliance\n"
36586 " | | __________________________\n"
36588 " +-------------------+ RPC | +-----------------+ |\n"
36589 " | libguestfs <--------------------> guestfsd | |\n"
36590 " | | | +-----------------+ |\n"
36591 " \\___________________/ | | Linux kernel | |\n"
36592 " | +--^--------------+ |\n"
36593 " \\_________|________________/\n"
36595 " _______v______\n"
36598 " | disk image |\n"
36599 " \\______________/\n"
36604 #: ../src/guestfs.pod:2156
36606 "The library, linked to the main program, creates the child process and hence "
36607 "the appliance in the L</guestfs_launch> function."
36611 #: ../src/guestfs.pod:2159
36613 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36614 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36615 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
36616 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
36617 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
36618 "attached to the qemu process which translates device access by the "
36619 "appliance's Linux kernel into accesses to the image."
36623 #: ../src/guestfs.pod:2168
36625 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
36626 "Although the disk image you are attached to might also be used by some "
36627 "virtual machine, libguestfs doesn't know or care about this. (But you will "
36628 "care if both libguestfs's qemu process and your virtual machine are trying "
36629 "to update the disk image at the same time, since these usually results in "
36630 "massive disk corruption)."
36634 #: ../src/guestfs.pod:2175
36635 msgid "STATE MACHINE"
36636 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36639 #: ../src/guestfs.pod:2177
36640 msgid "libguestfs uses a state machine to model the child process:"
36644 #: ../src/guestfs.pod:2179
36648 " guestfs_create\n"
36656 " / | \\ \\ guestfs_launch\n"
36657 " / | _\\__V______\n"
36659 " / | | LAUNCHING |\n"
36660 " / | \\___________/\n"
36662 " / | guestfs_launch\n"
36664 " ______ / __|____V\n"
36665 " / \\ ------> / \\\n"
36666 " | BUSY | | READY |\n"
36667 " \\______/ <------ \\________/\n"
36672 #: ../src/guestfs.pod:2201
36674 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36675 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36676 "(3) alternating between READY and BUSY as commands are issued to, and "
36677 "carried out by, the child process."
36681 #: ../src/guestfs.pod:2206
36683 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36684 "asynchronously at any time (eg. due to some internal error), and that causes "
36685 "the state to transition back to CONFIG."
36689 #: ../src/guestfs.pod:2210
36691 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36692 "issued when in the CONFIG state."
36696 #: ../src/guestfs.pod:2213
36698 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
36699 "L</guestfs_launch> blocks until the child process is READY to accept "
36700 "commands (or until some failure or timeout). L</guestfs_launch> internally "
36701 "moves the state from CONFIG to LAUNCHING while it is running."
36705 #: ../src/guestfs.pod:2219
36707 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36708 "state. These API calls block waiting for the command to be carried out (ie. "
36709 "the state to transition to BUSY and then back to READY). There are no non-"
36710 "blocking versions, and no way to issue more than one command per handle at "
36715 #: ../src/guestfs.pod:2225
36717 "Finally, the child process sends asynchronous messages back to the main "
36718 "program, such as kernel log messages. You can register a callback to "
36719 "receive these messages."
36723 #: ../src/guestfs.pod:2229
36728 #: ../src/guestfs.pod:2231
36729 msgid "COMMUNICATION PROTOCOL"
36733 #: ../src/guestfs.pod:2233
36735 "Don't rely on using this protocol directly. This section documents how it "
36736 "currently works, but it may change at any time."
36740 #: ../src/guestfs.pod:2236
36742 "The protocol used to talk between the library and the daemon running inside "
36743 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36744 "1014, RFC 1832, RFC 4506)."
36748 #: ../src/guestfs.pod:2240
36750 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36751 "this file is automatically generated)."
36755 #: ../src/guestfs.pod:2243
36757 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36758 "and C<FileOut> parameters, which are handled with very simple request/reply "
36759 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
36760 "parameters, which use the same request and reply messages, but they may also "
36761 "be followed by files sent using a chunked encoding."
36765 #: ../src/guestfs.pod:2250
36766 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36770 #: ../src/guestfs.pod:2252
36771 msgid "For ordinary functions, the request message is:"
36775 #: ../src/guestfs.pod:2254
36778 " total length (header + arguments,\n"
36779 " but not including the length word itself)\n"
36780 " struct guestfs_message_header (encoded as XDR)\n"
36781 " struct guestfs_<foo>_args (encoded as XDR)\n"
36786 #: ../src/guestfs.pod:2259
36788 "The total length field allows the daemon to allocate a fixed size buffer "
36789 "into which it slurps the rest of the message. As a result, the total length "
36790 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36791 "effective size of any request is limited to somewhere under this size."
36795 #: ../src/guestfs.pod:2265
36797 "Note also that many functions don't take any arguments, in which case the "
36798 "C<guestfs_I<foo>_args> is completely omitted."
36802 #: ../src/guestfs.pod:2268
36804 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36805 "receiver knows what type of args structure to expect, or none at all."
36809 #: ../src/guestfs.pod:2272
36811 "For functions that take optional arguments, the optional arguments are "
36812 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36813 "arguments. A bitmask in the header indicates which optional arguments are "
36814 "meaningful. The bitmask is also checked to see if it contains bits set "
36815 "which the daemon does not know about (eg. if more optional arguments were "
36816 "added in a later version of the library), and this causes the call to be "
36821 #: ../src/guestfs.pod:2280
36822 msgid "The reply message for ordinary functions is:"
36826 #: ../src/guestfs.pod:2282
36829 " total length (header + ret,\n"
36830 " but not including the length word itself)\n"
36831 " struct guestfs_message_header (encoded as XDR)\n"
36832 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36837 #: ../src/guestfs.pod:2287
36839 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36840 "functions that return no formal return values."
36844 #: ../src/guestfs.pod:2290
36846 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36850 #: ../src/guestfs.pod:2293
36852 "In the case of an error, a flag is set in the header, and the reply message "
36853 "is slightly changed:"
36857 #: ../src/guestfs.pod:2296
36860 " total length (header + error,\n"
36861 " but not including the length word itself)\n"
36862 " struct guestfs_message_header (encoded as XDR)\n"
36863 " struct guestfs_message_error (encoded as XDR)\n"
36868 #: ../src/guestfs.pod:2301
36870 "The C<guestfs_message_error> structure contains the error message as a "
36875 #: ../src/guestfs.pod:2304
36876 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36880 #: ../src/guestfs.pod:2306
36882 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
36883 "The normal request message is sent (see above). However this is followed by "
36884 "a sequence of file chunks."
36888 #: ../src/guestfs.pod:2310
36891 " total length (header + arguments,\n"
36892 " but not including the length word itself,\n"
36893 " and not including the chunks)\n"
36894 " struct guestfs_message_header (encoded as XDR)\n"
36895 " struct guestfs_<foo>_args (encoded as XDR)\n"
36896 " sequence of chunks for FileIn param #0\n"
36897 " sequence of chunks for FileIn param #1 etc.\n"
36902 #: ../src/guestfs.pod:2318
36903 msgid "The \"sequence of chunks\" is:"
36907 #: ../src/guestfs.pod:2320
36910 " length of chunk (not including length word itself)\n"
36911 " struct guestfs_chunk (encoded as XDR)\n"
36912 " length of chunk\n"
36913 " struct guestfs_chunk (encoded as XDR)\n"
36915 " length of chunk\n"
36916 " struct guestfs_chunk (with data.data_len == 0)\n"
36921 #: ../src/guestfs.pod:2328
36923 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
36924 "is set in the final chunk to indicate either successful completion or early "
36929 #: ../src/guestfs.pod:2332
36931 "At time of writing there are no functions that have more than one FileIn "
36932 "parameter. However this is (theoretically) supported, by sending the "
36933 "sequence of chunks for each FileIn parameter one after another (from left to "
36938 #: ../src/guestfs.pod:2337
36940 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36941 "transfer. The library does this by sending a chunk with a special flag set "
36942 "to indicate cancellation. When the daemon sees this, it cancels the whole "
36943 "RPC, does I<not> send any reply, and goes back to reading the next request."
36947 #: ../src/guestfs.pod:2343
36949 "The daemon may also cancel. It does this by writing a special word "
36950 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
36951 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36952 "cancel chunk). The special word is chosen so that even if cancellation "
36953 "happens right at the end of the transfer (after the library has finished "
36954 "writing and has started listening for the reply), the \"spurious\" cancel "
36955 "flag will not be confused with the reply message."
36959 #: ../src/guestfs.pod:2352
36961 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36962 "limit), and also files where the size is not known in advance (eg. from "
36963 "pipes or sockets). However the chunks are rather small "
36964 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36965 "to keep much in memory."
36969 #: ../src/guestfs.pod:2358
36970 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36974 #: ../src/guestfs.pod:2360
36976 "The protocol for FileOut parameters is exactly the same as for FileIn "
36977 "parameters, but with the roles of daemon and library reversed."
36981 #: ../src/guestfs.pod:2363
36984 " total length (header + ret,\n"
36985 " but not including the length word itself,\n"
36986 " and not including the chunks)\n"
36987 " struct guestfs_message_header (encoded as XDR)\n"
36988 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36989 " sequence of chunks for FileOut param #0\n"
36990 " sequence of chunks for FileOut param #1 etc.\n"
36995 #: ../src/guestfs.pod:2371
36996 msgid "INITIAL MESSAGE"
37000 #: ../src/guestfs.pod:2373
37002 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37003 "which indicates that the guest and daemon is alive. This is what L</"
37004 "guestfs_launch> waits for."
37008 #: ../src/guestfs.pod:2377
37009 msgid "PROGRESS NOTIFICATION MESSAGES"
37013 #: ../src/guestfs.pod:2379
37015 "The daemon may send progress notification messages at any time. These are "
37016 "distinguished by the normal length word being replaced by "
37017 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37021 #: ../src/guestfs.pod:2383
37023 "The library turns them into progress callbacks (see L</"
37024 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37029 #: ../src/guestfs.pod:2387
37031 "The daemon self-limits the frequency of progress messages it sends (see "
37032 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
37037 #: ../src/guestfs.pod:2391
37038 msgid "LIBGUESTFS VERSION NUMBERS"
37042 #: ../src/guestfs.pod:2393
37044 "Since April 2010, libguestfs has started to make separate development and "
37045 "stable releases, along with corresponding branches in our git repository. "
37046 "These separate releases can be identified by version number:"
37050 #: ../src/guestfs.pod:2398
37053 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
37054 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37060 " | `-------- sub-version\n"
37062 " `------ always '1' because we don't change the ABI\n"
37067 #: ../src/guestfs.pod:2409
37068 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37072 #: ../src/guestfs.pod:2411
37074 "As time passes we cherry pick fixes from the development branch and backport "
37075 "those into the stable branch, the effect being that the stable branch should "
37076 "get more stable and less buggy over time. So the stable releases are ideal "
37077 "for people who don't need new features but would just like the software to "
37082 #: ../src/guestfs.pod:2417
37083 msgid "Our criteria for backporting changes are:"
37087 #: ../src/guestfs.pod:2423
37089 "Documentation changes which don't affect any code are backported unless the "
37090 "documentation refers to a future feature which is not in stable."
37094 #: ../src/guestfs.pod:2429
37096 "Bug fixes which are not controversial, fix obvious problems, and have been "
37097 "well tested are backported."
37101 #: ../src/guestfs.pod:2434
37103 "Simple rearrangements of code which shouldn't affect how it works get "
37104 "backported. This is so that the code in the two branches doesn't get too "
37105 "far out of step, allowing us to backport future fixes more easily."
37109 #: ../src/guestfs.pod:2440
37111 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37112 "exceptional case: the new feature is required in order to implement an "
37113 "important bug fix."
37117 #: ../src/guestfs.pod:2446
37119 "A new stable branch starts when we think the new features in development are "
37120 "substantial and compelling enough over the current stable branch to warrant "
37121 "it. When that happens we create new stable and development versions 1.N.0 "
37122 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
37123 "stable at this point, but by backporting fixes from development, that branch "
37124 "will stabilize over time."
37128 #: ../src/guestfs.pod:2454
37129 msgid "EXTENDING LIBGUESTFS"
37133 #: ../src/guestfs.pod:2456
37134 msgid "ADDING A NEW API ACTION"
37138 #: ../src/guestfs.pod:2458
37140 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37141 "documentation) are generated, and this makes it easy to extend the "
37146 #: ../src/guestfs.pod:2462
37147 msgid "To add a new API action there are two changes:"
37151 #: ../src/guestfs.pod:2468
37153 "You need to add a description of the call (name, parameters, return type, "
37154 "tests, documentation) to C<generator/generator_actions.ml>."
37158 #: ../src/guestfs.pod:2471
37160 "There are two sorts of API action, depending on whether the call goes "
37161 "through to the daemon in the appliance, or is serviced entirely by the "
37162 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
37163 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
37164 "an example of the latter, since a trace flag is maintained in the handle and "
37165 "all tracing is done on the library side."
37169 #: ../src/guestfs.pod:2479
37171 "Most new actions are of the first type, and get added to the "
37172 "C<daemon_functions> list. Each function has a unique procedure number used "
37173 "in the RPC protocol which is assigned to that action when we publish "
37174 "libguestfs and cannot be reused. Take the latest procedure number and "
37179 #: ../src/guestfs.pod:2485
37181 "For library-only actions of the second type, add to the "
37182 "C<non_daemon_functions> list. Since these functions are serviced by the "
37183 "library and do not travel over the RPC mechanism to the daemon, these "
37184 "functions do not need a procedure number, and so the procedure number is set "
37189 #: ../src/guestfs.pod:2493
37190 msgid "Implement the action (in C):"
37194 #: ../src/guestfs.pod:2495
37196 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37197 "C<daemon/> directory."
37201 #: ../src/guestfs.pod:2498
37203 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37204 "(note: double underscore) in the C<src/> directory."
37208 #: ../src/guestfs.pod:2501
37209 msgid "In either case, use another function as an example of what to do."
37213 #: ../src/guestfs.pod:2505
37214 msgid "After making these changes, use C<make> to compile."
37218 #: ../src/guestfs.pod:2507
37220 "Note that you don't need to implement the RPC, language bindings, manual "
37221 "pages or anything else. It's all automatically generated from the OCaml "
37226 #: ../src/guestfs.pod:2511
37227 msgid "ADDING TESTS FOR AN API ACTION"
37231 #: ../src/guestfs.pod:2513
37233 "You can supply zero or as many tests as you want per API call. The tests "
37234 "can either be added as part of the API description (C<generator/"
37235 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37236 "into C<regressions/>. Note that adding a script to C<regressions/> is "
37237 "slower, so if possible use the first method."
37241 #: ../src/guestfs.pod:2519
37243 "The following describes the test environment used when you add an API test "
37244 "in C<generator_actions.ml>."
37248 #: ../src/guestfs.pod:2522
37249 msgid "The test environment has 4 block devices:"
37253 #: ../src/guestfs.pod:2526
37254 msgid "C</dev/sda> 500MB"
37255 msgstr "C</dev/sda> 500 МБ"
37258 #: ../src/guestfs.pod:2528
37259 msgid "General block device for testing."
37263 #: ../src/guestfs.pod:2530
37264 msgid "C</dev/sdb> 50MB"
37265 msgstr "C</dev/sdb> 50 МБ"
37268 #: ../src/guestfs.pod:2532
37270 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37275 #: ../src/guestfs.pod:2535
37276 msgid "C</dev/sdc> 10MB"
37277 msgstr "C</dev/sdc> 10 МБ"
37280 #: ../src/guestfs.pod:2537
37281 msgid "Used in a few tests where two block devices are needed."
37285 #: ../src/guestfs.pod:2539
37286 msgid "C</dev/sdd>"
37287 msgstr "C</dev/sdd>"
37290 #: ../src/guestfs.pod:2541
37291 msgid "ISO with fixed content (see C<images/test.iso>)."
37295 #: ../src/guestfs.pod:2545
37297 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37298 "appliance and block devices are reused between tests. So don't try testing "
37299 "L</guestfs_kill_subprocess> :-x"
37303 #: ../src/guestfs.pod:2549
37305 "Each test starts with an initial scenario, selected using one of the "
37306 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
37307 "initialize the disks mentioned above in a particular way as documented in "
37308 "C<generator_types.ml>. You should not assume anything about the previous "
37309 "contents of other disks that are not initialized."
37313 #: ../src/guestfs.pod:2555
37315 "You can add a prerequisite clause to any individual test. This is a run-"
37316 "time check, which, if it fails, causes the test to be skipped. Useful if "
37317 "testing a command which might not work on all variations of libguestfs "
37318 "builds. A test that has prerequisite of C<Always> means to run "
37323 #: ../src/guestfs.pod:2561
37325 "In addition, packagers can skip individual tests by setting environment "
37326 "variables before running C<make check>."
37330 #: ../src/guestfs.pod:2564
37333 " SKIP_TEST_<CMD>_<NUM>=1\n"
37338 #: ../src/guestfs.pod:2566
37339 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37343 #: ../src/guestfs.pod:2568
37348 #: ../src/guestfs.pod:2570
37351 " SKIP_TEST_<CMD>=1\n"
37356 #: ../src/guestfs.pod:2572
37357 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37361 #: ../src/guestfs.pod:2574
37362 msgid "Packagers can run only certain tests by setting for example:"
37366 #: ../src/guestfs.pod:2576
37369 " TEST_ONLY=\"vfs_type zerofree\"\n"
37374 #: ../src/guestfs.pod:2578
37376 "See C<capitests/tests.c> for more details of how these environment variables "
37381 #: ../src/guestfs.pod:2581
37382 msgid "DEBUGGING NEW API ACTIONS"
37386 #: ../src/guestfs.pod:2583
37387 msgid "Test new actions work before submitting them."
37391 #: ../src/guestfs.pod:2585
37392 msgid "You can use guestfish to try out new commands."
37396 #: ../src/guestfs.pod:2587
37398 "Debugging the daemon is a problem because it runs inside a minimal "
37399 "environment. However you can fprintf messages in the daemon to stderr, and "
37400 "they will show up if you use C<guestfish -v>."
37404 #: ../src/guestfs.pod:2591
37405 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37409 #: ../src/guestfs.pod:2593
37411 "Our C source code generally adheres to some basic code-formatting "
37412 "conventions. The existing code base is not totally consistent on this "
37413 "front, but we do prefer that contributed code be formatted similarly. In "
37414 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37415 "indentation level, and other than that, follow the K&R style."
37419 #: ../src/guestfs.pod:2599
37421 "If you use Emacs, add the following to one of one of your start-up files (e."
37422 "g., ~/.emacs), to help ensure that you get indentation right:"
37426 #: ../src/guestfs.pod:2602
37429 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37430 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37431 " (add-hook 'find-file-hook\n"
37432 " '(lambda () (if (and buffer-file-name\n"
37433 " (string-match \"/libguestfs\\\\>\"\n"
37434 " (buffer-file-name))\n"
37435 " (not (string-equal mode-name \"Change Log\"))\n"
37436 " (not (string-equal mode-name \"Makefile\")))\n"
37437 " (setq indent-tabs-mode nil))))\n"
37442 #: ../src/guestfs.pod:2612
37445 " ;;; When editing C sources in libguestfs, use this style.\n"
37446 " (defun libguestfs-c-mode ()\n"
37447 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
37449 " (c-set-style \"K&R\")\n"
37450 " (setq c-indent-level 2)\n"
37451 " (setq c-basic-offset 2))\n"
37452 " (add-hook 'c-mode-hook\n"
37453 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37454 " (buffer-file-name))\n"
37455 " (libguestfs-c-mode))))\n"
37460 #: ../src/guestfs.pod:2624
37461 msgid "Enable warnings when compiling (and fix any problems this finds):"
37465 #: ../src/guestfs.pod:2627
37468 " ./configure --enable-gcc-warnings\n"
37471 " ./configure --enable-gcc-warnings\n"
37475 #: ../src/guestfs.pod:2629
37476 msgid "Useful targets are:"
37480 #: ../src/guestfs.pod:2631
37483 " make syntax-check # checks the syntax of the C code\n"
37484 " make check # runs the test suite\n"
37489 #: ../src/guestfs.pod:2634
37490 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37494 #: ../src/guestfs.pod:2636
37496 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37497 "which are used to do shell quoting."
37501 #: ../src/guestfs.pod:2641
37506 #: ../src/guestfs.pod:2643
37508 "Simple shell quoted string. Any spaces or other shell characters are "
37513 #: ../src/guestfs.pod:2646
37518 #: ../src/guestfs.pod:2648
37520 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37525 #: ../src/guestfs.pod:2655
37528 " asprintf (&cmd, \"cat %R\", path);\n"
37533 #: ../src/guestfs.pod:2657
37534 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37538 #: ../src/guestfs.pod:2659
37540 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37541 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
37542 "they are not passed via the shell (instead, straight to exec). You probably "
37543 "want to use the C<sysroot_path()> function however."
37547 #: ../src/guestfs.pod:2665
37548 msgid "SUBMITTING YOUR NEW API ACTIONS"
37552 #: ../src/guestfs.pod:2667
37554 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37555 "libguestfs> and CC to L<rjones@redhat.com>."
37559 #: ../src/guestfs.pod:2671
37560 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37564 #: ../src/guestfs.pod:2673
37565 msgid "We support i18n (gettext anyhow) in the library."
37569 #: ../src/guestfs.pod:2675
37571 "However many messages come from the daemon, and we don't translate those at "
37572 "the moment. One reason is that the appliance generally has all locale files "
37573 "removed from it, because they take up a lot of space. So we'd have to readd "
37574 "some of those, as well as copying our PO files into the appliance."
37578 #: ../src/guestfs.pod:2681
37580 "Debugging messages are never translated, since they are intended for the "
37585 #: ../src/guestfs.pod:2684
37586 msgid "SOURCE CODE SUBDIRECTORIES"
37590 #: ../src/guestfs.pod:2690
37591 msgid "The libguestfs appliance, build scripts and so on."
37595 #: ../src/guestfs.pod:2692
37596 msgid "C<capitests>"
37597 msgstr "C<capitests>"
37600 #: ../src/guestfs.pod:2694
37601 msgid "Automated tests of the C API."
37605 #: ../src/guestfs.pod:2696
37610 #: ../src/guestfs.pod:2698
37612 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37617 #: ../src/guestfs.pod:2701
37622 #: ../src/guestfs.pod:2703
37624 "Safety and liveness tests of components that libguestfs depends upon (not of "
37625 "libguestfs itself). Mainly this is for qemu and the kernel."
37629 #: ../src/guestfs.pod:2706
37631 msgstr "C<contrib>"
37634 #: ../src/guestfs.pod:2708
37635 msgid "Outside contributions, experimental parts."
37639 #: ../src/guestfs.pod:2710
37644 #: ../src/guestfs.pod:2712
37646 "The daemon that runs inside the libguestfs appliance and carries out actions."
37650 #: ../src/guestfs.pod:2715
37655 #: ../src/guestfs.pod:2717
37656 msgid "L<virt-df(1)> command and documentation."
37660 #: ../src/guestfs.pod:2719
37665 #: ../src/guestfs.pod:2721
37666 msgid "L<virt-edit(1)> command and documentation."
37670 #: ../src/guestfs.pod:2723
37671 msgid "C<examples>"
37672 msgstr "C<examples>"
37675 #: ../src/guestfs.pod:2725
37676 msgid "C API example code."
37677 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37680 #: ../src/guestfs.pod:2727
37685 #: ../src/guestfs.pod:2729
37687 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37688 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37689 "L<virt-tar-out(1)>."
37693 #: ../src/guestfs.pod:2733
37698 #: ../src/guestfs.pod:2735
37700 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37704 #: ../src/guestfs.pod:2737
37705 msgid "C<generator>"
37706 msgstr "C<generator>"
37709 #: ../src/guestfs.pod:2739
37711 "The crucially important generator, used to automatically generate large "
37712 "amounts of boilerplate C code for things like RPC and bindings."
37716 #: ../src/guestfs.pod:2742
37721 #: ../src/guestfs.pod:2744
37722 msgid "Files used by the test suite."
37726 #: ../src/guestfs.pod:2746
37727 msgid "Some \"phony\" guest images which we test against."
37731 #: ../src/guestfs.pod:2748
37732 msgid "C<inspector>"
37733 msgstr "C<inspector>"
37736 #: ../src/guestfs.pod:2750
37737 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37741 #: ../src/guestfs.pod:2752
37746 #: ../src/guestfs.pod:2754
37747 msgid "Logo used on the website. The fish is called Arthur by the way."
37751 #: ../src/guestfs.pod:2756
37756 #: ../src/guestfs.pod:2758
37757 msgid "M4 macros used by autoconf."
37761 #: ../src/guestfs.pod:2760
37766 #: ../src/guestfs.pod:2762
37767 msgid "Translations of simple gettext strings."
37768 msgstr "Переклади простих рядків gettext."
37771 #: ../src/guestfs.pod:2764
37773 msgstr "C<po-docs>"
37776 #: ../src/guestfs.pod:2766
37778 "The build infrastructure and PO files for translations of manpages and POD "
37779 "files. Eventually this will be combined with the C<po> directory, but that "
37780 "is rather complicated."
37784 #: ../src/guestfs.pod:2770
37785 msgid "C<regressions>"
37786 msgstr "C<regressions>"
37789 #: ../src/guestfs.pod:2772
37790 msgid "Regression tests."
37791 msgstr "Тести на регресії."
37794 #: ../src/guestfs.pod:2774
37799 #: ../src/guestfs.pod:2776
37800 msgid "L<virt-rescue(1)> command and documentation."
37804 #: ../src/guestfs.pod:2778
37809 #: ../src/guestfs.pod:2780
37810 msgid "Source code to the C library."
37814 #: ../src/guestfs.pod:2782
37819 #: ../src/guestfs.pod:2784
37820 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37824 #: ../src/guestfs.pod:2786
37825 msgid "C<test-tool>"
37826 msgstr "C<test-tool>"
37829 #: ../src/guestfs.pod:2788
37831 "Test tool for end users to test if their qemu/kernel combination will work "
37836 #: ../src/guestfs.pod:2791
37841 #: ../src/guestfs.pod:2793
37843 msgstr "C<haskell>"
37846 #: ../src/guestfs.pod:2795
37851 #: ../src/guestfs.pod:2797
37856 #: ../src/guestfs.pod:2799
37861 #: ../src/guestfs.pod:2801
37866 #: ../src/guestfs.pod:2803
37871 #: ../src/guestfs.pod:2805
37876 #: ../src/guestfs.pod:2807
37877 msgid "Language bindings."
37878 msgstr "Прив’язки до мов програмування."
37881 #: ../src/guestfs.pod:2811
37882 msgid "MAKING A STABLE RELEASE"
37886 #: ../src/guestfs.pod:2813
37888 "When we make a stable release, there are several steps documented here. See "
37889 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37894 #: ../src/guestfs.pod:2821
37896 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37900 #: ../src/guestfs.pod:2826
37901 msgid "Finalize RELEASE-NOTES."
37905 #: ../src/guestfs.pod:2830
37906 msgid "Update ROADMAP."
37910 #: ../src/guestfs.pod:2834
37911 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37915 #: ../src/guestfs.pod:2838
37916 msgid "Push and pull from Transifex."
37920 #: ../src/guestfs.pod:2840
37925 #: ../src/guestfs.pod:2842
37933 #: ../src/guestfs.pod:2844
37934 msgid "to push the latest POT files to Transifex. Then run:"
37938 #: ../src/guestfs.pod:2846
37946 #: ../src/guestfs.pod:2848
37947 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37951 #: ../src/guestfs.pod:2852
37953 "Create new stable and development directories under L<http://libguestfs.org/"
37958 #: ../src/guestfs.pod:2857
37959 msgid "Create the branch in git:"
37963 #: ../src/guestfs.pod:2859
37966 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37967 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37968 " git branch stable-1.XX\n"
37969 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37974 #: ../src/guestfs.pod:2866
37979 #: ../src/guestfs.pod:2868
37980 msgid "PROTOCOL LIMITS"
37981 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
37984 #: ../src/guestfs.pod:2870
37986 "Internally libguestfs uses a message-based protocol to pass API calls and "
37987 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37988 "plenty more detail about this). The maximum message size used by the "
37989 "protocol is slightly less than 4 MB. For some API calls you may need to be "
37990 "aware of this limit. The API calls which may be affected are individually "
37991 "documented, with a link back to this section of the documentation."
37995 #: ../src/guestfs.pod:2878
37997 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37998 "a simple string. Because this string is at some point internally encoded as "
37999 "a message, the maximum size that it can return is slightly under 4 MB. If "
38000 "the requested file is larger than this then you will get an error."
38004 #: ../src/guestfs.pod:2884
38006 "In order to transfer large files into and out of the guest filesystem, you "
38007 "need to use particular calls that support this. The sections L</UPLOADING> "
38008 "and L</DOWNLOADING> document how to do this."
38012 #: ../src/guestfs.pod:2888
38014 "You might also consider mounting the disk image using our FUSE filesystem "
38015 "support (L<guestmount(1)>)."
38019 #: ../src/guestfs.pod:2891
38020 msgid "MAXIMUM NUMBER OF DISKS"
38024 #: ../src/guestfs.pod:2893
38025 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38029 #: ../src/guestfs.pod:2896
38031 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38032 "slots. However febootstrap only understands disks with names C</dev/vda> "
38033 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38038 #: ../src/guestfs.pod:2901
38040 "We are working to substantially raise this limit in future versions but it "
38041 "requires complex changes to qemu."
38045 #: ../src/guestfs.pod:2904
38047 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38048 "disks (add and remove disks after calling L</guestfs_launch>). This also "
38049 "requires changes to qemu."
38053 #: ../src/guestfs.pod:2908
38054 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38058 #: ../src/guestfs.pod:2910
38059 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38063 #: ../src/guestfs.pod:2912
38065 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38066 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38070 #: ../src/guestfs.pod:2915
38072 "If you attach a disk with more than 15 partitions, the extra partitions are "
38073 "ignored by libguestfs."
38077 #: ../src/guestfs.pod:2918
38078 msgid "MAXIMUM SIZE OF A DISK"
38082 #: ../src/guestfs.pod:2920
38083 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38087 #: ../src/guestfs.pod:2922
38089 "We have tested block devices up to 1 exabyte (2**60 or "
38090 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38095 #: ../src/guestfs.pod:2926
38097 "Although libguestfs probably does not impose any limit, the underlying host "
38098 "storage will. If you store disk images on a host ext4 filesystem, then the "
38099 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38100 "TB). If you store disk images as host logical volumes then you are limited "
38101 "by the maximum size of an LV."
38105 #: ../src/guestfs.pod:2932
38107 "For the hugest disk image files, we recommend using XFS on the host for "
38112 #: ../src/guestfs.pod:2935
38113 msgid "MAXIMUM SIZE OF A PARTITION"
38117 #: ../src/guestfs.pod:2937
38119 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38120 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
38121 "address a partition located beyond 2 TB on the disk."
38125 #: ../src/guestfs.pod:2941
38127 "It is recommended that you use GPT partitions on disks which are larger than "
38128 "this size. GPT uses 64 bit sector numbers and so can address partitions "
38129 "which are theoretically larger than the largest disk we could support."
38133 #: ../src/guestfs.pod:2946
38134 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38138 #: ../src/guestfs.pod:2948
38140 "This depends on the filesystem type. libguestfs itself does not impose any "
38141 "known limit. Consult Wikipedia or the filesystem documentation to find out "
38142 "what these limits are."
38146 #: ../src/guestfs.pod:2952
38147 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38151 #: ../src/guestfs.pod:2954
38153 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38154 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38155 "uploads and downloads."
38159 #: ../src/guestfs.pod:2958
38160 msgid "INSPECTION LIMITS"
38164 #: ../src/guestfs.pod:2960
38166 "The inspection code has several arbitrary limits on things like the size of "
38167 "Windows Registry hive it will read, and the length of product name. These "
38168 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38169 "memory and disk space on the host, and should not be reached in practice. "
38170 "See the source code for more information."
38174 #: ../src/guestfs.pod:2986
38176 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
38177 "effect as calling C<guestfs_set_verbose (g, 1)>."
38181 #: ../src/guestfs.pod:2998
38183 "Set the path that libguestfs uses to search for a supermin appliance. See "
38184 "the discussion of paths in section L</PATH> above."
38188 #: ../src/guestfs.pod:3007
38189 msgid "See also L</QEMU WRAPPERS> above."
38193 #: ../src/guestfs.pod:3011
38195 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
38196 "effect as calling C<guestfs_set_trace (g, 1)>."
38200 #: ../src/guestfs.pod:3029
38202 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38203 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38204 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38205 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38206 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38207 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38208 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38209 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38213 #: ../src/guestfs.pod:3059
38215 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38216 "(8)>, L<disktype(1)>."
38220 #: ../src/guestfs.pod:3066 ../tools/virt-make-fs.pl:553
38221 #: ../tools/virt-win-reg.pl:761
38226 #: ../src/guestfs.pod:3068
38227 msgid "To get a list of bugs against libguestfs use this link:"
38229 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38233 #: ../src/guestfs.pod:3070
38235 "L<https://bugzilla.redhat.com/buglist.cgi?"
38236 "component=libguestfs&product=Virtualization+Tools>"
38238 "L<https://bugzilla.redhat.com/buglist.cgi?"
38239 "component=libguestfs&product=Virtualization+Tools>"
38242 #: ../src/guestfs.pod:3072
38243 msgid "To report a new bug against libguestfs use this link:"
38244 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38247 #: ../src/guestfs.pod:3074
38249 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38250 "component=libguestfs&product=Virtualization+Tools>"
38252 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38253 "component=libguestfs&product=Virtualization+Tools>"
38256 #: ../src/guestfs.pod:3076
38257 msgid "When reporting a bug, please check:"
38261 #: ../src/guestfs.pod:3082
38262 msgid "That the bug hasn't been reported already."
38266 #: ../src/guestfs.pod:3086
38267 msgid "That you are testing a recent version."
38271 #: ../src/guestfs.pod:3090
38272 msgid "Describe the bug accurately, and give a way to reproduce it."
38276 #: ../src/guestfs.pod:3094
38278 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38283 #: ../test-tool/libguestfs-test-tool.pod:5
38284 msgid "libguestfs-test-tool - End user tests for libguestfs"
38288 #: ../test-tool/libguestfs-test-tool.pod:9
38291 " libguestfs-test-tool [--options]\n"
38296 #: ../test-tool/libguestfs-test-tool.pod:13
38298 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38299 "and developers, to allow them to check basic libguestfs functionality is "
38300 "working. This is needed because libguestfs occasionally breaks for reasons "
38301 "beyond our control: usually because of changes in the underlying qemu or "
38302 "kernel packages, or the host environment."
38306 #: ../test-tool/libguestfs-test-tool.pod:20
38307 msgid "If you suspect a problem in libguestfs, then just run:"
38311 #: ../test-tool/libguestfs-test-tool.pod:22
38314 " libguestfs-test-tool\n"
38319 #: ../test-tool/libguestfs-test-tool.pod:24
38320 msgid "It will print lots of diagnostic messages."
38324 #: ../test-tool/libguestfs-test-tool.pod:26
38325 msgid "If it runs to completion successfully, you will see this near the end:"
38329 #: ../test-tool/libguestfs-test-tool.pod:28
38332 " ===== TEST FINISHED OK =====\n"
38337 #: ../test-tool/libguestfs-test-tool.pod:30
38338 msgid "and the test tool will exit with code 0."
38342 #: ../test-tool/libguestfs-test-tool.pod:32
38344 "If it fails (and/or exits with non-zero error code), please paste the "
38345 "B<complete, unedited> output of the test tool into a bug report. More "
38346 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38351 #: ../test-tool/libguestfs-test-tool.pod:41
38356 #: ../test-tool/libguestfs-test-tool.pod:43
38357 msgid "Display short usage information and exit."
38361 #: ../test-tool/libguestfs-test-tool.pod:45
38362 msgid "I<--qemu qemu_binary>"
38363 msgstr "I<--qemu виконуваний_файл_qemu>"
38366 #: ../test-tool/libguestfs-test-tool.pod:47
38368 "If you have downloaded another qemu binary, point this option at the full "
38369 "path of the binary to try it."
38373 #: ../test-tool/libguestfs-test-tool.pod:50
38374 msgid "I<--qemudir qemu_source_dir>"
38378 #: ../test-tool/libguestfs-test-tool.pod:52
38380 "If you have compiled qemu from source, point this option at the source "
38381 "directory to try it."
38385 #: ../test-tool/libguestfs-test-tool.pod:55
38386 msgid "I<--timeout N>"
38387 msgstr "I<--timeout N>"
38390 #: ../test-tool/libguestfs-test-tool.pod:57
38392 "Set the launch timeout to C<N> seconds. The default is 120 seconds which "
38393 "does not usually need to be adjusted unless your machine is very slow."
38397 #: ../test-tool/libguestfs-test-tool.pod:63
38398 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38402 #: ../test-tool/libguestfs-test-tool.pod:65
38404 "If you have compiled another version of qemu from source and would like to "
38405 "try that, then you can use the I<--qemudir> option to point to the qemu "
38406 "source directory."
38410 #: ../test-tool/libguestfs-test-tool.pod:69
38412 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38413 "option to point to the binary."
38417 #: ../test-tool/libguestfs-test-tool.pod:72
38419 "When using an alternate qemu with libguestfs, usually you would need to "
38420 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38421 ">). libguestfs-test-tool writes a temporary qemu wrapper script when you "
38422 "use either of the I<--qemudir> or I<--qemu> options."
38426 #: ../test-tool/libguestfs-test-tool.pod:79
38428 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38429 "I<1> if there was an error."
38433 #: ../test-tool/libguestfs-test-tool.pod:84
38435 "For the full list of environment variables which may affect libguestfs, "
38436 "please see the L<guestfs(3)> manual page."
38440 #: ../test-tool/libguestfs-test-tool.pod:89
38441 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38445 #: ../tools/virt-list-filesystems.pl:32
38447 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38451 #: ../tools/virt-list-filesystems.pl:36
38454 " virt-list-filesystems [--options] domname\n"
38459 #: ../tools/virt-list-filesystems.pl:38
38462 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38467 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38469 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
38474 #: ../tools/virt-list-filesystems.pl:45
38476 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38477 "are contained in a virtual machine or disk image."
38481 #: ../tools/virt-list-filesystems.pl:49
38483 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38484 "functionality. For more complex cases you should look at the L<guestfish(1)"
38489 #: ../tools/virt-list-filesystems.pl:112
38491 "With this option, C<virt-list-filesystems> displays the type of each "
38492 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38496 #: ../tools/virt-list-filesystems.pl:119
38498 #| msgid "B<-a image>"
38500 msgstr "B<-a образ>"
38503 #: ../tools/virt-list-filesystems.pl:123
38505 "Normally we only show mountable filesystems. If this option is given then "
38506 "swap devices are shown too."
38510 #: ../tools/virt-list-filesystems.pl:197
38512 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38513 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38514 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38516 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38517 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38518 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38521 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38522 msgid "Copyright (C) 2009 Red Hat Inc."
38523 msgstr "© Red Hat Inc., 2009"
38526 #: ../tools/virt-list-partitions.pl:32
38528 "virt-list-partitions - List partitions in a virtual machine or disk image"
38532 #: ../tools/virt-list-partitions.pl:36
38535 " virt-list-partitions [--options] domname\n"
38538 " virt-list-partitions [--параметри] назва_домену\n"
38542 #: ../tools/virt-list-partitions.pl:38
38545 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38548 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38552 #: ../tools/virt-list-partitions.pl:45
38554 "C<virt-list-partitions> is a command line tool to list the partitions that "
38555 "are contained in a virtual machine or disk image. It is mainly useful as a "
38556 "first step to using L<virt-resize(1)>."
38560 #: ../tools/virt-list-partitions.pl:50
38562 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38563 "functionality. For more complex cases you should look at the L<guestfish(1)"
38568 #: ../tools/virt-list-partitions.pl:113
38569 msgid "Show sizes in human-readable form (eg. \"1G\")."
38573 #: ../tools/virt-list-partitions.pl:123
38575 "With this option, C<virt-list-partitions> displays the type and size of each "
38576 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38580 #: ../tools/virt-list-partitions.pl:130
38585 #: ../tools/virt-list-partitions.pl:132
38587 #| msgid "B<-t> | B<--total>"
38589 msgstr "B<-t> | B<--total>"
38592 #: ../tools/virt-list-partitions.pl:134
38594 "Display the total size of each block device (as a separate row or rows)."
38598 #: ../tools/virt-list-partitions.pl:267
38600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38601 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38602 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38604 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38605 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38606 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38609 #: ../tools/virt-list-partitions.pl:283
38610 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38611 msgstr "© Red Hat Inc., 2009–2010"
38614 #: ../tools/virt-make-fs.pl:37
38615 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38619 #: ../tools/virt-make-fs.pl:41
38622 " virt-make-fs [--options] input.tar output.img\n"
38627 #: ../tools/virt-make-fs.pl:43
38630 " virt-make-fs [--options] input.tar.gz output.img\n"
38635 #: ../tools/virt-make-fs.pl:45
38638 " virt-make-fs [--options] directory output.img\n"
38643 #: ../tools/virt-make-fs.pl:49
38645 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38646 "archive or some files in a directory. It is similar to tools like L<mkisofs"
38647 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
38648 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38649 "you want to attach these filesystems to existing virtual machines (eg. to "
38650 "import large amounts of read-only data to a VM)."
38654 #: ../tools/virt-make-fs.pl:57
38655 msgid "Basic usage is:"
38659 #: ../tools/virt-make-fs.pl:59
38662 " virt-make-fs input output\n"
38667 #: ../tools/virt-make-fs.pl:61
38669 "where C<input> is either a directory containing files that you want to add, "
38670 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38671 "C<output> is a disk image. The input type is detected automatically. The "
38672 "output disk image defaults to a raw ext2 image unless you specify extra "
38673 "flags (see L</OPTIONS> below)."
38677 #: ../tools/virt-make-fs.pl:67
38678 msgid "EXTRA SPACE"
38682 #: ../tools/virt-make-fs.pl:69
38684 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38685 "the files that it contains, but might have extra space. Depending on how "
38686 "you are going to use the output, you might think this extra space is wasted "
38687 "and want to minimize it, or you might want to leave space so that more files "
38688 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
38689 "but you can use the I<--size> flag to leave space in the filesystem if you "
38694 #: ../tools/virt-make-fs.pl:77
38696 "An alternative way to leave extra space but not make the output image any "
38697 "bigger is to use an alternative disk image format (instead of the default "
38698 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38699 "image format (check your hypervisor supports this before using it). This "
38700 "allows you to choose a large I<--size> but the extra space won't actually be "
38701 "allocated in the image until you try to store something in it."
38705 #: ../tools/virt-make-fs.pl:85
38707 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38708 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38709 "to build another image from scratch."
38713 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38714 #: ../tools/virt-make-fs.pl:142
38719 #: ../tools/virt-make-fs.pl:91
38722 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38725 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38729 #: ../tools/virt-make-fs.pl:93
38730 msgid "FILESYSTEM TYPE"
38731 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38734 #: ../tools/virt-make-fs.pl:95
38736 "The default filesystem type is C<ext2>. Just about any filesystem type that "
38737 "libguestfs supports can be used (but I<not> read-only formats like "
38738 "ISO9660). Here are some of the more common choices:"
38742 #: ../tools/virt-make-fs.pl:101
38747 #: ../tools/virt-make-fs.pl:103
38749 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
38750 "you are not going to use the filesystem in a way that requires the journal, "
38751 "then this is just wasted overhead."
38755 #: ../tools/virt-make-fs.pl:107
38756 msgid "I<ntfs> or I<vfat>"
38757 msgstr "I<ntfs> або I<vfat>"
38760 #: ../tools/virt-make-fs.pl:109
38761 msgid "Useful if exporting data to a Windows guest."
38765 #: ../tools/virt-make-fs.pl:111
38767 "I<Note for vfat>: The tar archive or local directory must only contain files "
38768 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
38769 "program running within libguestfs is unable to change the ownership of non-"
38770 "root files, since vfat itself does not support this."
38774 #: ../tools/virt-make-fs.pl:116
38779 #: ../tools/virt-make-fs.pl:118
38781 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38782 "total filesystem size."
38786 #: ../tools/virt-make-fs.pl:125
38789 " virt-make-fs --type=minix input minixfs.img\n"
38794 #: ../tools/virt-make-fs.pl:127
38795 msgid "TO PARTITION OR NOT TO PARTITION"
38799 #: ../tools/virt-make-fs.pl:129
38800 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38804 #: ../tools/virt-make-fs.pl:131
38806 "Adding a partition can make the disk image more compatible with certain "
38807 "virtualized operating systems which don't expect to see a filesystem "
38808 "directly located on a block device (Linux doesn't care and will happily "
38809 "handle both types)."
38813 #: ../tools/virt-make-fs.pl:136
38815 "On the other hand, if you have a partition table then the output image is no "
38816 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
38817 "directly on a partitioned disk image. (However libguestfs tools such as "
38818 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38822 #: ../tools/virt-make-fs.pl:144
38823 msgid "Add an MBR partition:"
38827 #: ../tools/virt-make-fs.pl:146
38830 " virt-make-fs --partition -- input disk.img\n"
38835 #: ../tools/virt-make-fs.pl:148
38837 "If the output disk image could be terabyte-sized or larger, it's better to "
38838 "use an EFI/GPT-compatible partition table:"
38842 #: ../tools/virt-make-fs.pl:151
38845 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38850 #: ../tools/virt-make-fs.pl:179
38851 msgid "Enable debugging information."
38852 msgstr "Увімкнути виведення діагностичних даних."
38855 #: ../tools/virt-make-fs.pl:185
38856 msgid "B<--size=E<lt>NE<gt>>"
38857 msgstr "B<--size=E<lt>NE<gt>>"
38860 #: ../tools/virt-make-fs.pl:187
38861 msgid "B<--size=+E<lt>NE<gt>>"
38862 msgstr "B<--size=+E<lt>NE<gt>>"
38865 #: ../tools/virt-make-fs.pl:189
38866 msgid "B<-s E<lt>NE<gt>>"
38867 msgstr "B<-s E<lt>NE<gt>>"
38870 #: ../tools/virt-make-fs.pl:191
38871 msgid "B<-s +E<lt>NE<gt>>"
38872 msgstr "B<-s +E<lt>NE<gt>>"
38875 #: ../tools/virt-make-fs.pl:193
38877 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38881 #: ../tools/virt-make-fs.pl:196
38883 "If this option is I<not> given, then the output image will be just large "
38884 "enough to contain all the files, with not much wasted space."
38888 #: ../tools/virt-make-fs.pl:199
38890 "To choose a fixed size output disk, specify an absolute number followed by b/"
38891 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38892 "Petabytes or Exabytes. This must be large enough to contain all the input "
38893 "files, else you will get an error."
38897 #: ../tools/virt-make-fs.pl:204
38899 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38900 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38901 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
38902 "the input files, and (approximately) an extra 200 MB free space."
38906 #: ../tools/virt-make-fs.pl:210
38908 "Note that virt-make-fs estimates free space, and therefore will not produce "
38909 "filesystems containing precisely the free space requested. (It is much more "
38910 "expensive and time-consuming to produce a filesystem which has precisely the "
38911 "desired free space)."
38915 #: ../tools/virt-make-fs.pl:219
38916 msgid "B<--format=E<lt>fmtE<gt>>"
38920 #: ../tools/virt-make-fs.pl:221
38921 msgid "B<-F E<lt>fmtE<gt>>"
38925 #: ../tools/virt-make-fs.pl:223
38926 msgid "Choose the output disk image format."
38930 #: ../tools/virt-make-fs.pl:225
38931 msgid "The default is C<raw> (raw disk image)."
38935 #: ../tools/virt-make-fs.pl:227
38937 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
38938 "that would really make sense here is C<qcow2>."
38942 #: ../tools/virt-make-fs.pl:234
38943 msgid "B<--type=E<lt>fsE<gt>>"
38947 #: ../tools/virt-make-fs.pl:236
38948 msgid "B<-t E<lt>fsE<gt>>"
38952 #: ../tools/virt-make-fs.pl:238
38953 msgid "Choose the output filesystem type."
38957 #: ../tools/virt-make-fs.pl:240
38958 msgid "The default is C<ext2>."
38959 msgstr "Типовим значенням є C<ext2>."
38962 #: ../tools/virt-make-fs.pl:242
38964 "Any filesystem which is supported read-write by libguestfs can be used here."
38968 #: ../tools/virt-make-fs.pl:249
38969 msgid "B<--partition>"
38970 msgstr "B<--partition>"
38973 #: ../tools/virt-make-fs.pl:251
38974 msgid "B<--partition=E<lt>parttypeE<gt>>"
38978 #: ../tools/virt-make-fs.pl:253
38980 "If specified, this flag adds an MBR partition table to the output disk image."
38984 #: ../tools/virt-make-fs.pl:256
38986 "You can change the partition table type, eg. I<--partition=gpt> for large "
38991 #: ../tools/virt-make-fs.pl:259
38993 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38994 "might consider the next parameter to be the partition type. For example:"
38998 #: ../tools/virt-make-fs.pl:263
39001 " virt-make-fs --partition input.tar ...\n"
39006 #: ../tools/virt-make-fs.pl:265
39008 "would cause virt-make-fs to think you wanted to use a partition type of "
39009 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
39010 "dash) between options and the input file argument:"
39014 #: ../tools/virt-make-fs.pl:269
39017 " virt-make-fs --partition -- input.tar ...\n"
39020 " virt-make-fs --partition -- input.tar ...\n"
39024 #: ../tools/virt-make-fs.pl:541
39026 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39027 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39028 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39030 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39031 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39032 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39035 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39037 "When reporting bugs, please enable debugging and capture the I<complete> "
39042 #: ../tools/virt-make-fs.pl:558
39045 " export LIBGUESTFS_DEBUG=1\n"
39046 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39049 " export LIBGUESTFS_DEBUG=1\n"
39050 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39054 #: ../tools/virt-make-fs.pl:561
39056 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39061 #: ../tools/virt-tar.pl:33
39062 msgid "virt-tar - Extract or upload files to a virtual machine"
39066 #: ../tools/virt-tar.pl:37
39069 " virt-tar [--options] -x domname directory tarball\n"
39074 #: ../tools/virt-tar.pl:39
39077 " virt-tar [--options] -u domname tarball directory\n"
39082 #: ../tools/virt-tar.pl:41
39085 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39090 #: ../tools/virt-tar.pl:43
39093 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39098 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39103 #: ../tools/virt-tar.pl:47
39105 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39106 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39110 #: ../tools/virt-tar.pl:52
39111 msgid "Download C</home> from the VM into a local tarball:"
39115 #: ../tools/virt-tar.pl:54
39118 " virt-tar -x domname /home home.tar\n"
39123 #: ../tools/virt-tar.pl:56
39126 " virt-tar -zx domname /home home.tar.gz\n"
39131 #: ../tools/virt-tar.pl:58
39132 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39136 #: ../tools/virt-tar.pl:60
39139 " virt-tar -u domname uploadstuff.tar /tmp\n"
39144 #: ../tools/virt-tar.pl:62
39147 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39152 #: ../tools/virt-tar.pl:66
39154 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39155 "virtual machines. If you do this, you risk disk corruption in the VM. "
39156 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39160 #: ../tools/virt-tar.pl:71
39162 "You can use I<-x> (extract) on live virtual machines, but you might get "
39163 "inconsistent results or errors if there is filesystem activity inside the "
39164 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
39165 "work, but the only way to guarantee consistent results is if the virtual "
39166 "machine is shut down."
39170 #: ../tools/virt-tar.pl:79
39172 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39173 "parts of a guest filesystem. There are many possibilities: making backups, "
39174 "uploading data files, snooping on guest activity, fixing or customizing "
39179 #: ../tools/virt-tar.pl:84
39181 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
39182 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
39183 "should look at the L<guestfish(1)> tool."
39187 #: ../tools/virt-tar.pl:88
39189 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39190 "its contents (recursively) from the virtual machine into a local tarball. "
39191 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39192 "virtual machine. You cannot use these two options together."
39196 #: ../tools/virt-tar.pl:94
39198 "In addition, you may need to use the I<-z> (gZip) option to enable "
39199 "compression. When uploading, you have to specify I<-z> if the upload file "
39200 "is compressed because virt-tar won't detect this on its own."
39204 #: ../tools/virt-tar.pl:98
39206 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
39207 "example it cannot do PKZip files or bzip2 compression. If you want that "
39208 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
39209 "the L<libguestfs(3)> API)."
39213 #: ../tools/virt-tar.pl:160
39215 #| msgid "B<--format>"
39216 msgid "B<--extract>"
39217 msgstr "B<--format>"
39220 #: ../tools/virt-tar.pl:162
39222 #| msgid "download"
39223 msgid "B<--download>"
39227 #: ../tools/virt-tar.pl:164
39232 #: ../tools/virt-tar.pl:166
39234 #| msgid "B<-u> | B<--upload>"
39235 msgid "B<--upload>"
39236 msgstr "B<-u> | B<--upload>"
39239 #: ../tools/virt-tar.pl:168
39241 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39246 #: ../tools/virt-tar.pl:171
39248 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
39249 "Please read the L</WARNING> section above before using this option."
39253 #: ../tools/virt-tar.pl:175
39254 msgid "You must specify exactly one of these options."
39258 #: ../tools/virt-tar.pl:181
39263 #: ../tools/virt-tar.pl:183
39265 #| msgid "B<-z> | B<--gzip>"
39267 msgstr "B<-z> | B<--gzip>"
39270 #: ../tools/virt-tar.pl:185
39271 msgid "Specify that the input or output tarball is gzip-compressed."
39275 #: ../tools/virt-tar.pl:298
39277 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39278 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39279 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39282 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39283 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39284 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39288 #: ../tools/virt-win-reg.pl:37
39290 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39294 #: ../tools/virt-win-reg.pl:41
39297 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39302 #: ../tools/virt-win-reg.pl:43
39305 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39310 #: ../tools/virt-win-reg.pl:45
39313 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39318 #: ../tools/virt-win-reg.pl:47
39321 " virt-win-reg --merge domname [input.reg ...]\n"
39326 #: ../tools/virt-win-reg.pl:49
39329 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39334 #: ../tools/virt-win-reg.pl:53
39336 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39337 "virtual machines. If you do this, you I<will> get irreversible disk "
39338 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
39339 "but doesn't catch all cases."
39343 #: ../tools/virt-win-reg.pl:58
39345 "Modifying the Windows Registry is an inherently risky operation. The format "
39346 "is deliberately obscure and undocumented, and Registry changes can leave the "
39347 "system unbootable. Therefore when using the I<--merge> option, make sure "
39348 "you have a reliable backup first."
39352 #: ../tools/virt-win-reg.pl:65
39354 "This program can export and merge Windows Registry entries from a Windows "
39359 #: ../tools/virt-win-reg.pl:68
39361 "The first parameter is the libvirt guest name or the raw disk image of a "
39366 #: ../tools/virt-win-reg.pl:71
39368 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39369 "exported (recursively). For example:"
39373 #: ../tools/virt-win-reg.pl:74
39376 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39381 #: ../tools/virt-win-reg.pl:76
39383 "You can also display single values from within registry keys, for example:"
39387 #: ../tools/virt-win-reg.pl:79
39390 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39391 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39392 " Windows 7 Enterprise\n"
39397 #: ../tools/virt-win-reg.pl:83
39399 "With I<--merge>, you can merge a textual regedit file into the Windows "
39404 #: ../tools/virt-win-reg.pl:86
39407 " $ virt-win-reg --merge Windows7 changes.reg\n"
39412 #: ../tools/virt-win-reg.pl:90
39414 "This program is only meant for simple access to the registry. If you want "
39415 "to do complicated things with the registry, we suggest you download the "
39416 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39417 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39418 "L<hivexregedit(1)>."
39422 #: ../tools/virt-win-reg.pl:159
39424 msgstr "B<--merge>"
39427 #: ../tools/virt-win-reg.pl:161
39429 "In merge mode, this merges a textual regedit file into the Windows Registry "
39430 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
39431 "displays or exports Registry entries instead."
39435 #: ../tools/virt-win-reg.pl:165
39437 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39438 "result in disk corruption. However exporting (without this flag) is always "
39443 #: ../tools/virt-win-reg.pl:173
39444 msgid "B<--encoding> UTF-16LE|ASCII"
39448 #: ../tools/virt-win-reg.pl:175
39450 "When merging (only), you may need to specify the encoding for strings to be "
39451 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
39452 "(3)/ENCODING STRINGS>."
39456 #: ../tools/virt-win-reg.pl:179
39458 "The default is to use UTF-16LE, which should work with recent versions of "
39463 #: ../tools/virt-win-reg.pl:186
39464 msgid "B<--unsafe-printable-strings>"
39468 #: ../tools/virt-win-reg.pl:188
39470 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39471 "instead of hex sequences. Remove the final zero codepoint from strings if "
39476 #: ../tools/virt-win-reg.pl:192
39478 "This is unsafe and does not preserve the fidelity of strings in the original "
39479 "Registry for various reasons:"
39483 #: ../tools/virt-win-reg.pl:199
39485 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
39486 "other encodings will be corrupted by this transformation."
39490 #: ../tools/virt-win-reg.pl:204
39492 "Assumes that everything which has type 1 or 2 is really a string and that "
39493 "everything else is not a string, but the type field in real Registries is "
39498 #: ../tools/virt-win-reg.pl:210
39500 "Loses information about whether a zero codepoint followed the string in the "
39505 #: ../tools/virt-win-reg.pl:215
39507 "This all happens because the Registry itself contains no information about "
39508 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39512 #: ../tools/virt-win-reg.pl:219
39514 "You should only use this option for quick hacking and debugging of the "
39515 "Registry contents, and I<never> use it if the output is going to be passed "
39516 "into another program or stored in another Registry."
39520 #: ../tools/virt-win-reg.pl:556
39521 msgid "SUPPORTED SYSTEMS"
39525 #: ../tools/virt-win-reg.pl:558
39527 "The program currently supports Windows NT-derived guests starting with "
39528 "Windows XP through to at least Windows 7."
39532 #: ../tools/virt-win-reg.pl:561
39533 msgid "The following Registry keys are supported:"
39537 #: ../tools/virt-win-reg.pl:565
39538 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39542 #: ../tools/virt-win-reg.pl:567
39543 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39547 #: ../tools/virt-win-reg.pl:569
39548 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39552 #: ../tools/virt-win-reg.pl:571
39553 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39557 #: ../tools/virt-win-reg.pl:573
39558 msgid "C<HKEY_USERS\\.DEFAULT>"
39562 #: ../tools/virt-win-reg.pl:575
39563 msgid "C<HKEY_USERS\\I<SID>>"
39567 #: ../tools/virt-win-reg.pl:577
39568 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39572 #: ../tools/virt-win-reg.pl:579
39573 msgid "C<HKEY_USERS\\I<username>>"
39577 #: ../tools/virt-win-reg.pl:581
39579 "where I<username> is a local user name (this is a libguestfs extension)."
39583 #: ../tools/virt-win-reg.pl:585
39585 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39590 #: ../tools/virt-win-reg.pl:588
39592 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39593 "supported (there is no \"current user\")."
39597 #: ../tools/virt-win-reg.pl:591
39602 #: ../tools/virt-win-reg.pl:593
39604 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39605 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
39606 "style line endings. Since Windows regedit files are often in UTF-16LE with "
39607 "Windows-style line endings, you may need to reencode the whole file before "
39608 "or after processing."
39612 #: ../tools/virt-win-reg.pl:599
39614 "To reencode a file from Windows format to Linux (before processing it with "
39615 "the I<--merge> option), you would do something like this:"
39619 #: ../tools/virt-win-reg.pl:602
39622 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39627 #: ../tools/virt-win-reg.pl:604
39629 "To go in the opposite direction, after exporting and before sending the file "
39630 "to a Windows user, do something like this:"
39634 #: ../tools/virt-win-reg.pl:607
39637 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39642 #: ../tools/virt-win-reg.pl:609
39643 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39647 #: ../tools/virt-win-reg.pl:611
39649 "If you are unsure about the current encoding, use the L<file(1)> command. "
39650 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39651 "style (CRLF) line endings, like this:"
39655 #: ../tools/virt-win-reg.pl:615
39658 " $ file software.reg\n"
39659 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39660 " with CRLF line terminators\n"
39665 #: ../tools/virt-win-reg.pl:619
39666 msgid "This file would need conversion before you could I<--merge> it."
39670 #: ../tools/virt-win-reg.pl:621
39671 msgid "CurrentControlSet etc."
39675 #: ../tools/virt-win-reg.pl:623
39677 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39678 "Registry at the level of the hive file, and therefore you cannot modify "
39683 #: ../tools/virt-win-reg.pl:627
39685 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
39686 "circumstances it might refer to another control set. The way to find out is "
39687 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39691 #: ../tools/virt-win-reg.pl:631
39694 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39695 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39696 " \"Current\"=dword:00000001\n"
39697 " \"Default\"=dword:00000001\n"
39698 " \"Failed\"=dword:00000000\n"
39699 " \"LastKnownGood\"=dword:00000002\n"
39704 #: ../tools/virt-win-reg.pl:638
39705 msgid "\"Current\" is the one which Windows will choose when it boots."
39709 #: ../tools/virt-win-reg.pl:640
39711 "Similarly, other C<Current...> keys in the path may need to be replaced."
39715 #: ../tools/virt-win-reg.pl:643
39716 msgid "WINDOWS TIPS"
39720 #: ../tools/virt-win-reg.pl:645
39722 "Note that some of these tips modify the guest disk image. The guest I<must> "
39723 "be shut off, else you will get disk corruption."
39727 #: ../tools/virt-win-reg.pl:648
39728 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39732 #: ../tools/virt-win-reg.pl:650
39734 "Prepare a DOS batch script, VBScript or executable. Upload this using "
39735 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
39736 "is uploaded into C<C:\\>:"
39740 #: ../tools/virt-win-reg.pl:654
39743 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39748 #: ../tools/virt-win-reg.pl:656
39749 msgid "Prepare a regedit file containing the registry change:"
39753 #: ../tools/virt-win-reg.pl:658
39756 " cat > test.reg <<'EOF'\n"
39757 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39758 " \"Test\"=\"c:\\\\test.bat\"\n"
39764 #: ../tools/virt-win-reg.pl:663
39766 "In this example we use the key C<RunOnce> which means that the script will "
39767 "run precisely once when the first user logs in. If you want it to run every "
39768 "time a user logs in, replace C<RunOnce> with C<Run>."
39772 #: ../tools/virt-win-reg.pl:667
39773 msgid "Now update the registry:"
39777 #: ../tools/virt-win-reg.pl:669
39780 " virt-win-reg --merge WindowsGuest test.reg\n"
39785 #: ../tools/virt-win-reg.pl:671
39786 msgid "INSTALLING A SERVICE"
39790 #: ../tools/virt-win-reg.pl:673
39792 "This section assumes you are familiar with Windows services, and you either "
39793 "have a program which handles the Windows Service Control Protocol directly "
39794 "or you want to run any program using a service wrapper like SrvAny or the "
39799 #: ../tools/virt-win-reg.pl:678
39801 "First upload the program and optionally the service wrapper. In this case "
39802 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39806 #: ../tools/virt-win-reg.pl:682
39809 " guestfish -i -d WindowsGuest <<EOF\n"
39810 " upload rhsrvany.exe /rhsrvany.exe\n"
39811 " upload test.exe /test.exe\n"
39817 #: ../tools/virt-win-reg.pl:687
39819 "Prepare a regedit file containing the registry changes. In this example, "
39820 "the first registry change is needed for the service itself or the service "
39821 "wrapper (if used). The second registry change is only needed because I am "
39822 "using the RHSrvAny service wrapper."
39826 #: ../tools/virt-win-reg.pl:692
39829 " cat > service.reg <<'EOF'\n"
39830 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39831 " \"Type\"=dword:00000010\n"
39832 " \"Start\"=dword:00000002\n"
39833 " \"ErrorControl\"=dword:00000001\n"
39834 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39835 " \"DisplayName\"=\"RHSrvAny\"\n"
39836 " \"ObjectName\"=\"NetworkService\"\n"
39841 #: ../tools/virt-win-reg.pl:701
39844 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39845 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39846 " \"PWD\"=\"c:\\\\Temp\"\n"
39852 #: ../tools/virt-win-reg.pl:712
39854 "For use of C<ControlSet001> see the section above in this manual page. You "
39855 "may need to adjust this according to the control set that is in use by the "
39860 #: ../tools/virt-win-reg.pl:718
39862 "C<\"ObjectName\"> controls the privileges that the service will have. An "
39863 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39864 "privileged account."
39868 #: ../tools/virt-win-reg.pl:724
39870 "For the meaning of the magic numbers, see this Microsoft KB article: "
39871 "L<http://support.microsoft.com/kb/103000>."
39875 #: ../tools/virt-win-reg.pl:729
39876 msgid "Update the registry:"
39880 #: ../tools/virt-win-reg.pl:731
39883 " virt-win-reg --merge WindowsGuest service.reg\n"
39888 #: ../tools/virt-win-reg.pl:735
39890 "Be careful when passing parameters containing C<\\> (backslash) in the "
39891 "shell. Usually you will have to use 'single quotes' or double backslashes "
39892 "(but not both) to protect them from the shell."
39896 #: ../tools/virt-win-reg.pl:739
39897 msgid "Paths and value names are case-insensitive."
39901 #: ../tools/virt-win-reg.pl:748
39903 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39904 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39905 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39909 #: ../tools/virt-win-reg.pl:766
39912 " export LIBGUESTFS_DEBUG=1\n"
39913 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39918 #: ../tools/virt-win-reg.pl:769
39920 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39925 #~ " g = guestfs_create ();\n"
39928 #~ " g = guestfs_create ();\n"
39931 #~ msgid "B<-a> | B<--all>"
39932 #~ msgstr "B<-a> | B<--all>"
39934 #~ msgid "B<-x> | B<--extract> | B<--download>"
39935 #~ msgstr "B<-x> | B<--extract> | B<--download>"