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 13:52+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:2652
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:3026 ../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:3102 ../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:15 ../src/guestfs-actions.pod:22
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:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
2686 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
2687 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
2688 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420
2689 #: ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437
2690 #: ../src/guestfs.pod:2818 ../src/guestfs.pod:2823 ../src/guestfs.pod:2827
2691 #: ../src/guestfs.pod:2831 ../src/guestfs.pod:2835 ../src/guestfs.pod:2849
2692 #: ../src/guestfs.pod:2854 ../src/guestfs.pod:3079 ../src/guestfs.pod:3083
2693 #: ../src/guestfs.pod:3087 ../src/guestfs.pod:3091
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:2965
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:3098
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:3100
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:3107
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:3112
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:3117
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:11 ../src/guestfs-actions.pod:1922
3863 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1639
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:7
4484 msgid "This function adds a virtual CD-ROM disk image to the guest."
4488 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
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 "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:5190
4526 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4527 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4528 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4529 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4952
4530 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5260
4531 #: ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6579
4532 #: ../src/guestfs-actions.pod:6612 ../src/guestfs-actions.pod:6671
4533 #: ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7719
4534 #: ../src/guestfs-actions.pod:7889
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:5162 ../fish/guestfish-actions.pod:5172
5819 #: ../fish/guestfish-actions.pod:5201 ../fish/guestfish-actions.pod:5211
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:7713
5833 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5834 #: ../src/guestfs-actions.pod:7844 ../src/guestfs-actions.pod:7863
5835 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7928
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:1505 ../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:1509
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 "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:2004
7406 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7410 #: ../fish/guestfish-actions.pod:1348
7412 "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:2025
7434 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7438 #: ../fish/guestfish-actions.pod:1362
7440 "This function is deprecated. In new code, use the L</vfs_uuid> call instead."
7444 #: ../fish/guestfish-actions.pod:1369
7446 msgstr "get-memsize"
7449 #: ../fish/guestfish-actions.pod:1371
7459 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7461 "This gets the memory size in megabytes allocated to the qemu subprocess."
7465 #: ../fish/guestfish-actions.pod:1376
7467 "If L</set-memsize> was not called on this handle, and if "
7468 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7469 "value for memsize."
7473 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7474 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7475 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7476 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7478 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7482 #: ../fish/guestfish-actions.pod:1383
7484 msgstr "get-network"
7487 #: ../fish/guestfish-actions.pod:1385
7497 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7498 msgid "This returns the enable network flag."
7502 #: ../fish/guestfish-actions.pod:1389
7507 #: ../fish/guestfish-actions.pod:1391
7517 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7518 msgid "Return the current search path."
7522 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7524 "This is always non-NULL. If it wasn't set already, then this will return "
7529 #: ../fish/guestfish-actions.pod:1398
7534 #: ../fish/guestfish-actions.pod:1400
7542 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7543 msgid "This returns the process group flag."
7547 #: ../fish/guestfish-actions.pod:1404
7552 #: ../fish/guestfish-actions.pod:1406
7557 #: ../fish/guestfish-actions.pod:1408
7567 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7569 "Return the process ID of the qemu subprocess. If there is no qemu "
7570 "subprocess, then this will return an error."
7574 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7575 msgid "This is an internal call used for debugging and testing."
7579 #: ../fish/guestfish-actions.pod:1415
7584 #: ../fish/guestfish-actions.pod:1417
7594 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7595 msgid "Return the current qemu binary."
7599 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7601 "This is always non-NULL. If it wasn't set already, then this will return "
7602 "the default qemu binary name."
7606 #: ../fish/guestfish-actions.pod:1424
7607 msgid "get-recovery-proc"
7608 msgstr "get-recovery-proc"
7611 #: ../fish/guestfish-actions.pod:1426
7614 " get-recovery-proc\n"
7617 " get-recovery-proc\n"
7621 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7622 msgid "Return the recovery process enabled flag."
7626 #: ../fish/guestfish-actions.pod:1430
7628 msgstr "get-selinux"
7631 #: ../fish/guestfish-actions.pod:1432
7641 #: ../fish/guestfish-actions.pod:1434
7643 "This returns the current setting of the selinux flag which is passed to the "
7644 "appliance at boot time. See L</set-selinux>."
7648 #: ../fish/guestfish-actions.pod:1440
7653 #: ../fish/guestfish-actions.pod:1442
7663 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7665 "This returns the current state as an opaque integer. This is only useful "
7666 "for printing debug and internal error messages."
7670 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7671 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7672 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7673 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7674 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7675 msgid "For more information on states, see L<guestfs(3)>."
7679 #: ../fish/guestfish-actions.pod:1449
7684 #: ../fish/guestfish-actions.pod:1451
7694 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7695 msgid "Return the command trace flag."
7699 #: ../fish/guestfish-actions.pod:1455
7704 #: ../fish/guestfish-actions.pod:1457
7714 #: ../fish/guestfish-actions.pod:1459
7716 "Return the current umask. By default the umask is C<022> unless it has been "
7717 "set by calling L</umask>."
7721 #: ../fish/guestfish-actions.pod:1462
7723 msgstr "get-verbose"
7726 #: ../fish/guestfish-actions.pod:1464
7736 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7737 msgid "This returns the verbose messages flag."
7741 #: ../fish/guestfish-actions.pod:1468
7746 #: ../fish/guestfish-actions.pod:1470
7756 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7757 msgid "This gets the SELinux security context of the daemon."
7761 #: ../fish/guestfish-actions.pod:1474
7762 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7766 #: ../fish/guestfish-actions.pod:1477
7771 #: ../fish/guestfish-actions.pod:1479
7774 " getxattr path name\n"
7777 " getxattr шлях назва\n"
7781 #: ../fish/guestfish-actions.pod:1481
7783 "Get a single extended attribute from file C<path> named C<name>. This call "
7784 "follows symlinks. If you want to lookup an extended attribute for the "
7785 "symlink itself, use L</lgetxattr>."
7789 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7791 "Normally it is better to get all extended attributes from a file in one go "
7792 "by calling L</getxattrs>. However some Linux filesystem implementations are "
7793 "buggy and do not provide a way to list out attributes. For these "
7794 "filesystems (notably ntfs-3g) you have to know the names of the extended "
7795 "attributes you want in advance and call this function."
7799 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7800 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7802 "Extended attribute values are blobs of binary data. If there is no extended "
7803 "attribute named C<name>, this returns an error."
7807 #: ../fish/guestfish-actions.pod:1495
7808 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7809 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7812 #: ../fish/guestfish-actions.pod:1497
7817 #: ../fish/guestfish-actions.pod:1499
7827 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7829 "This call lists the extended attributes of the file or directory C<path>."
7833 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7835 "At the system call level, this is a combination of the L<listxattr(2)> and "
7836 "L<getxattr(2)> calls."
7840 #: ../fish/guestfish-actions.pod:1507
7841 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7842 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7845 #: ../fish/guestfish-actions.pod:1509
7847 msgstr "glob-expand"
7850 #: ../fish/guestfish-actions.pod:1511
7853 " glob-expand pattern\n"
7856 " glob-expand шаблон\n"
7860 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7862 "This command searches for all the pathnames matching C<pattern> according to "
7863 "the wildcard expansion rules used by the shell."
7867 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7869 "If no paths match, then this returns an empty list (note: not an error)."
7873 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7875 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7876 "GLOB_BRACE>. See that manual page for more details."
7880 #: ../fish/guestfish-actions.pod:1524
7885 #: ../fish/guestfish-actions.pod:1526
7888 " grep regex path\n"
7891 " grepi формальний_вираз шлях\n"
7895 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7896 msgid "This calls the external C<grep> program and returns the matching lines."
7900 #: ../fish/guestfish-actions.pod:1534
7905 #: ../fish/guestfish-actions.pod:1536
7908 " grepi regex path\n"
7911 " grepi формальний_вираз шлях\n"
7915 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7917 "This calls the external C<grep -i> program and returns the matching lines."
7921 #: ../fish/guestfish-actions.pod:1544
7922 msgid "grub-install"
7923 msgstr "grub-install"
7926 #: ../fish/guestfish-actions.pod:1546
7929 " grub-install root device\n"
7932 " grub-install кореневий пристрій\n"
7936 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7938 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7939 "the root directory being C<root>."
7943 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7945 "Note: If grub-install reports the error \"No suitable drive was found in the "
7946 "generated device map.\" it may be that you need to create a C</boot/grub/"
7947 "device.map> file first that contains the mapping between grub device names "
7948 "and Linux device names. It is usually sufficient to create a file "
7953 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7961 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7962 msgid "replacing C</dev/vda> with the name of the installation device."
7966 #: ../fish/guestfish-actions.pod:1562
7971 #: ../fish/guestfish-actions.pod:1564
7981 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7983 "This command returns up to the first 10 lines of a file as a list of strings."
7987 #: ../fish/guestfish-actions.pod:1572
7992 #: ../fish/guestfish-actions.pod:1574
7995 " head-n nrlines path\n"
8000 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
8002 "If the parameter C<nrlines> is a positive number, this returns the first "
8003 "C<nrlines> lines of the file C<path>."
8007 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
8009 "If the parameter C<nrlines> is a negative number, this returns lines from "
8010 "the file C<path>, excluding the last C<nrlines> lines."
8014 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
8015 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
8016 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8020 #: ../fish/guestfish-actions.pod:1587
8025 #: ../fish/guestfish-actions.pod:1589
8035 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
8037 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8038 "readable, canonical hex dump of the file."
8042 #: ../fish/guestfish-actions.pod:1597
8047 #: ../fish/guestfish-actions.pod:1599
8050 " initrd-cat initrdpath filename\n"
8053 " initrd-cat шлях_initrd назва_файла\n"
8057 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
8059 "This command unpacks the file C<filename> from the initrd file called "
8060 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8065 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
8067 "For example, in guestfish you could use the following command to examine the "
8068 "boot script (usually called C</init>) contained in a Linux initrd or "
8073 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
8076 " initrd-cat /boot/initrd-<version>.img init\n"
8081 #: ../fish/guestfish-actions.pod:1611
8082 msgid "See also L</initrd-list>."
8083 msgstr "Див. також L</initrd-list>."
8086 #: ../fish/guestfish-actions.pod:1616
8088 msgstr "initrd-list"
8091 #: ../fish/guestfish-actions.pod:1618
8094 " initrd-list path\n"
8097 " initrd-list шлях\n"
8101 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
8102 msgid "This command lists out files contained in an initrd."
8106 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
8108 "The files are listed without any initial C</> character. The files are "
8109 "listed in the order they appear (not necessarily alphabetical). Directory "
8110 "names are listed as separate items."
8114 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
8116 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8117 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8122 #: ../fish/guestfish-actions.pod:1630
8123 msgid "inotify-add-watch"
8124 msgstr "inotify-add-watch"
8127 #: ../fish/guestfish-actions.pod:1632
8130 " inotify-add-watch path mask\n"
8133 " inotify-add-watch шлях маска\n"
8137 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
8138 msgid "Watch C<path> for the events listed in C<mask>."
8142 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
8144 "Note that if C<path> is a directory then events within that directory are "
8145 "watched, but this does I<not> happen recursively (in subdirectories)."
8149 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
8151 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8152 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8156 #: ../fish/guestfish-actions.pod:1644
8157 msgid "inotify-close"
8158 msgstr "inotify-close"
8161 #: ../fish/guestfish-actions.pod:1646
8171 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
8173 "This closes the inotify handle which was previously opened by inotify_init. "
8174 "It removes all watches, throws away any pending events, and deallocates all "
8179 #: ../fish/guestfish-actions.pod:1652
8180 msgid "inotify-files"
8181 msgstr "inotify-files"
8184 #: ../fish/guestfish-actions.pod:1654
8194 #: ../fish/guestfish-actions.pod:1656
8196 "This function is a helpful wrapper around L</inotify-read> which just "
8197 "returns a list of pathnames of objects that were touched. The returned "
8198 "pathnames are sorted and deduplicated."
8202 #: ../fish/guestfish-actions.pod:1660
8203 msgid "inotify-init"
8204 msgstr "inotify-init"
8207 #: ../fish/guestfish-actions.pod:1662
8210 " inotify-init maxevents\n"
8215 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
8217 "This command creates a new inotify handle. The inotify subsystem can be "
8218 "used to notify events which happen to objects in the guest filesystem."
8222 #: ../fish/guestfish-actions.pod:1668
8224 "C<maxevents> is the maximum number of events which will be queued up between "
8225 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8226 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8227 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8228 "but records the fact that it threw them away by setting a flag "
8229 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8233 #: ../fish/guestfish-actions.pod:1678
8235 "Before any events are generated, you have to add some watches to the "
8236 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8237 "L</inotify-watch-all>."
8241 #: ../fish/guestfish-actions.pod:1684
8243 "Queued up events should be read periodically by calling L</inotify-read> (or "
8244 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8245 "If you don't read the events out often enough then you risk the internal "
8246 "queue overflowing."
8250 #: ../fish/guestfish-actions.pod:1691
8252 "The handle should be closed after use by calling L</inotify-close>. This "
8253 "also removes any watches automatically."
8257 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
8259 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8260 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8261 "that there is one global inotify handle per libguestfs instance."
8265 #: ../fish/guestfish-actions.pod:1700
8266 msgid "inotify-read"
8267 msgstr "inotify-read"
8270 #: ../fish/guestfish-actions.pod:1702
8280 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8282 "Return the complete queue of events that have happened since the previous "
8287 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
8288 msgid "If no events have happened, this returns an empty list."
8292 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
8294 "I<Note>: In order to make sure that all events have been read, you must call "
8295 "this function repeatedly until it returns an empty list. The reason is that "
8296 "the call will read events up to the maximum appliance-to-host message size "
8297 "and leave remaining events in the queue."
8301 #: ../fish/guestfish-actions.pod:1715
8302 msgid "inotify-rm-watch"
8303 msgstr "inotify-rm-watch"
8306 #: ../fish/guestfish-actions.pod:1717
8309 " inotify-rm-watch wd\n"
8314 #: ../fish/guestfish-actions.pod:1719
8315 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8319 #: ../fish/guestfish-actions.pod:1722
8320 msgid "inspect-get-arch"
8321 msgstr "inspect-get-arch"
8324 #: ../fish/guestfish-actions.pod:1724
8327 " inspect-get-arch root\n"
8330 " inspect-get-arch корінь\n"
8334 #: ../fish/guestfish-actions.pod:1726
8336 "This returns the architecture of the inspected operating system. The "
8337 "possible return values are listed under L</file-architecture>."
8341 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
8343 "If the architecture could not be determined, then the string C<unknown> is "
8348 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
8349 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
8350 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
8351 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
8352 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
8353 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
8354 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
8355 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
8356 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
8357 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
8358 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
8359 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
8360 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
8361 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
8362 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
8363 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
8364 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
8365 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8369 #: ../fish/guestfish-actions.pod:1735
8370 msgid "inspect-get-distro"
8371 msgstr "inspect-get-distro"
8374 #: ../fish/guestfish-actions.pod:1737
8377 " inspect-get-distro root\n"
8380 " inspect-get-distro корінь\n"
8384 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
8386 "This returns the distro (distribution) of the inspected operating system."
8390 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
8391 msgid "Currently defined distros are:"
8395 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
8396 msgid "\"archlinux\""
8397 msgstr "\"archlinux\""
8400 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
8402 msgstr "Arch Linux."
8405 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
8410 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
8415 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
8420 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
8425 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
8430 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
8435 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
8440 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8445 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
8446 msgid "\"linuxmint\""
8447 msgstr "\"linuxmint\""
8450 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8452 msgstr "Linux Mint."
8455 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8456 msgid "\"mandriva\""
8457 msgstr "\"mandriva\""
8460 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8465 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8470 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8475 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8480 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8485 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8486 msgid "\"redhat-based\""
8487 msgstr "\"redhat-based\""
8490 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8491 msgid "Some Red Hat-derived distro."
8492 msgstr "Дистрибутив, що походить від Red Hat."
8495 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8500 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8501 msgid "Red Hat Enterprise Linux."
8505 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8506 msgid "\"scientificlinux\""
8510 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8511 msgid "Scientific Linux."
8515 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8516 msgid "\"slackware\""
8520 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8525 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8530 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8535 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8536 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8537 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8539 msgstr "\"unknown\""
8542 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8543 msgid "The distro could not be determined."
8544 msgstr "Дистрибутив, тип якого не вдалося визначити."
8547 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8548 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8550 msgstr "\"windows\""
8553 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8555 "Windows does not have distributions. This string is returned if the OS type "
8560 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8561 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8562 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8564 "Future versions of libguestfs may return other strings here. The caller "
8565 "should be prepared to handle any string."
8569 #: ../fish/guestfish-actions.pod:1818
8570 msgid "inspect-get-drive-mappings"
8574 #: ../fish/guestfish-actions.pod:1820
8577 " inspect-get-drive-mappings root\n"
8582 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8584 "This call is useful for Windows which uses a primitive system of assigning "
8585 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8586 "Windows Registry to find out how disks/partitions are mapped to drive "
8587 "letters, and returns a hash table as in the example below:"
8591 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8601 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8603 "Note that keys are drive letters. For Windows, the key is case insensitive "
8604 "and just contains the drive letter, without the customary colon separator "
8609 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8611 "In future we may support other operating systems that also used drive "
8612 "letters, but the keys for those might not be case insensitive and might be "
8613 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
8618 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8620 "For Windows guests, currently only hard drive mappings are returned. "
8621 "Removable disks (eg. DVD-ROMs) are ignored."
8625 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8627 "For guests that do not use drive mappings, or if the drive mappings could "
8628 "not be determined, this returns an empty hash table."
8632 #: ../fish/guestfish-actions.pod:1847
8634 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8635 "get-mountpoints>, L</inspect-get-filesystems>."
8639 #: ../fish/guestfish-actions.pod:1851
8640 msgid "inspect-get-filesystems"
8641 msgstr "inspect-get-filesystems"
8644 #: ../fish/guestfish-actions.pod:1853
8647 " inspect-get-filesystems root\n"
8650 " inspect-get-filesystems корінь\n"
8654 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8656 "This returns a list of all the filesystems that we think are associated with "
8657 "this operating system. This includes the root filesystem, other ordinary "
8658 "filesystems, and non-mounted devices like swap partitions."
8662 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8664 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8665 "to be shared between operating systems."
8669 #: ../fish/guestfish-actions.pod:1863
8671 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8676 #: ../fish/guestfish-actions.pod:1866
8677 msgid "inspect-get-format"
8678 msgstr "inspect-get-format"
8681 #: ../fish/guestfish-actions.pod:1868
8684 " inspect-get-format root\n"
8687 " inspect-get-format корінь\n"
8691 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8693 "This returns the format of the inspected operating system. You can use it "
8694 "to detect install images, live CDs and similar."
8698 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8699 msgid "Currently defined formats are:"
8703 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8704 msgid "\"installed\""
8705 msgstr "\"installed\""
8708 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8709 msgid "This is an installed operating system."
8710 msgstr "Це встановлена операційна система."
8713 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8714 msgid "\"installer\""
8718 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8720 "The disk image being inspected is not an installed operating system, but a "
8721 "I<bootable> install disk, live CD, or similar."
8725 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8726 msgid "The format of this disk image is not known."
8730 #: ../fish/guestfish-actions.pod:1897
8731 msgid "inspect-get-hostname"
8732 msgstr "inspect-get-hostname"
8735 #: ../fish/guestfish-actions.pod:1899
8738 " inspect-get-hostname root\n"
8741 " inspect-get-hostname корінь\n"
8745 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8747 "This function returns the hostname of the operating system as found by "
8748 "inspection of the guest's configuration files."
8752 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8754 "If the hostname could not be determined, then the string C<unknown> is "
8759 #: ../fish/guestfish-actions.pod:1909
8760 msgid "inspect-get-icon"
8764 #: ../fish/guestfish-actions.pod:1911
8767 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8772 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8774 "This function returns an icon corresponding to the inspected operating "
8775 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
8776 "to PNG if necessary)."
8780 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8782 "If it was not possible to get an icon this function returns a zero-length "
8783 "(non-NULL) buffer. I<Callers must check for this case>."
8787 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8789 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8790 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8791 "this file will be returned. You can disable favicons by passing the "
8792 "optional C<favicon> boolean as false (default is true)."
8796 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8798 "If finding the favicon fails, then we look in other places in the guest for "
8803 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8805 "If the optional C<highquality> boolean is true then only high quality icons "
8806 "are returned, which means only icons of high resolution with an alpha "
8807 "channel. The default (false) is to return any icon we can, even if it is of "
8808 "substandard quality."
8812 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8814 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8815 "before you call this, since it needs to read information from the guest "
8816 "filesystem during the call."
8820 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8822 "B<Security:> The icon data comes from the untrusted guest, and should be "
8823 "treated with caution. PNG files have been known to contain exploits. "
8824 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8825 "trying to process or display the icon."
8829 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8831 "The PNG image returned can be any size. It might not be square. Libguestfs "
8832 "tries to return the largest, highest quality icon available. The "
8833 "application must scale the icon to the required size."
8837 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8839 "Extracting icons from Windows guests requires the external C<wrestool> "
8840 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8841 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
8842 "installed separately."
8846 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8848 "Operating system icons are usually trademarks. Seek legal advice before "
8849 "using trademarks in applications."
8853 #: ../fish/guestfish-actions.pod:1975
8854 msgid "inspect-get-major-version"
8855 msgstr "inspect-get-major-version"
8858 #: ../fish/guestfish-actions.pod:1977
8861 " inspect-get-major-version root\n"
8864 " inspect-get-major-version корінь\n"
8868 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8870 "This returns the major version number of the inspected operating system."
8874 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8876 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8877 "popular public names used by the operating system. Notably the operating "
8878 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8879 "1). You can find out the real versions corresponding to releases of Windows "
8880 "by consulting Wikipedia or MSDN."
8884 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8885 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8886 msgid "If the version could not be determined, then C<0> is returned."
8890 #: ../fish/guestfish-actions.pod:1993
8891 msgid "inspect-get-minor-version"
8892 msgstr "inspect-get-minor-version"
8895 #: ../fish/guestfish-actions.pod:1995
8898 " inspect-get-minor-version root\n"
8901 " inspect-get-minor-version корінь\n"
8905 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8907 "This returns the minor version number of the inspected operating system."
8911 #: ../fish/guestfish-actions.pod:2002
8913 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8914 "get-major-version>."
8918 #: ../fish/guestfish-actions.pod:2005
8919 msgid "inspect-get-mountpoints"
8920 msgstr "inspect-get-mountpoints"
8923 #: ../fish/guestfish-actions.pod:2007
8926 " inspect-get-mountpoints root\n"
8929 " inspect-get-mountpoints корінь\n"
8933 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8935 "This returns a hash of where we think the filesystems associated with this "
8936 "operating system should be mounted. Callers should note that this is at "
8937 "best an educated guess made by reading configuration files such as C</etc/"
8938 "fstab>. I<In particular note> that this may return filesystems which are "
8939 "non-existent or not mountable and callers should be prepared to handle or "
8940 "ignore failures if they try to mount them."
8944 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8946 "Each element in the returned hashtable has a key which is the path of the "
8947 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8948 "mounted there (eg. C</dev/sda1>)."
8952 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8954 "Non-mounted devices such as swap devices are I<not> returned in this list."
8958 #: ../fish/guestfish-actions.pod:2026
8960 "For operating systems like Windows which still use drive letters, this call "
8961 "will only return an entry for the first drive \"mounted on\" C</>. For "
8962 "information about the mapping of drive letters to partitions, see L</inspect-"
8963 "get-drive-mappings>."
8967 #: ../fish/guestfish-actions.pod:2032
8969 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8974 #: ../fish/guestfish-actions.pod:2035
8975 msgid "inspect-get-package-format"
8976 msgstr "inspect-get-package-format"
8979 #: ../fish/guestfish-actions.pod:2037
8982 " inspect-get-package-format root\n"
8985 " inspect-get-package-format корінь\n"
8989 #: ../fish/guestfish-actions.pod:2039
8991 "This function and L</inspect-get-package-management> return the package "
8992 "format and package management tool used by the inspected operating system. "
8993 "For example for Fedora these functions would return C<rpm> (package format) "
8994 "and C<yum> (package management)."
8998 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
9000 "This returns the string C<unknown> if we could not determine the package "
9001 "format I<or> if the operating system does not have a real packaging system "
9006 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
9008 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9009 "Future versions of libguestfs may return other strings."
9013 #: ../fish/guestfish-actions.pod:2054
9014 msgid "inspect-get-package-management"
9015 msgstr "inspect-get-package-management"
9018 #: ../fish/guestfish-actions.pod:2056
9021 " inspect-get-package-management root\n"
9024 " inspect-get-package-management корінь\n"
9028 #: ../fish/guestfish-actions.pod:2058
9030 "L</inspect-get-package-format> and this function return the package format "
9031 "and package management tool used by the inspected operating system. For "
9032 "example for Fedora these functions would return C<rpm> (package format) and "
9033 "C<yum> (package management)."
9037 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
9039 "This returns the string C<unknown> if we could not determine the package "
9040 "management tool I<or> if the operating system does not have a real packaging "
9041 "system (eg. Windows)."
9045 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
9047 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9048 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9049 "libguestfs may return other strings."
9053 #: ../fish/guestfish-actions.pod:2075
9054 msgid "inspect-get-product-name"
9055 msgstr "inspect-get-product-name"
9058 #: ../fish/guestfish-actions.pod:2077
9061 " inspect-get-product-name root\n"
9064 " inspect-get-product-name корінь\n"
9068 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9070 "This returns the product name of the inspected operating system. The "
9071 "product name is generally some freeform string which can be displayed to the "
9072 "user, but should not be parsed by programs."
9076 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
9078 "If the product name could not be determined, then the string C<unknown> is "
9083 #: ../fish/guestfish-actions.pod:2089
9084 msgid "inspect-get-product-variant"
9088 #: ../fish/guestfish-actions.pod:2091
9091 " inspect-get-product-variant root\n"
9096 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
9097 msgid "This returns the product variant of the inspected operating system."
9101 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
9103 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9104 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9105 "is usually a string such as C<Client> or C<Server> (other values are "
9106 "possible). This can be used to distinguish consumer and enterprise versions "
9107 "of Windows that have the same version number (for example, Windows 7 and "
9108 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9109 "the latter is C<Server>)."
9113 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
9115 "For enterprise Linux guests, in future we intend this to return the product "
9116 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9117 "implemented at present."
9121 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
9123 "If the product variant could not be determined, then the string C<unknown> "
9128 #: ../fish/guestfish-actions.pod:2112
9130 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9131 "get-product-name>, L</inspect-get-major-version>."
9135 #: ../fish/guestfish-actions.pod:2116
9136 msgid "inspect-get-roots"
9137 msgstr "inspect-get-roots"
9140 #: ../fish/guestfish-actions.pod:2118
9143 " inspect-get-roots\n"
9146 " inspect-get-roots\n"
9150 #: ../fish/guestfish-actions.pod:2120
9152 "This function is a convenient way to get the list of root devices, as "
9153 "returned from a previous call to L</inspect-os>, but without redoing the "
9154 "whole inspection process."
9158 #: ../fish/guestfish-actions.pod:2124
9160 "This returns an empty list if either no root devices were found or the "
9161 "caller has not called L</inspect-os>."
9165 #: ../fish/guestfish-actions.pod:2129
9166 msgid "inspect-get-type"
9167 msgstr "inspect-get-type"
9170 #: ../fish/guestfish-actions.pod:2131
9173 " inspect-get-type root\n"
9176 " inspect-get-type корінь\n"
9180 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9182 "This returns the type of the inspected operating system. Currently defined "
9187 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
9192 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
9193 msgid "Any Linux-based operating system."
9197 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
9198 msgid "Any Microsoft Windows operating system."
9202 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
9204 msgstr "\"freebsd\""
9207 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
9212 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
9213 msgid "The operating system type could not be determined."
9217 #: ../fish/guestfish-actions.pod:2161
9218 msgid "inspect-get-windows-current-control-set"
9222 #: ../fish/guestfish-actions.pod:2163
9225 " inspect-get-windows-current-control-set root\n"
9230 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
9232 "This returns the Windows CurrentControlSet of the inspected guest. The "
9233 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9237 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
9239 "This call assumes that the guest is Windows and that the Registry could be "
9240 "examined by inspection. If this is not the case then an error is returned."
9244 #: ../fish/guestfish-actions.pod:2174
9245 msgid "inspect-get-windows-systemroot"
9246 msgstr "inspect-get-windows-systemroot"
9249 #: ../fish/guestfish-actions.pod:2176
9252 " inspect-get-windows-systemroot root\n"
9255 " inspect-get-windows-systemroot корінь\n"
9259 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
9261 "This returns the Windows systemroot of the inspected guest. The systemroot "
9262 "is a directory path such as C</WINDOWS>."
9266 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
9268 "This call assumes that the guest is Windows and that the systemroot could be "
9269 "determined by inspection. If this is not the case then an error is returned."
9273 #: ../fish/guestfish-actions.pod:2187
9274 msgid "inspect-is-live"
9275 msgstr "inspect-is-live"
9278 #: ../fish/guestfish-actions.pod:2189
9281 " inspect-is-live root\n"
9284 " inspect-is-live корінь\n"
9288 #: ../fish/guestfish-actions.pod:2191
9290 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9291 "then this returns true if a live image was detected on the disk."
9295 #: ../fish/guestfish-actions.pod:2197
9296 msgid "inspect-is-multipart"
9297 msgstr "inspect-is-multipart"
9300 #: ../fish/guestfish-actions.pod:2199
9303 " inspect-is-multipart root\n"
9306 " inspect-is-multipart корінь\n"
9310 #: ../fish/guestfish-actions.pod:2201
9312 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9313 "then this returns true if the disk is part of a set."
9317 #: ../fish/guestfish-actions.pod:2207
9318 msgid "inspect-is-netinst"
9319 msgstr "inspect-is-netinst"
9322 #: ../fish/guestfish-actions.pod:2209
9325 " inspect-is-netinst root\n"
9328 " inspect-is-netinst корінь\n"
9332 #: ../fish/guestfish-actions.pod:2211
9334 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9335 "then this returns true if the disk is a network installer, ie. not a self-"
9336 "contained install CD but one which is likely to require network access to "
9337 "complete the install."
9341 #: ../fish/guestfish-actions.pod:2219
9342 msgid "inspect-list-applications"
9343 msgstr "inspect-list-applications"
9346 #: ../fish/guestfish-actions.pod:2221
9349 " inspect-list-applications root\n"
9352 " inspect-list-applications кореневий_каталог\n"
9356 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
9357 msgid "Return the list of applications installed in the operating system."
9361 #: ../fish/guestfish-actions.pod:2225
9363 "I<Note:> This call works differently from other parts of the inspection "
9364 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9365 "then mount up the disks, before calling this. Listing applications is a "
9366 "significantly more difficult operation which requires access to the full "
9367 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9368 "are just returning data cached in the libguestfs handle, this call actually "
9369 "reads parts of the mounted filesystems during the call."
9373 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
9375 "This returns an empty list if the inspection code was not able to determine "
9376 "the list of applications."
9380 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
9381 msgid "The application structure contains the following fields:"
9385 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9387 msgstr "C<app_name>"
9390 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9392 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9393 "guests, this is the package name."
9397 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9398 msgid "C<app_display_name>"
9399 msgstr "C<app_display_name>"
9402 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9404 "The display name of the application, sometimes localized to the install "
9405 "language of the guest operating system."
9409 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9411 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9412 "to display something can use C<app_name> instead."
9416 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9417 msgid "C<app_epoch>"
9418 msgstr "C<app_epoch>"
9421 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9423 "For package managers which use epochs, this contains the epoch of the "
9424 "package (an integer). If unavailable, this is returned as C<0>."
9428 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9429 msgid "C<app_version>"
9430 msgstr "C<app_version>"
9433 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9435 "The version string of the application or package. If unavailable this is "
9436 "returned as an empty string C<\"\">."
9440 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
9441 msgid "C<app_release>"
9442 msgstr "C<app_release>"
9445 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
9447 "The release string of the application or package, for package managers that "
9448 "use this. If unavailable this is returned as an empty string C<\"\">."
9452 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9453 msgid "C<app_install_path>"
9454 msgstr "C<app_install_path>"
9457 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9459 "The installation path of the application (on operating systems such as "
9460 "Windows which use installation paths). This path is in the format used by "
9461 "the guest operating system, it is not a libguestfs path."
9465 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9466 msgid "If unavailable this is returned as an empty string C<\"\">."
9470 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9471 msgid "C<app_trans_path>"
9472 msgstr "C<app_trans_path>"
9475 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9477 "The install path translated into a libguestfs path. If unavailable this is "
9478 "returned as an empty string C<\"\">."
9482 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
9483 msgid "C<app_publisher>"
9484 msgstr "C<app_publisher>"
9487 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9489 "The name of the publisher of the application, for package managers that use "
9490 "this. If unavailable this is returned as an empty string C<\"\">."
9494 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9499 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9501 "The URL (eg. upstream URL) of the application. If unavailable this is "
9502 "returned as an empty string C<\"\">."
9506 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9507 msgid "C<app_source_package>"
9508 msgstr "C<app_source_package>"
9511 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9513 "For packaging systems which support this, the name of the source package. "
9514 "If unavailable this is returned as an empty string C<\"\">."
9518 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9519 msgid "C<app_summary>"
9520 msgstr "C<app_summary>"
9523 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9525 "A short (usually one line) description of the application or package. If "
9526 "unavailable this is returned as an empty string C<\"\">."
9530 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9531 msgid "C<app_description>"
9532 msgstr "C<app_description>"
9535 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9537 "A longer description of the application or package. If unavailable this is "
9538 "returned as an empty string C<\"\">."
9542 #: ../fish/guestfish-actions.pod:2315
9547 #: ../fish/guestfish-actions.pod:2317
9557 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9559 "This function uses other libguestfs functions and certain heuristics to "
9560 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9561 "for operating systems."
9565 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9566 msgid "The list returned is empty if no operating systems were found."
9570 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9572 "If one operating system was found, then this returns a list with a single "
9573 "element, which is the name of the root filesystem of this operating system. "
9574 "It is also possible for this function to return a list containing more than "
9575 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9576 "element being the root filesystem of one of the operating systems."
9580 #: ../fish/guestfish-actions.pod:2332
9582 "You can pass the root string(s) returned to other L</inspect-get-*> "
9583 "functions in order to query further information about each operating system, "
9584 "such as the name and version."
9588 #: ../fish/guestfish-actions.pod:2337
9590 "This function uses other libguestfs features such as L</mount-ro> and L</"
9591 "umount-all> in order to mount and unmount filesystems and look at the "
9592 "contents. This should be called with no disks currently mounted. The "
9593 "function may also use Augeas, so any existing Augeas handle will be closed."
9597 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9599 "This function cannot decrypt encrypted disks. The caller must do that first "
9600 "(supplying the necessary keys) if the disk is encrypted."
9604 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9605 #: ../fish/guestfish-actions.pod:2606
9606 msgid "See also L</list-filesystems>."
9607 msgstr "Див. також L</list-filesystems>."
9610 #: ../fish/guestfish-actions.pod:2351
9612 msgstr "is-blockdev"
9615 #: ../fish/guestfish-actions.pod:2353
9618 " is-blockdev path\n"
9621 " is-blockdev шлях\n"
9625 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9627 "This returns C<true> if and only if there is a block device with the given "
9632 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9633 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9634 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9635 #: ../fish/guestfish-actions.pod:2457
9636 msgid "See also L</stat>."
9637 msgstr "Див. також L</stat>."
9640 #: ../fish/guestfish-actions.pod:2360
9645 #: ../fish/guestfish-actions.pod:2362
9655 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9657 "This returns true iff this handle is busy processing a command (in the "
9662 #: ../fish/guestfish-actions.pod:2369
9667 #: ../fish/guestfish-actions.pod:2371
9670 " is-chardev path\n"
9673 " is-chardev шлях\n"
9677 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9679 "This returns C<true> if and only if there is a character device with the "
9680 "given C<path> name."
9684 #: ../fish/guestfish-actions.pod:2378
9689 #: ../fish/guestfish-actions.pod:2380
9699 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9701 "This returns true iff this handle is being configured (in the C<CONFIG> "
9706 #: ../fish/guestfish-actions.pod:2387
9711 #: ../fish/guestfish-actions.pod:2389
9721 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9723 "This returns C<true> if and only if there is a directory with the given "
9724 "C<path> name. Note that it returns false for other objects like files."
9728 #: ../fish/guestfish-actions.pod:2397
9733 #: ../fish/guestfish-actions.pod:2399
9743 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9745 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
9746 "given C<path> name."
9750 #: ../fish/guestfish-actions.pod:2406
9755 #: ../fish/guestfish-actions.pod:2408
9765 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9767 "This returns C<true> if and only if there is a regular file with the given "
9768 "C<path> name. Note that it returns false for other objects like directories."
9772 #: ../fish/guestfish-actions.pod:2416
9773 msgid "is-launching"
9774 msgstr "is-launching"
9777 #: ../fish/guestfish-actions.pod:2418
9787 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9789 "This returns true iff this handle is launching the subprocess (in the "
9790 "C<LAUNCHING> state)."
9794 #: ../fish/guestfish-actions.pod:2425
9799 #: ../fish/guestfish-actions.pod:2427
9809 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9811 "This command tests whether C<device> is a logical volume, and returns true "
9812 "iff this is the case."
9816 #: ../fish/guestfish-actions.pod:2432
9821 #: ../fish/guestfish-actions.pod:2434
9831 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9833 "This returns true iff this handle is ready to accept commands (in the "
9838 #: ../fish/guestfish-actions.pod:2441
9843 #: ../fish/guestfish-actions.pod:2443
9853 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9855 "This returns C<true> if and only if there is a Unix domain socket with the "
9856 "given C<path> name."
9860 #: ../fish/guestfish-actions.pod:2450
9865 #: ../fish/guestfish-actions.pod:2452
9868 " is-symlink path\n"
9871 " is-symlink шлях\n"
9875 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9877 "This returns C<true> if and only if there is a symbolic link with the given "
9882 #: ../fish/guestfish-actions.pod:2459
9887 #: ../fish/guestfish-actions.pod:2461
9895 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9897 "This returns true iff the file exists and the file is empty or it contains "
9902 #: ../fish/guestfish-actions.pod:2466
9903 msgid "is-zero-device"
9907 #: ../fish/guestfish-actions.pod:2468
9910 " is-zero-device device\n"
9915 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9916 msgid "This returns true iff the device exists and contains all zero bytes."
9920 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9921 msgid "Note that for large devices this can take a long time to run."
9925 #: ../fish/guestfish-actions.pod:2474
9926 msgid "kill-subprocess"
9927 msgstr "kill-subprocess"
9930 #: ../fish/guestfish-actions.pod:2476
9933 " kill-subprocess\n"
9936 " kill-subprocess\n"
9940 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9941 msgid "This kills the qemu subprocess. You should never need to call this."
9945 #: ../fish/guestfish-actions.pod:2480
9950 #: ../fish/guestfish-actions.pod:2482
9955 #: ../fish/guestfish-actions.pod:2484
9965 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9967 "Internally libguestfs is implemented by running a virtual machine using "
9972 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9974 "You should call this after configuring the handle (eg. adding drives) but "
9975 "before performing any actions."
9979 #: ../fish/guestfish-actions.pod:2492
9984 #: ../fish/guestfish-actions.pod:2494
9987 " lchown owner group path\n"
9990 " lchown власник група шлях\n"
9994 #: ../fish/guestfish-actions.pod:2496
9996 "Change the file owner to C<owner> and group to C<group>. This is like L</"
9997 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10002 #: ../fish/guestfish-actions.pod:2504
10007 #: ../fish/guestfish-actions.pod:2506
10010 " lgetxattr path name\n"
10013 " lgetxattr шлях назва\n"
10017 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
10019 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10020 "is a symlink, then this call returns an extended attribute from the symlink."
10024 #: ../fish/guestfish-actions.pod:2522
10025 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10026 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10029 #: ../fish/guestfish-actions.pod:2524
10031 msgstr "lgetxattrs"
10034 #: ../fish/guestfish-actions.pod:2526
10037 " lgetxattrs path\n"
10040 " lgetxattrs шлях\n"
10044 #: ../fish/guestfish-actions.pod:2528
10046 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10047 "it returns the extended attributes of the link itself."
10051 #: ../fish/guestfish-actions.pod:2532
10056 #: ../fish/guestfish-actions.pod:2534
10064 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
10066 "List all 9p filesystems attached to the guest. A list of mount tags is "
10071 #: ../fish/guestfish-actions.pod:2539
10072 msgid "list-devices"
10073 msgstr "list-devices"
10076 #: ../fish/guestfish-actions.pod:2541
10086 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
10087 msgid "List all the block devices."
10091 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
10092 msgid "The full block device names are returned, eg. C</dev/sda>."
10096 #: ../fish/guestfish-actions.pod:2549
10097 msgid "list-dm-devices"
10101 #: ../fish/guestfish-actions.pod:2551
10104 " list-dm-devices\n"
10109 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
10110 msgid "List all device mapper devices."
10114 #: ../fish/guestfish-actions.pod:2555
10116 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10117 "previous call to L</luks-open>."
10121 #: ../fish/guestfish-actions.pod:2558
10123 "Device mapper devices which correspond to logical volumes are I<not> "
10124 "returned in this list. Call L</lvs> if you want to list logical volumes."
10128 #: ../fish/guestfish-actions.pod:2562
10129 msgid "list-filesystems"
10130 msgstr "list-filesystems"
10133 #: ../fish/guestfish-actions.pod:2564
10136 " list-filesystems\n"
10139 " list-filesystems\n"
10143 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
10145 "This inspection command looks for filesystems on partitions, block devices "
10146 "and logical volumes, returning a list of devices containing filesystems and "
10151 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
10153 "The return value is a hash, where the keys are the devices containing "
10154 "filesystems, and the values are the filesystem types. For example:"
10158 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10161 " \"/dev/sda1\" => \"ntfs\"\n"
10162 " \"/dev/sda2\" => \"ext2\"\n"
10163 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10164 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10169 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
10171 "The value can have the special value \"unknown\", meaning the content of the "
10172 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10176 #: ../fish/guestfish-actions.pod:2583
10178 "This command runs other libguestfs commands, which might include L</mount> "
10179 "and L</umount>, and therefore you should use this soon after launch and only "
10180 "when nothing is mounted."
10184 #: ../fish/guestfish-actions.pod:2587
10186 "Not all of the filesystems returned will be mountable. In particular, swap "
10187 "partitions are returned in the list. Also this command does not check that "
10188 "each filesystem found is valid and mountable, and some filesystems might be "
10189 "mountable but require special options. Filesystems may not all belong to a "
10190 "single logical operating system (use L</inspect-os> to look for OSes)."
10194 #: ../fish/guestfish-actions.pod:2595
10195 msgid "list-partitions"
10196 msgstr "list-partitions"
10199 #: ../fish/guestfish-actions.pod:2597
10202 " list-partitions\n"
10205 " list-partitions\n"
10209 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
10210 msgid "List all the partitions detected on all block devices."
10214 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
10215 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10219 #: ../fish/guestfish-actions.pod:2603
10221 "This does not return logical volumes. For that you will need to call L</"
10226 #: ../fish/guestfish-actions.pod:2608
10231 #: ../fish/guestfish-actions.pod:2610
10241 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
10243 "List the files in C<directory> (relative to the root directory, there is no "
10244 "cwd) in the format of 'ls -la'."
10248 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
10250 "This command is mostly useful for interactive sessions. It is I<not> "
10251 "intended that you try to parse the output string."
10255 #: ../fish/guestfish-actions.pod:2618
10260 #: ../fish/guestfish-actions.pod:2620
10263 " ln target linkname\n"
10266 " ln призначення назва_посилання\n"
10270 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
10271 msgid "This command creates a hard link using the C<ln> command."
10275 #: ../fish/guestfish-actions.pod:2624
10280 #: ../fish/guestfish-actions.pod:2626
10283 " ln-f target linkname\n"
10286 " ln-f призначення назва_посилання\n"
10290 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
10292 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10293 "option removes the link (C<linkname>) if it exists already."
10297 #: ../fish/guestfish-actions.pod:2631
10302 #: ../fish/guestfish-actions.pod:2633
10305 " ln-s target linkname\n"
10308 " ln-s призначення назва_посилання\n"
10312 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
10313 msgid "This command creates a symbolic link using the C<ln -s> command."
10317 #: ../fish/guestfish-actions.pod:2637
10322 #: ../fish/guestfish-actions.pod:2639
10325 " ln-sf target linkname\n"
10328 " ln-sf призначення назва_посилання\n"
10332 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
10334 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10335 "option removes the link (C<linkname>) if it exists already."
10339 #: ../fish/guestfish-actions.pod:2644
10340 msgid "lremovexattr"
10341 msgstr "lremovexattr"
10344 #: ../fish/guestfish-actions.pod:2646
10347 " lremovexattr xattr path\n"
10352 #: ../fish/guestfish-actions.pod:2648
10354 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10355 "it removes an extended attribute of the link itself."
10359 #: ../fish/guestfish-actions.pod:2652
10364 #: ../fish/guestfish-actions.pod:2654
10374 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
10376 "List the files in C<directory> (relative to the root directory, there is no "
10377 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10381 #: ../fish/guestfish-actions.pod:2660
10383 "This command is mostly useful for interactive sessions. Programs should "
10384 "probably use L</readdir> instead."
10388 #: ../fish/guestfish-actions.pod:2663
10393 #: ../fish/guestfish-actions.pod:2665
10396 " lsetxattr xattr val vallen path\n"
10401 #: ../fish/guestfish-actions.pod:2667
10403 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10404 "sets an extended attribute of the link itself."
10408 #: ../fish/guestfish-actions.pod:2671
10413 #: ../fish/guestfish-actions.pod:2673
10423 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
10424 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
10425 msgid "Returns file information for the given C<path>."
10429 #: ../fish/guestfish-actions.pod:2677
10431 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10432 "the link is stat-ed, not the file it refers to."
10436 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
10437 msgid "This is the same as the C<lstat(2)> system call."
10441 #: ../fish/guestfish-actions.pod:2683
10446 #: ../fish/guestfish-actions.pod:2685
10449 " lstatlist path 'names ...'\n"
10454 #: ../fish/guestfish-actions.pod:2687
10456 "This call allows you to perform the L</lstat> operation on multiple files, "
10457 "where all files are in the directory C<path>. C<names> is the list of files "
10458 "from this directory."
10462 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
10464 "On return you get a list of stat structs, with a one-to-one correspondence "
10465 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10466 "then the C<ino> field of that structure is set to C<-1>."
10470 #: ../fish/guestfish-actions.pod:2696
10472 "This call is intended for programs that want to efficiently list a directory "
10473 "contents without making many round-trips. See also L</lxattrlist> for a "
10474 "similarly efficient call for getting extended attributes. Very long "
10475 "directory listings might cause the protocol message size to be exceeded, "
10476 "causing this call to fail. The caller must split up such requests into "
10477 "smaller groups of names."
10481 #: ../fish/guestfish-actions.pod:2704
10482 msgid "luks-add-key"
10483 msgstr "luks-add-key"
10486 #: ../fish/guestfish-actions.pod:2706
10489 " luks-add-key device keyslot\n"
10494 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
10496 "This command adds a new key on LUKS device C<device>. C<key> is any "
10497 "existing key, and is used to access the device. C<newkey> is the new key to "
10498 "add. C<keyslot> is the key slot that will be replaced."
10502 #: ../fish/guestfish-actions.pod:2713
10504 "Note that if C<keyslot> already contains a key, then this command will "
10505 "fail. You have to use L</luks-kill-slot> first to remove that key."
10509 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
10510 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
10511 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
10513 "This command has one or more key or passphrase parameters. Guestfish will "
10514 "prompt for these separately."
10518 #: ../fish/guestfish-actions.pod:2720
10520 msgstr "luks-close"
10523 #: ../fish/guestfish-actions.pod:2722
10526 " luks-close device\n"
10529 " luks-close пристрій\n"
10533 #: ../fish/guestfish-actions.pod:2724
10535 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10536 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10537 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10542 #: ../fish/guestfish-actions.pod:2730
10543 msgid "luks-format"
10544 msgstr "luks-format"
10547 #: ../fish/guestfish-actions.pod:2732
10550 " luks-format device keyslot\n"
10555 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
10557 "This command erases existing data on C<device> and formats the device as a "
10558 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10559 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10563 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
10564 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
10565 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
10566 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
10567 #: ../fish/guestfish-actions.pod:5137 ../src/guestfs-actions.pod:4058
10568 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
10569 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
10570 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6573
10571 #: ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:7804
10573 "B<This command is dangerous. Without careful use you can easily destroy all "
10578 #: ../fish/guestfish-actions.pod:2745
10579 msgid "luks-format-cipher"
10580 msgstr "luks-format-cipher"
10583 #: ../fish/guestfish-actions.pod:2747
10586 " luks-format-cipher device keyslot cipher\n"
10591 #: ../fish/guestfish-actions.pod:2749
10593 "This command is the same as L</luks-format> but it also allows you to set "
10594 "the C<cipher> used."
10598 #: ../fish/guestfish-actions.pod:2758
10599 msgid "luks-kill-slot"
10600 msgstr "luks-kill-slot"
10603 #: ../fish/guestfish-actions.pod:2760
10606 " luks-kill-slot device keyslot\n"
10611 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10613 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10614 "device C<device>. C<key> must be one of the I<other> keys."
10618 #: ../fish/guestfish-actions.pod:2769
10623 #: ../fish/guestfish-actions.pod:2771
10626 " luks-open device mapname\n"
10631 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10633 "This command opens a block device which has been encrypted according to the "
10634 "Linux Unified Key Setup (LUKS) standard."
10638 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10639 msgid "C<device> is the encrypted block device or partition."
10643 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10645 "The caller must supply one of the keys associated with the LUKS block "
10646 "device, in the C<key> parameter."
10650 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10652 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
10653 "writes to this block device are decrypted from and encrypted to the "
10654 "underlying C<device> respectively."
10658 #: ../fish/guestfish-actions.pod:2785
10660 "If this block device contains LVM volume groups, then calling L</vgscan> "
10661 "followed by L</vg-activate-all> will make them visible."
10665 #: ../fish/guestfish-actions.pod:2789
10666 msgid "Use L</list-dm-devices> to list all device mapper devices."
10670 #: ../fish/guestfish-actions.pod:2795
10671 msgid "luks-open-ro"
10672 msgstr "luks-open-ro"
10675 #: ../fish/guestfish-actions.pod:2797
10678 " luks-open-ro device mapname\n"
10683 #: ../fish/guestfish-actions.pod:2799
10685 "This is the same as L</luks-open> except that a read-only mapping is created."
10689 #: ../fish/guestfish-actions.pod:2805
10694 #: ../fish/guestfish-actions.pod:2807
10697 " lvcreate logvol volgroup mbytes\n"
10702 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10704 "This creates an LVM logical volume called C<logvol> on the volume group "
10705 "C<volgroup>, with C<size> megabytes."
10709 #: ../fish/guestfish-actions.pod:2812
10710 msgid "lvm-canonical-lv-name"
10711 msgstr "lvm-canonical-lv-name"
10714 #: ../fish/guestfish-actions.pod:2814
10717 " lvm-canonical-lv-name lvname\n"
10722 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10724 "This converts alternative naming schemes for LVs that you might find to the "
10725 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10730 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10732 "This command returns an error if the C<lvname> parameter does not refer to a "
10737 #: ../fish/guestfish-actions.pod:2823
10738 msgid "See also L</is-lv>."
10739 msgstr "Див. також L</is-lv>."
10742 #: ../fish/guestfish-actions.pod:2825
10743 msgid "lvm-clear-filter"
10744 msgstr "lvm-clear-filter"
10747 #: ../fish/guestfish-actions.pod:2827
10750 " lvm-clear-filter\n"
10753 " lvm-clear-filter\n"
10757 #: ../fish/guestfish-actions.pod:2829
10759 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
10764 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10765 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10767 "This command also clears the LVM cache and performs a volume group scan."
10771 #: ../fish/guestfish-actions.pod:2835
10772 msgid "lvm-remove-all"
10773 msgstr "lvm-remove-all"
10776 #: ../fish/guestfish-actions.pod:2837
10779 " lvm-remove-all\n"
10782 " lvm-remove-all\n"
10786 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10788 "This command removes all LVM logical volumes, volume groups and physical "
10793 #: ../fish/guestfish-actions.pod:2845
10794 msgid "lvm-set-filter"
10795 msgstr "lvm-set-filter"
10798 #: ../fish/guestfish-actions.pod:2847
10801 " lvm-set-filter 'devices ...'\n"
10804 " lvm-set-filter 'пристрої...'\n"
10808 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10810 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10811 "block devices in the list C<devices>, and will ignore all other attached "
10816 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10818 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10819 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
10820 "there are two types of duplication possible: either cloned PVs/VGs which "
10821 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10822 "same name. In normal operation you cannot create this situation, but you "
10823 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
10824 "inside the LVM metadata."
10828 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10829 msgid "You can filter whole block devices or individual partitions."
10833 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10835 "You cannot use this if any VG is currently in use (eg. contains a mounted "
10836 "filesystem), even if you are not filtering out that VG."
10840 #: ../fish/guestfish-actions.pod:2872
10845 #: ../fish/guestfish-actions.pod:2874
10848 " lvremove device\n"
10851 " lvremove пристрій\n"
10855 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10857 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10858 "LV, such as C</dev/VG/LV>."
10862 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10864 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10869 #: ../fish/guestfish-actions.pod:2882
10874 #: ../fish/guestfish-actions.pod:2884
10877 " lvrename logvol newlogvol\n"
10882 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10883 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10887 #: ../fish/guestfish-actions.pod:2888
10892 #: ../fish/guestfish-actions.pod:2890
10895 " lvresize device mbytes\n"
10900 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10902 "This resizes (expands or shrinks) an existing LVM logical volume to "
10903 "C<mbytes>. When reducing, data in the reduced part is lost."
10907 #: ../fish/guestfish-actions.pod:2896
10908 msgid "lvresize-free"
10909 msgstr "lvresize-free"
10912 #: ../fish/guestfish-actions.pod:2898
10915 " lvresize-free lv percent\n"
10920 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10922 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10923 "remaining free space in the volume group. Commonly you would call this with "
10924 "pc = 100 which expands the logical volume as much as possible, using all "
10925 "remaining free space in the volume group."
10929 #: ../fish/guestfish-actions.pod:2906
10934 #: ../fish/guestfish-actions.pod:2908
10944 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10946 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10951 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10953 "This returns a list of the logical volume device names (eg. C</dev/"
10954 "VolGroup00/LogVol00>)."
10958 #: ../fish/guestfish-actions.pod:2916
10959 msgid "See also L</lvs-full>, L</list-filesystems>."
10960 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10963 #: ../fish/guestfish-actions.pod:2918
10968 #: ../fish/guestfish-actions.pod:2920
10978 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10980 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10981 "(8)> command. The \"full\" version includes all fields."
10985 #: ../fish/guestfish-actions.pod:2925
10990 #: ../fish/guestfish-actions.pod:2927
10996 " lvuuid пристрій\n"
11000 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
11001 msgid "This command returns the UUID of the LVM LV C<device>."
11005 #: ../fish/guestfish-actions.pod:2931
11007 msgstr "lxattrlist"
11010 #: ../fish/guestfish-actions.pod:2933
11013 " lxattrlist path 'names ...'\n"
11018 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
11020 "This call allows you to get the extended attributes of multiple files, where "
11021 "all files are in the directory C<path>. C<names> is the list of files from "
11026 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
11028 "On return you get a flat list of xattr structs which must be interpreted "
11029 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11030 "C<attrval> in this struct is zero-length to indicate there was an error "
11031 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11032 "number (the number of following attributes for this file, which could be C<"
11033 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11034 "for the first named file. This repeats for the second and subsequent files."
11038 #: ../fish/guestfish-actions.pod:2949
11040 "This call is intended for programs that want to efficiently list a directory "
11041 "contents without making many round-trips. See also L</lstatlist> for a "
11042 "similarly efficient call for getting standard stats. Very long directory "
11043 "listings might cause the protocol message size to be exceeded, causing this "
11044 "call to fail. The caller must split up such requests into smaller groups of "
11049 #: ../fish/guestfish-actions.pod:2957
11054 #: ../fish/guestfish-actions.pod:2959
11064 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
11065 msgid "Create a directory named C<path>."
11069 #: ../fish/guestfish-actions.pod:2963
11071 msgstr "mkdir-mode"
11074 #: ../fish/guestfish-actions.pod:2965
11077 " mkdir-mode path mode\n"
11080 " mkdir-mode шлях режим\n"
11084 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
11086 "This command creates a directory, setting the initial permissions of the "
11087 "directory to C<mode>."
11091 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
11093 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11094 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11099 #: ../fish/guestfish-actions.pod:2974
11100 msgid "See also L</mkdir>, L</umask>"
11101 msgstr "Див. також L</mkdir>, L</umask>"
11104 #: ../fish/guestfish-actions.pod:2976
11109 #: ../fish/guestfish-actions.pod:2978
11119 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
11121 "Create a directory named C<path>, creating any parent directories as "
11122 "necessary. This is like the C<mkdir -p> shell command."
11126 #: ../fish/guestfish-actions.pod:2983
11131 #: ../fish/guestfish-actions.pod:2985
11134 " mkdtemp template\n"
11137 " mkdtemp шаблон\n"
11141 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11143 "This command creates a temporary directory. The C<template> parameter "
11144 "should be a full pathname for the temporary directory name with the final "
11145 "six characters being \"XXXXXX\"."
11149 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
11151 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11152 "being suitable for Windows filesystems."
11156 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
11157 msgid "The name of the temporary directory that was created is returned."
11161 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
11162 msgid "The temporary directory is created with mode 0700 and is owned by root."
11166 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
11168 "The caller is responsible for deleting the temporary directory and its "
11169 "contents after use."
11173 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
11174 msgid "See also: L<mkdtemp(3)>"
11178 #: ../fish/guestfish-actions.pod:3006
11183 #: ../fish/guestfish-actions.pod:3008
11186 " mke2fs-J fstype blocksize device journal\n"
11191 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
11193 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11194 "C<journal>. It is equivalent to the command:"
11198 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
11201 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11204 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11208 #: ../fish/guestfish-actions.pod:3016
11209 msgid "See also L</mke2journal>."
11210 msgstr "Див. також L</mke2journal>."
11213 #: ../fish/guestfish-actions.pod:3018
11218 #: ../fish/guestfish-actions.pod:3020
11221 " mke2fs-JL fstype blocksize device label\n"
11226 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
11228 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11229 "the journal labeled C<label>."
11233 #: ../fish/guestfish-actions.pod:3025
11234 msgid "See also L</mke2journal-L>."
11235 msgstr "Див. також L</mke2journal-L>."
11238 #: ../fish/guestfish-actions.pod:3027
11243 #: ../fish/guestfish-actions.pod:3029
11246 " mke2fs-JU fstype blocksize device uuid\n"
11251 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
11253 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11254 "the journal with UUID C<uuid>."
11258 #: ../fish/guestfish-actions.pod:3034
11259 msgid "See also L</mke2journal-U>."
11260 msgstr "Див. також L</mke2journal-U>."
11263 #: ../fish/guestfish-actions.pod:3036
11264 msgid "mke2journal"
11265 msgstr "mke2journal"
11268 #: ../fish/guestfish-actions.pod:3038
11271 " mke2journal blocksize device\n"
11276 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
11278 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11283 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
11286 " mke2fs -O journal_dev -b blocksize device\n"
11291 #: ../fish/guestfish-actions.pod:3045
11292 msgid "mke2journal-L"
11293 msgstr "mke2journal-L"
11296 #: ../fish/guestfish-actions.pod:3047
11299 " mke2journal-L blocksize label device\n"
11304 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
11305 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11309 #: ../fish/guestfish-actions.pod:3051
11310 msgid "mke2journal-U"
11311 msgstr "mke2journal-U"
11314 #: ../fish/guestfish-actions.pod:3053
11317 " mke2journal-U blocksize uuid device\n"
11322 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
11323 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11327 #: ../fish/guestfish-actions.pod:3057
11332 #: ../fish/guestfish-actions.pod:3059
11335 " mkfifo mode path\n"
11338 " mkfifo режим шлях\n"
11342 #: ../fish/guestfish-actions.pod:3061
11344 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11345 "is just a convenient wrapper around L</mknod>."
11349 #: ../fish/guestfish-actions.pod:3067
11354 #: ../fish/guestfish-actions.pod:3069
11357 " mkfs fstype device\n"
11360 " mkfs тип_файлової_системи пристрій\n"
11364 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
11366 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11367 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11371 #: ../fish/guestfish-actions.pod:3075
11376 #: ../fish/guestfish-actions.pod:3077
11379 " mkfs-b fstype blocksize device\n"
11384 #: ../fish/guestfish-actions.pod:3079
11386 "This call is similar to L</mkfs>, but it allows you to control the block "
11387 "size of the resulting filesystem. Supported block sizes depend on the "
11388 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11392 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
11393 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:4670
11395 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11400 #: ../fish/guestfish-actions.pod:3087
11402 "This function is deprecated. In new code, use the L</mkfs_opts> call "
11407 #: ../fish/guestfish-actions.pod:3094
11412 #: ../fish/guestfish-actions.pod:3096
11415 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11420 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
11422 "This function creates a filesystem on C<device>. The filesystem type is "
11423 "C<fstype>, for example C<ext3>."
11427 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
11428 msgid "C<blocksize>"
11429 msgstr "C<blocksize>"
11432 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
11434 "The filesystem block size. Supported block sizes depend on the filesystem "
11435 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11440 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
11441 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11445 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
11446 msgid "C<features>"
11447 msgstr "C<features>"
11450 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
11451 msgid "This passes the I<-O> parameter to the external mkfs program."
11455 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11457 "For certain filesystem types, this allows extra filesystem features to be "
11458 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11462 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11464 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11469 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11474 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11476 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11477 "sets the inode size (only for ext2/3/4 filesystems at present)."
11481 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
11482 msgid "C<sectorsize>"
11486 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
11488 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11489 "sets sector size for ufs filesystem."
11493 #: ../fish/guestfish-actions.pod:3141
11494 msgid "mkmountpoint"
11495 msgstr "mkmountpoint"
11498 #: ../fish/guestfish-actions.pod:3143
11501 " mkmountpoint exemptpath\n"
11506 #: ../fish/guestfish-actions.pod:3145
11508 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11509 "to create extra mountpoints before mounting the first filesystem."
11513 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
11515 "These calls are I<only> necessary in some very limited circumstances, mainly "
11516 "the case where you want to mount a mix of unrelated and/or read-only "
11517 "filesystems together."
11521 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11523 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11524 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11525 "inside that. You can unpack this as follows in guestfish:"
11529 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
11532 " add-ro Fedora-11-i686-Live.iso\n"
11534 " mkmountpoint /cd\n"
11535 " mkmountpoint /sqsh\n"
11536 " mkmountpoint /ext3fs\n"
11537 " mount /dev/sda /cd\n"
11538 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11539 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11542 " add-ro Fedora-11-i686-Live.iso\n"
11544 " mkmountpoint /cd\n"
11545 " mkmountpoint /sqsh\n"
11546 " mkmountpoint /ext3fs\n"
11547 " mount /dev/sda /cd\n"
11548 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11549 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11553 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
11554 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11558 #: ../fish/guestfish-actions.pod:3169
11560 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11561 "unexpected errors if you try to mix these calls. It is safest to manually "
11562 "unmount filesystems and remove mountpoints after use."
11566 #: ../fish/guestfish-actions.pod:3173
11568 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11569 "for this to work for manual mountpoints, you must ensure that the innermost "
11570 "mountpoints have the longest pathnames, as in the example code above."
11574 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
11576 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11580 #: ../fish/guestfish-actions.pod:3180
11582 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11583 "L</umount-all> to be called when the handle is closed which can also trigger "
11588 #: ../fish/guestfish-actions.pod:3184
11593 #: ../fish/guestfish-actions.pod:3186
11596 " mknod mode devmajor devminor path\n"
11601 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
11603 "This call creates block or character special devices, or named pipes (FIFOs)."
11607 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
11609 "The C<mode> parameter should be the mode, using the standard constants. "
11610 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11611 "used when creating block and character special devices."
11615 #: ../fish/guestfish-actions.pod:3196
11617 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11618 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11619 "regular file). These constants are available in the standard Linux header "
11620 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11621 "wrappers around this command which bitwise OR in the appropriate constant "
11626 #: ../fish/guestfish-actions.pod:3206
11631 #: ../fish/guestfish-actions.pod:3208
11634 " mknod-b mode devmajor devminor path\n"
11639 #: ../fish/guestfish-actions.pod:3210
11641 "This call creates a block device node called C<path> with mode C<mode> and "
11642 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11643 "wrapper around L</mknod>."
11647 #: ../fish/guestfish-actions.pod:3216
11652 #: ../fish/guestfish-actions.pod:3218
11655 " mknod-c mode devmajor devminor path\n"
11660 #: ../fish/guestfish-actions.pod:3220
11662 "This call creates a char device node called C<path> with mode C<mode> and "
11663 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11664 "wrapper around L</mknod>."
11668 #: ../fish/guestfish-actions.pod:3226
11673 #: ../fish/guestfish-actions.pod:3228
11679 " mkswap пристрій\n"
11683 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11684 msgid "Create a swap partition on C<device>."
11688 #: ../fish/guestfish-actions.pod:3232
11693 #: ../fish/guestfish-actions.pod:3234
11696 " mkswap-L label device\n"
11699 " mkswap-L мітка пристрій\n"
11703 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11704 msgid "Create a swap partition on C<device> with label C<label>."
11708 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11710 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11711 "sda>), just to a partition. This appears to be a limitation of the kernel "
11716 #: ../fish/guestfish-actions.pod:3242
11721 #: ../fish/guestfish-actions.pod:3244
11724 " mkswap-U uuid device\n"
11727 " mkswap-U uuid пристрій\n"
11731 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11732 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11736 #: ../fish/guestfish-actions.pod:3248
11737 msgid "mkswap-file"
11738 msgstr "mkswap-file"
11741 #: ../fish/guestfish-actions.pod:3250
11744 " mkswap-file path\n"
11747 " mkswap-file шлях\n"
11751 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11752 msgid "Create a swap file."
11753 msgstr "Створити файл резервної пам’яті."
11756 #: ../fish/guestfish-actions.pod:3254
11758 "This command just writes a swap file signature to an existing file. To "
11759 "create the file itself, use something like L</fallocate>."
11763 #: ../fish/guestfish-actions.pod:3257
11768 #: ../fish/guestfish-actions.pod:3259
11771 " modprobe modulename\n"
11774 " modprobe назва_модуля\n"
11778 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11779 msgid "This loads a kernel module in the appliance."
11783 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11785 "The kernel module must have been whitelisted when libguestfs was built (see "
11786 "C<appliance/kmod.whitelist.in> in the source)."
11790 #: ../fish/guestfish-actions.pod:3266
11795 #: ../fish/guestfish-actions.pod:3268
11798 " mount device mountpoint\n"
11801 " mount пристрій точка_монтування\n"
11805 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4923
11807 "Mount a guest disk at a position in the filesystem. Block devices are named "
11808 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
11809 "those block devices contain partitions, they will have the usual names (eg. "
11810 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
11814 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
11816 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11817 "mounted on C</> before others can be mounted. Other filesystems can only be "
11818 "mounted on directories which already exist."
11822 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4934
11824 "The mounted filesystem is writable, if we have sufficient permissions on the "
11825 "underlying device."
11829 #: ../fish/guestfish-actions.pod:3284
11831 "B<Important note:> When you use this call, the filesystem options C<sync> "
11832 "and C<noatime> are set implicitly. This was originally done because we "
11833 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11834 "very large negative performance impact and negligible effect on "
11835 "reliability. Therefore we recommend that you avoid using L</mount> in any "
11836 "code that needs performance, and instead use L</mount-options> (use an empty "
11837 "string for the first parameter if you don't want any options)."
11841 #: ../fish/guestfish-actions.pod:3294
11843 "This function is deprecated. In new code, use the L</mount_options> call "
11848 #: ../fish/guestfish-actions.pod:3301
11853 #: ../fish/guestfish-actions.pod:3303
11856 " mount-9p mounttag mountpoint [options:..]\n"
11861 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11863 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11868 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11870 "If required, C<trans=virtio> will be automatically added to the options. "
11871 "Any other options required can be passed in the optional C<options> "
11876 #: ../fish/guestfish-actions.pod:3314
11878 msgstr "mount-loop"
11881 #: ../fish/guestfish-actions.pod:3316
11884 " mount-loop file mountpoint\n"
11889 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11891 "This command lets you mount C<file> (a filesystem image in a file) on a "
11892 "mount point. It is entirely equivalent to the command C<mount -o loop file "
11897 #: ../fish/guestfish-actions.pod:3322
11898 msgid "mount-options"
11899 msgstr "mount-options"
11902 #: ../fish/guestfish-actions.pod:3324
11905 " mount-options options device mountpoint\n"
11910 #: ../fish/guestfish-actions.pod:3326
11912 "This is the same as the L</mount> command, but it allows you to set the "
11913 "mount options as for the L<mount(8)> I<-o> flag."
11917 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11919 "If the C<options> parameter is an empty string, then no options are passed "
11920 "(all options default to whatever the filesystem uses)."
11924 #: ../fish/guestfish-actions.pod:3334
11929 #: ../fish/guestfish-actions.pod:3336
11932 " mount-ro device mountpoint\n"
11935 " mount-ro пристрій точка_монтування\n"
11939 #: ../fish/guestfish-actions.pod:3338
11941 "This is the same as the L</mount> command, but it mounts the filesystem with "
11942 "the read-only (I<-o ro>) flag."
11946 #: ../fish/guestfish-actions.pod:3341
11951 #: ../fish/guestfish-actions.pod:3343
11954 " mount-vfs options vfstype device mountpoint\n"
11959 #: ../fish/guestfish-actions.pod:3345
11961 "This is the same as the L</mount> command, but it allows you to set both the "
11962 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11966 #: ../fish/guestfish-actions.pod:3349
11967 msgid "mountpoints"
11968 msgstr "mountpoints"
11971 #: ../fish/guestfish-actions.pod:3351
11981 #: ../fish/guestfish-actions.pod:3353
11983 "This call is similar to L</mounts>. That call returns a list of devices. "
11984 "This one returns a hash table (map) of device name to directory where the "
11985 "device is mounted."
11989 #: ../fish/guestfish-actions.pod:3357
11994 #: ../fish/guestfish-actions.pod:3359
12004 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12006 "This returns the list of currently mounted filesystems. It returns the list "
12007 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12011 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
12012 msgid "Some internal mounts are not shown."
12016 #: ../fish/guestfish-actions.pod:3366
12017 msgid "See also: L</mountpoints>"
12018 msgstr "Див. також L</mountpoints>"
12021 #: ../fish/guestfish-actions.pod:3368
12026 #: ../fish/guestfish-actions.pod:3370
12032 " mv джерело призначення\n"
12036 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
12038 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12039 "destination filename or destination directory."
12043 #: ../fish/guestfish-actions.pod:3375
12044 msgid "ntfs-3g-probe"
12045 msgstr "ntfs-3g-probe"
12048 #: ../fish/guestfish-actions.pod:3377
12051 " ntfs-3g-probe true|false device\n"
12056 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
12058 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12059 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12060 "write, and some cannot be mounted at all)."
12064 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
12066 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12067 "can be mounted read-write. Set it to false if you want to test if the "
12068 "volume can be mounted read-only."
12072 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
12074 "The return value is an integer which C<0> if the operation would succeed, or "
12075 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12079 #: ../fish/guestfish-actions.pod:3391
12081 msgstr "ntfsresize"
12084 #: ../fish/guestfish-actions.pod:3393
12087 " ntfsresize device\n"
12090 " ntfsresize пристрій\n"
12094 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
12095 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5191
12097 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12098 "size of the underlying device."
12102 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5155
12104 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12105 "consistency check (for safety). You have to boot into Windows to perform "
12106 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12107 "resize filesystems which have been marked in this way. So in effect it is "
12108 "not possible to call ntfsresize multiple times on a single filesystem "
12109 "without booting into Windows between each resize."
12113 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
12114 #: ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5217
12115 msgid "See also L<ntfsresize(8)>."
12119 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
12121 "This function is deprecated. In new code, use the L</ntfsresize_opts> call "
12126 #: ../fish/guestfish-actions.pod:3415
12127 msgid "ntfsresize-opts"
12131 #: ../fish/guestfish-actions.pod:3417
12134 " ntfsresize-opts device [size:..] [force:..]\n"
12139 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12141 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12142 "resized to fit the container (eg. partition)."
12146 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
12151 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
12153 "If this option is true, then force the resize of the filesystem even if the "
12154 "filesystem is marked as requiring a consistency check."
12158 #: ../fish/guestfish-actions.pod:3436
12160 "After the resize operation, the filesystem is always marked as requiring a "
12161 "consistency check (for safety). You have to boot into Windows to perform "
12162 "this check and clear this condition. If you I<don't> set the C<force> "
12163 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12164 "a single filesystem without booting into Windows between each resize."
12168 #: ../fish/guestfish-actions.pod:3449
12169 msgid "ntfsresize-size"
12170 msgstr "ntfsresize-size"
12173 #: ../fish/guestfish-actions.pod:3451
12176 " ntfsresize-size device size\n"
12181 #: ../fish/guestfish-actions.pod:3453
12183 "This command is the same as L</ntfsresize> except that it allows you to "
12184 "specify the new size (in bytes) explicitly."
12188 #: ../fish/guestfish-actions.pod:3463
12193 #: ../fish/guestfish-actions.pod:3465
12196 " part-add device prlogex startsect endsect\n"
12201 #: ../fish/guestfish-actions.pod:3467
12203 "This command adds a partition to C<device>. If there is no partition table "
12204 "on the device, call L</part-init> first."
12208 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12210 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12211 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12212 "C<logical>) and C<e> (or C<extended>) partition types."
12216 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
12218 "C<startsect> and C<endsect> are the start and end of the partition in "
12219 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12220 "from the end of the disk (C<-1> is the last sector)."
12224 #: ../fish/guestfish-actions.pod:3479
12226 "Creating a partition which covers the whole disk is not so easy. Use L</"
12227 "part-disk> to do that."
12231 #: ../fish/guestfish-actions.pod:3482
12236 #: ../fish/guestfish-actions.pod:3484
12239 " part-del device partnum\n"
12244 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
12245 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12249 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
12251 "Note that in the case of MBR partitioning, deleting an extended partition "
12252 "also deletes any logical partitions it contains."
12256 #: ../fish/guestfish-actions.pod:3492
12261 #: ../fish/guestfish-actions.pod:3494
12264 " part-disk device parttype\n"
12267 " part-disk пристрій тип_розділу\n"
12271 #: ../fish/guestfish-actions.pod:3496
12273 "This command is simply a combination of L</part-init> followed by L</part-"
12274 "add> to create a single primary partition covering the whole disk."
12278 #: ../fish/guestfish-actions.pod:3500
12280 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12281 "possible values are described in L</part-init>."
12285 #: ../fish/guestfish-actions.pod:3506
12286 msgid "part-get-bootable"
12287 msgstr "part-get-bootable"
12290 #: ../fish/guestfish-actions.pod:3508
12293 " part-get-bootable device partnum\n"
12298 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
12300 "This command returns true if the partition C<partnum> on C<device> has the "
12301 "bootable flag set."
12305 #: ../fish/guestfish-actions.pod:3513
12306 msgid "See also L</part-set-bootable>."
12307 msgstr "Див. також L</part-set-bootable>."
12310 #: ../fish/guestfish-actions.pod:3515
12311 msgid "part-get-mbr-id"
12312 msgstr "part-get-mbr-id"
12315 #: ../fish/guestfish-actions.pod:3517
12318 " part-get-mbr-id device partnum\n"
12323 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
12325 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12326 "partition C<partnum>."
12330 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
12332 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12333 "undefined results for other partition table types (see L</part-get-"
12338 #: ../fish/guestfish-actions.pod:3526
12339 msgid "part-get-parttype"
12340 msgstr "part-get-parttype"
12343 #: ../fish/guestfish-actions.pod:3528
12346 " part-get-parttype device\n"
12349 " part-get-parttype пристрій\n"
12353 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
12355 "This command examines the partition table on C<device> and returns the "
12356 "partition table type (format) being used."
12360 #: ../fish/guestfish-actions.pod:3533
12362 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12363 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12364 "possible, although unusual. See L</part-init> for a full list."
12368 #: ../fish/guestfish-actions.pod:3538
12373 #: ../fish/guestfish-actions.pod:3540
12376 " part-init device parttype\n"
12381 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
12383 "This creates an empty partition table on C<device> of one of the partition "
12384 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12385 "(for large disks)."
12389 #: ../fish/guestfish-actions.pod:3546
12391 "Initially there are no partitions. Following this, you should call L</part-"
12392 "add> for each partition required."
12396 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
12397 msgid "Possible values for C<parttype> are:"
12401 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
12406 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
12411 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
12412 msgid "Intel EFI / GPT partition table."
12416 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
12418 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12419 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12420 "the C<mbr> format."
12424 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
12429 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
12434 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
12436 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12437 "Windows. This partition type will B<only> work for device sizes up to 2 "
12438 "TB. For large disks we recommend using C<gpt>."
12442 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12444 "Other partition table types that may work but are not supported include:"
12448 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12453 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12454 msgid "AIX disk labels."
12455 msgstr "Мітки дисків AIX."
12458 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12460 #| msgid "B<amiga> | B<rdb>"
12462 msgstr "B<amiga> | B<rdb>"
12465 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12470 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12471 msgid "Amiga \"Rigid Disk Block\" format."
12472 msgstr "Формат \"Rigid Disk Block\" Amiga."
12475 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12480 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12481 msgid "BSD disk labels."
12482 msgstr "Мітки дисків BSD."
12485 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12490 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
12491 msgid "DASD, used on IBM mainframes."
12492 msgstr "DASD, використовувалися у мейнфреймах IBM."
12495 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
12500 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
12501 msgid "MIPS/SGI volumes."
12502 msgstr "Томи MIPS/SGI."
12505 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12510 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12511 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12512 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12515 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12520 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12521 msgid "NEC PC-98 format, common in Japan apparently."
12522 msgstr "Формат NEC PC-98, поширений у Японії."
12525 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12530 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12531 msgid "Sun disk labels."
12532 msgstr "Мітки дисків Sun."
12535 #: ../fish/guestfish-actions.pod:3615
12540 #: ../fish/guestfish-actions.pod:3617
12543 " part-list device\n"
12546 " part-list device\n"
12550 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
12552 "This command parses the partition table on C<device> and returns the list of "
12553 "partitions found."
12557 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
12558 msgid "The fields in the returned structure are:"
12562 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
12563 msgid "B<part_num>"
12564 msgstr "B<part_num>"
12567 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
12568 msgid "Partition number, counting from 1."
12572 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12573 msgid "B<part_start>"
12574 msgstr "B<part_start>"
12577 #: ../fish/guestfish-actions.pod:3632
12579 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12580 "the device's sector size, see L</blockdev-getss>."
12584 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
12585 msgid "B<part_end>"
12586 msgstr "B<part_end>"
12589 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
12590 msgid "End of the partition in bytes."
12594 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
12595 msgid "B<part_size>"
12596 msgstr "B<part_size>"
12599 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12600 msgid "Size of the partition in bytes."
12604 #: ../fish/guestfish-actions.pod:3645
12605 msgid "part-set-bootable"
12606 msgstr "part-set-bootable"
12609 #: ../fish/guestfish-actions.pod:3647
12612 " part-set-bootable device partnum true|false\n"
12617 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
12619 "This sets the bootable flag on partition numbered C<partnum> on device "
12620 "C<device>. Note that partitions are numbered from 1."
12624 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
12626 "The bootable flag is used by some operating systems (notably Windows) to "
12627 "determine which partition to boot from. It is by no means universally "
12632 #: ../fish/guestfish-actions.pod:3656
12633 msgid "part-set-mbr-id"
12634 msgstr "part-set-mbr-id"
12637 #: ../fish/guestfish-actions.pod:3658
12640 " part-set-mbr-id device partnum idbyte\n"
12645 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
12647 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12648 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
12649 "documentation are in fact hexadecimal numbers, but usually documented "
12650 "without any leading \"0x\" which might be confusing."
12654 #: ../fish/guestfish-actions.pod:3670
12655 msgid "part-set-name"
12656 msgstr "part-set-name"
12659 #: ../fish/guestfish-actions.pod:3672
12662 " part-set-name device partnum name\n"
12667 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12669 "This sets the partition name on partition numbered C<partnum> on device "
12670 "C<device>. Note that partitions are numbered from 1."
12674 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12676 "The partition name can only be set on certain types of partition table. "
12677 "This works on C<gpt> but not on C<mbr> partitions."
12681 #: ../fish/guestfish-actions.pod:3680
12682 msgid "part-to-dev"
12683 msgstr "part-to-dev"
12686 #: ../fish/guestfish-actions.pod:3682
12689 " part-to-dev partition\n"
12692 " part-to-dev розділ\n"
12696 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12698 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12699 "partition number, returning the device name (eg. \"/dev/sdb\")."
12703 #: ../fish/guestfish-actions.pod:3688
12705 "The named partition must exist, for example as a string returned from L</"
12706 "list-partitions>."
12710 #: ../fish/guestfish-actions.pod:3691
12711 msgid "ping-daemon"
12712 msgstr "ping-daemon"
12715 #: ../fish/guestfish-actions.pod:3693
12725 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12727 "This is a test probe into the guestfs daemon running inside the qemu "
12728 "subprocess. Calling this function checks that the daemon responds to the "
12729 "ping message, without affecting the daemon or attached block device(s) in "
12734 #: ../fish/guestfish-actions.pod:3700
12739 #: ../fish/guestfish-actions.pod:3702
12742 " pread path count offset\n"
12747 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12749 "This command lets you read part of a file. It reads C<count> bytes of the "
12750 "file, starting at C<offset>, from file C<path>."
12754 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12755 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12757 "This may read fewer bytes than requested. For further details see the "
12758 "L<pread(2)> system call."
12762 #: ../fish/guestfish-actions.pod:3710
12763 msgid "See also L</pwrite>, L</pread-device>."
12764 msgstr "Див. також L</pwrite>, L</pread-device>."
12767 #: ../fish/guestfish-actions.pod:3715
12768 msgid "pread-device"
12769 msgstr "pread-device"
12772 #: ../fish/guestfish-actions.pod:3717
12775 " pread-device device count offset\n"
12780 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12782 "This command lets you read part of a file. It reads C<count> bytes of "
12783 "C<device>, starting at C<offset>."
12787 #: ../fish/guestfish-actions.pod:3725
12788 msgid "See also L</pread>."
12789 msgstr "Див. також L</pread>."
12792 #: ../fish/guestfish-actions.pod:3730
12797 #: ../fish/guestfish-actions.pod:3732
12800 " pvcreate device\n"
12803 " pvcreate пристрій\n"
12807 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12809 "This creates an LVM physical volume on the named C<device>, where C<device> "
12810 "should usually be a partition name such as C</dev/sda1>."
12814 #: ../fish/guestfish-actions.pod:3738
12819 #: ../fish/guestfish-actions.pod:3740
12822 " pvremove device\n"
12825 " pvremove пристрій\n"
12829 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12831 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12836 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12838 "The implementation uses the C<pvremove> command which refuses to wipe "
12839 "physical volumes that contain any volume groups, so you have to remove those "
12844 #: ../fish/guestfish-actions.pod:3749
12849 #: ../fish/guestfish-actions.pod:3751
12852 " pvresize device\n"
12855 " pvresize пристрій\n"
12859 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12861 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12862 "the new size of the underlying device."
12866 #: ../fish/guestfish-actions.pod:3756
12867 msgid "pvresize-size"
12868 msgstr "pvresize-size"
12871 #: ../fish/guestfish-actions.pod:3758
12874 " pvresize-size device size\n"
12879 #: ../fish/guestfish-actions.pod:3760
12881 "This command is the same as L</pvresize> except that it allows you to "
12882 "specify the new size (in bytes) explicitly."
12886 #: ../fish/guestfish-actions.pod:3763
12891 #: ../fish/guestfish-actions.pod:3765
12901 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12903 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12908 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12910 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12915 #: ../fish/guestfish-actions.pod:3773
12916 msgid "See also L</pvs-full>."
12917 msgstr "Див. також L</pvs-full>."
12920 #: ../fish/guestfish-actions.pod:3775
12925 #: ../fish/guestfish-actions.pod:3777
12935 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12937 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12938 "(8)> command. The \"full\" version includes all fields."
12942 #: ../fish/guestfish-actions.pod:3782
12947 #: ../fish/guestfish-actions.pod:3784
12953 " pvuuid пристрій\n"
12957 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12958 msgid "This command returns the UUID of the LVM PV C<device>."
12962 #: ../fish/guestfish-actions.pod:3788
12967 #: ../fish/guestfish-actions.pod:3790
12970 " pwrite path content offset\n"
12975 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12977 "This command writes to part of a file. It writes the data buffer C<content> "
12978 "to the file C<path> starting at offset C<offset>."
12982 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12984 "This command implements the L<pwrite(2)> system call, and like that system "
12985 "call it may not write the full data requested. The return value is the "
12986 "number of bytes that were actually written to the file. This could even be "
12987 "0, although short writes are unlikely for regular files in ordinary "
12992 #: ../fish/guestfish-actions.pod:3801
12993 msgid "See also L</pread>, L</pwrite-device>."
12994 msgstr "Див. також L</pread>, L</pwrite-device>."
12997 #: ../fish/guestfish-actions.pod:3806
12998 msgid "pwrite-device"
12999 msgstr "pwrite-device"
13002 #: ../fish/guestfish-actions.pod:3808
13005 " pwrite-device device content offset\n"
13010 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
13012 "This command writes to part of a device. It writes the data buffer "
13013 "C<content> to C<device> starting at offset C<offset>."
13017 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
13019 "This command implements the L<pwrite(2)> system call, and like that system "
13020 "call it may not write the full data requested (although short writes to disk "
13021 "devices and partitions are probably impossible with standard Linux kernels)."
13025 #: ../fish/guestfish-actions.pod:3818
13026 msgid "See also L</pwrite>."
13027 msgstr "Див. також L</pwrite>."
13030 #: ../fish/guestfish-actions.pod:3823
13035 #: ../fish/guestfish-actions.pod:3825
13038 " read-file path\n"
13041 " read-file шлях\n"
13045 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
13046 msgid "This calls returns the contents of the file C<path> as a buffer."
13050 #: ../fish/guestfish-actions.pod:3830
13052 "Unlike L</cat>, this function can correctly handle files that contain "
13053 "embedded ASCII NUL characters. However unlike L</download>, this function "
13054 "is limited in the total size of file that can be handled."
13058 #: ../fish/guestfish-actions.pod:3838
13060 msgstr "read-lines"
13063 #: ../fish/guestfish-actions.pod:3840
13066 " read-lines path\n"
13069 " read-lines шлях\n"
13073 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
13075 "The file contents are returned as a list of lines. Trailing C<LF> and "
13076 "C<CRLF> character sequences are I<not> returned."
13080 #: ../fish/guestfish-actions.pod:3847
13082 "Note that this function cannot correctly handle binary files (specifically, "
13083 "files containing C<\\0> character which is treated as end of line). For "
13084 "those you need to use the L</read-file> function which has a more complex "
13089 #: ../fish/guestfish-actions.pod:3852
13094 #: ../fish/guestfish-actions.pod:3854
13100 " readdir каталог\n"
13104 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
13105 msgid "This returns the list of directory entries in directory C<dir>."
13109 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
13111 "All entries in the directory are returned, including C<.> and C<..>. The "
13112 "entries are I<not> sorted, but returned in the same order as the underlying "
13117 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13119 "Also this call returns basic file type information about each file. The "
13120 "C<ftyp> field will contain one of the following characters:"
13124 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
13129 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
13130 msgid "Block special"
13131 msgstr "Блоковий особливий"
13134 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
13139 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
13140 msgid "Char special"
13141 msgstr "Символьний особливий"
13144 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
13149 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
13154 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
13159 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
13160 msgid "FIFO (named pipe)"
13161 msgstr "FIFO (іменований канал)"
13164 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
13169 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
13170 msgid "Symbolic link"
13171 msgstr "Символічне посилання"
13174 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
13179 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13180 msgid "Regular file"
13181 msgstr "Звичайний файл"
13184 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13189 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13194 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13199 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13200 msgid "Unknown file type"
13201 msgstr "Невідомий тип файла"
13204 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13209 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13211 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13215 #: ../fish/guestfish-actions.pod:3906
13217 "This function is primarily intended for use by programs. To get a simple "
13218 "list of names, use L</ls>. To get a printable directory for human "
13219 "consumption, use L</ll>."
13223 #: ../fish/guestfish-actions.pod:3910
13228 #: ../fish/guestfish-actions.pod:3912
13238 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
13239 msgid "This command reads the target of a symbolic link."
13243 #: ../fish/guestfish-actions.pod:3916
13244 msgid "readlinklist"
13245 msgstr "readlinklist"
13248 #: ../fish/guestfish-actions.pod:3918
13251 " readlinklist path 'names ...'\n"
13256 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
13258 "This call allows you to do a C<readlink> operation on multiple files, where "
13259 "all files are in the directory C<path>. C<names> is the list of files from "
13264 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
13266 "On return you get a list of strings, with a one-to-one correspondence to the "
13267 "C<names> list. Each string is the value of the symbolic link."
13271 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
13273 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13274 "result string is the empty string C<\"\">. However the whole operation is "
13275 "completed even if there were C<readlink(2)> errors, and so you can call this "
13276 "function with names where you don't know if they are symbolic links already "
13277 "(albeit slightly less efficient)."
13281 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
13283 "This call is intended for programs that want to efficiently list a directory "
13284 "contents without making many round-trips. Very long directory listings "
13285 "might cause the protocol message size to be exceeded, causing this call to "
13286 "fail. The caller must split up such requests into smaller groups of names."
13290 #: ../fish/guestfish-actions.pod:3942
13295 #: ../fish/guestfish-actions.pod:3944
13305 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
13307 "Return the canonicalized absolute pathname of C<path>. The returned path "
13308 "has no C<.>, C<..> or symbolic link path elements."
13312 #: ../fish/guestfish-actions.pod:3949
13313 msgid "removexattr"
13314 msgstr "removexattr"
13317 #: ../fish/guestfish-actions.pod:3951
13320 " removexattr xattr path\n"
13325 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
13327 "This call removes the extended attribute named C<xattr> of the file C<path>."
13331 #: ../fish/guestfish-actions.pod:3956
13332 msgid "See also: L</lremovexattr>, L<attr(5)>."
13333 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13336 #: ../fish/guestfish-actions.pod:3958
13341 #: ../fish/guestfish-actions.pod:3960
13344 " resize2fs device\n"
13347 " resize2fs пристрій\n"
13351 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
13353 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13354 "underlying device."
13358 #: ../fish/guestfish-actions.pod:3965
13360 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13361 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13362 "gives an error about this and sometimes not. In any case, it is always safe "
13363 "to call L</e2fsck-f> before calling this function."
13367 #: ../fish/guestfish-actions.pod:3971
13368 msgid "resize2fs-M"
13369 msgstr "resize2fs-M"
13372 #: ../fish/guestfish-actions.pod:3973
13375 " resize2fs-M device\n"
13378 " resize2fs-M пристрій\n"
13382 #: ../fish/guestfish-actions.pod:3975
13384 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13385 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13390 #: ../fish/guestfish-actions.pod:3979
13392 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13393 "and read the C<Block size> and C<Block count> values. These two numbers, "
13394 "multiplied together, give the resulting size of the minimal filesystem in "
13399 #: ../fish/guestfish-actions.pod:3984
13400 msgid "resize2fs-size"
13401 msgstr "resize2fs-size"
13404 #: ../fish/guestfish-actions.pod:3986
13407 " resize2fs-size device size\n"
13412 #: ../fish/guestfish-actions.pod:3988
13414 "This command is the same as L</resize2fs> except that it allows you to "
13415 "specify the new size (in bytes) explicitly."
13419 #: ../fish/guestfish-actions.pod:3991
13424 #: ../fish/guestfish-actions.pod:3993
13434 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
13435 msgid "Remove the single file C<path>."
13439 #: ../fish/guestfish-actions.pod:3997
13444 #: ../fish/guestfish-actions.pod:3999
13454 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
13456 "Remove the file or directory C<path>, recursively removing the contents if "
13457 "its a directory. This is like the C<rm -rf> shell command."
13461 #: ../fish/guestfish-actions.pod:4005
13466 #: ../fish/guestfish-actions.pod:4007
13476 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
13477 msgid "Remove the single directory C<path>."
13481 #: ../fish/guestfish-actions.pod:4011
13482 msgid "rmmountpoint"
13483 msgstr "rmmountpoint"
13486 #: ../fish/guestfish-actions.pod:4013
13489 " rmmountpoint exemptpath\n"
13494 #: ../fish/guestfish-actions.pod:4015
13496 "This calls removes a mountpoint that was previously created with L</"
13497 "mkmountpoint>. See L</mkmountpoint> for full details."
13501 #: ../fish/guestfish-actions.pod:4019
13502 msgid "scrub-device"
13503 msgstr "scrub-device"
13506 #: ../fish/guestfish-actions.pod:4021
13509 " scrub-device device\n"
13512 " scrub-device пристрій\n"
13516 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
13518 "This command writes patterns over C<device> to make data retrieval more "
13523 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
13524 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
13525 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
13527 "It is an interface to the L<scrub(1)> program. See that manual page for "
13532 #: ../fish/guestfish-actions.pod:4032
13534 msgstr "scrub-file"
13537 #: ../fish/guestfish-actions.pod:4034
13540 " scrub-file file\n"
13543 " scrub-file файл\n"
13547 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
13549 "This command writes patterns over a file to make data retrieval more "
13554 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
13555 msgid "The file is I<removed> after scrubbing."
13559 #: ../fish/guestfish-actions.pod:4044
13560 msgid "scrub-freespace"
13561 msgstr "scrub-freespace"
13564 #: ../fish/guestfish-actions.pod:4046
13567 " scrub-freespace dir\n"
13570 " scrub-freespace каталог\n"
13574 #: ../fish/guestfish-actions.pod:4048
13576 "This command creates the directory C<dir> and then fills it with files until "
13577 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13578 "deletes them. The intention is to scrub any free space on the partition "
13579 "containing C<dir>."
13583 #: ../fish/guestfish-actions.pod:4057
13585 msgstr "set-append"
13588 #: ../fish/guestfish-actions.pod:4059
13593 #: ../fish/guestfish-actions.pod:4061
13596 " set-append append\n"
13601 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
13603 "This function is used to add additional options to the guest kernel command "
13608 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
13610 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13611 "environment variable."
13615 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
13617 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13618 "(libguestfs always adds a few of its own)."
13622 #: ../fish/guestfish-actions.pod:4072
13623 msgid "set-attach-method"
13624 msgstr "set-attach-method"
13627 #: ../fish/guestfish-actions.pod:4074
13628 msgid "attach-method"
13632 #: ../fish/guestfish-actions.pod:4076
13635 " set-attach-method attachmethod\n"
13640 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13642 "Set the method that libguestfs uses to connect to the back end guestfsd "
13643 "daemon. Possible methods are:"
13647 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13648 #: ../src/guestfs.pod:2687
13649 msgid "C<appliance>"
13650 msgstr "C<appliance>"
13653 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13655 "Launch an appliance and connect to it. This is the ordinary method and the "
13660 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
13661 msgid "C<unix:I<path>>"
13662 msgstr "C<unix:I<шлях>>"
13665 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
13666 msgid "Connect to the Unix domain socket I<path>."
13667 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13670 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
13672 "This method lets you connect to an existing daemon or (using virtio-serial) "
13673 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
13674 "RUNNING DAEMONS>."
13678 #: ../fish/guestfish-actions.pod:4098
13679 msgid "set-autosync"
13680 msgstr "set-autosync"
13683 #: ../fish/guestfish-actions.pod:4100
13688 #: ../fish/guestfish-actions.pod:4102
13691 " set-autosync true|false\n"
13694 " set-autosync true|false\n"
13698 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13700 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
13701 "effort attempt to make filesystems consistent and synchronized when the "
13702 "handle is closed (also if the program exits without closing handles)."
13706 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13708 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13709 "disabled by default)."
13713 #: ../fish/guestfish-actions.pod:4112
13715 msgstr "set-direct"
13718 #: ../fish/guestfish-actions.pod:4114
13723 #: ../fish/guestfish-actions.pod:4116
13726 " set-direct true|false\n"
13729 " set-direct true|false\n"
13733 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13735 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13736 "passed directly through to the appliance once it is launched."
13740 #: ../fish/guestfish-actions.pod:4122
13742 "One consequence of this is that log messages aren't caught by the library "
13743 "and handled by L</set-log-message-callback>, but go straight to stdout."
13747 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13748 msgid "You probably don't want to use this unless you know what you are doing."
13752 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13753 msgid "The default is disabled."
13757 #: ../fish/guestfish-actions.pod:4131
13758 msgid "set-e2label"
13759 msgstr "set-e2label"
13762 #: ../fish/guestfish-actions.pod:4133
13765 " set-e2label device label\n"
13770 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13772 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13773 "C<label>. Filesystem labels are limited to 16 characters."
13777 #: ../fish/guestfish-actions.pod:4139
13779 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13780 "label on a filesystem."
13784 #: ../fish/guestfish-actions.pod:4142
13786 msgstr "set-e2uuid"
13789 #: ../fish/guestfish-actions.pod:4144
13792 " set-e2uuid device uuid\n"
13797 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13799 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13800 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
13801 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13805 #: ../fish/guestfish-actions.pod:4151
13807 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13808 "UUID of a filesystem."
13812 #: ../fish/guestfish-actions.pod:4154
13813 msgid "set-memsize"
13814 msgstr "set-memsize"
13817 #: ../fish/guestfish-actions.pod:4156
13822 #: ../fish/guestfish-actions.pod:4158
13825 " set-memsize memsize\n"
13830 #: ../fish/guestfish-actions.pod:4160
13832 "This sets the memory size in megabytes allocated to the qemu subprocess. "
13833 "This only has any effect if called before L</launch>."
13837 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13839 "You can also change this by setting the environment variable "
13840 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13844 #: ../fish/guestfish-actions.pod:4171
13845 msgid "set-network"
13846 msgstr "set-network"
13849 #: ../fish/guestfish-actions.pod:4173
13854 #: ../fish/guestfish-actions.pod:4175
13857 " set-network true|false\n"
13860 " set-network true|false\n"
13864 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13866 "If C<network> is true, then the network is enabled in the libguestfs "
13867 "appliance. The default is false."
13871 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13873 "This affects whether commands are able to access the network (see L<guestfs"
13874 "(3)/RUNNING COMMANDS>)."
13878 #: ../fish/guestfish-actions.pod:4183
13880 "You must call this before calling L</launch>, otherwise it has no effect."
13884 #: ../fish/guestfish-actions.pod:4186
13889 #: ../fish/guestfish-actions.pod:4190
13892 " set-path searchpath\n"
13897 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13898 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13902 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13904 "The default is C<$libdir/guestfs> unless overridden by setting "
13905 "C<LIBGUESTFS_PATH> environment variable."
13909 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13910 msgid "Setting C<path> to C<NULL> restores the default path."
13914 #: ../fish/guestfish-actions.pod:4199
13919 #: ../fish/guestfish-actions.pod:4201
13924 #: ../fish/guestfish-actions.pod:4203
13927 " set-pgroup true|false\n"
13932 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13934 "If C<pgroup> is true, child processes are placed into their own process "
13939 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13941 "The practical upshot of this is that signals like C<SIGINT> (from users "
13942 "pressing C<^C>) won't be received by the child process."
13946 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13948 "The default for this flag is false, because usually you want C<^C> to kill "
13953 #: ../fish/guestfish-actions.pod:4214
13958 #: ../fish/guestfish-actions.pod:4216
13963 #: ../fish/guestfish-actions.pod:4218
13973 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13974 msgid "Set the qemu binary that we will use."
13978 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13980 "The default is chosen when the library was compiled by the configure script."
13984 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13986 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13991 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13992 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13996 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13998 "Note that you should call this function as early as possible after creating "
13999 "the handle. This is because some pre-launch operations depend on testing "
14000 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14001 "don't retest features, and so you might see inconsistent results. Using the "
14002 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14003 "the qemu binary at the same time as the handle is created."
14007 #: ../fish/guestfish-actions.pod:4238
14008 msgid "set-recovery-proc"
14009 msgstr "set-recovery-proc"
14012 #: ../fish/guestfish-actions.pod:4240
14013 msgid "recovery-proc"
14014 msgstr "recovery-proc"
14017 #: ../fish/guestfish-actions.pod:4242
14020 " set-recovery-proc true|false\n"
14023 " set-recovery-proc true|false\n"
14027 #: ../fish/guestfish-actions.pod:4244
14029 "If this is called with the parameter C<false> then L</launch> does not "
14030 "create a recovery process. The purpose of the recovery process is to stop "
14031 "runaway qemu processes in the case where the main program aborts abruptly."
14035 #: ../fish/guestfish-actions.pod:4249
14037 "This only has any effect if called before L</launch>, and the default is "
14042 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
14044 "About the only time when you would want to disable this is if the main "
14045 "process will fork itself into the background (\"daemonize\" itself). In "
14046 "this case the recovery process thinks that the main program has disappeared "
14047 "and so kills qemu, which is not very helpful."
14051 #: ../fish/guestfish-actions.pod:4258
14052 msgid "set-selinux"
14053 msgstr "set-selinux"
14056 #: ../fish/guestfish-actions.pod:4260
14061 #: ../fish/guestfish-actions.pod:4262
14064 " set-selinux true|false\n"
14067 " set-selinux true|false\n"
14071 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
14073 "This sets the selinux flag that is passed to the appliance at boot time. "
14074 "The default is C<selinux=0> (disabled)."
14078 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
14080 "Note that if SELinux is enabled, it is always in Permissive mode "
14081 "(C<enforcing=0>)."
14085 #: ../fish/guestfish-actions.pod:4273
14090 #: ../fish/guestfish-actions.pod:4275
14095 #: ../fish/guestfish-actions.pod:4277
14098 " set-trace true|false\n"
14101 " set-trace true|false\n"
14105 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
14107 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14108 "return values are traced."
14112 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
14114 "If you want to trace C API calls into libguestfs (and other libraries) then "
14115 "possibly a better way is to use the external ltrace(1) command."
14119 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
14121 "Command traces are disabled unless the environment variable "
14122 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14126 #: ../fish/guestfish-actions.pod:4289
14128 "Trace messages are normally sent to C<stderr>, unless you register a "
14129 "callback to send them somewhere else (see L</set-event-callback>)."
14133 #: ../fish/guestfish-actions.pod:4293
14134 msgid "set-verbose"
14135 msgstr "set-verbose"
14138 #: ../fish/guestfish-actions.pod:4295
14143 #: ../fish/guestfish-actions.pod:4297
14146 " set-verbose true|false\n"
14149 " set-verbose true|false\n"
14153 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
14154 msgid "If C<verbose> is true, this turns on verbose messages."
14158 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
14160 "Verbose messages are disabled unless the environment variable "
14161 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14165 #: ../fish/guestfish-actions.pod:4304
14167 "Verbose messages are normally sent to C<stderr>, unless you register a "
14168 "callback to send them somewhere else (see L</set-event-callback>)."
14172 #: ../fish/guestfish-actions.pod:4308
14177 #: ../fish/guestfish-actions.pod:4310
14180 " setcon context\n"
14183 " setcon контекст\n"
14187 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
14189 "This sets the SELinux security context of the daemon to the string "
14194 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
14195 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14199 #: ../fish/guestfish-actions.pod:4317
14204 #: ../fish/guestfish-actions.pod:4319
14207 " setxattr xattr val vallen path\n"
14212 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
14214 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14215 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14219 #: ../fish/guestfish-actions.pod:4325
14220 msgid "See also: L</lsetxattr>, L<attr(5)>."
14221 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14224 #: ../fish/guestfish-actions.pod:4327
14229 #: ../fish/guestfish-actions.pod:4329
14232 " sfdisk device cyls heads sectors 'lines ...'\n"
14237 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
14239 "This is a direct interface to the L<sfdisk(8)> program for creating "
14240 "partitions on block devices."
14244 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6521
14245 msgid "C<device> should be a block device, for example C</dev/sda>."
14249 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6523
14251 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14252 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14253 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14254 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14255 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14256 "the kernel) cannot work out the right geometry and you will need to tell it."
14260 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6531
14262 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14263 "refer to the L<sfdisk(8)> manpage."
14267 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6534
14269 "To create a single partition occupying the whole disk, you would pass "
14270 "C<lines> as a single element list, when the single element being the string "
14275 #: ../fish/guestfish-actions.pod:4351
14276 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14277 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14280 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
14281 #: ../fish/guestfish-actions.pod:4402
14283 "This function is deprecated. In new code, use the L</part_add> call instead."
14287 #: ../fish/guestfish-actions.pod:4364
14292 #: ../fish/guestfish-actions.pod:4366
14295 " sfdiskM device 'lines ...'\n"
14300 #: ../fish/guestfish-actions.pod:4368
14302 "This is a simplified interface to the L</sfdisk> command, where partition "
14303 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14304 "you don't need to specify the cyls, heads and sectors parameters which were "
14305 "rarely if ever used anyway."
14309 #: ../fish/guestfish-actions.pod:4374
14310 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14312 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14315 #: ../fish/guestfish-actions.pod:4387
14320 #: ../fish/guestfish-actions.pod:4389
14323 " sfdisk-N device partnum cyls heads sectors line\n"
14328 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6596
14330 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14331 "(note: C<n> counts from 1)."
14335 #: ../fish/guestfish-actions.pod:4394
14337 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14338 "cyls/heads/sectors parameters."
14342 #: ../fish/guestfish-actions.pod:4397
14343 msgid "See also: L</part-add>"
14344 msgstr "Див. також L</part-add>"
14347 #: ../fish/guestfish-actions.pod:4409
14348 msgid "sfdisk-disk-geometry"
14349 msgstr "sfdisk-disk-geometry"
14352 #: ../fish/guestfish-actions.pod:4411
14355 " sfdisk-disk-geometry device\n"
14358 " sfdisk-disk-geometry пристрій\n"
14362 #: ../fish/guestfish-actions.pod:4413
14364 "This displays the disk geometry of C<device> read from the partition table. "
14365 "Especially in the case where the underlying block device has been resized, "
14366 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14367 "kernel-geometry>)."
14371 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
14372 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
14373 msgid "The result is in human-readable format, and not designed to be parsed."
14377 #: ../fish/guestfish-actions.pod:4421
14378 msgid "sfdisk-kernel-geometry"
14379 msgstr "sfdisk-kernel-geometry"
14382 #: ../fish/guestfish-actions.pod:4423
14385 " sfdisk-kernel-geometry device\n"
14388 " sfdisk-kernel-geometry пристрій\n"
14392 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
14393 msgid "This displays the kernel's idea of the geometry of C<device>."
14397 #: ../fish/guestfish-actions.pod:4430
14402 #: ../fish/guestfish-actions.pod:4432
14405 " sfdisk-l device\n"
14408 " sfdisk-l пристрій\n"
14412 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6659
14414 "This displays the partition table on C<device>, in the human-readable output "
14415 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14419 #: ../fish/guestfish-actions.pod:4438
14420 msgid "See also: L</part-list>"
14421 msgstr "Див. також L</part-list>"
14424 #: ../fish/guestfish-actions.pod:4440
14426 "This function is deprecated. In new code, use the L</part_list> call "
14431 #: ../fish/guestfish-actions.pod:4447
14436 #: ../fish/guestfish-actions.pod:4449
14446 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14448 "This call runs a command from the guest filesystem via the guest's C</bin/"
14453 #: ../fish/guestfish-actions.pod:4454
14454 msgid "This is like L</command>, but passes the command to:"
14458 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
14461 " /bin/sh -c \"command\"\n"
14466 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
14468 "Depending on the guest's shell, this usually results in wildcards being "
14469 "expanded, shell expressions being interpolated and so on."
14473 #: ../fish/guestfish-actions.pod:4462
14474 msgid "All the provisos about L</command> apply to this call."
14478 #: ../fish/guestfish-actions.pod:4464
14483 #: ../fish/guestfish-actions.pod:4466
14486 " sh-lines command\n"
14489 " sh-lines команда\n"
14493 #: ../fish/guestfish-actions.pod:4468
14494 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14498 #: ../fish/guestfish-actions.pod:4471
14499 msgid "See also: L</command-lines>"
14500 msgstr "Див. також L</command-lines>"
14503 #: ../fish/guestfish-actions.pod:4473
14508 #: ../fish/guestfish-actions.pod:4475
14514 " sleep час_у_секундах\n"
14518 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
14519 msgid "Sleep for C<secs> seconds."
14523 #: ../fish/guestfish-actions.pod:4479
14528 #: ../fish/guestfish-actions.pod:4481
14538 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
14539 msgid "This is the same as the C<stat(2)> system call."
14543 #: ../fish/guestfish-actions.pod:4487
14548 #: ../fish/guestfish-actions.pod:4489
14558 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
14560 "Returns file system statistics for any mounted file system. C<path> should "
14561 "be a file or directory in the mounted file system (typically it is the mount "
14562 "point itself, but it doesn't need to be)."
14566 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
14567 msgid "This is the same as the C<statvfs(2)> system call."
14571 #: ../fish/guestfish-actions.pod:4497
14576 #: ../fish/guestfish-actions.pod:4499
14586 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
14588 "This runs the L<strings(1)> command on a file and returns the list of "
14589 "printable strings found."
14593 #: ../fish/guestfish-actions.pod:4507
14598 #: ../fish/guestfish-actions.pod:4509
14601 " strings-e encoding path\n"
14604 " strings-e кодування шлях\n"
14608 #: ../fish/guestfish-actions.pod:4511
14610 "This is like the L</strings> command, but allows you to specify the encoding "
14611 "of strings that are looked for in the source file C<path>."
14615 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
14616 msgid "Allowed encodings are:"
14617 msgstr "Можливими кодуваннями є:"
14620 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14625 #: ../fish/guestfish-actions.pod:4521
14627 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14628 "ISO-8859-X (this is what L</strings> uses)."
14632 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
14637 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
14638 msgid "Single 8-bit-byte characters."
14639 msgstr "Окремі 8-бітові-байтові символи."
14642 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14647 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14648 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14652 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14653 msgid "l (lower case letter L)"
14657 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14659 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
14660 "examining binaries in Windows guests."
14664 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
14669 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
14670 msgid "32-bit big endian such as UCS-4BE."
14674 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
14679 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
14680 msgid "32-bit little endian such as UCS-4LE."
14684 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14685 msgid "The returned strings are transcoded to UTF-8."
14689 #: ../fish/guestfish-actions.pod:4553
14690 msgid "swapoff-device"
14691 msgstr "swapoff-device"
14694 #: ../fish/guestfish-actions.pod:4555
14697 " swapoff-device device\n"
14700 " swapoff-device пристрій\n"
14704 #: ../fish/guestfish-actions.pod:4557
14706 "This command disables the libguestfs appliance swap device or partition "
14707 "named C<device>. See L</swapon-device>."
14711 #: ../fish/guestfish-actions.pod:4561
14712 msgid "swapoff-file"
14713 msgstr "swapoff-file"
14716 #: ../fish/guestfish-actions.pod:4563
14719 " swapoff-file file\n"
14722 " swapoff-file файл\n"
14726 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
14727 msgid "This command disables the libguestfs appliance swap on file."
14731 #: ../fish/guestfish-actions.pod:4567
14732 msgid "swapoff-label"
14733 msgstr "swapoff-label"
14736 #: ../fish/guestfish-actions.pod:4569
14739 " swapoff-label label\n"
14742 " swapoff-label мітка\n"
14746 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14748 "This command disables the libguestfs appliance swap on labeled swap "
14753 #: ../fish/guestfish-actions.pod:4574
14754 msgid "swapoff-uuid"
14755 msgstr "swapoff-uuid"
14758 #: ../fish/guestfish-actions.pod:4576
14761 " swapoff-uuid uuid\n"
14764 " swapoff-uuid uuid\n"
14768 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14770 "This command disables the libguestfs appliance swap partition with the given "
14775 #: ../fish/guestfish-actions.pod:4581
14776 msgid "swapon-device"
14777 msgstr "swapon-device"
14780 #: ../fish/guestfish-actions.pod:4583
14783 " swapon-device device\n"
14786 " swapon-device пристрій\n"
14790 #: ../fish/guestfish-actions.pod:4585
14792 "This command enables the libguestfs appliance to use the swap device or "
14793 "partition named C<device>. The increased memory is made available for all "
14794 "commands, for example those run using L</command> or L</sh>."
14798 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14800 "Note that you should not swap to existing guest swap partitions unless you "
14801 "know what you are doing. They may contain hibernation information, or other "
14802 "information that the guest doesn't want you to trash. You also risk leaking "
14803 "information about the host to the guest this way. Instead, attach a new "
14804 "host device to the guest and swap on that."
14808 #: ../fish/guestfish-actions.pod:4597
14809 msgid "swapon-file"
14810 msgstr "swapon-file"
14813 #: ../fish/guestfish-actions.pod:4599
14816 " swapon-file file\n"
14819 " swapon-file файл\n"
14823 #: ../fish/guestfish-actions.pod:4601
14825 "This command enables swap to a file. See L</swapon-device> for other notes."
14829 #: ../fish/guestfish-actions.pod:4604
14830 msgid "swapon-label"
14831 msgstr "swapon-label"
14834 #: ../fish/guestfish-actions.pod:4606
14837 " swapon-label label\n"
14840 " swapon-label мітка\n"
14844 #: ../fish/guestfish-actions.pod:4608
14846 "This command enables swap to a labeled swap partition. See L</swapon-"
14847 "device> for other notes."
14851 #: ../fish/guestfish-actions.pod:4611
14852 msgid "swapon-uuid"
14853 msgstr "swapon-uuid"
14856 #: ../fish/guestfish-actions.pod:4613
14859 " swapon-uuid uuid\n"
14862 " swapon-uuid uuid\n"
14866 #: ../fish/guestfish-actions.pod:4615
14868 "This command enables swap to a swap partition with the given UUID. See L</"
14869 "swapon-device> for other notes."
14873 #: ../fish/guestfish-actions.pod:4618
14878 #: ../fish/guestfish-actions.pod:4620
14888 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14890 "This syncs the disk, so that any writes are flushed through to the "
14891 "underlying disk image."
14895 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14897 "You should always call this if you have modified a disk image, before "
14898 "closing the handle."
14902 #: ../fish/guestfish-actions.pod:4628
14907 #: ../fish/guestfish-actions.pod:4630
14917 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14919 "This command returns up to the last 10 lines of a file as a list of strings."
14923 #: ../fish/guestfish-actions.pod:4638
14928 #: ../fish/guestfish-actions.pod:4640
14931 " tail-n nrlines path\n"
14936 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14938 "If the parameter C<nrlines> is a positive number, this returns the last "
14939 "C<nrlines> lines of the file C<path>."
14943 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14945 "If the parameter C<nrlines> is a negative number, this returns lines from "
14946 "the file C<path>, starting with the C<-nrlines>th line."
14950 #: ../fish/guestfish-actions.pod:4653
14955 #: ../fish/guestfish-actions.pod:4655
14958 " tar-in (tarfile|-) directory\n"
14961 " tar-in (файл_tar|-) каталог\n"
14965 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14967 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14968 "tar file) into C<directory>."
14972 #: ../fish/guestfish-actions.pod:4660
14973 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14977 #: ../fish/guestfish-actions.pod:4665
14982 #: ../fish/guestfish-actions.pod:4667
14985 " tar-out directory (tarfile|-)\n"
14988 " tar-out каталог (файл tar|-)\n"
14992 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14994 "This command packs the contents of C<directory> and downloads it to local "
14999 #: ../fish/guestfish-actions.pod:4672
15000 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15004 #: ../fish/guestfish-actions.pod:4677
15009 #: ../fish/guestfish-actions.pod:4679
15012 " tgz-in (tarball|-) directory\n"
15015 " tgz-in (архів tar|-) каталог\n"
15019 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
15021 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15022 "tar file) into C<directory>."
15026 #: ../fish/guestfish-actions.pod:4684
15027 msgid "To upload an uncompressed tarball, use L</tar-in>."
15031 #: ../fish/guestfish-actions.pod:4688
15036 #: ../fish/guestfish-actions.pod:4690
15039 " tgz-out directory (tarball|-)\n"
15042 " tgz-out каталог (архів tar|-)\n"
15046 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
15048 "This command packs the contents of C<directory> and downloads it to local "
15053 #: ../fish/guestfish-actions.pod:4695
15054 msgid "To download an uncompressed tarball, use L</tar-out>."
15058 #: ../fish/guestfish-actions.pod:4699
15063 #: ../fish/guestfish-actions.pod:4701
15073 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
15075 "Touch acts like the L<touch(1)> command. It can be used to update the "
15076 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15081 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
15083 "This command only works on regular files, and will fail on other file types "
15084 "such as directories, symbolic links, block special etc."
15088 #: ../fish/guestfish-actions.pod:4710
15093 #: ../fish/guestfish-actions.pod:4712
15103 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
15105 "This command truncates C<path> to a zero-length file. The file must exist "
15110 #: ../fish/guestfish-actions.pod:4717
15111 msgid "truncate-size"
15112 msgstr "truncate-size"
15115 #: ../fish/guestfish-actions.pod:4719
15118 " truncate-size path size\n"
15121 " truncate-size шлях розмір\n"
15125 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
15127 "This command truncates C<path> to size C<size> bytes. The file must exist "
15132 #: ../fish/guestfish-actions.pod:4724
15134 "If the current file size is less than C<size> then the file is extended to "
15135 "the required size with zero bytes. This creates a sparse file (ie. disk "
15136 "blocks are not allocated for the file until you write to it). To create a "
15137 "non-sparse file of zeroes, use L</fallocate64> instead."
15141 #: ../fish/guestfish-actions.pod:4730
15146 #: ../fish/guestfish-actions.pod:4732
15149 " tune2fs-l device\n"
15152 " tune2fs-l пристрій\n"
15156 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
15158 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15163 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
15165 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15166 "for more details. The list of fields returned isn't clearly defined, and "
15167 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15168 "and the filesystem itself."
15172 #: ../fish/guestfish-actions.pod:4742
15177 #: ../fish/guestfish-actions.pod:4744
15180 " txz-in (tarball|-) directory\n"
15183 " txz-in (архів tar|-) каталог\n"
15187 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
15189 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15190 "tar file) into C<directory>."
15194 #: ../fish/guestfish-actions.pod:4751
15199 #: ../fish/guestfish-actions.pod:4753
15202 " txz-out directory (tarball|-)\n"
15205 " txz-out каталог (архів tar|-)\n"
15209 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
15211 "This command packs the contents of C<directory> and downloads it to local "
15212 "file C<tarball> (as an xz compressed tar archive)."
15216 #: ../fish/guestfish-actions.pod:4760
15221 #: ../fish/guestfish-actions.pod:4762
15231 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
15233 "This function sets the mask used for creating new files and device nodes to "
15238 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15240 "Typical umask values would be C<022> which creates new files with "
15241 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15242 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15246 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
15248 "The default umask is C<022>. This is important because it means that "
15249 "directories and device nodes will be created with C<0644> or C<0755> mode "
15250 "even if you specify C<0777>."
15254 #: ../fish/guestfish-actions.pod:4776
15255 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15256 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15259 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
15260 msgid "This call returns the previous umask."
15264 #: ../fish/guestfish-actions.pod:4781
15269 #: ../fish/guestfish-actions.pod:4783
15274 #: ../fish/guestfish-actions.pod:4785
15277 " umount pathordevice\n"
15280 " umount шлях_або_пристрій\n"
15284 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
15286 "This unmounts the given filesystem. The filesystem may be specified either "
15287 "by its mountpoint (path) or the device which contains the filesystem."
15291 #: ../fish/guestfish-actions.pod:4791
15293 msgstr "umount-all"
15296 #: ../fish/guestfish-actions.pod:4793
15297 msgid "unmount-all"
15298 msgstr "unmount-all"
15301 #: ../fish/guestfish-actions.pod:4795
15311 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
15312 msgid "This unmounts all mounted filesystems."
15316 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
15317 msgid "Some internal mounts are not unmounted by this call."
15321 #: ../fish/guestfish-actions.pod:4801
15326 #: ../fish/guestfish-actions.pod:4803
15329 " upload (filename|-) remotefilename\n"
15332 " upload (назва_файла|-) назва_віддаленого_файла\n"
15336 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
15337 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
15338 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15342 #: ../fish/guestfish-actions.pod:4810
15343 msgid "See also L</download>."
15344 msgstr "Див. також L</download>."
15347 #: ../fish/guestfish-actions.pod:4814
15348 msgid "upload-offset"
15349 msgstr "upload-offset"
15352 #: ../fish/guestfish-actions.pod:4816
15355 " upload-offset (filename|-) remotefilename offset\n"
15358 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15362 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
15364 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15365 "The intention is to overwrite parts of existing files or devices, although "
15366 "if a non-existant file is specified then it is created with a \"hole\" "
15367 "before C<offset>. The size of the data written is implicit in the size of "
15368 "the source C<filename>."
15372 #: ../fish/guestfish-actions.pod:4828
15374 "Note that there is no limit on the amount of data that can be uploaded with "
15375 "this call, unlike with L</pwrite>, and this call always writes the full "
15376 "amount unless an error occurs."
15380 #: ../fish/guestfish-actions.pod:4833
15381 msgid "See also L</upload>, L</pwrite>."
15382 msgstr "Див. також L</upload>, L</pwrite>."
15385 #: ../fish/guestfish-actions.pod:4837
15390 #: ../fish/guestfish-actions.pod:4839
15393 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15398 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
15399 msgid "This command sets the timestamps of a file with nanosecond precision."
15403 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
15405 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15410 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
15412 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15413 "nanoseconds from the epoch."
15417 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
15419 "If the C<*nsecs> field contains the special value C<-1> then the "
15420 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15421 "ignored in this case)."
15425 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
15427 "If the C<*nsecs> field contains the special value C<-2> then the "
15428 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15433 #: ../fish/guestfish-actions.pod:4858
15438 #: ../fish/guestfish-actions.pod:4860
15448 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
15450 "Return the libguestfs version number that the program is linked against."
15454 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15456 "Note that because of dynamic linking this is not necessarily the version of "
15457 "libguestfs that you compiled against. You can compile the program, and then "
15458 "at runtime dynamically link against a completely different C<libguestfs.so> "
15463 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
15465 "This call was added in version C<1.0.58>. In previous versions of "
15466 "libguestfs there was no way to get the version number. From C code you can "
15467 "use dynamic linker functions to find out if this symbol exists (if it "
15468 "doesn't, then it's an earlier version)."
15472 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
15474 "The call returns a structure with four elements. The first three (C<major>, "
15475 "C<minor> and C<release>) are numbers and correspond to the usual version "
15476 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15477 "but may be used for distro-specific information."
15481 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
15483 "To construct the original version string: C<$major.$minor.$release$extra>"
15487 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
15488 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15492 #: ../fish/guestfish-actions.pod:4887
15494 "I<Note:> Don't use this call to test for availability of features. In "
15495 "enterprise distributions we backport features from later versions into "
15496 "earlier versions, making this an unreliable way to test for features. Use "
15497 "L</available> instead."
15501 #: ../fish/guestfish-actions.pod:4893
15506 #: ../fish/guestfish-actions.pod:4895
15509 " vfs-label device\n"
15512 " vfs-label пристрій\n"
15516 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
15517 msgid "This returns the filesystem label of the filesystem on C<device>."
15521 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
15522 msgid "If the filesystem is unlabeled, this returns the empty string."
15526 #: ../fish/guestfish-actions.pod:4902
15527 msgid "To find a filesystem from the label, use L</findfs-label>."
15531 #: ../fish/guestfish-actions.pod:4904
15536 #: ../fish/guestfish-actions.pod:4906
15539 " vfs-type device\n"
15542 " vfs-type пристрій\n"
15546 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
15548 "This command gets the filesystem type corresponding to the filesystem on "
15553 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
15555 "For most filesystems, the result is the name of the Linux VFS module which "
15556 "would be used to mount this filesystem if you mounted it without specifying "
15557 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15561 #: ../fish/guestfish-actions.pod:4916
15566 #: ../fish/guestfish-actions.pod:4918
15569 " vfs-uuid device\n"
15572 " vfs-uuid пристрій\n"
15576 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
15577 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15581 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
15582 msgid "If the filesystem does not have a UUID, this returns the empty string."
15586 #: ../fish/guestfish-actions.pod:4925
15587 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15591 #: ../fish/guestfish-actions.pod:4927
15592 msgid "vg-activate"
15593 msgstr "vg-activate"
15596 #: ../fish/guestfish-actions.pod:4929
15599 " vg-activate true|false 'volgroups ...'\n"
15604 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15606 "This command activates or (if C<activate> is false) deactivates all logical "
15607 "volumes in the listed volume groups C<volgroups>."
15611 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
15612 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15616 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
15618 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15619 "activated or deactivated."
15623 #: ../fish/guestfish-actions.pod:4939
15624 msgid "vg-activate-all"
15625 msgstr "vg-activate-all"
15628 #: ../fish/guestfish-actions.pod:4941
15631 " vg-activate-all true|false\n"
15634 " vg-activate-all true|false\n"
15638 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
15640 "This command activates or (if C<activate> is false) deactivates all logical "
15641 "volumes in all volume groups."
15645 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
15646 msgid "This command is the same as running C<vgchange -a y|n>"
15650 #: ../fish/guestfish-actions.pod:4948
15655 #: ../fish/guestfish-actions.pod:4950
15658 " vgcreate volgroup 'physvols ...'\n"
15663 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
15665 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15666 "of physical volumes C<physvols>."
15670 #: ../fish/guestfish-actions.pod:4955
15675 #: ../fish/guestfish-actions.pod:4957
15678 " vglvuuids vgname\n"
15683 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
15685 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15686 "volumes created in this volume group."
15690 #: ../fish/guestfish-actions.pod:4962
15692 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15693 "logical volumes and volume groups."
15697 #: ../fish/guestfish-actions.pod:4965
15698 msgid "See also L</vgpvuuids>."
15699 msgstr "Див. також L</vgpvuuids>."
15702 #: ../fish/guestfish-actions.pod:4967
15707 #: ../fish/guestfish-actions.pod:4969
15710 " vgpvuuids vgname\n"
15715 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
15717 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15718 "volumes that this volume group resides on."
15722 #: ../fish/guestfish-actions.pod:4974
15724 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15725 "physical volumes and volume groups."
15729 #: ../fish/guestfish-actions.pod:4977
15730 msgid "See also L</vglvuuids>."
15731 msgstr "Див. також L</vglvuuids>."
15734 #: ../fish/guestfish-actions.pod:4979
15739 #: ../fish/guestfish-actions.pod:4981
15742 " vgremove vgname\n"
15747 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
15748 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15752 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
15754 "This also forcibly removes all logical volumes in the volume group (if any)."
15758 #: ../fish/guestfish-actions.pod:4988
15763 #: ../fish/guestfish-actions.pod:4990
15766 " vgrename volgroup newvolgroup\n"
15771 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
15772 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15776 #: ../fish/guestfish-actions.pod:4994
15781 #: ../fish/guestfish-actions.pod:4996
15791 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
15793 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15798 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15800 "This returns a list of just the volume group names that were detected (eg. "
15805 #: ../fish/guestfish-actions.pod:5004
15806 msgid "See also L</vgs-full>."
15807 msgstr "Див. також L</vgs-full>."
15810 #: ../fish/guestfish-actions.pod:5006
15815 #: ../fish/guestfish-actions.pod:5008
15825 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15827 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15828 "> command. The \"full\" version includes all fields."
15832 #: ../fish/guestfish-actions.pod:5013
15837 #: ../fish/guestfish-actions.pod:5015
15847 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15849 "This rescans all block devices and rebuilds the list of LVM physical "
15850 "volumes, volume groups and logical volumes."
15854 #: ../fish/guestfish-actions.pod:5020
15859 #: ../fish/guestfish-actions.pod:5022
15867 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15868 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15872 #: ../fish/guestfish-actions.pod:5026
15877 #: ../fish/guestfish-actions.pod:5028
15887 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15889 "This command counts the characters in a file, using the C<wc -c> external "
15894 #: ../fish/guestfish-actions.pod:5033
15899 #: ../fish/guestfish-actions.pod:5035
15909 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15911 "This command counts the lines in a file, using the C<wc -l> external command."
15915 #: ../fish/guestfish-actions.pod:5040
15920 #: ../fish/guestfish-actions.pod:5042
15930 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15932 "This command counts the words in a file, using the C<wc -w> external command."
15936 #: ../fish/guestfish-actions.pod:5047
15941 #: ../fish/guestfish-actions.pod:5049
15944 " write path content\n"
15947 " write шлях дані\n"
15951 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15953 "This call creates a file called C<path>. The content of the file is the "
15954 "string C<content> (which can contain any 8 bit data)."
15958 #: ../fish/guestfish-actions.pod:5054
15959 msgid "See also L</write-append>."
15963 #: ../fish/guestfish-actions.pod:5059
15964 msgid "write-append"
15968 #: ../fish/guestfish-actions.pod:5061
15971 " write-append path content\n"
15976 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15978 "This call appends C<content> to the end of file C<path>. If C<path> does "
15979 "not exist, then a new file is created."
15983 #: ../fish/guestfish-actions.pod:5066
15984 msgid "See also L</write>."
15988 #: ../fish/guestfish-actions.pod:5071
15990 msgstr "write-file"
15993 #: ../fish/guestfish-actions.pod:5073
15996 " write-file path content size\n"
16001 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7700
16003 "This call creates a file called C<path>. The contents of the file is the "
16004 "string C<content> (which can contain any 8 bit data), with length C<size>."
16008 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7704
16010 "As a special case, if C<size> is C<0> then the length is calculated using "
16011 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16015 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7708
16017 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16018 "I<not> work, even if the length is specified."
16022 #: ../fish/guestfish-actions.pod:5089
16024 "This function is deprecated. In new code, use the L</write> call instead."
16028 #: ../fish/guestfish-actions.pod:5096
16033 #: ../fish/guestfish-actions.pod:5098
16036 " zegrep regex path\n"
16039 " zegrep формальний_вираз шлях\n"
16043 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
16045 "This calls the external C<zegrep> program and returns the matching lines."
16049 #: ../fish/guestfish-actions.pod:5106
16054 #: ../fish/guestfish-actions.pod:5108
16057 " zegrepi regex path\n"
16062 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
16064 "This calls the external C<zegrep -i> program and returns the matching lines."
16068 #: ../fish/guestfish-actions.pod:5116
16073 #: ../fish/guestfish-actions.pod:5118
16083 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
16084 msgid "This command writes zeroes over the first few blocks of C<device>."
16088 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
16090 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16091 "securely wipe the device). It should be sufficient to remove any partition "
16092 "tables, filesystem superblocks and so on."
16096 #: ../fish/guestfish-actions.pod:5126
16097 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16101 #: ../fish/guestfish-actions.pod:5129
16102 msgid "zero-device"
16103 msgstr "zero-device"
16106 #: ../fish/guestfish-actions.pod:5131
16109 " zero-device device\n"
16112 " zero-device пристрій\n"
16116 #: ../fish/guestfish-actions.pod:5133
16118 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16119 "which just zeroes the first few blocks of a device."
16123 #: ../fish/guestfish-actions.pod:5140
16128 #: ../fish/guestfish-actions.pod:5142
16131 " zerofree device\n"
16134 " zerofree пристрій\n"
16138 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
16140 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16141 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16142 "possible to compress the filesystem more effectively."
16146 #: ../fish/guestfish-actions.pod:5149 ../src/guestfs-actions.pod:7820
16147 msgid "You should B<not> run this program if the filesystem is mounted."
16151 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
16153 "It is possible that using this program can damage the filesystem or data on "
16158 #: ../fish/guestfish-actions.pod:5155
16163 #: ../fish/guestfish-actions.pod:5157
16166 " zfgrep pattern path\n"
16169 " zfgrep шаблон шлях\n"
16173 #: ../fish/guestfish-actions.pod:5159 ../src/guestfs-actions.pod:7837
16175 "This calls the external C<zfgrep> program and returns the matching lines."
16179 #: ../fish/guestfish-actions.pod:5165
16184 #: ../fish/guestfish-actions.pod:5167
16187 " zfgrepi pattern path\n"
16190 " zfgrepi шаблон шлях\n"
16194 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7856
16196 "This calls the external C<zfgrep -i> program and returns the matching lines."
16200 #: ../fish/guestfish-actions.pod:5175
16205 #: ../fish/guestfish-actions.pod:5177
16208 " zfile meth path\n"
16211 " zfile метод шлях\n"
16215 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7875
16217 "This command runs C<file> after first decompressing C<path> using C<method>."
16221 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7878
16222 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16226 #: ../fish/guestfish-actions.pod:5184
16228 "Since 1.0.63, use L</file> instead which can now process compressed files."
16232 #: ../fish/guestfish-actions.pod:5187
16234 "This function is deprecated. In new code, use the L</file> call instead."
16238 #: ../fish/guestfish-actions.pod:5194
16243 #: ../fish/guestfish-actions.pod:5196
16246 " zgrep regex path\n"
16249 " zgrep формальний_вираз шлях\n"
16253 #: ../fish/guestfish-actions.pod:5198 ../src/guestfs-actions.pod:7902
16255 "This calls the external C<zgrep> program and returns the matching lines."
16259 #: ../fish/guestfish-actions.pod:5204
16264 #: ../fish/guestfish-actions.pod:5206
16267 " zgrepi regex path\n"
16270 " zgrepi формальний_вираз шлях\n"
16274 #: ../fish/guestfish-actions.pod:5208 ../src/guestfs-actions.pod:7921
16276 "This calls the external C<zgrep -i> program and returns the matching lines."
16280 #: ../fish/guestfish-commands.pod:1
16285 #: ../fish/guestfish-commands.pod:3
16290 #: ../fish/guestfish-commands.pod:5
16293 " alloc filename size\n"
16298 #: ../fish/guestfish-commands.pod:7
16300 "This creates an empty (zeroed) file of the given size, and then adds so it "
16301 "can be further examined."
16305 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
16306 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16310 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
16311 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16315 #: ../fish/guestfish-commands.pod:14
16317 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16318 "image, see L</PREPARED DISK IMAGES>."
16322 #: ../fish/guestfish-commands.pod:17
16327 #: ../fish/guestfish-commands.pod:19
16330 " copy-in local [local ...] /remotedir\n"
16335 #: ../fish/guestfish-commands.pod:21
16337 "C<copy-in> copies local files or directories recursively into the disk "
16338 "image, placing them in the directory called C</remotedir> (which must "
16339 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16340 "other commands as necessary."
16344 #: ../fish/guestfish-commands.pod:26
16346 "Multiple local files and directories can be specified, but the last "
16347 "parameter must always be a remote directory. Wildcards cannot be used."
16351 #: ../fish/guestfish-commands.pod:30
16356 #: ../fish/guestfish-commands.pod:32
16359 " copy-out remote [remote ...] localdir\n"
16364 #: ../fish/guestfish-commands.pod:34
16366 "C<copy-out> copies remote files or directories recursively out of the disk "
16367 "image, placing them on the host disk in a local directory called C<localdir> "
16368 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16369 "download>, L</tar-out> and other commands as necessary."
16373 #: ../fish/guestfish-commands.pod:40
16375 "Multiple remote files and directories can be specified, but the last "
16376 "parameter must always be a local directory. To download to the current "
16377 "directory, use C<.> as in:"
16381 #: ../fish/guestfish-commands.pod:44
16384 " copy-out /home .\n"
16387 " copy-out /home .\n"
16391 #: ../fish/guestfish-commands.pod:46
16393 "Wildcards cannot be used in the ordinary command, but you can use them with "
16394 "the help of L</glob> like this:"
16398 #: ../fish/guestfish-commands.pod:49
16401 " glob copy-out /home/* .\n"
16404 " glob copy-out /home/* .\n"
16408 #: ../fish/guestfish-commands.pod:51
16413 #: ../fish/guestfish-commands.pod:53
16416 " display filename\n"
16421 #: ../fish/guestfish-commands.pod:55
16423 "Use C<display> (a graphical display program) to display an image file. It "
16424 "downloads the file, and runs C<display> on it."
16428 #: ../fish/guestfish-commands.pod:58
16430 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16431 "environment variable. For example to use the GNOME display program:"
16435 #: ../fish/guestfish-commands.pod:61
16438 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16443 #: ../fish/guestfish-commands.pod:63
16444 msgid "See also L<display(1)>."
16448 #: ../fish/guestfish-commands.pod:65
16453 #: ../fish/guestfish-commands.pod:67
16456 " echo [params ...]\n"
16459 " echo [параметри...]\n"
16463 #: ../fish/guestfish-commands.pod:69
16464 msgid "This echos the parameters to the terminal."
16468 #: ../fish/guestfish-commands.pod:71
16473 #: ../fish/guestfish-commands.pod:73
16478 #: ../fish/guestfish-commands.pod:75
16483 #: ../fish/guestfish-commands.pod:77
16489 " edit назва_файла\n"
16493 #: ../fish/guestfish-commands.pod:79
16495 "This is used to edit a file. It downloads the file, edits it locally using "
16496 "your editor, then uploads the result."
16500 #: ../fish/guestfish-commands.pod:82
16502 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16503 "or C<emacs> you will get those corresponding editors."
16507 #: ../fish/guestfish-commands.pod:86
16512 #: ../fish/guestfish-commands.pod:88
16515 " glob command args...\n"
16518 " glob команда параметри...\n"
16522 #: ../fish/guestfish-commands.pod:90
16524 "Expand wildcards in any paths in the args list, and run C<command> "
16525 "repeatedly on each matching path."
16529 #: ../fish/guestfish-commands.pod:93
16530 msgid "See L</WILDCARDS AND GLOBBING>."
16531 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16534 #: ../fish/guestfish-commands.pod:95
16539 #: ../fish/guestfish-commands.pod:97
16542 " hexedit <filename|device>\n"
16543 " hexedit <filename|device> <max>\n"
16544 " hexedit <filename|device> <start> <max>\n"
16549 #: ../fish/guestfish-commands.pod:101
16551 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16556 #: ../fish/guestfish-commands.pod:104
16558 "This command works by downloading potentially the whole file or device, "
16559 "editing it locally, then uploading it. If the file or device is large, you "
16560 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16561 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
16562 "usual modifiers allowed such as C<1M> (1 megabyte)."
16566 #: ../fish/guestfish-commands.pod:111
16567 msgid "For example to edit the first few sectors of a disk you might do:"
16571 #: ../fish/guestfish-commands.pod:114
16574 " hexedit /dev/sda 1M\n"
16577 " hexedit /dev/sda 1M\n"
16581 #: ../fish/guestfish-commands.pod:116
16583 "which would allow you to edit anywhere within the first megabyte of the disk."
16587 #: ../fish/guestfish-commands.pod:119
16588 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16592 #: ../fish/guestfish-commands.pod:121
16595 " hexedit /dev/sda1 0x400 0x400\n"
16598 " hexedit /dev/sda1 0x400 0x400\n"
16602 #: ../fish/guestfish-commands.pod:123
16603 msgid "(assuming the superblock is in the standard location)."
16607 #: ../fish/guestfish-commands.pod:125
16609 "This command requires the external L<hexedit(1)> program. You can specify "
16610 "another program to use by setting the C<HEXEDITOR> environment variable."
16614 #: ../fish/guestfish-commands.pod:129
16615 msgid "See also L</hexdump>."
16616 msgstr "Див. також L</hexdump>."
16619 #: ../fish/guestfish-commands.pod:131
16624 #: ../fish/guestfish-commands.pod:133
16632 #: ../fish/guestfish-commands.pod:135
16634 "Change the local directory, ie. the current directory of guestfish itself."
16638 #: ../fish/guestfish-commands.pod:138
16639 msgid "Note that C<!cd> won't do what you might expect."
16643 #: ../fish/guestfish-commands.pod:140
16648 #: ../fish/guestfish-commands.pod:142
16653 #: ../fish/guestfish-commands.pod:144
16663 #: ../fish/guestfish-commands.pod:146
16664 msgid "Opens the manual page for guestfish."
16668 #: ../fish/guestfish-commands.pod:148
16673 #: ../fish/guestfish-commands.pod:150
16678 #: ../fish/guestfish-commands.pod:152
16686 #: ../fish/guestfish-commands.pod:154
16694 #: ../fish/guestfish-commands.pod:156
16695 msgid "This is used to view a file."
16699 #: ../fish/guestfish-commands.pod:158
16701 "The default viewer is C<$PAGER>. However if you use the alternate command "
16702 "C<less> you will get the C<less> command specifically."
16706 #: ../fish/guestfish-commands.pod:161
16711 #: ../fish/guestfish-commands.pod:163
16719 #: ../fish/guestfish-commands.pod:165
16721 "Close and reopen the libguestfs handle. It is not necessary to use this "
16722 "normally, because the handle is closed properly when guestfish exits. "
16723 "However this is occasionally useful for testing."
16727 #: ../fish/guestfish-commands.pod:169
16732 #: ../fish/guestfish-commands.pod:171
16735 " sparse filename size\n"
16740 #: ../fish/guestfish-commands.pod:173
16742 "This creates an empty sparse file of the given size, and then adds so it can "
16743 "be further examined."
16747 #: ../fish/guestfish-commands.pod:176
16749 "In all respects it works the same as the L</alloc> command, except that the "
16750 "image file is allocated sparsely, which means that disk blocks are not "
16751 "assigned to the file until they are needed. Sparse disk files only use "
16752 "space when written to, but they are slower and there is a danger you could "
16753 "run out of real disk space during a write operation."
16757 #: ../fish/guestfish-commands.pod:186
16762 #: ../fish/guestfish-commands.pod:188
16772 #: ../fish/guestfish-commands.pod:190
16774 "This command returns a list of the optional groups known to the daemon, and "
16775 "indicates which ones are supported by this build of the libguestfs appliance."
16779 #: ../fish/guestfish-commands.pod:194
16780 msgid "See also L<guestfs(3)/AVAILABILITY>."
16784 #: ../fish/guestfish-commands.pod:196
16789 #: ../fish/guestfish-commands.pod:198
16792 " time command args...\n"
16797 #: ../fish/guestfish-commands.pod:200
16799 "Run the command as usual, but print the elapsed time afterwards. This can "
16800 "be useful for benchmarking operations."
16804 #: ../fish/guestfish.pod:5
16805 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16809 #: ../fish/guestfish.pod:9
16812 " guestfish [--options] [commands]\n"
16817 #: ../fish/guestfish.pod:11
16825 #: ../fish/guestfish.pod:13
16828 " guestfish [--ro|--rw] -a disk.img\n"
16833 #: ../fish/guestfish.pod:15
16836 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16841 #: ../fish/guestfish.pod:17
16844 " guestfish -d libvirt-domain\n"
16849 #: ../fish/guestfish.pod:19
16852 " guestfish [--ro|--rw] -a disk.img -i\n"
16857 #: ../fish/guestfish.pod:21
16860 " guestfish -d libvirt-domain -i\n"
16865 #: ../fish/guestfish.pod:25
16867 "Using guestfish in read/write mode on live virtual machines can be "
16868 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
16869 "option to use guestfish safely if the disk image or virtual machine might be "
16874 #: ../fish/guestfish.pod:32
16876 "Guestfish is a shell and command-line tool for examining and modifying "
16877 "virtual machine filesystems. It uses libguestfs and exposes all of the "
16878 "functionality of the guestfs API, see L<guestfs(3)>."
16882 #: ../fish/guestfish.pod:36
16884 "Guestfish gives you structured access to the libguestfs API, from shell "
16885 "scripts or the command line or interactively. If you want to rescue a "
16886 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16891 #: ../fish/guestfish.pod:43
16892 msgid "As an interactive shell"
16896 #: ../fish/guestfish.pod:45
16904 #: ../fish/guestfish.pod:47
16907 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16908 " editing virtual machine filesystems.\n"
16913 #: ../fish/guestfish.pod:50
16916 " Type: 'help' for a list of commands\n"
16917 " 'man' to read the manual\n"
16918 " 'quit' to quit the shell\n"
16923 #: ../fish/guestfish.pod:54
16926 " ><fs> add-ro disk.img\n"
16928 " ><fs> list-filesystems\n"
16929 " /dev/sda1: ext4\n"
16930 " /dev/vg_guest/lv_root: ext4\n"
16931 " /dev/vg_guest/lv_swap: swap\n"
16932 " ><fs> mount /dev/vg_guest/lv_root /\n"
16933 " ><fs> cat /etc/fstab\n"
16935 " # Created by anaconda\n"
16942 #: ../fish/guestfish.pod:67
16943 msgid "From shell scripts"
16947 #: ../fish/guestfish.pod:69
16948 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16952 #: ../fish/guestfish.pod:71
16955 " guestfish <<_EOF_\n"
16958 " mount /dev/vg_guest/lv_root /\n"
16959 " write /etc/motd \"Welcome, new users\"\n"
16965 #: ../fish/guestfish.pod:78
16966 msgid "List the LVM logical volumes in a disk image:"
16970 #: ../fish/guestfish.pod:80
16973 " guestfish -a disk.img --ro <<_EOF_\n"
16981 #: ../fish/guestfish.pod:85
16982 msgid "List all the filesystems in a disk image:"
16986 #: ../fish/guestfish.pod:87
16989 " guestfish -a disk.img --ro <<_EOF_\n"
16991 " list-filesystems\n"
16997 #: ../fish/guestfish.pod:92
16998 msgid "On one command line"
17002 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17003 msgid "Update C</etc/resolv.conf> in a guest:"
17007 #: ../fish/guestfish.pod:96
17011 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17012 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17017 #: ../fish/guestfish.pod:100
17018 msgid "Edit C</boot/grub/grub.conf> interactively:"
17022 #: ../fish/guestfish.pod:102
17025 " guestfish --rw --add disk.img \\\n"
17026 " --mount /dev/vg_guest/lv_root \\\n"
17027 " --mount /dev/sda1:/boot \\\n"
17028 " edit /boot/grub/grub.conf\n"
17033 #: ../fish/guestfish.pod:107
17034 msgid "Mount disks automatically"
17038 #: ../fish/guestfish.pod:109
17040 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17044 #: ../fish/guestfish.pod:112
17047 " guestfish --ro -a disk.img -i cat /etc/group\n"
17052 #: ../fish/guestfish.pod:114
17055 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17060 #: ../fish/guestfish.pod:116
17061 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17065 #: ../fish/guestfish.pod:118
17068 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17073 #: ../fish/guestfish.pod:120
17074 msgid "As a script interpreter"
17078 #: ../fish/guestfish.pod:122
17079 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17083 #: ../fish/guestfish.pod:124
17086 " #!/usr/bin/guestfish -f\n"
17087 " sparse test1.img 100M\n"
17089 " part-disk /dev/sda mbr\n"
17090 " mkfs ext2 /dev/sda1\n"
17095 #: ../fish/guestfish.pod:130
17096 msgid "Start with a prepared disk"
17100 #: ../fish/guestfish.pod:132
17102 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17103 "single ext2-formatted partition:"
17107 #: ../fish/guestfish.pod:135
17110 " guestfish -N fs\n"
17115 #: ../fish/guestfish.pod:137
17116 msgid "To list what is available do:"
17120 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17123 " guestfish -N help | less\n"
17128 #: ../fish/guestfish.pod:141
17129 msgid "Remote control"
17130 msgstr "Дистанційне керування"
17133 #: ../fish/guestfish.pod:143
17136 " eval \"`guestfish --listen`\"\n"
17137 " guestfish --remote add-ro disk.img\n"
17138 " guestfish --remote run\n"
17139 " guestfish --remote lvs\n"
17142 " eval \"`guestfish --listen`\"\n"
17143 " guestfish --remote add-ro disk.img\n"
17144 " guestfish --remote run\n"
17145 " guestfish --remote lvs\n"
17149 #: ../fish/guestfish.pod:154
17150 msgid "Displays general help on options."
17154 #: ../fish/guestfish.pod:158
17155 msgid "B<--cmd-help>"
17156 msgstr "B<--cmd-help>"
17159 #: ../fish/guestfish.pod:160
17160 msgid "Lists all available guestfish commands."
17164 #: ../fish/guestfish.pod:162
17166 msgstr "B<-h команда>"
17169 #: ../fish/guestfish.pod:164
17170 msgid "B<--cmd-help cmd>"
17171 msgstr "B<--cmd-help команда>"
17174 #: ../fish/guestfish.pod:166
17175 msgid "Displays detailed help on a single command C<cmd>."
17179 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17180 msgid "B<-a image>"
17181 msgstr "B<-a образ>"
17184 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17185 msgid "B<--add image>"
17186 msgstr "B<--add образ>"
17189 #: ../fish/guestfish.pod:172
17190 msgid "Add a block device or virtual machine image to the shell."
17194 #: ../fish/guestfish.pod:177
17196 "Using this flag is mostly equivalent to using the C<add> command, with "
17197 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17198 "the I<--format=...> flag was given."
17202 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17204 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17205 "URI to use. The default is to use the default libvirt connection."
17209 #: ../fish/guestfish.pod:189
17214 #: ../fish/guestfish.pod:191
17216 "If using the I<--listen> option and a csh-like shell, use this option. See "
17217 "section L</REMOTE CONTROL AND CSH> below."
17221 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17222 msgid "B<-d libvirt-domain>"
17223 msgstr "B<-d домен-libvirt>"
17226 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17227 msgid "B<--domain libvirt-domain>"
17228 msgstr "B<--domain домен-libvirt>"
17231 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17233 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17234 "used, then any libvirt domain can be used. However in write mode, only "
17235 "libvirt domains which are shut down can be named here."
17239 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17240 msgid "Domain UUIDs can be used instead of names."
17244 #: ../fish/guestfish.pod:204
17246 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17247 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17248 "if the I<--format:...> flag was given."
17252 #: ../fish/guestfish.pod:208
17257 #: ../fish/guestfish.pod:210
17258 msgid "B<--no-dest-paths>"
17259 msgstr "B<--no-dest-paths>"
17262 #: ../fish/guestfish.pod:212
17264 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17265 "to hit the tab key to complete paths on the guest filesystem, but this "
17266 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17267 "allow this feature to be disabled."
17271 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17273 "When prompting for keys and passphrases, guestfish normally turns echoing "
17274 "off so you cannot see what you are typing. If you are not worried about "
17275 "Tempest attacks and there is no one else in the room you can specify this "
17276 "flag to see what you are typing."
17280 #: ../fish/guestfish.pod:224
17282 msgstr "B<-f файл>"
17285 #: ../fish/guestfish.pod:226
17286 msgid "B<--file file>"
17287 msgstr "B<--file файл>"
17290 #: ../fish/guestfish.pod:228
17291 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17295 #: ../fish/guestfish.pod:231
17298 " #!/usr/bin/guestfish -f\n"
17301 " #!/usr/bin/guestfish -f\n"
17305 #: ../fish/guestfish.pod:244
17308 " guestfish --format=raw -a disk.img\n"
17311 " guestfish --format=raw -a disk.img\n"
17315 #: ../fish/guestfish.pod:248
17318 " guestfish --format=raw -a disk.img --format -a another.img\n"
17321 " guestfish --format=raw -a disk.img --format -a another.img\n"
17325 #: ../fish/guestfish.pod:253
17327 "If you have untrusted raw-format guest disk images, you should use this "
17328 "option to specify the disk format. This avoids a possible security problem "
17329 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17333 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17334 msgid "B<--inspector>"
17335 msgstr "B<--inspector>"
17338 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17340 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17341 "system and mount filesystems as they would be mounted on the real virtual "
17346 #: ../fish/guestfish.pod:266
17347 msgid "Typical usage is either:"
17351 #: ../fish/guestfish.pod:268
17354 " guestfish -d myguest -i\n"
17357 " guestfish -d myguest -i\n"
17361 #: ../fish/guestfish.pod:270
17362 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17366 #: ../fish/guestfish.pod:272
17369 " guestfish --ro -d myguest -i\n"
17372 " guestfish --ro -d myguest -i\n"
17376 #: ../fish/guestfish.pod:274
17377 msgid "(for active domains, readonly), or specify the block device directly:"
17381 #: ../fish/guestfish.pod:276
17384 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17387 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17391 #: ../fish/guestfish.pod:278
17393 "Note that the command line syntax changed slightly over older versions of "
17394 "guestfish. You can still use the old syntax:"
17398 #: ../fish/guestfish.pod:281
17401 " guestfish [--ro] -i disk.img\n"
17404 " guestfish [--ro] -i disk.img\n"
17408 #: ../fish/guestfish.pod:283
17411 " guestfish [--ro] -i libvirt-domain\n"
17416 #: ../fish/guestfish.pod:285
17418 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17419 "then using other commands to mount the filesystems that were found."
17423 #: ../fish/guestfish.pod:294
17424 msgid "B<--listen>"
17425 msgstr "B<--listen>"
17428 #: ../fish/guestfish.pod:296
17430 "Fork into the background and listen for remote commands. See section L</"
17431 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17435 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17440 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17442 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17443 "ATTACHING TO RUNNING DAEMONS>)."
17447 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17448 msgid "B<-m dev[:mountpoint[:options]]>"
17452 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17453 msgid "B<--mount dev[:mountpoint[:options]]>"
17457 #: ../fish/guestfish.pod:308
17458 msgid "Mount the named partition or logical volume on the given mountpoint."
17462 #: ../fish/guestfish.pod:310
17463 msgid "If the mountpoint is omitted, it defaults to C</>."
17467 #: ../fish/guestfish.pod:312
17468 msgid "You have to mount something on C</> before most commands will work."
17472 #: ../fish/guestfish.pod:314
17474 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17479 #: ../fish/guestfish.pod:317
17481 "If you don't know what filesystems a disk image contains, you can either run "
17482 "guestfish without this option, then list the partitions, filesystems and LVs "
17483 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17484 "commands), or you can use the L<virt-filesystems(1)> program."
17488 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17490 "The third (and rarely used) part of the mount parameter is the list of mount "
17491 "options used to mount the underlying filesystem. If this is not given, then "
17492 "the mount options are either the empty string or C<ro> (the latter if the "
17493 "I<--ro> flag is used). By specifying the mount options, you override this "
17494 "default choice. Probably the only time you would use this is to enable ACLs "
17495 "and/or extended attributes if the filesystem can support them:"
17499 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17502 " -m /dev/sda1:/:acl,user_xattr\n"
17507 #: ../fish/guestfish.pod:333
17508 msgid "Using this flag is equivalent to using the C<mount-options> command."
17512 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17513 #: ../resize/virt-resize.pod:352
17518 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17519 msgid "B<--no-sync>"
17520 msgstr "B<--no-sync>"
17523 #: ../fish/guestfish.pod:339
17525 "Disable autosync. This is enabled by default. See the discussion of "
17526 "autosync in the L<guestfs(3)> manpage."
17530 #: ../fish/guestfish.pod:342
17535 #: ../fish/guestfish.pod:344
17536 msgid "B<--new type>"
17537 msgstr "B<--new тип>"
17540 #: ../fish/guestfish.pod:346
17542 msgstr "B<-N help>"
17545 #: ../fish/guestfish.pod:348
17547 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
17548 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17549 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
17554 #: ../fish/guestfish.pod:353
17555 msgid "B<--progress-bars>"
17556 msgstr "B<--progress-bars>"
17559 #: ../fish/guestfish.pod:355
17560 msgid "Enable progress bars, even when guestfish is used non-interactively."
17564 #: ../fish/guestfish.pod:357
17566 "Progress bars are enabled by default when guestfish is used as an "
17567 "interactive shell."
17571 #: ../fish/guestfish.pod:360
17572 msgid "B<--no-progress-bars>"
17573 msgstr "B<--no-progress-bars>"
17576 #: ../fish/guestfish.pod:362
17577 msgid "Disable progress bars."
17581 #: ../fish/guestfish.pod:364
17582 msgid "B<--remote[=pid]>"
17583 msgstr "B<--remote[=pid]>"
17586 #: ../fish/guestfish.pod:366
17588 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
17589 "CONTROL GUESTFISH OVER A SOCKET> below."
17593 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17594 #: ../rescue/virt-rescue.pod:161
17599 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17600 #: ../rescue/virt-rescue.pod:163
17605 #: ../fish/guestfish.pod:373
17607 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17608 "mounts are done read-only."
17612 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17614 "The option must always be used if the disk image or virtual machine might be "
17615 "running, and is generally recommended in cases where you don't need write "
17616 "access to the disk."
17620 #: ../fish/guestfish.pod:380
17622 "Note that prepared disk images created with I<-N> are not affected by this "
17623 "option. Also commands like C<add> are not affected - you have to specify "
17624 "the C<readonly:true> option explicitly if you need it."
17628 #: ../fish/guestfish.pod:384
17629 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17633 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17634 #: ../rescue/virt-rescue.pod:173
17635 msgid "B<--selinux>"
17636 msgstr "B<--selinux>"
17639 #: ../fish/guestfish.pod:388
17640 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
17644 #: ../fish/guestfish.pod:394
17646 "Enable very verbose messages. This is particularly useful if you find a bug."
17650 #: ../fish/guestfish.pod:401
17651 msgid "Display the guestfish / libguestfs version number and exit."
17655 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17656 #: ../rescue/virt-rescue.pod:190
17661 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17662 #: ../rescue/virt-rescue.pod:192
17667 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17669 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17670 "mounts are done read-write."
17674 #: ../fish/guestfish.pod:410
17675 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17679 #: ../fish/guestfish.pod:414
17680 msgid "Echo each command before executing it."
17684 #: ../fish/guestfish.pod:418
17685 msgid "COMMANDS ON COMMAND LINE"
17689 #: ../fish/guestfish.pod:420
17691 "Any additional (non-option) arguments are treated as commands to execute."
17695 #: ../fish/guestfish.pod:423
17697 "Commands to execute should be separated by a colon (C<:>), where the colon "
17698 "is a separate parameter. Thus:"
17702 #: ../fish/guestfish.pod:426
17705 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17710 #: ../fish/guestfish.pod:428
17712 "If there are no additional arguments, then we enter a shell, either an "
17713 "interactive shell with a prompt (if the input is a terminal) or a non-"
17714 "interactive shell."
17718 #: ../fish/guestfish.pod:432
17720 "In either command line mode or non-interactive shell, the first command that "
17721 "gives an error causes the whole shell to exit. In interactive mode (with a "
17722 "prompt) if a command fails, you can continue to enter commands."
17726 #: ../fish/guestfish.pod:437
17727 msgid "USING launch (OR run)"
17731 #: ../fish/guestfish.pod:439
17733 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17734 "then launch it, then mount any disks you need, and finally issue actions/"
17735 "commands. So the general order of the day is:"
17739 #: ../fish/guestfish.pod:447
17740 msgid "add or -a/--add"
17744 #: ../fish/guestfish.pod:451
17745 msgid "launch (aka run)"
17749 #: ../fish/guestfish.pod:455
17750 msgid "mount or -m/--mount"
17754 #: ../fish/guestfish.pod:459
17755 msgid "any other commands"
17759 #: ../fish/guestfish.pod:463
17761 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
17762 "guest before mounting or performing any other commands."
17766 #: ../fish/guestfish.pod:466
17768 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17769 "I<--new> options were given then C<run> is done automatically, simply "
17770 "because guestfish can't perform the action you asked for without doing this."
17774 #: ../fish/guestfish.pod:471
17775 msgid "OPENING DISKS FOR READ AND WRITE"
17779 #: ../fish/guestfish.pod:473
17781 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17782 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17783 "I<-i> and I<-m> open disk images read-only or for writing."
17787 #: ../fish/guestfish.pod:478
17789 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17790 "opening disk images supplied on the command line for write. To open a disk "
17791 "image read-only you have to do I<-a image --ro>."
17795 #: ../fish/guestfish.pod:482
17797 "This matters: If you accidentally open a live VM disk image writable then "
17798 "you will cause irreversible disk corruption."
17802 #: ../fish/guestfish.pod:485
17804 "In a future libguestfs we intend to change the default the other way. Disk "
17805 "images will be opened read-only. You will have to either specify "
17806 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17807 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17808 "access for disk images specified by those other command line options."
17812 #: ../fish/guestfish.pod:492
17814 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17815 "which does nothing (it is already the default). However it is highly "
17816 "recommended that you use this option to indicate that you need write access, "
17817 "and prepare your scripts for the day when this option will be required for "
17822 #: ../fish/guestfish.pod:498
17824 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17825 "other libguestfs program apart from guestfish and guestmount."
17829 #: ../fish/guestfish.pod:501
17834 #: ../fish/guestfish.pod:503
17836 "You can quote ordinary parameters using either single or double quotes. For "
17841 #: ../fish/guestfish.pod:506
17844 " add \"file with a space.img\"\n"
17849 #: ../fish/guestfish.pod:508
17852 " rm '/file name'\n"
17857 #: ../fish/guestfish.pod:510
17865 #: ../fish/guestfish.pod:512
17867 "A few commands require a list of strings to be passed. For these, use a "
17868 "whitespace-separated list, enclosed in quotes. Strings containing "
17869 "whitespace to be passed through must be enclosed in single quotes. A "
17870 "literal single quote must be escaped with a backslash."
17874 #: ../fish/guestfish.pod:517
17877 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17878 " command \"/bin/echo 'foo bar'\"\n"
17879 " command \"/bin/echo \\'foo\\'\"\n"
17884 #: ../fish/guestfish.pod:521
17885 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17889 #: ../fish/guestfish.pod:523
17891 "In double-quoted arguments (only) use backslash to insert special characters:"
17895 #: ../fish/guestfish.pod:528
17900 #: ../fish/guestfish.pod:530
17901 msgid "Alert (bell) character."
17905 #: ../fish/guestfish.pod:532
17910 #: ../fish/guestfish.pod:534
17911 msgid "Backspace character."
17915 #: ../fish/guestfish.pod:536
17920 #: ../fish/guestfish.pod:538
17921 msgid "Form feed character."
17925 #: ../fish/guestfish.pod:540
17930 #: ../fish/guestfish.pod:542
17931 msgid "Newline character."
17935 #: ../fish/guestfish.pod:544
17940 #: ../fish/guestfish.pod:546
17941 msgid "Carriage return character."
17945 #: ../fish/guestfish.pod:548
17950 #: ../fish/guestfish.pod:550
17951 msgid "Horizontal tab character."
17955 #: ../fish/guestfish.pod:552
17960 #: ../fish/guestfish.pod:554
17961 msgid "Vertical tab character."
17965 #: ../fish/guestfish.pod:556
17970 #: ../fish/guestfish.pod:558
17971 msgid "A literal double quote character."
17975 #: ../fish/guestfish.pod:560
17980 #: ../fish/guestfish.pod:562
17982 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
17987 #: ../fish/guestfish.pod:565
17992 #: ../fish/guestfish.pod:567
17994 "A character with hex value I<hh>. There must be precisely 2 hex digits."
17998 #: ../fish/guestfish.pod:570
18000 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18005 #: ../fish/guestfish.pod:573
18010 #: ../fish/guestfish.pod:575
18011 msgid "A literal backslash character."
18015 #: ../fish/guestfish.pod:579
18016 msgid "OPTIONAL ARGUMENTS"
18020 #: ../fish/guestfish.pod:581
18022 "Some commands take optional arguments. These arguments appear in this "
18023 "documentation as C<[argname:..]>. You can use them as in these examples:"
18027 #: ../fish/guestfish.pod:585
18030 " add-drive-opts filename\n"
18035 #: ../fish/guestfish.pod:587
18038 " add-drive-opts filename readonly:true\n"
18043 #: ../fish/guestfish.pod:589
18046 " add-drive-opts filename format:qcow2 readonly:false\n"
18051 #: ../fish/guestfish.pod:591
18053 "Each optional argument can appear at most once. All optional arguments must "
18054 "appear after the required ones."
18058 #: ../fish/guestfish.pod:594
18063 #: ../fish/guestfish.pod:596
18065 "This section applies to all commands which can take integers as parameters."
18069 #: ../fish/guestfish.pod:599
18070 msgid "SIZE SUFFIX"
18074 #: ../fish/guestfish.pod:601
18076 "When the command takes a parameter measured in bytes, you can use one of the "
18077 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18081 #: ../fish/guestfish.pod:607
18082 msgid "B<k> or B<K> or B<KiB>"
18083 msgstr "B<k>, B<K> або B<KiB>"
18086 #: ../fish/guestfish.pod:609
18087 msgid "The size in kilobytes (multiplied by 1024)."
18091 #: ../fish/guestfish.pod:611
18096 #: ../fish/guestfish.pod:613
18097 msgid "The size in SI 1000 byte units."
18101 #: ../fish/guestfish.pod:615
18102 msgid "B<M> or B<MiB>"
18103 msgstr "B<M> або B<MiB>"
18106 #: ../fish/guestfish.pod:617
18107 msgid "The size in megabytes (multiplied by 1048576)."
18111 #: ../fish/guestfish.pod:619
18116 #: ../fish/guestfish.pod:621
18117 msgid "The size in SI 1000000 byte units."
18121 #: ../fish/guestfish.pod:623
18122 msgid "B<G> or B<GiB>"
18123 msgstr "B<G> або B<GiB>"
18126 #: ../fish/guestfish.pod:625
18127 msgid "The size in gigabytes (multiplied by 2**30)."
18128 msgstr "Розмір у гігабайтах (з множником 2**30)."
18131 #: ../fish/guestfish.pod:627
18136 #: ../fish/guestfish.pod:629
18137 msgid "The size in SI 10**9 byte units."
18138 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18141 #: ../fish/guestfish.pod:631
18142 msgid "B<T> or B<TiB>"
18143 msgstr "B<T> або B<TiB>"
18146 #: ../fish/guestfish.pod:633
18147 msgid "The size in terabytes (multiplied by 2**40)."
18148 msgstr "Розмір у терабайтах (з множником 2**40)."
18151 #: ../fish/guestfish.pod:635
18156 #: ../fish/guestfish.pod:637
18157 msgid "The size in SI 10**12 byte units."
18161 #: ../fish/guestfish.pod:639
18162 msgid "B<P> or B<PiB>"
18163 msgstr "B<P> або B<PiB>"
18166 #: ../fish/guestfish.pod:641
18167 msgid "The size in petabytes (multiplied by 2**50)."
18171 #: ../fish/guestfish.pod:643
18176 #: ../fish/guestfish.pod:645
18177 msgid "The size in SI 10**15 byte units."
18181 #: ../fish/guestfish.pod:647
18182 msgid "B<E> or B<EiB>"
18183 msgstr "B<E> або B<EiB>"
18186 #: ../fish/guestfish.pod:649
18187 msgid "The size in exabytes (multiplied by 2**60)."
18191 #: ../fish/guestfish.pod:651
18196 #: ../fish/guestfish.pod:653
18197 msgid "The size in SI 10**18 byte units."
18201 #: ../fish/guestfish.pod:655
18202 msgid "B<Z> or B<ZiB>"
18203 msgstr "B<Z> або B<ZiB>"
18206 #: ../fish/guestfish.pod:657
18207 msgid "The size in zettabytes (multiplied by 2**70)."
18211 #: ../fish/guestfish.pod:659
18216 #: ../fish/guestfish.pod:661
18217 msgid "The size in SI 10**21 byte units."
18221 #: ../fish/guestfish.pod:663
18222 msgid "B<Y> or B<YiB>"
18223 msgstr "B<Y> або B<YiB>"
18226 #: ../fish/guestfish.pod:665
18227 msgid "The size in yottabytes (multiplied by 2**80)."
18231 #: ../fish/guestfish.pod:667
18236 #: ../fish/guestfish.pod:669
18237 msgid "The size in SI 10**24 byte units."
18241 #: ../fish/guestfish.pod:675
18244 " truncate-size /file 1G\n"
18249 #: ../fish/guestfish.pod:677
18250 msgid "would truncate the file to 1 gigabyte."
18254 #: ../fish/guestfish.pod:679
18256 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18257 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18258 "suffix will probably not do what you expect."
18262 #: ../fish/guestfish.pod:683
18263 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18267 #: ../fish/guestfish.pod:685
18269 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18270 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18274 #: ../fish/guestfish.pod:688
18277 " 1234 decimal number 1234\n"
18278 " 02322 octal number, equivalent to decimal 1234\n"
18279 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18284 #: ../fish/guestfish.pod:692
18286 "When using the C<chmod> command, you almost always want to specify an octal "
18287 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18288 "L<chmod(1)> program):"
18292 #: ../fish/guestfish.pod:696
18295 " chmod 0777 /public # OK\n"
18296 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18301 #: ../fish/guestfish.pod:699
18303 "Commands that return numbers usually print them in decimal, but some "
18304 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18305 "octal, preceeded by C<0>)."
18309 #: ../fish/guestfish.pod:703
18310 msgid "WILDCARDS AND GLOBBING"
18314 #: ../fish/guestfish.pod:705
18316 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18317 "(globbing) by default. So for example the following will not do what you "
18322 #: ../fish/guestfish.pod:709
18330 #: ../fish/guestfish.pod:711
18332 "Assuming you don't have a directory called literally C</home/*> then the "
18333 "above command will return an error."
18337 #: ../fish/guestfish.pod:714
18338 msgid "To perform wildcard expansion, use the C<glob> command."
18342 #: ../fish/guestfish.pod:716
18345 " glob rm-rf /home/*\n"
18350 #: ../fish/guestfish.pod:718
18352 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18353 "many times), equivalent to:"
18357 #: ../fish/guestfish.pod:721
18360 " rm-rf /home/jim\n"
18361 " rm-rf /home/joe\n"
18362 " rm-rf /home/mary\n"
18367 #: ../fish/guestfish.pod:725
18368 msgid "C<glob> only works on simple guest paths and not on device names."
18372 #: ../fish/guestfish.pod:727
18374 "If you have several parameters, each containing a wildcard, then glob will "
18375 "perform a Cartesian product."
18379 #: ../fish/guestfish.pod:730
18384 #: ../fish/guestfish.pod:732
18386 "Any line which starts with a I<#> character is treated as a comment and "
18387 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18388 "a command. For example:"
18392 #: ../fish/guestfish.pod:736
18395 " # this is a comment\n"
18396 " # this is a comment\n"
18397 " foo # NOT a comment\n"
18402 #: ../fish/guestfish.pod:740
18403 msgid "Blank lines are also ignored."
18407 #: ../fish/guestfish.pod:742
18408 msgid "RUNNING COMMANDS LOCALLY"
18412 #: ../fish/guestfish.pod:744
18414 "Any line which starts with a I<!> character is treated as a command sent to "
18415 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18419 #: ../fish/guestfish.pod:748
18423 " tgz-out /remote local/remote-data.tar.gz\n"
18428 #: ../fish/guestfish.pod:751
18430 "will create a directory C<local> on the host, and then export the contents "
18431 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18432 "(See C<tgz-out>)."
18436 #: ../fish/guestfish.pod:755
18438 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18439 "effect, due to the way that subprocesses work in Unix."
18443 #: ../fish/guestfish.pod:758
18444 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18448 #: ../fish/guestfish.pod:760
18450 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18451 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18452 "and executed as guestfish commands."
18456 #: ../fish/guestfish.pod:764
18458 "Thus you can use shell script to construct arbitrary guestfish commands "
18459 "which are then parsed by guestfish."
18463 #: ../fish/guestfish.pod:767
18465 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18466 "through C</foo.100>) using guestfish commands alone. However this is simple "
18467 "if we use a shell script to create the guestfish commands for us:"
18471 #: ../fish/guestfish.pod:772
18474 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18479 #: ../fish/guestfish.pod:774
18480 msgid "or with names like C</foo.001>:"
18484 #: ../fish/guestfish.pod:776
18487 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18492 #: ../fish/guestfish.pod:778
18494 "When using guestfish interactively it can be helpful to just run the shell "
18495 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18496 "ordinary I<!> local command), see what guestfish commands it would run, and "
18497 "when you are happy with those prepend the C<E<lt>> character to run the "
18498 "guestfish commands for real."
18502 #: ../fish/guestfish.pod:784
18507 #: ../fish/guestfish.pod:786
18509 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18510 "command (a guestfish command) to the second command (any host command). For "
18515 #: ../fish/guestfish.pod:790
18518 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18523 #: ../fish/guestfish.pod:792
18525 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18526 "program). The above command would list all accounts in the guest filesystem "
18527 "which have UID 0, ie. root accounts including backdoors. Other examples:"
18531 #: ../fish/guestfish.pod:797
18534 " hexdump /bin/ls | head\n"
18535 " list-devices | tail -1\n"
18536 " tgz-out / - | tar ztf -\n"
18541 #: ../fish/guestfish.pod:801
18543 "The space before the pipe symbol is required, any space after the pipe "
18544 "symbol is optional. Everything after the pipe symbol is just passed "
18545 "straight to the host shell, so it can contain redirections, globs and "
18546 "anything else that makes sense on the host side."
18550 #: ../fish/guestfish.pod:806
18552 "To use a literal argument which begins with a pipe symbol, you have to quote "
18557 #: ../fish/guestfish.pod:809
18565 #: ../fish/guestfish.pod:811
18566 msgid "HOME DIRECTORIES"
18570 #: ../fish/guestfish.pod:813
18572 "If a parameter starts with the character C<~> then the tilde may be expanded "
18573 "as a home directory path (either C<~> for the current user's home directory, "
18574 "or C<~user> for another user)."
18578 #: ../fish/guestfish.pod:817
18580 "Note that home directory expansion happens for users known I<on the host>, "
18581 "not in the guest filesystem."
18585 #: ../fish/guestfish.pod:820
18587 "To use a literal argument which begins with a tilde, you have to quote it, "
18592 #: ../fish/guestfish.pod:823
18600 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18601 msgid "ENCRYPTED DISKS"
18602 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18605 #: ../fish/guestfish.pod:827
18607 "Libguestfs has some support for Linux guests encrypted according to the "
18608 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18609 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
18610 "LUKS is supported."
18614 #: ../fish/guestfish.pod:832
18615 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18619 #: ../fish/guestfish.pod:834
18622 " ><fs> vfs-type /dev/sda2\n"
18628 #: ../fish/guestfish.pod:837
18630 "Then open those devices using L</luks-open>. This creates a device-mapper "
18631 "device called C</dev/mapper/luksdev>."
18635 #: ../fish/guestfish.pod:840
18638 " ><fs> luks-open /dev/sda2 luksdev\n"
18639 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18644 #: ../fish/guestfish.pod:843
18646 "Finally you have to tell LVM to scan for volume groups on the newly created "
18651 #: ../fish/guestfish.pod:846
18655 " vg-activate-all true\n"
18660 #: ../fish/guestfish.pod:849
18661 msgid "The logical volume(s) can now be mounted in the usual way."
18665 #: ../fish/guestfish.pod:851
18667 "Before closing a LUKS device you must unmount any logical volumes on it and "
18668 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18669 "one. Then you can close the mapper device:"
18673 #: ../fish/guestfish.pod:855
18676 " vg-activate false /dev/VG\n"
18677 " luks-close /dev/mapper/luksdev\n"
18682 #: ../fish/guestfish.pod:860
18684 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18685 "letters and paths (with some limitations). The following commands are "
18690 #: ../fish/guestfish.pod:864
18693 " file /WINDOWS/system32/config/system.LOG\n"
18698 #: ../fish/guestfish.pod:866
18701 " file win:\\windows\\system32\\config\\system.log\n"
18706 #: ../fish/guestfish.pod:868
18709 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18714 #: ../fish/guestfish.pod:870
18716 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18717 "where the drive is mounted, prepending that to the path, changing all "
18718 "backslash characters to forward slash, then resolving the result using L</"
18719 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
18720 "the parameter might be rewritten like this:"
18724 #: ../fish/guestfish.pod:876
18727 " win:e:\\foo\\bar => /e/FOO/bar\n"
18732 #: ../fish/guestfish.pod:878
18733 msgid "This only works in argument positions that expect a path."
18737 #: ../fish/guestfish.pod:880
18738 msgid "UPLOADING AND DOWNLOADING FILES"
18742 #: ../fish/guestfish.pod:882
18744 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18745 "others which upload from or download to a local file, you can use the "
18746 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
18750 #: ../fish/guestfish.pod:886
18758 #: ../fish/guestfish.pod:888
18760 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18764 #: ../fish/guestfish.pod:891
18767 " tar-out /etc - | tar tf -\n"
18772 #: ../fish/guestfish.pod:893
18774 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18775 "command (see L</PIPES>)."
18779 #: ../fish/guestfish.pod:896
18781 "When using C<-> to read from stdin, the input is read up to the end of "
18782 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
18783 "some arbitrary end marker:"
18787 #: ../fish/guestfish.pod:900
18790 " upload -<<END /foo\n"
18799 #: ../fish/guestfish.pod:906
18801 "Any string of characters can be used instead of C<END>. The end marker must "
18802 "appear on a line of its own, without any preceeding or following characters "
18803 "(not even spaces)."
18807 #: ../fish/guestfish.pod:910
18809 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18810 "upload local files (so-called \"FileIn\" parameters in the generator)."
18814 #: ../fish/guestfish.pod:913
18815 msgid "EXIT ON ERROR BEHAVIOUR"
18819 #: ../fish/guestfish.pod:915
18821 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18822 "taking commands from a human over a tty), and will exit on the first error "
18823 "in non-interactive mode (scripts, commands given on the command line)."
18827 #: ../fish/guestfish.pod:920
18829 "If you prefix a command with a I<-> character, then that command will not "
18830 "cause guestfish to exit, even if that (one) command returns an error."
18834 #: ../fish/guestfish.pod:924
18835 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18839 #: ../fish/guestfish.pod:926
18841 "Guestfish can be remote-controlled over a socket. This is useful "
18842 "particularly in shell scripts where you want to make several different "
18843 "changes to a filesystem, but you don't want the overhead of starting up a "
18844 "guestfish process each time."
18848 #: ../fish/guestfish.pod:931
18849 msgid "Start a guestfish server process using:"
18853 #: ../fish/guestfish.pod:933
18856 " eval \"`guestfish --listen`\"\n"
18861 #: ../fish/guestfish.pod:935
18862 msgid "and then send it commands by doing:"
18866 #: ../fish/guestfish.pod:937
18869 " guestfish --remote cmd [...]\n"
18874 #: ../fish/guestfish.pod:939
18875 msgid "To cause the server to exit, send it the exit command:"
18879 #: ../fish/guestfish.pod:943
18881 "Note that the server will normally exit if there is an error in a command. "
18882 "You can change this in the usual way. See section L</EXIT ON ERROR "
18887 #: ../fish/guestfish.pod:947
18888 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18892 #: ../fish/guestfish.pod:949
18894 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18895 "is how the I<--remote> option knows where to send the commands. You can "
18896 "have several guestfish listener processes running using:"
18900 #: ../fish/guestfish.pod:953
18903 " eval \"`guestfish --listen`\"\n"
18904 " pid1=$GUESTFISH_PID\n"
18905 " eval \"`guestfish --listen`\"\n"
18906 " pid2=$GUESTFISH_PID\n"
18908 " guestfish --remote=$pid1 cmd\n"
18909 " guestfish --remote=$pid2 cmd\n"
18914 #: ../fish/guestfish.pod:961
18915 msgid "REMOTE CONTROL AND CSH"
18919 #: ../fish/guestfish.pod:963
18921 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18926 #: ../fish/guestfish.pod:966
18929 " eval \"`guestfish --listen --csh`\"\n"
18934 #: ../fish/guestfish.pod:968
18935 msgid "REMOTE CONTROL DETAILS"
18939 #: ../fish/guestfish.pod:970
18941 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18942 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18943 "and C<$PID> is the process ID of the server."
18947 #: ../fish/guestfish.pod:974
18948 msgid "Guestfish client and server versions must match exactly."
18952 #: ../fish/guestfish.pod:976
18953 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18957 #: ../fish/guestfish.pod:978
18959 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18960 "context hangs, ie. don't do (note the backquotes):"
18964 #: ../fish/guestfish.pod:981
18967 #| " guestfish --ro -d myguest -i\n"
18970 " a=`guestfish --remote run`\n"
18973 " guestfish --ro -d myguest -i\n"
18977 #: ../fish/guestfish.pod:983
18979 "Since the C<run> command produces no output on stdout, this is not useful "
18980 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
18985 #: ../fish/guestfish.pod:987
18986 msgid "PREPARED DISK IMAGES"
18990 #: ../fish/guestfish.pod:989
18992 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18993 "preformatted disk images that guestfish can make for you to save typing. "
18994 "This is particularly useful for testing purposes. This option is used "
18995 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18996 "can be mixed with I<-a>)."
19000 #: ../fish/guestfish.pod:995
19002 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19003 "the second and so on. Existing files in the current directory are "
19008 #: ../fish/guestfish.pod:999
19010 "The type briefly describes how the disk should be sized, partitioned, how "
19011 "filesystem(s) should be created, and how content should be added. "
19012 "Optionally the type can be followed by extra parameters, separated by C<:> "
19013 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19014 "allocated disk, containing a single partition, with the partition formatted "
19015 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19020 #: ../fish/guestfish.pod:1007
19021 msgid "To list the available types and any extra parameters they take, run:"
19025 #: ../fish/guestfish.pod:1011
19027 "Note that the prepared filesystem is not mounted. You would usually have to "
19028 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19032 #: ../fish/guestfish.pod:1015
19034 "If any I<-N> or I<--new> options are given, the guest is automatically "
19039 #: ../fish/guestfish.pod:1020
19040 msgid "Create a 100MB disk with an ext4-formatted partition:"
19044 #: ../fish/guestfish.pod:1022
19047 " guestfish -N fs:ext4\n"
19052 #: ../fish/guestfish.pod:1024
19053 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19057 #: ../fish/guestfish.pod:1026
19060 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19065 #: ../fish/guestfish.pod:1028
19066 msgid "Create a blank 200MB disk:"
19070 #: ../fish/guestfish.pod:1030
19073 " guestfish -N disk:200M\n"
19078 #: ../fish/guestfish.pod:1032
19079 msgid "PROGRESS BARS"
19083 #: ../fish/guestfish.pod:1034
19085 "Some (not all) long-running commands send progress notification messages as "
19086 "they are running. Guestfish turns these messages into progress bars."
19090 #: ../fish/guestfish.pod:1038
19092 "When a command that supports progress bars takes longer than two seconds to "
19093 "run, and if progress bars are enabled, then you will see one appearing below "
19098 #: ../fish/guestfish.pod:1042
19101 " ><fs> copy-size /large-file /another-file 2048M\n"
19102 " / 10% [#####-----------------------------------------] 00:30\n"
19107 #: ../fish/guestfish.pod:1045
19109 "The spinner on the left hand side moves round once for every progress "
19110 "notification received from the backend. This is a (reasonably) golden "
19111 "assurance that the command is \"doing something\" even if the progress bar "
19112 "is not moving, because the command is able to send the progress "
19113 "notifications. When the bar reaches 100% and the command finishes, the "
19114 "spinner disappears."
19118 #: ../fish/guestfish.pod:1052
19120 "Progress bars are enabled by default when guestfish is used interactively. "
19121 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19122 "and you can disable them completely using I<--no-progress-bars>."
19126 #: ../fish/guestfish.pod:1057
19127 msgid "GUESTFISH COMMANDS"
19131 #: ../fish/guestfish.pod:1059
19133 "The commands in this section are guestfish convenience commands, in other "
19134 "words, they are not part of the L<guestfs(3)> API."
19138 #: ../fish/guestfish.pod:1062
19143 #: ../fish/guestfish.pod:1064
19155 #: ../fish/guestfish.pod:1067
19156 msgid "Without any parameter, this provides general help."
19157 msgstr "Без параметра показує загальну довідкову інформацію."
19160 #: ../fish/guestfish.pod:1069
19161 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19165 #: ../fish/guestfish.pod:1071
19166 msgid "quit | exit"
19170 #: ../fish/guestfish.pod:1073
19171 msgid "This exits guestfish. You can also use C<^D> key."
19175 #: ../fish/guestfish.pod:1075
19176 msgid "@FISH_COMMANDS@"
19180 #: ../fish/guestfish.pod:1077
19185 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1474
19190 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:77
19192 msgstr "КОД ВИХОДУ"
19195 #: ../fish/guestfish.pod:1083
19197 "guestfish returns 0 if the commands completed without error, or 1 if there "
19202 #: ../fish/guestfish.pod:1090
19207 #: ../fish/guestfish.pod:1092
19209 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19214 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2969
19215 msgid "FEBOOTSTRAP_KERNEL"
19219 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2971
19220 msgid "FEBOOTSTRAP_MODULES"
19224 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2973
19226 "These two environment variables allow the kernel that libguestfs uses in the "
19227 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19228 "most recent host kernel is chosen. For more information about kernel "
19229 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19230 "available in febootstrap E<ge> 3.8."
19234 #: ../fish/guestfish.pod:1105
19235 msgid "GUESTFISH_DISPLAY_IMAGE"
19239 #: ../fish/guestfish.pod:1107
19241 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19242 "If not set, it uses L<display(1)>."
19246 #: ../fish/guestfish.pod:1110
19247 msgid "GUESTFISH_PID"
19251 #: ../fish/guestfish.pod:1112
19253 "Used with the I<--remote> option to specify the remote guestfish process to "
19254 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19258 #: ../fish/guestfish.pod:1116
19263 #: ../fish/guestfish.pod:1118
19265 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19266 "not specified, the external L<hexedit(1)> program is used."
19270 #: ../fish/guestfish.pod:1122
19275 #: ../fish/guestfish.pod:1124
19277 "If compiled with GNU readline support, various files in the home directory "
19278 "can be used. See L</FILES>."
19282 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2979
19283 msgid "LIBGUESTFS_APPEND"
19287 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2981
19288 msgid "Pass additional options to the guest kernel."
19292 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2983
19293 msgid "LIBGUESTFS_DEBUG"
19294 msgstr "LIBGUESTFS_DEBUG"
19297 #: ../fish/guestfish.pod:1133
19299 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19300 "effect as using the B<-v> option."
19304 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:2988
19305 msgid "LIBGUESTFS_MEMSIZE"
19306 msgstr "LIBGUESTFS_MEMSIZE"
19309 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:2990
19311 "Set the memory allocated to the qemu process, in megabytes. For example:"
19315 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:2993
19318 " LIBGUESTFS_MEMSIZE=700\n"
19321 " LIBGUESTFS_MEMSIZE=700\n"
19325 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:2995
19326 msgid "LIBGUESTFS_PATH"
19330 #: ../fish/guestfish.pod:1145
19332 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19333 "the discussion of paths in L<guestfs(3)>."
19337 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3000
19338 msgid "LIBGUESTFS_QEMU"
19342 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3002
19344 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19345 "which was found at compile time by the configure script is used."
19349 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3008
19350 msgid "LIBGUESTFS_TRACE"
19354 #: ../fish/guestfish.pod:1156
19355 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19359 #: ../fish/guestfish.pod:1158
19361 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19364 #: ../fish/guestfish.pod:1160
19366 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19371 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3013
19376 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3015
19378 "Location of temporary directory, defaults to C</tmp> except for the cached "
19379 "supermin appliance which defaults to C</var/tmp>."
19383 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3018
19385 "If libguestfs was compiled to use the supermin appliance then the real "
19386 "appliance is cached in this directory, shared between all handles belonging "
19387 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19388 "use in case C</var/tmp> is not large enough."
19392 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19393 #: ../rescue/virt-rescue.pod:269
19398 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19399 #: ../rescue/virt-rescue.pod:273
19400 msgid "$HOME/.libguestfs-tools.rc"
19404 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19405 #: ../rescue/virt-rescue.pod:275
19406 msgid "/etc/libguestfs-tools.conf"
19410 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19411 #: ../rescue/virt-rescue.pod:277
19413 "This configuration file controls the default read-only or read-write mode "
19414 "(I<--ro> or I<--rw>)."
19418 #: ../fish/guestfish.pod:1187
19419 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19423 #: ../fish/guestfish.pod:1189
19424 msgid "$HOME/.guestfish"
19428 #: ../fish/guestfish.pod:1191
19430 "If compiled with GNU readline support, then the command history is saved in "
19435 #: ../fish/guestfish.pod:1194
19436 msgid "$HOME/.inputrc"
19440 #: ../fish/guestfish.pod:1196
19441 msgid "/etc/inputrc"
19445 #: ../fish/guestfish.pod:1198
19447 "If compiled with GNU readline support, then these files can be used to "
19448 "configure readline. For further information, please see L<readline(3)/"
19449 "INITIALIZATION FILE>."
19453 #: ../fish/guestfish.pod:1202
19454 msgid "To write rules which only apply to guestfish, use:"
19458 #: ../fish/guestfish.pod:1204
19468 #: ../fish/guestfish.pod:1208
19470 "Variables that you can set in inputrc that change the behaviour of guestfish "
19471 "in useful ways include:"
19475 #: ../fish/guestfish.pod:1213
19476 msgid "completion-ignore-case (default: on)"
19480 #: ../fish/guestfish.pod:1215
19482 "By default, guestfish will ignore case when tab-completing paths on the "
19487 #: ../fish/guestfish.pod:1218
19490 " set completion-ignore-case off\n"
19495 #: ../fish/guestfish.pod:1220
19496 msgid "to make guestfish case sensitive."
19500 #: ../fish/guestfish.pod:1224
19505 #: ../fish/guestfish.pod:1226
19506 msgid "test2.img (etc)"
19510 #: ../fish/guestfish.pod:1228
19512 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19513 "will be created in the file C<test1.img> in the current directory. The "
19514 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
19515 "the same name will be overwritten."
19519 #: ../fish/guestfish.pod:1237
19521 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19522 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19523 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19524 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19525 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19526 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19530 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3104
19531 #: ../test-tool/libguestfs-test-tool.pod:99
19532 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
19536 #: ../fish/virt-copy-in.pod:5
19538 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19542 #: ../fish/virt-copy-in.pod:9
19545 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19550 #: ../fish/virt-copy-in.pod:11
19553 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19558 #: ../fish/virt-copy-in.pod:15
19560 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19561 "causing disk corruption. The virtual machine must be shut down before you "
19562 "use this command."
19566 #: ../fish/virt-copy-in.pod:21
19568 "C<virt-copy-in> copies files and directories from the local disk into a "
19569 "virtual machine disk image or named libvirt domain."
19573 #: ../fish/virt-copy-in.pod:24
19575 "You can give one of more filenames and directories on the command line. "
19576 "Directories are copied in recursively. The final parameter must be the "
19577 "destination directory in the disk image which must be an absolute path "
19578 "starting with a C</> character."
19582 #: ../fish/virt-copy-in.pod:33
19585 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19590 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19591 msgid "Upload a home directory to a guest:"
19595 #: ../fish/virt-copy-in.pod:37
19598 " virt-copy-in -d MyGuest skel /home\n"
19603 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19604 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19605 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19609 #: ../fish/virt-copy-in.pod:41
19611 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19612 "> C<copy-in> command. For anything more complex than a trivial copy, you "
19613 "are probably better off using guestfish directly."
19617 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19618 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19620 "Since the shell script just passes options straight to guestfish, read "
19621 "L<guestfish(1)> to see the full list of options."
19625 #: ../fish/virt-copy-in.pod:52
19628 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19629 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19630 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19631 #| "libguestfs.org/>."
19633 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19634 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19636 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19637 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19638 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19642 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19643 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19645 #| msgid "Copyright (C) 2009 Red Hat Inc."
19646 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19647 msgstr "© Red Hat Inc., 2009"
19650 #: ../fish/virt-copy-out.pod:5
19652 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19657 #: ../fish/virt-copy-out.pod:9
19660 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19665 #: ../fish/virt-copy-out.pod:11
19668 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19673 #: ../fish/virt-copy-out.pod:15
19675 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19676 "image or named libvirt domain."
19680 #: ../fish/virt-copy-out.pod:18
19682 "You can give one of more filenames and directories on the command line. "
19683 "Directories are copied out recursively."
19687 #: ../fish/virt-copy-out.pod:23
19688 msgid "Download the home directories from a virtual machine:"
19692 #: ../fish/virt-copy-out.pod:25
19696 " virt-copy-out -d MyGuest /home homes\n"
19701 #: ../fish/virt-copy-out.pod:30
19703 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19704 "> C<copy-out> command. For anything more complex than a trivial copy, you "
19705 "are probably better off using guestfish directly."
19709 #: ../fish/virt-copy-out.pod:41
19712 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19713 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19714 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19715 #| "libguestfs.org/>."
19717 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19718 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19720 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19721 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19722 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19726 #: ../fish/virt-tar-in.pod:5
19727 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19731 #: ../fish/virt-tar-in.pod:9
19734 " virt-tar-in -a disk.img data.tar /destination\n"
19739 #: ../fish/virt-tar-in.pod:11
19742 " virt-tar-in -d domain data.tar /destination\n"
19747 #: ../fish/virt-tar-in.pod:13
19750 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19755 #: ../fish/virt-tar-in.pod:17
19757 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19758 "causing disk corruption. The virtual machine must be shut down before you "
19759 "use this command."
19763 #: ../fish/virt-tar-in.pod:23
19765 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19766 "image or named libvirt domain."
19770 #: ../fish/virt-tar-in.pod:26
19772 "The first parameter is the tar file. Use C<-> to read the tar file from "
19773 "standard input. The second parameter is the absolute target directory to "
19778 #: ../fish/virt-tar-in.pod:34
19781 " virt-tar-in -d MyGuest homes.tar /home\n"
19786 #: ../fish/virt-tar-in.pod:38
19788 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19789 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
19790 "probably better off using guestfish directly."
19794 #: ../fish/virt-tar-in.pod:49
19797 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19798 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19799 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19800 #| "libguestfs.org/>."
19802 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19803 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19806 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19807 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19808 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19812 #: ../fish/virt-tar-out.pod:5
19814 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19818 #: ../fish/virt-tar-out.pod:9
19821 " virt-tar-out -a disk.img /dir files.tar\n"
19826 #: ../fish/virt-tar-out.pod:11
19829 " virt-tar-out -d domain /dir files.tar\n"
19834 #: ../fish/virt-tar-out.pod:13
19837 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19842 #: ../fish/virt-tar-out.pod:17
19844 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19848 #: ../fish/virt-tar-out.pod:20
19850 "The first parameter is the absolute path of the virtual machine directory. "
19851 "The second parameter is the tar file to write. Use C<-> to write to "
19856 #: ../fish/virt-tar-out.pod:26
19857 msgid "Download the home directories from a guest:"
19861 #: ../fish/virt-tar-out.pod:28
19864 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19869 #: ../fish/virt-tar-out.pod:32
19871 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19872 "> C<tar-out> command. For anything more complex than a trivial copy, you "
19873 "are probably better off using guestfish directly."
19877 #: ../fish/virt-tar-out.pod:43
19880 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19881 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19882 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19883 #| "libguestfs.org/>."
19885 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19886 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19888 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19889 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19890 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19894 #: ../fuse/guestmount.pod:5
19896 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19900 #: ../fuse/guestmount.pod:9
19903 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19908 #: ../fuse/guestmount.pod:11
19911 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19916 #: ../fuse/guestmount.pod:13
19919 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19924 #: ../fuse/guestmount.pod:17
19926 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19927 "machines. If you do this, you risk disk corruption in the VM."
19931 #: ../fuse/guestmount.pod:22
19933 "The guestmount program can be used to mount virtual machine filesystems and "
19934 "other disk images on the host. It uses libguestfs for access to the guest "
19935 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19936 "a mountable device."
19940 #: ../fuse/guestmount.pod:27
19942 "Along with other options, you have to give at least one device (I<-a> "
19943 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19944 "option) or use the I<-i> inspection option. How this works is better "
19945 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19950 #: ../fuse/guestmount.pod:33
19952 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
19953 "by you, and the filesystem will not be visible to any other users unless you "
19954 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
19955 "the filesystem, use the C<fusermount -u> command."
19959 #: ../fuse/guestmount.pod:41
19961 "For a typical Windows guest which has its main filesystem on the first "
19966 #: ../fuse/guestmount.pod:44
19969 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19974 #: ../fuse/guestmount.pod:46
19976 "For a typical Linux guest which has a /boot filesystem on the first "
19977 "partition, and the root filesystem on a logical volume:"
19981 #: ../fuse/guestmount.pod:49
19984 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19989 #: ../fuse/guestmount.pod:51
19990 msgid "To get libguestfs to detect guest mountpoints for you:"
19994 #: ../fuse/guestmount.pod:53
19997 " guestmount -a guest.img -i --ro /mnt\n"
20002 #: ../fuse/guestmount.pod:55
20003 msgid "For a libvirt guest called \"Guest\" you could do:"
20007 #: ../fuse/guestmount.pod:57
20010 " guestmount -d Guest -i --ro /mnt\n"
20015 #: ../fuse/guestmount.pod:59
20017 "If you don't know what filesystems are contained in a guest or disk image, "
20018 "use L<virt-filesystems(1)> first:"
20022 #: ../fuse/guestmount.pod:62
20025 " virt-filesystems MyGuest\n"
20030 #: ../fuse/guestmount.pod:64
20032 "If you want to trace the libguestfs calls but without excessive debugging "
20033 "information, we recommend:"
20037 #: ../fuse/guestmount.pod:67
20040 " guestmount [...] --trace /mnt\n"
20045 #: ../fuse/guestmount.pod:69
20046 msgid "If you want to debug the program, we recommend:"
20050 #: ../fuse/guestmount.pod:71
20053 " guestmount [...] --trace --verbose /mnt\n"
20058 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20059 #: ../resize/virt-resize.pod:486
20064 #: ../fuse/guestmount.pod:75
20065 msgid "Other users cannot see the filesystem by default"
20069 #: ../fuse/guestmount.pod:77
20071 "If you mount a filesystem as one user (eg. root), then other users will not "
20072 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20073 "option when mounting:"
20077 #: ../fuse/guestmount.pod:81
20080 " sudo guestmount [...] -o allow_other /mnt\n"
20085 #: ../fuse/guestmount.pod:91
20086 msgid "Add a block device or virtual machine image."
20090 #: ../fuse/guestmount.pod:114
20091 msgid "B<--dir-cache-timeout N>"
20092 msgstr "B<--dir-cache-timeout N>"
20095 #: ../fuse/guestmount.pod:116
20097 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20098 "seconds. The readdir cache [actually, there are several semi-independent "
20099 "caches] is populated after a readdir(2) call with the stat and extended "
20100 "attributes of the files in the directory, in anticipation that they will be "
20101 "requested soon after."
20105 #: ../fuse/guestmount.pod:122
20107 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20108 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20109 "requests, only cache existing ones."
20113 #: ../fuse/guestmount.pod:142
20115 "If you have untrusted raw-format guest disk images, you should use this "
20116 "option to specify the disk format. This avoids a possible security problem "
20117 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20118 "guestfs_add_drive_opts>."
20122 #: ../fuse/guestmount.pod:147
20123 msgid "B<--fuse-help>"
20124 msgstr "B<--fuse-help>"
20127 #: ../fuse/guestmount.pod:149
20128 msgid "Display help on special FUSE options (see I<-o> below)."
20132 #: ../fuse/guestmount.pod:153
20133 msgid "Display brief help and exit."
20137 #: ../fuse/guestmount.pod:177
20139 "Mount the named partition or logical volume on the given mountpoint B<in the "
20140 "guest> (this has nothing to do with mountpoints in the host)."
20144 #: ../fuse/guestmount.pod:180
20146 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20147 "something on C</>."
20151 #: ../fuse/guestmount.pod:197
20153 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20154 "unmounted. If you specify this option, then we don't attempt to sync the "
20155 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20159 #: ../fuse/guestmount.pod:202
20161 #| msgid "B<--partition>"
20162 msgid "B<-o option>"
20163 msgstr "B<--partition>"
20166 #: ../fuse/guestmount.pod:204
20168 #| msgid "B<--partition>"
20169 msgid "B<--option option>"
20170 msgstr "B<--partition>"
20173 #: ../fuse/guestmount.pod:206
20174 msgid "Pass extra options to FUSE."
20178 #: ../fuse/guestmount.pod:208
20180 "To get a list of all the extra options supported by FUSE, use the command "
20181 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20182 "of them are a good idea."
20186 #: ../fuse/guestmount.pod:212
20189 " guestmount --fuse-help\n"
20194 #: ../fuse/guestmount.pod:214
20195 msgid "Some potentially useful FUSE options:"
20199 #: ../fuse/guestmount.pod:218
20200 msgid "B<-o allow_other>"
20204 #: ../fuse/guestmount.pod:220
20205 msgid "Allow other users to see the filesystem."
20209 #: ../fuse/guestmount.pod:222
20210 msgid "B<-o attr_timeout=N>"
20211 msgstr "B<-o attr_timeout=N>"
20214 #: ../fuse/guestmount.pod:224
20215 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20219 #: ../fuse/guestmount.pod:226
20220 msgid "B<-o kernel_cache>"
20224 #: ../fuse/guestmount.pod:228
20226 "Allow the kernel to cache files (reduces the number of reads that have to go "
20227 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20228 "afford the extra memory usage."
20232 #: ../fuse/guestmount.pod:232
20233 msgid "B<-o uid=N> B<-o gid=N>"
20237 #: ../fuse/guestmount.pod:234
20239 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20240 "the chosen values."
20244 #: ../fuse/guestmount.pod:243
20246 "Add devices and mount everything read-only. Also disallow writes and make "
20247 "the disk appear read-only to FUSE."
20251 #: ../fuse/guestmount.pod:246
20253 "This is highly recommended if you are not going to edit the guest disk. If "
20254 "the guest is running and this option is I<not> supplied, then there is a "
20255 "strong risk of disk corruption in the guest. We try to prevent this from "
20256 "happening, but it is not always possible."
20260 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20261 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20265 #: ../fuse/guestmount.pod:255
20266 msgid "Enable SELinux support for the guest."
20270 #: ../fuse/guestmount.pod:261
20271 msgid "Enable verbose messages from underlying libguestfs."
20275 #: ../fuse/guestmount.pod:267
20276 msgid "Display the program version and exit."
20280 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20281 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20282 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20286 #: ../fuse/guestmount.pod:280
20293 #: ../fuse/guestmount.pod:282
20294 msgid "Trace libguestfs calls and entry into each FUSE function."
20298 #: ../fuse/guestmount.pod:284
20299 msgid "This also stops the daemon from forking into the background."
20303 #: ../fuse/guestmount.pod:305
20305 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20306 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20311 #: ../fuse/guestmount.pod:320
20312 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20316 #: ../inspector/virt-inspector.pod:5
20318 "virt-inspector - Display operating system version and other information "
20319 "about a virtual machine"
20323 #: ../inspector/virt-inspector.pod:9
20326 #| " virt-list-partitions [--options] domname\n"
20329 " virt-inspector [--options] -d domname\n"
20332 " virt-list-partitions [--параметри] назва_домену\n"
20336 #: ../inspector/virt-inspector.pod:11
20339 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20342 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20345 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20349 #: ../inspector/virt-inspector.pod:15
20352 #| " virt-list-partitions [--options] domname\n"
20355 " virt-inspector domname\n"
20358 " virt-list-partitions [--параметри] назва_домену\n"
20362 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20365 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20368 " virt-inspector disk.img [disk.img ...]\n"
20371 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20375 #: ../inspector/virt-inspector.pod:21
20377 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20378 "determine the version of the operating system and other information about "
20379 "the virtual machine."
20383 #: ../inspector/virt-inspector.pod:25
20384 msgid "Virt-inspector produces XML output for feeding into other programs."
20388 #: ../inspector/virt-inspector.pod:27
20390 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20391 "the libvirt domain (see: C<virsh list --all>)."
20395 #: ../inspector/virt-inspector.pod:30
20397 "You can also run virt-inspector directly on disk images from a single "
20398 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20399 "has several block devices, in which case you should list several I<-a> "
20400 "options one after another, with the first corresponding to the guest's C</"
20401 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20405 #: ../inspector/virt-inspector.pod:37
20407 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20408 "keys and similar."
20412 #: ../inspector/virt-inspector.pod:40
20414 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20415 "inspect several virtual machines, you have to run virt-inspector several "
20416 "times (for example, from a shell script for-loop)."
20420 #: ../inspector/virt-inspector.pod:45
20422 "Because virt-inspector needs direct access to guest images, it won't "
20423 "normally work over remote libvirt connections."
20427 #: ../inspector/virt-inspector.pod:48
20429 "All of the information available from virt-inspector is also available "
20430 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20431 "The same information can also be fetched using guestfish or via libguestfs "
20432 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20433 "WITH OTHER PROGRAMMING LANGUAGES>)."
20437 #: ../inspector/virt-inspector.pod:81
20439 "Libvirt is only used if you specify a C<domname> on the command line. If "
20440 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20445 #: ../inspector/virt-inspector.pod:94
20447 "When prompting for keys and passphrases, virt-inspector normally turns "
20448 "echoing off so you cannot see what you are typing. If you are not worried "
20449 "about Tempest attacks and there is no one else in the room you can specify "
20450 "this flag to see what you are typing."
20454 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20455 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20456 #: ../tools/virt-win-reg.pl:144
20458 "Specify the format of disk images given on the command line. If this is "
20459 "omitted then the format is autodetected from the content of the disk image."
20463 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20464 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20465 #: ../tools/virt-win-reg.pl:148
20467 "If disk images are requested from libvirt, then this program asks libvirt "
20468 "for this information. In this case, the value of the format parameter is "
20473 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20474 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
20475 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20476 #: ../tools/virt-win-reg.pl:152
20478 "If working with untrusted raw-format guest disk images, you should ensure "
20479 "the format is always specified."
20483 #: ../inspector/virt-inspector.pod:139
20484 msgid "Previous versions of virt-inspector allowed you to write either:"
20488 #: ../inspector/virt-inspector.pod:145
20491 #| " inspect-get-hostname root\n"
20494 " virt-inspector guestname\n"
20497 " inspect-get-hostname корінь\n"
20501 #: ../inspector/virt-inspector.pod:153
20506 #: ../inspector/virt-inspector.pod:155
20508 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20509 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20510 "just an overview."
20514 #: ../inspector/virt-inspector.pod:159
20516 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20517 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
20518 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20519 "which is vanishingly rare in real world VMs."
20523 #: ../inspector/virt-inspector.pod:164
20524 msgid "E<lt>operatingsystemE<gt>"
20528 #: ../inspector/virt-inspector.pod:166
20530 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20531 "describe the operating system, its architecture, the descriptive \"product "
20532 "name\" string, the type of OS and so on, as in this example:"
20536 #: ../inspector/virt-inspector.pod:170
20539 " <operatingsystems>\n"
20540 " <operatingsystem>\n"
20541 " <root>/dev/sda2</root>\n"
20542 " <name>windows</name>\n"
20543 " <arch>i386</arch>\n"
20544 " <distro>windows</distro>\n"
20545 " <product_name>Windows 7 Enterprise</product_name>\n"
20546 " <product_variant>Client</product_variant>\n"
20547 " <major_version>6</major_version>\n"
20548 " <minor_version>1</minor_version>\n"
20549 " <windows_systemroot>/Windows</windows_systemroot>\n"
20550 " <format>installed</format>\n"
20555 #: ../inspector/virt-inspector.pod:183
20557 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20558 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20559 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20560 "architecture. The other fields are fairly self-explanatory, but because "
20561 "these fields are taken directly from the libguestfs inspection API you can "
20562 "find precise information from L<guestfs(3)/INSPECTION>."
20566 #: ../inspector/virt-inspector.pod:191
20568 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20569 "of view of libguestfs (block devices may have completely different names "
20570 "inside the VM itself)."
20574 #: ../inspector/virt-inspector.pod:195
20576 #| msgid "mountpoints"
20577 msgid "E<lt>mountpointsE<gt>"
20578 msgstr "mountpoints"
20581 #: ../inspector/virt-inspector.pod:197
20583 "Un*x-like guests typically have multiple filesystems which are mounted at "
20584 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20585 "element which looks like this:"
20589 #: ../inspector/virt-inspector.pod:201
20592 " <operatingsystems>\n"
20593 " <operatingsystem>\n"
20596 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20597 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20598 " </mountpoints>\n"
20603 #: ../inspector/virt-inspector.pod:209
20605 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20606 "and may have completely different names inside the guest. Only mountable "
20607 "filesystems appear in this list, not things like swap devices."
20611 #: ../inspector/virt-inspector.pod:214
20613 #| msgid "list-filesystems"
20614 msgid "E<lt>filesystemsE<gt>"
20615 msgstr "list-filesystems"
20618 #: ../inspector/virt-inspector.pod:216
20620 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20621 "filesystems belonging to the guest, including swap and empty partitions. "
20622 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20623 "this OS or shared with this OS and other OSes)."
20627 #: ../inspector/virt-inspector.pod:222
20628 msgid "You might see something like this:"
20632 #: ../inspector/virt-inspector.pod:224
20635 " <operatingsystems>\n"
20636 " <operatingsystem>\n"
20639 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20640 " <type>ext4</type>\n"
20641 " <label>Fedora-13-x86_64</label>\n"
20642 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20648 #: ../inspector/virt-inspector.pod:234
20650 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20651 "the label, and the UUID."
20655 #: ../inspector/virt-inspector.pod:237
20656 msgid "E<lt>applicationsE<gt>"
20660 #: ../inspector/virt-inspector.pod:239
20662 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20663 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20668 #: ../inspector/virt-inspector.pod:243
20670 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
20671 "Typical values would be C<rpm> and C<deb>."
20675 #: ../inspector/virt-inspector.pod:246
20677 "E<lt>package_managementE<gt>, if present, describes the package manager. "
20678 "Typical values include C<yum>, C<up2date> and C<apt>"
20682 #: ../inspector/virt-inspector.pod:249
20683 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20687 #: ../inspector/virt-inspector.pod:252
20690 " <operatingsystems>\n"
20691 " <operatingsystem>\n"
20693 " <applications>\n"
20695 " <name>coreutils</name>\n"
20696 " <version>8.5</version>\n"
20697 " <release>1</release>\n"
20698 " </application>\n"
20703 #: ../inspector/virt-inspector.pod:262
20705 "The version and release fields may not be available for some types guests. "
20706 "Other fields are possible, see L<guestfs(3)/"
20707 "guestfs_inspect_list_applications>."
20711 #: ../inspector/virt-inspector.pod:266
20712 msgid "E<lt>drive_mappingsE<gt>"
20716 #: ../inspector/virt-inspector.pod:268
20718 "For operating systems like Windows which use drive letters, virt-inspector "
20719 "is able to find out how drive letters map to filesystems."
20723 #: ../inspector/virt-inspector.pod:272
20726 " <operatingsystems>\n"
20727 " <operatingsystem>\n"
20729 " <drive_mappings>\n"
20730 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20731 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20732 " </drive_mappings>\n"
20737 #: ../inspector/virt-inspector.pod:280
20739 "In the example above, drive C maps to the filesystem on the second partition "
20740 "on the first disk, and drive E maps to the filesystem on the first partition "
20741 "on the second disk."
20745 #: ../inspector/virt-inspector.pod:284
20747 "Note that this only covers permanent local filesystem mappings, not things "
20748 "like network shares. Furthermore NTFS volume mount points may not be listed "
20753 #: ../inspector/virt-inspector.pod:288
20755 #| msgid "B<-s E<lt>NE<gt>>"
20756 msgid "E<lt>iconE<gt>"
20757 msgstr "B<-s E<lt>NE<gt>>"
20760 #: ../inspector/virt-inspector.pod:290
20762 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
20763 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
20764 "very large and high quality."
20768 #: ../inspector/virt-inspector.pod:294
20771 " <operatingsystems>\n"
20772 " <operatingsystem>\n"
20775 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20776 " [... many lines of base64 data ...]\n"
20782 #: ../inspector/virt-inspector.pod:302
20784 "To display the icon, you have to extract it and convert the base64 data back "
20785 "to a binary file. Use an XPath query or simply an editor to extract the "
20786 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20791 #: ../inspector/virt-inspector.pod:307
20794 " base64 -i -d < icon.data > icon.png\n"
20799 #: ../inspector/virt-inspector.pod:309
20800 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20804 #: ../inspector/virt-inspector.pod:311
20806 "Virt-inspector can detect some operating system installers on install disks, "
20807 "live CDs, bootable USB keys and more."
20811 #: ../inspector/virt-inspector.pod:314
20813 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20814 "fields may be present to indicate a live CD, network installer, or one part "
20815 "of a multipart CD. For example:"
20819 #: ../inspector/virt-inspector.pod:318
20822 " <operatingsystems>\n"
20823 " <operatingsystem>\n"
20824 " <root>/dev/sda</root>\n"
20825 " <name>linux</name>\n"
20826 " <arch>i386</arch>\n"
20827 " <distro>ubuntu</distro>\n"
20828 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
20829 " <major_version>10</major_version>\n"
20830 " <minor_version>10</minor_version>\n"
20831 " <format>installer</format>\n"
20837 #: ../inspector/virt-inspector.pod:330
20838 msgid "USING XPATH"
20842 #: ../inspector/virt-inspector.pod:332
20844 "You can use the XPath query language, and/or the xpath tool, in order to "
20845 "select parts of the XML."
20849 #: ../inspector/virt-inspector.pod:337
20852 " $ virt-inspector -d Guest | xpath //filesystems\n"
20853 " Found 1 nodes:\n"
20856 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20857 " <type>ext4</type>\n"
20863 #: ../inspector/virt-inspector.pod:345
20866 " $ virt-inspector -d Guest | \\\n"
20867 " xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20868 " Query didn't return a nodeset. Value: ext4\n"
20873 #: ../inspector/virt-inspector.pod:356
20874 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20878 #: ../inspector/virt-inspector.pod:358
20880 "Early versions of libguestfs shipped with a different virt-inspector program "
20881 "written in Perl (the current version is written in C). The XML output of "
20882 "the Perl virt-inspector was different and it could also output in other "
20883 "formats like text."
20887 #: ../inspector/virt-inspector.pod:363
20889 "The old virt-inspector is no longer supported or shipped with libguestfs."
20893 #: ../inspector/virt-inspector.pod:366
20895 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20896 "versions of virt-inspector with different names:"
20900 #: ../inspector/virt-inspector.pod:369
20903 " virt-inspector Old Perl version.\n"
20904 " virt-inspector2 New C version.\n"
20909 #: ../inspector/virt-inspector.pod:374
20911 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20912 ">, L<http://libguestfs.org/>."
20916 #: ../inspector/virt-inspector.pod:390
20917 msgid "Matthew Booth L<mbooth@redhat.com>"
20921 #: ../java/examples/guestfs-java.pod:5
20922 msgid "guestfs-java - How to use libguestfs from Java"
20926 #: ../java/examples/guestfs-java.pod:9
20929 " import com.redhat.et.libguestfs.*;\n"
20934 #: ../java/examples/guestfs-java.pod:11
20937 " GuestFS g = new GuestFS ();\n"
20938 " g.add_drive_opts (\"disk.img\", null);\n"
20944 #: ../java/examples/guestfs-java.pod:17
20946 "This manual page documents how to call libguestfs from the Java programming "
20947 "language. This page just documents the differences from the C API and gives "
20948 "some examples. If you are not familiar with using libguestfs, you also need "
20949 "to read L<guestfs(3)>."
20953 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20954 msgid "CLOSING THE HANDLE"
20958 #: ../java/examples/guestfs-java.pod:24
20960 "The handle is closed when it is reaped by the garbage collector. Because "
20961 "libguestfs handles include a lot of state, it is also possible to close (and "
20962 "hence free) them explicitly by calling the C<close> method."
20966 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20967 #: ../python/examples/guestfs-python.pod:21
20968 #: ../ruby/examples/guestfs-ruby.pod:22
20975 #: ../java/examples/guestfs-java.pod:31
20977 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20978 "exception. This has a single parameter which is the error message (a "
20983 #: ../java/examples/guestfs-java.pod:35
20984 msgid "Calling any method on a closed handle raises the same exception."
20988 #: ../java/examples/guestfs-java.pod:47
20991 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20992 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
20993 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20995 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20996 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20997 "libguestfs.org/>, L<http://caml.inria.fr/>."
20999 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21000 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21001 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21004 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21006 #| msgid "Copyright (C) 2009 Red Hat Inc."
21007 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21008 msgstr "© Red Hat Inc., 2009"
21011 #: ../ocaml/examples/guestfs-ocaml.pod:5
21012 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21016 #: ../ocaml/examples/guestfs-ocaml.pod:9
21017 msgid "Module style:"
21021 #: ../ocaml/examples/guestfs-ocaml.pod:11
21024 " let g = Guestfs.create () in\n"
21025 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21026 " Guestfs.launch g;\n"
21031 #: ../ocaml/examples/guestfs-ocaml.pod:15
21032 msgid "Object-oriented style:"
21036 #: ../ocaml/examples/guestfs-ocaml.pod:17
21039 " let g = new Guestfs.guestfs () in\n"
21040 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21046 #: ../ocaml/examples/guestfs-ocaml.pod:21
21049 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21051 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21056 #: ../ocaml/examples/guestfs-ocaml.pod:27
21058 "This manual page documents how to call libguestfs from the OCaml programming "
21059 "language. This page just documents the differences from the C API and gives "
21060 "some examples. If you are not familiar with using libguestfs, you also need "
21061 "to read L<guestfs(3)>."
21065 #: ../ocaml/examples/guestfs-ocaml.pod:32
21066 msgid "PROGRAMMING STYLES"
21070 #: ../ocaml/examples/guestfs-ocaml.pod:34
21072 "There are two different programming styles supported by the OCaml bindings. "
21073 "You can use a module style, with each C function mapped to an OCaml function:"
21077 #: ../ocaml/examples/guestfs-ocaml.pod:38
21080 #| " int guestfs_last_errno (guestfs_h *g);\n"
21083 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21086 " int guestfs_last_errno (guestfs_h *g);\n"
21090 #: ../ocaml/examples/guestfs-ocaml.pod:40
21095 #: ../ocaml/examples/guestfs-ocaml.pod:42
21098 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21103 #: ../ocaml/examples/guestfs-ocaml.pod:44
21105 "Alternately you can use an object-oriented style, calling methods on the "
21106 "class C<Guestfs.guestfs>:"
21110 #: ../ocaml/examples/guestfs-ocaml.pod:47
21113 " method set_verbose : bool -> unit\n"
21118 #: ../ocaml/examples/guestfs-ocaml.pod:49
21120 "The object-oriented style is usually briefer, and the minor performance "
21121 "penalty isn't noticable in the general overhead of performing libguestfs "
21126 #: ../ocaml/examples/guestfs-ocaml.pod:55
21128 "The handle is closed when it is reaped by the garbage collector. Because "
21129 "libguestfs handles include a lot of state, it is also possible to close (and "
21130 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21135 #: ../ocaml/examples/guestfs-ocaml.pod:62
21137 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21138 "exception. This has a single parameter which is the error message (a "
21143 #: ../ocaml/examples/guestfs-ocaml.pod:66
21145 "Calling any function/method on a closed handle raises C<Guestfs."
21146 "Handle_closed>. The single parameter is the name of the function that you "
21151 #: ../ocaml/examples/guestfs-ocaml.pod:80
21154 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21155 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21156 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21158 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21159 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21160 "libguestfs.org/>, L<http://caml.inria.fr/>."
21162 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21163 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21164 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21167 #: ../perl/examples/guestfs-perl.pod:5
21168 msgid "guestfs-perl - How to use libguestfs from Perl"
21172 #: ../perl/examples/guestfs-perl.pod:9
21175 " use Sys::Guestfs;\n"
21180 #: ../perl/examples/guestfs-perl.pod:11
21183 " my $h = Sys::Guestfs->new ();\n"
21184 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21185 " $h->launch ();\n"
21186 " $h->mount_options ('', '/dev/sda1', '/');\n"
21187 " $h->touch ('/hello');\n"
21193 #: ../perl/examples/guestfs-perl.pod:20
21195 "This manual page documents how to call libguestfs from the Perl programming "
21196 "language. This page just documents the differences from the C API and gives "
21197 "some examples. If you are not familiar with using libguestfs, you also need "
21198 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21202 #: ../perl/examples/guestfs-perl.pod:26
21207 #: ../perl/examples/guestfs-perl.pod:28
21209 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21214 #: ../perl/examples/guestfs-perl.pod:41
21217 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21218 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21219 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21221 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21222 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21223 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21225 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21226 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21227 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21230 #: ../python/examples/guestfs-python.pod:5
21231 msgid "guestfs-python - How to use libguestfs from Python"
21235 #: ../python/examples/guestfs-python.pod:9
21238 " import guestfs\n"
21239 " g = guestfs.GuestFS ()\n"
21240 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21246 #: ../python/examples/guestfs-python.pod:16
21248 "This manual page documents how to call libguestfs from the Python "
21249 "programming language. This page just documents the differences from the C "
21250 "API and gives some examples. If you are not familiar with using libguestfs, "
21251 "you also need to read L<guestfs(3)>."
21255 #: ../python/examples/guestfs-python.pod:23
21257 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21258 "single string argument which is the error message."
21262 #: ../python/examples/guestfs-python.pod:26
21263 msgid "MORE DOCUMENTATION"
21267 #: ../python/examples/guestfs-python.pod:28
21272 #: ../python/examples/guestfs-python.pod:30
21276 " >>> import guestfs\n"
21277 " >>> help (guestfs)\n"
21282 #: ../python/examples/guestfs-python.pod:44
21285 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21286 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21287 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21289 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21290 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21291 "libguestfs.org/>."
21293 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21294 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21295 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21298 #: ../rescue/virt-rescue.pod:5
21299 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21303 #: ../rescue/virt-rescue.pod:9
21306 #| " virt-list-partitions [--options] domname\n"
21309 " virt-rescue [--options] -d domname\n"
21312 " virt-list-partitions [--параметри] назва_домену\n"
21316 #: ../rescue/virt-rescue.pod:11
21319 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21322 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21325 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21329 #: ../rescue/virt-rescue.pod:15
21332 #| " virt-list-partitions [--options] domname\n"
21335 " virt-rescue [--options] domname\n"
21338 " virt-list-partitions [--параметри] назва_домену\n"
21342 #: ../rescue/virt-rescue.pod:17
21345 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21348 " virt-rescue [--options] disk.img [disk.img ...]\n"
21351 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21355 #: ../rescue/virt-rescue.pod:21
21357 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21358 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21359 "you from doing this, but doesn't catch all cases."
21363 #: ../rescue/virt-rescue.pod:25
21365 "However if you use the I<--ro> (read only) option, then you can attach a "
21366 "shell to a live virtual machine. The results might be strange or "
21367 "inconsistent at times but you won't get disk corruption."
21371 #: ../rescue/virt-rescue.pod:31
21373 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21374 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21375 "recovery tools which you can use to examine or rescue a virtual machine or "
21380 #: ../rescue/virt-rescue.pod:36
21382 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21383 "on disk image(s):"
21387 #: ../rescue/virt-rescue.pod:39
21390 " virt-rescue -d GuestName\n"
21395 #: ../rescue/virt-rescue.pod:41
21398 " virt-rescue --ro -a /path/to/disk.img\n"
21403 #: ../rescue/virt-rescue.pod:43
21406 " virt-rescue -a /dev/sdc\n"
21411 #: ../rescue/virt-rescue.pod:45
21412 msgid "For live VMs you I<must> use the --ro option."
21416 #: ../rescue/virt-rescue.pod:47
21418 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21419 "in an interactive bash shell where you can use many ordinary Linux "
21420 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21421 "appliance. You must mount the virtual machine's filesystems by hand. There "
21422 "is an empty directory called C</sysroot> where you can mount filesystems."
21426 #: ../rescue/virt-rescue.pod:54
21428 "In the example below, we list logical volumes, then choose one to mount "
21429 "under C</sysroot>:"
21433 #: ../rescue/virt-rescue.pod:57
21437 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21438 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21439 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21440 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21441 " ><rescue> ls /sysroot\n"
21446 #: ../rescue/virt-rescue.pod:64
21448 "If you don't know what filesystems are available on the virtual machine then "
21449 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21453 #: ../rescue/virt-rescue.pod:70
21455 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21456 "virtual machine. For example you can use it on a blank file if you want to "
21457 "partition that file (although we would recommend using L<guestfish(1)> "
21458 "instead as it is more suitable for this purpose). You can even use virt-"
21459 "rescue on things like SD cards."
21463 #: ../rescue/virt-rescue.pod:76
21465 "Virt-rescue does not require root. You only need to run it as root if you "
21466 "need root to open the disk image."
21470 #: ../rescue/virt-rescue.pod:79
21472 "This tool is just designed for quick interactive hacking on a virtual "
21473 "machine. For more structured access to a virtual machine disk image, you "
21474 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21475 "make scripted changes to guests, use L<guestfish(1)>."
21479 #: ../rescue/virt-rescue.pod:103
21480 msgid "B<--append kernelopts>"
21484 #: ../rescue/virt-rescue.pod:105
21485 msgid "Pass additional options to the rescue kernel."
21489 #: ../rescue/virt-rescue.pod:135
21492 #| " guestfish --format=raw -a disk.img\n"
21495 " virt-rescue --format=raw -a disk.img\n"
21498 " guestfish --format=raw -a disk.img\n"
21502 #: ../rescue/virt-rescue.pod:139
21505 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21508 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21511 " guestfish --format=raw -a disk.img --format -a another.img\n"
21515 #: ../rescue/virt-rescue.pod:148
21520 #: ../rescue/virt-rescue.pod:150
21522 #| msgid "B<--merge>"
21523 msgid "B<--memsize MB>"
21524 msgstr "B<--merge>"
21527 #: ../rescue/virt-rescue.pod:152
21529 "Change the amount of memory allocated to the rescue system. The default is "
21530 "set by libguestfs and is small but adequate for running system tools. The "
21531 "occasional program might need more memory. The parameter is specified in "
21536 #: ../rescue/virt-rescue.pod:157
21538 #| msgid "B<--inspector>"
21539 msgid "B<--network>"
21540 msgstr "B<--inspector>"
21543 #: ../rescue/virt-rescue.pod:159
21544 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
21548 #: ../rescue/virt-rescue.pod:165
21549 msgid "Open the image read-only."
21553 #: ../rescue/virt-rescue.pod:175
21555 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
21556 "SELINUX> before using this option."
21560 #: ../rescue/virt-rescue.pod:194
21562 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21563 "are done read-write."
21567 #: ../rescue/virt-rescue.pod:207
21568 msgid "Previous versions of virt-rescue allowed you to write either:"
21572 #: ../rescue/virt-rescue.pod:209
21575 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21578 " virt-rescue disk.img [disk.img ...]\n"
21581 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21585 #: ../rescue/virt-rescue.pod:213
21588 #| " file-architecture filename\n"
21591 " virt-rescue guestname\n"
21594 " file-architecture назва_файла\n"
21598 #: ../rescue/virt-rescue.pod:221
21603 #: ../rescue/virt-rescue.pod:223
21605 "Adding the I<--network> option enables QEMU user networking in the rescue "
21606 "appliance. There are some differences between user networking and ordinary "
21611 #: ../rescue/virt-rescue.pod:229
21612 msgid "ping does not work"
21616 #: ../rescue/virt-rescue.pod:231
21618 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21619 "send the ping packets, and because virt-rescue must be able to run as non-"
21620 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
21621 "The ping command will appear to resolve addresses but will not be able to "
21622 "send or receive any packets. This does not mean that the network is not "
21627 #: ../rescue/virt-rescue.pod:238
21628 msgid "cannot receive connections"
21632 #: ../rescue/virt-rescue.pod:240
21633 msgid "QEMU user networking cannot receive incoming connections."
21637 #: ../rescue/virt-rescue.pod:242
21638 msgid "making TCP connections"
21642 #: ../rescue/virt-rescue.pod:244
21644 "The virt-rescue appliance needs to be small and so does not include many "
21645 "network tools. In particular there is no L<telnet(1)> command. You can "
21646 "make TCP connections from the shell using the magical C</dev/tcp/"
21647 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21651 #: ../rescue/virt-rescue.pod:249
21654 " exec 3<>/dev/tcp/redhat.com/80\n"
21655 " echo \"GET /\" >&3\n"
21661 #: ../rescue/virt-rescue.pod:253
21662 msgid "See L<bash(1)> for more details."
21666 #: ../rescue/virt-rescue.pod:259
21668 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
21669 "ENVIRONMENT VARIABLES> for the complete list."
21673 #: ../rescue/virt-rescue.pod:286
21676 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21677 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21678 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21680 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21681 "libguestfs.org/>."
21683 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21684 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21685 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21688 #: ../resize/virt-resize.pod:5
21689 msgid "virt-resize - Resize a virtual machine disk"
21693 #: ../resize/virt-resize.pod:9
21696 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21697 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21698 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21703 #: ../resize/virt-resize.pod:15
21705 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21706 "larger or smaller overall, and resizing or deleting any partitions contained "
21711 #: ../resize/virt-resize.pod:19
21713 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
21714 "not> be used on live virtual machines - for consistent results, shut the "
21715 "virtual machine down before resizing it."
21719 #: ../resize/virt-resize.pod:23
21721 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21722 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21726 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
21727 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
21732 #: ../resize/virt-resize.pod:33
21734 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21735 "fill the extra 5GB of space."
21739 #: ../resize/virt-resize.pod:36
21742 " virt-filesystems --long -h --all -a olddisk\n"
21747 #: ../resize/virt-resize.pod:38
21750 " truncate -r olddisk newdisk\n"
21751 " truncate -s +5G newdisk\n"
21756 #: ../resize/virt-resize.pod:41
21759 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21760 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21765 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
21766 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
21771 #: ../resize/virt-resize.pod:46
21773 "As above, but make the /boot partition 200MB bigger, while giving the "
21774 "remaining space to /dev/sda2:"
21778 #: ../resize/virt-resize.pod:49
21781 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21782 " olddisk newdisk\n"
21787 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
21792 #: ../resize/virt-resize.pod:54
21794 "As in the first example, but expand a logical volume as the final step. "
21795 "This is what you would typically use for Linux guests that use LVM:"
21799 #: ../resize/virt-resize.pod:58
21802 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21803 " olddisk newdisk\n"
21808 #: ../resize/virt-resize.pod:61
21813 #: ../resize/virt-resize.pod:63
21815 "As in the first example, but the output format will be qcow2 instead of a "
21820 #: ../resize/virt-resize.pod:66
21823 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21824 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21829 #: ../resize/virt-resize.pod:71
21830 msgid "DETAILED USAGE"
21834 #: ../resize/virt-resize.pod:73
21835 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21839 #: ../resize/virt-resize.pod:77
21840 msgid "1. Shut down the virtual machine"
21844 #: ../resize/virt-resize.pod:79
21845 msgid "2. Locate input disk image"
21849 #: ../resize/virt-resize.pod:81
21851 "Locate the input disk image (ie. the file or device on the host containing "
21852 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
21853 "dumpxml> like this to find the disk image name:"
21857 #: ../resize/virt-resize.pod:85
21860 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21861 " Found 1 nodes:\n"
21863 " <source dev=\"/dev/vg/lv_guest\" />\n"
21868 #: ../resize/virt-resize.pod:90
21869 msgid "3. Look at current sizing"
21873 #: ../resize/virt-resize.pod:92
21874 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21878 #: ../resize/virt-resize.pod:95
21881 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21882 " Name Type Size Parent\n"
21883 " /dev/sda1 partition 101M /dev/sda\n"
21884 " /dev/sda2 partition 7.9G /dev/sda\n"
21885 " /dev/sda device 8.0G -\n"
21890 #: ../resize/virt-resize.pod:101
21892 "(This example is a virtual machine with an 8 GB disk which we would like to "
21893 "expand up to 10 GB)."
21897 #: ../resize/virt-resize.pod:104
21898 msgid "4. Create output disk"
21902 #: ../resize/virt-resize.pod:106
21904 "Virt-resize cannot do in-place disk modifications. You have to have space "
21905 "to store the resized output disk."
21909 #: ../resize/virt-resize.pod:109
21911 "To store the resized disk image in a file, create a file of a suitable size:"
21915 #: ../resize/virt-resize.pod:112
21918 " # rm -f outdisk\n"
21919 " # truncate -s 10G outdisk\n"
21924 #: ../resize/virt-resize.pod:115
21925 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21929 #: ../resize/virt-resize.pod:117
21932 " # lvcreate -L 10G -n lv_name vg_name\n"
21937 #: ../resize/virt-resize.pod:119
21938 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21942 #: ../resize/virt-resize.pod:121
21945 " # virsh pool-list\n"
21946 " # virsh vol-create-as poolname newvol 10G\n"
21951 #: ../resize/virt-resize.pod:124
21956 #: ../resize/virt-resize.pod:126
21958 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21959 "file) and the output disk. The output disk is the one created in the "
21964 #: ../resize/virt-resize.pod:130
21967 " # virt-resize indisk outdisk\n"
21972 #: ../resize/virt-resize.pod:132
21974 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21975 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
21976 "larger, then an extra, empty partition is created at the end of the disk "
21977 "covering the extra space. If C<outdisk> is smaller, then it will give an "
21982 #: ../resize/virt-resize.pod:138
21984 "More realistically you'd want to expand existing partitions in the disk "
21985 "image by passing extra options (for the full list see the L</OPTIONS> "
21990 #: ../resize/virt-resize.pod:142
21992 "L</--expand> is the most useful option. It expands the named partition "
21993 "within the disk to fill any extra space:"
21997 #: ../resize/virt-resize.pod:145
22000 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22005 #: ../resize/virt-resize.pod:147
22007 "(In this case, an extra partition is I<not> created at the end of the disk, "
22008 "because there will be no unused space)."
22012 #: ../resize/virt-resize.pod:150
22014 "L</--resize> is the other commonly used option. The following would "
22015 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22016 "rest of the available space:"
22020 #: ../resize/virt-resize.pod:154
22023 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22024 " indisk outdisk\n"
22029 #: ../resize/virt-resize.pod:157
22031 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22032 "if virt-resize knows how, it will resize the contents, the equivalent of "
22033 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22034 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22035 "filesystems, so you would have to online resize them after booting the guest."
22039 #: ../resize/virt-resize.pod:164
22040 msgid "Other options are covered below."
22044 #: ../resize/virt-resize.pod:166
22049 #: ../resize/virt-resize.pod:168
22050 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22054 #: ../resize/virt-resize.pod:170
22055 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22059 #: ../resize/virt-resize.pod:172
22062 #| " edit filename\n"
22065 " # virsh edit guestname\n"
22068 " edit назва_файла\n"
22072 #: ../resize/virt-resize.pod:174
22074 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22075 "html#elementsDisks>"
22079 #: ../resize/virt-resize.pod:177
22080 msgid "Then start up the domain with the new, resized disk:"
22084 #: ../resize/virt-resize.pod:179
22087 #| " ln-s target linkname\n"
22090 " # virsh start guestname\n"
22093 " ln-s призначення назва_посилання\n"
22097 #: ../resize/virt-resize.pod:181
22099 "and check that it still works. See also the L</NOTES> section below for "
22100 "additional information."
22104 #: ../resize/virt-resize.pod:184
22105 msgid "7. Resize LVs etc inside the guest"
22109 #: ../resize/virt-resize.pod:186
22110 msgid "(This can also be done offline using L<guestfish(1)>)"
22114 #: ../resize/virt-resize.pod:188
22116 "Once the guest has booted you should see the new space available, at least "
22117 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22118 "may need to resize LVs inside PVs, and also resize filesystem types that "
22119 "virt-resize does not know how to expand."
22123 #: ../resize/virt-resize.pod:195
22124 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22128 #: ../resize/virt-resize.pod:197
22130 "Shrinking is somewhat more complex than expanding, and only an overview is "
22135 #: ../resize/virt-resize.pod:200
22137 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22138 "filesystems). The user has to shrink content before passing the disk image "
22139 "to virt-resize, and virt-resize will check that the content has been shrunk "
22144 #: ../resize/virt-resize.pod:205
22145 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22149 #: ../resize/virt-resize.pod:207
22151 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22152 "steps 3 and 4 above to allocate a new disk image."
22156 #: ../resize/virt-resize.pod:210
22158 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22162 #: ../resize/virt-resize.pod:213
22163 msgid "IGNORING OR DELETING PARTITIONS"
22167 #: ../resize/virt-resize.pod:215
22169 "virt-resize also gives a convenient way to ignore or delete partitions when "
22170 "copying from the input disk to the output disk. Ignoring a partition speeds "
22171 "up the copy where you don't care about the existing contents of a "
22172 "partition. Deleting a partition removes it completely, but note that it "
22173 "also renumbers any partitions after the one which is deleted, which can "
22174 "leave some guests unbootable."
22178 #: ../resize/virt-resize.pod:222
22179 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22183 #: ../resize/virt-resize.pod:224
22185 "If the input disk is in qcow2 format, then you may prefer that the output is "
22186 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22187 "the fly. The output format is simply determined by the format of the empty "
22188 "output container that you provide. Thus to create qcow2 output, use:"
22192 #: ../resize/virt-resize.pod:230
22195 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22200 #: ../resize/virt-resize.pod:232
22201 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22205 #: ../resize/virt-resize.pod:234
22206 msgid "Similarly, to get non-sparse raw output use:"
22210 #: ../resize/virt-resize.pod:236
22213 #| " fallocate path len\n"
22216 " fallocate -l size outdisk\n"
22219 " fallocate шлях довжина\n"
22223 #: ../resize/virt-resize.pod:238
22225 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22226 "dev/zero of=outdisk bs=1M count=..>)"
22230 #: ../resize/virt-resize.pod:247
22231 msgid "Display help."
22235 #: ../resize/virt-resize.pod:249
22240 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22241 #: ../tools/virt-win-reg.pl:120
22243 msgstr "B<--debug>"
22246 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22247 msgid "Enable debugging messages."
22251 #: ../resize/virt-resize.pod:255
22253 #| msgid "B<--no-dest-paths>"
22254 msgid "B<--delete part>"
22255 msgstr "B<--no-dest-paths>"
22258 #: ../resize/virt-resize.pod:257
22260 "Delete the named partition. It would be more accurate to describe this as "
22261 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22262 "the original disk image is left intact."
22266 #: ../resize/virt-resize.pod:261
22268 "Note that when you delete a partition, then anything contained in the "
22269 "partition is also deleted. Furthermore, this causes any partitions that "
22270 "come after to be I<renumbered>, which can easily make your guest unbootable."
22274 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22275 #: ../resize/virt-resize.pod:448
22276 msgid "You can give this option multiple times."
22280 #: ../resize/virt-resize.pod:268
22282 #| msgid "B<--partition>"
22283 msgid "B<--expand part>"
22284 msgstr "B<--partition>"
22287 #: ../resize/virt-resize.pod:270
22289 "Expand the named partition so it uses up all extra space (space left over "
22290 "after any other resize changes that you request have been done)."
22294 #: ../resize/virt-resize.pod:273
22296 "If virt-resize knows how, it will expand the direct content of the "
22297 "partition. For example, if the partition is an LVM PV, it will expand the "
22298 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22299 "content it doesn't know about alone."
22303 #: ../resize/virt-resize.pod:278
22304 msgid "Currently virt-resize can resize:"
22308 #: ../resize/virt-resize.pod:284
22309 msgid "ext2, ext3 and ext4 filesystems."
22313 #: ../resize/virt-resize.pod:288
22314 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22318 #: ../resize/virt-resize.pod:290
22320 "The filesystem must have been shut down consistently last time it was used. "
22321 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22322 "consistency check, so at the first boot after resizing Windows will check "
22327 #: ../resize/virt-resize.pod:297
22329 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22330 "inside the PV, but see the I<--LV-expand> option. The user could also "
22331 "resize LVs as desired after boot."
22335 #: ../resize/virt-resize.pod:303
22336 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22340 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
22341 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22345 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22346 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22347 #: ../tools/virt-win-reg.pl:142
22348 msgid "B<--format> raw"
22352 #: ../resize/virt-resize.pod:311
22354 "Specify the format of the input disk image. If this flag is not given then "
22355 "it is auto-detected from the image itself."
22359 #: ../resize/virt-resize.pod:317
22361 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22362 "AND NON-SPARSE RAW FORMATS>."
22366 #: ../resize/virt-resize.pod:320
22368 #| msgid "B<--format>"
22369 msgid "B<--ignore part>"
22370 msgstr "B<--format>"
22373 #: ../resize/virt-resize.pod:322
22375 "Ignore the named partition. Effectively this means the partition is "
22376 "allocated on the destination disk, but the content is not copied across from "
22377 "the source disk. The content of the partition will be blank (all zero "
22382 #: ../resize/virt-resize.pod:329
22383 msgid "B<--LV-expand logvol>"
22387 #: ../resize/virt-resize.pod:331
22389 "This takes the logical volume and, as a final step, expands it to fill all "
22390 "the space available in its volume group. A typical usage, assuming a Linux "
22391 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22392 "lv_root> would be:"
22396 #: ../resize/virt-resize.pod:336
22399 " virt-resize indisk outdisk \\\n"
22400 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22405 #: ../resize/virt-resize.pod:339
22407 "This would first expand the partition (and PV), and then expand the root "
22408 "device to fill the extra space in the PV."
22412 #: ../resize/virt-resize.pod:342
22414 "The contents of the LV are also resized if virt-resize knows how to do "
22415 "that. You can stop virt-resize from trying to expand the content by using "
22416 "the option I<--no-expand-content>."
22420 #: ../resize/virt-resize.pod:346
22421 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22425 #: ../resize/virt-resize.pod:348
22427 "You can give this option multiple times, I<but> it doesn't make sense to do "
22428 "this unless the logical volumes you specify are all in different volume "
22433 #: ../resize/virt-resize.pod:354
22435 #| msgid "B<--debug>"
22436 msgid "B<--dryrun>"
22437 msgstr "B<--debug>"
22440 #: ../resize/virt-resize.pod:356
22441 msgid "Print a summary of what would be done, but don't do anything."
22445 #: ../resize/virt-resize.pod:358
22446 msgid "B<--no-copy-boot-loader>"
22450 #: ../resize/virt-resize.pod:360
22452 "By default, virt-resize copies over some sectors at the start of the disk "
22453 "(up to the beginning of the first partition). Commonly these sectors "
22454 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22455 "in order for the guest to boot correctly."
22459 #: ../resize/virt-resize.pod:365
22461 "If you specify this flag, then this initial copy is not done. You may need "
22462 "to reinstall the boot loader in this case."
22466 #: ../resize/virt-resize.pod:368
22468 #| msgid "B<--partition>"
22469 msgid "B<--no-extra-partition>"
22470 msgstr "B<--partition>"
22473 #: ../resize/virt-resize.pod:370
22475 "By default, virt-resize creates an extra partition if there is any extra, "
22476 "unused space after all resizing has happened. Use this option to prevent "
22477 "the extra partition from being created. If you do this then the extra space "
22478 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22479 "tool in the guest."
22483 #: ../resize/virt-resize.pod:376
22485 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22490 #: ../resize/virt-resize.pod:379
22492 #| msgid "B<--no-dest-paths>"
22493 msgid "B<--no-expand-content>"
22494 msgstr "B<--no-dest-paths>"
22497 #: ../resize/virt-resize.pod:381
22499 "By default, virt-resize will try to expand the direct contents of "
22500 "partitions, if it knows how (see I<--expand> option above)."
22504 #: ../resize/virt-resize.pod:384
22506 "If you give the I<--no-expand-content> option then virt-resize will not "
22511 #: ../resize/virt-resize.pod:387
22513 #| msgid "ntfsresize-size"
22514 msgid "B<--ntfsresize-force>"
22515 msgstr "ntfsresize-size"
22518 #: ../resize/virt-resize.pod:389
22520 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22521 "the NTFS disk is marked as needing a consistency check. You have to use "
22522 "this option if you want to resize a Windows guest multiple times without "
22523 "booting into Windows between each resize."
22527 #: ../resize/virt-resize.pod:395
22529 #| msgid "B<--format>"
22530 msgid "B<--output-format> raw"
22531 msgstr "B<--format>"
22534 #: ../resize/virt-resize.pod:397
22536 "Specify the format of the output disk image. If this flag is not given then "
22537 "it is auto-detected from the image itself."
22541 #: ../resize/virt-resize.pod:403
22543 "Note that this option I<does not create> the output format. This option "
22544 "just tells libguestfs what it is so it doesn't try to guess it. You still "
22545 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
22546 "SPARSE RAW FORMATS>."
22550 #: ../resize/virt-resize.pod:408
22555 #: ../resize/virt-resize.pod:410
22557 #| msgid "B<--live>"
22562 #: ../resize/virt-resize.pod:412
22563 msgid "Don't print the summary."
22567 #: ../resize/virt-resize.pod:414
22569 #| msgid "B<part_size>"
22570 msgid "B<--resize part=size>"
22571 msgstr "B<part_size>"
22574 #: ../resize/virt-resize.pod:416
22576 "Resize the named partition (expanding or shrinking it) so that it has the "
22581 #: ../resize/virt-resize.pod:419
22583 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22584 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22585 "size; or as a relative number or percentage. For example:"
22589 #: ../resize/virt-resize.pod:425
22592 #| " hexedit /dev/sda 1M\n"
22595 " --resize /dev/sda2=10G\n"
22598 " hexedit /dev/sda 1M\n"
22602 #: ../resize/virt-resize.pod:427
22605 #| " pvresize device\n"
22608 " --resize /dev/sda4=90%\n"
22611 " pvresize пристрій\n"
22615 #: ../resize/virt-resize.pod:429
22618 #| " hexedit /dev/sda 1M\n"
22621 " --resize /dev/sda2=+1G\n"
22624 " hexedit /dev/sda 1M\n"
22628 #: ../resize/virt-resize.pod:431
22631 #| " hexedit /dev/sda 1M\n"
22634 " --resize /dev/sda2=-200M\n"
22637 " hexedit /dev/sda 1M\n"
22641 #: ../resize/virt-resize.pod:433
22644 #| " hexedit /dev/sda 1M\n"
22647 " --resize /dev/sda1=+128K\n"
22650 " hexedit /dev/sda 1M\n"
22654 #: ../resize/virt-resize.pod:435
22657 #| " hexedit /dev/sda 1M\n"
22660 " --resize /dev/sda1=+10%\n"
22663 " hexedit /dev/sda 1M\n"
22667 #: ../resize/virt-resize.pod:437
22670 #| " hexedit /dev/sda 1M\n"
22673 " --resize /dev/sda1=-10%\n"
22676 " hexedit /dev/sda 1M\n"
22680 #: ../resize/virt-resize.pod:439
22682 "You can increase the size of any partition. Virt-resize will expand the "
22683 "direct content of the partition if it knows how (see I<--expand> below)."
22687 #: ../resize/virt-resize.pod:443
22689 "You can only I<decrease> the size of partitions that contain filesystems or "
22690 "PVs which have already been shrunk. Virt-resize will check this has been "
22691 "done before proceeding, or else will print an error (see also I<--resize-"
22696 #: ../resize/virt-resize.pod:450
22697 msgid "B<--resize-force part=size>"
22701 #: ../resize/virt-resize.pod:452
22703 "This is the same as I<--resize> except that it will let you decrease the "
22704 "size of any partition. Generally this means you will lose any data which "
22705 "was at the end of the partition you shrink, but you may not care about that "
22706 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22707 "as a swap partition)."
22711 #: ../resize/virt-resize.pod:458
22712 msgid "See also the I<--ignore> option."
22716 #: ../resize/virt-resize.pod:460
22718 #| msgid "B<--partition>"
22719 msgid "B<--shrink part>"
22720 msgstr "B<--partition>"
22723 #: ../resize/virt-resize.pod:462
22725 "Shrink the named partition until the overall disk image fits in the "
22726 "destination. The named partition B<must> contain a filesystem or PV which "
22727 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22728 "online tools). Virt-resize will check this and give an error if it has not "
22733 #: ../resize/virt-resize.pod:468
22735 "The amount by which the overall disk must be shrunk (after carrying out all "
22736 "other operations requested by the user) is called the \"deficit\". For "
22737 "example, a straight copy (assume no other operations) from a 5GB disk image "
22738 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
22739 "would give an error unless the user specified a partition to shrink and that "
22740 "partition had more than a gigabyte of free space."
22744 #: ../resize/virt-resize.pod:488
22745 msgid "\"Partition 1 does not end on cylinder boundary.\""
22749 #: ../resize/virt-resize.pod:490
22751 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
22752 "means the partitions will not be aligned to the ancient CHS geometry. "
22753 "However CHS geometry is meaningless for disks manufactured since the early "
22754 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
22755 "cylinders is not required by any modern operating system."
22759 #: ../resize/virt-resize.pod:497
22760 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22764 #: ../resize/virt-resize.pod:499
22766 "In Windows Vista and later versions, Microsoft switched to using a separate "
22767 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
22768 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
22769 "the boot partition. Doing so seems to break the guest completely. However "
22770 "expanding the second partition (ie. C: drive) should work."
22774 #: ../resize/virt-resize.pod:506
22776 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22777 "NTFS partitions have been expanded. This is just a safety check and (unless "
22778 "it find errors) is nothing to worry about."
22782 #: ../resize/virt-resize.pod:510
22783 msgid "GUEST BOOT STUCK AT \"GRUB\""
22787 #: ../resize/virt-resize.pod:512
22789 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22790 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
22791 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22792 "although we think is to do with partition alignment."
22796 #: ../resize/virt-resize.pod:517
22799 " guestfish -i -a newdisk\n"
22800 " ><fs> cat /boot/grub/device.map\n"
22801 " # check the contents of this file are sensible or\n"
22802 " # edit the file if necessary\n"
22803 " ><fs> grub-install / /dev/vda\n"
22809 #: ../resize/virt-resize.pod:524
22811 "For more flexible guest reconfiguration, including if you need to specify "
22812 "other parameters to grub-install, use L<virt-rescue(1)>."
22816 #: ../resize/virt-resize.pod:527
22817 msgid "ALTERNATIVE TOOLS"
22821 #: ../resize/virt-resize.pod:529
22823 "There are several proprietary tools for resizing partitions. We won't "
22824 "mention any here."
22828 #: ../resize/virt-resize.pod:532
22830 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22831 "operations on disk images. They can resize and move partitions, but I don't "
22832 "think they can do anything with the contents, and they certainly don't "
22837 #: ../resize/virt-resize.pod:537
22839 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22840 "but at a much lower level. You will probably end up hand-calculating sector "
22841 "offsets, which is something that virt-resize was designed to avoid. If you "
22842 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22847 #: ../resize/virt-resize.pod:552
22849 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22850 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22851 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22852 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22856 #: ../ruby/examples/guestfs-ruby.pod:5
22857 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22861 #: ../ruby/examples/guestfs-ruby.pod:9
22864 " require 'guestfs'\n"
22865 " g = Guestfs::Guestfs.new()\n"
22866 " g.add_drive_opts(\"disk.img\",\n"
22867 " :readonly => 1, :format => \"raw\")\n"
22873 #: ../ruby/examples/guestfs-ruby.pod:17
22875 "This manual page documents how to call libguestfs from the Ruby programming "
22876 "language. This page just documents the differences from the C API and gives "
22877 "some examples. If you are not familiar with using libguestfs, you also need "
22878 "to read L<guestfs(3)>."
22882 #: ../ruby/examples/guestfs-ruby.pod:24
22884 "Errors from libguestfs functions are mapped into the C<Error> exception. "
22885 "This has a single parameter which is the error message (a string)."
22889 #: ../ruby/examples/guestfs-ruby.pod:38
22892 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22893 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22894 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22896 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
22897 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
22898 "libguestfs.org/>."
22900 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22901 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22902 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22905 #: ../src/guestfs-actions.pod:1
22906 msgid "guestfs_add_cdrom"
22910 #: ../src/guestfs-actions.pod:3
22914 " guestfs_add_cdrom (guestfs_h *g,\n"
22915 " const char *filename);\n"
22920 #: ../src/guestfs-actions.pod:17
22922 "This call checks for the existence of C<filename>. This stops you from "
22923 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22924 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
22929 #: ../src/guestfs-actions.pod:24
22931 "If you just want to add an ISO file (often you use this as an efficient way "
22932 "to transfer large files into the guest), then you should probably use "
22933 "C<guestfs_add_drive_ro> instead."
22937 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
22938 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22939 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
22940 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22941 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
22942 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
22943 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
22944 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
22945 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
22946 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
22947 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
22948 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
22949 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
22950 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
22951 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
22952 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
22953 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
22954 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
22955 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
22956 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
22957 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
22958 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
22959 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
22960 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
22961 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
22962 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
22963 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
22964 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
22965 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
22966 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
22967 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
22968 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
22969 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
22970 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
22971 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
22972 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
22973 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
22974 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
22975 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
22976 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4628
22977 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
22978 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
22979 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
22980 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
22981 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
22982 #: ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:4980
22983 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
22984 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
22985 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5165
22986 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5255
22987 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
22988 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
22989 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
22990 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
22991 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
22992 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
22993 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
22994 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
22995 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
22996 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
22997 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
22998 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
22999 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
23000 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
23001 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
23002 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
23003 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
23004 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
23005 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
23006 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
23007 #: ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6571
23008 #: ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:6726
23009 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
23010 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
23011 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
23012 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23013 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
23014 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
23015 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
23016 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
23017 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
23018 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
23019 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
23020 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
23021 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
23022 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
23023 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7602
23024 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
23025 #: ../src/guestfs-actions.pod:7711 ../src/guestfs-actions.pod:7778
23026 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7826
23027 msgid "This function returns 0 on success or -1 on error."
23031 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
23032 #: ../src/guestfs-actions.pod:275
23034 "This function is deprecated. In new code, use the L</"
23035 "guestfs_add_drive_opts> call instead."
23039 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23040 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23041 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23042 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
23043 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
23044 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
23045 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
23046 #: ../src/guestfs-actions.pod:7611
23047 msgid "(Added in 0.3)"
23051 #: ../src/guestfs-actions.pod:41
23052 msgid "guestfs_add_domain"
23056 #: ../src/guestfs-actions.pod:43
23060 " guestfs_add_domain (guestfs_h *g,\n"
23061 " const char *dom,\n"
23067 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23068 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
23069 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
23070 #: ../src/guestfs-actions.pod:5183
23072 "You may supply a list of optional arguments to this call. Use zero or more "
23073 "of the following pairs of parameters, and terminate the list with C<-1> on "
23074 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23078 #: ../src/guestfs-actions.pod:53
23081 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23082 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23083 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23084 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23085 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23090 #: ../src/guestfs-actions.pod:59
23092 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23093 "It works by connecting to libvirt, requesting the domain and domain XML from "
23094 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23099 #: ../src/guestfs-actions.pod:94
23101 "The other optional parameters are passed directly through to "
23102 "C<guestfs_add_drive_opts>."
23106 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23107 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23108 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23109 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23110 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23111 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23112 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23113 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
23114 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
23115 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
23116 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
23117 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
23118 #: ../src/guestfs-actions.pod:7648
23119 msgid "On error this function returns -1."
23123 #: ../src/guestfs-actions.pod:99
23124 msgid "(Added in 1.7.4)"
23128 #: ../src/guestfs-actions.pod:101
23129 msgid "guestfs_add_domain_va"
23133 #: ../src/guestfs-actions.pod:103
23137 " guestfs_add_domain_va (guestfs_h *g,\n"
23138 " const char *dom,\n"
23139 " va_list args);\n"
23144 #: ../src/guestfs-actions.pod:108
23145 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23149 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23150 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23151 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23152 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
23153 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
23154 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
23155 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
23156 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23157 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23160 #: ../src/guestfs-actions.pod:112
23161 msgid "guestfs_add_domain_argv"
23162 msgstr "guestfs_add_domain_argv"
23165 #: ../src/guestfs-actions.pod:114
23169 " guestfs_add_domain_argv (guestfs_h *g,\n"
23170 " const char *dom,\n"
23171 " const struct guestfs_add_domain_argv *optargs);\n"
23176 #: ../src/guestfs-actions.pod:119
23177 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23181 #: ../src/guestfs-actions.pod:123
23182 msgid "guestfs_add_drive"
23186 #: ../src/guestfs-actions.pod:125
23190 " guestfs_add_drive (guestfs_h *g,\n"
23191 " const char *filename);\n"
23196 #: ../src/guestfs-actions.pod:129
23198 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23199 "optional parameters, so the disk is added writable, with the format being "
23200 "detected automatically."
23204 #: ../src/guestfs-actions.pod:133
23206 "Automatic detection of the format opens you up to a potential security hole "
23207 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23208 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23209 "you should think about replacing calls to this function with calls to "
23210 "C<guestfs_add_drive_opts>, and specifying the format."
23214 #: ../src/guestfs-actions.pod:144
23215 msgid "guestfs_add_drive_opts"
23219 #: ../src/guestfs-actions.pod:146
23223 " guestfs_add_drive_opts (guestfs_h *g,\n"
23224 " const char *filename,\n"
23230 #: ../src/guestfs-actions.pod:156
23233 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23234 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23235 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23240 #: ../src/guestfs-actions.pod:185
23242 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23243 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23244 "Possible formats include C<raw> and C<qcow2>."
23248 #: ../src/guestfs-actions.pod:196
23250 "This rarely-used option lets you emulate the behaviour of the deprecated "
23251 "C<guestfs_add_drive_with_if> call (q.v.)"
23255 #: ../src/guestfs-actions.pod:203
23256 msgid "(Added in 1.5.23)"
23260 #: ../src/guestfs-actions.pod:205
23261 msgid "guestfs_add_drive_opts_va"
23265 #: ../src/guestfs-actions.pod:207
23269 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23270 " const char *filename,\n"
23271 " va_list args);\n"
23276 #: ../src/guestfs-actions.pod:212
23277 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23281 #: ../src/guestfs-actions.pod:216
23282 msgid "guestfs_add_drive_opts_argv"
23286 #: ../src/guestfs-actions.pod:218
23290 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23291 " const char *filename,\n"
23292 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23297 #: ../src/guestfs-actions.pod:223
23298 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23302 #: ../src/guestfs-actions.pod:227
23303 msgid "guestfs_add_drive_ro"
23307 #: ../src/guestfs-actions.pod:229
23311 " guestfs_add_drive_ro (guestfs_h *g,\n"
23312 " const char *filename);\n"
23317 #: ../src/guestfs-actions.pod:233
23319 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23320 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23321 "disk is added read-only, with the format being detected automatically."
23325 #: ../src/guestfs-actions.pod:240
23326 msgid "(Added in 1.0.38)"
23330 #: ../src/guestfs-actions.pod:242
23331 msgid "guestfs_add_drive_ro_with_if"
23335 #: ../src/guestfs-actions.pod:244
23339 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23340 " const char *filename,\n"
23341 " const char *iface);\n"
23346 #: ../src/guestfs-actions.pod:249
23348 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23349 "QEMU interface emulation to use at run time."
23353 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23354 #: ../src/guestfs-actions.pod:2436
23355 msgid "(Added in 1.0.84)"
23359 #: ../src/guestfs-actions.pod:263
23360 msgid "guestfs_add_drive_with_if"
23364 #: ../src/guestfs-actions.pod:265
23368 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23369 " const char *filename,\n"
23370 " const char *iface);\n"
23375 #: ../src/guestfs-actions.pod:270
23377 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23378 "QEMU interface emulation to use at run time."
23382 #: ../src/guestfs-actions.pod:284
23383 msgid "guestfs_aug_clear"
23387 #: ../src/guestfs-actions.pod:286
23391 " guestfs_aug_clear (guestfs_h *g,\n"
23392 " const char *augpath);\n"
23397 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23398 msgid "(Added in 1.3.4)"
23402 #: ../src/guestfs-actions.pod:297
23403 msgid "guestfs_aug_close"
23407 #: ../src/guestfs-actions.pod:299
23411 " guestfs_aug_close (guestfs_h *g);\n"
23416 #: ../src/guestfs-actions.pod:302
23418 "Close the current Augeas handle and free up any resources used by it. After "
23419 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23420 "any other Augeas functions."
23424 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23425 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23426 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23427 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23428 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23429 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23430 #: ../src/guestfs-actions.pod:5851
23431 msgid "(Added in 0.7)"
23435 #: ../src/guestfs-actions.pod:311
23436 msgid "guestfs_aug_defnode"
23440 #: ../src/guestfs-actions.pod:313
23443 " struct guestfs_int_bool *\n"
23444 " guestfs_aug_defnode (guestfs_h *g,\n"
23445 " const char *name,\n"
23446 " const char *expr,\n"
23447 " const char *val);\n"
23452 #: ../src/guestfs-actions.pod:322
23454 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23455 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
23456 "containing that single node."
23460 #: ../src/guestfs-actions.pod:330
23462 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23463 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
23467 #: ../src/guestfs-actions.pod:336
23468 msgid "guestfs_aug_defvar"
23472 #: ../src/guestfs-actions.pod:338
23476 " guestfs_aug_defvar (guestfs_h *g,\n"
23477 " const char *name,\n"
23478 " const char *expr);\n"
23483 #: ../src/guestfs-actions.pod:354
23484 msgid "guestfs_aug_get"
23488 #: ../src/guestfs-actions.pod:356
23492 " guestfs_aug_get (guestfs_h *g,\n"
23493 " const char *augpath);\n"
23498 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23499 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23500 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23501 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23502 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23503 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23504 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23505 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
23506 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
23507 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
23508 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
23509 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
23510 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
23511 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
23512 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
23513 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
23514 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
23515 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
23516 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
23517 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
23518 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6665
23519 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
23520 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
23521 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7883
23523 "This function returns a string, or NULL on error. I<The caller must free "
23524 "the returned string after use>."
23528 #: ../src/guestfs-actions.pod:368
23529 msgid "guestfs_aug_init"
23533 #: ../src/guestfs-actions.pod:370
23537 " guestfs_aug_init (guestfs_h *g,\n"
23538 " const char *root,\n"
23544 #: ../src/guestfs-actions.pod:379
23545 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23549 #: ../src/guestfs-actions.pod:404
23551 "This option is only useful when debugging Augeas lenses. Use of this option "
23552 "may require additional memory for the libguestfs appliance. You may need to "
23553 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23554 "C<guestfs_set_memsize>."
23558 #: ../src/guestfs-actions.pod:419
23559 msgid "Do not load the tree in C<guestfs_aug_init>."
23563 #: ../src/guestfs-actions.pod:423
23564 msgid "To close the handle, you can call C<guestfs_aug_close>."
23568 #: ../src/guestfs-actions.pod:431
23569 msgid "guestfs_aug_insert"
23573 #: ../src/guestfs-actions.pod:433
23577 " guestfs_aug_insert (guestfs_h *g,\n"
23578 " const char *augpath,\n"
23579 " const char *label,\n"
23585 #: ../src/guestfs-actions.pod:451
23586 msgid "guestfs_aug_load"
23590 #: ../src/guestfs-actions.pod:453
23594 " guestfs_aug_load (guestfs_h *g);\n"
23599 #: ../src/guestfs-actions.pod:465
23600 msgid "guestfs_aug_ls"
23604 #: ../src/guestfs-actions.pod:467
23608 " guestfs_aug_ls (guestfs_h *g,\n"
23609 " const char *augpath);\n"
23614 #: ../src/guestfs-actions.pod:471
23616 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23617 "sorting the resulting nodes into alphabetical order."
23621 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23622 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23623 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23624 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23625 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23626 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23627 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
23628 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
23629 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
23630 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
23631 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
23632 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
23633 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
23634 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
23635 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
23636 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
23637 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
23638 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
23639 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
23640 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7840
23641 #: ../src/guestfs-actions.pod:7859 ../src/guestfs-actions.pod:7905
23642 #: ../src/guestfs-actions.pod:7924
23644 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23645 ">), or NULL if there was an error. I<The caller must free the strings and "
23646 "the array after use>."
23650 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23651 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23652 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
23653 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
23654 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
23655 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
23656 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
23657 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
23658 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
23659 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
23660 #: ../src/guestfs-actions.pod:7723
23661 msgid "(Added in 0.8)"
23665 #: ../src/guestfs-actions.pod:480
23666 msgid "guestfs_aug_match"
23670 #: ../src/guestfs-actions.pod:482
23674 " guestfs_aug_match (guestfs_h *g,\n"
23675 " const char *augpath);\n"
23680 #: ../src/guestfs-actions.pod:496
23681 msgid "guestfs_aug_mv"
23685 #: ../src/guestfs-actions.pod:498
23689 " guestfs_aug_mv (guestfs_h *g,\n"
23690 " const char *src,\n"
23691 " const char *dest);\n"
23696 #: ../src/guestfs-actions.pod:510
23697 msgid "guestfs_aug_rm"
23701 #: ../src/guestfs-actions.pod:512
23705 " guestfs_aug_rm (guestfs_h *g,\n"
23706 " const char *augpath);\n"
23711 #: ../src/guestfs-actions.pod:524
23712 msgid "guestfs_aug_save"
23716 #: ../src/guestfs-actions.pod:526
23720 " guestfs_aug_save (guestfs_h *g);\n"
23725 #: ../src/guestfs-actions.pod:531
23727 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23732 #: ../src/guestfs-actions.pod:538
23733 msgid "guestfs_aug_set"
23737 #: ../src/guestfs-actions.pod:540
23741 " guestfs_aug_set (guestfs_h *g,\n"
23742 " const char *augpath,\n"
23743 " const char *val);\n"
23748 #: ../src/guestfs-actions.pod:547
23750 "In the Augeas API, it is possible to clear a node by setting the value to "
23751 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
23752 "this call. Instead you must use the C<guestfs_aug_clear> call."
23756 #: ../src/guestfs-actions.pod:556
23757 msgid "guestfs_available"
23761 #: ../src/guestfs-actions.pod:558
23765 " guestfs_available (guestfs_h *g,\n"
23766 " char *const *groups);\n"
23771 #: ../src/guestfs-actions.pod:566
23773 "The libguestfs groups, and the functions that those groups correspond to, "
23774 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
23775 "runtime by calling C<guestfs_available_all_groups>."
23779 #: ../src/guestfs-actions.pod:590
23780 msgid "You must call C<guestfs_launch> before calling this function."
23784 #: ../src/guestfs-actions.pod:612
23786 "This call was added in version C<1.0.80>. In previous versions of "
23787 "libguestfs all you could do would be to speculatively execute a command to "
23788 "find out if the daemon implemented it. See also C<guestfs_version>."
23792 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23793 msgid "(Added in 1.0.80)"
23797 #: ../src/guestfs-actions.pod:623
23798 msgid "guestfs_available_all_groups"
23802 #: ../src/guestfs-actions.pod:625
23806 " guestfs_available_all_groups (guestfs_h *g);\n"
23811 #: ../src/guestfs-actions.pod:628
23813 "This command returns a list of all optional groups that this daemon knows "
23814 "about. Note this returns both supported and unsupported groups. To find "
23815 "out which ones the daemon can actually support you have to call "
23816 "C<guestfs_available> on each member of the returned list."
23820 #: ../src/guestfs-actions.pod:634
23821 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23825 #: ../src/guestfs-actions.pod:640
23826 msgid "(Added in 1.3.15)"
23830 #: ../src/guestfs-actions.pod:642
23831 msgid "guestfs_base64_in"
23835 #: ../src/guestfs-actions.pod:644
23839 " guestfs_base64_in (guestfs_h *g,\n"
23840 " const char *base64file,\n"
23841 " const char *filename);\n"
23846 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23847 msgid "(Added in 1.3.5)"
23851 #: ../src/guestfs-actions.pod:656
23852 msgid "guestfs_base64_out"
23856 #: ../src/guestfs-actions.pod:658
23860 " guestfs_base64_out (guestfs_h *g,\n"
23861 " const char *filename,\n"
23862 " const char *base64file);\n"
23867 #: ../src/guestfs-actions.pod:670
23868 msgid "guestfs_blockdev_flushbufs"
23872 #: ../src/guestfs-actions.pod:672
23876 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23877 " const char *device);\n"
23882 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23883 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23884 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23885 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23886 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23887 msgid "(Added in 0.9.3)"
23891 #: ../src/guestfs-actions.pod:685
23892 msgid "guestfs_blockdev_getbsz"
23896 #: ../src/guestfs-actions.pod:687
23900 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23901 " const char *device);\n"
23906 #: ../src/guestfs-actions.pod:702
23907 msgid "guestfs_blockdev_getro"
23911 #: ../src/guestfs-actions.pod:704
23915 " guestfs_blockdev_getro (guestfs_h *g,\n"
23916 " const char *device);\n"
23921 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
23922 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
23923 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
23924 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
23925 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
23926 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
23927 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
23928 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
23929 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
23930 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
23931 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
23932 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
23933 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
23934 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
23935 #: ../src/guestfs-actions.pod:5344
23936 msgid "This function returns a C truth value on success or -1 on error."
23940 #: ../src/guestfs-actions.pod:717
23941 msgid "guestfs_blockdev_getsize64"
23945 #: ../src/guestfs-actions.pod:719
23949 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23950 " const char *device);\n"
23955 #: ../src/guestfs-actions.pod:725
23956 msgid "See also C<guestfs_blockdev_getsz>."
23960 #: ../src/guestfs-actions.pod:733
23961 msgid "guestfs_blockdev_getss"
23965 #: ../src/guestfs-actions.pod:735
23969 " guestfs_blockdev_getss (guestfs_h *g,\n"
23970 " const char *device);\n"
23975 #: ../src/guestfs-actions.pod:742
23977 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23982 #: ../src/guestfs-actions.pod:751
23983 msgid "guestfs_blockdev_getsz"
23987 #: ../src/guestfs-actions.pod:753
23991 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23992 " const char *device);\n"
23997 #: ../src/guestfs-actions.pod:760
23999 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24000 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24004 #: ../src/guestfs-actions.pod:770
24005 msgid "guestfs_blockdev_rereadpt"
24009 #: ../src/guestfs-actions.pod:772
24013 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24014 " const char *device);\n"
24019 #: ../src/guestfs-actions.pod:784
24020 msgid "guestfs_blockdev_setbsz"
24024 #: ../src/guestfs-actions.pod:786
24028 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24029 " const char *device,\n"
24030 " int blocksize);\n"
24035 #: ../src/guestfs-actions.pod:802
24036 msgid "guestfs_blockdev_setro"
24040 #: ../src/guestfs-actions.pod:804
24044 " guestfs_blockdev_setro (guestfs_h *g,\n"
24045 " const char *device);\n"
24050 #: ../src/guestfs-actions.pod:816
24051 msgid "guestfs_blockdev_setrw"
24055 #: ../src/guestfs-actions.pod:818
24059 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24060 " const char *device);\n"
24065 #: ../src/guestfs-actions.pod:830
24066 msgid "guestfs_btrfs_filesystem_resize"
24070 #: ../src/guestfs-actions.pod:832
24074 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24075 " const char *mountpoint,\n"
24081 #: ../src/guestfs-actions.pod:842
24084 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24089 #: ../src/guestfs-actions.pod:865
24090 msgid "(Added in 1.11.17)"
24094 #: ../src/guestfs-actions.pod:867
24095 msgid "guestfs_btrfs_filesystem_resize_va"
24099 #: ../src/guestfs-actions.pod:869
24103 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24104 " const char *mountpoint,\n"
24105 " va_list args);\n"
24110 #: ../src/guestfs-actions.pod:874
24111 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24115 #: ../src/guestfs-actions.pod:878
24116 msgid "guestfs_btrfs_filesystem_resize_argv"
24120 #: ../src/guestfs-actions.pod:880
24124 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24125 " const char *mountpoint,\n"
24126 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24131 #: ../src/guestfs-actions.pod:885
24132 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24136 #: ../src/guestfs-actions.pod:889
24137 msgid "guestfs_case_sensitive_path"
24141 #: ../src/guestfs-actions.pod:891
24145 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24146 " const char *path);\n"
24151 #: ../src/guestfs-actions.pod:917
24153 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24154 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24155 "how the directories were originally created under Windows)."
24159 #: ../src/guestfs-actions.pod:925
24160 msgid "See also C<guestfs_realpath>."
24164 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
24165 msgid "(Added in 1.0.75)"
24169 #: ../src/guestfs-actions.pod:932
24170 msgid "guestfs_cat"
24174 #: ../src/guestfs-actions.pod:934
24178 " guestfs_cat (guestfs_h *g,\n"
24179 " const char *path);\n"
24184 #: ../src/guestfs-actions.pod:940
24186 "Note that this function cannot correctly handle binary files (specifically, "
24187 "files containing C<\\0> character which is treated as end of string). For "
24188 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24189 "functions which have a more complex interface."
24193 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
24194 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
24195 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
24196 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
24197 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
24198 #: ../src/guestfs-actions.pod:7559
24199 msgid "(Added in 0.4)"
24203 #: ../src/guestfs-actions.pod:953
24204 msgid "guestfs_checksum"
24208 #: ../src/guestfs-actions.pod:955
24212 " guestfs_checksum (guestfs_h *g,\n"
24213 " const char *csumtype,\n"
24214 " const char *path);\n"
24219 #: ../src/guestfs-actions.pod:1001
24220 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24224 #: ../src/guestfs-actions.pod:1003
24225 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24229 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24230 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
24231 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
24232 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
24233 msgid "(Added in 1.0.2)"
24237 #: ../src/guestfs-actions.pod:1010
24238 msgid "guestfs_checksum_device"
24242 #: ../src/guestfs-actions.pod:1012
24246 " guestfs_checksum_device (guestfs_h *g,\n"
24247 " const char *csumtype,\n"
24248 " const char *device);\n"
24253 #: ../src/guestfs-actions.pod:1017
24255 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24256 "device named C<device>. For the types of checksums supported see the "
24257 "C<guestfs_checksum> command."
24261 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
24262 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
24263 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
24264 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
24265 #: ../src/guestfs-actions.pod:7571
24266 msgid "(Added in 1.3.2)"
24270 #: ../src/guestfs-actions.pod:1026
24271 msgid "guestfs_checksums_out"
24275 #: ../src/guestfs-actions.pod:1028
24279 " guestfs_checksums_out (guestfs_h *g,\n"
24280 " const char *csumtype,\n"
24281 " const char *directory,\n"
24282 " const char *sumsfile);\n"
24287 #: ../src/guestfs-actions.pod:1048
24288 msgid "(Added in 1.3.7)"
24292 #: ../src/guestfs-actions.pod:1050
24293 msgid "guestfs_chmod"
24297 #: ../src/guestfs-actions.pod:1052
24301 " guestfs_chmod (guestfs_h *g,\n"
24303 " const char *path);\n"
24308 #: ../src/guestfs-actions.pod:1070
24309 msgid "guestfs_chown"
24313 #: ../src/guestfs-actions.pod:1072
24317 " guestfs_chown (guestfs_h *g,\n"
24320 " const char *path);\n"
24325 #: ../src/guestfs-actions.pod:1088
24326 msgid "guestfs_command"
24330 #: ../src/guestfs-actions.pod:1090
24334 " guestfs_command (guestfs_h *g,\n"
24335 " char *const *arguments);\n"
24340 #: ../src/guestfs-actions.pod:1099
24342 "The single parameter is an argv-style list of arguments. The first element "
24343 "is the name of the program to run. Subsequent elements are parameters. The "
24344 "list must be non-empty (ie. must contain a program name). Note that the "
24345 "command runs directly, and is I<not> invoked via the shell (see "
24350 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24351 #: ../src/guestfs-actions.pod:1615
24352 msgid "(Added in 0.9.1)"
24356 #: ../src/guestfs-actions.pod:1132
24357 msgid "guestfs_command_lines"
24361 #: ../src/guestfs-actions.pod:1134
24365 " guestfs_command_lines (guestfs_h *g,\n"
24366 " char *const *arguments);\n"
24371 #: ../src/guestfs-actions.pod:1138
24373 "This is the same as C<guestfs_command>, but splits the result into a list of "
24378 #: ../src/guestfs-actions.pod:1141
24379 msgid "See also: C<guestfs_sh_lines>"
24383 #: ../src/guestfs-actions.pod:1152
24384 msgid "guestfs_config"
24388 #: ../src/guestfs-actions.pod:1154
24392 " guestfs_config (guestfs_h *g,\n"
24393 " const char *qemuparam,\n"
24394 " const char *qemuvalue);\n"
24399 #: ../src/guestfs-actions.pod:1172
24400 msgid "guestfs_copy_size"
24404 #: ../src/guestfs-actions.pod:1174
24408 " guestfs_copy_size (guestfs_h *g,\n"
24409 " const char *src,\n"
24410 " const char *dest,\n"
24411 " int64_t size);\n"
24416 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24417 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24418 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24419 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
24420 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7780
24421 #: ../src/guestfs-actions.pod:7799
24423 "This long-running command can generate progress notification messages so "
24424 "that the caller can display a progress bar or indicator. To receive these "
24425 "messages, the caller must register a progress event callback. See L<guestfs"
24426 "(3)/GUESTFS_EVENT_PROGRESS>."
24430 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
24431 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
24432 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
24433 msgid "(Added in 1.0.87)"
24437 #: ../src/guestfs-actions.pod:1195
24442 #: ../src/guestfs-actions.pod:1197
24446 " guestfs_cp (guestfs_h *g,\n"
24447 " const char *src,\n"
24448 " const char *dest);\n"
24453 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24454 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24455 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
24456 #: ../src/guestfs-actions.pod:5596
24457 msgid "(Added in 1.0.18)"
24461 #: ../src/guestfs-actions.pod:1209
24462 msgid "guestfs_cp_a"
24466 #: ../src/guestfs-actions.pod:1211
24470 " guestfs_cp_a (guestfs_h *g,\n"
24471 " const char *src,\n"
24472 " const char *dest);\n"
24477 #: ../src/guestfs-actions.pod:1223
24482 #: ../src/guestfs-actions.pod:1225
24486 " guestfs_dd (guestfs_h *g,\n"
24487 " const char *src,\n"
24488 " const char *dest);\n"
24493 #: ../src/guestfs-actions.pod:1235
24495 "If the destination is a device, it must be as large or larger than the "
24496 "source file or device, otherwise the copy will fail. This command cannot do "
24497 "partial copies (see C<guestfs_copy_size>)."
24501 #: ../src/guestfs-actions.pod:1243
24506 #: ../src/guestfs-actions.pod:1245
24510 " guestfs_df (guestfs_h *g);\n"
24515 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24517 "This command is mostly useful for interactive sessions. It is I<not> "
24518 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
24523 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24524 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
24525 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
24526 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
24527 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
24528 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
24529 #: ../src/guestfs-actions.pod:7650
24530 msgid "(Added in 1.0.54)"
24534 #: ../src/guestfs-actions.pod:1259
24535 msgid "guestfs_df_h"
24539 #: ../src/guestfs-actions.pod:1261
24543 " guestfs_df_h (guestfs_h *g);\n"
24548 #: ../src/guestfs-actions.pod:1276
24549 msgid "guestfs_dmesg"
24553 #: ../src/guestfs-actions.pod:1278
24557 " guestfs_dmesg (guestfs_h *g);\n"
24562 #: ../src/guestfs-actions.pod:1285
24564 "Another way to get the same information is to enable verbose messages with "
24565 "C<guestfs_set_verbose> or by setting the environment variable "
24566 "C<LIBGUESTFS_DEBUG=1> before running the program."
24570 #: ../src/guestfs-actions.pod:1295
24571 msgid "guestfs_download"
24575 #: ../src/guestfs-actions.pod:1297
24579 " guestfs_download (guestfs_h *g,\n"
24580 " const char *remotefilename,\n"
24581 " const char *filename);\n"
24586 #: ../src/guestfs-actions.pod:1307
24587 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24591 #: ../src/guestfs-actions.pod:1318
24592 msgid "guestfs_download_offset"
24596 #: ../src/guestfs-actions.pod:1320
24600 " guestfs_download_offset (guestfs_h *g,\n"
24601 " const char *remotefilename,\n"
24602 " const char *filename,\n"
24603 " int64_t offset,\n"
24604 " int64_t size);\n"
24609 #: ../src/guestfs-actions.pod:1333
24611 "Note that there is no limit on the amount of data that can be downloaded "
24612 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24613 "full amount unless an error occurs."
24617 #: ../src/guestfs-actions.pod:1338
24618 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24622 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
24623 msgid "(Added in 1.5.17)"
24627 #: ../src/guestfs-actions.pod:1349
24628 msgid "guestfs_drop_caches"
24632 #: ../src/guestfs-actions.pod:1351
24636 " guestfs_drop_caches (guestfs_h *g,\n"
24637 " int whattodrop);\n"
24642 #: ../src/guestfs-actions.pod:1369
24647 #: ../src/guestfs-actions.pod:1371
24651 " guestfs_du (guestfs_h *g,\n"
24652 " const char *path);\n"
24657 #: ../src/guestfs-actions.pod:1394
24658 msgid "guestfs_e2fsck_f"
24662 #: ../src/guestfs-actions.pod:1396
24666 " guestfs_e2fsck_f (guestfs_h *g,\n"
24667 " const char *device);\n"
24672 #: ../src/guestfs-actions.pod:1404
24674 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
24675 "Normally you should use C<guestfs_fsck>."
24679 #: ../src/guestfs-actions.pod:1409
24680 msgid "(Added in 1.0.29)"
24684 #: ../src/guestfs-actions.pod:1411
24685 msgid "guestfs_echo_daemon"
24689 #: ../src/guestfs-actions.pod:1413
24693 " guestfs_echo_daemon (guestfs_h *g,\n"
24694 " char *const *words);\n"
24699 #: ../src/guestfs-actions.pod:1422
24700 msgid "See also C<guestfs_ping_daemon>."
24704 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24705 #: ../src/guestfs-actions.pod:6453
24706 msgid "(Added in 1.0.69)"
24710 #: ../src/guestfs-actions.pod:1429
24711 msgid "guestfs_egrep"
24715 #: ../src/guestfs-actions.pod:1431
24719 " guestfs_egrep (guestfs_h *g,\n"
24720 " const char *regex,\n"
24721 " const char *path);\n"
24726 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24727 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24728 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24729 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
24730 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
24731 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
24732 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
24733 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
24734 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
24735 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
24736 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
24737 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
24738 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
24739 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
24740 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
24741 #: ../src/guestfs-actions.pod:7847 ../src/guestfs-actions.pod:7866
24742 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
24743 msgid "(Added in 1.0.66)"
24747 #: ../src/guestfs-actions.pod:1448
24748 msgid "guestfs_egrepi"
24752 #: ../src/guestfs-actions.pod:1450
24756 " guestfs_egrepi (guestfs_h *g,\n"
24757 " const char *regex,\n"
24758 " const char *path);\n"
24763 #: ../src/guestfs-actions.pod:1467
24764 msgid "guestfs_equal"
24768 #: ../src/guestfs-actions.pod:1469
24772 " guestfs_equal (guestfs_h *g,\n"
24773 " const char *file1,\n"
24774 " const char *file2);\n"
24779 #: ../src/guestfs-actions.pod:1483
24780 msgid "guestfs_exists"
24784 #: ../src/guestfs-actions.pod:1485
24788 " guestfs_exists (guestfs_h *g,\n"
24789 " const char *path);\n"
24794 #: ../src/guestfs-actions.pod:1492
24795 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24799 #: ../src/guestfs-actions.pod:1498
24800 msgid "guestfs_fallocate"
24804 #: ../src/guestfs-actions.pod:1500
24808 " guestfs_fallocate (guestfs_h *g,\n"
24809 " const char *path,\n"
24815 #: ../src/guestfs-actions.pod:1515
24817 "This function is deprecated. In new code, use the L</guestfs_fallocate64> "
24822 #: ../src/guestfs-actions.pod:1524
24823 msgid "guestfs_fallocate64"
24827 #: ../src/guestfs-actions.pod:1526
24831 " guestfs_fallocate64 (guestfs_h *g,\n"
24832 " const char *path,\n"
24838 #: ../src/guestfs-actions.pod:1535
24840 "Note that this call allocates disk blocks for the file. To create a sparse "
24841 "file use C<guestfs_truncate_size> instead."
24845 #: ../src/guestfs-actions.pod:1538
24847 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24848 "oversight it only allowed 30 bit lengths to be specified, effectively "
24849 "limiting the maximum size of files created through that call to 1GB."
24853 #: ../src/guestfs-actions.pod:1549
24854 msgid "(Added in 1.3.17)"
24858 #: ../src/guestfs-actions.pod:1551
24859 msgid "guestfs_fgrep"
24863 #: ../src/guestfs-actions.pod:1553
24867 " guestfs_fgrep (guestfs_h *g,\n"
24868 " const char *pattern,\n"
24869 " const char *path);\n"
24874 #: ../src/guestfs-actions.pod:1570
24875 msgid "guestfs_fgrepi"
24879 #: ../src/guestfs-actions.pod:1572
24883 " guestfs_fgrepi (guestfs_h *g,\n"
24884 " const char *pattern,\n"
24885 " const char *path);\n"
24890 #: ../src/guestfs-actions.pod:1589
24891 msgid "guestfs_file"
24895 #: ../src/guestfs-actions.pod:1591
24899 " guestfs_file (guestfs_h *g,\n"
24900 " const char *path);\n"
24905 #: ../src/guestfs-actions.pod:1609
24907 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24908 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24912 #: ../src/guestfs-actions.pod:1617
24913 msgid "guestfs_file_architecture"
24917 #: ../src/guestfs-actions.pod:1619
24921 " guestfs_file_architecture (guestfs_h *g,\n"
24922 " const char *filename);\n"
24927 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
24928 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
24929 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
24930 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
24931 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
24932 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
24933 #: ../src/guestfs-actions.pod:3546
24934 msgid "(Added in 1.5.3)"
24938 #: ../src/guestfs-actions.pod:1729
24939 msgid "guestfs_filesize"
24943 #: ../src/guestfs-actions.pod:1731
24947 " guestfs_filesize (guestfs_h *g,\n"
24948 " const char *file);\n"
24953 #: ../src/guestfs-actions.pod:1737
24955 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24956 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
24957 "devices, use C<guestfs_blockdev_getsize64>."
24961 #: ../src/guestfs-actions.pod:1743
24962 msgid "(Added in 1.0.82)"
24966 #: ../src/guestfs-actions.pod:1745
24967 msgid "guestfs_fill"
24971 #: ../src/guestfs-actions.pod:1747
24975 " guestfs_fill (guestfs_h *g,\n"
24978 " const char *path);\n"
24983 #: ../src/guestfs-actions.pod:1757
24985 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24986 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
24987 "bytes use C<guestfs_fill_pattern>."
24991 #: ../src/guestfs-actions.pod:1769
24992 msgid "(Added in 1.0.79)"
24996 #: ../src/guestfs-actions.pod:1771
24997 msgid "guestfs_fill_pattern"
25001 #: ../src/guestfs-actions.pod:1773
25005 " guestfs_fill_pattern (guestfs_h *g,\n"
25006 " const char *pattern,\n"
25008 " const char *path);\n"
25013 #: ../src/guestfs-actions.pod:1779
25015 "This function is like C<guestfs_fill> except that it creates a new file of "
25016 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
25017 "pattern is truncated if necessary to ensure the length of the file is "
25018 "exactly C<len> bytes."
25022 #: ../src/guestfs-actions.pod:1791
25023 msgid "(Added in 1.3.12)"
25027 #: ../src/guestfs-actions.pod:1793
25028 msgid "guestfs_find"
25032 #: ../src/guestfs-actions.pod:1795
25036 " guestfs_find (guestfs_h *g,\n"
25037 " const char *directory);\n"
25042 #: ../src/guestfs-actions.pod:1811
25044 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25048 #: ../src/guestfs-actions.pod:1824
25049 msgid "See also C<guestfs_find0>."
25053 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
25054 #: ../src/guestfs-actions.pod:6014
25055 msgid "(Added in 1.0.27)"
25059 #: ../src/guestfs-actions.pod:1835
25060 msgid "guestfs_find0"
25064 #: ../src/guestfs-actions.pod:1837
25068 " guestfs_find0 (guestfs_h *g,\n"
25069 " const char *directory,\n"
25070 " const char *files);\n"
25075 #: ../src/guestfs-actions.pod:1846
25077 "This command works the same way as C<guestfs_find> with the following "
25082 #: ../src/guestfs-actions.pod:1873
25083 msgid "(Added in 1.0.74)"
25087 #: ../src/guestfs-actions.pod:1875
25088 msgid "guestfs_findfs_label"
25092 #: ../src/guestfs-actions.pod:1877
25096 " guestfs_findfs_label (guestfs_h *g,\n"
25097 " const char *label);\n"
25102 #: ../src/guestfs-actions.pod:1885
25103 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25107 #: ../src/guestfs-actions.pod:1892
25108 msgid "guestfs_findfs_uuid"
25112 #: ../src/guestfs-actions.pod:1894
25116 " guestfs_findfs_uuid (guestfs_h *g,\n"
25117 " const char *uuid);\n"
25122 #: ../src/guestfs-actions.pod:1902
25123 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25127 #: ../src/guestfs-actions.pod:1909
25128 msgid "guestfs_fsck"
25132 #: ../src/guestfs-actions.pod:1911
25136 " guestfs_fsck (guestfs_h *g,\n"
25137 " const char *fstype,\n"
25138 " const char *device);\n"
25143 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7785
25144 msgid "(Added in 1.0.16)"
25148 #: ../src/guestfs-actions.pod:1948
25149 msgid "guestfs_get_append"
25153 #: ../src/guestfs-actions.pod:1950
25157 " guestfs_get_append (guestfs_h *g);\n"
25162 #: ../src/guestfs-actions.pod:1958
25164 "This function returns a string which may be NULL. There is no way to return "
25165 "an error from this function. The string is owned by the guest handle and "
25166 "must I<not> be freed."
25170 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
25171 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
25172 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
25173 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
25174 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7828
25175 msgid "(Added in 1.0.26)"
25179 #: ../src/guestfs-actions.pod:1964
25180 msgid "guestfs_get_attach_method"
25184 #: ../src/guestfs-actions.pod:1966
25188 " guestfs_get_attach_method (guestfs_h *g);\n"
25193 #: ../src/guestfs-actions.pod:1969
25194 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
25198 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
25199 msgid "(Added in 1.9.8)"
25203 #: ../src/guestfs-actions.pod:1976
25204 msgid "guestfs_get_autosync"
25208 #: ../src/guestfs-actions.pod:1978
25212 " guestfs_get_autosync (guestfs_h *g);\n"
25217 #: ../src/guestfs-actions.pod:1987
25218 msgid "guestfs_get_direct"
25222 #: ../src/guestfs-actions.pod:1989
25226 " guestfs_get_direct (guestfs_h *g);\n"
25231 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
25232 msgid "(Added in 1.0.72)"
25236 #: ../src/guestfs-actions.pod:1998
25237 msgid "guestfs_get_e2label"
25241 #: ../src/guestfs-actions.pod:2000
25245 " guestfs_get_e2label (guestfs_h *g,\n"
25246 " const char *device);\n"
25251 #: ../src/guestfs-actions.pod:2010
25253 "This function is deprecated. In new code, use the L</guestfs_vfs_label> "
25258 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25259 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
25260 msgid "(Added in 1.0.15)"
25264 #: ../src/guestfs-actions.pod:2019
25265 msgid "guestfs_get_e2uuid"
25269 #: ../src/guestfs-actions.pod:2021
25273 " guestfs_get_e2uuid (guestfs_h *g,\n"
25274 " const char *device);\n"
25279 #: ../src/guestfs-actions.pod:2031
25281 "This function is deprecated. In new code, use the L</guestfs_vfs_uuid> call "
25286 #: ../src/guestfs-actions.pod:2040
25287 msgid "guestfs_get_memsize"
25291 #: ../src/guestfs-actions.pod:2042
25295 " guestfs_get_memsize (guestfs_h *g);\n"
25300 #: ../src/guestfs-actions.pod:2048
25302 "If C<guestfs_set_memsize> was not called on this handle, and if "
25303 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25304 "value for memsize."
25308 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
25309 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
25310 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
25311 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
25312 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
25313 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
25314 msgid "(Added in 1.0.55)"
25318 #: ../src/guestfs-actions.pod:2059
25319 msgid "guestfs_get_network"
25323 #: ../src/guestfs-actions.pod:2061
25327 " guestfs_get_network (guestfs_h *g);\n"
25332 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
25333 msgid "(Added in 1.5.4)"
25337 #: ../src/guestfs-actions.pod:2070
25338 msgid "guestfs_get_path"
25342 #: ../src/guestfs-actions.pod:2072
25346 " guestfs_get_path (guestfs_h *g);\n"
25351 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25353 "This function returns a string, or NULL on error. The string is owned by "
25354 "the guest handle and must I<not> be freed."
25358 #: ../src/guestfs-actions.pod:2085
25359 msgid "guestfs_get_pgroup"
25363 #: ../src/guestfs-actions.pod:2087
25367 " guestfs_get_pgroup (guestfs_h *g);\n"
25372 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
25373 #: ../src/guestfs-actions.pod:7690
25375 #| msgid "(Added in 1.5.1)"
25376 msgid "(Added in 1.11.18)"
25377 msgstr "(Додано у 1.5.1)"
25380 #: ../src/guestfs-actions.pod:2096
25381 msgid "guestfs_get_pid"
25385 #: ../src/guestfs-actions.pod:2098
25389 " guestfs_get_pid (guestfs_h *g);\n"
25394 #: ../src/guestfs-actions.pod:2108
25395 msgid "(Added in 1.0.56)"
25399 #: ../src/guestfs-actions.pod:2110
25400 msgid "guestfs_get_qemu"
25404 #: ../src/guestfs-actions.pod:2112
25408 " guestfs_get_qemu (guestfs_h *g);\n"
25413 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
25414 msgid "(Added in 1.0.6)"
25418 #: ../src/guestfs-actions.pod:2125
25419 msgid "guestfs_get_recovery_proc"
25423 #: ../src/guestfs-actions.pod:2127
25427 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25432 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
25433 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
25434 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
25435 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
25436 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
25437 #: ../src/guestfs-actions.pod:7313
25438 msgid "(Added in 1.0.77)"
25442 #: ../src/guestfs-actions.pod:2136
25443 msgid "guestfs_get_selinux"
25447 #: ../src/guestfs-actions.pod:2138
25451 " guestfs_get_selinux (guestfs_h *g);\n"
25456 #: ../src/guestfs-actions.pod:2141
25458 "This returns the current setting of the selinux flag which is passed to the "
25459 "appliance at boot time. See C<guestfs_set_selinux>."
25463 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25464 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
25465 msgid "(Added in 1.0.67)"
25469 #: ../src/guestfs-actions.pod:2151
25470 msgid "guestfs_get_state"
25474 #: ../src/guestfs-actions.pod:2153
25478 " guestfs_get_state (guestfs_h *g);\n"
25483 #: ../src/guestfs-actions.pod:2165
25484 msgid "guestfs_get_trace"
25488 #: ../src/guestfs-actions.pod:2167
25492 " guestfs_get_trace (guestfs_h *g);\n"
25497 #: ../src/guestfs-actions.pod:2176
25498 msgid "guestfs_get_umask"
25502 #: ../src/guestfs-actions.pod:2178
25506 " guestfs_get_umask (guestfs_h *g);\n"
25511 #: ../src/guestfs-actions.pod:2181
25513 "Return the current umask. By default the umask is C<022> unless it has been "
25514 "set by calling C<guestfs_umask>."
25518 #: ../src/guestfs-actions.pod:2188
25519 msgid "guestfs_get_verbose"
25523 #: ../src/guestfs-actions.pod:2190
25527 " guestfs_get_verbose (guestfs_h *g);\n"
25532 #: ../src/guestfs-actions.pod:2199
25533 msgid "guestfs_getcon"
25537 #: ../src/guestfs-actions.pod:2201
25541 " guestfs_getcon (guestfs_h *g);\n"
25546 #: ../src/guestfs-actions.pod:2206
25548 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25552 #: ../src/guestfs-actions.pod:2214
25553 msgid "guestfs_getxattr"
25557 #: ../src/guestfs-actions.pod:2216
25561 " guestfs_getxattr (guestfs_h *g,\n"
25562 " const char *path,\n"
25563 " const char *name,\n"
25564 " size_t *size_r);\n"
25569 #: ../src/guestfs-actions.pod:2222
25571 "Get a single extended attribute from file C<path> named C<name>. This call "
25572 "follows symlinks. If you want to lookup an extended attribute for the "
25573 "symlink itself, use C<guestfs_lgetxattr>."
25577 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
25579 "Normally it is better to get all extended attributes from a file in one go "
25580 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
25581 "implementations are buggy and do not provide a way to list out attributes. "
25582 "For these filesystems (notably ntfs-3g) you have to know the names of the "
25583 "extended attributes you want in advance and call this function."
25587 #: ../src/guestfs-actions.pod:2236
25588 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25592 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
25593 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
25594 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
25595 #: ../src/guestfs-actions.pod:5822
25597 "This function returns a buffer, or NULL on error. The size of the returned "
25598 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
25603 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
25604 msgid "(Added in 1.7.24)"
25608 #: ../src/guestfs-actions.pod:2244
25609 msgid "guestfs_getxattrs"
25613 #: ../src/guestfs-actions.pod:2246
25616 " struct guestfs_xattr_list *\n"
25617 " guestfs_getxattrs (guestfs_h *g,\n"
25618 " const char *path);\n"
25623 #: ../src/guestfs-actions.pod:2256
25624 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25628 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
25629 #: ../src/guestfs-actions.pod:4398
25631 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25632 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
25636 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
25637 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
25638 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
25639 #: ../src/guestfs-actions.pod:7893
25640 msgid "(Added in 1.0.59)"
25644 #: ../src/guestfs-actions.pod:2264
25645 msgid "guestfs_glob_expand"
25649 #: ../src/guestfs-actions.pod:2266
25653 " guestfs_glob_expand (guestfs_h *g,\n"
25654 " const char *pattern);\n"
25659 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
25660 #: ../src/guestfs-actions.pod:6716
25661 msgid "(Added in 1.0.50)"
25665 #: ../src/guestfs-actions.pod:2287
25666 msgid "guestfs_grep"
25670 #: ../src/guestfs-actions.pod:2289
25674 " guestfs_grep (guestfs_h *g,\n"
25675 " const char *regex,\n"
25676 " const char *path);\n"
25681 #: ../src/guestfs-actions.pod:2306
25682 msgid "guestfs_grepi"
25686 #: ../src/guestfs-actions.pod:2308
25690 " guestfs_grepi (guestfs_h *g,\n"
25691 " const char *regex,\n"
25692 " const char *path);\n"
25697 #: ../src/guestfs-actions.pod:2325
25698 msgid "guestfs_grub_install"
25702 #: ../src/guestfs-actions.pod:2327
25706 " guestfs_grub_install (guestfs_h *g,\n"
25707 " const char *root,\n"
25708 " const char *device);\n"
25713 #: ../src/guestfs-actions.pod:2348
25714 msgid "(Added in 1.0.17)"
25718 #: ../src/guestfs-actions.pod:2350
25719 msgid "guestfs_head"
25723 #: ../src/guestfs-actions.pod:2352
25727 " guestfs_head (guestfs_h *g,\n"
25728 " const char *path);\n"
25733 #: ../src/guestfs-actions.pod:2368
25734 msgid "guestfs_head_n"
25738 #: ../src/guestfs-actions.pod:2370
25742 " guestfs_head_n (guestfs_h *g,\n"
25744 " const char *path);\n"
25749 #: ../src/guestfs-actions.pod:2392
25750 msgid "guestfs_hexdump"
25754 #: ../src/guestfs-actions.pod:2394
25758 " guestfs_hexdump (guestfs_h *g,\n"
25759 " const char *path);\n"
25764 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
25765 #: ../src/guestfs-actions.pod:6835
25766 msgid "(Added in 1.0.22)"
25770 #: ../src/guestfs-actions.pod:2409
25771 msgid "guestfs_initrd_cat"
25775 #: ../src/guestfs-actions.pod:2411
25779 " guestfs_initrd_cat (guestfs_h *g,\n"
25780 " const char *initrdpath,\n"
25781 " const char *filename,\n"
25782 " size_t *size_r);\n"
25787 #: ../src/guestfs-actions.pod:2427
25788 msgid "See also C<guestfs_initrd_list>."
25792 #: ../src/guestfs-actions.pod:2438
25793 msgid "guestfs_initrd_list"
25797 #: ../src/guestfs-actions.pod:2440
25801 " guestfs_initrd_list (guestfs_h *g,\n"
25802 " const char *path);\n"
25807 #: ../src/guestfs-actions.pod:2460
25808 msgid "guestfs_inotify_add_watch"
25812 #: ../src/guestfs-actions.pod:2462
25816 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25817 " const char *path,\n"
25823 #: ../src/guestfs-actions.pod:2481
25824 msgid "guestfs_inotify_close"
25828 #: ../src/guestfs-actions.pod:2483
25832 " guestfs_inotify_close (guestfs_h *g);\n"
25837 #: ../src/guestfs-actions.pod:2494
25838 msgid "guestfs_inotify_files"
25842 #: ../src/guestfs-actions.pod:2496
25846 " guestfs_inotify_files (guestfs_h *g);\n"
25851 #: ../src/guestfs-actions.pod:2499
25853 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25854 "returns a list of pathnames of objects that were touched. The returned "
25855 "pathnames are sorted and deduplicated."
25859 #: ../src/guestfs-actions.pod:2509
25860 msgid "guestfs_inotify_init"
25864 #: ../src/guestfs-actions.pod:2511
25868 " guestfs_inotify_init (guestfs_h *g,\n"
25869 " int maxevents);\n"
25874 #: ../src/guestfs-actions.pod:2519
25876 "C<maxevents> is the maximum number of events which will be queued up between "
25877 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
25878 "passed as C<0>, then the kernel (or previously set) default is used. For "
25879 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
25880 "throws away events, but records the fact that it threw them away by setting "
25881 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25882 "C<guestfs_inotify_read>)."
25886 #: ../src/guestfs-actions.pod:2529
25888 "Before any events are generated, you have to add some watches to the "
25889 "internal watch list. See: C<guestfs_inotify_add_watch>, "
25890 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25894 #: ../src/guestfs-actions.pod:2535
25896 "Queued up events should be read periodically by calling "
25897 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25898 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
25899 "often enough then you risk the internal queue overflowing."
25903 #: ../src/guestfs-actions.pod:2542
25905 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
25906 "This also removes any watches automatically."
25910 #: ../src/guestfs-actions.pod:2555
25911 msgid "guestfs_inotify_read"
25915 #: ../src/guestfs-actions.pod:2557
25918 " struct guestfs_inotify_event_list *\n"
25919 " guestfs_inotify_read (guestfs_h *g);\n"
25924 #: ../src/guestfs-actions.pod:2571
25926 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25927 "there was an error. I<The caller must call "
25928 "C<guestfs_free_inotify_event_list> after use>."
25932 #: ../src/guestfs-actions.pod:2577
25933 msgid "guestfs_inotify_rm_watch"
25937 #: ../src/guestfs-actions.pod:2579
25941 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25947 #: ../src/guestfs-actions.pod:2583
25949 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
25953 #: ../src/guestfs-actions.pod:2590
25954 msgid "guestfs_inspect_get_arch"
25958 #: ../src/guestfs-actions.pod:2592
25962 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25963 " const char *root);\n"
25968 #: ../src/guestfs-actions.pod:2596
25970 "This returns the architecture of the inspected operating system. The "
25971 "possible return values are listed under C<guestfs_file_architecture>."
25975 #: ../src/guestfs-actions.pod:2610
25976 msgid "guestfs_inspect_get_distro"
25980 #: ../src/guestfs-actions.pod:2612
25984 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25985 " const char *root);\n"
25990 #: ../src/guestfs-actions.pod:2700
25991 msgid "guestfs_inspect_get_drive_mappings"
25995 #: ../src/guestfs-actions.pod:2702
25999 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26000 " const char *root);\n"
26005 #: ../src/guestfs-actions.pod:2731
26007 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26008 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26012 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
26013 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
26014 #: ../src/guestfs-actions.pod:7137
26016 "This function returns a NULL-terminated array of strings, or NULL if there "
26017 "was an error. The array of strings will always have length C<2n+1>, where "
26018 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
26019 "caller must free the strings and the array after use>."
26023 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
26024 msgid "(Added in 1.9.17)"
26028 #: ../src/guestfs-actions.pod:2743
26029 msgid "guestfs_inspect_get_filesystems"
26033 #: ../src/guestfs-actions.pod:2745
26037 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26038 " const char *root);\n"
26043 #: ../src/guestfs-actions.pod:2757
26045 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26046 "C<guestfs_inspect_get_mountpoints>."
26050 #: ../src/guestfs-actions.pod:2766
26051 msgid "guestfs_inspect_get_format"
26055 #: ../src/guestfs-actions.pod:2768
26059 " guestfs_inspect_get_format (guestfs_h *g,\n"
26060 " const char *root);\n"
26065 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
26066 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
26067 #: ../src/guestfs-actions.pod:6033
26068 msgid "(Added in 1.9.4)"
26072 #: ../src/guestfs-actions.pod:2804
26073 msgid "guestfs_inspect_get_hostname"
26077 #: ../src/guestfs-actions.pod:2806
26081 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26082 " const char *root);\n"
26087 #: ../src/guestfs-actions.pod:2821
26088 msgid "(Added in 1.7.9)"
26092 #: ../src/guestfs-actions.pod:2823
26093 msgid "guestfs_inspect_get_icon"
26097 #: ../src/guestfs-actions.pod:2825
26101 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26102 " const char *root,\n"
26103 " size_t *size_r,\n"
26109 #: ../src/guestfs-actions.pod:2836
26112 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26113 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26118 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
26119 #: ../src/guestfs-actions.pod:4982
26120 msgid "(Added in 1.11.12)"
26124 #: ../src/guestfs-actions.pod:2905
26125 msgid "guestfs_inspect_get_icon_va"
26129 #: ../src/guestfs-actions.pod:2907
26133 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26134 " const char *root,\n"
26135 " size_t *size_r,\n"
26136 " va_list args);\n"
26141 #: ../src/guestfs-actions.pod:2913
26142 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26146 #: ../src/guestfs-actions.pod:2917
26147 msgid "guestfs_inspect_get_icon_argv"
26151 #: ../src/guestfs-actions.pod:2919
26155 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26156 " const char *root,\n"
26157 " size_t *size_r,\n"
26158 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
26163 #: ../src/guestfs-actions.pod:2925
26164 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26168 #: ../src/guestfs-actions.pod:2929
26169 msgid "guestfs_inspect_get_major_version"
26173 #: ../src/guestfs-actions.pod:2931
26177 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26178 " const char *root);\n"
26183 #: ../src/guestfs-actions.pod:2953
26184 msgid "guestfs_inspect_get_minor_version"
26188 #: ../src/guestfs-actions.pod:2955
26192 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26193 " const char *root);\n"
26198 #: ../src/guestfs-actions.pod:2964
26200 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26201 "C<guestfs_inspect_get_major_version>."
26205 #: ../src/guestfs-actions.pod:2971
26206 msgid "guestfs_inspect_get_mountpoints"
26210 #: ../src/guestfs-actions.pod:2973
26214 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26215 " const char *root);\n"
26220 #: ../src/guestfs-actions.pod:2994
26222 "For operating systems like Windows which still use drive letters, this call "
26223 "will only return an entry for the first drive \"mounted on\" C</>. For "
26224 "information about the mapping of drive letters to partitions, see "
26225 "C<guestfs_inspect_get_drive_mappings>."
26229 #: ../src/guestfs-actions.pod:3000
26231 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26232 "C<guestfs_inspect_get_filesystems>."
26236 #: ../src/guestfs-actions.pod:3011
26237 msgid "guestfs_inspect_get_package_format"
26241 #: ../src/guestfs-actions.pod:3013
26245 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26246 " const char *root);\n"
26251 #: ../src/guestfs-actions.pod:3017
26253 "This function and C<guestfs_inspect_get_package_management> return the "
26254 "package format and package management tool used by the inspected operating "
26255 "system. For example for Fedora these functions would return C<rpm> (package "
26256 "format) and C<yum> (package management)."
26260 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
26261 msgid "(Added in 1.7.5)"
26265 #: ../src/guestfs-actions.pod:3037
26266 msgid "guestfs_inspect_get_package_management"
26270 #: ../src/guestfs-actions.pod:3039
26274 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26275 " const char *root);\n"
26280 #: ../src/guestfs-actions.pod:3043
26282 "C<guestfs_inspect_get_package_format> and this function return the package "
26283 "format and package management tool used by the inspected operating system. "
26284 "For example for Fedora these functions would return C<rpm> (package format) "
26285 "and C<yum> (package management)."
26289 #: ../src/guestfs-actions.pod:3065
26290 msgid "guestfs_inspect_get_product_name"
26294 #: ../src/guestfs-actions.pod:3067
26298 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26299 " const char *root);\n"
26304 #: ../src/guestfs-actions.pod:3086
26305 msgid "guestfs_inspect_get_product_variant"
26309 #: ../src/guestfs-actions.pod:3088
26313 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26314 " const char *root);\n"
26319 #: ../src/guestfs-actions.pod:3111
26321 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26322 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26326 #: ../src/guestfs-actions.pod:3118
26327 msgid "(Added in 1.9.13)"
26331 #: ../src/guestfs-actions.pod:3120
26332 msgid "guestfs_inspect_get_roots"
26336 #: ../src/guestfs-actions.pod:3122
26340 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26345 #: ../src/guestfs-actions.pod:3125
26347 "This function is a convenient way to get the list of root devices, as "
26348 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26349 "the whole inspection process."
26353 #: ../src/guestfs-actions.pod:3129
26355 "This returns an empty list if either no root devices were found or the "
26356 "caller has not called C<guestfs_inspect_os>."
26360 #: ../src/guestfs-actions.pod:3138
26361 msgid "(Added in 1.7.3)"
26365 #: ../src/guestfs-actions.pod:3140
26366 msgid "guestfs_inspect_get_type"
26370 #: ../src/guestfs-actions.pod:3142
26374 " guestfs_inspect_get_type (guestfs_h *g,\n"
26375 " const char *root);\n"
26380 #: ../src/guestfs-actions.pod:3179
26381 msgid "guestfs_inspect_get_windows_current_control_set"
26385 #: ../src/guestfs-actions.pod:3181
26389 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26390 " const char *root);\n"
26395 #: ../src/guestfs-actions.pod:3199
26396 msgid "guestfs_inspect_get_windows_systemroot"
26400 #: ../src/guestfs-actions.pod:3201
26404 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26405 " const char *root);\n"
26410 #: ../src/guestfs-actions.pod:3217
26411 msgid "(Added in 1.5.25)"
26415 #: ../src/guestfs-actions.pod:3219
26416 msgid "guestfs_inspect_is_live"
26420 #: ../src/guestfs-actions.pod:3221
26424 " guestfs_inspect_is_live (guestfs_h *g,\n"
26425 " const char *root);\n"
26430 #: ../src/guestfs-actions.pod:3225
26432 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26433 "disk), then this returns true if a live image was detected on the disk."
26437 #: ../src/guestfs-actions.pod:3235
26438 msgid "guestfs_inspect_is_multipart"
26442 #: ../src/guestfs-actions.pod:3237
26446 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26447 " const char *root);\n"
26452 #: ../src/guestfs-actions.pod:3241
26454 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26455 "disk), then this returns true if the disk is part of a set."
26459 #: ../src/guestfs-actions.pod:3251
26460 msgid "guestfs_inspect_is_netinst"
26464 #: ../src/guestfs-actions.pod:3253
26468 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26469 " const char *root);\n"
26474 #: ../src/guestfs-actions.pod:3257
26476 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26477 "disk), then this returns true if the disk is a network installer, ie. not a "
26478 "self-contained install CD but one which is likely to require network access "
26479 "to complete the install."
26483 #: ../src/guestfs-actions.pod:3269
26484 msgid "guestfs_inspect_list_applications"
26488 #: ../src/guestfs-actions.pod:3271
26491 " struct guestfs_application_list *\n"
26492 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26493 " const char *root);\n"
26498 #: ../src/guestfs-actions.pod:3277
26500 "I<Note:> This call works differently from other parts of the inspection "
26501 "API. You have to call C<guestfs_inspect_os>, then "
26502 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26503 "this. Listing applications is a significantly more difficult operation "
26504 "which requires access to the full filesystem. Also note that unlike the "
26505 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26506 "the libguestfs handle, this call actually reads parts of the mounted "
26507 "filesystems during the call."
26511 #: ../src/guestfs-actions.pod:3367
26513 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26514 "there was an error. I<The caller must call C<guestfs_free_application_list> "
26519 #: ../src/guestfs-actions.pod:3371
26520 msgid "(Added in 1.7.8)"
26524 #: ../src/guestfs-actions.pod:3373
26525 msgid "guestfs_inspect_os"
26529 #: ../src/guestfs-actions.pod:3375
26533 " guestfs_inspect_os (guestfs_h *g);\n"
26538 #: ../src/guestfs-actions.pod:3391
26540 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26541 "functions in order to query further information about each operating system, "
26542 "such as the name and version."
26546 #: ../src/guestfs-actions.pod:3396
26548 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26549 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26550 "the contents. This should be called with no disks currently mounted. The "
26551 "function may also use Augeas, so any existing Augeas handle will be closed."
26555 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
26556 #: ../src/guestfs-actions.pod:3821
26557 msgid "See also C<guestfs_list_filesystems>."
26561 #: ../src/guestfs-actions.pod:3416
26562 msgid "guestfs_is_blockdev"
26566 #: ../src/guestfs-actions.pod:3418
26570 " guestfs_is_blockdev (guestfs_h *g,\n"
26571 " const char *path);\n"
26576 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
26577 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
26578 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
26579 #: ../src/guestfs-actions.pod:3586
26580 msgid "See also C<guestfs_stat>."
26584 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
26585 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
26586 #: ../src/guestfs-actions.pod:3590
26587 msgid "(Added in 1.5.10)"
26591 #: ../src/guestfs-actions.pod:3431
26592 msgid "guestfs_is_busy"
26596 #: ../src/guestfs-actions.pod:3433
26600 " guestfs_is_busy (guestfs_h *g);\n"
26605 #: ../src/guestfs-actions.pod:3445
26606 msgid "guestfs_is_chardev"
26610 #: ../src/guestfs-actions.pod:3447
26614 " guestfs_is_chardev (guestfs_h *g,\n"
26615 " const char *path);\n"
26620 #: ../src/guestfs-actions.pod:3460
26621 msgid "guestfs_is_config"
26625 #: ../src/guestfs-actions.pod:3462
26629 " guestfs_is_config (guestfs_h *g);\n"
26634 #: ../src/guestfs-actions.pod:3474
26635 msgid "guestfs_is_dir"
26639 #: ../src/guestfs-actions.pod:3476
26643 " guestfs_is_dir (guestfs_h *g,\n"
26644 " const char *path);\n"
26649 #: ../src/guestfs-actions.pod:3490
26650 msgid "guestfs_is_fifo"
26654 #: ../src/guestfs-actions.pod:3492
26658 " guestfs_is_fifo (guestfs_h *g,\n"
26659 " const char *path);\n"
26664 #: ../src/guestfs-actions.pod:3505
26665 msgid "guestfs_is_file"
26669 #: ../src/guestfs-actions.pod:3507
26673 " guestfs_is_file (guestfs_h *g,\n"
26674 " const char *path);\n"
26679 #: ../src/guestfs-actions.pod:3521
26680 msgid "guestfs_is_launching"
26684 #: ../src/guestfs-actions.pod:3523
26688 " guestfs_is_launching (guestfs_h *g);\n"
26693 #: ../src/guestfs-actions.pod:3535
26694 msgid "guestfs_is_lv"
26698 #: ../src/guestfs-actions.pod:3537
26702 " guestfs_is_lv (guestfs_h *g,\n"
26703 " const char *device);\n"
26708 #: ../src/guestfs-actions.pod:3548
26709 msgid "guestfs_is_ready"
26713 #: ../src/guestfs-actions.pod:3550
26717 " guestfs_is_ready (guestfs_h *g);\n"
26722 #: ../src/guestfs-actions.pod:3562
26723 msgid "guestfs_is_socket"
26727 #: ../src/guestfs-actions.pod:3564
26731 " guestfs_is_socket (guestfs_h *g,\n"
26732 " const char *path);\n"
26737 #: ../src/guestfs-actions.pod:3577
26738 msgid "guestfs_is_symlink"
26742 #: ../src/guestfs-actions.pod:3579
26746 " guestfs_is_symlink (guestfs_h *g,\n"
26747 " const char *path);\n"
26752 #: ../src/guestfs-actions.pod:3592
26753 msgid "guestfs_is_zero"
26757 #: ../src/guestfs-actions.pod:3594
26761 " guestfs_is_zero (guestfs_h *g,\n"
26762 " const char *path);\n"
26767 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
26768 msgid "(Added in 1.11.8)"
26772 #: ../src/guestfs-actions.pod:3605
26773 msgid "guestfs_is_zero_device"
26777 #: ../src/guestfs-actions.pod:3607
26781 " guestfs_is_zero_device (guestfs_h *g,\n"
26782 " const char *device);\n"
26787 #: ../src/guestfs-actions.pod:3619
26788 msgid "guestfs_kill_subprocess"
26792 #: ../src/guestfs-actions.pod:3621
26796 " guestfs_kill_subprocess (guestfs_h *g);\n"
26801 #: ../src/guestfs-actions.pod:3630
26802 msgid "guestfs_launch"
26806 #: ../src/guestfs-actions.pod:3632
26810 " guestfs_launch (guestfs_h *g);\n"
26815 #: ../src/guestfs-actions.pod:3650
26816 msgid "guestfs_lchown"
26820 #: ../src/guestfs-actions.pod:3652
26824 " guestfs_lchown (guestfs_h *g,\n"
26827 " const char *path);\n"
26832 #: ../src/guestfs-actions.pod:3658
26834 "Change the file owner to C<owner> and group to C<group>. This is like "
26835 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26836 "changed, not the target."
26840 #: ../src/guestfs-actions.pod:3670
26841 msgid "guestfs_lgetxattr"
26845 #: ../src/guestfs-actions.pod:3672
26849 " guestfs_lgetxattr (guestfs_h *g,\n"
26850 " const char *path,\n"
26851 " const char *name,\n"
26852 " size_t *size_r);\n"
26857 #: ../src/guestfs-actions.pod:3692
26858 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26862 #: ../src/guestfs-actions.pod:3700
26863 msgid "guestfs_lgetxattrs"
26867 #: ../src/guestfs-actions.pod:3702
26870 " struct guestfs_xattr_list *\n"
26871 " guestfs_lgetxattrs (guestfs_h *g,\n"
26872 " const char *path);\n"
26877 #: ../src/guestfs-actions.pod:3706
26879 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26880 "then it returns the extended attributes of the link itself."
26884 #: ../src/guestfs-actions.pod:3716
26885 msgid "guestfs_list_9p"
26889 #: ../src/guestfs-actions.pod:3718
26893 " guestfs_list_9p (guestfs_h *g);\n"
26898 #: ../src/guestfs-actions.pod:3730
26899 msgid "guestfs_list_devices"
26903 #: ../src/guestfs-actions.pod:3732
26907 " guestfs_list_devices (guestfs_h *g);\n"
26912 #: ../src/guestfs-actions.pod:3747
26913 msgid "guestfs_list_dm_devices"
26917 #: ../src/guestfs-actions.pod:3749
26921 " guestfs_list_dm_devices (guestfs_h *g);\n"
26926 #: ../src/guestfs-actions.pod:3754
26928 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26929 "previous call to C<guestfs_luks_open>."
26933 #: ../src/guestfs-actions.pod:3757
26935 "Device mapper devices which correspond to logical volumes are I<not> "
26936 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
26941 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
26942 msgid "(Added in 1.11.15)"
26946 #: ../src/guestfs-actions.pod:3767
26947 msgid "guestfs_list_filesystems"
26951 #: ../src/guestfs-actions.pod:3769
26955 " guestfs_list_filesystems (guestfs_h *g);\n"
26960 #: ../src/guestfs-actions.pod:3789
26962 "This command runs other libguestfs commands, which might include "
26963 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26964 "soon after launch and only when nothing is mounted."
26968 #: ../src/guestfs-actions.pod:3793
26970 "Not all of the filesystems returned will be mountable. In particular, swap "
26971 "partitions are returned in the list. Also this command does not check that "
26972 "each filesystem found is valid and mountable, and some filesystems might be "
26973 "mountable but require special options. Filesystems may not all belong to a "
26974 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26978 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
26979 msgid "(Added in 1.5.15)"
26983 #: ../src/guestfs-actions.pod:3809
26984 msgid "guestfs_list_partitions"
26985 msgstr "guestfs_list_partitions"
26988 #: ../src/guestfs-actions.pod:3811
26992 " guestfs_list_partitions (guestfs_h *g);\n"
26996 " guestfs_list_partitions (guestfs_h *g);\n"
27000 #: ../src/guestfs-actions.pod:3818
27002 "This does not return logical volumes. For that you will need to call "
27007 #: ../src/guestfs-actions.pod:3829
27009 msgstr "guestfs_ll"
27012 #: ../src/guestfs-actions.pod:3831
27016 " guestfs_ll (guestfs_h *g,\n"
27017 " const char *directory);\n"
27021 " guestfs_ll (guestfs_h *g,\n"
27022 " const char *directory);\n"
27026 #: ../src/guestfs-actions.pod:3846
27028 msgstr "guestfs_ln"
27031 #: ../src/guestfs-actions.pod:3848
27035 " guestfs_ln (guestfs_h *g,\n"
27036 " const char *target,\n"
27037 " const char *linkname);\n"
27041 " guestfs_ln (guestfs_h *g,\n"
27042 " const char *target,\n"
27043 " const char *linkname);\n"
27047 #: ../src/guestfs-actions.pod:3859
27048 msgid "guestfs_ln_f"
27049 msgstr "guestfs_ln_f"
27052 #: ../src/guestfs-actions.pod:3861
27056 " guestfs_ln_f (guestfs_h *g,\n"
27057 " const char *target,\n"
27058 " const char *linkname);\n"
27062 " guestfs_ln_f (guestfs_h *g,\n"
27063 " const char *target,\n"
27064 " const char *linkname);\n"
27068 #: ../src/guestfs-actions.pod:3873
27069 msgid "guestfs_ln_s"
27070 msgstr "guestfs_ln_s"
27073 #: ../src/guestfs-actions.pod:3875
27077 " guestfs_ln_s (guestfs_h *g,\n"
27078 " const char *target,\n"
27079 " const char *linkname);\n"
27083 " guestfs_ln_s (guestfs_h *g,\n"
27084 " const char *target,\n"
27085 " const char *linkname);\n"
27089 #: ../src/guestfs-actions.pod:3886
27090 msgid "guestfs_ln_sf"
27091 msgstr "guestfs_ln_sf"
27094 #: ../src/guestfs-actions.pod:3888
27098 " guestfs_ln_sf (guestfs_h *g,\n"
27099 " const char *target,\n"
27100 " const char *linkname);\n"
27104 " guestfs_ln_sf (guestfs_h *g,\n"
27105 " const char *target,\n"
27106 " const char *linkname);\n"
27110 #: ../src/guestfs-actions.pod:3900
27111 msgid "guestfs_lremovexattr"
27112 msgstr "guestfs_lremovexattr"
27115 #: ../src/guestfs-actions.pod:3902
27119 " guestfs_lremovexattr (guestfs_h *g,\n"
27120 " const char *xattr,\n"
27121 " const char *path);\n"
27125 " guestfs_lremovexattr (guestfs_h *g,\n"
27126 " const char *xattr,\n"
27127 " const char *path);\n"
27131 #: ../src/guestfs-actions.pod:3907
27133 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27134 "link, then it removes an extended attribute of the link itself."
27138 #: ../src/guestfs-actions.pod:3915
27140 msgstr "guestfs_ls"
27143 #: ../src/guestfs-actions.pod:3917
27147 " guestfs_ls (guestfs_h *g,\n"
27148 " const char *directory);\n"
27152 " guestfs_ls (guestfs_h *g,\n"
27153 " const char *directory);\n"
27157 #: ../src/guestfs-actions.pod:3925
27159 "This command is mostly useful for interactive sessions. Programs should "
27160 "probably use C<guestfs_readdir> instead."
27164 #: ../src/guestfs-actions.pod:3934
27165 msgid "guestfs_lsetxattr"
27166 msgstr "guestfs_lsetxattr"
27169 #: ../src/guestfs-actions.pod:3936
27173 " guestfs_lsetxattr (guestfs_h *g,\n"
27174 " const char *xattr,\n"
27175 " const char *val,\n"
27177 " const char *path);\n"
27181 " guestfs_lsetxattr (guestfs_h *g,\n"
27182 " const char *xattr,\n"
27183 " const char *val,\n"
27185 " const char *path);\n"
27189 #: ../src/guestfs-actions.pod:3943
27191 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27192 "then it sets an extended attribute of the link itself."
27196 #: ../src/guestfs-actions.pod:3951
27197 msgid "guestfs_lstat"
27198 msgstr "guestfs_lstat"
27201 #: ../src/guestfs-actions.pod:3953
27204 " struct guestfs_stat *\n"
27205 " guestfs_lstat (guestfs_h *g,\n"
27206 " const char *path);\n"
27209 " struct guestfs_stat *\n"
27210 " guestfs_lstat (guestfs_h *g,\n"
27211 " const char *path);\n"
27215 #: ../src/guestfs-actions.pod:3959
27217 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27218 "link, then the link is stat-ed, not the file it refers to."
27222 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
27224 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27225 "error. I<The caller must call C<guestfs_free_stat> after use>."
27229 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
27230 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
27231 msgid "(Added in 0.9.2)"
27232 msgstr "(Додано у 0.9.2)"
27235 #: ../src/guestfs-actions.pod:3971
27236 msgid "guestfs_lstatlist"
27237 msgstr "guestfs_lstatlist"
27240 #: ../src/guestfs-actions.pod:3973
27243 " struct guestfs_stat_list *\n"
27244 " guestfs_lstatlist (guestfs_h *g,\n"
27245 " const char *path,\n"
27246 " char *const *names);\n"
27249 " struct guestfs_stat_list *\n"
27250 " guestfs_lstatlist (guestfs_h *g,\n"
27251 " const char *path,\n"
27252 " char *const *names);\n"
27256 #: ../src/guestfs-actions.pod:3978
27258 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27259 "files, where all files are in the directory C<path>. C<names> is the list "
27260 "of files from this directory."
27264 #: ../src/guestfs-actions.pod:3987
27266 "This call is intended for programs that want to efficiently list a directory "
27267 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
27268 "for a similarly efficient call for getting extended attributes. Very long "
27269 "directory listings might cause the protocol message size to be exceeded, "
27270 "causing this call to fail. The caller must split up such requests into "
27271 "smaller groups of names."
27275 #: ../src/guestfs-actions.pod:3995
27277 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27278 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
27282 #: ../src/guestfs-actions.pod:4001
27283 msgid "guestfs_luks_add_key"
27284 msgstr "guestfs_luks_add_key"
27287 #: ../src/guestfs-actions.pod:4003
27291 " guestfs_luks_add_key (guestfs_h *g,\n"
27292 " const char *device,\n"
27293 " const char *key,\n"
27294 " const char *newkey,\n"
27299 " guestfs_luks_add_key (guestfs_h *g,\n"
27300 " const char *device,\n"
27301 " const char *key,\n"
27302 " const char *newkey,\n"
27307 #: ../src/guestfs-actions.pod:4015
27309 "Note that if C<keyslot> already contains a key, then this command will "
27310 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
27314 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
27315 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
27316 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
27318 "This function takes a key or passphrase parameter which could contain "
27319 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
27324 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
27325 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
27326 msgid "(Added in 1.5.2)"
27327 msgstr "(Додано у 1.5.2)"
27330 #: ../src/guestfs-actions.pod:4027
27331 msgid "guestfs_luks_close"
27332 msgstr "guestfs_luks_close"
27335 #: ../src/guestfs-actions.pod:4029
27339 " guestfs_luks_close (guestfs_h *g,\n"
27340 " const char *device);\n"
27344 " guestfs_luks_close (guestfs_h *g,\n"
27345 " const char *device);\n"
27349 #: ../src/guestfs-actions.pod:4033
27351 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27352 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
27353 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27354 "underlying block device."
27358 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
27359 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
27360 #: ../src/guestfs-actions.pod:4260
27361 msgid "(Added in 1.5.1)"
27362 msgstr "(Додано у 1.5.1)"
27365 #: ../src/guestfs-actions.pod:4043
27366 msgid "guestfs_luks_format"
27367 msgstr "guestfs_luks_format"
27370 #: ../src/guestfs-actions.pod:4045
27374 " guestfs_luks_format (guestfs_h *g,\n"
27375 " const char *device,\n"
27376 " const char *key,\n"
27381 " guestfs_luks_format (guestfs_h *g,\n"
27382 " const char *device,\n"
27383 " const char *key,\n"
27388 #: ../src/guestfs-actions.pod:4067
27389 msgid "guestfs_luks_format_cipher"
27390 msgstr "guestfs_luks_format_cipher"
27393 #: ../src/guestfs-actions.pod:4069
27397 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27398 " const char *device,\n"
27399 " const char *key,\n"
27401 " const char *cipher);\n"
27405 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27406 " const char *device,\n"
27407 " const char *key,\n"
27409 " const char *cipher);\n"
27413 #: ../src/guestfs-actions.pod:4076
27415 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27416 "set the C<cipher> used."
27420 #: ../src/guestfs-actions.pod:4090
27421 msgid "guestfs_luks_kill_slot"
27422 msgstr "guestfs_luks_kill_slot"
27425 #: ../src/guestfs-actions.pod:4092
27429 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27430 " const char *device,\n"
27431 " const char *key,\n"
27436 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27437 " const char *device,\n"
27438 " const char *key,\n"
27443 #: ../src/guestfs-actions.pod:4110
27444 msgid "guestfs_luks_open"
27445 msgstr "guestfs_luks_open"
27448 #: ../src/guestfs-actions.pod:4112
27452 " guestfs_luks_open (guestfs_h *g,\n"
27453 " const char *device,\n"
27454 " const char *key,\n"
27455 " const char *mapname);\n"
27459 " guestfs_luks_open (guestfs_h *g,\n"
27460 " const char *device,\n"
27461 " const char *key,\n"
27462 " const char *mapname);\n"
27466 #: ../src/guestfs-actions.pod:4130
27468 "If this block device contains LVM volume groups, then calling "
27469 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27474 #: ../src/guestfs-actions.pod:4134
27475 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27479 #: ../src/guestfs-actions.pod:4145
27480 msgid "guestfs_luks_open_ro"
27481 msgstr "guestfs_luks_open_ro"
27484 #: ../src/guestfs-actions.pod:4147
27488 " guestfs_luks_open_ro (guestfs_h *g,\n"
27489 " const char *device,\n"
27490 " const char *key,\n"
27491 " const char *mapname);\n"
27495 " guestfs_luks_open_ro (guestfs_h *g,\n"
27496 " const char *device,\n"
27497 " const char *key,\n"
27498 " const char *mapname);\n"
27502 #: ../src/guestfs-actions.pod:4153
27504 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27509 #: ../src/guestfs-actions.pod:4164
27510 msgid "guestfs_lvcreate"
27511 msgstr "guestfs_lvcreate"
27514 #: ../src/guestfs-actions.pod:4166
27518 " guestfs_lvcreate (guestfs_h *g,\n"
27519 " const char *logvol,\n"
27520 " const char *volgroup,\n"
27525 " guestfs_lvcreate (guestfs_h *g,\n"
27526 " const char *logvol,\n"
27527 " const char *volgroup,\n"
27532 #: ../src/guestfs-actions.pod:4179
27533 msgid "guestfs_lvm_canonical_lv_name"
27534 msgstr "guestfs_lvm_canonical_lv_name"
27537 #: ../src/guestfs-actions.pod:4181
27541 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27542 " const char *lvname);\n"
27546 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27547 " const char *lvname);\n"
27551 #: ../src/guestfs-actions.pod:4192
27552 msgid "See also C<guestfs_is_lv>."
27556 #: ../src/guestfs-actions.pod:4197
27557 msgid "(Added in 1.5.24)"
27558 msgstr "(Додано у 1.5.24)"
27561 #: ../src/guestfs-actions.pod:4199
27562 msgid "guestfs_lvm_clear_filter"
27563 msgstr "guestfs_lvm_clear_filter"
27566 #: ../src/guestfs-actions.pod:4201
27570 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27574 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27578 #: ../src/guestfs-actions.pod:4204
27580 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
27581 "see every block device."
27585 #: ../src/guestfs-actions.pod:4214
27586 msgid "guestfs_lvm_remove_all"
27587 msgstr "guestfs_lvm_remove_all"
27590 #: ../src/guestfs-actions.pod:4216
27594 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27598 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27602 #: ../src/guestfs-actions.pod:4229
27603 msgid "guestfs_lvm_set_filter"
27604 msgstr "guestfs_lvm_set_filter"
27607 #: ../src/guestfs-actions.pod:4231
27611 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27612 " char *const *devices);\n"
27616 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27617 " char *const *devices);\n"
27621 #: ../src/guestfs-actions.pod:4262
27622 msgid "guestfs_lvremove"
27623 msgstr "guestfs_lvremove"
27626 #: ../src/guestfs-actions.pod:4264
27630 " guestfs_lvremove (guestfs_h *g,\n"
27631 " const char *device);\n"
27635 " guestfs_lvremove (guestfs_h *g,\n"
27636 " const char *device);\n"
27640 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
27641 #: ../src/guestfs-actions.pod:7513
27642 msgid "(Added in 1.0.13)"
27643 msgstr "(Додано у 1.0.13)"
27646 #: ../src/guestfs-actions.pod:4278
27647 msgid "guestfs_lvrename"
27648 msgstr "guestfs_lvrename"
27651 #: ../src/guestfs-actions.pod:4280
27655 " guestfs_lvrename (guestfs_h *g,\n"
27656 " const char *logvol,\n"
27657 " const char *newlogvol);\n"
27661 " guestfs_lvrename (guestfs_h *g,\n"
27662 " const char *logvol,\n"
27663 " const char *newlogvol);\n"
27667 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
27668 msgid "(Added in 1.0.83)"
27669 msgstr "(Додано у 1.0.83)"
27672 #: ../src/guestfs-actions.pod:4291
27673 msgid "guestfs_lvresize"
27674 msgstr "guestfs_lvresize"
27677 #: ../src/guestfs-actions.pod:4293
27681 " guestfs_lvresize (guestfs_h *g,\n"
27682 " const char *device,\n"
27687 " guestfs_lvresize (guestfs_h *g,\n"
27688 " const char *device,\n"
27693 #: ../src/guestfs-actions.pod:4306
27694 msgid "guestfs_lvresize_free"
27695 msgstr "guestfs_lvresize_free"
27698 #: ../src/guestfs-actions.pod:4308
27702 " guestfs_lvresize_free (guestfs_h *g,\n"
27703 " const char *lv,\n"
27708 " guestfs_lvresize_free (guestfs_h *g,\n"
27709 " const char *lv,\n"
27714 #: ../src/guestfs-actions.pod:4321
27715 msgid "(Added in 1.3.3)"
27716 msgstr "(Додано у 1.3.3)"
27719 #: ../src/guestfs-actions.pod:4323
27720 msgid "guestfs_lvs"
27721 msgstr "guestfs_lvs"
27724 #: ../src/guestfs-actions.pod:4325
27728 " guestfs_lvs (guestfs_h *g);\n"
27732 " guestfs_lvs (guestfs_h *g);\n"
27736 #: ../src/guestfs-actions.pod:4334
27737 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27741 #: ../src/guestfs-actions.pod:4342
27742 msgid "guestfs_lvs_full"
27743 msgstr "guestfs_lvs_full"
27746 #: ../src/guestfs-actions.pod:4344
27749 " struct guestfs_lvm_lv_list *\n"
27750 " guestfs_lvs_full (guestfs_h *g);\n"
27753 " struct guestfs_lvm_lv_list *\n"
27754 " guestfs_lvs_full (guestfs_h *g);\n"
27758 #: ../src/guestfs-actions.pod:4350
27760 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27761 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27765 #: ../src/guestfs-actions.pod:4356
27766 msgid "guestfs_lvuuid"
27767 msgstr "guestfs_lvuuid"
27770 #: ../src/guestfs-actions.pod:4358
27774 " guestfs_lvuuid (guestfs_h *g,\n"
27775 " const char *device);\n"
27779 " guestfs_lvuuid (guestfs_h *g,\n"
27780 " const char *device);\n"
27784 #: ../src/guestfs-actions.pod:4369
27785 msgid "guestfs_lxattrlist"
27786 msgstr "guestfs_lxattrlist"
27789 #: ../src/guestfs-actions.pod:4371
27792 " struct guestfs_xattr_list *\n"
27793 " guestfs_lxattrlist (guestfs_h *g,\n"
27794 " const char *path,\n"
27795 " char *const *names);\n"
27798 " struct guestfs_xattr_list *\n"
27799 " guestfs_lxattrlist (guestfs_h *g,\n"
27800 " const char *path,\n"
27801 " char *const *names);\n"
27805 #: ../src/guestfs-actions.pod:4390
27807 "This call is intended for programs that want to efficiently list a directory "
27808 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
27809 "a similarly efficient call for getting standard stats. Very long directory "
27810 "listings might cause the protocol message size to be exceeded, causing this "
27811 "call to fail. The caller must split up such requests into smaller groups of "
27816 #: ../src/guestfs-actions.pod:4404
27817 msgid "guestfs_mkdir"
27818 msgstr "guestfs_mkdir"
27821 #: ../src/guestfs-actions.pod:4406
27825 " guestfs_mkdir (guestfs_h *g,\n"
27826 " const char *path);\n"
27830 " guestfs_mkdir (guestfs_h *g,\n"
27831 " const char *path);\n"
27835 #: ../src/guestfs-actions.pod:4416
27836 msgid "guestfs_mkdir_mode"
27837 msgstr "guestfs_mkdir_mode"
27840 #: ../src/guestfs-actions.pod:4418
27844 " guestfs_mkdir_mode (guestfs_h *g,\n"
27845 " const char *path,\n"
27850 " guestfs_mkdir_mode (guestfs_h *g,\n"
27851 " const char *path,\n"
27856 #: ../src/guestfs-actions.pod:4430
27857 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27861 #: ../src/guestfs-actions.pod:4436
27862 msgid "guestfs_mkdir_p"
27863 msgstr "guestfs_mkdir_p"
27866 #: ../src/guestfs-actions.pod:4438
27870 " guestfs_mkdir_p (guestfs_h *g,\n"
27871 " const char *path);\n"
27875 " guestfs_mkdir_p (guestfs_h *g,\n"
27876 " const char *path);\n"
27880 #: ../src/guestfs-actions.pod:4449
27881 msgid "guestfs_mkdtemp"
27882 msgstr "guestfs_mkdtemp"
27885 #: ../src/guestfs-actions.pod:4451
27889 " guestfs_mkdtemp (guestfs_h *g,\n"
27890 " const char *template);\n"
27894 " guestfs_mkdtemp (guestfs_h *g,\n"
27895 " const char *template);\n"
27899 #: ../src/guestfs-actions.pod:4479
27900 msgid "guestfs_mke2fs_J"
27901 msgstr "guestfs_mke2fs_J"
27904 #: ../src/guestfs-actions.pod:4481
27908 " guestfs_mke2fs_J (guestfs_h *g,\n"
27909 " const char *fstype,\n"
27910 " int blocksize,\n"
27911 " const char *device,\n"
27912 " const char *journal);\n"
27916 " guestfs_mke2fs_J (guestfs_h *g,\n"
27917 " const char *fstype,\n"
27918 " int blocksize,\n"
27919 " const char *device,\n"
27920 " const char *journal);\n"
27924 #: ../src/guestfs-actions.pod:4494
27925 msgid "See also C<guestfs_mke2journal>."
27929 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
27930 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
27931 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
27932 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
27933 msgid "(Added in 1.0.68)"
27934 msgstr "(Додано у 1.0.68)"
27937 #: ../src/guestfs-actions.pod:4500
27938 msgid "guestfs_mke2fs_JL"
27939 msgstr "guestfs_mke2fs_JL"
27942 #: ../src/guestfs-actions.pod:4502
27946 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27947 " const char *fstype,\n"
27948 " int blocksize,\n"
27949 " const char *device,\n"
27950 " const char *label);\n"
27954 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27955 " const char *fstype,\n"
27956 " int blocksize,\n"
27957 " const char *device,\n"
27958 " const char *label);\n"
27962 #: ../src/guestfs-actions.pod:4512
27963 msgid "See also C<guestfs_mke2journal_L>."
27967 #: ../src/guestfs-actions.pod:4518
27968 msgid "guestfs_mke2fs_JU"
27969 msgstr "guestfs_mke2fs_JU"
27972 #: ../src/guestfs-actions.pod:4520
27976 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27977 " const char *fstype,\n"
27978 " int blocksize,\n"
27979 " const char *device,\n"
27980 " const char *uuid);\n"
27984 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27985 " const char *fstype,\n"
27986 " int blocksize,\n"
27987 " const char *device,\n"
27988 " const char *uuid);\n"
27992 #: ../src/guestfs-actions.pod:4530
27993 msgid "See also C<guestfs_mke2journal_U>."
27997 #: ../src/guestfs-actions.pod:4536
27998 msgid "guestfs_mke2journal"
27999 msgstr "guestfs_mke2journal"
28002 #: ../src/guestfs-actions.pod:4538
28006 " guestfs_mke2journal (guestfs_h *g,\n"
28007 " int blocksize,\n"
28008 " const char *device);\n"
28012 " guestfs_mke2journal (guestfs_h *g,\n"
28013 " int blocksize,\n"
28014 " const char *device);\n"
28018 #: ../src/guestfs-actions.pod:4552
28019 msgid "guestfs_mke2journal_L"
28020 msgstr "guestfs_mke2journal_L"
28023 #: ../src/guestfs-actions.pod:4554
28027 " guestfs_mke2journal_L (guestfs_h *g,\n"
28028 " int blocksize,\n"
28029 " const char *label,\n"
28030 " const char *device);\n"
28034 " guestfs_mke2journal_L (guestfs_h *g,\n"
28035 " int blocksize,\n"
28036 " const char *label,\n"
28037 " const char *device);\n"
28041 #: ../src/guestfs-actions.pod:4566
28042 msgid "guestfs_mke2journal_U"
28043 msgstr "guestfs_mke2journal_U"
28046 #: ../src/guestfs-actions.pod:4568
28050 " guestfs_mke2journal_U (guestfs_h *g,\n"
28051 " int blocksize,\n"
28052 " const char *uuid,\n"
28053 " const char *device);\n"
28057 " guestfs_mke2journal_U (guestfs_h *g,\n"
28058 " int blocksize,\n"
28059 " const char *uuid,\n"
28060 " const char *device);\n"
28064 #: ../src/guestfs-actions.pod:4580
28065 msgid "guestfs_mkfifo"
28066 msgstr "guestfs_mkfifo"
28069 #: ../src/guestfs-actions.pod:4582
28073 " guestfs_mkfifo (guestfs_h *g,\n"
28075 " const char *path);\n"
28079 " guestfs_mkfifo (guestfs_h *g,\n"
28081 " const char *path);\n"
28085 #: ../src/guestfs-actions.pod:4587
28087 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28088 "is just a convenient wrapper around C<guestfs_mknod>."
28092 #: ../src/guestfs-actions.pod:4597
28093 msgid "guestfs_mkfs"
28094 msgstr "guestfs_mkfs"
28097 #: ../src/guestfs-actions.pod:4599
28101 " guestfs_mkfs (guestfs_h *g,\n"
28102 " const char *fstype,\n"
28103 " const char *device);\n"
28107 " guestfs_mkfs (guestfs_h *g,\n"
28108 " const char *fstype,\n"
28109 " const char *device);\n"
28113 #: ../src/guestfs-actions.pod:4612
28114 msgid "guestfs_mkfs_b"
28115 msgstr "guestfs_mkfs_b"
28118 #: ../src/guestfs-actions.pod:4614
28122 " guestfs_mkfs_b (guestfs_h *g,\n"
28123 " const char *fstype,\n"
28124 " int blocksize,\n"
28125 " const char *device);\n"
28129 " guestfs_mkfs_b (guestfs_h *g,\n"
28130 " const char *fstype,\n"
28131 " int blocksize,\n"
28132 " const char *device);\n"
28136 #: ../src/guestfs-actions.pod:4620
28138 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28139 "block size of the resulting filesystem. Supported block sizes depend on the "
28140 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28144 #: ../src/guestfs-actions.pod:4630
28146 "This function is deprecated. In new code, use the L</guestfs_mkfs_opts> "
28151 #: ../src/guestfs-actions.pod:4639
28152 msgid "guestfs_mkfs_opts"
28153 msgstr "guestfs_mkfs_opts"
28156 #: ../src/guestfs-actions.pod:4641
28160 " guestfs_mkfs_opts (guestfs_h *g,\n"
28161 " const char *fstype,\n"
28162 " const char *device,\n"
28167 " guestfs_mkfs_opts (guestfs_h *g,\n"
28168 " const char *fstype,\n"
28169 " const char *device,\n"
28174 #: ../src/guestfs-actions.pod:4652
28177 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28178 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28179 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28180 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28185 #: ../src/guestfs-actions.pod:4700
28186 msgid "(Added in 1.7.19)"
28187 msgstr "(Додано у 1.7.19)"
28190 #: ../src/guestfs-actions.pod:4702
28191 msgid "guestfs_mkfs_opts_va"
28192 msgstr "guestfs_mkfs_opts_va"
28195 #: ../src/guestfs-actions.pod:4704
28199 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28200 " const char *fstype,\n"
28201 " const char *device,\n"
28202 " va_list args);\n"
28206 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28207 " const char *fstype,\n"
28208 " const char *device,\n"
28209 " va_list args);\n"
28213 #: ../src/guestfs-actions.pod:4710
28214 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28218 #: ../src/guestfs-actions.pod:4714
28219 msgid "guestfs_mkfs_opts_argv"
28220 msgstr "guestfs_mkfs_opts_argv"
28223 #: ../src/guestfs-actions.pod:4716
28227 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28228 " const char *fstype,\n"
28229 " const char *device,\n"
28230 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28234 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28235 " const char *fstype,\n"
28236 " const char *device,\n"
28237 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28241 #: ../src/guestfs-actions.pod:4722
28242 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28246 #: ../src/guestfs-actions.pod:4726
28247 msgid "guestfs_mkmountpoint"
28248 msgstr "guestfs_mkmountpoint"
28251 #: ../src/guestfs-actions.pod:4728
28255 " guestfs_mkmountpoint (guestfs_h *g,\n"
28256 " const char *exemptpath);\n"
28260 " guestfs_mkmountpoint (guestfs_h *g,\n"
28261 " const char *exemptpath);\n"
28265 #: ../src/guestfs-actions.pod:4732
28267 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28268 "that can be used to create extra mountpoints before mounting the first "
28273 #: ../src/guestfs-actions.pod:4756
28275 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
28276 "may get unexpected errors if you try to mix these calls. It is safest to "
28277 "manually unmount filesystems and remove mountpoints after use."
28281 #: ../src/guestfs-actions.pod:4760
28283 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28284 "first, so for this to work for manual mountpoints, you must ensure that the "
28285 "innermost mountpoints have the longest pathnames, as in the example code "
28290 #: ../src/guestfs-actions.pod:4767
28292 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28293 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28294 "can also trigger these issues."
28298 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
28299 #: ../src/guestfs-actions.pod:6099
28300 msgid "(Added in 1.0.62)"
28301 msgstr "(Додано у 1.0.62)"
28304 #: ../src/guestfs-actions.pod:4775
28305 msgid "guestfs_mknod"
28309 #: ../src/guestfs-actions.pod:4777
28313 " guestfs_mknod (guestfs_h *g,\n"
28317 " const char *path);\n"
28322 #: ../src/guestfs-actions.pod:4792
28324 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28325 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28326 "regular file). These constants are available in the standard Linux header "
28327 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28328 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28329 "the appropriate constant for you."
28333 #: ../src/guestfs-actions.pod:4806
28334 msgid "guestfs_mknod_b"
28338 #: ../src/guestfs-actions.pod:4808
28342 " guestfs_mknod_b (guestfs_h *g,\n"
28346 " const char *path);\n"
28351 #: ../src/guestfs-actions.pod:4815
28353 "This call creates a block device node called C<path> with mode C<mode> and "
28354 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28355 "wrapper around C<guestfs_mknod>."
28359 #: ../src/guestfs-actions.pod:4825
28360 msgid "guestfs_mknod_c"
28364 #: ../src/guestfs-actions.pod:4827
28368 " guestfs_mknod_c (guestfs_h *g,\n"
28372 " const char *path);\n"
28377 #: ../src/guestfs-actions.pod:4834
28379 "This call creates a char device node called C<path> with mode C<mode> and "
28380 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28381 "wrapper around C<guestfs_mknod>."
28385 #: ../src/guestfs-actions.pod:4844
28386 msgid "guestfs_mkswap"
28390 #: ../src/guestfs-actions.pod:4846
28394 " guestfs_mkswap (guestfs_h *g,\n"
28395 " const char *device);\n"
28400 #: ../src/guestfs-actions.pod:4856
28401 msgid "guestfs_mkswap_L"
28405 #: ../src/guestfs-actions.pod:4858
28409 " guestfs_mkswap_L (guestfs_h *g,\n"
28410 " const char *label,\n"
28411 " const char *device);\n"
28416 #: ../src/guestfs-actions.pod:4873
28417 msgid "guestfs_mkswap_U"
28421 #: ../src/guestfs-actions.pod:4875
28425 " guestfs_mkswap_U (guestfs_h *g,\n"
28426 " const char *uuid,\n"
28427 " const char *device);\n"
28432 #: ../src/guestfs-actions.pod:4886
28433 msgid "guestfs_mkswap_file"
28437 #: ../src/guestfs-actions.pod:4888
28441 " guestfs_mkswap_file (guestfs_h *g,\n"
28442 " const char *path);\n"
28447 #: ../src/guestfs-actions.pod:4894
28449 "This command just writes a swap file signature to an existing file. To "
28450 "create the file itself, use something like C<guestfs_fallocate>."
28454 #: ../src/guestfs-actions.pod:4901
28455 msgid "guestfs_modprobe"
28459 #: ../src/guestfs-actions.pod:4903
28463 " guestfs_modprobe (guestfs_h *g,\n"
28464 " const char *modulename);\n"
28469 #: ../src/guestfs-actions.pod:4916
28470 msgid "guestfs_mount"
28474 #: ../src/guestfs-actions.pod:4918
28478 " guestfs_mount (guestfs_h *g,\n"
28479 " const char *device,\n"
28480 " const char *mountpoint);\n"
28485 #: ../src/guestfs-actions.pod:4937
28487 "B<Important note:> When you use this call, the filesystem options C<sync> "
28488 "and C<noatime> are set implicitly. This was originally done because we "
28489 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28490 "very large negative performance impact and negligible effect on "
28491 "reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
28492 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28493 "(use an empty string for the first parameter if you don't want any options)."
28497 #: ../src/guestfs-actions.pod:4949
28499 "This function is deprecated. In new code, use the L</guestfs_mount_options> "
28504 #: ../src/guestfs-actions.pod:4958
28505 msgid "guestfs_mount_9p"
28509 #: ../src/guestfs-actions.pod:4960
28513 " guestfs_mount_9p (guestfs_h *g,\n"
28514 " const char *mounttag,\n"
28515 " const char *mountpoint,\n"
28521 #: ../src/guestfs-actions.pod:4971
28524 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28529 #: ../src/guestfs-actions.pod:4984
28530 msgid "guestfs_mount_9p_va"
28534 #: ../src/guestfs-actions.pod:4986
28538 " guestfs_mount_9p_va (guestfs_h *g,\n"
28539 " const char *mounttag,\n"
28540 " const char *mountpoint,\n"
28541 " va_list args);\n"
28546 #: ../src/guestfs-actions.pod:4992
28547 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28551 #: ../src/guestfs-actions.pod:4996
28552 msgid "guestfs_mount_9p_argv"
28556 #: ../src/guestfs-actions.pod:4998
28560 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28561 " const char *mounttag,\n"
28562 " const char *mountpoint,\n"
28563 " const struct guestfs_mount_9p_argv *optargs);\n"
28568 #: ../src/guestfs-actions.pod:5004
28569 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28573 #: ../src/guestfs-actions.pod:5008
28574 msgid "guestfs_mount_loop"
28578 #: ../src/guestfs-actions.pod:5010
28582 " guestfs_mount_loop (guestfs_h *g,\n"
28583 " const char *file,\n"
28584 " const char *mountpoint);\n"
28589 #: ../src/guestfs-actions.pod:5023
28590 msgid "guestfs_mount_options"
28594 #: ../src/guestfs-actions.pod:5025
28598 " guestfs_mount_options (guestfs_h *g,\n"
28599 " const char *options,\n"
28600 " const char *device,\n"
28601 " const char *mountpoint);\n"
28606 #: ../src/guestfs-actions.pod:5031
28608 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28609 "the mount options as for the L<mount(8)> I<-o> flag."
28613 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
28614 #: ../src/guestfs-actions.pod:5072
28615 msgid "(Added in 1.0.10)"
28619 #: ../src/guestfs-actions.pod:5043
28620 msgid "guestfs_mount_ro"
28624 #: ../src/guestfs-actions.pod:5045
28628 " guestfs_mount_ro (guestfs_h *g,\n"
28629 " const char *device,\n"
28630 " const char *mountpoint);\n"
28635 #: ../src/guestfs-actions.pod:5050
28637 "This is the same as the C<guestfs_mount> command, but it mounts the "
28638 "filesystem with the read-only (I<-o ro>) flag."
28642 #: ../src/guestfs-actions.pod:5057
28643 msgid "guestfs_mount_vfs"
28647 #: ../src/guestfs-actions.pod:5059
28651 " guestfs_mount_vfs (guestfs_h *g,\n"
28652 " const char *options,\n"
28653 " const char *vfstype,\n"
28654 " const char *device,\n"
28655 " const char *mountpoint);\n"
28660 #: ../src/guestfs-actions.pod:5066
28662 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28663 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28668 #: ../src/guestfs-actions.pod:5074
28669 msgid "guestfs_mountpoints"
28673 #: ../src/guestfs-actions.pod:5076
28677 " guestfs_mountpoints (guestfs_h *g);\n"
28682 #: ../src/guestfs-actions.pod:5079
28684 "This call is similar to C<guestfs_mounts>. That call returns a list of "
28685 "devices. This one returns a hash table (map) of device name to directory "
28686 "where the device is mounted."
28690 #: ../src/guestfs-actions.pod:5091
28691 msgid "guestfs_mounts"
28695 #: ../src/guestfs-actions.pod:5093
28699 " guestfs_mounts (guestfs_h *g);\n"
28704 #: ../src/guestfs-actions.pod:5101
28705 msgid "See also: C<guestfs_mountpoints>"
28709 #: ../src/guestfs-actions.pod:5109
28714 #: ../src/guestfs-actions.pod:5111
28718 " guestfs_mv (guestfs_h *g,\n"
28719 " const char *src,\n"
28720 " const char *dest);\n"
28725 #: ../src/guestfs-actions.pod:5123
28726 msgid "guestfs_ntfs_3g_probe"
28730 #: ../src/guestfs-actions.pod:5125
28734 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28736 " const char *device);\n"
28741 #: ../src/guestfs-actions.pod:5144
28742 msgid "(Added in 1.0.43)"
28746 #: ../src/guestfs-actions.pod:5146
28747 msgid "guestfs_ntfsresize"
28751 #: ../src/guestfs-actions.pod:5148
28755 " guestfs_ntfsresize (guestfs_h *g,\n"
28756 " const char *device);\n"
28761 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5257
28763 "This function is deprecated. In new code, use the L</"
28764 "guestfs_ntfsresize_opts> call instead."
28768 #: ../src/guestfs-actions.pod:5176
28769 msgid "guestfs_ntfsresize_opts"
28773 #: ../src/guestfs-actions.pod:5178
28777 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28778 " const char *device,\n"
28784 #: ../src/guestfs-actions.pod:5188
28787 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28788 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28793 #: ../src/guestfs-actions.pod:5208
28795 "After the resize operation, the filesystem is always marked as requiring a "
28796 "consistency check (for safety). You have to boot into Windows to perform "
28797 "this check and clear this condition. If you I<don't> set the C<force> "
28798 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28799 "times on a single filesystem without booting into Windows between each "
28804 #: ../src/guestfs-actions.pod:5223
28805 msgid "guestfs_ntfsresize_opts_va"
28809 #: ../src/guestfs-actions.pod:5225
28813 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28814 " const char *device,\n"
28815 " va_list args);\n"
28820 #: ../src/guestfs-actions.pod:5230
28821 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28825 #: ../src/guestfs-actions.pod:5234
28826 msgid "guestfs_ntfsresize_opts_argv"
28830 #: ../src/guestfs-actions.pod:5236
28834 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28835 " const char *device,\n"
28836 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28841 #: ../src/guestfs-actions.pod:5241
28842 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28846 #: ../src/guestfs-actions.pod:5245
28847 msgid "guestfs_ntfsresize_size"
28851 #: ../src/guestfs-actions.pod:5247
28855 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28856 " const char *device,\n"
28857 " int64_t size);\n"
28862 #: ../src/guestfs-actions.pod:5252
28864 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28865 "to specify the new size (in bytes) explicitly."
28869 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
28870 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
28871 #: ../src/guestfs-actions.pod:7670
28872 msgid "(Added in 1.3.14)"
28876 #: ../src/guestfs-actions.pod:5266
28877 msgid "guestfs_part_add"
28881 #: ../src/guestfs-actions.pod:5268
28885 " guestfs_part_add (guestfs_h *g,\n"
28886 " const char *device,\n"
28887 " const char *prlogex,\n"
28888 " int64_t startsect,\n"
28889 " int64_t endsect);\n"
28894 #: ../src/guestfs-actions.pod:5275
28896 "This command adds a partition to C<device>. If there is no partition table "
28897 "on the device, call C<guestfs_part_init> first."
28901 #: ../src/guestfs-actions.pod:5287
28903 "Creating a partition which covers the whole disk is not so easy. Use "
28904 "C<guestfs_part_disk> to do that."
28908 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
28909 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
28910 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
28911 #: ../src/guestfs-actions.pod:5564
28912 msgid "(Added in 1.0.78)"
28916 #: ../src/guestfs-actions.pod:5294
28917 msgid "guestfs_part_del"
28921 #: ../src/guestfs-actions.pod:5296
28925 " guestfs_part_del (guestfs_h *g,\n"
28926 " const char *device,\n"
28932 #: ../src/guestfs-actions.pod:5311
28933 msgid "guestfs_part_disk"
28937 #: ../src/guestfs-actions.pod:5313
28941 " guestfs_part_disk (guestfs_h *g,\n"
28942 " const char *device,\n"
28943 " const char *parttype);\n"
28948 #: ../src/guestfs-actions.pod:5318
28950 "This command is simply a combination of C<guestfs_part_init> followed by "
28951 "C<guestfs_part_add> to create a single primary partition covering the whole "
28956 #: ../src/guestfs-actions.pod:5322
28958 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28959 "possible values are described in C<guestfs_part_init>."
28963 #: ../src/guestfs-actions.pod:5332
28964 msgid "guestfs_part_get_bootable"
28968 #: ../src/guestfs-actions.pod:5334
28972 " guestfs_part_get_bootable (guestfs_h *g,\n"
28973 " const char *device,\n"
28979 #: ../src/guestfs-actions.pod:5342
28980 msgid "See also C<guestfs_part_set_bootable>."
28984 #: ../src/guestfs-actions.pod:5348
28985 msgid "guestfs_part_get_mbr_id"
28989 #: ../src/guestfs-actions.pod:5350
28993 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28994 " const char *device,\n"
29000 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
29002 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
29003 "undefined results for other partition table types (see "
29004 "C<guestfs_part_get_parttype>)."
29008 #: ../src/guestfs-actions.pod:5366
29009 msgid "guestfs_part_get_parttype"
29013 #: ../src/guestfs-actions.pod:5368
29017 " guestfs_part_get_parttype (guestfs_h *g,\n"
29018 " const char *device);\n"
29023 #: ../src/guestfs-actions.pod:5375
29025 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29026 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
29027 "possible, although unusual. See C<guestfs_part_init> for a full list."
29031 #: ../src/guestfs-actions.pod:5385
29032 msgid "guestfs_part_init"
29036 #: ../src/guestfs-actions.pod:5387
29040 " guestfs_part_init (guestfs_h *g,\n"
29041 " const char *device,\n"
29042 " const char *parttype);\n"
29047 #: ../src/guestfs-actions.pod:5396
29049 "Initially there are no partitions. Following this, you should call "
29050 "C<guestfs_part_add> for each partition required."
29054 #: ../src/guestfs-actions.pod:5469
29055 msgid "guestfs_part_list"
29056 msgstr "guestfs_part_list"
29059 #: ../src/guestfs-actions.pod:5471
29062 " struct guestfs_partition_list *\n"
29063 " guestfs_part_list (guestfs_h *g,\n"
29064 " const char *device);\n"
29067 " struct guestfs_partition_list *\n"
29068 " guestfs_part_list (guestfs_h *g,\n"
29069 " const char *device);\n"
29073 #: ../src/guestfs-actions.pod:5488
29075 "Start of the partition I<in bytes>. To get sectors you have to divide by "
29076 "the device's sector size, see C<guestfs_blockdev_getss>."
29080 #: ../src/guestfs-actions.pod:5501
29082 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29083 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
29088 #: ../src/guestfs-actions.pod:5507
29089 msgid "guestfs_part_set_bootable"
29093 #: ../src/guestfs-actions.pod:5509
29097 " guestfs_part_set_bootable (guestfs_h *g,\n"
29098 " const char *device,\n"
29100 " int bootable);\n"
29105 #: ../src/guestfs-actions.pod:5526
29106 msgid "guestfs_part_set_mbr_id"
29110 #: ../src/guestfs-actions.pod:5528
29114 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29115 " const char *device,\n"
29122 #: ../src/guestfs-actions.pod:5548
29123 msgid "guestfs_part_set_name"
29127 #: ../src/guestfs-actions.pod:5550
29131 " guestfs_part_set_name (guestfs_h *g,\n"
29132 " const char *device,\n"
29134 " const char *name);\n"
29139 #: ../src/guestfs-actions.pod:5566
29140 msgid "guestfs_part_to_dev"
29144 #: ../src/guestfs-actions.pod:5568
29148 " guestfs_part_to_dev (guestfs_h *g,\n"
29149 " const char *partition);\n"
29154 #: ../src/guestfs-actions.pod:5576
29156 "The named partition must exist, for example as a string returned from "
29157 "C<guestfs_list_partitions>."
29161 #: ../src/guestfs-actions.pod:5584
29162 msgid "guestfs_ping_daemon"
29166 #: ../src/guestfs-actions.pod:5586
29170 " guestfs_ping_daemon (guestfs_h *g);\n"
29175 #: ../src/guestfs-actions.pod:5598
29176 msgid "guestfs_pread"
29180 #: ../src/guestfs-actions.pod:5600
29184 " guestfs_pread (guestfs_h *g,\n"
29185 " const char *path,\n"
29187 " int64_t offset,\n"
29188 " size_t *size_r);\n"
29193 #: ../src/guestfs-actions.pod:5613
29194 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29198 #: ../src/guestfs-actions.pod:5624
29199 msgid "guestfs_pread_device"
29203 #: ../src/guestfs-actions.pod:5626
29207 " guestfs_pread_device (guestfs_h *g,\n"
29208 " const char *device,\n"
29210 " int64_t offset,\n"
29211 " size_t *size_r);\n"
29216 #: ../src/guestfs-actions.pod:5639
29217 msgid "See also C<guestfs_pread>."
29221 #: ../src/guestfs-actions.pod:5648
29222 msgid "(Added in 1.5.21)"
29226 #: ../src/guestfs-actions.pod:5650
29227 msgid "guestfs_pvcreate"
29231 #: ../src/guestfs-actions.pod:5652
29235 " guestfs_pvcreate (guestfs_h *g,\n"
29236 " const char *device);\n"
29241 #: ../src/guestfs-actions.pod:5664
29242 msgid "guestfs_pvremove"
29246 #: ../src/guestfs-actions.pod:5666
29250 " guestfs_pvremove (guestfs_h *g,\n"
29251 " const char *device);\n"
29256 #: ../src/guestfs-actions.pod:5681
29257 msgid "guestfs_pvresize"
29261 #: ../src/guestfs-actions.pod:5683
29265 " guestfs_pvresize (guestfs_h *g,\n"
29266 " const char *device);\n"
29271 #: ../src/guestfs-actions.pod:5694
29272 msgid "guestfs_pvresize_size"
29276 #: ../src/guestfs-actions.pod:5696
29280 " guestfs_pvresize_size (guestfs_h *g,\n"
29281 " const char *device,\n"
29282 " int64_t size);\n"
29287 #: ../src/guestfs-actions.pod:5701
29289 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29290 "specify the new size (in bytes) explicitly."
29294 #: ../src/guestfs-actions.pod:5708
29295 msgid "guestfs_pvs"
29299 #: ../src/guestfs-actions.pod:5710
29303 " guestfs_pvs (guestfs_h *g);\n"
29308 #: ../src/guestfs-actions.pod:5719
29309 msgid "See also C<guestfs_pvs_full>."
29313 #: ../src/guestfs-actions.pod:5727
29314 msgid "guestfs_pvs_full"
29318 #: ../src/guestfs-actions.pod:5729
29321 " struct guestfs_lvm_pv_list *\n"
29322 " guestfs_pvs_full (guestfs_h *g);\n"
29327 #: ../src/guestfs-actions.pod:5735
29329 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29330 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29334 #: ../src/guestfs-actions.pod:5741
29335 msgid "guestfs_pvuuid"
29339 #: ../src/guestfs-actions.pod:5743
29343 " guestfs_pvuuid (guestfs_h *g,\n"
29344 " const char *device);\n"
29349 #: ../src/guestfs-actions.pod:5754
29350 msgid "guestfs_pwrite"
29354 #: ../src/guestfs-actions.pod:5756
29358 " guestfs_pwrite (guestfs_h *g,\n"
29359 " const char *path,\n"
29360 " const char *content,\n"
29361 " size_t content_size,\n"
29362 " int64_t offset);\n"
29367 #: ../src/guestfs-actions.pod:5772
29368 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29372 #: ../src/guestfs-actions.pod:5781
29373 msgid "guestfs_pwrite_device"
29377 #: ../src/guestfs-actions.pod:5783
29381 " guestfs_pwrite_device (guestfs_h *g,\n"
29382 " const char *device,\n"
29383 " const char *content,\n"
29384 " size_t content_size,\n"
29385 " int64_t offset);\n"
29390 #: ../src/guestfs-actions.pod:5798
29391 msgid "See also C<guestfs_pwrite>."
29395 #: ../src/guestfs-actions.pod:5805
29396 msgid "(Added in 1.5.20)"
29400 #: ../src/guestfs-actions.pod:5807
29401 msgid "guestfs_read_file"
29405 #: ../src/guestfs-actions.pod:5809
29409 " guestfs_read_file (guestfs_h *g,\n"
29410 " const char *path,\n"
29411 " size_t *size_r);\n"
29416 #: ../src/guestfs-actions.pod:5817
29418 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29419 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
29420 "function is limited in the total size of file that can be handled."
29424 #: ../src/guestfs-actions.pod:5829
29425 msgid "(Added in 1.0.63)"
29429 #: ../src/guestfs-actions.pod:5831
29430 msgid "guestfs_read_lines"
29434 #: ../src/guestfs-actions.pod:5833
29438 " guestfs_read_lines (guestfs_h *g,\n"
29439 " const char *path);\n"
29444 #: ../src/guestfs-actions.pod:5842
29446 "Note that this function cannot correctly handle binary files (specifically, "
29447 "files containing C<\\0> character which is treated as end of line). For "
29448 "those you need to use the C<guestfs_read_file> function which has a more "
29449 "complex interface."
29453 #: ../src/guestfs-actions.pod:5853
29454 msgid "guestfs_readdir"
29458 #: ../src/guestfs-actions.pod:5855
29461 " struct guestfs_dirent_list *\n"
29462 " guestfs_readdir (guestfs_h *g,\n"
29463 " const char *dir);\n"
29468 #: ../src/guestfs-actions.pod:5909
29470 "This function is primarily intended for use by programs. To get a simple "
29471 "list of names, use C<guestfs_ls>. To get a printable directory for human "
29472 "consumption, use C<guestfs_ll>."
29476 #: ../src/guestfs-actions.pod:5913
29478 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29479 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
29483 #: ../src/guestfs-actions.pod:5919
29484 msgid "guestfs_readlink"
29488 #: ../src/guestfs-actions.pod:5921
29492 " guestfs_readlink (guestfs_h *g,\n"
29493 " const char *path);\n"
29498 #: ../src/guestfs-actions.pod:5932
29499 msgid "guestfs_readlinklist"
29503 #: ../src/guestfs-actions.pod:5934
29507 " guestfs_readlinklist (guestfs_h *g,\n"
29508 " const char *path,\n"
29509 " char *const *names);\n"
29514 #: ../src/guestfs-actions.pod:5967
29515 msgid "guestfs_realpath"
29519 #: ../src/guestfs-actions.pod:5969
29523 " guestfs_realpath (guestfs_h *g,\n"
29524 " const char *path);\n"
29529 #: ../src/guestfs-actions.pod:5981
29530 msgid "guestfs_removexattr"
29534 #: ../src/guestfs-actions.pod:5983
29538 " guestfs_removexattr (guestfs_h *g,\n"
29539 " const char *xattr,\n"
29540 " const char *path);\n"
29545 #: ../src/guestfs-actions.pod:5991
29546 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29550 #: ../src/guestfs-actions.pod:5997
29551 msgid "guestfs_resize2fs"
29555 #: ../src/guestfs-actions.pod:5999
29559 " guestfs_resize2fs (guestfs_h *g,\n"
29560 " const char *device);\n"
29565 #: ../src/guestfs-actions.pod:6006
29567 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29568 "C<device> before calling this command. For unknown reasons C<resize2fs> "
29569 "sometimes gives an error about this and sometimes not. In any case, it is "
29570 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29574 #: ../src/guestfs-actions.pod:6016
29575 msgid "guestfs_resize2fs_M"
29579 #: ../src/guestfs-actions.pod:6018
29583 " guestfs_resize2fs_M (guestfs_h *g,\n"
29584 " const char *device);\n"
29589 #: ../src/guestfs-actions.pod:6022
29591 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29592 "resized to its minimum size. This works like the I<-M> option to the "
29593 "C<resize2fs> command."
29597 #: ../src/guestfs-actions.pod:6026
29599 "To get the resulting size of the filesystem you should call "
29600 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
29601 "These two numbers, multiplied together, give the resulting size of the "
29602 "minimal filesystem in bytes."
29606 #: ../src/guestfs-actions.pod:6035
29607 msgid "guestfs_resize2fs_size"
29611 #: ../src/guestfs-actions.pod:6037
29615 " guestfs_resize2fs_size (guestfs_h *g,\n"
29616 " const char *device,\n"
29617 " int64_t size);\n"
29622 #: ../src/guestfs-actions.pod:6042
29624 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29625 "to specify the new size (in bytes) explicitly."
29629 #: ../src/guestfs-actions.pod:6049
29634 #: ../src/guestfs-actions.pod:6051
29638 " guestfs_rm (guestfs_h *g,\n"
29639 " const char *path);\n"
29644 #: ../src/guestfs-actions.pod:6061
29645 msgid "guestfs_rm_rf"
29649 #: ../src/guestfs-actions.pod:6063
29653 " guestfs_rm_rf (guestfs_h *g,\n"
29654 " const char *path);\n"
29659 #: ../src/guestfs-actions.pod:6075
29660 msgid "guestfs_rmdir"
29664 #: ../src/guestfs-actions.pod:6077
29668 " guestfs_rmdir (guestfs_h *g,\n"
29669 " const char *path);\n"
29674 #: ../src/guestfs-actions.pod:6087
29675 msgid "guestfs_rmmountpoint"
29679 #: ../src/guestfs-actions.pod:6089
29683 " guestfs_rmmountpoint (guestfs_h *g,\n"
29684 " const char *exemptpath);\n"
29689 #: ../src/guestfs-actions.pod:6093
29691 "This calls removes a mountpoint that was previously created with "
29692 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
29696 #: ../src/guestfs-actions.pod:6101
29697 msgid "guestfs_scrub_device"
29701 #: ../src/guestfs-actions.pod:6103
29705 " guestfs_scrub_device (guestfs_h *g,\n"
29706 " const char *device);\n"
29711 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
29712 #: ../src/guestfs-actions.pod:6155
29713 msgid "(Added in 1.0.52)"
29717 #: ../src/guestfs-actions.pod:6120
29718 msgid "guestfs_scrub_file"
29722 #: ../src/guestfs-actions.pod:6122
29726 " guestfs_scrub_file (guestfs_h *g,\n"
29727 " const char *file);\n"
29732 #: ../src/guestfs-actions.pod:6138
29733 msgid "guestfs_scrub_freespace"
29737 #: ../src/guestfs-actions.pod:6140
29741 " guestfs_scrub_freespace (guestfs_h *g,\n"
29742 " const char *dir);\n"
29747 #: ../src/guestfs-actions.pod:6144
29749 "This command creates the directory C<dir> and then fills it with files until "
29750 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29751 "and deletes them. The intention is to scrub any free space on the partition "
29752 "containing C<dir>."
29756 #: ../src/guestfs-actions.pod:6157
29757 msgid "guestfs_set_append"
29761 #: ../src/guestfs-actions.pod:6159
29765 " guestfs_set_append (guestfs_h *g,\n"
29766 " const char *append);\n"
29771 #: ../src/guestfs-actions.pod:6176
29772 msgid "guestfs_set_attach_method"
29776 #: ../src/guestfs-actions.pod:6178
29780 " guestfs_set_attach_method (guestfs_h *g,\n"
29781 " const char *attachmethod);\n"
29786 #: ../src/guestfs-actions.pod:6206
29787 msgid "guestfs_set_autosync"
29791 #: ../src/guestfs-actions.pod:6208
29795 " guestfs_set_autosync (guestfs_h *g,\n"
29796 " int autosync);\n"
29801 #: ../src/guestfs-actions.pod:6224
29802 msgid "guestfs_set_direct"
29806 #: ../src/guestfs-actions.pod:6226
29810 " guestfs_set_direct (guestfs_h *g,\n"
29816 #: ../src/guestfs-actions.pod:6234
29818 "One consequence of this is that log messages aren't caught by the library "
29819 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29824 #: ../src/guestfs-actions.pod:6247
29825 msgid "guestfs_set_e2label"
29829 #: ../src/guestfs-actions.pod:6249
29833 " guestfs_set_e2label (guestfs_h *g,\n"
29834 " const char *device,\n"
29835 " const char *label);\n"
29840 #: ../src/guestfs-actions.pod:6258
29842 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29843 "the existing label on a filesystem."
29847 #: ../src/guestfs-actions.pod:6265
29848 msgid "guestfs_set_e2uuid"
29852 #: ../src/guestfs-actions.pod:6267
29856 " guestfs_set_e2uuid (guestfs_h *g,\n"
29857 " const char *device,\n"
29858 " const char *uuid);\n"
29863 #: ../src/guestfs-actions.pod:6277
29865 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29866 "the existing UUID of a filesystem."
29870 #: ../src/guestfs-actions.pod:6284
29871 msgid "guestfs_set_memsize"
29875 #: ../src/guestfs-actions.pod:6286
29879 " guestfs_set_memsize (guestfs_h *g,\n"
29885 #: ../src/guestfs-actions.pod:6290
29887 "This sets the memory size in megabytes allocated to the qemu subprocess. "
29888 "This only has any effect if called before C<guestfs_launch>."
29892 #: ../src/guestfs-actions.pod:6305
29893 msgid "guestfs_set_network"
29897 #: ../src/guestfs-actions.pod:6307
29901 " guestfs_set_network (guestfs_h *g,\n"
29907 #: ../src/guestfs-actions.pod:6317
29909 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29914 #: ../src/guestfs-actions.pod:6324
29915 msgid "guestfs_set_path"
29919 #: ../src/guestfs-actions.pod:6326
29923 " guestfs_set_path (guestfs_h *g,\n"
29924 " const char *searchpath);\n"
29929 #: ../src/guestfs-actions.pod:6341
29930 msgid "guestfs_set_pgroup"
29934 #: ../src/guestfs-actions.pod:6343
29938 " guestfs_set_pgroup (guestfs_h *g,\n"
29944 #: ../src/guestfs-actions.pod:6360
29945 msgid "guestfs_set_qemu"
29949 #: ../src/guestfs-actions.pod:6362
29953 " guestfs_set_qemu (guestfs_h *g,\n"
29954 " const char *qemu);\n"
29959 #: ../src/guestfs-actions.pod:6388
29960 msgid "guestfs_set_recovery_proc"
29964 #: ../src/guestfs-actions.pod:6390
29968 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29969 " int recoveryproc);\n"
29974 #: ../src/guestfs-actions.pod:6394
29976 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29977 "not create a recovery process. The purpose of the recovery process is to "
29978 "stop runaway qemu processes in the case where the main program aborts "
29983 #: ../src/guestfs-actions.pod:6399
29985 "This only has any effect if called before C<guestfs_launch>, and the default "
29990 #: ../src/guestfs-actions.pod:6412
29991 msgid "guestfs_set_selinux"
29995 #: ../src/guestfs-actions.pod:6414
29999 " guestfs_set_selinux (guestfs_h *g,\n"
30005 #: ../src/guestfs-actions.pod:6431
30006 msgid "guestfs_set_trace"
30010 #: ../src/guestfs-actions.pod:6433
30014 " guestfs_set_trace (guestfs_h *g,\n"
30020 #: ../src/guestfs-actions.pod:6447
30022 "Trace messages are normally sent to C<stderr>, unless you register a "
30023 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30027 #: ../src/guestfs-actions.pod:6455
30028 msgid "guestfs_set_verbose"
30032 #: ../src/guestfs-actions.pod:6457
30036 " guestfs_set_verbose (guestfs_h *g,\n"
30042 #: ../src/guestfs-actions.pod:6466
30044 "Verbose messages are normally sent to C<stderr>, unless you register a "
30045 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30049 #: ../src/guestfs-actions.pod:6474
30050 msgid "guestfs_setcon"
30054 #: ../src/guestfs-actions.pod:6476
30058 " guestfs_setcon (guestfs_h *g,\n"
30059 " const char *context);\n"
30064 #: ../src/guestfs-actions.pod:6489
30065 msgid "guestfs_setxattr"
30069 #: ../src/guestfs-actions.pod:6491
30073 " guestfs_setxattr (guestfs_h *g,\n"
30074 " const char *xattr,\n"
30075 " const char *val,\n"
30077 " const char *path);\n"
30082 #: ../src/guestfs-actions.pod:6502
30083 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30087 #: ../src/guestfs-actions.pod:6508
30088 msgid "guestfs_sfdisk"
30092 #: ../src/guestfs-actions.pod:6510
30096 " guestfs_sfdisk (guestfs_h *g,\n"
30097 " const char *device,\n"
30101 " char *const *lines);\n"
30106 #: ../src/guestfs-actions.pod:6538
30108 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30112 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6576
30113 #: ../src/guestfs-actions.pod:6609
30115 "This function is deprecated. In new code, use the L</guestfs_part_add> call "
30120 #: ../src/guestfs-actions.pod:6555
30121 msgid "guestfs_sfdiskM"
30125 #: ../src/guestfs-actions.pod:6557
30129 " guestfs_sfdiskM (guestfs_h *g,\n"
30130 " const char *device,\n"
30131 " char *const *lines);\n"
30136 #: ../src/guestfs-actions.pod:6562
30138 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30139 "partition sizes are specified in megabytes only (rounded to the nearest "
30140 "cylinder) and you don't need to specify the cyls, heads and sectors "
30141 "parameters which were rarely if ever used anyway."
30145 #: ../src/guestfs-actions.pod:6568
30147 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30148 "C<guestfs_part_disk>"
30152 #: ../src/guestfs-actions.pod:6585
30153 msgid "guestfs_sfdisk_N"
30157 #: ../src/guestfs-actions.pod:6587
30161 " guestfs_sfdisk_N (guestfs_h *g,\n"
30162 " const char *device,\n"
30167 " const char *line);\n"
30172 #: ../src/guestfs-actions.pod:6599
30174 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
30175 "for the cyls/heads/sectors parameters."
30179 #: ../src/guestfs-actions.pod:6602
30180 msgid "See also: C<guestfs_part_add>"
30184 #: ../src/guestfs-actions.pod:6618
30185 msgid "guestfs_sfdisk_disk_geometry"
30189 #: ../src/guestfs-actions.pod:6620
30193 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30194 " const char *device);\n"
30199 #: ../src/guestfs-actions.pod:6624
30201 "This displays the disk geometry of C<device> read from the partition table. "
30202 "Especially in the case where the underlying block device has been resized, "
30203 "this can be different from the kernel's idea of the geometry (see "
30204 "C<guestfs_sfdisk_kernel_geometry>)."
30208 #: ../src/guestfs-actions.pod:6637
30209 msgid "guestfs_sfdisk_kernel_geometry"
30213 #: ../src/guestfs-actions.pod:6639
30217 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30218 " const char *device);\n"
30223 #: ../src/guestfs-actions.pod:6653
30224 msgid "guestfs_sfdisk_l"
30228 #: ../src/guestfs-actions.pod:6655
30232 " guestfs_sfdisk_l (guestfs_h *g,\n"
30233 " const char *device);\n"
30238 #: ../src/guestfs-actions.pod:6663
30239 msgid "See also: C<guestfs_part_list>"
30243 #: ../src/guestfs-actions.pod:6668
30245 "This function is deprecated. In new code, use the L</guestfs_part_list> "
30250 #: ../src/guestfs-actions.pod:6677
30255 #: ../src/guestfs-actions.pod:6679
30259 " guestfs_sh (guestfs_h *g,\n"
30260 " const char *command);\n"
30265 #: ../src/guestfs-actions.pod:6686
30266 msgid "This is like C<guestfs_command>, but passes the command to:"
30270 #: ../src/guestfs-actions.pod:6694
30271 msgid "All the provisos about C<guestfs_command> apply to this call."
30275 #: ../src/guestfs-actions.pod:6701
30276 msgid "guestfs_sh_lines"
30280 #: ../src/guestfs-actions.pod:6703
30284 " guestfs_sh_lines (guestfs_h *g,\n"
30285 " const char *command);\n"
30290 #: ../src/guestfs-actions.pod:6707
30292 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30297 #: ../src/guestfs-actions.pod:6710
30298 msgid "See also: C<guestfs_command_lines>"
30302 #: ../src/guestfs-actions.pod:6718
30303 msgid "guestfs_sleep"
30307 #: ../src/guestfs-actions.pod:6720
30311 " guestfs_sleep (guestfs_h *g,\n"
30317 #: ../src/guestfs-actions.pod:6728
30318 msgid "(Added in 1.0.41)"
30322 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
30323 msgid "guestfs_stat"
30327 #: ../src/guestfs-actions.pod:6732
30330 " struct guestfs_stat *\n"
30331 " guestfs_stat (guestfs_h *g,\n"
30332 " const char *path);\n"
30337 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
30338 msgid "guestfs_statvfs"
30342 #: ../src/guestfs-actions.pod:6748
30345 " struct guestfs_statvfs *\n"
30346 " guestfs_statvfs (guestfs_h *g,\n"
30347 " const char *path);\n"
30352 #: ../src/guestfs-actions.pod:6758
30354 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30355 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
30359 #: ../src/guestfs-actions.pod:6764
30360 msgid "guestfs_strings"
30364 #: ../src/guestfs-actions.pod:6766
30368 " guestfs_strings (guestfs_h *g,\n"
30369 " const char *path);\n"
30374 #: ../src/guestfs-actions.pod:6782
30375 msgid "guestfs_strings_e"
30379 #: ../src/guestfs-actions.pod:6784
30383 " guestfs_strings_e (guestfs_h *g,\n"
30384 " const char *encoding,\n"
30385 " const char *path);\n"
30390 #: ../src/guestfs-actions.pod:6789
30392 "This is like the C<guestfs_strings> command, but allows you to specify the "
30393 "encoding of strings that are looked for in the source file C<path>."
30397 #: ../src/guestfs-actions.pod:6799
30399 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30400 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30404 #: ../src/guestfs-actions.pod:6837
30405 msgid "guestfs_swapoff_device"
30409 #: ../src/guestfs-actions.pod:6839
30413 " guestfs_swapoff_device (guestfs_h *g,\n"
30414 " const char *device);\n"
30419 #: ../src/guestfs-actions.pod:6843
30421 "This command disables the libguestfs appliance swap device or partition "
30422 "named C<device>. See C<guestfs_swapon_device>."
30426 #: ../src/guestfs-actions.pod:6851
30427 msgid "guestfs_swapoff_file"
30431 #: ../src/guestfs-actions.pod:6853
30435 " guestfs_swapoff_file (guestfs_h *g,\n"
30436 " const char *file);\n"
30441 #: ../src/guestfs-actions.pod:6863
30442 msgid "guestfs_swapoff_label"
30446 #: ../src/guestfs-actions.pod:6865
30450 " guestfs_swapoff_label (guestfs_h *g,\n"
30451 " const char *label);\n"
30456 #: ../src/guestfs-actions.pod:6876
30457 msgid "guestfs_swapoff_uuid"
30461 #: ../src/guestfs-actions.pod:6878
30465 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30466 " const char *uuid);\n"
30471 #: ../src/guestfs-actions.pod:6889
30472 msgid "guestfs_swapon_device"
30476 #: ../src/guestfs-actions.pod:6891
30480 " guestfs_swapon_device (guestfs_h *g,\n"
30481 " const char *device);\n"
30486 #: ../src/guestfs-actions.pod:6895
30488 "This command enables the libguestfs appliance to use the swap device or "
30489 "partition named C<device>. The increased memory is made available for all "
30490 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30494 #: ../src/guestfs-actions.pod:6911
30495 msgid "guestfs_swapon_file"
30499 #: ../src/guestfs-actions.pod:6913
30503 " guestfs_swapon_file (guestfs_h *g,\n"
30504 " const char *file);\n"
30509 #: ../src/guestfs-actions.pod:6917
30511 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
30516 #: ../src/guestfs-actions.pod:6924
30517 msgid "guestfs_swapon_label"
30521 #: ../src/guestfs-actions.pod:6926
30525 " guestfs_swapon_label (guestfs_h *g,\n"
30526 " const char *label);\n"
30531 #: ../src/guestfs-actions.pod:6930
30533 "This command enables swap to a labeled swap partition. See "
30534 "C<guestfs_swapon_device> for other notes."
30538 #: ../src/guestfs-actions.pod:6937
30539 msgid "guestfs_swapon_uuid"
30543 #: ../src/guestfs-actions.pod:6939
30547 " guestfs_swapon_uuid (guestfs_h *g,\n"
30548 " const char *uuid);\n"
30553 #: ../src/guestfs-actions.pod:6943
30555 "This command enables swap to a swap partition with the given UUID. See "
30556 "C<guestfs_swapon_device> for other notes."
30560 #: ../src/guestfs-actions.pod:6950
30561 msgid "guestfs_sync"
30565 #: ../src/guestfs-actions.pod:6952
30569 " guestfs_sync (guestfs_h *g);\n"
30574 #: ../src/guestfs-actions.pod:6965
30575 msgid "guestfs_tail"
30579 #: ../src/guestfs-actions.pod:6967
30583 " guestfs_tail (guestfs_h *g,\n"
30584 " const char *path);\n"
30589 #: ../src/guestfs-actions.pod:6983
30590 msgid "guestfs_tail_n"
30594 #: ../src/guestfs-actions.pod:6985
30598 " guestfs_tail_n (guestfs_h *g,\n"
30600 " const char *path);\n"
30605 #: ../src/guestfs-actions.pod:7007
30606 msgid "guestfs_tar_in"
30610 #: ../src/guestfs-actions.pod:7009
30614 " guestfs_tar_in (guestfs_h *g,\n"
30615 " const char *tarfile,\n"
30616 " const char *directory);\n"
30621 #: ../src/guestfs-actions.pod:7017
30623 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30627 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
30628 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
30629 msgid "(Added in 1.0.3)"
30633 #: ../src/guestfs-actions.pod:7024
30634 msgid "guestfs_tar_out"
30638 #: ../src/guestfs-actions.pod:7026
30642 " guestfs_tar_out (guestfs_h *g,\n"
30643 " const char *directory,\n"
30644 " const char *tarfile);\n"
30649 #: ../src/guestfs-actions.pod:7034
30651 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30652 "C<guestfs_txz_out>."
30656 #: ../src/guestfs-actions.pod:7041
30657 msgid "guestfs_tgz_in"
30661 #: ../src/guestfs-actions.pod:7043
30665 " guestfs_tgz_in (guestfs_h *g,\n"
30666 " const char *tarball,\n"
30667 " const char *directory);\n"
30672 #: ../src/guestfs-actions.pod:7051
30673 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30677 #: ../src/guestfs-actions.pod:7057
30678 msgid "guestfs_tgz_out"
30682 #: ../src/guestfs-actions.pod:7059
30686 " guestfs_tgz_out (guestfs_h *g,\n"
30687 " const char *directory,\n"
30688 " const char *tarball);\n"
30693 #: ../src/guestfs-actions.pod:7067
30694 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30698 #: ../src/guestfs-actions.pod:7073
30699 msgid "guestfs_touch"
30703 #: ../src/guestfs-actions.pod:7075
30707 " guestfs_touch (guestfs_h *g,\n"
30708 " const char *path);\n"
30713 #: ../src/guestfs-actions.pod:7090
30714 msgid "guestfs_truncate"
30718 #: ../src/guestfs-actions.pod:7092
30722 " guestfs_truncate (guestfs_h *g,\n"
30723 " const char *path);\n"
30728 #: ../src/guestfs-actions.pod:7103
30729 msgid "guestfs_truncate_size"
30733 #: ../src/guestfs-actions.pod:7105
30737 " guestfs_truncate_size (guestfs_h *g,\n"
30738 " const char *path,\n"
30739 " int64_t size);\n"
30744 #: ../src/guestfs-actions.pod:7113
30746 "If the current file size is less than C<size> then the file is extended to "
30747 "the required size with zero bytes. This creates a sparse file (ie. disk "
30748 "blocks are not allocated for the file until you write to it). To create a "
30749 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30753 #: ../src/guestfs-actions.pod:7123
30754 msgid "guestfs_tune2fs_l"
30758 #: ../src/guestfs-actions.pod:7125
30762 " guestfs_tune2fs_l (guestfs_h *g,\n"
30763 " const char *device);\n"
30768 #: ../src/guestfs-actions.pod:7145
30769 msgid "guestfs_txz_in"
30773 #: ../src/guestfs-actions.pod:7147
30777 " guestfs_txz_in (guestfs_h *g,\n"
30778 " const char *tarball,\n"
30779 " const char *directory);\n"
30784 #: ../src/guestfs-actions.pod:7159
30785 msgid "guestfs_txz_out"
30789 #: ../src/guestfs-actions.pod:7161
30793 " guestfs_txz_out (guestfs_h *g,\n"
30794 " const char *directory,\n"
30795 " const char *tarball);\n"
30800 #: ../src/guestfs-actions.pod:7173
30801 msgid "guestfs_umask"
30805 #: ../src/guestfs-actions.pod:7175
30809 " guestfs_umask (guestfs_h *g,\n"
30815 #: ../src/guestfs-actions.pod:7191
30817 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30818 "C<guestfs_mkdir>."
30822 #: ../src/guestfs-actions.pod:7200
30823 msgid "guestfs_umount"
30827 #: ../src/guestfs-actions.pod:7202
30831 " guestfs_umount (guestfs_h *g,\n"
30832 " const char *pathordevice);\n"
30837 #: ../src/guestfs-actions.pod:7214
30838 msgid "guestfs_umount_all"
30842 #: ../src/guestfs-actions.pod:7216
30846 " guestfs_umount_all (guestfs_h *g);\n"
30851 #: ../src/guestfs-actions.pod:7227
30852 msgid "guestfs_upload"
30856 #: ../src/guestfs-actions.pod:7229
30860 " guestfs_upload (guestfs_h *g,\n"
30861 " const char *filename,\n"
30862 " const char *remotefilename);\n"
30867 #: ../src/guestfs-actions.pod:7239
30868 msgid "See also C<guestfs_download>."
30872 #: ../src/guestfs-actions.pod:7250
30873 msgid "guestfs_upload_offset"
30877 #: ../src/guestfs-actions.pod:7252
30881 " guestfs_upload_offset (guestfs_h *g,\n"
30882 " const char *filename,\n"
30883 " const char *remotefilename,\n"
30884 " int64_t offset);\n"
30889 #: ../src/guestfs-actions.pod:7268
30891 "Note that there is no limit on the amount of data that can be uploaded with "
30892 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30893 "full amount unless an error occurs."
30897 #: ../src/guestfs-actions.pod:7273
30898 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30902 #: ../src/guestfs-actions.pod:7284
30903 msgid "guestfs_utimens"
30907 #: ../src/guestfs-actions.pod:7286
30911 " guestfs_utimens (guestfs_h *g,\n"
30912 " const char *path,\n"
30913 " int64_t atsecs,\n"
30914 " int64_t atnsecs,\n"
30915 " int64_t mtsecs,\n"
30916 " int64_t mtnsecs);\n"
30921 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
30922 msgid "guestfs_version"
30926 #: ../src/guestfs-actions.pod:7317
30929 " struct guestfs_version *\n"
30930 " guestfs_version (guestfs_h *g);\n"
30935 #: ../src/guestfs-actions.pod:7345
30937 "I<Note:> Don't use this call to test for availability of features. In "
30938 "enterprise distributions we backport features from later versions into "
30939 "earlier versions, making this an unreliable way to test for features. Use "
30940 "C<guestfs_available> instead."
30944 #: ../src/guestfs-actions.pod:7351
30946 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30947 "error. I<The caller must call C<guestfs_free_version> after use>."
30951 #: ../src/guestfs-actions.pod:7355
30952 msgid "(Added in 1.0.58)"
30956 #: ../src/guestfs-actions.pod:7357
30957 msgid "guestfs_vfs_label"
30961 #: ../src/guestfs-actions.pod:7359
30965 " guestfs_vfs_label (guestfs_h *g,\n"
30966 " const char *device);\n"
30971 #: ../src/guestfs-actions.pod:7368
30972 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30976 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
30977 msgid "(Added in 1.3.18)"
30981 #: ../src/guestfs-actions.pod:7375
30982 msgid "guestfs_vfs_type"
30986 #: ../src/guestfs-actions.pod:7377
30990 " guestfs_vfs_type (guestfs_h *g,\n"
30991 " const char *device);\n"
30996 #: ../src/guestfs-actions.pod:7394
30997 msgid "guestfs_vfs_uuid"
31001 #: ../src/guestfs-actions.pod:7396
31005 " guestfs_vfs_uuid (guestfs_h *g,\n"
31006 " const char *device);\n"
31011 #: ../src/guestfs-actions.pod:7405
31012 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31016 #: ../src/guestfs-actions.pod:7412
31017 msgid "guestfs_vg_activate"
31021 #: ../src/guestfs-actions.pod:7414
31025 " guestfs_vg_activate (guestfs_h *g,\n"
31027 " char *const *volgroups);\n"
31032 #: ../src/guestfs-actions.pod:7431
31033 msgid "guestfs_vg_activate_all"
31037 #: ../src/guestfs-actions.pod:7433
31041 " guestfs_vg_activate_all (guestfs_h *g,\n"
31042 " int activate);\n"
31047 #: ../src/guestfs-actions.pod:7446
31048 msgid "guestfs_vgcreate"
31052 #: ../src/guestfs-actions.pod:7448
31056 " guestfs_vgcreate (guestfs_h *g,\n"
31057 " const char *volgroup,\n"
31058 " char *const *physvols);\n"
31063 #: ../src/guestfs-actions.pod:7460
31064 msgid "guestfs_vglvuuids"
31068 #: ../src/guestfs-actions.pod:7462
31072 " guestfs_vglvuuids (guestfs_h *g,\n"
31073 " const char *vgname);\n"
31078 #: ../src/guestfs-actions.pod:7469
31080 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31081 "associate logical volumes and volume groups."
31085 #: ../src/guestfs-actions.pod:7472
31086 msgid "See also C<guestfs_vgpvuuids>."
31090 #: ../src/guestfs-actions.pod:7480
31091 msgid "guestfs_vgpvuuids"
31095 #: ../src/guestfs-actions.pod:7482
31099 " guestfs_vgpvuuids (guestfs_h *g,\n"
31100 " const char *vgname);\n"
31105 #: ../src/guestfs-actions.pod:7489
31107 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31108 "associate physical volumes and volume groups."
31112 #: ../src/guestfs-actions.pod:7492
31113 msgid "See also C<guestfs_vglvuuids>."
31117 #: ../src/guestfs-actions.pod:7500
31118 msgid "guestfs_vgremove"
31122 #: ../src/guestfs-actions.pod:7502
31126 " guestfs_vgremove (guestfs_h *g,\n"
31127 " const char *vgname);\n"
31132 #: ../src/guestfs-actions.pod:7515
31133 msgid "guestfs_vgrename"
31137 #: ../src/guestfs-actions.pod:7517
31141 " guestfs_vgrename (guestfs_h *g,\n"
31142 " const char *volgroup,\n"
31143 " const char *newvolgroup);\n"
31148 #: ../src/guestfs-actions.pod:7528
31149 msgid "guestfs_vgs"
31153 #: ../src/guestfs-actions.pod:7530
31157 " guestfs_vgs (guestfs_h *g);\n"
31162 #: ../src/guestfs-actions.pod:7539
31163 msgid "See also C<guestfs_vgs_full>."
31167 #: ../src/guestfs-actions.pod:7547
31168 msgid "guestfs_vgs_full"
31172 #: ../src/guestfs-actions.pod:7549
31175 " struct guestfs_lvm_vg_list *\n"
31176 " guestfs_vgs_full (guestfs_h *g);\n"
31181 #: ../src/guestfs-actions.pod:7555
31183 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31184 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31188 #: ../src/guestfs-actions.pod:7561
31189 msgid "guestfs_vgscan"
31193 #: ../src/guestfs-actions.pod:7563
31197 " guestfs_vgscan (guestfs_h *g);\n"
31202 #: ../src/guestfs-actions.pod:7573
31203 msgid "guestfs_vguuid"
31207 #: ../src/guestfs-actions.pod:7575
31211 " guestfs_vguuid (guestfs_h *g,\n"
31212 " const char *vgname);\n"
31217 #: ../src/guestfs-actions.pod:7586
31218 msgid "guestfs_wait_ready"
31222 #: ../src/guestfs-actions.pod:7588
31226 " guestfs_wait_ready (guestfs_h *g);\n"
31231 #: ../src/guestfs-actions.pod:7591
31232 msgid "This function is a no op."
31236 #: ../src/guestfs-actions.pod:7593
31238 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31239 "calling C<guestfs_launch> to wait for the launch to complete. However this "
31240 "is no longer necessary because C<guestfs_launch> now does the waiting."
31244 #: ../src/guestfs-actions.pod:7598
31246 "If you see any calls to this function in code then you can just remove them, "
31247 "unless you want to retain compatibility with older versions of the API."
31251 #: ../src/guestfs-actions.pod:7604
31253 "This function is deprecated. In new code, use the L</guestfs_launch> call "
31258 #: ../src/guestfs-actions.pod:7613
31259 msgid "guestfs_wc_c"
31263 #: ../src/guestfs-actions.pod:7615
31267 " guestfs_wc_c (guestfs_h *g,\n"
31268 " const char *path);\n"
31273 #: ../src/guestfs-actions.pod:7626
31274 msgid "guestfs_wc_l"
31278 #: ../src/guestfs-actions.pod:7628
31282 " guestfs_wc_l (guestfs_h *g,\n"
31283 " const char *path);\n"
31288 #: ../src/guestfs-actions.pod:7639
31289 msgid "guestfs_wc_w"
31293 #: ../src/guestfs-actions.pod:7641
31297 " guestfs_wc_w (guestfs_h *g,\n"
31298 " const char *path);\n"
31303 #: ../src/guestfs-actions.pod:7652
31304 msgid "guestfs_write"
31308 #: ../src/guestfs-actions.pod:7654
31312 " guestfs_write (guestfs_h *g,\n"
31313 " const char *path,\n"
31314 " const char *content,\n"
31315 " size_t content_size);\n"
31320 #: ../src/guestfs-actions.pod:7663
31321 msgid "See also C<guestfs_write_append>."
31325 #: ../src/guestfs-actions.pod:7672
31326 msgid "guestfs_write_append"
31330 #: ../src/guestfs-actions.pod:7674
31334 " guestfs_write_append (guestfs_h *g,\n"
31335 " const char *path,\n"
31336 " const char *content,\n"
31337 " size_t content_size);\n"
31342 #: ../src/guestfs-actions.pod:7683
31343 msgid "See also C<guestfs_write>."
31347 #: ../src/guestfs-actions.pod:7692
31348 msgid "guestfs_write_file"
31349 msgstr "guestfs_write_file"
31352 #: ../src/guestfs-actions.pod:7694
31356 " guestfs_write_file (guestfs_h *g,\n"
31357 " const char *path,\n"
31358 " const char *content,\n"
31363 " guestfs_write_file (guestfs_h *g,\n"
31364 " const char *path,\n"
31365 " const char *content,\n"
31370 #: ../src/guestfs-actions.pod:7716
31372 "This function is deprecated. In new code, use the L</guestfs_write> call "
31377 #: ../src/guestfs-actions.pod:7725
31378 msgid "guestfs_zegrep"
31379 msgstr "guestfs_zegrep"
31382 #: ../src/guestfs-actions.pod:7727
31386 " guestfs_zegrep (guestfs_h *g,\n"
31387 " const char *regex,\n"
31388 " const char *path);\n"
31392 " guestfs_zegrep (guestfs_h *g,\n"
31393 " const char *regex,\n"
31394 " const char *path);\n"
31398 #: ../src/guestfs-actions.pod:7744
31399 msgid "guestfs_zegrepi"
31400 msgstr "guestfs_zegrepi"
31403 #: ../src/guestfs-actions.pod:7746
31407 " guestfs_zegrepi (guestfs_h *g,\n"
31408 " const char *regex,\n"
31409 " const char *path);\n"
31413 " guestfs_zegrepi (guestfs_h *g,\n"
31414 " const char *regex,\n"
31415 " const char *path);\n"
31419 #: ../src/guestfs-actions.pod:7763
31420 msgid "guestfs_zero"
31421 msgstr "guestfs_zero"
31424 #: ../src/guestfs-actions.pod:7765
31428 " guestfs_zero (guestfs_h *g,\n"
31429 " const char *device);\n"
31433 " guestfs_zero (guestfs_h *g,\n"
31434 " const char *device);\n"
31438 #: ../src/guestfs-actions.pod:7775
31440 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31441 "C<guestfs_is_zero_device>"
31445 #: ../src/guestfs-actions.pod:7787
31446 msgid "guestfs_zero_device"
31447 msgstr "guestfs_zero_device"
31450 #: ../src/guestfs-actions.pod:7789
31454 " guestfs_zero_device (guestfs_h *g,\n"
31455 " const char *device);\n"
31459 " guestfs_zero_device (guestfs_h *g,\n"
31460 " const char *device);\n"
31464 #: ../src/guestfs-actions.pod:7793
31466 "This command writes zeroes over the entire C<device>. Compare with "
31467 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31471 #: ../src/guestfs-actions.pod:7807
31472 msgid "(Added in 1.3.1)"
31473 msgstr "(Додано у 1.3.1)"
31476 #: ../src/guestfs-actions.pod:7809
31477 msgid "guestfs_zerofree"
31478 msgstr "guestfs_zerofree"
31481 #: ../src/guestfs-actions.pod:7811
31485 " guestfs_zerofree (guestfs_h *g,\n"
31486 " const char *device);\n"
31490 " guestfs_zerofree (guestfs_h *g,\n"
31491 " const char *device);\n"
31495 #: ../src/guestfs-actions.pod:7830
31496 msgid "guestfs_zfgrep"
31497 msgstr "guestfs_zfgrep"
31500 #: ../src/guestfs-actions.pod:7832
31504 " guestfs_zfgrep (guestfs_h *g,\n"
31505 " const char *pattern,\n"
31506 " const char *path);\n"
31510 " guestfs_zfgrep (guestfs_h *g,\n"
31511 " const char *pattern,\n"
31512 " const char *path);\n"
31516 #: ../src/guestfs-actions.pod:7849
31517 msgid "guestfs_zfgrepi"
31518 msgstr "guestfs_zfgrepi"
31521 #: ../src/guestfs-actions.pod:7851
31525 " guestfs_zfgrepi (guestfs_h *g,\n"
31526 " const char *pattern,\n"
31527 " const char *path);\n"
31531 " guestfs_zfgrepi (guestfs_h *g,\n"
31532 " const char *pattern,\n"
31533 " const char *path);\n"
31537 #: ../src/guestfs-actions.pod:7868
31538 msgid "guestfs_zfile"
31539 msgstr "guestfs_zfile"
31542 #: ../src/guestfs-actions.pod:7870
31546 " guestfs_zfile (guestfs_h *g,\n"
31547 " const char *meth,\n"
31548 " const char *path);\n"
31552 " guestfs_zfile (guestfs_h *g,\n"
31553 " const char *meth,\n"
31554 " const char *path);\n"
31558 #: ../src/guestfs-actions.pod:7880
31560 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31565 #: ../src/guestfs-actions.pod:7886
31567 "This function is deprecated. In new code, use the L</guestfs_file> call "
31572 #: ../src/guestfs-actions.pod:7895
31573 msgid "guestfs_zgrep"
31574 msgstr "guestfs_zgrep"
31577 #: ../src/guestfs-actions.pod:7897
31581 " guestfs_zgrep (guestfs_h *g,\n"
31582 " const char *regex,\n"
31583 " const char *path);\n"
31587 " guestfs_zgrep (guestfs_h *g,\n"
31588 " const char *regex,\n"
31589 " const char *path);\n"
31593 #: ../src/guestfs-actions.pod:7914
31594 msgid "guestfs_zgrepi"
31595 msgstr "guestfs_zgrepi"
31598 #: ../src/guestfs-actions.pod:7916
31602 " guestfs_zgrepi (guestfs_h *g,\n"
31603 " const char *regex,\n"
31604 " const char *path);\n"
31608 " guestfs_zgrepi (guestfs_h *g,\n"
31609 " const char *regex,\n"
31610 " const char *path);\n"
31614 #: ../src/guestfs-availability.pod:3
31619 #: ../src/guestfs-availability.pod:5
31621 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31622 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31623 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31624 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31625 "L</guestfs_aug_save> L</guestfs_aug_set>"
31629 #: ../src/guestfs-availability.pod:21
31634 #: ../src/guestfs-availability.pod:23
31635 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31639 #: ../src/guestfs-availability.pod:26
31641 msgstr "B<inotify>"
31644 #: ../src/guestfs-availability.pod:28
31646 "The following functions: L</guestfs_inotify_add_watch> L</"
31647 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31648 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31652 #: ../src/guestfs-availability.pod:36
31653 msgid "B<linuxfsuuid>"
31654 msgstr "B<linuxfsuuid>"
31657 #: ../src/guestfs-availability.pod:38
31659 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31660 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31664 #: ../src/guestfs-availability.pod:45
31665 msgid "B<linuxmodules>"
31666 msgstr "B<linuxmodules>"
31669 #: ../src/guestfs-availability.pod:47
31670 msgid "The following functions: L</guestfs_modprobe>"
31674 #: ../src/guestfs-availability.pod:50
31675 msgid "B<linuxxattrs>"
31676 msgstr "B<linuxxattrs>"
31679 #: ../src/guestfs-availability.pod:52
31681 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31682 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31683 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31684 "guestfs_setxattr>"
31688 #: ../src/guestfs-availability.pod:63
31693 #: ../src/guestfs-availability.pod:65
31695 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31696 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31697 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31701 #: ../src/guestfs-availability.pod:74
31706 #: ../src/guestfs-availability.pod:76
31708 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31709 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31710 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31711 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31712 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31713 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31714 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31718 #: ../src/guestfs-availability.pod:99
31723 #: ../src/guestfs-availability.pod:101
31725 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31726 "guestfs_mknod_b> L</guestfs_mknod_c>"
31730 #: ../src/guestfs-availability.pod:107
31735 #: ../src/guestfs-availability.pod:109
31736 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31740 #: ../src/guestfs-availability.pod:112
31741 msgid "B<ntfsprogs>"
31742 msgstr "B<ntfsprogs>"
31745 #: ../src/guestfs-availability.pod:114
31747 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31748 "L</guestfs_ntfsresize_size>"
31752 #: ../src/guestfs-availability.pod:119
31753 msgid "B<realpath>"
31754 msgstr "B<realpath>"
31757 #: ../src/guestfs-availability.pod:121
31758 msgid "The following functions: L</guestfs_realpath>"
31762 #: ../src/guestfs-availability.pod:124
31767 #: ../src/guestfs-availability.pod:126
31769 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31770 "guestfs_scrub_freespace>"
31774 #: ../src/guestfs-availability.pod:131
31776 msgstr "B<selinux>"
31779 #: ../src/guestfs-availability.pod:133
31780 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31784 #: ../src/guestfs-availability.pod:137
31789 #: ../src/guestfs-availability.pod:139
31790 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31794 #: ../src/guestfs-availability.pod:143
31795 msgid "B<zerofree>"
31796 msgstr "B<zerofree>"
31799 #: ../src/guestfs-availability.pod:145
31800 msgid "The following functions: L</guestfs_zerofree>"
31804 #: ../src/guestfs-structs.pod:1
31805 msgid "guestfs_int_bool"
31809 #: ../src/guestfs-structs.pod:3
31812 " struct guestfs_int_bool {\n"
31820 #: ../src/guestfs-structs.pod:8
31823 " struct guestfs_int_bool_list {\n"
31824 " uint32_t len; /* Number of elements in list. */\n"
31825 " struct guestfs_int_bool *val; /* Elements. */\n"
31831 #: ../src/guestfs-structs.pod:13
31834 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31835 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31840 #: ../src/guestfs-structs.pod:16
31841 msgid "guestfs_lvm_pv"
31845 #: ../src/guestfs-structs.pod:18
31848 " struct guestfs_lvm_pv {\n"
31849 " char *pv_name;\n"
31850 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31851 " char pv_uuid[32];\n"
31853 " uint64_t pv_size;\n"
31854 " uint64_t dev_size;\n"
31855 " uint64_t pv_free;\n"
31856 " uint64_t pv_used;\n"
31857 " char *pv_attr;\n"
31858 " int64_t pv_pe_count;\n"
31859 " int64_t pv_pe_alloc_count;\n"
31860 " char *pv_tags;\n"
31861 " uint64_t pe_start;\n"
31862 " int64_t pv_mda_count;\n"
31863 " uint64_t pv_mda_free;\n"
31869 #: ../src/guestfs-structs.pod:36
31872 " struct guestfs_lvm_pv_list {\n"
31873 " uint32_t len; /* Number of elements in list. */\n"
31874 " struct guestfs_lvm_pv *val; /* Elements. */\n"
31880 #: ../src/guestfs-structs.pod:41
31883 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31884 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31889 #: ../src/guestfs-structs.pod:44
31890 msgid "guestfs_lvm_vg"
31894 #: ../src/guestfs-structs.pod:46
31897 " struct guestfs_lvm_vg {\n"
31898 " char *vg_name;\n"
31899 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31900 " char vg_uuid[32];\n"
31902 " char *vg_attr;\n"
31903 " uint64_t vg_size;\n"
31904 " uint64_t vg_free;\n"
31905 " char *vg_sysid;\n"
31906 " uint64_t vg_extent_size;\n"
31907 " int64_t vg_extent_count;\n"
31908 " int64_t vg_free_count;\n"
31909 " int64_t max_lv;\n"
31910 " int64_t max_pv;\n"
31911 " int64_t pv_count;\n"
31912 " int64_t lv_count;\n"
31913 " int64_t snap_count;\n"
31914 " int64_t vg_seqno;\n"
31915 " char *vg_tags;\n"
31916 " int64_t vg_mda_count;\n"
31917 " uint64_t vg_mda_free;\n"
31923 #: ../src/guestfs-structs.pod:69
31926 " struct guestfs_lvm_vg_list {\n"
31927 " uint32_t len; /* Number of elements in list. */\n"
31928 " struct guestfs_lvm_vg *val; /* Elements. */\n"
31934 #: ../src/guestfs-structs.pod:74
31937 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31938 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31943 #: ../src/guestfs-structs.pod:77
31944 msgid "guestfs_lvm_lv"
31948 #: ../src/guestfs-structs.pod:79
31951 " struct guestfs_lvm_lv {\n"
31952 " char *lv_name;\n"
31953 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31954 " char lv_uuid[32];\n"
31955 " char *lv_attr;\n"
31956 " int64_t lv_major;\n"
31957 " int64_t lv_minor;\n"
31958 " int64_t lv_kernel_major;\n"
31959 " int64_t lv_kernel_minor;\n"
31960 " uint64_t lv_size;\n"
31961 " int64_t seg_count;\n"
31963 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
31964 " float snap_percent;\n"
31965 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
31966 " float copy_percent;\n"
31967 " char *move_pv;\n"
31968 " char *lv_tags;\n"
31969 " char *mirror_log;\n"
31970 " char *modules;\n"
31976 #: ../src/guestfs-structs.pod:101
31979 " struct guestfs_lvm_lv_list {\n"
31980 " uint32_t len; /* Number of elements in list. */\n"
31981 " struct guestfs_lvm_lv *val; /* Elements. */\n"
31987 #: ../src/guestfs-structs.pod:106
31990 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31991 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31996 #: ../src/guestfs-structs.pod:111
31999 " struct guestfs_stat {\n"
32003 " int64_t nlink;\n"
32008 " int64_t blksize;\n"
32009 " int64_t blocks;\n"
32010 " int64_t atime;\n"
32011 " int64_t mtime;\n"
32012 " int64_t ctime;\n"
32018 #: ../src/guestfs-structs.pod:127
32021 " struct guestfs_stat_list {\n"
32022 " uint32_t len; /* Number of elements in list. */\n"
32023 " struct guestfs_stat *val; /* Elements. */\n"
32029 #: ../src/guestfs-structs.pod:132
32032 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32033 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32038 #: ../src/guestfs-structs.pod:137
32041 " struct guestfs_statvfs {\n"
32042 " int64_t bsize;\n"
32043 " int64_t frsize;\n"
32044 " int64_t blocks;\n"
32045 " int64_t bfree;\n"
32046 " int64_t bavail;\n"
32047 " int64_t files;\n"
32048 " int64_t ffree;\n"
32049 " int64_t favail;\n"
32052 " int64_t namemax;\n"
32058 #: ../src/guestfs-structs.pod:151
32061 " struct guestfs_statvfs_list {\n"
32062 " uint32_t len; /* Number of elements in list. */\n"
32063 " struct guestfs_statvfs *val; /* Elements. */\n"
32069 #: ../src/guestfs-structs.pod:156
32072 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32073 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32078 #: ../src/guestfs-structs.pod:159
32079 msgid "guestfs_dirent"
32083 #: ../src/guestfs-structs.pod:161
32086 " struct guestfs_dirent {\n"
32095 #: ../src/guestfs-structs.pod:167
32098 " struct guestfs_dirent_list {\n"
32099 " uint32_t len; /* Number of elements in list. */\n"
32100 " struct guestfs_dirent *val; /* Elements. */\n"
32106 #: ../src/guestfs-structs.pod:172
32109 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32110 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32115 #: ../src/guestfs-structs.pod:177
32118 " struct guestfs_version {\n"
32119 " int64_t major;\n"
32120 " int64_t minor;\n"
32121 " int64_t release;\n"
32128 #: ../src/guestfs-structs.pod:184
32131 " struct guestfs_version_list {\n"
32132 " uint32_t len; /* Number of elements in list. */\n"
32133 " struct guestfs_version *val; /* Elements. */\n"
32139 #: ../src/guestfs-structs.pod:189
32142 " void guestfs_free_version (struct guestfs_free_version *);\n"
32143 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32148 #: ../src/guestfs-structs.pod:192
32149 msgid "guestfs_xattr"
32153 #: ../src/guestfs-structs.pod:194
32156 " struct guestfs_xattr {\n"
32157 " char *attrname;\n"
32158 " /* The next two fields describe a byte array. */\n"
32159 " uint32_t attrval_len;\n"
32160 " char *attrval;\n"
32166 #: ../src/guestfs-structs.pod:201
32169 " struct guestfs_xattr_list {\n"
32170 " uint32_t len; /* Number of elements in list. */\n"
32171 " struct guestfs_xattr *val; /* Elements. */\n"
32177 #: ../src/guestfs-structs.pod:206
32180 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32181 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32186 #: ../src/guestfs-structs.pod:209
32187 msgid "guestfs_inotify_event"
32191 #: ../src/guestfs-structs.pod:211
32194 " struct guestfs_inotify_event {\n"
32195 " int64_t in_wd;\n"
32196 " uint32_t in_mask;\n"
32197 " uint32_t in_cookie;\n"
32198 " char *in_name;\n"
32204 #: ../src/guestfs-structs.pod:218
32207 " struct guestfs_inotify_event_list {\n"
32208 " uint32_t len; /* Number of elements in list. */\n"
32209 " struct guestfs_inotify_event *val; /* Elements. */\n"
32215 #: ../src/guestfs-structs.pod:223
32218 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32219 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32224 #: ../src/guestfs-structs.pod:226
32225 msgid "guestfs_partition"
32229 #: ../src/guestfs-structs.pod:228
32232 " struct guestfs_partition {\n"
32233 " int32_t part_num;\n"
32234 " uint64_t part_start;\n"
32235 " uint64_t part_end;\n"
32236 " uint64_t part_size;\n"
32242 #: ../src/guestfs-structs.pod:235
32245 " struct guestfs_partition_list {\n"
32246 " uint32_t len; /* Number of elements in list. */\n"
32247 " struct guestfs_partition *val; /* Elements. */\n"
32253 #: ../src/guestfs-structs.pod:240
32256 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32257 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32262 #: ../src/guestfs-structs.pod:243
32263 msgid "guestfs_application"
32267 #: ../src/guestfs-structs.pod:245
32270 " struct guestfs_application {\n"
32271 " char *app_name;\n"
32272 " char *app_display_name;\n"
32273 " int32_t app_epoch;\n"
32274 " char *app_version;\n"
32275 " char *app_release;\n"
32276 " char *app_install_path;\n"
32277 " char *app_trans_path;\n"
32278 " char *app_publisher;\n"
32279 " char *app_url;\n"
32280 " char *app_source_package;\n"
32281 " char *app_summary;\n"
32282 " char *app_description;\n"
32288 #: ../src/guestfs-structs.pod:260
32291 " struct guestfs_application_list {\n"
32292 " uint32_t len; /* Number of elements in list. */\n"
32293 " struct guestfs_application *val; /* Elements. */\n"
32299 #: ../src/guestfs-structs.pod:265
32302 " void guestfs_free_application (struct guestfs_free_application *);\n"
32303 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32308 #: ../src/guestfs.pod:5
32309 msgid "guestfs - Library for accessing and modifying virtual machine images"
32311 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32315 #: ../src/guestfs.pod:11
32318 " guestfs_h *g = guestfs_create ();\n"
32319 " guestfs_add_drive (g, \"guest.img\");\n"
32320 " guestfs_launch (g);\n"
32321 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32322 " guestfs_touch (g, \"/hello\");\n"
32323 " guestfs_umount (g, \"/\");\n"
32324 " guestfs_close (g);\n"
32327 " guestfs_h *g = guestfs_create ();\n"
32328 " guestfs_add_drive (g, \"guest.img\");\n"
32329 " guestfs_launch (g);\n"
32330 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32331 " guestfs_touch (g, \"/hello\");\n"
32332 " guestfs_umount (g, \"/\");\n"
32333 " guestfs_close (g);\n"
32337 #: ../src/guestfs.pod:25
32339 "Libguestfs is a library for accessing and modifying guest disk images. "
32340 "Amongst the things this is good for: making batch configuration changes to "
32341 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32342 "between virtualization systems (see also: virt-p2v), performing partial "
32343 "backups, performing partial guest clones, cloning guests and changing "
32344 "registry/UUID/hostname info, and much else besides."
32348 #: ../src/guestfs.pod:33
32350 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32351 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32352 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32357 #: ../src/guestfs.pod:38
32359 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32360 "what filesystem is in each LV, etc.). It can also run commands in the "
32361 "context of the guest. Also you can access filesystems over FUSE."
32365 #: ../src/guestfs.pod:43
32367 "Libguestfs is a library that can be linked with C and C++ management "
32368 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32369 "PHP, Haskell or C#). You can also use it from shell scripts or the command "
32374 #: ../src/guestfs.pod:48
32376 "You don't need to be root to use libguestfs, although obviously you do need "
32377 "enough permissions to access the disk images."
32381 #: ../src/guestfs.pod:51
32383 "Libguestfs is a large API because it can do many things. For a gentle "
32384 "introduction, please read the L</API OVERVIEW> section next."
32388 #: ../src/guestfs.pod:54
32390 "There are also some example programs in the L<guestfs-examples(3)> manual "
32395 #: ../src/guestfs.pod:57
32396 msgid "API OVERVIEW"
32400 #: ../src/guestfs.pod:59
32402 "This section provides a gentler overview of the libguestfs API. We also try "
32403 "to group API calls together, where that may not be obvious from reading "
32404 "about the individual calls in the main section of this manual."
32408 #: ../src/guestfs.pod:64
32413 #: ../src/guestfs.pod:66
32415 "Before you can use libguestfs calls, you have to create a handle. Then you "
32416 "must add at least one disk image to the handle, followed by launching the "
32417 "handle, then performing whatever operations you want, and finally closing "
32418 "the handle. By convention we use the single letter C<g> for the name of the "
32419 "handle variable, although of course you can use any name you want."
32423 #: ../src/guestfs.pod:73
32424 msgid "The general structure of all libguestfs-using programs looks like this:"
32428 #: ../src/guestfs.pod:76
32431 " guestfs_h *g = guestfs_create ();\n"
32434 " guestfs_h *g = guestfs_create ();\n"
32438 #: ../src/guestfs.pod:78
32441 " /* Call guestfs_add_drive additional times if there are\n"
32442 " * multiple disk images.\n"
32444 " guestfs_add_drive (g, \"guest.img\");\n"
32449 #: ../src/guestfs.pod:83
32452 " /* Most manipulation calls won't work until you've launched\n"
32453 " * the handle 'g'. You have to do this _after_ adding drives\n"
32454 " * and _before_ other commands.\n"
32456 " guestfs_launch (g);\n"
32461 #: ../src/guestfs.pod:89
32464 " /* Now you can examine what partitions, LVs etc are available.\n"
32466 " char **partitions = guestfs_list_partitions (g);\n"
32467 " char **logvols = guestfs_lvs (g);\n"
32470 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32472 " char **partitions = guestfs_list_partitions (g);\n"
32473 " char **logvols = guestfs_lvs (g);\n"
32477 #: ../src/guestfs.pod:94
32480 " /* To access a filesystem in the image, you must mount it.\n"
32482 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32485 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32487 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32491 #: ../src/guestfs.pod:98
32494 " /* Now you can perform filesystem actions on the guest\n"
32497 " guestfs_touch (g, \"/hello\");\n"
32502 #: ../src/guestfs.pod:103
32505 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
32506 " * it is done automatically when you close the handle. See\n"
32507 " * discussion of autosync in this page.\n"
32509 " guestfs_sync (g);\n"
32514 #: ../src/guestfs.pod:109
32517 " /* Close the handle 'g'. */\n"
32518 " guestfs_close (g);\n"
32521 " /* Закрити дескриптор 'g'. */\n"
32522 " guestfs_close (g);\n"
32526 #: ../src/guestfs.pod:112
32528 "The code above doesn't include any error checking. In real code you should "
32529 "check return values carefully for errors. In general all functions that "
32530 "return integers return C<-1> on error, and all functions that return "
32531 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
32532 "how to handle errors, and consult the documentation for each function call "
32533 "below to see precisely how they return error indications. See L<guestfs-"
32534 "examples(3)> for fully worked examples."
32538 #: ../src/guestfs.pod:121
32539 msgid "DISK IMAGES"
32540 msgstr "ОБРАЗИ ДИСКІВ"
32543 #: ../src/guestfs.pod:123
32545 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32546 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32547 "actual block device, or simply an empty file of zeroes that you have created "
32548 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
32553 #: ../src/guestfs.pod:129
32555 "The call you should use in modern code for adding drives is L</"
32556 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
32557 "specifying that the format is raw, do:"
32561 #: ../src/guestfs.pod:133
32564 " guestfs_add_drive_opts (g, filename,\n"
32565 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32569 " guestfs_add_drive_opts (g, filename,\n"
32570 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32575 #: ../src/guestfs.pod:137
32576 msgid "You can add a disk read-only using:"
32577 msgstr "Ви можете додати диск у режимі лише читання:"
32580 #: ../src/guestfs.pod:139
32583 " guestfs_add_drive_opts (g, filename,\n"
32584 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32585 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32589 " guestfs_add_drive_opts (g, filename,\n"
32590 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32591 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32596 #: ../src/guestfs.pod:144
32598 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
32599 "libguestfs won't modify the file."
32603 #: ../src/guestfs.pod:147
32605 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32606 "by a virtual machine. Adding it read-write will almost certainly cause disk "
32607 "corruption, but adding it read-only is safe."
32611 #: ../src/guestfs.pod:151
32613 "You must add at least one disk image, and you may add multiple disk images. "
32614 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32615 "first one you added), C</dev/sdb> (for the second one you added), etc."
32619 #: ../src/guestfs.pod:156
32621 "Once L</guestfs_launch> has been called you cannot add any more images. You "
32622 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32623 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
32627 #: ../src/guestfs.pod:161
32629 msgstr "МОНТУВАННЯ"
32632 #: ../src/guestfs.pod:163
32634 "Before you can read or write files, create directories and so on in a disk "
32635 "image that contains filesystems, you have to mount those filesystems using "
32636 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
32637 "a disk image contains (for example) one partition with a filesystem on that "
32638 "partition, then you can mount it directly:"
32642 #: ../src/guestfs.pod:170
32645 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32648 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32652 #: ../src/guestfs.pod:172
32654 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32655 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
32656 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
32657 "that these are libguestfs virtual devices, and are nothing to do with host "
32662 #: ../src/guestfs.pod:178
32664 "If you are given a disk image and you don't know what it contains then you "
32665 "have to find out. Libguestfs can do that too: use L</"
32666 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32667 "LVs, and either try mounting each to see what is mountable, or else examine "
32668 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
32669 "filesystems, use L</guestfs_list_filesystems>."
32673 #: ../src/guestfs.pod:186
32675 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32676 "L</INSPECTION> below). But you might find it easier to look at higher level "
32677 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32681 #: ../src/guestfs.pod:191
32683 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
32684 "several other variations of the C<guestfs_mount_*> call."
32688 #: ../src/guestfs.pod:194
32689 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32690 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32693 #: ../src/guestfs.pod:196
32695 "The majority of the libguestfs API consists of fairly low-level calls for "
32696 "accessing and modifying the files, directories, symlinks etc on mounted "
32697 "filesystems. There are over a hundred such calls which you can find listed "
32698 "in detail below in this man page, and we don't even pretend to cover them "
32699 "all in this overview."
32703 #: ../src/guestfs.pod:202
32705 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32708 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32709 "точкою монтування."
32712 #: ../src/guestfs.pod:205
32714 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32715 "the file called C<\"etc/passwd\"> then you could do:"
32717 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32718 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32722 #: ../src/guestfs.pod:208
32725 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32728 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32732 #: ../src/guestfs.pod:210
32734 "This would return C<data> as a newly allocated buffer containing the full "
32735 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32736 "or C<NULL> if there was an error."
32740 #: ../src/guestfs.pod:214
32742 "As another example, to create a top-level directory on that filesystem "
32743 "called C<\"var\"> you would do:"
32747 #: ../src/guestfs.pod:217
32750 " guestfs_mkdir (g, \"/var\");\n"
32753 " guestfs_mkdir (g, \"/var\");\n"
32757 #: ../src/guestfs.pod:219
32758 msgid "To create a symlink you could do:"
32759 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32762 #: ../src/guestfs.pod:221
32765 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32766 " \"/etc/rc3.d/S30portmap\");\n"
32769 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32770 " \"/etc/rc3.d/S30portmap\");\n"
32774 #: ../src/guestfs.pod:224
32776 "Libguestfs will reject attempts to use relative paths and there is no "
32777 "concept of a current working directory."
32781 #: ../src/guestfs.pod:227
32783 "Libguestfs can return errors in many situations: for example if the "
32784 "filesystem isn't writable, or if a file or directory that you requested "
32785 "doesn't exist. If you are using the C API (documented here) you have to "
32786 "check for those error conditions after each call. (Other language bindings "
32787 "turn these errors into exceptions)."
32791 #: ../src/guestfs.pod:233
32793 "File writes are affected by the per-handle umask, set by calling L</"
32794 "guestfs_umask> and defaulting to 022. See L</UMASK>."
32798 #: ../src/guestfs.pod:236
32799 msgid "PARTITIONING"
32800 msgstr "ПОДІЛ НА РОЗДІЛИ"
32803 #: ../src/guestfs.pod:238
32805 "Libguestfs contains API calls to read, create and modify partition tables on "
32810 #: ../src/guestfs.pod:241
32812 "In the common case where you want to create a single partition covering the "
32813 "whole disk, you should use the L</guestfs_part_disk> call:"
32817 #: ../src/guestfs.pod:245
32820 " const char *parttype = \"mbr\";\n"
32821 " if (disk_is_larger_than_2TB)\n"
32822 " parttype = \"gpt\";\n"
32823 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32826 " const char *parttype = \"mbr\";\n"
32827 " if (disk_is_larger_than_2TB)\n"
32828 " parttype = \"gpt\";\n"
32829 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32833 #: ../src/guestfs.pod:250
32835 "Obviously this effectively wipes anything that was on that disk image before."
32839 #: ../src/guestfs.pod:253
32844 #: ../src/guestfs.pod:255
32846 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32847 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
32848 "you familiarize yourself with the concepts of physical volumes, volume "
32849 "groups and logical volumes."
32853 #: ../src/guestfs.pod:260
32855 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32856 "tldp.org/HOWTO/LVM-HOWTO/>."
32860 #: ../src/guestfs.pod:263
32861 msgid "DOWNLOADING"
32862 msgstr "ОТРИМАННЯ ДАНИХ"
32865 #: ../src/guestfs.pod:265
32867 "Use L</guestfs_cat> to download small, text only files. This call is "
32868 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32869 "NUL (C<\\0>) characters. However the API is very simple to use."
32873 #: ../src/guestfs.pod:269
32875 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32876 "bit data, since it returns a (pointer, size) pair. However it is still "
32877 "limited to \"small\" files, less than 2 MB."
32881 #: ../src/guestfs.pod:273
32883 "L</guestfs_download> can be used to download any file, with no limits on "
32884 "content or size (even files larger than 4 GB)."
32888 #: ../src/guestfs.pod:276
32890 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32894 #: ../src/guestfs.pod:279
32896 msgstr "ВИВАНТАЖЕННЯ"
32899 #: ../src/guestfs.pod:281
32901 "It's often the case that you want to write a file or files to the disk image."
32905 #: ../src/guestfs.pod:284
32907 "To write a small file with fixed content, use L</guestfs_write>. To create "
32908 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32909 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
32910 "of other functions for creating test files, for example L</guestfs_fill> and "
32911 "L</guestfs_fill_pattern>."
32915 #: ../src/guestfs.pod:290
32917 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
32918 "file content or size (even files larger than 4 GB)."
32922 #: ../src/guestfs.pod:293
32924 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32928 #: ../src/guestfs.pod:295
32930 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32931 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32932 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
32933 "in a predictable way (eg. adding it last after all other drives) then you "
32934 "can get the device name from L</guestfs_list_devices> and mount it directly "
32935 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
32936 "portable between kernel versions, and they don't support labels or UUIDs. "
32937 "If you want to pre-build an image or you need to mount it using a label or "
32938 "UUID, use an ISO image instead."
32942 #: ../src/guestfs.pod:306
32944 msgstr "КОПІЮВАННЯ"
32947 #: ../src/guestfs.pod:308
32949 "There are various different commands for copying between files and devices "
32950 "and in and out of the guest filesystem. These are summarised in the table "
32955 #: ../src/guestfs.pod:314
32956 msgid "B<file> to B<file>"
32957 msgstr "B<файл> у B<файл>"
32960 #: ../src/guestfs.pod:316
32962 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32963 "directories recursively."
32967 #: ../src/guestfs.pod:319
32968 msgid "B<file or device> to B<file or device>"
32969 msgstr "B<файл або пристрій> у B<файл або пристрій>"
32972 #: ../src/guestfs.pod:321
32974 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32975 "devices in the guest."
32979 #: ../src/guestfs.pod:324
32980 msgid "Example: duplicate the contents of an LV:"
32984 #: ../src/guestfs.pod:326
32987 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32990 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32994 #: ../src/guestfs.pod:328
32996 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32997 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
32998 "guestfs_copy_size>."
33002 #: ../src/guestfs.pod:332
33003 msgid "B<file on the host> to B<file or device>"
33007 #: ../src/guestfs.pod:334
33008 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
33012 #: ../src/guestfs.pod:336
33013 msgid "B<file or device> to B<file on the host>"
33017 #: ../src/guestfs.pod:338
33018 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
33022 #: ../src/guestfs.pod:342
33023 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33027 #: ../src/guestfs.pod:344
33029 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33030 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33031 "appears you can only upload and download to files. However many Un*x-like "
33032 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33033 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33034 "and arbitrary file descriptor N."
33038 #: ../src/guestfs.pod:352
33039 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33043 #: ../src/guestfs.pod:355
33046 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33049 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33053 #: ../src/guestfs.pod:357
33054 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33058 #: ../src/guestfs.pod:359
33061 " char devfd[64];\n"
33062 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33063 " guestfs_tar_out (g, \"/\", devfd);\n"
33066 " char devfd[64];\n"
33067 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33068 " guestfs_tar_out (g, \"/\", devfd);\n"
33072 #: ../src/guestfs.pod:363
33073 msgid "LISTING FILES"
33074 msgstr "СПИСКИ ФАЙЛІВ"
33077 #: ../src/guestfs.pod:365
33079 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33080 "L<guestfish(1)>-equivalent command C<ll>)."
33084 #: ../src/guestfs.pod:368
33086 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33087 "programs, as a flat list of strings."
33091 #: ../src/guestfs.pod:371
33093 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33094 "directory, plus additional information about each one. It is more "
33095 "equivalent to using the L<readdir(3)> call on a local filesystem."
33099 #: ../src/guestfs.pod:375
33101 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33105 #: ../src/guestfs.pod:378
33106 msgid "RUNNING COMMANDS"
33107 msgstr "ВИКОНАННЯ КОМАНД"
33110 #: ../src/guestfs.pod:380
33112 "Although libguestfs is primarily an API for manipulating files inside guest "
33113 "images, we also provide some limited facilities for running commands inside "
33118 #: ../src/guestfs.pod:384
33119 msgid "There are many limitations to this:"
33123 #: ../src/guestfs.pod:390
33125 "The kernel version that the command runs under will be different from what "
33130 #: ../src/guestfs.pod:395
33132 "If the command needs to communicate with daemons, then most likely they "
33133 "won't be running."
33137 #: ../src/guestfs.pod:400
33138 msgid "The command will be running in limited memory."
33142 #: ../src/guestfs.pod:404
33144 "The network may not be available unless you enable it (see L</"
33145 "guestfs_set_network>)."
33149 #: ../src/guestfs.pod:409
33150 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33154 #: ../src/guestfs.pod:413
33156 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33160 #: ../src/guestfs.pod:418
33162 "For SELinux guests, you may need to enable SELinux and load policy first. "
33163 "See L</SELINUX> in this manpage."
33167 #: ../src/guestfs.pod:423
33169 "I<Security:> It is not safe to run commands from untrusted, possibly "
33170 "malicious guests. These commands may attempt to exploit your program by "
33171 "sending unexpected output. They could also try to exploit the Linux kernel "
33172 "or qemu provided by the libguestfs appliance. They could use the network "
33173 "provided by the libguestfs appliance to bypass ordinary network partitions "
33174 "and firewalls. They could use the elevated privileges or different SELinux "
33175 "context of your program to their advantage."
33179 #: ../src/guestfs.pod:432
33181 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33182 "(a script which runs when the guest next boots normally), and to have this "
33183 "script run the commands you want in the normal context of the running guest, "
33184 "network security and so on. For information about other security issues, "
33185 "see L</SECURITY>."
33189 #: ../src/guestfs.pod:440
33191 "The two main API calls to run commands are L</guestfs_command> and L</"
33192 "guestfs_sh> (there are also variations)."
33196 #: ../src/guestfs.pod:443
33198 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33199 "shell globs, redirections, etc will work."
33203 #: ../src/guestfs.pod:446
33204 msgid "CONFIGURATION FILES"
33205 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33208 #: ../src/guestfs.pod:448
33210 "To read and write configuration files in Linux guest filesystems, we "
33211 "strongly recommend using Augeas. For example, Augeas understands how to "
33212 "read and write, say, a Linux shadow password file or X.org configuration "
33213 "file, and so avoids you having to write that code."
33217 #: ../src/guestfs.pod:453
33219 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
33220 "document Augeas itself here because there is excellent documentation on the "
33221 "L<http://augeas.net/> website."
33225 #: ../src/guestfs.pod:457
33227 "If you don't want to use Augeas (you fool!) then try calling L</"
33228 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33233 #: ../src/guestfs.pod:461
33238 #: ../src/guestfs.pod:463
33240 "We support SELinux guests. To ensure that labeling happens correctly in "
33241 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33245 #: ../src/guestfs.pod:471
33246 msgid "Before launching, do:"
33250 #: ../src/guestfs.pod:473
33253 " guestfs_set_selinux (g, 1);\n"
33256 " guestfs_set_selinux (g, 1);\n"
33260 #: ../src/guestfs.pod:477
33262 "After mounting the guest's filesystem(s), load the policy. This is best "
33263 "done by running the L<load_policy(8)> command in the guest itself:"
33267 #: ../src/guestfs.pod:481
33270 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33273 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33277 #: ../src/guestfs.pod:483
33279 "(Older versions of C<load_policy> require you to specify the name of the "
33284 #: ../src/guestfs.pod:488
33286 "Optionally, set the security context for the API. The correct security "
33287 "context to use can only be known by inspecting the guest. As an example:"
33291 #: ../src/guestfs.pod:492
33294 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33297 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33301 #: ../src/guestfs.pod:496
33302 msgid "This will work for running commands and editing existing files."
33306 #: ../src/guestfs.pod:498
33308 "When new files are created, you may need to label them explicitly, for "
33309 "example by running the external command C<restorecon pathname>."
33313 #: ../src/guestfs.pod:502
33318 #: ../src/guestfs.pod:504
33320 "Certain calls are affected by the current file mode creation mask (the "
33321 "\"umask\"). In particular ones which create files or directories, such as "
33322 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
33323 "either the default mode that the file is created with or modifies the mode "
33328 #: ../src/guestfs.pod:510
33330 "The default umask is C<022>, so files are created with modes such as C<0644> "
33331 "and directories with C<0755>."
33335 #: ../src/guestfs.pod:513
33337 "There are two ways to avoid being affected by umask. Either set umask to 0 "
33338 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
33339 "guestfs_chmod> after creating each file or directory."
33343 #: ../src/guestfs.pod:517
33344 msgid "For more information about umask, see L<umask(2)>."
33348 #: ../src/guestfs.pod:521
33350 "Libguestfs allows you to access Linux guests which have been encrypted using "
33351 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33352 "standard. This includes nearly all whole disk encryption systems used by "
33353 "modern Linux guests."
33357 #: ../src/guestfs.pod:527
33359 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33360 "returns the string C<crypto_LUKS>)."
33364 #: ../src/guestfs.pod:530
33366 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
33367 "will require the passphrase!"
33371 #: ../src/guestfs.pod:533
33373 "Opening a LUKS device creates a new device mapper device called C</dev/"
33374 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33375 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
33376 "from and encrypted to the underlying block device respectively."
33380 #: ../src/guestfs.pod:539
33382 "LVM volume groups on the device can be made visible by calling L</"
33383 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
33384 "(s) can now be mounted in the usual way."
33388 #: ../src/guestfs.pod:543
33390 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
33391 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33392 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
33393 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33394 "underlying encrypted block device)."
33398 #: ../src/guestfs.pod:550
33403 #: ../src/guestfs.pod:552
33405 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33406 "contains operating systems, an install CD or a live CD. (These APIs used to "
33407 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33408 "version 1.5.3 the most frequently used part of this library has been "
33409 "rewritten in C and moved into the core code)."
33413 #: ../src/guestfs.pod:559
33415 "Add all disks belonging to the unknown virtual machine and call L</"
33416 "guestfs_launch> in the usual way."
33420 #: ../src/guestfs.pod:562
33422 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
33423 "and certain heuristics, and returns a list of operating systems that were "
33424 "found. An empty list means none were found. A single element is the root "
33425 "filesystem of the operating system. For dual- or multi-boot guests, "
33426 "multiple roots can be returned, each one corresponding to a separate "
33427 "operating system. (Multi-boot virtual machines are extremely rare in the "
33428 "world of virtualization, but since this scenario can happen, we have built "
33429 "libguestfs to deal with it.)"
33433 #: ../src/guestfs.pod:571
33435 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33436 "to get additional details about that operating system. For example, call L</"
33437 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33438 "Windows and Linux-based operating systems respectively."
33442 #: ../src/guestfs.pod:577
33444 "Un*x-like and Linux-based operating systems usually consist of several "
33445 "filesystems which are mounted at boot time (for example, a separate boot "
33446 "partition mounted on C</boot>). The inspection rules are able to detect how "
33447 "filesystems correspond to mount points. Call "
33448 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
33449 "hash table like this example:"
33453 #: ../src/guestfs.pod:584
33456 " /boot => /dev/sda1\n"
33457 " / => /dev/vg_guest/lv_root\n"
33458 " /usr => /dev/vg_guest/lv_usr\n"
33461 " /boot => /dev/sda1\n"
33462 " / => /dev/vg_guest/lv_root\n"
33463 " /usr => /dev/vg_guest/lv_usr\n"
33467 #: ../src/guestfs.pod:588
33469 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33470 "filesystems as suggested."
33474 #: ../src/guestfs.pod:591
33476 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33477 "usr>). Sorting the keys of the hash by length, shortest first, should work."
33481 #: ../src/guestfs.pod:595
33483 "Inspection currently only works for some common operating systems. "
33484 "Contributors are welcome to send patches for other operating systems that we "
33485 "currently cannot detect."
33489 #: ../src/guestfs.pod:599
33491 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
33492 "for more details. The L</guestfs_inspect_os> function just ignores any "
33493 "encrypted devices."
33497 #: ../src/guestfs.pod:603
33499 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33500 "inspection and caches the results in the guest handle. Subsequent calls to "
33501 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33502 "read the disks. If you change the content of the guest disks, you can redo "
33503 "inspection by calling L</guestfs_inspect_os> again. (L</"
33504 "guestfs_inspect_list_applications> works a little differently from the other "
33505 "calls and does read the disks. See documentation for that function for "
33510 #: ../src/guestfs.pod:612
33511 msgid "INSPECTING INSTALL DISKS"
33515 #: ../src/guestfs.pod:614
33517 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33522 #: ../src/guestfs.pod:617
33524 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33525 "system, which currently can be C<installed> (a regular operating system) or "
33526 "C<installer> (some sort of install disk)."
33530 #: ../src/guestfs.pod:621
33532 "Further information is available about the operating system that can be "
33533 "installed using the regular inspection APIs like L</"
33534 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33538 #: ../src/guestfs.pod:626
33540 "Some additional information specific to installer disks is also available "
33541 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33542 "guestfs_inspect_is_multipart> calls."
33546 #: ../src/guestfs.pod:631
33547 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33551 #: ../src/guestfs.pod:633
33553 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
33554 "ntfs-3g.org/> driver."
33558 #: ../src/guestfs.pod:636
33559 msgid "DRIVE LETTERS AND PATHS"
33560 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33563 #: ../src/guestfs.pod:638
33565 "DOS and Windows still use drive letters, and the filesystems are always "
33566 "treated as case insensitive by Windows itself, and therefore you might find "
33567 "a Windows configuration file referring to a path like C<c:\\windows"
33568 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
33569 "might be referred to as C</WINDOWS/System32>."
33573 #: ../src/guestfs.pod:644
33575 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33576 "L</guestfs_inspect_get_drive_mappings>)"
33580 #: ../src/guestfs.pod:647
33582 "Dealing with separator characters (backslash vs forward slash) is outside "
33583 "the scope of libguestfs, but usually a simple character replacement will "
33588 #: ../src/guestfs.pod:651
33590 "To resolve the case insensitivity of paths, call L</"
33591 "guestfs_case_sensitive_path>."
33595 #: ../src/guestfs.pod:654
33596 msgid "ACCESSING THE WINDOWS REGISTRY"
33597 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33600 #: ../src/guestfs.pod:656
33602 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33603 "files, through the library C<hivex> which is part of the libguestfs project "
33604 "although ships as a separate tarball. You have to locate and download the "
33605 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
33606 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33607 "reg(1)> for more help on this issue."
33611 #: ../src/guestfs.pod:664
33612 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33613 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33616 #: ../src/guestfs.pod:666
33618 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33619 "provide something which looks like a Linux symlink. The way it tries to do "
33620 "the rewriting is described here:"
33624 #: ../src/guestfs.pod:670
33626 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33629 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33633 #: ../src/guestfs.pod:672
33635 "The essential problem is that ntfs-3g simply does not have enough "
33636 "information to do a correct job. NTFS links can contain drive letters and "
33637 "references to external device GUIDs that ntfs-3g has no way of resolving. "
33638 "It is almost certainly the case that libguestfs callers should ignore what "
33639 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33643 #: ../src/guestfs.pod:679
33645 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33646 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33647 "attribute, and read the raw reparse data from that (you can find the format "
33648 "documented in various places around the web)."
33652 #: ../src/guestfs.pod:684
33653 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33657 #: ../src/guestfs.pod:686
33659 "There are other useful extended attributes that can be read from ntfs-3g "
33660 "filesystems (using L</guestfs_getxattr>). See:"
33664 #: ../src/guestfs.pod:689
33666 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33668 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33671 #: ../src/guestfs.pod:691
33672 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33673 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33676 #: ../src/guestfs.pod:693
33678 "Although we don't want to discourage you from using the C API, we will "
33679 "mention here that the same API is also available in other languages."
33683 #: ../src/guestfs.pod:696
33685 "The API is broadly identical in all supported languages. This means that "
33686 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33687 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33688 "OCaml. In other words, a straightforward, predictable isomorphism between "
33693 #: ../src/guestfs.pod:702
33695 "Error messages are automatically transformed into exceptions if the language "
33700 #: ../src/guestfs.pod:705
33702 "We don't try to \"object orientify\" parts of the API in OO languages, "
33703 "although contributors are welcome to write higher level APIs above what we "
33704 "provide in their favourite languages if they wish."
33708 #: ../src/guestfs.pod:711
33713 #: ../src/guestfs.pod:713
33715 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
33716 "identical to the C API. C++ classes and exceptions are not used."
33720 #: ../src/guestfs.pod:717
33725 #: ../src/guestfs.pod:719
33727 "The C# bindings are highly experimental. Please read the warnings at the "
33728 "top of C<csharp/Libguestfs.cs>."
33732 #: ../src/guestfs.pod:722
33734 msgstr "B<Haskell>"
33737 #: ../src/guestfs.pod:724
33739 "This is the only language binding that is working but incomplete. Only "
33740 "calls which return simple integers have been bound in Haskell, and we are "
33741 "looking for help to complete this binding."
33745 #: ../src/guestfs.pod:728
33750 #: ../src/guestfs.pod:730
33752 "Full documentation is contained in the Javadoc which is distributed with "
33753 "libguestfs. For examples, see L<guestfs-java(3)>."
33757 #: ../src/guestfs.pod:733
33762 #: ../src/guestfs.pod:735
33763 msgid "See L<guestfs-ocaml(3)>."
33764 msgstr "Див. L<guestfs-ocaml(3)>."
33767 #: ../src/guestfs.pod:737
33772 #: ../src/guestfs.pod:739
33773 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33774 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33777 #: ../src/guestfs.pod:741
33782 #: ../src/guestfs.pod:743
33784 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33785 "the php-libguestfs package for your distribution."
33789 #: ../src/guestfs.pod:746
33790 msgid "The PHP binding only works correctly on 64 bit machines."
33794 #: ../src/guestfs.pod:748
33799 #: ../src/guestfs.pod:750
33800 msgid "See L<guestfs-python(3)>."
33801 msgstr "Див. L<guestfs-python(3)>."
33804 #: ../src/guestfs.pod:752
33809 #: ../src/guestfs.pod:754
33810 msgid "See L<guestfs-ruby(3)>."
33811 msgstr "Див. L<guestfs-ruby(3)>."
33814 #: ../src/guestfs.pod:756
33815 msgid "B<shell scripts>"
33816 msgstr "B<скрипти оболонки>"
33819 #: ../src/guestfs.pod:758
33820 msgid "See L<guestfish(1)>."
33821 msgstr "Див. L<guestfish(1)>."
33824 #: ../src/guestfs.pod:762
33825 msgid "LIBGUESTFS GOTCHAS"
33829 #: ../src/guestfs.pod:764
33831 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33832 "system [...] that works in the way it is documented but is counterintuitive "
33833 "and almost invites mistakes.\""
33837 #: ../src/guestfs.pod:768
33839 "Since we developed libguestfs and the associated tools, there are several "
33840 "things we would have designed differently, but are now stuck with for "
33841 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
33842 "release, you can expect these to change. Beware of them."
33846 #: ../src/guestfs.pod:776
33847 msgid "Autosync / forgetting to sync."
33851 #: ../src/guestfs.pod:778
33853 "I<Update:> Autosync is enabled by default for all API users starting from "
33854 "libguestfs 1.5.24. This section only applies to older versions."
33858 #: ../src/guestfs.pod:781
33860 "When modifying a filesystem from C or another language, you B<must> unmount "
33861 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33862 "libguestfs handle. You can also call:"
33866 #: ../src/guestfs.pod:785
33869 " guestfs_set_autosync (g, 1);\n"
33872 " guestfs_set_autosync (g, 1);\n"
33876 #: ../src/guestfs.pod:787
33878 "to have the unmount/sync done automatically for you when the handle 'g' is "
33879 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33883 #: ../src/guestfs.pod:791
33885 "If you forget to do this, then it is entirely possible that your changes "
33886 "won't be written out, or will be partially written, or (very rarely) that "
33887 "you'll get disk corruption."
33891 #: ../src/guestfs.pod:795
33893 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
33894 "guestfish scripts that forget to sync will work just fine, which can make "
33895 "this very puzzling if you are trying to debug a problem."
33899 #: ../src/guestfs.pod:799
33900 msgid "Mount option C<-o sync> should not be the default."
33904 #: ../src/guestfs.pod:801
33906 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
33907 "However C<-o sync> does not add any reliability benefit, but does have a "
33908 "very large performance impact."
33912 #: ../src/guestfs.pod:805
33914 "The work around is to use L</guestfs_mount_options> and set the mount "
33915 "options that you actually want to use."
33919 #: ../src/guestfs.pod:808
33920 msgid "Read-only should be the default."
33924 #: ../src/guestfs.pod:810
33926 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33927 "specify I<--rw> if you want to make changes to the image."
33931 #: ../src/guestfs.pod:813
33932 msgid "This would reduce the potential to corrupt live VM images."
33936 #: ../src/guestfs.pod:815
33938 "Note that many filesystems change the disk when you just mount and unmount, "
33939 "even if you didn't perform any writes. You need to use L</"
33940 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33944 #: ../src/guestfs.pod:819
33945 msgid "guestfish command line is hard to use."
33949 #: ../src/guestfs.pod:821
33951 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33952 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
33953 "exist, so it fails. In earlier versions of guestfish the error message was "
33954 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
33955 "we should have used C<guestfish -c command> to run commands."
33959 #: ../src/guestfs.pod:828
33960 msgid "guestfish megabyte modifiers don't work right on all commands"
33964 #: ../src/guestfs.pod:830
33966 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33967 "other modifiers). What guestfish actually does is to multiply the number "
33968 "part by the modifier part and pass the result to the C API. However this "
33969 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33970 "expecting some other unit (eg. megabytes)."
33974 #: ../src/guestfs.pod:837
33975 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
33979 #: ../src/guestfs.pod:839
33982 " lvcreate LV VG 100M\n"
33985 " lvcreate LV VG 100M\n"
33989 #: ../src/guestfs.pod:841
33991 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
33992 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33993 "megabytes * megabytes) logical volume. The error message you get from this "
33994 "is also a little obscure."
33998 #: ../src/guestfs.pod:846
34000 "This could be fixed in the generator by specially marking parameters and "
34001 "return values which take bytes or other units."
34005 #: ../src/guestfs.pod:849
34006 msgid "Ambiguity between devices and paths"
34010 #: ../src/guestfs.pod:851
34012 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34013 "sdb2>) and a similar pathname. A file might just happen to be called "
34014 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34018 #: ../src/guestfs.pod:856
34020 "In the current API we usually resolve this ambiguity by having two separate "
34021 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
34022 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34023 "detecting if the path supplied begins with C</dev/>."
34027 #: ../src/guestfs.pod:862
34029 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34030 "make paths/devices into structured names. One way to do this would be to "
34031 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34032 "aspect of grub. Another way would be to use a structured type, equivalent "
34033 "to this OCaml type:"
34037 #: ../src/guestfs.pod:868
34040 " type path = Path of string | Device of int | Partition of int * int\n"
34045 #: ../src/guestfs.pod:870
34046 msgid "which would allow you to pass arguments like:"
34050 #: ../src/guestfs.pod:872
34053 " Path \"/foo/bar\"\n"
34054 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
34055 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34056 " Path \"/dev/sdb2\" (* not a device *)\n"
34061 #: ../src/guestfs.pod:877
34063 "As you can see there are still problems to resolve even with this "
34064 "representation. Also consider how it might work in guestfish."
34068 #: ../src/guestfs.pod:882
34069 msgid "KEYS AND PASSPHRASES"
34070 msgstr "КЛЮЧІ І ПАРОЛІ"
34073 #: ../src/guestfs.pod:884
34075 "Certain libguestfs calls take a parameter that contains sensitive key "
34076 "material, passed in as a C string."
34080 #: ../src/guestfs.pod:887
34082 "In the future we would hope to change the libguestfs implementation so that "
34083 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34084 "swap. However this is I<not> done at the moment, because of the complexity "
34085 "of such an implementation."
34089 #: ../src/guestfs.pod:892
34091 "Therefore you should be aware that any key parameter you pass to libguestfs "
34092 "might end up being written out to the swap partition. If this is a concern, "
34093 "scrub the swap partition or don't use libguestfs on encrypted devices."
34097 #: ../src/guestfs.pod:897
34098 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34102 #: ../src/guestfs.pod:899
34104 "All high-level libguestfs actions are synchronous. If you want to use "
34105 "libguestfs asynchronously then you must create a thread."
34109 #: ../src/guestfs.pod:902
34111 "Only use the handle from a single thread. Either use the handle exclusively "
34112 "from one thread, or provide your own mutex so that two threads cannot issue "
34113 "calls on the same handle at the same time."
34117 #: ../src/guestfs.pod:906
34119 "See the graphical program guestfs-browser for one possible architecture for "
34120 "multithreaded programs using libvirt and libguestfs."
34124 #: ../src/guestfs.pod:909
34129 #: ../src/guestfs.pod:911
34131 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34136 #: ../src/guestfs.pod:914
34138 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34139 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34143 #: ../src/guestfs.pod:917
34145 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34146 "to change the directories that libguestfs will search in. The value is a "
34147 "colon-separated list of paths. The current directory is I<not> searched "
34148 "unless the path contains an empty element or C<.>. For example "
34149 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34150 "then C</usr/lib/guestfs>."
34154 #: ../src/guestfs.pod:924
34155 msgid "QEMU WRAPPERS"
34159 #: ../src/guestfs.pod:926
34161 "If you want to compile your own qemu, run qemu from a non-standard location, "
34162 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34167 #: ../src/guestfs.pod:930
34169 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34170 "last command in the shell script (so that qemu replaces the shell and "
34171 "becomes the direct child of the libguestfs-using program). If you don't do "
34172 "this, then the qemu process won't be cleaned up correctly."
34176 #: ../src/guestfs.pod:935
34178 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34183 #: ../src/guestfs.pod:938
34187 " qemudir=/home/rjones/d/qemu\n"
34188 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34192 " qemudir=/home/rjones/d/qemu\n"
34193 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34197 #: ../src/guestfs.pod:942
34199 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34200 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
34205 #: ../src/guestfs.pod:946
34208 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34211 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34215 #: ../src/guestfs.pod:948
34217 "Note that libguestfs also calls qemu with the -help and -version options in "
34218 "order to determine features."
34222 #: ../src/guestfs.pod:951
34223 msgid "ATTACHING TO RUNNING DAEMONS"
34224 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34227 #: ../src/guestfs.pod:953
34229 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34230 "babies. Use with caution."
34234 #: ../src/guestfs.pod:956
34236 "I<Note (2):> This section explains how to attach to a running daemon from a "
34237 "low level perspective. For most users, simply using virt tools such as "
34238 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34242 #: ../src/guestfs.pod:960
34243 msgid "Using guestfs_set_attach_method"
34244 msgstr "За допомогою guestfs_set_attach_method"
34247 #: ../src/guestfs.pod:962
34249 "By calling L</guestfs_set_attach_method> you can change how the library "
34250 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34251 "ARCHITECTURE> for some background)."
34255 #: ../src/guestfs.pod:966
34257 "The normal attach method is C<appliance>, where a small appliance is created "
34258 "containing the daemon, and then the library connects to this."
34262 #: ../src/guestfs.pod:969
34264 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34265 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34266 "daemon over the Unix domain socket."
34270 #: ../src/guestfs.pod:973
34272 "The normal use for this is to connect to a running virtual machine that "
34273 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34274 "files inside the live virtual machine."
34278 #: ../src/guestfs.pod:977
34279 msgid "Using guestfs_add_domain with live flag"
34280 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34283 #: ../src/guestfs.pod:979
34285 "L</guestfs_add_domain> provides some help for getting the correct attach "
34286 "method. If you pass the C<live> option to this function, then (if the "
34287 "virtual machine is running) it will examine the libvirt XML looking for a "
34288 "virtio-serial channel to connect to:"
34292 #: ../src/guestfs.pod:985
34299 " <channel type='unix'>\n"
34300 " <source mode='bind' path='/path/to/socket'/>\n"
34301 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34312 " <channel type='unix'>\n"
34313 " <source mode='bind' path='/path/to/socket'/>\n"
34314 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34322 #: ../src/guestfs.pod:997
34324 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34325 "method to C<unix:/path/to/socket>."
34329 #: ../src/guestfs.pod:1000
34331 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34332 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34333 "to attach to and modify live virtual machines."
34337 #: ../src/guestfs.pod:1004
34339 "The virtual machine needs to have been set up beforehand so that it has the "
34340 "virtio-serial channel and so that guestfsd is running inside it."
34344 #: ../src/guestfs.pod:1008
34345 msgid "ABI GUARANTEE"
34346 msgstr "ГАРАНТІЯ ЩОДО ABI"
34349 #: ../src/guestfs.pod:1010
34351 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34352 "actions as outlined in this section. Although we will deprecate some "
34353 "actions, for example if they get replaced by newer calls, we will keep the "
34354 "old actions forever. This allows you the developer to program in confidence "
34355 "against the libguestfs API."
34359 #: ../src/guestfs.pod:1016
34360 msgid "BLOCK DEVICE NAMING"
34361 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34364 #: ../src/guestfs.pod:1018
34366 "In the kernel there is now quite a profusion of schemata for naming block "
34367 "devices (in this context, by I<block device> I mean a physical or virtual "
34368 "hard drive). The original Linux IDE driver used names starting with C</dev/"
34369 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
34370 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
34371 "for the old IDE driver (particularly for SATA devices) those devices also "
34372 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
34373 "paravirtualized drivers. This has created several different naming systems, "
34374 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34378 #: ../src/guestfs.pod:1030
34380 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34381 "Linux kernel to access block devices. We can run a variety of appliances "
34382 "based on a variety of Linux kernels."
34386 #: ../src/guestfs.pod:1034
34388 "This causes a problem for libguestfs because many API calls use device or "
34389 "partition names. Working scripts and the recipe (example) scripts that we "
34390 "make available over the internet could fail if the naming scheme changes."
34394 #: ../src/guestfs.pod:1039
34396 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
34397 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34398 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34399 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34403 #: ../src/guestfs.pod:1045
34405 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
34406 "L</guestfs_list_partitions> and similar calls return the true names of the "
34407 "devices and partitions as known to the appliance."
34411 #: ../src/guestfs.pod:1050
34412 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34416 #: ../src/guestfs.pod:1052
34418 "Usually this translation is transparent. However in some (very rare) cases "
34419 "you may need to know the exact algorithm. Such cases include where you use "
34420 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34421 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34425 #: ../src/guestfs.pod:1058
34427 "The algorithm is applied only to I<parameters> which are known to be either "
34428 "device or partition names. Return values from functions such as L</"
34429 "guestfs_list_devices> are never changed."
34433 #: ../src/guestfs.pod:1066
34434 msgid "Is the string a parameter which is a device or partition name?"
34438 #: ../src/guestfs.pod:1070
34439 msgid "Does the string begin with C</dev/sd>?"
34440 msgstr "Чи починається рядок з C</dev/sd>?"
34443 #: ../src/guestfs.pod:1074
34445 "Does the named device exist? If so, we use that device. However if I<not> "
34446 "then we continue with this algorithm."
34450 #: ../src/guestfs.pod:1079
34451 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34455 #: ../src/guestfs.pod:1081
34456 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34460 #: ../src/guestfs.pod:1083
34461 msgid "If that named device exists, use it. If not, continue."
34465 #: ../src/guestfs.pod:1087
34466 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34470 #: ../src/guestfs.pod:1089
34471 msgid "If that named device exists, use it. If not, return an error."
34475 #: ../src/guestfs.pod:1093
34476 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34480 #: ../src/guestfs.pod:1095
34482 "Although the standard naming scheme and automatic translation is useful for "
34483 "simple programs and guestfish scripts, for larger programs it is best not to "
34484 "rely on this mechanism."
34488 #: ../src/guestfs.pod:1099
34490 "Where possible for maximum future portability programs using libguestfs "
34491 "should use these future-proof techniques:"
34495 #: ../src/guestfs.pod:1106
34497 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34498 "device names, and then use those names directly."
34502 #: ../src/guestfs.pod:1109
34504 "Since those device names exist by definition, they will never be translated."
34508 #: ../src/guestfs.pod:1114
34510 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34511 "filesystem labels."
34515 #: ../src/guestfs.pod:1119
34520 #: ../src/guestfs.pod:1121
34522 "This section discusses security implications of using libguestfs, "
34523 "particularly with untrusted or malicious guests or disk images."
34527 #: ../src/guestfs.pod:1124
34528 msgid "GENERAL SECURITY CONSIDERATIONS"
34529 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34532 #: ../src/guestfs.pod:1126
34534 "Be careful with any files or data that you download from a guest (by "
34535 "\"download\" we mean not just the L</guestfs_download> command but any "
34536 "command that reads files, filenames, directories or anything else from a "
34537 "disk image). An attacker could manipulate the data to fool your program "
34538 "into doing the wrong thing. Consider cases such as:"
34542 #: ../src/guestfs.pod:1136
34543 msgid "the data (file etc) not being present"
34547 #: ../src/guestfs.pod:1140
34548 msgid "being present but empty"
34552 #: ../src/guestfs.pod:1144
34553 msgid "being much larger than normal"
34557 #: ../src/guestfs.pod:1148
34558 msgid "containing arbitrary 8 bit data"
34562 #: ../src/guestfs.pod:1152
34563 msgid "being in an unexpected character encoding"
34567 #: ../src/guestfs.pod:1156
34568 msgid "containing homoglyphs."
34572 #: ../src/guestfs.pod:1160
34573 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34574 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34577 #: ../src/guestfs.pod:1162
34579 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34580 "(VFS) module can sometimes be escalated into exploits by deliberately "
34581 "creating a malicious, malformed filesystem. These exploits are very severe "
34582 "for two reasons. Firstly there are very many filesystem drivers in the "
34583 "kernel, and many of them are infrequently used and not much developer "
34584 "attention has been paid to the code. Linux userspace helps potential "
34585 "crackers by detecting the filesystem type and automatically choosing the "
34586 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34587 "the administrator. Secondly, a kernel-level exploit is like a local root "
34588 "exploit (worse in some ways), giving immediate and total access to the "
34589 "system right down to the hardware level."
34593 #: ../src/guestfs.pod:1175
34595 "That explains why you should never mount a filesystem from an untrusted "
34596 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
34597 "inside a qemu virtual machine, usually running as a non-root user. The "
34598 "attacker would need to write a filesystem which first exploited the kernel, "
34599 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34600 "the libguestfs protocol, and finally to be as serious as the host kernel "
34601 "exploit it would need to escalate its privileges to root. This multi-step "
34602 "escalation, performed by a static piece of data, is thought to be extremely "
34603 "hard to do, although we never say 'never' about security issues."
34607 #: ../src/guestfs.pod:1186
34609 "In any case callers can reduce the attack surface by forcing the filesystem "
34610 "type when mounting (use L</guestfs_mount_vfs>)."
34614 #: ../src/guestfs.pod:1189
34615 msgid "PROTOCOL SECURITY"
34616 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34619 #: ../src/guestfs.pod:1191
34621 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
34622 "defined upper message size. However a program that uses libguestfs must "
34623 "also take care - for example you can write a program that downloads a binary "
34624 "from a disk image and executes it locally, and no amount of protocol "
34625 "security will save you from the consequences."
34629 #: ../src/guestfs.pod:1197
34630 msgid "INSPECTION SECURITY"
34634 #: ../src/guestfs.pod:1199
34636 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34637 "directly from the guest, and these could contain any 8 bit data. Callers "
34638 "should be careful to escape these before printing them to a structured file "
34639 "(for example, use HTML escaping if creating a web page)."
34643 #: ../src/guestfs.pod:1205
34645 "Guest configuration may be altered in unusual ways by the administrator of "
34646 "the virtual machine, and may not reflect reality (particularly for untrusted "
34647 "or actively malicious guests). For example we parse the hostname from "
34648 "configuration files like C</etc/sysconfig/network> that we find in the "
34649 "guest, but the guest administrator can easily manipulate these files to "
34650 "provide the wrong hostname."
34654 #: ../src/guestfs.pod:1213
34656 "The inspection API parses guest configuration using two external libraries: "
34657 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
34658 "designed to be robust in the face of malicious data, although denial of "
34659 "service attacks are still possible, for example with oversized configuration "
34664 #: ../src/guestfs.pod:1219
34665 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34666 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34669 #: ../src/guestfs.pod:1221
34671 "Be very cautious about running commands from the guest. By running a "
34672 "command in the guest, you are giving CPU time to a binary that you do not "
34673 "control, under the same user account as the library, albeit wrapped in qemu "
34674 "virtualization. More information and alternatives can be found in the "
34675 "section L</RUNNING COMMANDS>."
34679 #: ../src/guestfs.pod:1227
34680 msgid "CVE-2010-3851"
34681 msgstr "CVE-2010-3851"
34684 #: ../src/guestfs.pod:1229
34685 msgid "https://bugzilla.redhat.com/642934"
34686 msgstr "https://bugzilla.redhat.com/642934"
34689 #: ../src/guestfs.pod:1231
34691 "This security bug concerns the automatic disk format detection that qemu "
34692 "does on disk images."
34696 #: ../src/guestfs.pod:1234
34698 "A raw disk image is just the raw bytes, there is no header. Other disk "
34699 "images like qcow2 contain a special header. Qemu deals with this by looking "
34700 "for one of the known headers, and if none is found then assuming the disk "
34701 "image must be raw."
34705 #: ../src/guestfs.pod:1239
34707 "This allows a guest which has been given a raw disk image to write some "
34708 "other header. At next boot (or when the disk image is accessed by "
34709 "libguestfs) qemu would do autodetection and think the disk image format was, "
34710 "say, qcow2 based on the header written by the guest."
34714 #: ../src/guestfs.pod:1244
34716 "This in itself would not be a problem, but qcow2 offers many features, one "
34717 "of which is to allow a disk image to refer to another image (called the "
34718 "\"backing disk\"). It does this by placing the path to the backing disk "
34719 "into the qcow2 header. This path is not validated and could point to any "
34720 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
34721 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34722 "control of the attacker."
34726 #: ../src/guestfs.pod:1252
34728 "In libguestfs this is rather hard to exploit except under two circumstances:"
34732 #: ../src/guestfs.pod:1259
34733 msgid "You have enabled the network or have opened the disk in write mode."
34737 #: ../src/guestfs.pod:1263
34739 "You are also running untrusted code from the guest (see L</RUNNING "
34744 #: ../src/guestfs.pod:1268
34746 "The way to avoid this is to specify the expected disk format when adding "
34747 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
34748 "should always do this if the disk is raw format, and it's a good idea for "
34753 #: ../src/guestfs.pod:1273
34755 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34756 "format is fetched from libvirt and passed through."
34760 #: ../src/guestfs.pod:1276
34762 "For libguestfs tools, use the I<--format> command line parameter as "
34767 #: ../src/guestfs.pod:1279
34768 msgid "CONNECTION MANAGEMENT"
34769 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34772 #: ../src/guestfs.pod:1281
34773 msgid "guestfs_h *"
34774 msgstr "guestfs_h *"
34777 #: ../src/guestfs.pod:1283
34779 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
34780 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
34781 "handle and release all resources used."
34785 #: ../src/guestfs.pod:1287
34787 "For information on using multiple handles and threads, see the section L</"
34788 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34792 #: ../src/guestfs.pod:1290
34793 msgid "guestfs_create"
34794 msgstr "guestfs_create"
34797 #: ../src/guestfs.pod:1292
34800 " guestfs_h *guestfs_create (void);\n"
34803 " guestfs_h *guestfs_create (void);\n"
34807 #: ../src/guestfs.pod:1294
34808 msgid "Create a connection handle."
34809 msgstr "Створити дескриптор з’єднання."
34812 #: ../src/guestfs.pod:1296
34814 "On success this returns a non-NULL pointer to a handle. On error it returns "
34819 #: ../src/guestfs.pod:1299
34821 "You have to \"configure\" the handle after creating it. This includes "
34822 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34823 "handle at least once."
34827 #: ../src/guestfs.pod:1303
34828 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34832 #: ../src/guestfs.pod:1305
34834 "You may also want to configure error handling for the handle. See the L</"
34835 "ERROR HANDLING> section below."
34839 #: ../src/guestfs.pod:1308
34840 msgid "guestfs_close"
34841 msgstr "guestfs_close"
34844 #: ../src/guestfs.pod:1310
34847 " void guestfs_close (guestfs_h *g);\n"
34850 " void guestfs_close (guestfs_h *g);\n"
34854 #: ../src/guestfs.pod:1312
34855 msgid "This closes the connection handle and frees up all resources used."
34859 #: ../src/guestfs.pod:1314
34861 "If autosync was set on the handle and the handle was launched, then this "
34862 "implicitly calls various functions to unmount filesystems and sync the "
34863 "disk. See L</guestfs_set_autosync> for more details."
34867 #: ../src/guestfs.pod:1318
34868 msgid "If a close callback was set on the handle, then it is called."
34872 #: ../src/guestfs.pod:1320
34873 msgid "ERROR HANDLING"
34874 msgstr "ОБРОБКА ПОМИЛОК"
34877 #: ../src/guestfs.pod:1322
34879 "API functions can return errors. For example, almost all functions that "
34880 "return C<int> will return C<-1> to indicate an error."
34884 #: ../src/guestfs.pod:1325
34886 "Additional information is available for errors: an error message string and "
34887 "optionally an error number (errno) if the thing that failed was a system "
34892 #: ../src/guestfs.pod:1329
34894 "You can get at the additional information about the last error on the handle "
34895 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34896 "up an error handler with L</guestfs_set_error_handler>."
34900 #: ../src/guestfs.pod:1334
34902 "When the handle is created, a default error handler is installed which "
34903 "prints the error message string to C<stderr>. For small short-running "
34904 "command line programs it is sufficient to do:"
34908 #: ../src/guestfs.pod:1338
34911 " if (guestfs_launch (g) == -1)\n"
34912 " exit (EXIT_FAILURE);\n"
34915 " if (guestfs_launch (g) == -1)\n"
34916 " exit (EXIT_FAILURE);\n"
34920 #: ../src/guestfs.pod:1341
34922 "since the default error handler will ensure that an error message has been "
34923 "printed to C<stderr> before the program exits."
34927 #: ../src/guestfs.pod:1344
34929 "For other programs the caller will almost certainly want to install an "
34930 "alternate error handler or do error handling in-line like this:"
34934 #: ../src/guestfs.pod:1347
34937 " g = guestfs_create ();\n"
34940 " g = guestfs_create ();\n"
34944 #: ../src/guestfs.pod:1349
34947 " /* This disables the default behaviour of printing errors\n"
34949 " guestfs_set_error_handler (g, NULL, NULL);\n"
34954 #: ../src/guestfs.pod:1353
34957 " if (guestfs_launch (g) == -1) {\n"
34958 " /* Examine the error message and print it etc. */\n"
34959 " char *msg = guestfs_last_error (g);\n"
34960 " int errnum = guestfs_last_errno (g);\n"
34961 " fprintf (stderr, \"%s\\n\", msg);\n"
34966 " if (guestfs_launch (g) == -1) {\n"
34967 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
34968 " char *msg = guestfs_last_error (g);\n"
34969 " int errnum = guestfs_last_errno (g);\n"
34970 " fprintf (stderr, \"%s\\n\", msg);\n"
34976 #: ../src/guestfs.pod:1361
34978 "Out of memory errors are handled differently. The default action is to call "
34979 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
34980 "guestfs_set_out_of_memory_handler>."
34984 #: ../src/guestfs.pod:1365
34986 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34987 "because there is no handle if this happens there is no way to get additional "
34988 "error information. However L</guestfs_create> is supposed to be a "
34989 "lightweight operation which can only fail because of insufficient memory (it "
34990 "returns NULL in this case)."
34994 #: ../src/guestfs.pod:1371
34995 msgid "guestfs_last_error"
34996 msgstr "guestfs_last_error"
34999 #: ../src/guestfs.pod:1373
35002 " const char *guestfs_last_error (guestfs_h *g);\n"
35005 " const char *guestfs_last_error (guestfs_h *g);\n"
35009 #: ../src/guestfs.pod:1375
35011 "This returns the last error message that happened on C<g>. If there has not "
35012 "been an error since the handle was created, then this returns C<NULL>."
35016 #: ../src/guestfs.pod:1379
35018 "The lifetime of the returned string is until the next error occurs, or L</"
35019 "guestfs_close> is called."
35023 #: ../src/guestfs.pod:1382
35024 msgid "guestfs_last_errno"
35025 msgstr "guestfs_last_errno"
35028 #: ../src/guestfs.pod:1384
35031 " int guestfs_last_errno (guestfs_h *g);\n"
35034 " int guestfs_last_errno (guestfs_h *g);\n"
35038 #: ../src/guestfs.pod:1386
35039 msgid "This returns the last error number (errno) that happened on C<g>."
35043 #: ../src/guestfs.pod:1388
35044 msgid "If successful, an errno integer not equal to zero is returned."
35048 #: ../src/guestfs.pod:1390
35050 "If no error, this returns 0. This call can return 0 in three situations:"
35054 #: ../src/guestfs.pod:1397
35055 msgid "There has not been any error on the handle."
35059 #: ../src/guestfs.pod:1401
35061 "There has been an error but the errno was meaningless. This corresponds to "
35062 "the case where the error did not come from a failed system call, but for "
35063 "some other reason."
35067 #: ../src/guestfs.pod:1407
35069 "There was an error from a failed system call, but for some reason the errno "
35070 "was not captured and returned. This usually indicates a bug in libguestfs."
35074 #: ../src/guestfs.pod:1413
35076 "Libguestfs tries to convert the errno from inside the applicance into a "
35077 "corresponding errno for the caller (not entirely trivial: the appliance "
35078 "might be running a completely different operating system from the library "
35079 "and error numbers are not standardized across Un*xen). If this could not be "
35080 "done, then the error is translated to C<EINVAL>. In practice this should "
35081 "only happen in very rare circumstances."
35085 #: ../src/guestfs.pod:1421
35086 msgid "guestfs_set_error_handler"
35087 msgstr "guestfs_set_error_handler"
35090 #: ../src/guestfs.pod:1423
35093 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35095 " const char *msg);\n"
35096 " void guestfs_set_error_handler (guestfs_h *g,\n"
35097 " guestfs_error_handler_cb cb,\n"
35098 " void *opaque);\n"
35101 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35103 " const char *msg);\n"
35104 " void guestfs_set_error_handler (guestfs_h *g,\n"
35105 " guestfs_error_handler_cb cb,\n"
35106 " void *opaque);\n"
35110 #: ../src/guestfs.pod:1430
35112 "The callback C<cb> will be called if there is an error. The parameters "
35113 "passed to the callback are an opaque data pointer and the error message "
35118 #: ../src/guestfs.pod:1434
35120 "C<errno> is not passed to the callback. To get that the callback must call "
35121 "L</guestfs_last_errno>."
35125 #: ../src/guestfs.pod:1437
35127 "Note that the message string C<msg> is freed as soon as the callback "
35128 "function returns, so if you want to stash it somewhere you must make your "
35133 #: ../src/guestfs.pod:1441
35134 msgid "The default handler prints messages on C<stderr>."
35138 #: ../src/guestfs.pod:1443
35139 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35143 #: ../src/guestfs.pod:1445
35144 msgid "guestfs_get_error_handler"
35145 msgstr "guestfs_get_error_handler"
35148 #: ../src/guestfs.pod:1447
35151 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35152 " void **opaque_rtn);\n"
35155 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35156 " void **opaque_rtn);\n"
35160 #: ../src/guestfs.pod:1450
35161 msgid "Returns the current error handler callback."
35165 #: ../src/guestfs.pod:1452
35166 msgid "guestfs_set_out_of_memory_handler"
35167 msgstr "guestfs_set_out_of_memory_handler"
35170 #: ../src/guestfs.pod:1454
35173 #| " typedef void (*guestfs_abort_cb) (void);\n"
35174 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35175 #| " guestfs_abort_cb);\n"
35178 " typedef void (*guestfs_abort_cb) (void);\n"
35179 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35180 " guestfs_abort_cb);\n"
35183 " typedef void (*guestfs_abort_cb) (void);\n"
35184 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35185 " guestfs_abort_cb);\n"
35189 #: ../src/guestfs.pod:1458
35191 "The callback C<cb> will be called if there is an out of memory situation. "
35192 "I<Note this callback must not return>."
35196 #: ../src/guestfs.pod:1461
35197 msgid "The default is to call L<abort(3)>."
35201 #: ../src/guestfs.pod:1463
35203 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
35207 #: ../src/guestfs.pod:1466
35208 msgid "guestfs_get_out_of_memory_handler"
35209 msgstr "guestfs_get_out_of_memory_handler"
35212 #: ../src/guestfs.pod:1468
35215 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35218 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35222 #: ../src/guestfs.pod:1470
35223 msgid "This returns the current out of memory handler."
35227 #: ../src/guestfs.pod:1472
35229 msgstr "ВИКЛИКИ API"
35232 #: ../src/guestfs.pod:1476
35237 #: ../src/guestfs.pod:1478
35242 #: ../src/guestfs.pod:1480
35243 msgid "AVAILABILITY"
35244 msgstr "ДОСТУПНІСТЬ"
35247 #: ../src/guestfs.pod:1482
35248 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35249 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35252 #: ../src/guestfs.pod:1484
35254 "Using L</guestfs_available> you can test availability of the following "
35255 "groups of functions. This test queries the appliance to see if the "
35256 "appliance you are currently using supports the functionality."
35260 #: ../src/guestfs.pod:1489
35261 msgid "@AVAILABILITY@"
35262 msgstr "@AVAILABILITY@"
35265 #: ../src/guestfs.pod:1491
35266 msgid "GUESTFISH supported COMMAND"
35270 #: ../src/guestfs.pod:1493
35272 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35273 "prints out the available groups and whether they are supported by this build "
35274 "of libguestfs. Note however that you have to do C<run> first."
35278 #: ../src/guestfs.pod:1498
35279 msgid "SINGLE CALLS AT COMPILE TIME"
35283 #: ../src/guestfs.pod:1500
35285 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35286 "function, such as:"
35290 #: ../src/guestfs.pod:1503
35293 " #define LIBGUESTFS_HAVE_DD 1\n"
35296 " #define LIBGUESTFS_HAVE_DD 1\n"
35300 #: ../src/guestfs.pod:1505
35301 msgid "if L</guestfs_dd> is available."
35305 #: ../src/guestfs.pod:1507
35307 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35308 "function is available at compile time, we recommended using build tools such "
35309 "as autoconf or cmake. For example in autotools you could use:"
35313 #: ../src/guestfs.pod:1512
35316 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35317 " AC_CHECK_FUNCS([guestfs_dd])\n"
35320 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35321 " AC_CHECK_FUNCS([guestfs_dd])\n"
35325 #: ../src/guestfs.pod:1515
35327 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35332 #: ../src/guestfs.pod:1518
35333 msgid "SINGLE CALLS AT RUN TIME"
35337 #: ../src/guestfs.pod:1520
35339 "Testing at compile time doesn't guarantee that a function really exists in "
35340 "the library. The reason is that you might be dynamically linked against a "
35341 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
35342 "This situation unfortunately results in a segmentation fault, which is a "
35343 "shortcoming of the C dynamic linking system itself."
35347 #: ../src/guestfs.pod:1527
35349 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35350 "in this example program (note that you still need the compile time check as "
35355 #: ../src/guestfs.pod:1531
35358 " #include <stdio.h>\n"
35359 " #include <stdlib.h>\n"
35360 " #include <unistd.h>\n"
35361 " #include <dlfcn.h>\n"
35362 " #include <guestfs.h>\n"
35365 " #include <stdio.h>\n"
35366 " #include <stdlib.h>\n"
35367 " #include <unistd.h>\n"
35368 " #include <dlfcn.h>\n"
35369 " #include <guestfs.h>\n"
35373 #: ../src/guestfs.pod:1537
35378 " #ifdef LIBGUESTFS_HAVE_DD\n"
35380 " int has_function;\n"
35385 " #ifdef LIBGUESTFS_HAVE_DD\n"
35387 " int has_function;\n"
35391 #: ../src/guestfs.pod:1543
35394 " /* Test if the function guestfs_dd is really available. */\n"
35395 " dl = dlopen (NULL, RTLD_LAZY);\n"
35397 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35398 " exit (EXIT_FAILURE);\n"
35400 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35406 #: ../src/guestfs.pod:1552
35409 " if (!has_function)\n"
35410 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35412 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35413 " /* Now it's safe to call\n"
35414 " guestfs_dd (g, \"foo\", \"bar\");\n"
35418 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35425 #: ../src/guestfs.pod:1565
35427 "You may think the above is an awful lot of hassle, and it is. There are "
35428 "other ways outside of the C linking system to ensure that this kind of "
35429 "incompatibility never arises, such as using package versioning:"
35433 #: ../src/guestfs.pod:1570
35436 " Requires: libguestfs >= 1.0.80\n"
35441 #: ../src/guestfs.pod:1572
35442 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35446 #: ../src/guestfs.pod:1574
35448 "A recent feature of the API is the introduction of calls which take optional "
35449 "arguments. In C these are declared 3 ways. The main way is as a call which "
35450 "takes variable arguments (ie. C<...>), as in this example:"
35454 #: ../src/guestfs.pod:1579
35457 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35460 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35464 #: ../src/guestfs.pod:1581
35466 "Call this with a list of optional arguments, terminated by C<-1>. So to "
35467 "call with no optional arguments specified:"
35471 #: ../src/guestfs.pod:1584
35474 " guestfs_add_drive_opts (g, filename, -1);\n"
35477 " guestfs_add_drive_opts (g, filename, -1);\n"
35481 #: ../src/guestfs.pod:1586
35482 msgid "With a single optional argument:"
35486 #: ../src/guestfs.pod:1588
35489 " guestfs_add_drive_opts (g, filename,\n"
35490 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35494 " guestfs_add_drive_opts (g, filename,\n"
35495 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35500 #: ../src/guestfs.pod:1592
35505 #: ../src/guestfs.pod:1594
35508 " guestfs_add_drive_opts (g, filename,\n"
35509 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35510 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35514 " guestfs_add_drive_opts (g, filename,\n"
35515 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35516 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35521 #: ../src/guestfs.pod:1599
35523 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
35528 #: ../src/guestfs.pod:1602
35529 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35533 #: ../src/guestfs.pod:1604
35535 "The second variant has the same name with the suffix C<_va>, which works the "
35536 "same way but takes a C<va_list>. See the C manual for details. For the "
35537 "example function, this is declared:"
35541 #: ../src/guestfs.pod:1608
35544 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35545 " va_list args);\n"
35548 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35549 " va_list args);\n"
35553 #: ../src/guestfs.pod:1611
35554 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35558 #: ../src/guestfs.pod:1613
35560 "The third variant is useful where you need to construct these calls. You "
35561 "pass in a structure where you fill in the optional fields. The structure "
35562 "has a bitmask as the first element which you must set to indicate which "
35563 "fields you have filled in. For our example function the structure and call "
35568 #: ../src/guestfs.pod:1619
35571 " struct guestfs_add_drive_opts_argv {\n"
35572 " uint64_t bitmask;\n"
35574 " const char *format;\n"
35577 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35578 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35581 " struct guestfs_add_drive_opts_argv {\n"
35582 " uint64_t bitmask;\n"
35584 " const char *format;\n"
35587 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35588 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35592 #: ../src/guestfs.pod:1628
35593 msgid "You could call it like this:"
35597 #: ../src/guestfs.pod:1630
35600 " struct guestfs_add_drive_opts_argv optargs = {\n"
35601 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35602 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35603 " .readonly = 1,\n"
35604 " .format = \"qcow2\"\n"
35608 " struct guestfs_add_drive_opts_argv optargs = {\n"
35609 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35610 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35611 " .readonly = 1,\n"
35612 " .format = \"qcow2\"\n"
35617 #: ../src/guestfs.pod:1637
35620 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35623 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35627 #: ../src/guestfs.pod:1645
35628 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35632 #: ../src/guestfs.pod:1650
35633 msgid "You do not need to fill in all fields of the structure."
35637 #: ../src/guestfs.pod:1654
35639 "There must be a one-to-one correspondence between fields of the structure "
35640 "that are filled in, and bits set in the bitmask."
35644 #: ../src/guestfs.pod:1659
35645 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35649 #: ../src/guestfs.pod:1661
35651 "In other languages, optional arguments are expressed in the way that is "
35652 "natural for that language. We refer you to the language-specific "
35653 "documentation for more details on that."
35657 #: ../src/guestfs.pod:1665
35658 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35662 #: ../src/guestfs.pod:1667
35663 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35667 #: ../src/guestfs.pod:1669
35669 "B<Note:> This section documents the generic event mechanism introduced in "
35670 "libguestfs 1.10, which you should use in new code if possible. The old "
35671 "functions C<guestfs_set_log_message_callback>, "
35672 "C<guestfs_set_subprocess_quit_callback>, "
35673 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35674 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35675 "page. Because of the ABI guarantee, the old functions continue to work."
35679 #: ../src/guestfs.pod:1678
35681 "Handles generate events when certain things happen, such as log messages "
35682 "being generated, progress messages during long-running operations, or the "
35683 "handle being closed. The API calls described below let you register a "
35684 "callback to be called when events happen. You can register multiple "
35685 "callbacks (for the same, different or overlapping sets of events), and "
35686 "individually remove callbacks. If callbacks are not removed, then they "
35687 "remain in force until the handle is closed."
35691 #: ../src/guestfs.pod:1686
35693 "In the current implementation, events are only generated synchronously: that "
35694 "means that events (and hence callbacks) can only happen while you are in the "
35695 "middle of making another libguestfs call. The callback is called in the "
35700 #: ../src/guestfs.pod:1691
35702 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35703 "unsigned integers, or a message buffer. Payloads are discussed later on."
35707 #: ../src/guestfs.pod:1695
35708 msgid "CLASSES OF EVENTS"
35712 #: ../src/guestfs.pod:1699
35713 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35717 #: ../src/guestfs.pod:1702
35719 "The callback function will be called while the handle is being closed "
35720 "(synchronously from L</guestfs_close>)."
35724 #: ../src/guestfs.pod:1705
35726 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35727 "handles that are open when the program exits. This means that this callback "
35728 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35729 "problems in higher-level languages (eg. if your HLL interpreter has already "
35730 "been cleaned up by the time this is called, and if your callback then jumps "
35731 "into some HLL function)."
35735 #: ../src/guestfs.pod:1712
35737 "If no callback is registered: the handle is closed without any callback "
35742 #: ../src/guestfs.pod:1715
35743 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35747 #: ../src/guestfs.pod:1718
35749 "The callback function will be called when the child process quits, either "
35750 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
35751 "corresponds to a transition from any state to the CONFIG state)."
35755 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
35756 msgid "If no callback is registered: the event is ignored."
35760 #: ../src/guestfs.pod:1724
35761 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35765 #: ../src/guestfs.pod:1727
35767 "The callback function will be called when the child process becomes ready "
35768 "first time after it has been launched. (This corresponds to a transition "
35769 "from LAUNCHING to the READY state)."
35773 #: ../src/guestfs.pod:1733
35774 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35778 #: ../src/guestfs.pod:1736
35780 "Some long-running operations can generate progress messages. If this "
35781 "callback is registered, then it will be called each time a progress message "
35782 "is generated (usually two seconds after the operation started, and three "
35783 "times per second thereafter until it completes, although the frequency may "
35784 "change in future versions)."
35788 #: ../src/guestfs.pod:1742
35790 "The callback receives in the payload four unsigned 64 bit numbers which are "
35791 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35795 #: ../src/guestfs.pod:1745
35797 "The units of C<total> are not defined, although for some operations C<total> "
35798 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35799 "or megabytes), and C<position> may be the portion which has been transferred."
35803 #: ../src/guestfs.pod:1750
35804 msgid "The only defined and stable parts of the API are:"
35808 #: ../src/guestfs.pod:1756
35810 "The callback can display to the user some type of progress bar or indicator "
35811 "which shows the ratio of C<position>:C<total>."
35815 #: ../src/guestfs.pod:1761
35816 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35820 #: ../src/guestfs.pod:1765
35822 "If any progress notification is sent during a call, then a final progress "
35823 "notification is always sent when C<position> = C<total> (I<unless> the call "
35824 "fails with an error)."
35828 #: ../src/guestfs.pod:1769
35830 "This is to simplify caller code, so callers can easily set the progress "
35831 "indicator to \"100%\" at the end of the operation, without requiring special "
35832 "code to detect this case."
35836 #: ../src/guestfs.pod:1775
35838 "For some calls we are unable to estimate the progress of the call, but we "
35839 "can still generate progress messages to indicate activity. This is known as "
35840 "\"pulse mode\", and is directly supported by certain progress bar "
35841 "implementations (eg. GtkProgressBar)."
35845 #: ../src/guestfs.pod:1780
35847 "For these calls, zero or more progress messages are generated with "
35848 "C<position = 0> and C<total = 1>, followed by a final message with "
35849 "C<position = total = 1>."
35853 #: ../src/guestfs.pod:1784
35855 "As noted above, if the call fails with an error then the final message may "
35856 "not be generated."
35860 #: ../src/guestfs.pod:1789
35862 "The callback also receives the procedure number (C<proc_nr>) and serial "
35863 "number (C<serial>) of the call. These are only useful for debugging "
35864 "protocol issues, and the callback can normally ignore them. The callback "
35865 "may want to print these numbers in error messages or debugging messages."
35869 #: ../src/guestfs.pod:1795
35870 msgid "If no callback is registered: progress messages are discarded."
35874 #: ../src/guestfs.pod:1797
35875 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35879 #: ../src/guestfs.pod:1800
35881 "The callback function is called whenever a log message is generated by qemu, "
35882 "the appliance kernel, guestfsd (daemon), or utility programs."
35886 #: ../src/guestfs.pod:1803
35888 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35889 "guestfs_launch>) then additional debug messages are generated."
35893 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
35895 "If no callback is registered: the messages are discarded unless the verbose "
35896 "flag is set in which case they are sent to stderr. You can override the "
35897 "printing of verbose messages to stderr by setting up a callback."
35901 #: ../src/guestfs.pod:1811
35902 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35906 #: ../src/guestfs.pod:1814
35908 "The callback function is called whenever a log message is generated by the "
35909 "library part of libguestfs."
35913 #: ../src/guestfs.pod:1817
35915 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35916 "messages are generated."
35920 #: ../src/guestfs.pod:1825
35921 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35925 #: ../src/guestfs.pod:1828
35927 "The callback function is called whenever a trace message is generated. This "
35928 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35932 #: ../src/guestfs.pod:1831
35934 "If no callback is registered: the messages are sent to stderr. You can "
35935 "override the printing of trace messages to stderr by setting up a callback."
35939 #: ../src/guestfs.pod:1837
35940 msgid "guestfs_set_event_callback"
35944 #: ../src/guestfs.pod:1839
35947 " int guestfs_set_event_callback (guestfs_h *g,\n"
35948 " guestfs_event_callback cb,\n"
35949 " uint64_t event_bitmask,\n"
35951 " void *opaque);\n"
35956 #: ../src/guestfs.pod:1845
35958 "This function registers a callback (C<cb>) for all event classes in the "
35959 "C<event_bitmask>."
35963 #: ../src/guestfs.pod:1848
35965 "For example, to register for all log message events, you could call this "
35966 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
35967 "To register a single callback for all possible classes of events, use "
35968 "C<GUESTFS_EVENT_ALL>."
35972 #: ../src/guestfs.pod:1854
35973 msgid "C<flags> should always be passed as 0."
35977 #: ../src/guestfs.pod:1856
35979 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
35980 "it for any purpose."
35984 #: ../src/guestfs.pod:1859
35986 "The return value is the event handle (an integer) which you can use to "
35987 "delete the callback (see below)."
35991 #: ../src/guestfs.pod:1862
35993 "If there is an error, this function returns C<-1>, and sets the error in the "
35994 "handle in the usual way (see L</guestfs_last_error> etc.)"
35998 #: ../src/guestfs.pod:1865
36000 "Callbacks remain in effect until they are deleted, or until the handle is "
36005 #: ../src/guestfs.pod:1868
36007 "In the case where multiple callbacks are registered for a particular event "
36008 "class, all of the callbacks are called. The order in which multiple "
36009 "callbacks are called is not defined."
36013 #: ../src/guestfs.pod:1872
36014 msgid "guestfs_delete_event_callback"
36018 #: ../src/guestfs.pod:1874
36021 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36026 #: ../src/guestfs.pod:1876
36028 "Delete a callback that was previously registered. C<event_handle> should be "
36029 "the integer that was returned by a previous call to "
36030 "C<guestfs_set_event_callback> on the same handle."
36034 #: ../src/guestfs.pod:1880
36035 msgid "guestfs_event_callback"
36039 #: ../src/guestfs.pod:1882
36042 " typedef void (*guestfs_event_callback) (\n"
36045 " uint64_t event,\n"
36046 " int event_handle,\n"
36048 " const char *buf, size_t buf_len,\n"
36049 " const uint64_t *array, size_t array_len);\n"
36054 #: ../src/guestfs.pod:1891
36056 "This is the type of the event callback function that you have to provide."
36060 #: ../src/guestfs.pod:1894
36062 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36063 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36064 "handle, and C<flags> which in the current API you should ignore."
36068 #: ../src/guestfs.pod:1898
36070 "The remaining parameters contain the event payload (if any). Each event may "
36071 "contain a payload, which usually relates to the event class, but for future "
36072 "proofing your code should be written to handle any payload for any event "
36077 #: ../src/guestfs.pod:1903
36079 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36080 "there is no message buffer). Note that this message buffer can contain "
36081 "arbitrary 8 bit data, including NUL bytes."
36085 #: ../src/guestfs.pod:1907
36087 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
36088 "moment this is only used for progress messages."
36092 #: ../src/guestfs.pod:1910
36093 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36097 #: ../src/guestfs.pod:1912
36099 "One motivation for the generic event API was to allow GUI programs to "
36100 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
36101 "unconditionally to C<stderr>."
36105 #: ../src/guestfs.pod:1916
36107 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36108 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
36109 "messages are not events; you must capture error messages separately)."
36113 #: ../src/guestfs.pod:1921
36115 "Programs have to set up a callback to capture the classes of events of "
36120 #: ../src/guestfs.pod:1924
36124 " guestfs_set_event_callback\n"
36125 " (g, message_callback,\n"
36126 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36127 " GUESTFS_EVENT_TRACE,\n"
36128 " 0, NULL) == -1)\n"
36129 " if (eh == -1) {\n"
36130 " // handle error in the usual way\n"
36136 #: ../src/guestfs.pod:1934
36138 "The callback can then direct messages to the appropriate place. In this "
36139 "example, messages are directed to syslog:"
36143 #: ../src/guestfs.pod:1937
36147 " message_callback (\n"
36150 " uint64_t event,\n"
36151 " int event_handle,\n"
36153 " const char *buf, size_t buf_len,\n"
36154 " const uint64_t *array, size_t array_len)\n"
36156 " const int priority = LOG_USER|LOG_INFO;\n"
36157 " if (buf_len > 0)\n"
36158 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36164 #: ../src/guestfs.pod:1952
36165 msgid "CANCELLING LONG TRANSFERS"
36169 #: ../src/guestfs.pod:1954
36171 "Some operations can be cancelled by the caller while they are in progress. "
36172 "Currently only operations that involve uploading or downloading data can be "
36173 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36174 "parameters in the generator)."
36178 #: ../src/guestfs.pod:1959
36179 msgid "guestfs_user_cancel"
36183 #: ../src/guestfs.pod:1961
36186 " void guestfs_user_cancel (guestfs_h *g);\n"
36191 #: ../src/guestfs.pod:1963
36193 "C<guestfs_user_cancel> cancels the current upload or download operation."
36197 #: ../src/guestfs.pod:1966
36199 "Unlike most other libguestfs calls, this function is signal safe and thread "
36200 "safe. You can call it from a signal handler or from another thread, without "
36201 "needing to do any locking."
36205 #: ../src/guestfs.pod:1970
36207 "The transfer that was in progress (if there is one) will stop shortly "
36208 "afterwards, and will return an error. The errno (see L</"
36209 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36210 "out if the operation was cancelled or failed because of another error."
36214 #: ../src/guestfs.pod:1976
36216 "No cleanup is performed: for example, if a file was being uploaded then "
36217 "after cancellation there may be a partially uploaded file. It is the "
36218 "caller's responsibility to clean up if necessary."
36222 #: ../src/guestfs.pod:1980
36223 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36227 #: ../src/guestfs.pod:1982
36229 "In an interactive text-based program, you might call it from a C<SIGINT> "
36230 "signal handler so that pressing C<^C> cancels the current operation. (You "
36231 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36232 "receive the C<^C> signal)."
36236 #: ../src/guestfs.pod:1987
36238 "In a graphical program, when the main thread is displaying a progress bar "
36239 "with a cancel button, wire up the cancel button to call this function."
36243 #: ../src/guestfs.pod:1991
36244 msgid "PRIVATE DATA AREA"
36248 #: ../src/guestfs.pod:1993
36250 "You can attach named pieces of private data to the libguestfs handle, fetch "
36251 "them by name, and walk over them, for the lifetime of the handle. This is "
36252 "called the private data area and is only available from the C API."
36256 #: ../src/guestfs.pod:1998
36257 msgid "To attach a named piece of data, use the following call:"
36261 #: ../src/guestfs.pod:2000
36264 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36267 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36271 #: ../src/guestfs.pod:2002
36273 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36274 "pointer (which can be C<NULL>). Any previous item with the same key is "
36279 #: ../src/guestfs.pod:2006
36281 "You can use any C<key> you want, but your key should I<not> start with an "
36282 "underscore character. Keys beginning with an underscore character are "
36283 "reserved for internal libguestfs purposes (eg. for implementing language "
36284 "bindings). It is recommended that you prefix the key with some unique "
36285 "string to avoid collisions with other users."
36289 #: ../src/guestfs.pod:2012
36290 msgid "To retrieve the pointer, use:"
36294 #: ../src/guestfs.pod:2014
36297 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36300 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36304 #: ../src/guestfs.pod:2016
36306 "This function returns C<NULL> if either no data is found associated with "
36307 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36312 #: ../src/guestfs.pod:2020
36314 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36315 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
36316 "all. In particular, libguestfs does I<not> try to free the data when the "
36317 "handle is closed. If the data must be freed, then the caller must either "
36318 "free it before calling L</guestfs_close> or must set up a close callback to "
36319 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36323 #: ../src/guestfs.pod:2027
36324 msgid "To walk over all entries, use these two functions:"
36328 #: ../src/guestfs.pod:2029
36331 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36336 #: ../src/guestfs.pod:2031
36339 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36344 #: ../src/guestfs.pod:2033
36346 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36347 "not have any particular meaning -- keys are not returned in any defined "
36348 "order). A pointer to the key is returned in C<*key_rtn> and the "
36349 "corresponding data pointer is returned from the function. C<NULL> is "
36350 "returned if there are no keys stored in the handle."
36354 #: ../src/guestfs.pod:2039
36356 "C<guestfs_next_private> returns the next key, pointer pair. The return "
36357 "value of this function is also C<NULL> is there are no further entries to "
36362 #: ../src/guestfs.pod:2043
36363 msgid "Notes about walking over entries:"
36367 #: ../src/guestfs.pod:2049
36369 "You must not call C<guestfs_set_private> while walking over the entries."
36373 #: ../src/guestfs.pod:2054
36375 "The handle maintains an internal iterator which is reset when you call "
36376 "C<guestfs_first_private>. This internal iterator is invalidated when you "
36377 "call C<guestfs_set_private>."
36381 #: ../src/guestfs.pod:2060
36382 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36386 #: ../src/guestfs.pod:2062
36389 " guestfs_set_private (g, key, NULL);\n"
36394 #: ../src/guestfs.pod:2064
36395 msgid "then that C<key> is not returned when walking."
36399 #: ../src/guestfs.pod:2068
36401 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36402 "C<guestfs_next_private> or C<guestfs_set_private>."
36406 #: ../src/guestfs.pod:2074
36408 "The following example code shows how to print all keys and data pointers "
36409 "that are associated with the handle C<g>:"
36413 #: ../src/guestfs.pod:2077
36416 " const char *key;\n"
36417 " void *data = guestfs_first_private (g, &key);\n"
36418 " while (data != NULL)\n"
36420 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36421 " data = guestfs_next_private (g, &key);\n"
36427 #: ../src/guestfs.pod:2085
36429 "More commonly you are only interested in keys that begin with an application-"
36430 "specific prefix C<foo_>. Modify the loop like so:"
36434 #: ../src/guestfs.pod:2088
36437 " const char *key;\n"
36438 " void *data = guestfs_first_private (g, &key);\n"
36439 " while (data != NULL)\n"
36441 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36442 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36443 " data = guestfs_next_private (g, &key);\n"
36449 #: ../src/guestfs.pod:2097
36451 "If you need to modify keys while walking, then you have to jump back to the "
36452 "beginning of the loop. For example, to delete all keys prefixed with "
36457 #: ../src/guestfs.pod:2101
36460 " const char *key;\n"
36463 " data = guestfs_first_private (g, &key);\n"
36464 " while (data != NULL)\n"
36466 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36468 " guestfs_set_private (g, key, NULL);\n"
36469 " /* note that 'key' pointer is now invalid, and so is\n"
36470 " the internal iterator */\n"
36473 " data = guestfs_next_private (g, &key);\n"
36479 #: ../src/guestfs.pod:2117
36481 "Note that the above loop is guaranteed to terminate because the keys are "
36482 "being deleted, but other manipulations of keys within the loop might not "
36483 "terminate unless you also maintain an indication of which keys have been "
36488 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
36493 #: ../src/guestfs.pod:2124
36495 "<!-- old anchor for the next section --> <a name="
36496 "\"state_machine_and_low_level_event_api\"/>"
36498 "<!-- old anchor for the next section --> <a name="
36499 "\"state_machine_and_low_level_event_api\"/>"
36502 #: ../src/guestfs.pod:2129
36503 msgid "ARCHITECTURE"
36504 msgstr "АРХІТЕКТУРА"
36507 #: ../src/guestfs.pod:2131
36509 "Internally, libguestfs is implemented by running an appliance (a special "
36510 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
36511 "process of the main program."
36515 #: ../src/guestfs.pod:2135
36518 " ___________________\n"
36520 " | main program |\n"
36522 " | | child process / appliance\n"
36523 " | | __________________________\n"
36525 " +-------------------+ RPC | +-----------------+ |\n"
36526 " | libguestfs <--------------------> guestfsd | |\n"
36527 " | | | +-----------------+ |\n"
36528 " \\___________________/ | | Linux kernel | |\n"
36529 " | +--^--------------+ |\n"
36530 " \\_________|________________/\n"
36532 " _______v______\n"
36535 " | disk image |\n"
36536 " \\______________/\n"
36541 #: ../src/guestfs.pod:2155
36543 "The library, linked to the main program, creates the child process and hence "
36544 "the appliance in the L</guestfs_launch> function."
36548 #: ../src/guestfs.pod:2158
36550 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36551 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36552 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
36553 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
36554 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
36555 "attached to the qemu process which translates device access by the "
36556 "appliance's Linux kernel into accesses to the image."
36560 #: ../src/guestfs.pod:2167
36562 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
36563 "Although the disk image you are attached to might also be used by some "
36564 "virtual machine, libguestfs doesn't know or care about this. (But you will "
36565 "care if both libguestfs's qemu process and your virtual machine are trying "
36566 "to update the disk image at the same time, since these usually results in "
36567 "massive disk corruption)."
36571 #: ../src/guestfs.pod:2174
36572 msgid "STATE MACHINE"
36573 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36576 #: ../src/guestfs.pod:2176
36577 msgid "libguestfs uses a state machine to model the child process:"
36581 #: ../src/guestfs.pod:2178
36585 " guestfs_create\n"
36593 " / | \\ \\ guestfs_launch\n"
36594 " / | _\\__V______\n"
36596 " / | | LAUNCHING |\n"
36597 " / | \\___________/\n"
36599 " / | guestfs_launch\n"
36601 " ______ / __|____V\n"
36602 " / \\ ------> / \\\n"
36603 " | BUSY | | READY |\n"
36604 " \\______/ <------ \\________/\n"
36609 #: ../src/guestfs.pod:2200
36611 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36612 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36613 "(3) alternating between READY and BUSY as commands are issued to, and "
36614 "carried out by, the child process."
36618 #: ../src/guestfs.pod:2205
36620 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36621 "asynchronously at any time (eg. due to some internal error), and that causes "
36622 "the state to transition back to CONFIG."
36626 #: ../src/guestfs.pod:2209
36628 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36629 "issued when in the CONFIG state."
36633 #: ../src/guestfs.pod:2212
36635 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
36636 "L</guestfs_launch> blocks until the child process is READY to accept "
36637 "commands (or until some failure or timeout). L</guestfs_launch> internally "
36638 "moves the state from CONFIG to LAUNCHING while it is running."
36642 #: ../src/guestfs.pod:2218
36644 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36645 "state. These API calls block waiting for the command to be carried out (ie. "
36646 "the state to transition to BUSY and then back to READY). There are no non-"
36647 "blocking versions, and no way to issue more than one command per handle at "
36652 #: ../src/guestfs.pod:2224
36654 "Finally, the child process sends asynchronous messages back to the main "
36655 "program, such as kernel log messages. You can register a callback to "
36656 "receive these messages."
36660 #: ../src/guestfs.pod:2228
36665 #: ../src/guestfs.pod:2230
36666 msgid "COMMUNICATION PROTOCOL"
36670 #: ../src/guestfs.pod:2232
36672 "Don't rely on using this protocol directly. This section documents how it "
36673 "currently works, but it may change at any time."
36677 #: ../src/guestfs.pod:2235
36679 "The protocol used to talk between the library and the daemon running inside "
36680 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36681 "1014, RFC 1832, RFC 4506)."
36685 #: ../src/guestfs.pod:2239
36687 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36688 "this file is automatically generated)."
36692 #: ../src/guestfs.pod:2242
36694 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36695 "and C<FileOut> parameters, which are handled with very simple request/reply "
36696 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
36697 "parameters, which use the same request and reply messages, but they may also "
36698 "be followed by files sent using a chunked encoding."
36702 #: ../src/guestfs.pod:2249
36703 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36707 #: ../src/guestfs.pod:2251
36708 msgid "For ordinary functions, the request message is:"
36712 #: ../src/guestfs.pod:2253
36715 " total length (header + arguments,\n"
36716 " but not including the length word itself)\n"
36717 " struct guestfs_message_header (encoded as XDR)\n"
36718 " struct guestfs_<foo>_args (encoded as XDR)\n"
36723 #: ../src/guestfs.pod:2258
36725 "The total length field allows the daemon to allocate a fixed size buffer "
36726 "into which it slurps the rest of the message. As a result, the total length "
36727 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36728 "effective size of any request is limited to somewhere under this size."
36732 #: ../src/guestfs.pod:2264
36734 "Note also that many functions don't take any arguments, in which case the "
36735 "C<guestfs_I<foo>_args> is completely omitted."
36739 #: ../src/guestfs.pod:2267
36741 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36742 "receiver knows what type of args structure to expect, or none at all."
36746 #: ../src/guestfs.pod:2271
36748 "For functions that take optional arguments, the optional arguments are "
36749 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36750 "arguments. A bitmask in the header indicates which optional arguments are "
36751 "meaningful. The bitmask is also checked to see if it contains bits set "
36752 "which the daemon does not know about (eg. if more optional arguments were "
36753 "added in a later version of the library), and this causes the call to be "
36758 #: ../src/guestfs.pod:2279
36759 msgid "The reply message for ordinary functions is:"
36763 #: ../src/guestfs.pod:2281
36766 " total length (header + ret,\n"
36767 " but not including the length word itself)\n"
36768 " struct guestfs_message_header (encoded as XDR)\n"
36769 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36774 #: ../src/guestfs.pod:2286
36776 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36777 "functions that return no formal return values."
36781 #: ../src/guestfs.pod:2289
36783 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36787 #: ../src/guestfs.pod:2292
36789 "In the case of an error, a flag is set in the header, and the reply message "
36790 "is slightly changed:"
36794 #: ../src/guestfs.pod:2295
36797 " total length (header + error,\n"
36798 " but not including the length word itself)\n"
36799 " struct guestfs_message_header (encoded as XDR)\n"
36800 " struct guestfs_message_error (encoded as XDR)\n"
36805 #: ../src/guestfs.pod:2300
36807 "The C<guestfs_message_error> structure contains the error message as a "
36812 #: ../src/guestfs.pod:2303
36813 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36817 #: ../src/guestfs.pod:2305
36819 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
36820 "The normal request message is sent (see above). However this is followed by "
36821 "a sequence of file chunks."
36825 #: ../src/guestfs.pod:2309
36828 " total length (header + arguments,\n"
36829 " but not including the length word itself,\n"
36830 " and not including the chunks)\n"
36831 " struct guestfs_message_header (encoded as XDR)\n"
36832 " struct guestfs_<foo>_args (encoded as XDR)\n"
36833 " sequence of chunks for FileIn param #0\n"
36834 " sequence of chunks for FileIn param #1 etc.\n"
36839 #: ../src/guestfs.pod:2317
36840 msgid "The \"sequence of chunks\" is:"
36844 #: ../src/guestfs.pod:2319
36847 " length of chunk (not including length word itself)\n"
36848 " struct guestfs_chunk (encoded as XDR)\n"
36849 " length of chunk\n"
36850 " struct guestfs_chunk (encoded as XDR)\n"
36852 " length of chunk\n"
36853 " struct guestfs_chunk (with data.data_len == 0)\n"
36858 #: ../src/guestfs.pod:2327
36860 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
36861 "is set in the final chunk to indicate either successful completion or early "
36866 #: ../src/guestfs.pod:2331
36868 "At time of writing there are no functions that have more than one FileIn "
36869 "parameter. However this is (theoretically) supported, by sending the "
36870 "sequence of chunks for each FileIn parameter one after another (from left to "
36875 #: ../src/guestfs.pod:2336
36877 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36878 "transfer. The library does this by sending a chunk with a special flag set "
36879 "to indicate cancellation. When the daemon sees this, it cancels the whole "
36880 "RPC, does I<not> send any reply, and goes back to reading the next request."
36884 #: ../src/guestfs.pod:2342
36886 "The daemon may also cancel. It does this by writing a special word "
36887 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
36888 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36889 "cancel chunk). The special word is chosen so that even if cancellation "
36890 "happens right at the end of the transfer (after the library has finished "
36891 "writing and has started listening for the reply), the \"spurious\" cancel "
36892 "flag will not be confused with the reply message."
36896 #: ../src/guestfs.pod:2351
36898 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36899 "limit), and also files where the size is not known in advance (eg. from "
36900 "pipes or sockets). However the chunks are rather small "
36901 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36902 "to keep much in memory."
36906 #: ../src/guestfs.pod:2357
36907 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36911 #: ../src/guestfs.pod:2359
36913 "The protocol for FileOut parameters is exactly the same as for FileIn "
36914 "parameters, but with the roles of daemon and library reversed."
36918 #: ../src/guestfs.pod:2362
36921 " total length (header + ret,\n"
36922 " but not including the length word itself,\n"
36923 " and not including the chunks)\n"
36924 " struct guestfs_message_header (encoded as XDR)\n"
36925 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36926 " sequence of chunks for FileOut param #0\n"
36927 " sequence of chunks for FileOut param #1 etc.\n"
36932 #: ../src/guestfs.pod:2370
36933 msgid "INITIAL MESSAGE"
36937 #: ../src/guestfs.pod:2372
36939 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36940 "which indicates that the guest and daemon is alive. This is what L</"
36941 "guestfs_launch> waits for."
36945 #: ../src/guestfs.pod:2376
36946 msgid "PROGRESS NOTIFICATION MESSAGES"
36950 #: ../src/guestfs.pod:2378
36952 "The daemon may send progress notification messages at any time. These are "
36953 "distinguished by the normal length word being replaced by "
36954 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36958 #: ../src/guestfs.pod:2382
36960 "The library turns them into progress callbacks (see L</"
36961 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36966 #: ../src/guestfs.pod:2386
36968 "The daemon self-limits the frequency of progress messages it sends (see "
36969 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
36974 #: ../src/guestfs.pod:2390
36975 msgid "LIBGUESTFS VERSION NUMBERS"
36979 #: ../src/guestfs.pod:2392
36981 "Since April 2010, libguestfs has started to make separate development and "
36982 "stable releases, along with corresponding branches in our git repository. "
36983 "These separate releases can be identified by version number:"
36987 #: ../src/guestfs.pod:2397
36990 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
36991 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36997 " | `-------- sub-version\n"
36999 " `------ always '1' because we don't change the ABI\n"
37004 #: ../src/guestfs.pod:2408
37005 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37009 #: ../src/guestfs.pod:2410
37011 "As time passes we cherry pick fixes from the development branch and backport "
37012 "those into the stable branch, the effect being that the stable branch should "
37013 "get more stable and less buggy over time. So the stable releases are ideal "
37014 "for people who don't need new features but would just like the software to "
37019 #: ../src/guestfs.pod:2416
37020 msgid "Our criteria for backporting changes are:"
37024 #: ../src/guestfs.pod:2422
37026 "Documentation changes which don't affect any code are backported unless the "
37027 "documentation refers to a future feature which is not in stable."
37031 #: ../src/guestfs.pod:2428
37033 "Bug fixes which are not controversial, fix obvious problems, and have been "
37034 "well tested are backported."
37038 #: ../src/guestfs.pod:2433
37040 "Simple rearrangements of code which shouldn't affect how it works get "
37041 "backported. This is so that the code in the two branches doesn't get too "
37042 "far out of step, allowing us to backport future fixes more easily."
37046 #: ../src/guestfs.pod:2439
37048 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37049 "exceptional case: the new feature is required in order to implement an "
37050 "important bug fix."
37054 #: ../src/guestfs.pod:2445
37056 "A new stable branch starts when we think the new features in development are "
37057 "substantial and compelling enough over the current stable branch to warrant "
37058 "it. When that happens we create new stable and development versions 1.N.0 "
37059 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
37060 "stable at this point, but by backporting fixes from development, that branch "
37061 "will stabilize over time."
37065 #: ../src/guestfs.pod:2453
37066 msgid "EXTENDING LIBGUESTFS"
37070 #: ../src/guestfs.pod:2455
37071 msgid "ADDING A NEW API ACTION"
37075 #: ../src/guestfs.pod:2457
37077 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37078 "documentation) are generated, and this makes it easy to extend the "
37083 #: ../src/guestfs.pod:2461
37084 msgid "To add a new API action there are two changes:"
37088 #: ../src/guestfs.pod:2467
37090 "You need to add a description of the call (name, parameters, return type, "
37091 "tests, documentation) to C<generator/generator_actions.ml>."
37095 #: ../src/guestfs.pod:2470
37097 "There are two sorts of API action, depending on whether the call goes "
37098 "through to the daemon in the appliance, or is serviced entirely by the "
37099 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
37100 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
37101 "an example of the latter, since a trace flag is maintained in the handle and "
37102 "all tracing is done on the library side."
37106 #: ../src/guestfs.pod:2478
37108 "Most new actions are of the first type, and get added to the "
37109 "C<daemon_functions> list. Each function has a unique procedure number used "
37110 "in the RPC protocol which is assigned to that action when we publish "
37111 "libguestfs and cannot be reused. Take the latest procedure number and "
37116 #: ../src/guestfs.pod:2484
37118 "For library-only actions of the second type, add to the "
37119 "C<non_daemon_functions> list. Since these functions are serviced by the "
37120 "library and do not travel over the RPC mechanism to the daemon, these "
37121 "functions do not need a procedure number, and so the procedure number is set "
37126 #: ../src/guestfs.pod:2492
37127 msgid "Implement the action (in C):"
37131 #: ../src/guestfs.pod:2494
37133 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37134 "C<daemon/> directory."
37138 #: ../src/guestfs.pod:2497
37140 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37141 "(note: double underscore) in the C<src/> directory."
37145 #: ../src/guestfs.pod:2500
37146 msgid "In either case, use another function as an example of what to do."
37150 #: ../src/guestfs.pod:2504
37151 msgid "After making these changes, use C<make> to compile."
37155 #: ../src/guestfs.pod:2506
37157 "Note that you don't need to implement the RPC, language bindings, manual "
37158 "pages or anything else. It's all automatically generated from the OCaml "
37163 #: ../src/guestfs.pod:2510
37164 msgid "ADDING TESTS FOR AN API ACTION"
37168 #: ../src/guestfs.pod:2512
37170 "You can supply zero or as many tests as you want per API call. The tests "
37171 "can either be added as part of the API description (C<generator/"
37172 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37173 "into C<regressions/>. Note that adding a script to C<regressions/> is "
37174 "slower, so if possible use the first method."
37178 #: ../src/guestfs.pod:2518
37180 "The following describes the test environment used when you add an API test "
37181 "in C<generator_actions.ml>."
37185 #: ../src/guestfs.pod:2521
37186 msgid "The test environment has 4 block devices:"
37190 #: ../src/guestfs.pod:2525
37191 msgid "C</dev/sda> 500MB"
37192 msgstr "C</dev/sda> 500 МБ"
37195 #: ../src/guestfs.pod:2527
37196 msgid "General block device for testing."
37200 #: ../src/guestfs.pod:2529
37201 msgid "C</dev/sdb> 50MB"
37202 msgstr "C</dev/sdb> 50 МБ"
37205 #: ../src/guestfs.pod:2531
37207 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37212 #: ../src/guestfs.pod:2534
37213 msgid "C</dev/sdc> 10MB"
37214 msgstr "C</dev/sdc> 10 МБ"
37217 #: ../src/guestfs.pod:2536
37218 msgid "Used in a few tests where two block devices are needed."
37222 #: ../src/guestfs.pod:2538
37223 msgid "C</dev/sdd>"
37224 msgstr "C</dev/sdd>"
37227 #: ../src/guestfs.pod:2540
37228 msgid "ISO with fixed content (see C<images/test.iso>)."
37232 #: ../src/guestfs.pod:2544
37234 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37235 "appliance and block devices are reused between tests. So don't try testing "
37236 "L</guestfs_kill_subprocess> :-x"
37240 #: ../src/guestfs.pod:2548
37242 "Each test starts with an initial scenario, selected using one of the "
37243 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
37244 "initialize the disks mentioned above in a particular way as documented in "
37245 "C<generator_types.ml>. You should not assume anything about the previous "
37246 "contents of other disks that are not initialized."
37250 #: ../src/guestfs.pod:2554
37252 "You can add a prerequisite clause to any individual test. This is a run-"
37253 "time check, which, if it fails, causes the test to be skipped. Useful if "
37254 "testing a command which might not work on all variations of libguestfs "
37255 "builds. A test that has prerequisite of C<Always> means to run "
37260 #: ../src/guestfs.pod:2560
37262 "In addition, packagers can skip individual tests by setting environment "
37263 "variables before running C<make check>."
37267 #: ../src/guestfs.pod:2563
37270 " SKIP_TEST_<CMD>_<NUM>=1\n"
37275 #: ../src/guestfs.pod:2565
37276 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37280 #: ../src/guestfs.pod:2567
37285 #: ../src/guestfs.pod:2569
37288 " SKIP_TEST_<CMD>=1\n"
37293 #: ../src/guestfs.pod:2571
37294 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37298 #: ../src/guestfs.pod:2573
37299 msgid "Packagers can run only certain tests by setting for example:"
37303 #: ../src/guestfs.pod:2575
37306 " TEST_ONLY=\"vfs_type zerofree\"\n"
37311 #: ../src/guestfs.pod:2577
37313 "See C<capitests/tests.c> for more details of how these environment variables "
37318 #: ../src/guestfs.pod:2580
37319 msgid "DEBUGGING NEW API ACTIONS"
37323 #: ../src/guestfs.pod:2582
37324 msgid "Test new actions work before submitting them."
37328 #: ../src/guestfs.pod:2584
37329 msgid "You can use guestfish to try out new commands."
37333 #: ../src/guestfs.pod:2586
37335 "Debugging the daemon is a problem because it runs inside a minimal "
37336 "environment. However you can fprintf messages in the daemon to stderr, and "
37337 "they will show up if you use C<guestfish -v>."
37341 #: ../src/guestfs.pod:2590
37342 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37346 #: ../src/guestfs.pod:2592
37348 "Our C source code generally adheres to some basic code-formatting "
37349 "conventions. The existing code base is not totally consistent on this "
37350 "front, but we do prefer that contributed code be formatted similarly. In "
37351 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37352 "indentation level, and other than that, follow the K&R style."
37356 #: ../src/guestfs.pod:2598
37358 "If you use Emacs, add the following to one of one of your start-up files (e."
37359 "g., ~/.emacs), to help ensure that you get indentation right:"
37363 #: ../src/guestfs.pod:2601
37366 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37367 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37368 " (add-hook 'find-file-hook\n"
37369 " '(lambda () (if (and buffer-file-name\n"
37370 " (string-match \"/libguestfs\\\\>\"\n"
37371 " (buffer-file-name))\n"
37372 " (not (string-equal mode-name \"Change Log\"))\n"
37373 " (not (string-equal mode-name \"Makefile\")))\n"
37374 " (setq indent-tabs-mode nil))))\n"
37379 #: ../src/guestfs.pod:2611
37382 " ;;; When editing C sources in libguestfs, use this style.\n"
37383 " (defun libguestfs-c-mode ()\n"
37384 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
37386 " (c-set-style \"K&R\")\n"
37387 " (setq c-indent-level 2)\n"
37388 " (setq c-basic-offset 2))\n"
37389 " (add-hook 'c-mode-hook\n"
37390 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37391 " (buffer-file-name))\n"
37392 " (libguestfs-c-mode))))\n"
37397 #: ../src/guestfs.pod:2623
37398 msgid "Enable warnings when compiling (and fix any problems this finds):"
37402 #: ../src/guestfs.pod:2626
37405 " ./configure --enable-gcc-warnings\n"
37408 " ./configure --enable-gcc-warnings\n"
37412 #: ../src/guestfs.pod:2628
37413 msgid "Useful targets are:"
37417 #: ../src/guestfs.pod:2630
37420 " make syntax-check # checks the syntax of the C code\n"
37421 " make check # runs the test suite\n"
37426 #: ../src/guestfs.pod:2633
37427 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37431 #: ../src/guestfs.pod:2635
37433 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37434 "which are used to do shell quoting."
37438 #: ../src/guestfs.pod:2640
37443 #: ../src/guestfs.pod:2642
37445 "Simple shell quoted string. Any spaces or other shell characters are "
37450 #: ../src/guestfs.pod:2645
37455 #: ../src/guestfs.pod:2647
37457 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37462 #: ../src/guestfs.pod:2654
37465 " asprintf (&cmd, \"cat %R\", path);\n"
37470 #: ../src/guestfs.pod:2656
37471 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37475 #: ../src/guestfs.pod:2658
37477 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37478 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
37479 "they are not passed via the shell (instead, straight to exec). You probably "
37480 "want to use the C<sysroot_path()> function however."
37484 #: ../src/guestfs.pod:2664
37485 msgid "SUBMITTING YOUR NEW API ACTIONS"
37489 #: ../src/guestfs.pod:2666
37491 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37492 "libguestfs> and CC to L<rjones@redhat.com>."
37496 #: ../src/guestfs.pod:2670
37497 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37501 #: ../src/guestfs.pod:2672
37502 msgid "We support i18n (gettext anyhow) in the library."
37506 #: ../src/guestfs.pod:2674
37508 "However many messages come from the daemon, and we don't translate those at "
37509 "the moment. One reason is that the appliance generally has all locale files "
37510 "removed from it, because they take up a lot of space. So we'd have to readd "
37511 "some of those, as well as copying our PO files into the appliance."
37515 #: ../src/guestfs.pod:2680
37517 "Debugging messages are never translated, since they are intended for the "
37522 #: ../src/guestfs.pod:2683
37523 msgid "SOURCE CODE SUBDIRECTORIES"
37527 #: ../src/guestfs.pod:2689
37528 msgid "The libguestfs appliance, build scripts and so on."
37532 #: ../src/guestfs.pod:2691
37533 msgid "C<capitests>"
37534 msgstr "C<capitests>"
37537 #: ../src/guestfs.pod:2693
37538 msgid "Automated tests of the C API."
37542 #: ../src/guestfs.pod:2695
37547 #: ../src/guestfs.pod:2697
37549 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37554 #: ../src/guestfs.pod:2700
37559 #: ../src/guestfs.pod:2702
37561 "Safety and liveness tests of components that libguestfs depends upon (not of "
37562 "libguestfs itself). Mainly this is for qemu and the kernel."
37566 #: ../src/guestfs.pod:2705
37568 msgstr "C<contrib>"
37571 #: ../src/guestfs.pod:2707
37572 msgid "Outside contributions, experimental parts."
37576 #: ../src/guestfs.pod:2709
37581 #: ../src/guestfs.pod:2711
37583 "The daemon that runs inside the libguestfs appliance and carries out actions."
37587 #: ../src/guestfs.pod:2714
37592 #: ../src/guestfs.pod:2716
37593 msgid "L<virt-df(1)> command and documentation."
37597 #: ../src/guestfs.pod:2718
37602 #: ../src/guestfs.pod:2720
37603 msgid "L<virt-edit(1)> command and documentation."
37607 #: ../src/guestfs.pod:2722
37608 msgid "C<examples>"
37609 msgstr "C<examples>"
37612 #: ../src/guestfs.pod:2724
37613 msgid "C API example code."
37614 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37617 #: ../src/guestfs.pod:2726
37622 #: ../src/guestfs.pod:2728
37624 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37625 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37626 "L<virt-tar-out(1)>."
37630 #: ../src/guestfs.pod:2732
37635 #: ../src/guestfs.pod:2734
37637 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37641 #: ../src/guestfs.pod:2736
37642 msgid "C<generator>"
37643 msgstr "C<generator>"
37646 #: ../src/guestfs.pod:2738
37648 "The crucially important generator, used to automatically generate large "
37649 "amounts of boilerplate C code for things like RPC and bindings."
37653 #: ../src/guestfs.pod:2741
37658 #: ../src/guestfs.pod:2743
37659 msgid "Files used by the test suite."
37663 #: ../src/guestfs.pod:2745
37664 msgid "Some \"phony\" guest images which we test against."
37668 #: ../src/guestfs.pod:2747
37669 msgid "C<inspector>"
37670 msgstr "C<inspector>"
37673 #: ../src/guestfs.pod:2749
37674 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37678 #: ../src/guestfs.pod:2751
37683 #: ../src/guestfs.pod:2753
37684 msgid "Logo used on the website. The fish is called Arthur by the way."
37688 #: ../src/guestfs.pod:2755
37693 #: ../src/guestfs.pod:2757
37694 msgid "M4 macros used by autoconf."
37698 #: ../src/guestfs.pod:2759
37703 #: ../src/guestfs.pod:2761
37704 msgid "Translations of simple gettext strings."
37705 msgstr "Переклади простих рядків gettext."
37708 #: ../src/guestfs.pod:2763
37710 msgstr "C<po-docs>"
37713 #: ../src/guestfs.pod:2765
37715 "The build infrastructure and PO files for translations of manpages and POD "
37716 "files. Eventually this will be combined with the C<po> directory, but that "
37717 "is rather complicated."
37721 #: ../src/guestfs.pod:2769
37722 msgid "C<regressions>"
37723 msgstr "C<regressions>"
37726 #: ../src/guestfs.pod:2771
37727 msgid "Regression tests."
37728 msgstr "Тести на регресії."
37731 #: ../src/guestfs.pod:2773
37736 #: ../src/guestfs.pod:2775
37737 msgid "L<virt-rescue(1)> command and documentation."
37741 #: ../src/guestfs.pod:2777
37746 #: ../src/guestfs.pod:2779
37747 msgid "Source code to the C library."
37751 #: ../src/guestfs.pod:2781
37756 #: ../src/guestfs.pod:2783
37757 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37761 #: ../src/guestfs.pod:2785
37762 msgid "C<test-tool>"
37763 msgstr "C<test-tool>"
37766 #: ../src/guestfs.pod:2787
37768 "Test tool for end users to test if their qemu/kernel combination will work "
37773 #: ../src/guestfs.pod:2790
37778 #: ../src/guestfs.pod:2792
37780 msgstr "C<haskell>"
37783 #: ../src/guestfs.pod:2794
37788 #: ../src/guestfs.pod:2796
37793 #: ../src/guestfs.pod:2798
37798 #: ../src/guestfs.pod:2800
37803 #: ../src/guestfs.pod:2802
37808 #: ../src/guestfs.pod:2804
37813 #: ../src/guestfs.pod:2806
37814 msgid "Language bindings."
37815 msgstr "Прив’язки до мов програмування."
37818 #: ../src/guestfs.pod:2810
37819 msgid "MAKING A STABLE RELEASE"
37823 #: ../src/guestfs.pod:2812
37825 "When we make a stable release, there are several steps documented here. See "
37826 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37831 #: ../src/guestfs.pod:2820
37833 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37837 #: ../src/guestfs.pod:2825
37838 msgid "Finalize RELEASE-NOTES."
37842 #: ../src/guestfs.pod:2829
37843 msgid "Update ROADMAP."
37847 #: ../src/guestfs.pod:2833
37848 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37852 #: ../src/guestfs.pod:2837
37853 msgid "Push and pull from Transifex."
37857 #: ../src/guestfs.pod:2839
37862 #: ../src/guestfs.pod:2841
37870 #: ../src/guestfs.pod:2843
37871 msgid "to push the latest POT files to Transifex. Then run:"
37875 #: ../src/guestfs.pod:2845
37883 #: ../src/guestfs.pod:2847
37884 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37888 #: ../src/guestfs.pod:2851
37890 "Create new stable and development directories under L<http://libguestfs.org/"
37895 #: ../src/guestfs.pod:2856
37896 msgid "Create the branch in git:"
37900 #: ../src/guestfs.pod:2858
37903 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37904 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37905 " git branch stable-1.XX\n"
37906 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37911 #: ../src/guestfs.pod:2865
37916 #: ../src/guestfs.pod:2867
37917 msgid "PROTOCOL LIMITS"
37918 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
37921 #: ../src/guestfs.pod:2869
37923 "Internally libguestfs uses a message-based protocol to pass API calls and "
37924 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37925 "plenty more detail about this). The maximum message size used by the "
37926 "protocol is slightly less than 4 MB. For some API calls you may need to be "
37927 "aware of this limit. The API calls which may be affected are individually "
37928 "documented, with a link back to this section of the documentation."
37932 #: ../src/guestfs.pod:2877
37934 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37935 "a simple string. Because this string is at some point internally encoded as "
37936 "a message, the maximum size that it can return is slightly under 4 MB. If "
37937 "the requested file is larger than this then you will get an error."
37941 #: ../src/guestfs.pod:2883
37943 "In order to transfer large files into and out of the guest filesystem, you "
37944 "need to use particular calls that support this. The sections L</UPLOADING> "
37945 "and L</DOWNLOADING> document how to do this."
37949 #: ../src/guestfs.pod:2887
37951 "You might also consider mounting the disk image using our FUSE filesystem "
37952 "support (L<guestmount(1)>)."
37956 #: ../src/guestfs.pod:2890
37957 msgid "MAXIMUM NUMBER OF DISKS"
37961 #: ../src/guestfs.pod:2892
37962 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37966 #: ../src/guestfs.pod:2895
37968 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37969 "slots. However febootstrap only understands disks with names C</dev/vda> "
37970 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37975 #: ../src/guestfs.pod:2900
37977 "We are working to substantially raise this limit in future versions but it "
37978 "requires complex changes to qemu."
37982 #: ../src/guestfs.pod:2903
37984 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37985 "disks (add and remove disks after calling L</guestfs_launch>). This also "
37986 "requires changes to qemu."
37990 #: ../src/guestfs.pod:2907
37991 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37995 #: ../src/guestfs.pod:2909
37996 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38000 #: ../src/guestfs.pod:2911
38002 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38003 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38007 #: ../src/guestfs.pod:2914
38009 "If you attach a disk with more than 15 partitions, the extra partitions are "
38010 "ignored by libguestfs."
38014 #: ../src/guestfs.pod:2917
38015 msgid "MAXIMUM SIZE OF A DISK"
38019 #: ../src/guestfs.pod:2919
38020 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38024 #: ../src/guestfs.pod:2921
38026 "We have tested block devices up to 1 exabyte (2**60 or "
38027 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38032 #: ../src/guestfs.pod:2925
38034 "Although libguestfs probably does not impose any limit, the underlying host "
38035 "storage will. If you store disk images on a host ext4 filesystem, then the "
38036 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38037 "TB). If you store disk images as host logical volumes then you are limited "
38038 "by the maximum size of an LV."
38042 #: ../src/guestfs.pod:2931
38044 "For the hugest disk image files, we recommend using XFS on the host for "
38049 #: ../src/guestfs.pod:2934
38050 msgid "MAXIMUM SIZE OF A PARTITION"
38054 #: ../src/guestfs.pod:2936
38056 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38057 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
38058 "address a partition located beyond 2 TB on the disk."
38062 #: ../src/guestfs.pod:2940
38064 "It is recommended that you use GPT partitions on disks which are larger than "
38065 "this size. GPT uses 64 bit sector numbers and so can address partitions "
38066 "which are theoretically larger than the largest disk we could support."
38070 #: ../src/guestfs.pod:2945
38071 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38075 #: ../src/guestfs.pod:2947
38077 "This depends on the filesystem type. libguestfs itself does not impose any "
38078 "known limit. Consult Wikipedia or the filesystem documentation to find out "
38079 "what these limits are."
38083 #: ../src/guestfs.pod:2951
38084 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38088 #: ../src/guestfs.pod:2953
38090 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38091 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38092 "uploads and downloads."
38096 #: ../src/guestfs.pod:2957
38097 msgid "INSPECTION LIMITS"
38101 #: ../src/guestfs.pod:2959
38103 "The inspection code has several arbitrary limits on things like the size of "
38104 "Windows Registry hive it will read, and the length of product name. These "
38105 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38106 "memory and disk space on the host, and should not be reached in practice. "
38107 "See the source code for more information."
38111 #: ../src/guestfs.pod:2985
38113 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
38114 "effect as calling C<guestfs_set_verbose (g, 1)>."
38118 #: ../src/guestfs.pod:2997
38120 "Set the path that libguestfs uses to search for a supermin appliance. See "
38121 "the discussion of paths in section L</PATH> above."
38125 #: ../src/guestfs.pod:3006
38126 msgid "See also L</QEMU WRAPPERS> above."
38130 #: ../src/guestfs.pod:3010
38132 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
38133 "effect as calling C<guestfs_set_trace (g, 1)>."
38137 #: ../src/guestfs.pod:3028
38139 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38140 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38141 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38142 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38143 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38144 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38145 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38146 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38150 #: ../src/guestfs.pod:3058
38152 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38153 "(8)>, L<disktype(1)>."
38157 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553
38158 #: ../tools/virt-win-reg.pl:761
38163 #: ../src/guestfs.pod:3067
38164 msgid "To get a list of bugs against libguestfs use this link:"
38166 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38170 #: ../src/guestfs.pod:3069
38172 "L<https://bugzilla.redhat.com/buglist.cgi?"
38173 "component=libguestfs&product=Virtualization+Tools>"
38175 "L<https://bugzilla.redhat.com/buglist.cgi?"
38176 "component=libguestfs&product=Virtualization+Tools>"
38179 #: ../src/guestfs.pod:3071
38180 msgid "To report a new bug against libguestfs use this link:"
38181 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38184 #: ../src/guestfs.pod:3073
38186 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38187 "component=libguestfs&product=Virtualization+Tools>"
38189 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38190 "component=libguestfs&product=Virtualization+Tools>"
38193 #: ../src/guestfs.pod:3075
38194 msgid "When reporting a bug, please check:"
38198 #: ../src/guestfs.pod:3081
38199 msgid "That the bug hasn't been reported already."
38203 #: ../src/guestfs.pod:3085
38204 msgid "That you are testing a recent version."
38208 #: ../src/guestfs.pod:3089
38209 msgid "Describe the bug accurately, and give a way to reproduce it."
38213 #: ../src/guestfs.pod:3093
38215 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38220 #: ../test-tool/libguestfs-test-tool.pod:5
38221 msgid "libguestfs-test-tool - End user tests for libguestfs"
38225 #: ../test-tool/libguestfs-test-tool.pod:9
38228 " libguestfs-test-tool [--options]\n"
38233 #: ../test-tool/libguestfs-test-tool.pod:13
38235 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38236 "and developers, to allow them to check basic libguestfs functionality is "
38237 "working. This is needed because libguestfs occasionally breaks for reasons "
38238 "beyond our control: usually because of changes in the underlying qemu or "
38239 "kernel packages, or the host environment."
38243 #: ../test-tool/libguestfs-test-tool.pod:20
38244 msgid "If you suspect a problem in libguestfs, then just run:"
38248 #: ../test-tool/libguestfs-test-tool.pod:22
38251 " libguestfs-test-tool\n"
38256 #: ../test-tool/libguestfs-test-tool.pod:24
38257 msgid "It will print lots of diagnostic messages."
38261 #: ../test-tool/libguestfs-test-tool.pod:26
38262 msgid "If it runs to completion successfully, you will see this near the end:"
38266 #: ../test-tool/libguestfs-test-tool.pod:28
38269 " ===== TEST FINISHED OK =====\n"
38274 #: ../test-tool/libguestfs-test-tool.pod:30
38275 msgid "and the test tool will exit with code 0."
38279 #: ../test-tool/libguestfs-test-tool.pod:32
38281 "If it fails (and/or exits with non-zero error code), please paste the "
38282 "B<complete, unedited> output of the test tool into a bug report. More "
38283 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38288 #: ../test-tool/libguestfs-test-tool.pod:41
38293 #: ../test-tool/libguestfs-test-tool.pod:43
38294 msgid "Display short usage information and exit."
38298 #: ../test-tool/libguestfs-test-tool.pod:45
38299 msgid "I<--qemu qemu_binary>"
38300 msgstr "I<--qemu виконуваний_файл_qemu>"
38303 #: ../test-tool/libguestfs-test-tool.pod:47
38305 "If you have downloaded another qemu binary, point this option at the full "
38306 "path of the binary to try it."
38310 #: ../test-tool/libguestfs-test-tool.pod:50
38311 msgid "I<--qemudir qemu_source_dir>"
38315 #: ../test-tool/libguestfs-test-tool.pod:52
38317 "If you have compiled qemu from source, point this option at the source "
38318 "directory to try it."
38322 #: ../test-tool/libguestfs-test-tool.pod:55
38323 msgid "I<--timeout N>"
38324 msgstr "I<--timeout N>"
38327 #: ../test-tool/libguestfs-test-tool.pod:57
38329 "Set the launch timeout to C<N> seconds. The default is 120 seconds which "
38330 "does not usually need to be adjusted unless your machine is very slow."
38334 #: ../test-tool/libguestfs-test-tool.pod:63
38335 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38339 #: ../test-tool/libguestfs-test-tool.pod:65
38341 "If you have compiled another version of qemu from source and would like to "
38342 "try that, then you can use the I<--qemudir> option to point to the qemu "
38343 "source directory."
38347 #: ../test-tool/libguestfs-test-tool.pod:69
38349 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38350 "option to point to the binary."
38354 #: ../test-tool/libguestfs-test-tool.pod:72
38356 "When using an alternate qemu with libguestfs, usually you would need to "
38357 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38358 ">). libguestfs-test-tool writes a temporary qemu wrapper script when you "
38359 "use either of the I<--qemudir> or I<--qemu> options."
38363 #: ../test-tool/libguestfs-test-tool.pod:79
38365 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38366 "I<1> if there was an error."
38370 #: ../test-tool/libguestfs-test-tool.pod:84
38372 "For the full list of environment variables which may affect libguestfs, "
38373 "please see the L<guestfs(3)> manual page."
38377 #: ../test-tool/libguestfs-test-tool.pod:89
38378 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38382 #: ../tools/virt-list-filesystems.pl:32
38384 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38388 #: ../tools/virt-list-filesystems.pl:36
38391 " virt-list-filesystems [--options] domname\n"
38396 #: ../tools/virt-list-filesystems.pl:38
38399 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38404 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38406 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
38411 #: ../tools/virt-list-filesystems.pl:45
38413 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38414 "are contained in a virtual machine or disk image."
38418 #: ../tools/virt-list-filesystems.pl:49
38420 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38421 "functionality. For more complex cases you should look at the L<guestfish(1)"
38426 #: ../tools/virt-list-filesystems.pl:112
38428 "With this option, C<virt-list-filesystems> displays the type of each "
38429 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38433 #: ../tools/virt-list-filesystems.pl:119
38435 #| msgid "B<-a image>"
38437 msgstr "B<-a образ>"
38440 #: ../tools/virt-list-filesystems.pl:123
38442 "Normally we only show mountable filesystems. If this option is given then "
38443 "swap devices are shown too."
38447 #: ../tools/virt-list-filesystems.pl:197
38449 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38450 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38451 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38453 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38454 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38455 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38458 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38459 msgid "Copyright (C) 2009 Red Hat Inc."
38460 msgstr "© Red Hat Inc., 2009"
38463 #: ../tools/virt-list-partitions.pl:32
38465 "virt-list-partitions - List partitions in a virtual machine or disk image"
38469 #: ../tools/virt-list-partitions.pl:36
38472 " virt-list-partitions [--options] domname\n"
38475 " virt-list-partitions [--параметри] назва_домену\n"
38479 #: ../tools/virt-list-partitions.pl:38
38482 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38485 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38489 #: ../tools/virt-list-partitions.pl:45
38491 "C<virt-list-partitions> is a command line tool to list the partitions that "
38492 "are contained in a virtual machine or disk image. It is mainly useful as a "
38493 "first step to using L<virt-resize(1)>."
38497 #: ../tools/virt-list-partitions.pl:50
38499 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38500 "functionality. For more complex cases you should look at the L<guestfish(1)"
38505 #: ../tools/virt-list-partitions.pl:113
38506 msgid "Show sizes in human-readable form (eg. \"1G\")."
38510 #: ../tools/virt-list-partitions.pl:123
38512 "With this option, C<virt-list-partitions> displays the type and size of each "
38513 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38517 #: ../tools/virt-list-partitions.pl:130
38522 #: ../tools/virt-list-partitions.pl:132
38524 #| msgid "B<-t> | B<--total>"
38526 msgstr "B<-t> | B<--total>"
38529 #: ../tools/virt-list-partitions.pl:134
38531 "Display the total size of each block device (as a separate row or rows)."
38535 #: ../tools/virt-list-partitions.pl:267
38537 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38538 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38539 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38541 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38542 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38543 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38546 #: ../tools/virt-list-partitions.pl:283
38547 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38548 msgstr "© Red Hat Inc., 2009–2010"
38551 #: ../tools/virt-make-fs.pl:37
38552 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38556 #: ../tools/virt-make-fs.pl:41
38559 " virt-make-fs [--options] input.tar output.img\n"
38564 #: ../tools/virt-make-fs.pl:43
38567 " virt-make-fs [--options] input.tar.gz output.img\n"
38572 #: ../tools/virt-make-fs.pl:45
38575 " virt-make-fs [--options] directory output.img\n"
38580 #: ../tools/virt-make-fs.pl:49
38582 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38583 "archive or some files in a directory. It is similar to tools like L<mkisofs"
38584 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
38585 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38586 "you want to attach these filesystems to existing virtual machines (eg. to "
38587 "import large amounts of read-only data to a VM)."
38591 #: ../tools/virt-make-fs.pl:57
38592 msgid "Basic usage is:"
38596 #: ../tools/virt-make-fs.pl:59
38599 " virt-make-fs input output\n"
38604 #: ../tools/virt-make-fs.pl:61
38606 "where C<input> is either a directory containing files that you want to add, "
38607 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38608 "C<output> is a disk image. The input type is detected automatically. The "
38609 "output disk image defaults to a raw ext2 image unless you specify extra "
38610 "flags (see L</OPTIONS> below)."
38614 #: ../tools/virt-make-fs.pl:67
38615 msgid "EXTRA SPACE"
38619 #: ../tools/virt-make-fs.pl:69
38621 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38622 "the files that it contains, but might have extra space. Depending on how "
38623 "you are going to use the output, you might think this extra space is wasted "
38624 "and want to minimize it, or you might want to leave space so that more files "
38625 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
38626 "but you can use the I<--size> flag to leave space in the filesystem if you "
38631 #: ../tools/virt-make-fs.pl:77
38633 "An alternative way to leave extra space but not make the output image any "
38634 "bigger is to use an alternative disk image format (instead of the default "
38635 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38636 "image format (check your hypervisor supports this before using it). This "
38637 "allows you to choose a large I<--size> but the extra space won't actually be "
38638 "allocated in the image until you try to store something in it."
38642 #: ../tools/virt-make-fs.pl:85
38644 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38645 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38646 "to build another image from scratch."
38650 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38651 #: ../tools/virt-make-fs.pl:142
38656 #: ../tools/virt-make-fs.pl:91
38659 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38662 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38666 #: ../tools/virt-make-fs.pl:93
38667 msgid "FILESYSTEM TYPE"
38668 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38671 #: ../tools/virt-make-fs.pl:95
38673 "The default filesystem type is C<ext2>. Just about any filesystem type that "
38674 "libguestfs supports can be used (but I<not> read-only formats like "
38675 "ISO9660). Here are some of the more common choices:"
38679 #: ../tools/virt-make-fs.pl:101
38684 #: ../tools/virt-make-fs.pl:103
38686 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
38687 "you are not going to use the filesystem in a way that requires the journal, "
38688 "then this is just wasted overhead."
38692 #: ../tools/virt-make-fs.pl:107
38693 msgid "I<ntfs> or I<vfat>"
38694 msgstr "I<ntfs> або I<vfat>"
38697 #: ../tools/virt-make-fs.pl:109
38698 msgid "Useful if exporting data to a Windows guest."
38702 #: ../tools/virt-make-fs.pl:111
38704 "I<Note for vfat>: The tar archive or local directory must only contain files "
38705 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
38706 "program running within libguestfs is unable to change the ownership of non-"
38707 "root files, since vfat itself does not support this."
38711 #: ../tools/virt-make-fs.pl:116
38716 #: ../tools/virt-make-fs.pl:118
38718 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38719 "total filesystem size."
38723 #: ../tools/virt-make-fs.pl:125
38726 " virt-make-fs --type=minix input minixfs.img\n"
38731 #: ../tools/virt-make-fs.pl:127
38732 msgid "TO PARTITION OR NOT TO PARTITION"
38736 #: ../tools/virt-make-fs.pl:129
38737 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38741 #: ../tools/virt-make-fs.pl:131
38743 "Adding a partition can make the disk image more compatible with certain "
38744 "virtualized operating systems which don't expect to see a filesystem "
38745 "directly located on a block device (Linux doesn't care and will happily "
38746 "handle both types)."
38750 #: ../tools/virt-make-fs.pl:136
38752 "On the other hand, if you have a partition table then the output image is no "
38753 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
38754 "directly on a partitioned disk image. (However libguestfs tools such as "
38755 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38759 #: ../tools/virt-make-fs.pl:144
38760 msgid "Add an MBR partition:"
38764 #: ../tools/virt-make-fs.pl:146
38767 " virt-make-fs --partition -- input disk.img\n"
38772 #: ../tools/virt-make-fs.pl:148
38774 "If the output disk image could be terabyte-sized or larger, it's better to "
38775 "use an EFI/GPT-compatible partition table:"
38779 #: ../tools/virt-make-fs.pl:151
38782 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38787 #: ../tools/virt-make-fs.pl:179
38788 msgid "Enable debugging information."
38789 msgstr "Увімкнути виведення діагностичних даних."
38792 #: ../tools/virt-make-fs.pl:185
38793 msgid "B<--size=E<lt>NE<gt>>"
38794 msgstr "B<--size=E<lt>NE<gt>>"
38797 #: ../tools/virt-make-fs.pl:187
38798 msgid "B<--size=+E<lt>NE<gt>>"
38799 msgstr "B<--size=+E<lt>NE<gt>>"
38802 #: ../tools/virt-make-fs.pl:189
38803 msgid "B<-s E<lt>NE<gt>>"
38804 msgstr "B<-s E<lt>NE<gt>>"
38807 #: ../tools/virt-make-fs.pl:191
38808 msgid "B<-s +E<lt>NE<gt>>"
38809 msgstr "B<-s +E<lt>NE<gt>>"
38812 #: ../tools/virt-make-fs.pl:193
38814 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38818 #: ../tools/virt-make-fs.pl:196
38820 "If this option is I<not> given, then the output image will be just large "
38821 "enough to contain all the files, with not much wasted space."
38825 #: ../tools/virt-make-fs.pl:199
38827 "To choose a fixed size output disk, specify an absolute number followed by b/"
38828 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38829 "Petabytes or Exabytes. This must be large enough to contain all the input "
38830 "files, else you will get an error."
38834 #: ../tools/virt-make-fs.pl:204
38836 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38837 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38838 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
38839 "the input files, and (approximately) an extra 200 MB free space."
38843 #: ../tools/virt-make-fs.pl:210
38845 "Note that virt-make-fs estimates free space, and therefore will not produce "
38846 "filesystems containing precisely the free space requested. (It is much more "
38847 "expensive and time-consuming to produce a filesystem which has precisely the "
38848 "desired free space)."
38852 #: ../tools/virt-make-fs.pl:219
38853 msgid "B<--format=E<lt>fmtE<gt>>"
38857 #: ../tools/virt-make-fs.pl:221
38858 msgid "B<-F E<lt>fmtE<gt>>"
38862 #: ../tools/virt-make-fs.pl:223
38863 msgid "Choose the output disk image format."
38867 #: ../tools/virt-make-fs.pl:225
38868 msgid "The default is C<raw> (raw disk image)."
38872 #: ../tools/virt-make-fs.pl:227
38874 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
38875 "that would really make sense here is C<qcow2>."
38879 #: ../tools/virt-make-fs.pl:234
38880 msgid "B<--type=E<lt>fsE<gt>>"
38884 #: ../tools/virt-make-fs.pl:236
38885 msgid "B<-t E<lt>fsE<gt>>"
38889 #: ../tools/virt-make-fs.pl:238
38890 msgid "Choose the output filesystem type."
38894 #: ../tools/virt-make-fs.pl:240
38895 msgid "The default is C<ext2>."
38896 msgstr "Типовим значенням є C<ext2>."
38899 #: ../tools/virt-make-fs.pl:242
38901 "Any filesystem which is supported read-write by libguestfs can be used here."
38905 #: ../tools/virt-make-fs.pl:249
38906 msgid "B<--partition>"
38907 msgstr "B<--partition>"
38910 #: ../tools/virt-make-fs.pl:251
38911 msgid "B<--partition=E<lt>parttypeE<gt>>"
38915 #: ../tools/virt-make-fs.pl:253
38917 "If specified, this flag adds an MBR partition table to the output disk image."
38921 #: ../tools/virt-make-fs.pl:256
38923 "You can change the partition table type, eg. I<--partition=gpt> for large "
38928 #: ../tools/virt-make-fs.pl:259
38930 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38931 "might consider the next parameter to be the partition type. For example:"
38935 #: ../tools/virt-make-fs.pl:263
38938 " virt-make-fs --partition input.tar ...\n"
38943 #: ../tools/virt-make-fs.pl:265
38945 "would cause virt-make-fs to think you wanted to use a partition type of "
38946 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
38947 "dash) between options and the input file argument:"
38951 #: ../tools/virt-make-fs.pl:269
38954 " virt-make-fs --partition -- input.tar ...\n"
38957 " virt-make-fs --partition -- input.tar ...\n"
38961 #: ../tools/virt-make-fs.pl:541
38963 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38964 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38965 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38967 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38968 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38969 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38972 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38974 "When reporting bugs, please enable debugging and capture the I<complete> "
38979 #: ../tools/virt-make-fs.pl:558
38982 " export LIBGUESTFS_DEBUG=1\n"
38983 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38986 " export LIBGUESTFS_DEBUG=1\n"
38987 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38991 #: ../tools/virt-make-fs.pl:561
38993 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
38998 #: ../tools/virt-tar.pl:33
38999 msgid "virt-tar - Extract or upload files to a virtual machine"
39003 #: ../tools/virt-tar.pl:37
39006 " virt-tar [--options] -x domname directory tarball\n"
39011 #: ../tools/virt-tar.pl:39
39014 " virt-tar [--options] -u domname tarball directory\n"
39019 #: ../tools/virt-tar.pl:41
39022 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39027 #: ../tools/virt-tar.pl:43
39030 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39035 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39040 #: ../tools/virt-tar.pl:47
39042 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39043 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39047 #: ../tools/virt-tar.pl:52
39048 msgid "Download C</home> from the VM into a local tarball:"
39052 #: ../tools/virt-tar.pl:54
39055 " virt-tar -x domname /home home.tar\n"
39060 #: ../tools/virt-tar.pl:56
39063 " virt-tar -zx domname /home home.tar.gz\n"
39068 #: ../tools/virt-tar.pl:58
39069 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39073 #: ../tools/virt-tar.pl:60
39076 " virt-tar -u domname uploadstuff.tar /tmp\n"
39081 #: ../tools/virt-tar.pl:62
39084 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39089 #: ../tools/virt-tar.pl:66
39091 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39092 "virtual machines. If you do this, you risk disk corruption in the VM. "
39093 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39097 #: ../tools/virt-tar.pl:71
39099 "You can use I<-x> (extract) on live virtual machines, but you might get "
39100 "inconsistent results or errors if there is filesystem activity inside the "
39101 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
39102 "work, but the only way to guarantee consistent results is if the virtual "
39103 "machine is shut down."
39107 #: ../tools/virt-tar.pl:79
39109 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39110 "parts of a guest filesystem. There are many possibilities: making backups, "
39111 "uploading data files, snooping on guest activity, fixing or customizing "
39116 #: ../tools/virt-tar.pl:84
39118 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
39119 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
39120 "should look at the L<guestfish(1)> tool."
39124 #: ../tools/virt-tar.pl:88
39126 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39127 "its contents (recursively) from the virtual machine into a local tarball. "
39128 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39129 "virtual machine. You cannot use these two options together."
39133 #: ../tools/virt-tar.pl:94
39135 "In addition, you may need to use the I<-z> (gZip) option to enable "
39136 "compression. When uploading, you have to specify I<-z> if the upload file "
39137 "is compressed because virt-tar won't detect this on its own."
39141 #: ../tools/virt-tar.pl:98
39143 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
39144 "example it cannot do PKZip files or bzip2 compression. If you want that "
39145 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
39146 "the L<libguestfs(3)> API)."
39150 #: ../tools/virt-tar.pl:160
39152 #| msgid "B<--format>"
39153 msgid "B<--extract>"
39154 msgstr "B<--format>"
39157 #: ../tools/virt-tar.pl:162
39159 #| msgid "download"
39160 msgid "B<--download>"
39164 #: ../tools/virt-tar.pl:164
39169 #: ../tools/virt-tar.pl:166
39171 #| msgid "B<-u> | B<--upload>"
39172 msgid "B<--upload>"
39173 msgstr "B<-u> | B<--upload>"
39176 #: ../tools/virt-tar.pl:168
39178 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39183 #: ../tools/virt-tar.pl:171
39185 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
39186 "Please read the L</WARNING> section above before using this option."
39190 #: ../tools/virt-tar.pl:175
39191 msgid "You must specify exactly one of these options."
39195 #: ../tools/virt-tar.pl:181
39200 #: ../tools/virt-tar.pl:183
39202 #| msgid "B<-z> | B<--gzip>"
39204 msgstr "B<-z> | B<--gzip>"
39207 #: ../tools/virt-tar.pl:185
39208 msgid "Specify that the input or output tarball is gzip-compressed."
39212 #: ../tools/virt-tar.pl:298
39214 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39215 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39216 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39219 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39220 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39221 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39225 #: ../tools/virt-win-reg.pl:37
39227 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39231 #: ../tools/virt-win-reg.pl:41
39234 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39239 #: ../tools/virt-win-reg.pl:43
39242 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39247 #: ../tools/virt-win-reg.pl:45
39250 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39255 #: ../tools/virt-win-reg.pl:47
39258 " virt-win-reg --merge domname [input.reg ...]\n"
39263 #: ../tools/virt-win-reg.pl:49
39266 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39271 #: ../tools/virt-win-reg.pl:53
39273 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39274 "virtual machines. If you do this, you I<will> get irreversible disk "
39275 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
39276 "but doesn't catch all cases."
39280 #: ../tools/virt-win-reg.pl:58
39282 "Modifying the Windows Registry is an inherently risky operation. The format "
39283 "is deliberately obscure and undocumented, and Registry changes can leave the "
39284 "system unbootable. Therefore when using the I<--merge> option, make sure "
39285 "you have a reliable backup first."
39289 #: ../tools/virt-win-reg.pl:65
39291 "This program can export and merge Windows Registry entries from a Windows "
39296 #: ../tools/virt-win-reg.pl:68
39298 "The first parameter is the libvirt guest name or the raw disk image of a "
39303 #: ../tools/virt-win-reg.pl:71
39305 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39306 "exported (recursively). For example:"
39310 #: ../tools/virt-win-reg.pl:74
39313 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39318 #: ../tools/virt-win-reg.pl:76
39320 "You can also display single values from within registry keys, for example:"
39324 #: ../tools/virt-win-reg.pl:79
39327 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39328 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39329 " Windows 7 Enterprise\n"
39334 #: ../tools/virt-win-reg.pl:83
39336 "With I<--merge>, you can merge a textual regedit file into the Windows "
39341 #: ../tools/virt-win-reg.pl:86
39344 " $ virt-win-reg --merge Windows7 changes.reg\n"
39349 #: ../tools/virt-win-reg.pl:90
39351 "This program is only meant for simple access to the registry. If you want "
39352 "to do complicated things with the registry, we suggest you download the "
39353 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39354 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39355 "L<hivexregedit(1)>."
39359 #: ../tools/virt-win-reg.pl:159
39361 msgstr "B<--merge>"
39364 #: ../tools/virt-win-reg.pl:161
39366 "In merge mode, this merges a textual regedit file into the Windows Registry "
39367 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
39368 "displays or exports Registry entries instead."
39372 #: ../tools/virt-win-reg.pl:165
39374 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39375 "result in disk corruption. However exporting (without this flag) is always "
39380 #: ../tools/virt-win-reg.pl:173
39381 msgid "B<--encoding> UTF-16LE|ASCII"
39385 #: ../tools/virt-win-reg.pl:175
39387 "When merging (only), you may need to specify the encoding for strings to be "
39388 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
39389 "(3)/ENCODING STRINGS>."
39393 #: ../tools/virt-win-reg.pl:179
39395 "The default is to use UTF-16LE, which should work with recent versions of "
39400 #: ../tools/virt-win-reg.pl:186
39401 msgid "B<--unsafe-printable-strings>"
39405 #: ../tools/virt-win-reg.pl:188
39407 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39408 "instead of hex sequences. Remove the final zero codepoint from strings if "
39413 #: ../tools/virt-win-reg.pl:192
39415 "This is unsafe and does not preserve the fidelity of strings in the original "
39416 "Registry for various reasons:"
39420 #: ../tools/virt-win-reg.pl:199
39422 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
39423 "other encodings will be corrupted by this transformation."
39427 #: ../tools/virt-win-reg.pl:204
39429 "Assumes that everything which has type 1 or 2 is really a string and that "
39430 "everything else is not a string, but the type field in real Registries is "
39435 #: ../tools/virt-win-reg.pl:210
39437 "Loses information about whether a zero codepoint followed the string in the "
39442 #: ../tools/virt-win-reg.pl:215
39444 "This all happens because the Registry itself contains no information about "
39445 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39449 #: ../tools/virt-win-reg.pl:219
39451 "You should only use this option for quick hacking and debugging of the "
39452 "Registry contents, and I<never> use it if the output is going to be passed "
39453 "into another program or stored in another Registry."
39457 #: ../tools/virt-win-reg.pl:556
39458 msgid "SUPPORTED SYSTEMS"
39462 #: ../tools/virt-win-reg.pl:558
39464 "The program currently supports Windows NT-derived guests starting with "
39465 "Windows XP through to at least Windows 7."
39469 #: ../tools/virt-win-reg.pl:561
39470 msgid "The following Registry keys are supported:"
39474 #: ../tools/virt-win-reg.pl:565
39475 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39479 #: ../tools/virt-win-reg.pl:567
39480 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39484 #: ../tools/virt-win-reg.pl:569
39485 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39489 #: ../tools/virt-win-reg.pl:571
39490 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39494 #: ../tools/virt-win-reg.pl:573
39495 msgid "C<HKEY_USERS\\.DEFAULT>"
39499 #: ../tools/virt-win-reg.pl:575
39500 msgid "C<HKEY_USERS\\I<SID>>"
39504 #: ../tools/virt-win-reg.pl:577
39505 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39509 #: ../tools/virt-win-reg.pl:579
39510 msgid "C<HKEY_USERS\\I<username>>"
39514 #: ../tools/virt-win-reg.pl:581
39516 "where I<username> is a local user name (this is a libguestfs extension)."
39520 #: ../tools/virt-win-reg.pl:585
39522 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39527 #: ../tools/virt-win-reg.pl:588
39529 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39530 "supported (there is no \"current user\")."
39534 #: ../tools/virt-win-reg.pl:591
39539 #: ../tools/virt-win-reg.pl:593
39541 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39542 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
39543 "style line endings. Since Windows regedit files are often in UTF-16LE with "
39544 "Windows-style line endings, you may need to reencode the whole file before "
39545 "or after processing."
39549 #: ../tools/virt-win-reg.pl:599
39551 "To reencode a file from Windows format to Linux (before processing it with "
39552 "the I<--merge> option), you would do something like this:"
39556 #: ../tools/virt-win-reg.pl:602
39559 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39564 #: ../tools/virt-win-reg.pl:604
39566 "To go in the opposite direction, after exporting and before sending the file "
39567 "to a Windows user, do something like this:"
39571 #: ../tools/virt-win-reg.pl:607
39574 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39579 #: ../tools/virt-win-reg.pl:609
39580 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39584 #: ../tools/virt-win-reg.pl:611
39586 "If you are unsure about the current encoding, use the L<file(1)> command. "
39587 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39588 "style (CRLF) line endings, like this:"
39592 #: ../tools/virt-win-reg.pl:615
39595 " $ file software.reg\n"
39596 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39597 " with CRLF line terminators\n"
39602 #: ../tools/virt-win-reg.pl:619
39603 msgid "This file would need conversion before you could I<--merge> it."
39607 #: ../tools/virt-win-reg.pl:621
39608 msgid "CurrentControlSet etc."
39612 #: ../tools/virt-win-reg.pl:623
39614 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39615 "Registry at the level of the hive file, and therefore you cannot modify "
39620 #: ../tools/virt-win-reg.pl:627
39622 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
39623 "circumstances it might refer to another control set. The way to find out is "
39624 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39628 #: ../tools/virt-win-reg.pl:631
39631 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39632 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39633 " \"Current\"=dword:00000001\n"
39634 " \"Default\"=dword:00000001\n"
39635 " \"Failed\"=dword:00000000\n"
39636 " \"LastKnownGood\"=dword:00000002\n"
39641 #: ../tools/virt-win-reg.pl:638
39642 msgid "\"Current\" is the one which Windows will choose when it boots."
39646 #: ../tools/virt-win-reg.pl:640
39648 "Similarly, other C<Current...> keys in the path may need to be replaced."
39652 #: ../tools/virt-win-reg.pl:643
39653 msgid "WINDOWS TIPS"
39657 #: ../tools/virt-win-reg.pl:645
39659 "Note that some of these tips modify the guest disk image. The guest I<must> "
39660 "be shut off, else you will get disk corruption."
39664 #: ../tools/virt-win-reg.pl:648
39665 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39669 #: ../tools/virt-win-reg.pl:650
39671 "Prepare a DOS batch script, VBScript or executable. Upload this using "
39672 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
39673 "is uploaded into C<C:\\>:"
39677 #: ../tools/virt-win-reg.pl:654
39680 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39685 #: ../tools/virt-win-reg.pl:656
39686 msgid "Prepare a regedit file containing the registry change:"
39690 #: ../tools/virt-win-reg.pl:658
39693 " cat > test.reg <<'EOF'\n"
39694 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39695 " \"Test\"=\"c:\\\\test.bat\"\n"
39701 #: ../tools/virt-win-reg.pl:663
39703 "In this example we use the key C<RunOnce> which means that the script will "
39704 "run precisely once when the first user logs in. If you want it to run every "
39705 "time a user logs in, replace C<RunOnce> with C<Run>."
39709 #: ../tools/virt-win-reg.pl:667
39710 msgid "Now update the registry:"
39714 #: ../tools/virt-win-reg.pl:669
39717 " virt-win-reg --merge WindowsGuest test.reg\n"
39722 #: ../tools/virt-win-reg.pl:671
39723 msgid "INSTALLING A SERVICE"
39727 #: ../tools/virt-win-reg.pl:673
39729 "This section assumes you are familiar with Windows services, and you either "
39730 "have a program which handles the Windows Service Control Protocol directly "
39731 "or you want to run any program using a service wrapper like SrvAny or the "
39736 #: ../tools/virt-win-reg.pl:678
39738 "First upload the program and optionally the service wrapper. In this case "
39739 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39743 #: ../tools/virt-win-reg.pl:682
39746 " guestfish -i -d WindowsGuest <<EOF\n"
39747 " upload rhsrvany.exe /rhsrvany.exe\n"
39748 " upload test.exe /test.exe\n"
39754 #: ../tools/virt-win-reg.pl:687
39756 "Prepare a regedit file containing the registry changes. In this example, "
39757 "the first registry change is needed for the service itself or the service "
39758 "wrapper (if used). The second registry change is only needed because I am "
39759 "using the RHSrvAny service wrapper."
39763 #: ../tools/virt-win-reg.pl:692
39766 " cat > service.reg <<'EOF'\n"
39767 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39768 " \"Type\"=dword:00000010\n"
39769 " \"Start\"=dword:00000002\n"
39770 " \"ErrorControl\"=dword:00000001\n"
39771 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39772 " \"DisplayName\"=\"RHSrvAny\"\n"
39773 " \"ObjectName\"=\"NetworkService\"\n"
39778 #: ../tools/virt-win-reg.pl:701
39781 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39782 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39783 " \"PWD\"=\"c:\\\\Temp\"\n"
39789 #: ../tools/virt-win-reg.pl:712
39791 "For use of C<ControlSet001> see the section above in this manual page. You "
39792 "may need to adjust this according to the control set that is in use by the "
39797 #: ../tools/virt-win-reg.pl:718
39799 "C<\"ObjectName\"> controls the privileges that the service will have. An "
39800 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39801 "privileged account."
39805 #: ../tools/virt-win-reg.pl:724
39807 "For the meaning of the magic numbers, see this Microsoft KB article: "
39808 "L<http://support.microsoft.com/kb/103000>."
39812 #: ../tools/virt-win-reg.pl:729
39813 msgid "Update the registry:"
39817 #: ../tools/virt-win-reg.pl:731
39820 " virt-win-reg --merge WindowsGuest service.reg\n"
39825 #: ../tools/virt-win-reg.pl:735
39827 "Be careful when passing parameters containing C<\\> (backslash) in the "
39828 "shell. Usually you will have to use 'single quotes' or double backslashes "
39829 "(but not both) to protect them from the shell."
39833 #: ../tools/virt-win-reg.pl:739
39834 msgid "Paths and value names are case-insensitive."
39838 #: ../tools/virt-win-reg.pl:748
39840 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39841 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39842 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39846 #: ../tools/virt-win-reg.pl:766
39849 " export LIBGUESTFS_DEBUG=1\n"
39850 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39855 #: ../tools/virt-win-reg.pl:769
39857 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39861 #~ msgid "B<-a> | B<--all>"
39862 #~ msgstr "B<-a> | B<--all>"
39864 #~ msgid "B<-x> | B<--extract> | B<--download>"
39865 #~ msgstr "B<-x> | B<--extract> | B<--download>"