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-07-26 16:21+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:1007 ../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:1224 ../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:1253 ../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:1258 ../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:1263 ../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:1268 ../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:4183
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:385 ../fish/guestfish-actions.pod:393
2647 #: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407
2648 #: ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103
2649 #: ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111
2650 #: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123
2651 #: ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137
2652 #: ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145
2653 #: ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239
2654 #: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249
2655 #: ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295
2656 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933
2657 #: ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947
2658 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961
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:583 ../src/guestfs-actions.pod:591
2666 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605
2667 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666
2668 #: ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674
2669 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686
2670 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700
2671 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708
2672 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
2673 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2674 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925
2675 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2859
2676 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2873
2677 #: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2887
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:1075
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:1249 ../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:1251 ../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:1287 ../fish/guestfish-actions.pod:1929
3862 #: ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1917
3863 #: ../src/guestfs-actions.pod:2855 ../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 ../src/guestfs-actions.pod:32
4512 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:275
4514 "This function is deprecated. In new code, use the C<add_drive_opts> call "
4519 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4520 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:986
4521 #: ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360
4522 #: ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292
4523 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454
4524 #: ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378
4525 #: ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438
4526 #: ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185
4527 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4528 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1513
4529 #: ../src/guestfs-actions.pod:2008 ../src/guestfs-actions.pod:2029
4530 #: ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4947
4531 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5255
4532 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6574
4533 #: ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6666
4534 #: ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7714
4535 #: ../src/guestfs-actions.pod:7884
4537 "Deprecated functions will not be removed from the API, but the fact that "
4538 "they are deprecated indicates that there are problems with correct use of "
4543 #: ../fish/guestfish-actions.pod:35
4548 #: ../fish/guestfish-actions.pod:37
4553 #: ../fish/guestfish-actions.pod:39
4556 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4561 #: ../fish/guestfish-actions.pod:41
4563 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4564 "It works by connecting to libvirt, requesting the domain and domain XML from "
4565 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4569 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4571 "The number of disks added is returned. This operation is atomic: if an "
4572 "error is returned, then no disks are added."
4576 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4578 "This function does some minimal checks to make sure the libvirt domain is "
4579 "not running (unless C<readonly> is true). In a future version we will try "
4580 "to acquire the libvirt lock on each disk."
4584 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4586 "Disks must be accessible locally. This often means that adding disks from a "
4587 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4588 "unless those disks are accessible via the same device path locally too."
4592 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4594 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4595 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4596 "libvirt URI (or one set through an environment variable, see the libvirt "
4597 "documentation for full details)."
4601 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4603 "The optional C<live> flag controls whether this call will try to connect to "
4604 "a running virtual machine C<guestfsd> process if it sees a suitable "
4605 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4606 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4607 "DAEMONS> for more information."
4611 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4613 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4614 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4615 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4620 #: ../fish/guestfish-actions.pod:76
4622 "The other optional parameters are passed directly through to L</add-drive-"
4627 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4628 #: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968
4629 #: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307
4630 #: ../fish/guestfish-actions.pod:3442
4632 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4636 #: ../fish/guestfish-actions.pod:81
4641 #: ../fish/guestfish-actions.pod:83
4644 " add-drive filename\n"
4647 " add-drive назва_файла\n"
4651 #: ../fish/guestfish-actions.pod:85
4653 "This function is the equivalent of calling L</add-drive-opts> with no "
4654 "optional parameters, so the disk is added writable, with the format being "
4655 "detected automatically."
4659 #: ../fish/guestfish-actions.pod:89
4661 "Automatic detection of the format opens you up to a potential security hole "
4662 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4663 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4664 "you should think about replacing calls to this function with calls to L</add-"
4665 "drive-opts>, and specifying the format."
4669 #: ../fish/guestfish-actions.pod:96
4670 msgid "add-drive-opts"
4671 msgstr "add-drive-opts"
4674 #: ../fish/guestfish-actions.pod:98
4679 #: ../fish/guestfish-actions.pod:100
4682 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4687 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4689 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4690 "The first time you call this function, the disk appears as C</dev/sda>, the "
4691 "second time as C</dev/sdb>, and so on."
4695 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4697 "You don't necessarily need to be root when using libguestfs. However you "
4698 "obviously do need sufficient permissions to access the filename for whatever "
4699 "operations you want to perform (ie. read access if you just want to read the "
4700 "image or write access if you want to modify the image)."
4704 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4705 msgid "This call checks that C<filename> exists."
4709 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096
4710 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655
4711 msgid "The optional arguments are:"
4715 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4717 msgstr "C<readonly>"
4720 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4722 "If true then the image is treated as read-only. Writes are still allowed, "
4723 "but they are stored in a temporary snapshot overlay which is discarded at "
4724 "the end. The disk that you add is not modified."
4728 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4733 #: ../fish/guestfish-actions.pod:127
4735 "This forces the image format. If you omit this (or use L</add-drive> or L</"
4736 "add-drive-ro>) then the format is automatically detected. Possible formats "
4737 "include C<raw> and C<qcow2>."
4741 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4743 "Automatic detection of the format opens you up to a potential security hole "
4744 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4745 "RHBZ#642934. Specifying the format closes this security hole."
4749 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4754 #: ../fish/guestfish-actions.pod:138
4756 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4757 "add-drive-with-if> call (q.v.)"
4761 #: ../fish/guestfish-actions.pod:145
4762 msgid "add-drive-ro"
4763 msgstr "add-drive-ro"
4766 #: ../fish/guestfish-actions.pod:147
4771 #: ../fish/guestfish-actions.pod:149
4774 " add-drive-ro filename\n"
4779 #: ../fish/guestfish-actions.pod:151
4781 "This function is the equivalent of calling L</add-drive-opts> with the "
4782 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4783 "is added read-only, with the format being detected automatically."
4787 #: ../fish/guestfish-actions.pod:156
4788 msgid "add-drive-ro-with-if"
4792 #: ../fish/guestfish-actions.pod:158
4795 " add-drive-ro-with-if filename iface\n"
4800 #: ../fish/guestfish-actions.pod:160
4802 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4803 "interface emulation to use at run time."
4807 #: ../fish/guestfish-actions.pod:170
4808 msgid "add-drive-with-if"
4812 #: ../fish/guestfish-actions.pod:172
4815 " add-drive-with-if filename iface\n"
4820 #: ../fish/guestfish-actions.pod:174
4822 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4823 "interface emulation to use at run time."
4827 #: ../fish/guestfish-actions.pod:184
4832 #: ../fish/guestfish-actions.pod:186
4835 " aug-clear augpath\n"
4840 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4842 "Set the value associated with C<path> to C<NULL>. This is the same as the "
4843 "L<augtool(1)> C<clear> command."
4847 #: ../fish/guestfish-actions.pod:191
4852 #: ../fish/guestfish-actions.pod:193
4860 #: ../fish/guestfish-actions.pod:195
4862 "Close the current Augeas handle and free up any resources used by it. After "
4863 "calling this, you have to call L</aug-init> again before you can use any "
4864 "other Augeas functions."
4868 #: ../fish/guestfish-actions.pod:200
4873 #: ../fish/guestfish-actions.pod:202
4876 " aug-defnode name expr val\n"
4881 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4883 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4887 #: ../fish/guestfish-actions.pod:207
4889 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4890 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
4891 "containing that single node."
4895 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4897 "On success this returns a pair containing the number of nodes in the "
4898 "nodeset, and a boolean flag if a node was created."
4902 #: ../fish/guestfish-actions.pod:215
4907 #: ../fish/guestfish-actions.pod:217
4910 " aug-defvar name expr\n"
4915 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4917 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4918 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
4922 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4924 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4925 "evaluates to something which is not a nodeset."
4929 #: ../fish/guestfish-actions.pod:226
4934 #: ../fish/guestfish-actions.pod:228
4937 " aug-get augpath\n"
4942 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4944 "Look up the value associated with C<path>. If C<path> matches exactly one "
4945 "node, the C<value> is returned."
4949 #: ../fish/guestfish-actions.pod:233
4954 #: ../fish/guestfish-actions.pod:235
4957 " aug-init root flags\n"
4962 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4964 "Create a new Augeas handle for editing configuration files. If there was "
4965 "any previous Augeas handle associated with this guestfs session, then it is "
4970 #: ../fish/guestfish-actions.pod:241
4971 msgid "You must call this before using any other L</aug-*> commands."
4975 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4977 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
4981 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4983 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4984 "logical I<or> of the following integers:"
4988 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4989 msgid "C<AUG_SAVE_BACKUP> = 1"
4990 msgstr "C<AUG_SAVE_BACKUP> = 1"
4993 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4994 msgid "Keep the original file with a C<.augsave> extension."
4998 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4999 msgid "C<AUG_SAVE_NEWFILE> = 2"
5000 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5003 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5005 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5006 "original. Overrides C<AUG_SAVE_BACKUP>."
5010 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5011 msgid "C<AUG_TYPE_CHECK> = 4"
5012 msgstr "C<AUG_TYPE_CHECK> = 4"
5015 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5016 msgid "Typecheck lenses (can be expensive)."
5020 #: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404
5021 msgid "C<AUG_NO_STDINC> = 8"
5022 msgstr "C<AUG_NO_STDINC> = 8"
5025 #: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406
5026 msgid "Do not use standard load path for modules."
5030 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408
5031 msgid "C<AUG_SAVE_NOOP> = 16"
5032 msgstr "C<AUG_SAVE_NOOP> = 16"
5035 #: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410
5036 msgid "Make save a no-op, just record what would have been changed."
5040 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412
5041 msgid "C<AUG_NO_LOAD> = 32"
5042 msgstr "C<AUG_NO_LOAD> = 32"
5045 #: ../fish/guestfish-actions.pod:276
5046 msgid "Do not load the tree in L</aug-init>."
5050 #: ../fish/guestfish-actions.pod:280
5051 msgid "To close the handle, you can call L</aug-close>."
5055 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420
5056 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5060 #: ../fish/guestfish-actions.pod:284
5065 #: ../fish/guestfish-actions.pod:286
5068 " aug-insert augpath label true|false\n"
5073 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434
5075 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5076 "or after C<path> (depending on the boolean flag C<before>)."
5080 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:438
5082 "C<path> must match exactly one existing node in the tree, and C<label> must "
5083 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5087 #: ../fish/guestfish-actions.pod:296
5092 #: ../fish/guestfish-actions.pod:298
5100 #: ../fish/guestfish-actions.pod:300 ../src/guestfs-actions.pod:451
5101 msgid "Load files into the tree."
5102 msgstr "Завантажити файли до ієрархії."
5105 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:453
5106 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5110 #: ../fish/guestfish-actions.pod:305
5115 #: ../fish/guestfish-actions.pod:307
5123 #: ../fish/guestfish-actions.pod:309
5125 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5126 "resulting nodes into alphabetical order."
5130 #: ../fish/guestfish-actions.pod:312
5135 #: ../fish/guestfish-actions.pod:314
5138 " aug-match augpath\n"
5143 #: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:481
5145 "Returns a list of paths which match the path expression C<path>. The "
5146 "returned paths are sufficiently qualified so that they match exactly one "
5147 "node in the current tree."
5151 #: ../fish/guestfish-actions.pod:320
5156 #: ../fish/guestfish-actions.pod:322
5159 " aug-mv src dest\n"
5164 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:498
5166 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5167 "C<dest> is overwritten if it exists."
5171 #: ../fish/guestfish-actions.pod:327
5176 #: ../fish/guestfish-actions.pod:329
5184 #: ../fish/guestfish-actions.pod:331 ../src/guestfs-actions.pod:511
5185 msgid "Remove C<path> and all of its children."
5189 #: ../fish/guestfish-actions.pod:333 ../src/guestfs-actions.pod:513
5190 msgid "On success this returns the number of entries which were removed."
5194 #: ../fish/guestfish-actions.pod:335
5199 #: ../fish/guestfish-actions.pod:337
5207 #: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:524
5208 msgid "This writes all pending changes to disk."
5212 #: ../fish/guestfish-actions.pod:341
5214 "The flags which were passed to L</aug-init> affect exactly how files are "
5219 #: ../fish/guestfish-actions.pod:344
5224 #: ../fish/guestfish-actions.pod:346
5227 " aug-set augpath val\n"
5232 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:540
5233 msgid "Set the value associated with C<path> to C<val>."
5237 #: ../fish/guestfish-actions.pod:350
5239 "In the Augeas API, it is possible to clear a node by setting the value to "
5240 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5241 "this call. Instead you must use the L</aug-clear> call."
5245 #: ../fish/guestfish-actions.pod:355
5250 #: ../fish/guestfish-actions.pod:357
5253 " available 'groups ...'\n"
5258 #: ../fish/guestfish-actions.pod:359 ../src/guestfs-actions.pod:557
5260 "This command is used to check the availability of some groups of "
5261 "functionality in the appliance, which not all builds of the libguestfs "
5262 "appliance will be able to provide."
5266 #: ../fish/guestfish-actions.pod:363
5268 "The libguestfs groups, and the functions that those groups correspond to, "
5269 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5270 "runtime by calling L</available-all-groups>."
5274 #: ../fish/guestfish-actions.pod:368 ../src/guestfs-actions.pod:566
5276 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5277 "\"]> would check for the availability of the Linux inotify functions and "
5278 "Augeas (configuration file editing) functions."
5282 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5283 msgid "The command returns no error if I<all> requested groups are available."
5287 #: ../fish/guestfish-actions.pod:375 ../src/guestfs-actions.pod:573
5289 "It fails with an error if one or more of the requested groups is unavailable "
5294 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5296 "If an unknown group name is included in the list of groups then an error is "
5301 #: ../fish/guestfish-actions.pod:381 ../src/guestfs-actions.pod:579
5303 msgstr "I<Нотатки:>"
5306 #: ../fish/guestfish-actions.pod:387
5307 msgid "You must call L</launch> before calling this function."
5311 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:587
5313 "The reason is because we don't know what groups are supported by the "
5314 "appliance/daemon until it is running and can be queried."
5318 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:593
5320 "If a group of functions is available, this does not necessarily mean that "
5321 "they will work. You still have to check for errors when calling individual "
5322 "API functions even if they are available."
5326 #: ../fish/guestfish-actions.pod:402 ../src/guestfs-actions.pod:600
5328 "It is usually the job of distro packagers to build complete functionality "
5329 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5330 "with all requirements satisfied, will support everything."
5334 #: ../fish/guestfish-actions.pod:409
5336 "This call was added in version C<1.0.80>. In previous versions of "
5337 "libguestfs all you could do would be to speculatively execute a command to "
5338 "find out if the daemon implemented it. See also L</version>."
5342 #: ../fish/guestfish-actions.pod:416
5343 msgid "available-all-groups"
5347 #: ../fish/guestfish-actions.pod:418
5350 " available-all-groups\n"
5355 #: ../fish/guestfish-actions.pod:420
5357 "This command returns a list of all optional groups that this daemon knows "
5358 "about. Note this returns both supported and unsupported groups. To find "
5359 "out which ones the daemon can actually support you have to call L</"
5360 "available> on each member of the returned list."
5364 #: ../fish/guestfish-actions.pod:426
5365 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5369 #: ../fish/guestfish-actions.pod:428
5374 #: ../fish/guestfish-actions.pod:430
5377 " base64-in (base64file|-) filename\n"
5382 #: ../fish/guestfish-actions.pod:432 ../src/guestfs-actions.pod:644
5384 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5388 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
5389 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
5390 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
5391 #: ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4670
5392 #: ../fish/guestfish-actions.pod:4681 ../fish/guestfish-actions.pod:4692
5393 #: ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4753
5394 #: ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4830
5395 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5399 #: ../fish/guestfish-actions.pod:437
5404 #: ../fish/guestfish-actions.pod:439
5407 " base64-out filename (base64file|-)\n"
5412 #: ../fish/guestfish-actions.pod:441 ../src/guestfs-actions.pod:658
5414 "This command downloads the contents of C<filename>, writing it out to local "
5415 "file C<base64file> encoded as base64."
5419 #: ../fish/guestfish-actions.pod:446
5420 msgid "blockdev-flushbufs"
5424 #: ../fish/guestfish-actions.pod:448
5427 " blockdev-flushbufs device\n"
5432 #: ../fish/guestfish-actions.pod:450 ../src/guestfs-actions.pod:671
5434 "This tells the kernel to flush internal buffers associated with C<device>."
5438 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
5439 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
5440 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
5441 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
5442 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
5443 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
5444 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
5445 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
5446 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
5447 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
5448 msgid "This uses the L<blockdev(8)> command."
5452 #: ../fish/guestfish-actions.pod:455
5453 msgid "blockdev-getbsz"
5457 #: ../fish/guestfish-actions.pod:457
5460 " blockdev-getbsz device\n"
5465 #: ../fish/guestfish-actions.pod:459 ../src/guestfs-actions.pod:686
5466 msgid "This returns the block size of a device."
5470 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
5471 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
5473 "(Note this is different from both I<size in blocks> and I<filesystem block "
5478 #: ../fish/guestfish-actions.pod:466
5479 msgid "blockdev-getro"
5483 #: ../fish/guestfish-actions.pod:468
5486 " blockdev-getro device\n"
5491 #: ../fish/guestfish-actions.pod:470 ../src/guestfs-actions.pod:703
5493 "Returns a boolean indicating if the block device is read-only (true if read-"
5494 "only, false if not)."
5498 #: ../fish/guestfish-actions.pod:475
5499 msgid "blockdev-getsize64"
5503 #: ../fish/guestfish-actions.pod:477
5506 " blockdev-getsize64 device\n"
5511 #: ../fish/guestfish-actions.pod:479 ../src/guestfs-actions.pod:718
5512 msgid "This returns the size of the device in bytes."
5516 #: ../fish/guestfish-actions.pod:481
5517 msgid "See also L</blockdev-getsz>."
5521 #: ../fish/guestfish-actions.pod:485
5522 msgid "blockdev-getss"
5526 #: ../fish/guestfish-actions.pod:487
5529 " blockdev-getss device\n"
5534 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:734
5536 "This returns the size of sectors on a block device. Usually 512, but can be "
5537 "larger for modern devices."
5541 #: ../fish/guestfish-actions.pod:492
5543 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5547 #: ../fish/guestfish-actions.pod:497
5548 msgid "blockdev-getsz"
5552 #: ../fish/guestfish-actions.pod:499
5555 " blockdev-getsz device\n"
5560 #: ../fish/guestfish-actions.pod:501 ../src/guestfs-actions.pod:752
5562 "This returns the size of the device in units of 512-byte sectors (even if "
5563 "the sectorsize isn't 512 bytes ... weird)."
5567 #: ../fish/guestfish-actions.pod:504
5569 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5570 "blockdev-getsize64> for the more useful I<size in bytes>."
5574 #: ../fish/guestfish-actions.pod:510
5575 msgid "blockdev-rereadpt"
5579 #: ../fish/guestfish-actions.pod:512
5582 " blockdev-rereadpt device\n"
5587 #: ../fish/guestfish-actions.pod:514 ../src/guestfs-actions.pod:771
5588 msgid "Reread the partition table on C<device>."
5592 #: ../fish/guestfish-actions.pod:518
5593 msgid "blockdev-setbsz"
5597 #: ../fish/guestfish-actions.pod:520
5600 " blockdev-setbsz device blocksize\n"
5605 #: ../fish/guestfish-actions.pod:522 ../src/guestfs-actions.pod:786
5606 msgid "This sets the block size of a device."
5610 #: ../fish/guestfish-actions.pod:529
5611 msgid "blockdev-setro"
5615 #: ../fish/guestfish-actions.pod:531
5618 " blockdev-setro device\n"
5623 #: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:803
5624 msgid "Sets the block device named C<device> to read-only."
5628 #: ../fish/guestfish-actions.pod:537
5629 msgid "blockdev-setrw"
5633 #: ../fish/guestfish-actions.pod:539
5636 " blockdev-setrw device\n"
5641 #: ../fish/guestfish-actions.pod:541 ../src/guestfs-actions.pod:817
5642 msgid "Sets the block device named C<device> to read-write."
5646 #: ../fish/guestfish-actions.pod:545
5647 msgid "btrfs-filesystem-resize"
5651 #: ../fish/guestfish-actions.pod:547
5654 " btrfs-filesystem-resize mountpoint [size:..]\n"
5659 #: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:839
5660 msgid "This command resizes a btrfs filesystem."
5664 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:841
5666 "Note that unlike other resize calls, the filesystem has to be mounted and "
5667 "the parameter is the mountpoint not the device (this is a requirement of "
5672 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
5673 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5189
5674 msgid "The optional parameters are:"
5678 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
5679 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5193
5684 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:851
5686 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5687 "resized to the maximum size."
5691 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5692 msgid "See also L<btrfs(8)>."
5696 #: ../fish/guestfish-actions.pod:570
5697 msgid "case-sensitive-path"
5701 #: ../fish/guestfish-actions.pod:572
5704 " case-sensitive-path path\n"
5709 #: ../fish/guestfish-actions.pod:574 ../src/guestfs-actions.pod:890
5711 "This can be used to resolve case insensitive paths on a filesystem which is "
5712 "case sensitive. The use case is to resolve paths which you have read from "
5713 "Windows configuration files or the Windows Registry, to the true path."
5717 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5719 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5720 "(and probably others), which is that although the underlying filesystem is "
5721 "case-insensitive, the driver exports the filesystem to Linux as case-"
5726 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5728 "One consequence of this is that special directories such as C<c:\\windows> "
5729 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5730 "precise details of how they were created. In Windows itself this would not "
5735 #: ../fish/guestfish-actions.pod:590 ../src/guestfs-actions.pod:906
5737 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5742 #: ../fish/guestfish-actions.pod:593 ../src/guestfs-actions.pod:909
5744 "This function resolves the true case of each element in the path and returns "
5745 "the case-sensitive path."
5749 #: ../fish/guestfish-actions.pod:596
5751 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
5752 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5753 "the directories were originally created under Windows)."
5757 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:917
5758 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5762 #: ../fish/guestfish-actions.pod:604
5763 msgid "See also L</realpath>."
5767 #: ../fish/guestfish-actions.pod:606
5772 #: ../fish/guestfish-actions.pod:608
5782 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3837
5783 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5832
5784 msgid "Return the contents of the file named C<path>."
5788 #: ../fish/guestfish-actions.pod:612
5790 "Note that this function cannot correctly handle binary files (specifically, "
5791 "files containing C<\\0> character which is treated as end of string). For "
5792 "those you need to use the L</read-file> or L</download> functions which have "
5793 "a more complex interface."
5797 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752
5798 #: ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940
5799 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017
5800 #: ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219
5801 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536
5802 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579
5803 #: ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608
5804 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
5805 #: ../fish/guestfish-actions.pod:3798 ../fish/guestfish-actions.pod:3815
5806 #: ../fish/guestfish-actions.pod:3830 ../fish/guestfish-actions.pod:4499
5807 #: ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4630
5808 #: ../fish/guestfish-actions.pod:4645 ../fish/guestfish-actions.pod:5051
5809 #: ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5081
5810 #: ../fish/guestfish-actions.pod:5098 ../fish/guestfish-actions.pod:5108
5811 #: ../fish/guestfish-actions.pod:5157 ../fish/guestfish-actions.pod:5167
5812 #: ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206
5813 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122
5814 #: ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438
5815 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560
5816 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825
5817 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2315
5818 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2382
5819 #: ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2428
5820 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5640
5821 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5797
5822 #: ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:6772
5823 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6973
5824 #: ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7662
5825 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7708
5826 #: ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:7753
5827 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7858
5828 #: ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7923
5830 "Because of the message protocol, there is a transfer limit of somewhere "
5831 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
5835 #: ../fish/guestfish-actions.pod:620
5840 #: ../fish/guestfish-actions.pod:622
5843 " checksum csumtype path\n"
5848 #: ../fish/guestfish-actions.pod:624 ../src/guestfs-actions.pod:955
5850 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5854 #: ../fish/guestfish-actions.pod:627 ../src/guestfs-actions.pod:958
5856 "The type of checksum to compute is given by the C<csumtype> parameter which "
5857 "must have one of the following values:"
5861 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5866 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:965
5868 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5873 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5878 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5879 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5883 #: ../fish/guestfish-actions.pod:641 ../src/guestfs-actions.pod:972
5888 #: ../fish/guestfish-actions.pod:643 ../src/guestfs-actions.pod:974
5889 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5893 #: ../fish/guestfish-actions.pod:645 ../src/guestfs-actions.pod:976
5898 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:978
5899 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5903 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:980
5908 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:982
5909 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5913 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:984
5918 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:986
5919 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5923 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:988
5928 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:990
5929 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5933 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:994
5934 msgid "The checksum is returned as a printable string."
5938 #: ../fish/guestfish-actions.pod:665
5939 msgid "To get the checksum for a device, use L</checksum-device>."
5943 #: ../fish/guestfish-actions.pod:667
5944 msgid "To get the checksums for many files, use L</checksums-out>."
5948 #: ../fish/guestfish-actions.pod:669
5949 msgid "checksum-device"
5950 msgstr "checksum-device"
5953 #: ../fish/guestfish-actions.pod:671
5956 " checksum-device csumtype device\n"
5961 #: ../fish/guestfish-actions.pod:673
5963 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5964 "device named C<device>. For the types of checksums supported see the L</"
5965 "checksum> command."
5969 #: ../fish/guestfish-actions.pod:677
5970 msgid "checksums-out"
5974 #: ../fish/guestfish-actions.pod:679
5977 " checksums-out csumtype directory (sumsfile|-)\n"
5982 #: ../fish/guestfish-actions.pod:681 ../src/guestfs-actions.pod:1029
5984 "This command computes the checksums of all regular files in C<directory> and "
5985 "then emits a list of those checksums to the local output file C<sumsfile>."
5989 #: ../fish/guestfish-actions.pod:685 ../src/guestfs-actions.pod:1033
5991 "This can be used for verifying the integrity of a virtual machine. However "
5992 "to be properly secure you should pay attention to the output of the checksum "
5993 "command (it uses the ones from GNU coreutils). In particular when the "
5994 "filename is not printable, coreutils uses a special backslash syntax. For "
5995 "more information, see the GNU coreutils info file."
5999 #: ../fish/guestfish-actions.pod:695
6004 #: ../fish/guestfish-actions.pod:697
6007 " chmod mode path\n"
6012 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1052
6014 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6019 #: ../fish/guestfish-actions.pod:702 ../src/guestfs-actions.pod:1055
6021 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6022 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6027 #: ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060
6028 #: ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209
6029 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:1059
6030 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4795
6031 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833
6032 msgid "The mode actually set is affected by the umask."
6036 #: ../fish/guestfish-actions.pod:708
6041 #: ../fish/guestfish-actions.pod:710
6044 " chown owner group path\n"
6049 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1073
6050 msgid "Change the file owner to C<owner> and group to C<group>."
6054 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
6055 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3657
6057 "Only numeric uid and gid are supported. If you want to use names, you will "
6058 "need to locate and parse the password file yourself (Augeas support makes "
6059 "this relatively easy)."
6063 #: ../fish/guestfish-actions.pod:718
6068 #: ../fish/guestfish-actions.pod:720
6071 " command 'arguments ...'\n"
6076 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1089
6078 "This call runs a command from the guest filesystem. The filesystem must be "
6079 "mounted, and must contain a compatible operating system (ie. something "
6080 "Linux, with the same or compatible processor architecture)."
6084 #: ../fish/guestfish-actions.pod:727
6086 "The single parameter is an argv-style list of arguments. The first element "
6087 "is the name of the program to run. Subsequent elements are parameters. The "
6088 "list must be non-empty (ie. must contain a program name). Note that the "
6089 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6093 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1101
6094 msgid "The return value is anything printed to I<stdout> by the command."
6098 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1104
6100 "If the command returns a non-zero exit status, then this function returns an "
6101 "error message. The error message string is the content of I<stderr> from "
6106 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1108
6108 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6109 "bin>. If you require a program from another location, you should provide "
6110 "the full path in the first parameter."
6114 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6116 "Shared libraries and data files required by the program must be available on "
6117 "filesystems which are mounted in the correct places. It is the caller's "
6118 "responsibility to ensure all filesystems that are needed are mounted at the "
6123 #: ../fish/guestfish-actions.pod:755
6124 msgid "command-lines"
6128 #: ../fish/guestfish-actions.pod:757
6131 " command-lines 'arguments ...'\n"
6136 #: ../fish/guestfish-actions.pod:759
6138 "This is the same as L</command>, but splits the result into a list of lines."
6142 #: ../fish/guestfish-actions.pod:762
6143 msgid "See also: L</sh-lines>"
6147 #: ../fish/guestfish-actions.pod:767
6152 #: ../fish/guestfish-actions.pod:769
6155 " config qemuparam qemuvalue\n"
6160 #: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1154
6162 "This can be used to add arbitrary qemu command line parameters of the form "
6163 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6164 "setting some parameters which would interfere with parameters that we use."
6168 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6169 msgid "The first character of C<param> string must be a C<-> (dash)."
6173 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1161
6174 msgid "C<value> can be NULL."
6178 #: ../fish/guestfish-actions.pod:780
6183 #: ../fish/guestfish-actions.pod:782
6186 " copy-size src dest size\n"
6191 #: ../fish/guestfish-actions.pod:784 ../src/guestfs-actions.pod:1175
6193 "This command copies exactly C<size> bytes from one source device or file "
6194 "C<src> to another destination device or file C<dest>."
6198 #: ../fish/guestfish-actions.pod:787 ../src/guestfs-actions.pod:1178
6200 "Note this will fail if the source is too short or if the destination is not "
6205 #: ../fish/guestfish-actions.pod:790
6210 #: ../fish/guestfish-actions.pod:792
6218 #: ../fish/guestfish-actions.pod:794 ../src/guestfs-actions.pod:1197
6220 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6221 "destination filename or destination directory."
6225 #: ../fish/guestfish-actions.pod:797
6230 #: ../fish/guestfish-actions.pod:799
6238 #: ../fish/guestfish-actions.pod:801 ../src/guestfs-actions.pod:1211
6240 "This copies a file or directory from C<src> to C<dest> recursively using the "
6245 #: ../fish/guestfish-actions.pod:804
6250 #: ../fish/guestfish-actions.pod:806
6258 #: ../fish/guestfish-actions.pod:808 ../src/guestfs-actions.pod:1225
6260 "This command copies from one source device or file C<src> to another "
6261 "destination device or file C<dest>. Normally you would use this to copy to "
6262 "or from a device or partition, for example to duplicate a filesystem."
6266 #: ../fish/guestfish-actions.pod:813
6268 "If the destination is a device, it must be as large or larger than the "
6269 "source file or device, otherwise the copy will fail. This command cannot do "
6270 "partial copies (see L</copy-size>)."
6274 #: ../fish/guestfish-actions.pod:817
6279 #: ../fish/guestfish-actions.pod:819
6289 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1243
6290 msgid "This command runs the C<df> command to report disk space used."
6294 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
6296 "This command is mostly useful for interactive sessions. It is I<not> "
6297 "intended that you try to parse the output string. Use L</statvfs> from "
6302 #: ../fish/guestfish-actions.pod:827
6307 #: ../fish/guestfish-actions.pod:829
6317 #: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1259
6319 "This command runs the C<df -h> command to report disk space used in human-"
6324 #: ../fish/guestfish-actions.pod:838
6329 #: ../fish/guestfish-actions.pod:840
6339 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1276
6341 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6342 "This is sometimes useful for extended debugging of problems."
6346 #: ../fish/guestfish-actions.pod:846
6348 "Another way to get the same information is to enable verbose messages with "
6349 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6350 "before running the program."
6354 #: ../fish/guestfish-actions.pod:851
6359 #: ../fish/guestfish-actions.pod:853
6362 " download remotefilename (filename|-)\n"
6367 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
6368 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
6370 "Download file C<remotefilename> and save it as C<filename> on the local "
6375 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4803
6376 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7232
6377 msgid "C<filename> can also be a named pipe."
6381 #: ../fish/guestfish-actions.pod:860
6382 msgid "See also L</upload>, L</cat>."
6386 #: ../fish/guestfish-actions.pod:864
6387 msgid "download-offset"
6388 msgstr "download-offset"
6391 #: ../fish/guestfish-actions.pod:866
6394 " download-offset remotefilename (filename|-) offset size\n"
6399 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1325
6401 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6402 "region must be within the file or device)."
6406 #: ../fish/guestfish-actions.pod:874
6408 "Note that there is no limit on the amount of data that can be downloaded "
6409 "with this call, unlike with L</pread>, and this call always reads the full "
6410 "amount unless an error occurs."
6414 #: ../fish/guestfish-actions.pod:879
6415 msgid "See also L</download>, L</pread>."
6419 #: ../fish/guestfish-actions.pod:883
6424 #: ../fish/guestfish-actions.pod:885
6427 " drop-caches whattodrop\n"
6432 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1350
6434 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6435 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6436 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6440 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6441 msgid "Setting C<whattodrop> to 3 should drop everything."
6445 #: ../fish/guestfish-actions.pod:894 ../src/guestfs-actions.pod:1357
6447 "This automatically calls L<sync(2)> before the operation, so that the "
6448 "maximum guest memory is freed."
6452 #: ../fish/guestfish-actions.pod:897
6457 #: ../fish/guestfish-actions.pod:899
6467 #: ../fish/guestfish-actions.pod:901 ../src/guestfs-actions.pod:1370
6469 "This command runs the C<du -s> command to estimate file space usage for "
6474 #: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1373
6476 "C<path> can be a file or a directory. If C<path> is a directory then the "
6477 "estimate includes the contents of the directory and all subdirectories "
6482 #: ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1377
6484 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6488 #: ../fish/guestfish-actions.pod:911
6493 #: ../fish/guestfish-actions.pod:913
6496 " e2fsck-f device\n"
6501 #: ../fish/guestfish-actions.pod:915 ../src/guestfs-actions.pod:1395
6503 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6504 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6509 #: ../fish/guestfish-actions.pod:919
6511 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6512 "should use L</fsck>."
6516 #: ../fish/guestfish-actions.pod:922
6521 #: ../fish/guestfish-actions.pod:924
6524 " echo-daemon 'words ...'\n"
6529 #: ../fish/guestfish-actions.pod:926 ../src/guestfs-actions.pod:1412
6531 "This command concatenates the list of C<words> passed with single spaces "
6532 "between them and returns the resulting string."
6536 #: ../fish/guestfish-actions.pod:929 ../src/guestfs-actions.pod:1415
6537 msgid "You can use this command to test the connection through to the daemon."
6541 #: ../fish/guestfish-actions.pod:931
6542 msgid "See also L</ping-daemon>."
6546 #: ../fish/guestfish-actions.pod:933
6551 #: ../fish/guestfish-actions.pod:935
6554 " egrep regex path\n"
6559 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1431
6561 "This calls the external C<egrep> program and returns the matching lines."
6565 #: ../fish/guestfish-actions.pod:943
6570 #: ../fish/guestfish-actions.pod:945
6573 " egrepi regex path\n"
6578 #: ../fish/guestfish-actions.pod:947 ../src/guestfs-actions.pod:1450
6580 "This calls the external C<egrep -i> program and returns the matching lines."
6584 #: ../fish/guestfish-actions.pod:953
6589 #: ../fish/guestfish-actions.pod:955
6592 " equal file1 file2\n"
6595 " equal файл1 файл2\n"
6599 #: ../fish/guestfish-actions.pod:957 ../src/guestfs-actions.pod:1469
6601 "This compares the two files C<file1> and C<file2> and returns true if their "
6602 "content is exactly equal, or false otherwise."
6606 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1472
6607 msgid "The external L<cmp(1)> program is used for the comparison."
6611 #: ../fish/guestfish-actions.pod:962
6616 #: ../fish/guestfish-actions.pod:964
6626 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1484
6628 "This returns C<true> if and only if there is a file, directory (or anything) "
6629 "with the given C<path> name."
6633 #: ../fish/guestfish-actions.pod:969
6634 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6635 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6638 #: ../fish/guestfish-actions.pod:971
6643 #: ../fish/guestfish-actions.pod:973
6646 " fallocate path len\n"
6649 " fallocate шлях довжина\n"
6653 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
6654 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526
6656 "This command preallocates a file (containing zero bytes) named C<path> of "
6657 "size C<len> bytes. If the file exists already, it is overwritten."
6661 #: ../fish/guestfish-actions.pod:979 ../src/guestfs-actions.pod:1504
6663 "Do not confuse this with the guestfish-specific C<alloc> command which "
6664 "allocates a file in the host and attaches it as a device."
6668 #: ../fish/guestfish-actions.pod:983 ../src/guestfs-actions.pod:1510
6670 "This function is deprecated. In new code, use the C<fallocate64> call "
6675 #: ../fish/guestfish-actions.pod:990
6677 msgstr "fallocate64"
6680 #: ../fish/guestfish-actions.pod:992
6683 " fallocate64 path len\n"
6686 " fallocate64 шлях довжина\n"
6690 #: ../fish/guestfish-actions.pod:998
6692 "Note that this call allocates disk blocks for the file. To create a sparse "
6693 "file use L</truncate-size> instead."
6697 #: ../fish/guestfish-actions.pod:1001
6699 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6700 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6701 "maximum size of files created through that call to 1GB."
6705 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1538
6707 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6708 "commands which create a file in the host and attach it as a device."
6712 #: ../fish/guestfish-actions.pod:1010
6717 #: ../fish/guestfish-actions.pod:1012
6720 " fgrep pattern path\n"
6723 " fgrep шаблон шлях\n"
6727 #: ../fish/guestfish-actions.pod:1014 ../src/guestfs-actions.pod:1553
6729 "This calls the external C<fgrep> program and returns the matching lines."
6733 #: ../fish/guestfish-actions.pod:1020
6738 #: ../fish/guestfish-actions.pod:1022
6741 " fgrepi pattern path\n"
6744 " fgrepi шаблон шлях\n"
6748 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1572
6750 "This calls the external C<fgrep -i> program and returns the matching lines."
6754 #: ../fish/guestfish-actions.pod:1030
6759 #: ../fish/guestfish-actions.pod:1032
6769 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1590
6771 "This call uses the standard L<file(1)> command to determine the type or "
6772 "contents of the file."
6776 #: ../fish/guestfish-actions.pod:1037 ../src/guestfs-actions.pod:1593
6778 "This call will also transparently look inside various types of compressed "
6783 #: ../fish/guestfish-actions.pod:1040 ../src/guestfs-actions.pod:1596
6785 "The exact command which runs is C<file -zb path>. Note in particular that "
6786 "the filename is not prepended to the output (the I<-b> option)."
6790 #: ../fish/guestfish-actions.pod:1044 ../src/guestfs-actions.pod:1600
6792 "The output depends on the output of the underlying L<file(1)> command and it "
6793 "can change in future in ways beyond our control. In other words, the output "
6794 "is not guaranteed by the ABI."
6798 #: ../fish/guestfish-actions.pod:1048
6800 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6801 "(etc), L</is-zero>."
6805 #: ../fish/guestfish-actions.pod:1051
6806 msgid "file-architecture"
6807 msgstr "file-architecture"
6810 #: ../fish/guestfish-actions.pod:1053
6813 " file-architecture filename\n"
6816 " file-architecture назва_файла\n"
6820 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1618
6822 "This detects the architecture of the binary C<filename>, and returns it if "
6827 #: ../fish/guestfish-actions.pod:1058 ../src/guestfs-actions.pod:1621
6828 msgid "Currently defined architectures are:"
6832 #: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1625
6837 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1627
6839 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6840 "irrespective of the precise processor requirements of the binary."
6844 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6849 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6850 msgid "64 bit x86-64."
6854 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1634
6859 #: ../fish/guestfish-actions.pod:1073 ../src/guestfs-actions.pod:1636
6860 msgid "32 bit SPARC."
6864 #: ../fish/guestfish-actions.pod:1075 ../src/guestfs-actions.pod:1638
6869 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1640
6870 msgid "64 bit SPARC V9 and above."
6874 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1642
6879 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1644
6880 msgid "Intel Itanium."
6881 msgstr "Intel Itanium."
6884 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1646
6889 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1648
6890 msgid "32 bit Power PC."
6894 #: ../fish/guestfish-actions.pod:1087 ../src/guestfs-actions.pod:1650
6899 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1652
6900 msgid "64 bit Power PC."
6904 #: ../fish/guestfish-actions.pod:1093 ../src/guestfs-actions.pod:1656
6905 msgid "Libguestfs may return other architecture strings in future."
6909 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1658
6910 msgid "The function works on at least the following types of files:"
6914 #: ../fish/guestfish-actions.pod:1101 ../src/guestfs-actions.pod:1664
6915 msgid "many types of Un*x and Linux binary"
6919 #: ../fish/guestfish-actions.pod:1105 ../src/guestfs-actions.pod:1668
6920 msgid "many types of Un*x and Linux shared library"
6924 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1672
6925 msgid "Windows Win32 and Win64 binaries"
6929 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1676
6930 msgid "Windows Win32 and Win64 DLLs"
6934 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1678
6935 msgid "Win32 binaries and DLLs return C<i386>."
6939 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1680
6940 msgid "Win64 binaries and DLLs return C<x86_64>."
6944 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1684
6945 msgid "Linux kernel modules"
6949 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1688
6950 msgid "Linux new-style initrd images"
6954 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1692
6955 msgid "some non-x86 Linux vmlinuz kernels"
6959 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1696
6960 msgid "What it can't do currently:"
6964 #: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1702
6965 msgid "static libraries (libfoo.a)"
6969 #: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1706
6970 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6974 #: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1710
6975 msgid "x86 Linux vmlinuz kernels"
6979 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1712
6981 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6982 "compressed code, and are horribly hard to unpack. If you want to find the "
6983 "architecture of a kernel, use the architecture of the associated initrd or "
6984 "kernel module(s) instead."
6988 #: ../fish/guestfish-actions.pod:1156
6993 #: ../fish/guestfish-actions.pod:1158
7003 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1730
7004 msgid "This command returns the size of C<file> in bytes."
7008 #: ../fish/guestfish-actions.pod:1162
7010 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7011 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7015 #: ../fish/guestfish-actions.pod:1166
7020 #: ../fish/guestfish-actions.pod:1168
7023 " fill c len path\n"
7028 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1748
7030 "This command creates a new file called C<path>. The initial content of the "
7031 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7036 #: ../fish/guestfish-actions.pod:1174
7038 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7039 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7044 #: ../fish/guestfish-actions.pod:1179
7045 msgid "fill-pattern"
7046 msgstr "fill-pattern"
7049 #: ../fish/guestfish-actions.pod:1181
7052 " fill-pattern pattern len path\n"
7057 #: ../fish/guestfish-actions.pod:1183
7059 "This function is like L</fill> except that it creates a new file of length "
7060 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7061 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7066 #: ../fish/guestfish-actions.pod:1188
7071 #: ../fish/guestfish-actions.pod:1190
7081 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1794
7083 "This command lists out all files and directories, recursively, starting at "
7084 "C<directory>. It is essentially equivalent to running the shell command "
7085 "C<find directory -print> but some post-processing happens on the output, "
7090 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7092 "This returns a list of strings I<without any prefix>. Thus if the directory "
7097 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1802
7107 #: ../fish/guestfish-actions.pod:1204
7108 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7112 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:1809
7123 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7124 msgid "If C<directory> is not a directory, then this command returns an error."
7128 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1817
7129 msgid "The returned list is sorted."
7133 #: ../fish/guestfish-actions.pod:1217
7134 msgid "See also L</find0>."
7135 msgstr "Див. також L</find0>."
7138 #: ../fish/guestfish-actions.pod:1222
7143 #: ../fish/guestfish-actions.pod:1224
7146 " find0 directory (files|-)\n"
7149 " find0 каталог (файли|-)\n"
7153 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837
7155 "This command lists out all files and directories, recursively, starting at "
7156 "C<directory>, placing the resulting list in the external file called "
7161 #: ../fish/guestfish-actions.pod:1230
7163 "This command works the same way as L</find> with the following exceptions:"
7167 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848
7168 msgid "The resulting list is written to an external file."
7172 #: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852
7174 "Items (filenames) in the result are separated by C<\\0> characters. See "
7175 "L<find(1)> option I<-print0>."
7179 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7180 msgid "This command is not limited in the number of names that it can return."
7184 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7185 msgid "The result list is not sorted."
7189 #: ../fish/guestfish-actions.pod:1257
7190 msgid "findfs-label"
7191 msgstr "findfs-label"
7194 #: ../fish/guestfish-actions.pod:1259
7197 " findfs-label label\n"
7200 " findfs-label мітка\n"
7204 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876
7206 "This command searches the filesystems and returns the one which has the "
7207 "given label. An error is returned if no such filesystem can be found."
7211 #: ../fish/guestfish-actions.pod:1265
7212 msgid "To find the label of a filesystem, use L</vfs-label>."
7213 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7216 #: ../fish/guestfish-actions.pod:1267
7218 msgstr "findfs-uuid"
7221 #: ../fish/guestfish-actions.pod:1269
7224 " findfs-uuid uuid\n"
7227 " findfs-uuid uuid\n"
7231 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893
7233 "This command searches the filesystems and returns the one which has the "
7234 "given UUID. An error is returned if no such filesystem can be found."
7238 #: ../fish/guestfish-actions.pod:1275
7239 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7240 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7243 #: ../fish/guestfish-actions.pod:1277
7248 #: ../fish/guestfish-actions.pod:1279
7251 " fsck fstype device\n"
7254 " fsck тип_файлової_системи пристрій\n"
7258 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911
7260 "This runs the filesystem checker (fsck) on C<device> which should have "
7261 "filesystem type C<fstype>."
7265 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914
7267 "The returned integer is the status. See L<fsck(8)> for the list of status "
7268 "codes from C<fsck>."
7272 #: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923
7273 msgid "Multiple status codes can be summed together."
7277 #: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927
7279 "A non-zero return code can mean \"success\", for example if errors have been "
7280 "corrected on the filesystem."
7284 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7285 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7289 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7291 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7295 #: ../fish/guestfish-actions.pod:1309
7300 #: ../fish/guestfish-actions.pod:1311
7310 #: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948
7312 "Return the additional kernel options which are added to the guest kernel "
7317 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951
7318 msgid "If C<NULL> then no options are added."
7322 #: ../fish/guestfish-actions.pod:1318
7323 msgid "get-attach-method"
7324 msgstr "get-attach-method"
7327 #: ../fish/guestfish-actions.pod:1320
7330 " get-attach-method\n"
7333 " get-attach-method\n"
7337 #: ../fish/guestfish-actions.pod:1322
7338 msgid "Return the current attach method. See L</set-attach-method>."
7342 #: ../fish/guestfish-actions.pod:1324
7343 msgid "get-autosync"
7344 msgstr "get-autosync"
7347 #: ../fish/guestfish-actions.pod:1326
7357 #: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976
7358 msgid "Get the autosync flag."
7362 #: ../fish/guestfish-actions.pod:1330
7367 #: ../fish/guestfish-actions.pod:1332
7377 #: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987
7378 msgid "Return the direct appliance mode flag."
7382 #: ../fish/guestfish-actions.pod:1336
7384 msgstr "get-e2label"
7387 #: ../fish/guestfish-actions.pod:1338
7390 " get-e2label device\n"
7393 " get-e2label пристрій\n"
7397 #: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:1999
7399 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7403 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2005
7405 "This function is deprecated. In new code, use the C<vfs_label> call instead."
7409 #: ../fish/guestfish-actions.pod:1350
7414 #: ../fish/guestfish-actions.pod:1352
7417 " get-e2uuid device\n"
7420 " get-e2uuid пристрій\n"
7424 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2020
7426 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7430 #: ../fish/guestfish-actions.pod:1357 ../src/guestfs-actions.pod:2026
7432 "This function is deprecated. In new code, use the C<vfs_uuid> call instead."
7436 #: ../fish/guestfish-actions.pod:1364
7438 msgstr "get-memsize"
7441 #: ../fish/guestfish-actions.pod:1366
7451 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2040
7453 "This gets the memory size in megabytes allocated to the qemu subprocess."
7457 #: ../fish/guestfish-actions.pod:1371
7459 "If L</set-memsize> was not called on this handle, and if "
7460 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7461 "value for memsize."
7465 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432
7466 #: ../fish/guestfish-actions.pod:4163 ../fish/guestfish-actions.pod:4265
7467 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2139
7468 #: ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6419
7470 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7474 #: ../fish/guestfish-actions.pod:1378
7476 msgstr "get-network"
7479 #: ../fish/guestfish-actions.pod:1380
7489 #: ../fish/guestfish-actions.pod:1382 ../src/guestfs-actions.pod:2059
7490 msgid "This returns the enable network flag."
7494 #: ../fish/guestfish-actions.pod:1384
7499 #: ../fish/guestfish-actions.pod:1386
7509 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2070
7510 msgid "Return the current search path."
7514 #: ../fish/guestfish-actions.pod:1390 ../src/guestfs-actions.pod:2072
7516 "This is always non-NULL. If it wasn't set already, then this will return "
7521 #: ../fish/guestfish-actions.pod:1393
7526 #: ../fish/guestfish-actions.pod:1395
7534 #: ../fish/guestfish-actions.pod:1397 ../src/guestfs-actions.pod:2085
7535 msgid "This returns the process group flag."
7539 #: ../fish/guestfish-actions.pod:1399
7544 #: ../fish/guestfish-actions.pod:1401
7549 #: ../fish/guestfish-actions.pod:1403
7559 #: ../fish/guestfish-actions.pod:1405 ../src/guestfs-actions.pod:2096
7561 "Return the process ID of the qemu subprocess. If there is no qemu "
7562 "subprocess, then this will return an error."
7566 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2099
7567 msgid "This is an internal call used for debugging and testing."
7571 #: ../fish/guestfish-actions.pod:1410
7576 #: ../fish/guestfish-actions.pod:1412
7586 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2110
7587 msgid "Return the current qemu binary."
7591 #: ../fish/guestfish-actions.pod:1416 ../src/guestfs-actions.pod:2112
7593 "This is always non-NULL. If it wasn't set already, then this will return "
7594 "the default qemu binary name."
7598 #: ../fish/guestfish-actions.pod:1419
7599 msgid "get-recovery-proc"
7600 msgstr "get-recovery-proc"
7603 #: ../fish/guestfish-actions.pod:1421
7606 " get-recovery-proc\n"
7609 " get-recovery-proc\n"
7613 #: ../fish/guestfish-actions.pod:1423 ../src/guestfs-actions.pod:2125
7614 msgid "Return the recovery process enabled flag."
7618 #: ../fish/guestfish-actions.pod:1425
7620 msgstr "get-selinux"
7623 #: ../fish/guestfish-actions.pod:1427
7633 #: ../fish/guestfish-actions.pod:1429
7635 "This returns the current setting of the selinux flag which is passed to the "
7636 "appliance at boot time. See L</set-selinux>."
7640 #: ../fish/guestfish-actions.pod:1435
7645 #: ../fish/guestfish-actions.pod:1437
7655 #: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2151
7657 "This returns the current state as an opaque integer. This is only useful "
7658 "for printing debug and internal error messages."
7662 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362
7663 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418
7664 #: ../fish/guestfish-actions.pod:2434 ../src/guestfs-actions.pod:2154
7665 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3463
7666 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3551
7667 msgid "For more information on states, see L<guestfs(3)>."
7671 #: ../fish/guestfish-actions.pod:1444
7676 #: ../fish/guestfish-actions.pod:1446
7686 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2165
7687 msgid "Return the command trace flag."
7691 #: ../fish/guestfish-actions.pod:1450
7696 #: ../fish/guestfish-actions.pod:1452
7706 #: ../fish/guestfish-actions.pod:1454
7708 "Return the current umask. By default the umask is C<022> unless it has been "
7709 "set by calling L</umask>."
7713 #: ../fish/guestfish-actions.pod:1457
7715 msgstr "get-verbose"
7718 #: ../fish/guestfish-actions.pod:1459
7728 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2188
7729 msgid "This returns the verbose messages flag."
7733 #: ../fish/guestfish-actions.pod:1463
7738 #: ../fish/guestfish-actions.pod:1465
7748 #: ../fish/guestfish-actions.pod:1467 ../src/guestfs-actions.pod:2199
7749 msgid "This gets the SELinux security context of the daemon."
7753 #: ../fish/guestfish-actions.pod:1469
7754 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7758 #: ../fish/guestfish-actions.pod:1472
7763 #: ../fish/guestfish-actions.pod:1474
7766 " getxattr path name\n"
7769 " getxattr шлях назва\n"
7773 #: ../fish/guestfish-actions.pod:1476
7775 "Get a single extended attribute from file C<path> named C<name>. This call "
7776 "follows symlinks. If you want to lookup an extended attribute for the "
7777 "symlink itself, use L</lgetxattr>."
7781 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
7783 "Normally it is better to get all extended attributes from a file in one go "
7784 "by calling L</getxattrs>. However some Linux filesystem implementations are "
7785 "buggy and do not provide a way to list out attributes. For these "
7786 "filesystems (notably ntfs-3g) you have to know the names of the extended "
7787 "attributes you want in advance and call this function."
7791 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
7792 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:3684
7794 "Extended attribute values are blobs of binary data. If there is no extended "
7795 "attribute named C<name>, this returns an error."
7799 #: ../fish/guestfish-actions.pod:1490
7800 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7801 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7804 #: ../fish/guestfish-actions.pod:1492
7809 #: ../fish/guestfish-actions.pod:1494
7819 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2245
7821 "This call lists the extended attributes of the file or directory C<path>."
7825 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2248
7827 "At the system call level, this is a combination of the L<listxattr(2)> and "
7828 "L<getxattr(2)> calls."
7832 #: ../fish/guestfish-actions.pod:1502
7833 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7834 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7837 #: ../fish/guestfish-actions.pod:1504
7839 msgstr "glob-expand"
7842 #: ../fish/guestfish-actions.pod:1506
7845 " glob-expand pattern\n"
7848 " glob-expand шаблон\n"
7852 #: ../fish/guestfish-actions.pod:1508 ../src/guestfs-actions.pod:2265
7854 "This command searches for all the pathnames matching C<pattern> according to "
7855 "the wildcard expansion rules used by the shell."
7859 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2269
7861 "If no paths match, then this returns an empty list (note: not an error)."
7865 #: ../fish/guestfish-actions.pod:1515 ../src/guestfs-actions.pod:2272
7867 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7868 "GLOB_BRACE>. See that manual page for more details."
7872 #: ../fish/guestfish-actions.pod:1519
7877 #: ../fish/guestfish-actions.pod:1521
7880 " grep regex path\n"
7883 " grepi формальний_вираз шлях\n"
7887 #: ../fish/guestfish-actions.pod:1523 ../src/guestfs-actions.pod:2289
7888 msgid "This calls the external C<grep> program and returns the matching lines."
7892 #: ../fish/guestfish-actions.pod:1529
7897 #: ../fish/guestfish-actions.pod:1531
7900 " grepi regex path\n"
7903 " grepi формальний_вираз шлях\n"
7907 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2308
7909 "This calls the external C<grep -i> program and returns the matching lines."
7913 #: ../fish/guestfish-actions.pod:1539
7914 msgid "grub-install"
7915 msgstr "grub-install"
7918 #: ../fish/guestfish-actions.pod:1541
7921 " grub-install root device\n"
7924 " grub-install кореневий пристрій\n"
7928 #: ../fish/guestfish-actions.pod:1543 ../src/guestfs-actions.pod:2327
7930 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7931 "the root directory being C<root>."
7935 #: ../fish/guestfish-actions.pod:1546 ../src/guestfs-actions.pod:2330
7937 "Note: If grub-install reports the error \"No suitable drive was found in the "
7938 "generated device map.\" it may be that you need to create a C</boot/grub/"
7939 "device.map> file first that contains the mapping between grub device names "
7940 "and Linux device names. It is usually sufficient to create a file "
7945 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2337
7953 #: ../fish/guestfish-actions.pod:1555 ../src/guestfs-actions.pod:2339
7954 msgid "replacing C</dev/vda> with the name of the installation device."
7958 #: ../fish/guestfish-actions.pod:1557
7963 #: ../fish/guestfish-actions.pod:1559
7973 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2351
7975 "This command returns up to the first 10 lines of a file as a list of strings."
7979 #: ../fish/guestfish-actions.pod:1567
7984 #: ../fish/guestfish-actions.pod:1569
7987 " head-n nrlines path\n"
7992 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2370
7994 "If the parameter C<nrlines> is a positive number, this returns the first "
7995 "C<nrlines> lines of the file C<path>."
7999 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2373
8001 "If the parameter C<nrlines> is a negative number, this returns lines from "
8002 "the file C<path>, excluding the last C<nrlines> lines."
8006 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4643
8007 #: ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:6991
8008 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8012 #: ../fish/guestfish-actions.pod:1582
8017 #: ../fish/guestfish-actions.pod:1584
8027 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2393
8029 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8030 "readable, canonical hex dump of the file."
8034 #: ../fish/guestfish-actions.pod:1592
8039 #: ../fish/guestfish-actions.pod:1594
8042 " initrd-cat initrdpath filename\n"
8045 " initrd-cat шлях_initrd назва_файла\n"
8049 #: ../fish/guestfish-actions.pod:1596 ../src/guestfs-actions.pod:2412
8051 "This command unpacks the file C<filename> from the initrd file called "
8052 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8057 #: ../fish/guestfish-actions.pod:1600 ../src/guestfs-actions.pod:2416
8059 "For example, in guestfish you could use the following command to examine the "
8060 "boot script (usually called C</init>) contained in a Linux initrd or "
8065 #: ../fish/guestfish-actions.pod:1604 ../src/guestfs-actions.pod:2420
8068 " initrd-cat /boot/initrd-<version>.img init\n"
8073 #: ../fish/guestfish-actions.pod:1606
8074 msgid "See also L</initrd-list>."
8075 msgstr "Див. також L</initrd-list>."
8078 #: ../fish/guestfish-actions.pod:1611
8080 msgstr "initrd-list"
8083 #: ../fish/guestfish-actions.pod:1613
8086 " initrd-list path\n"
8089 " initrd-list шлях\n"
8093 #: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2439
8094 msgid "This command lists out files contained in an initrd."
8098 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2441
8100 "The files are listed without any initial C</> character. The files are "
8101 "listed in the order they appear (not necessarily alphabetical). Directory "
8102 "names are listed as separate items."
8106 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2445
8108 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8109 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8114 #: ../fish/guestfish-actions.pod:1625
8115 msgid "inotify-add-watch"
8116 msgstr "inotify-add-watch"
8119 #: ../fish/guestfish-actions.pod:1627
8122 " inotify-add-watch path mask\n"
8125 " inotify-add-watch шлях маска\n"
8129 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2462
8130 msgid "Watch C<path> for the events listed in C<mask>."
8134 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2464
8136 "Note that if C<path> is a directory then events within that directory are "
8137 "watched, but this does I<not> happen recursively (in subdirectories)."
8141 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2468
8143 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8144 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8148 #: ../fish/guestfish-actions.pod:1639
8149 msgid "inotify-close"
8150 msgstr "inotify-close"
8153 #: ../fish/guestfish-actions.pod:1641
8163 #: ../fish/guestfish-actions.pod:1643 ../src/guestfs-actions.pod:2481
8165 "This closes the inotify handle which was previously opened by inotify_init. "
8166 "It removes all watches, throws away any pending events, and deallocates all "
8171 #: ../fish/guestfish-actions.pod:1647
8172 msgid "inotify-files"
8173 msgstr "inotify-files"
8176 #: ../fish/guestfish-actions.pod:1649
8186 #: ../fish/guestfish-actions.pod:1651
8188 "This function is a helpful wrapper around L</inotify-read> which just "
8189 "returns a list of pathnames of objects that were touched. The returned "
8190 "pathnames are sorted and deduplicated."
8194 #: ../fish/guestfish-actions.pod:1655
8195 msgid "inotify-init"
8196 msgstr "inotify-init"
8199 #: ../fish/guestfish-actions.pod:1657
8202 " inotify-init maxevents\n"
8207 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2510
8209 "This command creates a new inotify handle. The inotify subsystem can be "
8210 "used to notify events which happen to objects in the guest filesystem."
8214 #: ../fish/guestfish-actions.pod:1663
8216 "C<maxevents> is the maximum number of events which will be queued up between "
8217 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8218 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8219 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8220 "but records the fact that it threw them away by setting a flag "
8221 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8225 #: ../fish/guestfish-actions.pod:1673
8227 "Before any events are generated, you have to add some watches to the "
8228 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8229 "L</inotify-watch-all>."
8233 #: ../fish/guestfish-actions.pod:1679
8235 "Queued up events should be read periodically by calling L</inotify-read> (or "
8236 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8237 "If you don't read the events out often enough then you risk the internal "
8238 "queue overflowing."
8242 #: ../fish/guestfish-actions.pod:1686
8244 "The handle should be closed after use by calling L</inotify-close>. This "
8245 "also removes any watches automatically."
8249 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2541
8251 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8252 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8253 "that there is one global inotify handle per libguestfs instance."
8257 #: ../fish/guestfish-actions.pod:1695
8258 msgid "inotify-read"
8259 msgstr "inotify-read"
8262 #: ../fish/guestfish-actions.pod:1697
8272 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2555
8274 "Return the complete queue of events that have happened since the previous "
8279 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2558
8280 msgid "If no events have happened, this returns an empty list."
8284 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8286 "I<Note>: In order to make sure that all events have been read, you must call "
8287 "this function repeatedly until it returns an empty list. The reason is that "
8288 "the call will read events up to the maximum appliance-to-host message size "
8289 "and leave remaining events in the queue."
8293 #: ../fish/guestfish-actions.pod:1710
8294 msgid "inotify-rm-watch"
8295 msgstr "inotify-rm-watch"
8298 #: ../fish/guestfish-actions.pod:1712
8301 " inotify-rm-watch wd\n"
8306 #: ../fish/guestfish-actions.pod:1714
8307 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8311 #: ../fish/guestfish-actions.pod:1717
8312 msgid "inspect-get-arch"
8313 msgstr "inspect-get-arch"
8316 #: ../fish/guestfish-actions.pod:1719
8319 " inspect-get-arch root\n"
8322 " inspect-get-arch корінь\n"
8326 #: ../fish/guestfish-actions.pod:1721
8328 "This returns the architecture of the inspected operating system. The "
8329 "possible return values are listed under L</file-architecture>."
8333 #: ../fish/guestfish-actions.pod:1725 ../src/guestfs-actions.pod:2595
8335 "If the architecture could not be determined, then the string C<unknown> is "
8340 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811
8341 #: ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902
8342 #: ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047
8343 #: ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082
8344 #: ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154
8345 #: ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180
8346 #: ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200
8347 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308
8348 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:2598
8349 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792
8350 #: ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2942
8351 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053
8352 #: ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3127
8353 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187
8354 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3224
8355 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258
8356 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3401
8357 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8361 #: ../fish/guestfish-actions.pod:1730
8362 msgid "inspect-get-distro"
8363 msgstr "inspect-get-distro"
8366 #: ../fish/guestfish-actions.pod:1732
8369 " inspect-get-distro root\n"
8372 " inspect-get-distro корінь\n"
8376 #: ../fish/guestfish-actions.pod:1734 ../src/guestfs-actions.pod:2611
8378 "This returns the distro (distribution) of the inspected operating system."
8382 #: ../fish/guestfish-actions.pod:1737 ../src/guestfs-actions.pod:2614
8383 msgid "Currently defined distros are:"
8387 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2618
8388 msgid "\"archlinux\""
8389 msgstr "\"archlinux\""
8392 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2620
8394 msgstr "Arch Linux."
8397 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2622
8402 #: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2624
8407 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2626
8412 #: ../fish/guestfish-actions.pod:1751 ../src/guestfs-actions.pod:2628
8417 #: ../fish/guestfish-actions.pod:1753 ../src/guestfs-actions.pod:2630
8422 #: ../fish/guestfish-actions.pod:1755 ../src/guestfs-actions.pod:2632
8427 #: ../fish/guestfish-actions.pod:1757 ../src/guestfs-actions.pod:2634
8432 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2636
8437 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
8438 msgid "\"linuxmint\""
8439 msgstr "\"linuxmint\""
8442 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2640
8444 msgstr "Linux Mint."
8447 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2642
8448 msgid "\"mandriva\""
8449 msgstr "\"mandriva\""
8452 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2644
8457 #: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2646
8462 #: ../fish/guestfish-actions.pod:1771 ../src/guestfs-actions.pod:2648
8467 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2650
8472 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2652
8477 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2654
8478 msgid "\"redhat-based\""
8479 msgstr "\"redhat-based\""
8482 #: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2656
8483 msgid "Some Red Hat-derived distro."
8484 msgstr "Дистрибутив, що походить від Red Hat."
8487 #: ../fish/guestfish-actions.pod:1781 ../src/guestfs-actions.pod:2658
8492 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2660
8493 msgid "Red Hat Enterprise Linux."
8497 #: ../fish/guestfish-actions.pod:1785 ../src/guestfs-actions.pod:2662
8498 msgid "\"scientificlinux\""
8502 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2664
8503 msgid "Scientific Linux."
8507 #: ../fish/guestfish-actions.pod:1789 ../src/guestfs-actions.pod:2666
8508 msgid "\"slackware\""
8512 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2668
8517 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2670
8522 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2672
8527 #: ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881
8528 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:2674
8529 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:3158
8531 msgstr "\"unknown\""
8534 #: ../fish/guestfish-actions.pod:1799 ../src/guestfs-actions.pod:2676
8535 msgid "The distro could not be determined."
8536 msgstr "Дистрибутив, тип якого не вдалося визначити."
8539 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137
8540 #: ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:3150
8542 msgstr "\"windows\""
8545 #: ../fish/guestfish-actions.pod:1803 ../src/guestfs-actions.pod:2680
8547 "Windows does not have distributions. This string is returned if the OS type "
8552 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887
8553 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:2685
8554 #: ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:3164
8556 "Future versions of libguestfs may return other strings here. The caller "
8557 "should be prepared to handle any string."
8561 #: ../fish/guestfish-actions.pod:1813
8562 msgid "inspect-get-drive-mappings"
8566 #: ../fish/guestfish-actions.pod:1815
8569 " inspect-get-drive-mappings root\n"
8574 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2701
8576 "This call is useful for Windows which uses a primitive system of assigning "
8577 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8578 "Windows Registry to find out how disks/partitions are mapped to drive "
8579 "letters, and returns a hash table as in the example below:"
8583 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2707
8593 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2711
8595 "Note that keys are drive letters. For Windows, the key is case insensitive "
8596 "and just contains the drive letter, without the customary colon separator "
8601 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2715
8603 "In future we may support other operating systems that also used drive "
8604 "letters, but the keys for those might not be case insensitive and might be "
8605 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
8610 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8612 "For Windows guests, currently only hard drive mappings are returned. "
8613 "Removable disks (eg. DVD-ROMs) are ignored."
8617 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2723
8619 "For guests that do not use drive mappings, or if the drive mappings could "
8620 "not be determined, this returns an empty hash table."
8624 #: ../fish/guestfish-actions.pod:1842
8626 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8627 "get-mountpoints>, L</inspect-get-filesystems>."
8631 #: ../fish/guestfish-actions.pod:1846
8632 msgid "inspect-get-filesystems"
8633 msgstr "inspect-get-filesystems"
8636 #: ../fish/guestfish-actions.pod:1848
8639 " inspect-get-filesystems root\n"
8642 " inspect-get-filesystems корінь\n"
8646 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2744
8648 "This returns a list of all the filesystems that we think are associated with "
8649 "this operating system. This includes the root filesystem, other ordinary "
8650 "filesystems, and non-mounted devices like swap partitions."
8654 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8656 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8657 "to be shared between operating systems."
8661 #: ../fish/guestfish-actions.pod:1858
8663 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8668 #: ../fish/guestfish-actions.pod:1861
8669 msgid "inspect-get-format"
8670 msgstr "inspect-get-format"
8673 #: ../fish/guestfish-actions.pod:1863
8676 " inspect-get-format root\n"
8679 " inspect-get-format корінь\n"
8683 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2767
8685 "This returns the format of the inspected operating system. You can use it "
8686 "to detect install images, live CDs and similar."
8690 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2770
8691 msgid "Currently defined formats are:"
8695 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2774
8696 msgid "\"installed\""
8697 msgstr "\"installed\""
8700 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2776
8701 msgid "This is an installed operating system."
8702 msgstr "Це встановлена операційна система."
8705 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2778
8706 msgid "\"installer\""
8710 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2780
8712 "The disk image being inspected is not an installed operating system, but a "
8713 "I<bootable> install disk, live CD, or similar."
8717 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8718 msgid "The format of this disk image is not known."
8722 #: ../fish/guestfish-actions.pod:1892
8723 msgid "inspect-get-hostname"
8724 msgstr "inspect-get-hostname"
8727 #: ../fish/guestfish-actions.pod:1894
8730 " inspect-get-hostname root\n"
8733 " inspect-get-hostname корінь\n"
8737 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2805
8739 "This function returns the hostname of the operating system as found by "
8740 "inspection of the guest's configuration files."
8744 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2808
8746 "If the hostname could not be determined, then the string C<unknown> is "
8751 #: ../fish/guestfish-actions.pod:1904
8752 msgid "inspect-get-icon"
8756 #: ../fish/guestfish-actions.pod:1906
8759 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8764 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2834
8766 "This function returns an icon corresponding to the inspected operating "
8767 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
8768 "to PNG if necessary)."
8772 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2838
8774 "If it was not possible to get an icon this function returns a zero-length "
8775 "(non-NULL) buffer. I<Callers must check for this case>."
8779 #: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:2841
8781 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8782 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8783 "this file will be returned. You can disable favicons by passing the "
8784 "optional C<favicon> boolean as false (default is true)."
8788 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2847
8790 "If finding the favicon fails, then we look in other places in the guest for "
8795 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2850
8797 "If the optional C<highquality> boolean is true then only high quality icons "
8798 "are returned, which means only icons of high resolution with an alpha "
8799 "channel. The default (false) is to return any icon we can, even if it is of "
8800 "substandard quality."
8804 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8806 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8807 "before you call this, since it needs to read information from the guest "
8808 "filesystem during the call."
8812 #: ../fish/guestfish-actions.pod:1941 ../src/guestfs-actions.pod:2867
8814 "B<Security:> The icon data comes from the untrusted guest, and should be "
8815 "treated with caution. PNG files have been known to contain exploits. "
8816 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8817 "trying to process or display the icon."
8821 #: ../fish/guestfish-actions.pod:1949 ../src/guestfs-actions.pod:2875
8823 "The PNG image returned can be any size. It might not be square. Libguestfs "
8824 "tries to return the largest, highest quality icon available. The "
8825 "application must scale the icon to the required size."
8829 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2882
8831 "Extracting icons from Windows guests requires the external C<wrestool> "
8832 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8833 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
8834 "installed separately."
8838 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2889
8840 "Operating system icons are usually trademarks. Seek legal advice before "
8841 "using trademarks in applications."
8845 #: ../fish/guestfish-actions.pod:1970
8846 msgid "inspect-get-major-version"
8847 msgstr "inspect-get-major-version"
8850 #: ../fish/guestfish-actions.pod:1972
8853 " inspect-get-major-version root\n"
8856 " inspect-get-major-version корінь\n"
8860 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:2930
8862 "This returns the major version number of the inspected operating system."
8866 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:2933
8868 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8869 "popular public names used by the operating system. Notably the operating "
8870 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8871 "1). You can find out the real versions corresponding to releases of Windows "
8872 "by consulting Wikipedia or MSDN."
8876 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995
8877 #: ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:2957
8878 msgid "If the version could not be determined, then C<0> is returned."
8882 #: ../fish/guestfish-actions.pod:1988
8883 msgid "inspect-get-minor-version"
8884 msgstr "inspect-get-minor-version"
8887 #: ../fish/guestfish-actions.pod:1990
8890 " inspect-get-minor-version root\n"
8893 " inspect-get-minor-version корінь\n"
8897 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2954
8899 "This returns the minor version number of the inspected operating system."
8903 #: ../fish/guestfish-actions.pod:1997
8905 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8906 "get-major-version>."
8910 #: ../fish/guestfish-actions.pod:2000
8911 msgid "inspect-get-mountpoints"
8912 msgstr "inspect-get-mountpoints"
8915 #: ../fish/guestfish-actions.pod:2002
8918 " inspect-get-mountpoints root\n"
8921 " inspect-get-mountpoints корінь\n"
8925 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2972
8927 "This returns a hash of where we think the filesystems associated with this "
8928 "operating system should be mounted. Callers should note that this is at "
8929 "best an educated guess made by reading configuration files such as C</etc/"
8930 "fstab>. I<In particular note> that this may return filesystems which are "
8931 "non-existent or not mountable and callers should be prepared to handle or "
8932 "ignore failures if they try to mount them."
8936 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:2981
8938 "Each element in the returned hashtable has a key which is the path of the "
8939 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8940 "mounted there (eg. C</dev/sda1>)."
8944 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8946 "Non-mounted devices such as swap devices are I<not> returned in this list."
8950 #: ../fish/guestfish-actions.pod:2021
8952 "For operating systems like Windows which still use drive letters, this call "
8953 "will only return an entry for the first drive \"mounted on\" C</>. For "
8954 "information about the mapping of drive letters to partitions, see L</inspect-"
8955 "get-drive-mappings>."
8959 #: ../fish/guestfish-actions.pod:2027
8961 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8966 #: ../fish/guestfish-actions.pod:2030
8967 msgid "inspect-get-package-format"
8968 msgstr "inspect-get-package-format"
8971 #: ../fish/guestfish-actions.pod:2032
8974 " inspect-get-package-format root\n"
8977 " inspect-get-package-format корінь\n"
8981 #: ../fish/guestfish-actions.pod:2034
8983 "This function and L</inspect-get-package-management> return the package "
8984 "format and package management tool used by the inspected operating system. "
8985 "For example for Fedora these functions would return C<rpm> (package format) "
8986 "and C<yum> (package management)."
8990 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3018
8992 "This returns the string C<unknown> if we could not determine the package "
8993 "format I<or> if the operating system does not have a real packaging system "
8998 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3022
9000 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9001 "Future versions of libguestfs may return other strings."
9005 #: ../fish/guestfish-actions.pod:2049
9006 msgid "inspect-get-package-management"
9007 msgstr "inspect-get-package-management"
9010 #: ../fish/guestfish-actions.pod:2051
9013 " inspect-get-package-management root\n"
9016 " inspect-get-package-management корінь\n"
9020 #: ../fish/guestfish-actions.pod:2053
9022 "L</inspect-get-package-format> and this function return the package format "
9023 "and package management tool used by the inspected operating system. For "
9024 "example for Fedora these functions would return C<rpm> (package format) and "
9025 "C<yum> (package management)."
9029 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3044
9031 "This returns the string C<unknown> if we could not determine the package "
9032 "management tool I<or> if the operating system does not have a real packaging "
9033 "system (eg. Windows)."
9037 #: ../fish/guestfish-actions.pod:2063 ../src/guestfs-actions.pod:3048
9039 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9040 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9041 "libguestfs may return other strings."
9045 #: ../fish/guestfish-actions.pod:2070
9046 msgid "inspect-get-product-name"
9047 msgstr "inspect-get-product-name"
9050 #: ../fish/guestfish-actions.pod:2072
9053 " inspect-get-product-name root\n"
9056 " inspect-get-product-name корінь\n"
9060 #: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3066
9062 "This returns the product name of the inspected operating system. The "
9063 "product name is generally some freeform string which can be displayed to the "
9064 "user, but should not be parsed by programs."
9068 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9070 "If the product name could not be determined, then the string C<unknown> is "
9075 #: ../fish/guestfish-actions.pod:2084
9076 msgid "inspect-get-product-variant"
9080 #: ../fish/guestfish-actions.pod:2086
9083 " inspect-get-product-variant root\n"
9088 #: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3087
9089 msgid "This returns the product variant of the inspected operating system."
9093 #: ../fish/guestfish-actions.pod:2091 ../src/guestfs-actions.pod:3090
9095 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9096 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9097 "is usually a string such as C<Client> or C<Server> (other values are "
9098 "possible). This can be used to distinguish consumer and enterprise versions "
9099 "of Windows that have the same version number (for example, Windows 7 and "
9100 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9101 "the latter is C<Server>)."
9105 #: ../fish/guestfish-actions.pod:2100 ../src/guestfs-actions.pod:3099
9107 "For enterprise Linux guests, in future we intend this to return the product "
9108 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9109 "implemented at present."
9113 #: ../fish/guestfish-actions.pod:2104 ../src/guestfs-actions.pod:3103
9115 "If the product variant could not be determined, then the string C<unknown> "
9120 #: ../fish/guestfish-actions.pod:2107
9122 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9123 "get-product-name>, L</inspect-get-major-version>."
9127 #: ../fish/guestfish-actions.pod:2111
9128 msgid "inspect-get-roots"
9129 msgstr "inspect-get-roots"
9132 #: ../fish/guestfish-actions.pod:2113
9135 " inspect-get-roots\n"
9138 " inspect-get-roots\n"
9142 #: ../fish/guestfish-actions.pod:2115
9144 "This function is a convenient way to get the list of root devices, as "
9145 "returned from a previous call to L</inspect-os>, but without redoing the "
9146 "whole inspection process."
9150 #: ../fish/guestfish-actions.pod:2119
9152 "This returns an empty list if either no root devices were found or the "
9153 "caller has not called L</inspect-os>."
9157 #: ../fish/guestfish-actions.pod:2124
9158 msgid "inspect-get-type"
9159 msgstr "inspect-get-type"
9162 #: ../fish/guestfish-actions.pod:2126
9165 " inspect-get-type root\n"
9168 " inspect-get-type корінь\n"
9172 #: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3141
9174 "This returns the type of the inspected operating system. Currently defined "
9179 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9184 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3148
9185 msgid "Any Linux-based operating system."
9189 #: ../fish/guestfish-actions.pod:2139 ../src/guestfs-actions.pod:3152
9190 msgid "Any Microsoft Windows operating system."
9194 #: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3154
9196 msgstr "\"freebsd\""
9199 #: ../fish/guestfish-actions.pod:2143 ../src/guestfs-actions.pod:3156
9204 #: ../fish/guestfish-actions.pod:2147 ../src/guestfs-actions.pod:3160
9205 msgid "The operating system type could not be determined."
9209 #: ../fish/guestfish-actions.pod:2156
9210 msgid "inspect-get-windows-current-control-set"
9214 #: ../fish/guestfish-actions.pod:2158
9217 " inspect-get-windows-current-control-set root\n"
9222 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3180
9224 "This returns the Windows CurrentControlSet of the inspected guest. The "
9225 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9229 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3183
9231 "This call assumes that the guest is Windows and that the Registry could be "
9232 "examined by inspection. If this is not the case then an error is returned."
9236 #: ../fish/guestfish-actions.pod:2169
9237 msgid "inspect-get-windows-systemroot"
9238 msgstr "inspect-get-windows-systemroot"
9241 #: ../fish/guestfish-actions.pod:2171
9244 " inspect-get-windows-systemroot root\n"
9247 " inspect-get-windows-systemroot корінь\n"
9251 #: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3200
9253 "This returns the Windows systemroot of the inspected guest. The systemroot "
9254 "is a directory path such as C</WINDOWS>."
9258 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3203
9260 "This call assumes that the guest is Windows and that the systemroot could be "
9261 "determined by inspection. If this is not the case then an error is returned."
9265 #: ../fish/guestfish-actions.pod:2182
9266 msgid "inspect-is-live"
9267 msgstr "inspect-is-live"
9270 #: ../fish/guestfish-actions.pod:2184
9273 " inspect-is-live root\n"
9276 " inspect-is-live корінь\n"
9280 #: ../fish/guestfish-actions.pod:2186
9282 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9283 "then this returns true if a live image was detected on the disk."
9287 #: ../fish/guestfish-actions.pod:2192
9288 msgid "inspect-is-multipart"
9289 msgstr "inspect-is-multipart"
9292 #: ../fish/guestfish-actions.pod:2194
9295 " inspect-is-multipart root\n"
9298 " inspect-is-multipart корінь\n"
9302 #: ../fish/guestfish-actions.pod:2196
9304 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9305 "then this returns true if the disk is part of a set."
9309 #: ../fish/guestfish-actions.pod:2202
9310 msgid "inspect-is-netinst"
9311 msgstr "inspect-is-netinst"
9314 #: ../fish/guestfish-actions.pod:2204
9317 " inspect-is-netinst root\n"
9320 " inspect-is-netinst корінь\n"
9324 #: ../fish/guestfish-actions.pod:2206
9326 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9327 "then this returns true if the disk is a network installer, ie. not a self-"
9328 "contained install CD but one which is likely to require network access to "
9329 "complete the install."
9333 #: ../fish/guestfish-actions.pod:2214
9334 msgid "inspect-list-applications"
9335 msgstr "inspect-list-applications"
9338 #: ../fish/guestfish-actions.pod:2216
9341 " inspect-list-applications root\n"
9344 " inspect-list-applications кореневий_каталог\n"
9348 #: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3270
9349 msgid "Return the list of applications installed in the operating system."
9353 #: ../fish/guestfish-actions.pod:2220
9355 "I<Note:> This call works differently from other parts of the inspection "
9356 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9357 "then mount up the disks, before calling this. Listing applications is a "
9358 "significantly more difficult operation which requires access to the full "
9359 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9360 "are just returning data cached in the libguestfs handle, this call actually "
9361 "reads parts of the mounted filesystems during the call."
9365 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:3282
9367 "This returns an empty list if the inspection code was not able to determine "
9368 "the list of applications."
9372 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3285
9373 msgid "The application structure contains the following fields:"
9377 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3289
9379 msgstr "C<app_name>"
9382 #: ../fish/guestfish-actions.pod:2239 ../src/guestfs-actions.pod:3291
9384 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9385 "guests, this is the package name."
9389 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9390 msgid "C<app_display_name>"
9391 msgstr "C<app_display_name>"
9394 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9396 "The display name of the application, sometimes localized to the install "
9397 "language of the guest operating system."
9401 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9403 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9404 "to display something can use C<app_name> instead."
9408 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3302
9409 msgid "C<app_epoch>"
9410 msgstr "C<app_epoch>"
9413 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9415 "For package managers which use epochs, this contains the epoch of the "
9416 "package (an integer). If unavailable, this is returned as C<0>."
9420 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9421 msgid "C<app_version>"
9422 msgstr "C<app_version>"
9425 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9427 "The version string of the application or package. If unavailable this is "
9428 "returned as an empty string C<\"\">."
9432 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9433 msgid "C<app_release>"
9434 msgstr "C<app_release>"
9437 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9439 "The release string of the application or package, for package managers that "
9440 "use this. If unavailable this is returned as an empty string C<\"\">."
9444 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
9445 msgid "C<app_install_path>"
9446 msgstr "C<app_install_path>"
9449 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
9451 "The installation path of the application (on operating systems such as "
9452 "Windows which use installation paths). This path is in the format used by "
9453 "the guest operating system, it is not a libguestfs path."
9457 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9458 msgid "If unavailable this is returned as an empty string C<\"\">."
9462 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
9463 msgid "C<app_trans_path>"
9464 msgstr "C<app_trans_path>"
9467 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
9469 "The install path translated into a libguestfs path. If unavailable this is "
9470 "returned as an empty string C<\"\">."
9474 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9475 msgid "C<app_publisher>"
9476 msgstr "C<app_publisher>"
9479 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9481 "The name of the publisher of the application, for package managers that use "
9482 "this. If unavailable this is returned as an empty string C<\"\">."
9486 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
9491 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
9493 "The URL (eg. upstream URL) of the application. If unavailable this is "
9494 "returned as an empty string C<\"\">."
9498 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9499 msgid "C<app_source_package>"
9500 msgstr "C<app_source_package>"
9503 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9505 "For packaging systems which support this, the name of the source package. "
9506 "If unavailable this is returned as an empty string C<\"\">."
9510 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9511 msgid "C<app_summary>"
9512 msgstr "C<app_summary>"
9515 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9517 "A short (usually one line) description of the application or package. If "
9518 "unavailable this is returned as an empty string C<\"\">."
9522 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9523 msgid "C<app_description>"
9524 msgstr "C<app_description>"
9527 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9529 "A longer description of the application or package. If unavailable this is "
9530 "returned as an empty string C<\"\">."
9534 #: ../fish/guestfish-actions.pod:2310
9539 #: ../fish/guestfish-actions.pod:2312
9549 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3373
9551 "This function uses other libguestfs functions and certain heuristics to "
9552 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9553 "for operating systems."
9557 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3377
9558 msgid "The list returned is empty if no operating systems were found."
9562 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3379
9564 "If one operating system was found, then this returns a list with a single "
9565 "element, which is the name of the root filesystem of this operating system. "
9566 "It is also possible for this function to return a list containing more than "
9567 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9568 "element being the root filesystem of one of the operating systems."
9572 #: ../fish/guestfish-actions.pod:2327
9574 "You can pass the root string(s) returned to other L</inspect-get-*> "
9575 "functions in order to query further information about each operating system, "
9576 "such as the name and version."
9580 #: ../fish/guestfish-actions.pod:2332
9582 "This function uses other libguestfs features such as L</mount-ro> and L</"
9583 "umount-all> in order to mount and unmount filesystems and look at the "
9584 "contents. This should be called with no disks currently mounted. The "
9585 "function may also use Augeas, so any existing Augeas handle will be closed."
9589 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3397
9591 "This function cannot decrypt encrypted disks. The caller must do that first "
9592 "(supplying the necessary keys) if the disk is encrypted."
9596 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542
9597 #: ../fish/guestfish-actions.pod:2601
9598 msgid "See also L</list-filesystems>."
9599 msgstr "Див. також L</list-filesystems>."
9602 #: ../fish/guestfish-actions.pod:2346
9604 msgstr "is-blockdev"
9607 #: ../fish/guestfish-actions.pod:2348
9610 " is-blockdev path\n"
9613 " is-blockdev шлях\n"
9617 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3417
9619 "This returns C<true> if and only if there is a block device with the given "
9624 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371
9625 #: ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399
9626 #: ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443
9627 #: ../fish/guestfish-actions.pod:2452
9628 msgid "See also L</stat>."
9629 msgstr "Див. також L</stat>."
9632 #: ../fish/guestfish-actions.pod:2355
9637 #: ../fish/guestfish-actions.pod:2357
9647 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3431
9649 "This returns true iff this handle is busy processing a command (in the "
9654 #: ../fish/guestfish-actions.pod:2364
9659 #: ../fish/guestfish-actions.pod:2366
9662 " is-chardev path\n"
9665 " is-chardev шлях\n"
9669 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3446
9671 "This returns C<true> if and only if there is a character device with the "
9672 "given C<path> name."
9676 #: ../fish/guestfish-actions.pod:2373
9681 #: ../fish/guestfish-actions.pod:2375
9691 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3460
9693 "This returns true iff this handle is being configured (in the C<CONFIG> "
9698 #: ../fish/guestfish-actions.pod:2382
9703 #: ../fish/guestfish-actions.pod:2384
9713 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3475
9715 "This returns C<true> if and only if there is a directory with the given "
9716 "C<path> name. Note that it returns false for other objects like files."
9720 #: ../fish/guestfish-actions.pod:2392
9725 #: ../fish/guestfish-actions.pod:2394
9735 #: ../fish/guestfish-actions.pod:2396 ../src/guestfs-actions.pod:3491
9737 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
9738 "given C<path> name."
9742 #: ../fish/guestfish-actions.pod:2401
9747 #: ../fish/guestfish-actions.pod:2403
9757 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3506
9759 "This returns C<true> if and only if there is a regular file with the given "
9760 "C<path> name. Note that it returns false for other objects like directories."
9764 #: ../fish/guestfish-actions.pod:2411
9765 msgid "is-launching"
9766 msgstr "is-launching"
9769 #: ../fish/guestfish-actions.pod:2413
9779 #: ../fish/guestfish-actions.pod:2415 ../src/guestfs-actions.pod:3521
9781 "This returns true iff this handle is launching the subprocess (in the "
9782 "C<LAUNCHING> state)."
9786 #: ../fish/guestfish-actions.pod:2420
9791 #: ../fish/guestfish-actions.pod:2422
9801 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3536
9803 "This command tests whether C<device> is a logical volume, and returns true "
9804 "iff this is the case."
9808 #: ../fish/guestfish-actions.pod:2427
9813 #: ../fish/guestfish-actions.pod:2429
9823 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3548
9825 "This returns true iff this handle is ready to accept commands (in the "
9830 #: ../fish/guestfish-actions.pod:2436
9835 #: ../fish/guestfish-actions.pod:2438
9845 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3563
9847 "This returns C<true> if and only if there is a Unix domain socket with the "
9848 "given C<path> name."
9852 #: ../fish/guestfish-actions.pod:2445
9857 #: ../fish/guestfish-actions.pod:2447
9860 " is-symlink path\n"
9863 " is-symlink шлях\n"
9867 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3578
9869 "This returns C<true> if and only if there is a symbolic link with the given "
9874 #: ../fish/guestfish-actions.pod:2454
9879 #: ../fish/guestfish-actions.pod:2456
9887 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3593
9889 "This returns true iff the file exists and the file is empty or it contains "
9894 #: ../fish/guestfish-actions.pod:2461
9895 msgid "is-zero-device"
9899 #: ../fish/guestfish-actions.pod:2463
9902 " is-zero-device device\n"
9907 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3606
9908 msgid "This returns true iff the device exists and contains all zero bytes."
9912 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3608
9913 msgid "Note that for large devices this can take a long time to run."
9917 #: ../fish/guestfish-actions.pod:2469
9918 msgid "kill-subprocess"
9919 msgstr "kill-subprocess"
9922 #: ../fish/guestfish-actions.pod:2471
9925 " kill-subprocess\n"
9928 " kill-subprocess\n"
9932 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3619
9933 msgid "This kills the qemu subprocess. You should never need to call this."
9937 #: ../fish/guestfish-actions.pod:2475
9942 #: ../fish/guestfish-actions.pod:2477
9947 #: ../fish/guestfish-actions.pod:2479
9957 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3630
9959 "Internally libguestfs is implemented by running a virtual machine using "
9964 #: ../fish/guestfish-actions.pod:2484 ../src/guestfs-actions.pod:3633
9966 "You should call this after configuring the handle (eg. adding drives) but "
9967 "before performing any actions."
9971 #: ../fish/guestfish-actions.pod:2487
9976 #: ../fish/guestfish-actions.pod:2489
9979 " lchown owner group path\n"
9982 " lchown власник група шлях\n"
9986 #: ../fish/guestfish-actions.pod:2491
9988 "Change the file owner to C<owner> and group to C<group>. This is like L</"
9989 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9994 #: ../fish/guestfish-actions.pod:2499
9999 #: ../fish/guestfish-actions.pod:2501
10002 " lgetxattr path name\n"
10005 " lgetxattr шлях назва\n"
10009 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3673
10011 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10012 "is a symlink, then this call returns an extended attribute from the symlink."
10016 #: ../fish/guestfish-actions.pod:2517
10017 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10018 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10021 #: ../fish/guestfish-actions.pod:2519
10023 msgstr "lgetxattrs"
10026 #: ../fish/guestfish-actions.pod:2521
10029 " lgetxattrs path\n"
10032 " lgetxattrs шлях\n"
10036 #: ../fish/guestfish-actions.pod:2523
10038 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10039 "it returns the extended attributes of the link itself."
10043 #: ../fish/guestfish-actions.pod:2527
10048 #: ../fish/guestfish-actions.pod:2529
10056 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3716
10058 "List all 9p filesystems attached to the guest. A list of mount tags is "
10063 #: ../fish/guestfish-actions.pod:2534
10064 msgid "list-devices"
10065 msgstr "list-devices"
10068 #: ../fish/guestfish-actions.pod:2536
10078 #: ../fish/guestfish-actions.pod:2538 ../src/guestfs-actions.pod:3730
10079 msgid "List all the block devices."
10083 #: ../fish/guestfish-actions.pod:2540 ../src/guestfs-actions.pod:3732
10084 msgid "The full block device names are returned, eg. C</dev/sda>."
10088 #: ../fish/guestfish-actions.pod:2544
10089 msgid "list-dm-devices"
10093 #: ../fish/guestfish-actions.pod:2546
10096 " list-dm-devices\n"
10101 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3747
10102 msgid "List all device mapper devices."
10106 #: ../fish/guestfish-actions.pod:2550
10108 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10109 "previous call to L</luks-open>."
10113 #: ../fish/guestfish-actions.pod:2553
10115 "Device mapper devices which correspond to logical volumes are I<not> "
10116 "returned in this list. Call L</lvs> if you want to list logical volumes."
10120 #: ../fish/guestfish-actions.pod:2557
10121 msgid "list-filesystems"
10122 msgstr "list-filesystems"
10125 #: ../fish/guestfish-actions.pod:2559
10128 " list-filesystems\n"
10131 " list-filesystems\n"
10135 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3767
10137 "This inspection command looks for filesystems on partitions, block devices "
10138 "and logical volumes, returning a list of devices containing filesystems and "
10143 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3771
10145 "The return value is a hash, where the keys are the devices containing "
10146 "filesystems, and the values are the filesystem types. For example:"
10150 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3775
10153 " \"/dev/sda1\" => \"ntfs\"\n"
10154 " \"/dev/sda2\" => \"ext2\"\n"
10155 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10156 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10161 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10163 "The value can have the special value \"unknown\", meaning the content of the "
10164 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10168 #: ../fish/guestfish-actions.pod:2578
10170 "This command runs other libguestfs commands, which might include L</mount> "
10171 "and L</umount>, and therefore you should use this soon after launch and only "
10172 "when nothing is mounted."
10176 #: ../fish/guestfish-actions.pod:2582
10178 "Not all of the filesystems returned will be mountable. In particular, swap "
10179 "partitions are returned in the list. Also this command does not check that "
10180 "each filesystem found is valid and mountable, and some filesystems might be "
10181 "mountable but require special options. Filesystems may not all belong to a "
10182 "single logical operating system (use L</inspect-os> to look for OSes)."
10186 #: ../fish/guestfish-actions.pod:2590
10187 msgid "list-partitions"
10188 msgstr "list-partitions"
10191 #: ../fish/guestfish-actions.pod:2592
10194 " list-partitions\n"
10197 " list-partitions\n"
10201 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3809
10202 msgid "List all the partitions detected on all block devices."
10206 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3811
10207 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10211 #: ../fish/guestfish-actions.pod:2598
10213 "This does not return logical volumes. For that you will need to call L</"
10218 #: ../fish/guestfish-actions.pod:2603
10223 #: ../fish/guestfish-actions.pod:2605
10233 #: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:3830
10235 "List the files in C<directory> (relative to the root directory, there is no "
10236 "cwd) in the format of 'ls -la'."
10240 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3833
10242 "This command is mostly useful for interactive sessions. It is I<not> "
10243 "intended that you try to parse the output string."
10247 #: ../fish/guestfish-actions.pod:2613
10252 #: ../fish/guestfish-actions.pod:2615
10255 " ln target linkname\n"
10258 " ln призначення назва_посилання\n"
10262 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3848
10263 msgid "This command creates a hard link using the C<ln> command."
10267 #: ../fish/guestfish-actions.pod:2619
10272 #: ../fish/guestfish-actions.pod:2621
10275 " ln-f target linkname\n"
10278 " ln-f призначення назва_посилання\n"
10282 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3861
10284 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10285 "option removes the link (C<linkname>) if it exists already."
10289 #: ../fish/guestfish-actions.pod:2626
10294 #: ../fish/guestfish-actions.pod:2628
10297 " ln-s target linkname\n"
10300 " ln-s призначення назва_посилання\n"
10304 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3875
10305 msgid "This command creates a symbolic link using the C<ln -s> command."
10309 #: ../fish/guestfish-actions.pod:2632
10314 #: ../fish/guestfish-actions.pod:2634
10317 " ln-sf target linkname\n"
10320 " ln-sf призначення назва_посилання\n"
10324 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:3888
10326 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10327 "option removes the link (C<linkname>) if it exists already."
10331 #: ../fish/guestfish-actions.pod:2639
10332 msgid "lremovexattr"
10333 msgstr "lremovexattr"
10336 #: ../fish/guestfish-actions.pod:2641
10339 " lremovexattr xattr path\n"
10344 #: ../fish/guestfish-actions.pod:2643
10346 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10347 "it removes an extended attribute of the link itself."
10351 #: ../fish/guestfish-actions.pod:2647
10356 #: ../fish/guestfish-actions.pod:2649
10366 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3916
10368 "List the files in C<directory> (relative to the root directory, there is no "
10369 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10373 #: ../fish/guestfish-actions.pod:2655
10375 "This command is mostly useful for interactive sessions. Programs should "
10376 "probably use L</readdir> instead."
10380 #: ../fish/guestfish-actions.pod:2658
10385 #: ../fish/guestfish-actions.pod:2660
10388 " lsetxattr xattr val vallen path\n"
10393 #: ../fish/guestfish-actions.pod:2662
10395 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10396 "sets an extended attribute of the link itself."
10400 #: ../fish/guestfish-actions.pod:2666
10405 #: ../fish/guestfish-actions.pod:2668
10415 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4478
10416 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:6731
10417 msgid "Returns file information for the given C<path>."
10421 #: ../fish/guestfish-actions.pod:2672
10423 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10424 "the link is stat-ed, not the file it refers to."
10428 #: ../fish/guestfish-actions.pod:2676 ../src/guestfs-actions.pod:3958
10429 msgid "This is the same as the C<lstat(2)> system call."
10433 #: ../fish/guestfish-actions.pod:2678
10438 #: ../fish/guestfish-actions.pod:2680
10441 " lstatlist path 'names ...'\n"
10446 #: ../fish/guestfish-actions.pod:2682
10448 "This call allows you to perform the L</lstat> operation on multiple files, "
10449 "where all files are in the directory C<path>. C<names> is the list of files "
10450 "from this directory."
10454 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3977
10456 "On return you get a list of stat structs, with a one-to-one correspondence "
10457 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10458 "then the C<ino> field of that structure is set to C<-1>."
10462 #: ../fish/guestfish-actions.pod:2691
10464 "This call is intended for programs that want to efficiently list a directory "
10465 "contents without making many round-trips. See also L</lxattrlist> for a "
10466 "similarly efficient call for getting extended attributes. Very long "
10467 "directory listings might cause the protocol message size to be exceeded, "
10468 "causing this call to fail. The caller must split up such requests into "
10469 "smaller groups of names."
10473 #: ../fish/guestfish-actions.pod:2699
10474 msgid "luks-add-key"
10475 msgstr "luks-add-key"
10478 #: ../fish/guestfish-actions.pod:2701
10481 " luks-add-key device keyslot\n"
10486 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:4005
10488 "This command adds a new key on LUKS device C<device>. C<key> is any "
10489 "existing key, and is used to access the device. C<newkey> is the new key to "
10490 "add. C<keyslot> is the key slot that will be replaced."
10494 #: ../fish/guestfish-actions.pod:2708
10496 "Note that if C<keyslot> already contains a key, then this command will "
10497 "fail. You have to use L</luks-kill-slot> first to remove that key."
10501 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734
10502 #: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761
10503 #: ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
10505 "This command has one or more key or passphrase parameters. Guestfish will "
10506 "prompt for these separately."
10510 #: ../fish/guestfish-actions.pod:2715
10512 msgstr "luks-close"
10515 #: ../fish/guestfish-actions.pod:2717
10518 " luks-close device\n"
10521 " luks-close пристрій\n"
10525 #: ../fish/guestfish-actions.pod:2719
10527 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10528 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10529 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10534 #: ../fish/guestfish-actions.pod:2725
10535 msgid "luks-format"
10536 msgstr "luks-format"
10539 #: ../fish/guestfish-actions.pod:2727
10542 " luks-format device keyslot\n"
10547 #: ../fish/guestfish-actions.pod:2729 ../src/guestfs-actions.pod:4046
10549 "This command erases existing data on C<device> and formats the device as a "
10550 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10551 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10555 #: ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750
10556 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498
10557 #: ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4349
10558 #: ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394
10559 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:4053
10560 #: ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4219
10561 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:6110
10562 #: ../src/guestfs-actions.pod:6538 ../src/guestfs-actions.pod:6568
10563 #: ../src/guestfs-actions.pod:6601 ../src/guestfs-actions.pod:7799
10565 "B<This command is dangerous. Without careful use you can easily destroy all "
10570 #: ../fish/guestfish-actions.pod:2740
10571 msgid "luks-format-cipher"
10572 msgstr "luks-format-cipher"
10575 #: ../fish/guestfish-actions.pod:2742
10578 " luks-format-cipher device keyslot cipher\n"
10583 #: ../fish/guestfish-actions.pod:2744
10585 "This command is the same as L</luks-format> but it also allows you to set "
10586 "the C<cipher> used."
10590 #: ../fish/guestfish-actions.pod:2753
10591 msgid "luks-kill-slot"
10592 msgstr "luks-kill-slot"
10595 #: ../fish/guestfish-actions.pod:2755
10598 " luks-kill-slot device keyslot\n"
10603 #: ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:4093
10605 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10606 "device C<device>. C<key> must be one of the I<other> keys."
10610 #: ../fish/guestfish-actions.pod:2764
10615 #: ../fish/guestfish-actions.pod:2766
10618 " luks-open device mapname\n"
10623 #: ../fish/guestfish-actions.pod:2768 ../src/guestfs-actions.pod:4113
10625 "This command opens a block device which has been encrypted according to the "
10626 "Linux Unified Key Setup (LUKS) standard."
10630 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4116
10631 msgid "C<device> is the encrypted block device or partition."
10635 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10637 "The caller must supply one of the keys associated with the LUKS block "
10638 "device, in the C<key> parameter."
10642 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10644 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
10645 "writes to this block device are decrypted from and encrypted to the "
10646 "underlying C<device> respectively."
10650 #: ../fish/guestfish-actions.pod:2780
10652 "If this block device contains LVM volume groups, then calling L</vgscan> "
10653 "followed by L</vg-activate-all> will make them visible."
10657 #: ../fish/guestfish-actions.pod:2784
10658 msgid "Use L</list-dm-devices> to list all device mapper devices."
10662 #: ../fish/guestfish-actions.pod:2790
10663 msgid "luks-open-ro"
10664 msgstr "luks-open-ro"
10667 #: ../fish/guestfish-actions.pod:2792
10670 " luks-open-ro device mapname\n"
10675 #: ../fish/guestfish-actions.pod:2794
10677 "This is the same as L</luks-open> except that a read-only mapping is created."
10681 #: ../fish/guestfish-actions.pod:2800
10686 #: ../fish/guestfish-actions.pod:2802
10689 " lvcreate logvol volgroup mbytes\n"
10694 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4167
10696 "This creates an LVM logical volume called C<logvol> on the volume group "
10697 "C<volgroup>, with C<size> megabytes."
10701 #: ../fish/guestfish-actions.pod:2807
10702 msgid "lvm-canonical-lv-name"
10703 msgstr "lvm-canonical-lv-name"
10706 #: ../fish/guestfish-actions.pod:2809
10709 " lvm-canonical-lv-name lvname\n"
10714 #: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4180
10716 "This converts alternative naming schemes for LVs that you might find to the "
10717 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10722 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4184
10724 "This command returns an error if the C<lvname> parameter does not refer to a "
10729 #: ../fish/guestfish-actions.pod:2818
10730 msgid "See also L</is-lv>."
10731 msgstr "Див. також L</is-lv>."
10734 #: ../fish/guestfish-actions.pod:2820
10735 msgid "lvm-clear-filter"
10736 msgstr "lvm-clear-filter"
10739 #: ../fish/guestfish-actions.pod:2822
10742 " lvm-clear-filter\n"
10745 " lvm-clear-filter\n"
10749 #: ../fish/guestfish-actions.pod:2824
10751 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
10756 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
10757 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4244
10759 "This command also clears the LVM cache and performs a volume group scan."
10763 #: ../fish/guestfish-actions.pod:2830
10764 msgid "lvm-remove-all"
10765 msgstr "lvm-remove-all"
10768 #: ../fish/guestfish-actions.pod:2832
10771 " lvm-remove-all\n"
10774 " lvm-remove-all\n"
10778 #: ../fish/guestfish-actions.pod:2834 ../src/guestfs-actions.pod:4214
10780 "This command removes all LVM logical volumes, volume groups and physical "
10785 #: ../fish/guestfish-actions.pod:2840
10786 msgid "lvm-set-filter"
10787 msgstr "lvm-set-filter"
10790 #: ../fish/guestfish-actions.pod:2842
10793 " lvm-set-filter 'devices ...'\n"
10796 " lvm-set-filter 'пристрої...'\n"
10800 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4230
10802 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10803 "block devices in the list C<devices>, and will ignore all other attached "
10808 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4234
10810 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10811 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
10812 "there are two types of duplication possible: either cloned PVs/VGs which "
10813 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10814 "same name. In normal operation you cannot create this situation, but you "
10815 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
10816 "inside the LVM metadata."
10820 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4247
10821 msgid "You can filter whole block devices or individual partitions."
10825 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4249
10827 "You cannot use this if any VG is currently in use (eg. contains a mounted "
10828 "filesystem), even if you are not filtering out that VG."
10832 #: ../fish/guestfish-actions.pod:2867
10837 #: ../fish/guestfish-actions.pod:2869
10840 " lvremove device\n"
10843 " lvremove пристрій\n"
10847 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4263
10849 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10850 "LV, such as C</dev/VG/LV>."
10854 #: ../fish/guestfish-actions.pod:2874 ../src/guestfs-actions.pod:4266
10856 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10861 #: ../fish/guestfish-actions.pod:2877
10866 #: ../fish/guestfish-actions.pod:2879
10869 " lvrename logvol newlogvol\n"
10874 #: ../fish/guestfish-actions.pod:2881 ../src/guestfs-actions.pod:4280
10875 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10879 #: ../fish/guestfish-actions.pod:2883
10884 #: ../fish/guestfish-actions.pod:2885
10887 " lvresize device mbytes\n"
10892 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4293
10894 "This resizes (expands or shrinks) an existing LVM logical volume to "
10895 "C<mbytes>. When reducing, data in the reduced part is lost."
10899 #: ../fish/guestfish-actions.pod:2891
10900 msgid "lvresize-free"
10901 msgstr "lvresize-free"
10904 #: ../fish/guestfish-actions.pod:2893
10907 " lvresize-free lv percent\n"
10912 #: ../fish/guestfish-actions.pod:2895 ../src/guestfs-actions.pod:4308
10914 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10915 "remaining free space in the volume group. Commonly you would call this with "
10916 "pc = 100 which expands the logical volume as much as possible, using all "
10917 "remaining free space in the volume group."
10921 #: ../fish/guestfish-actions.pod:2901
10926 #: ../fish/guestfish-actions.pod:2903
10936 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4323
10938 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10943 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4326
10945 "This returns a list of the logical volume device names (eg. C</dev/"
10946 "VolGroup00/LogVol00>)."
10950 #: ../fish/guestfish-actions.pod:2911
10951 msgid "See also L</lvs-full>, L</list-filesystems>."
10952 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10955 #: ../fish/guestfish-actions.pod:2913
10960 #: ../fish/guestfish-actions.pod:2915
10970 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4342
10972 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10973 "(8)> command. The \"full\" version includes all fields."
10977 #: ../fish/guestfish-actions.pod:2920
10982 #: ../fish/guestfish-actions.pod:2922
10988 " lvuuid пристрій\n"
10992 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4357
10993 msgid "This command returns the UUID of the LVM LV C<device>."
10997 #: ../fish/guestfish-actions.pod:2926
10999 msgstr "lxattrlist"
11002 #: ../fish/guestfish-actions.pod:2928
11005 " lxattrlist path 'names ...'\n"
11010 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4371
11012 "This call allows you to get the extended attributes of multiple files, where "
11013 "all files are in the directory C<path>. C<names> is the list of files from "
11018 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4375
11020 "On return you get a flat list of xattr structs which must be interpreted "
11021 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11022 "C<attrval> in this struct is zero-length to indicate there was an error "
11023 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11024 "number (the number of following attributes for this file, which could be C<"
11025 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11026 "for the first named file. This repeats for the second and subsequent files."
11030 #: ../fish/guestfish-actions.pod:2944
11032 "This call is intended for programs that want to efficiently list a directory "
11033 "contents without making many round-trips. See also L</lstatlist> for a "
11034 "similarly efficient call for getting standard stats. Very long directory "
11035 "listings might cause the protocol message size to be exceeded, causing this "
11036 "call to fail. The caller must split up such requests into smaller groups of "
11041 #: ../fish/guestfish-actions.pod:2952
11046 #: ../fish/guestfish-actions.pod:2954
11056 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4405
11057 msgid "Create a directory named C<path>."
11061 #: ../fish/guestfish-actions.pod:2958
11063 msgstr "mkdir-mode"
11066 #: ../fish/guestfish-actions.pod:2960
11069 " mkdir-mode path mode\n"
11072 " mkdir-mode шлях режим\n"
11076 #: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4418
11078 "This command creates a directory, setting the initial permissions of the "
11079 "directory to C<mode>."
11083 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4421
11085 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11086 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11091 #: ../fish/guestfish-actions.pod:2969
11092 msgid "See also L</mkdir>, L</umask>"
11093 msgstr "Див. також L</mkdir>, L</umask>"
11096 #: ../fish/guestfish-actions.pod:2971
11101 #: ../fish/guestfish-actions.pod:2973
11111 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4437
11113 "Create a directory named C<path>, creating any parent directories as "
11114 "necessary. This is like the C<mkdir -p> shell command."
11118 #: ../fish/guestfish-actions.pod:2978
11123 #: ../fish/guestfish-actions.pod:2980
11126 " mkdtemp template\n"
11129 " mkdtemp шаблон\n"
11133 #: ../fish/guestfish-actions.pod:2982 ../src/guestfs-actions.pod:4450
11135 "This command creates a temporary directory. The C<template> parameter "
11136 "should be a full pathname for the temporary directory name with the final "
11137 "six characters being \"XXXXXX\"."
11141 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11143 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11144 "being suitable for Windows filesystems."
11148 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4458
11149 msgid "The name of the temporary directory that was created is returned."
11153 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4461
11154 msgid "The temporary directory is created with mode 0700 and is owned by root."
11158 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4464
11160 "The caller is responsible for deleting the temporary directory and its "
11161 "contents after use."
11165 #: ../fish/guestfish-actions.pod:2999 ../src/guestfs-actions.pod:4467
11166 msgid "See also: L<mkdtemp(3)>"
11170 #: ../fish/guestfish-actions.pod:3001
11175 #: ../fish/guestfish-actions.pod:3003
11178 " mke2fs-J fstype blocksize device journal\n"
11183 #: ../fish/guestfish-actions.pod:3005 ../src/guestfs-actions.pod:4483
11185 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11186 "C<journal>. It is equivalent to the command:"
11190 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4487
11193 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11196 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11200 #: ../fish/guestfish-actions.pod:3011
11201 msgid "See also L</mke2journal>."
11202 msgstr "Див. також L</mke2journal>."
11205 #: ../fish/guestfish-actions.pod:3013
11210 #: ../fish/guestfish-actions.pod:3015
11213 " mke2fs-JL fstype blocksize device label\n"
11218 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4504
11220 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11221 "the journal labeled C<label>."
11225 #: ../fish/guestfish-actions.pod:3020
11226 msgid "See also L</mke2journal-L>."
11227 msgstr "Див. також L</mke2journal-L>."
11230 #: ../fish/guestfish-actions.pod:3022
11235 #: ../fish/guestfish-actions.pod:3024
11238 " mke2fs-JU fstype blocksize device uuid\n"
11243 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4522
11245 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11246 "the journal with UUID C<uuid>."
11250 #: ../fish/guestfish-actions.pod:3029
11251 msgid "See also L</mke2journal-U>."
11252 msgstr "Див. також L</mke2journal-U>."
11255 #: ../fish/guestfish-actions.pod:3031
11256 msgid "mke2journal"
11257 msgstr "mke2journal"
11260 #: ../fish/guestfish-actions.pod:3033
11263 " mke2journal blocksize device\n"
11268 #: ../fish/guestfish-actions.pod:3035 ../src/guestfs-actions.pod:4538
11270 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11275 #: ../fish/guestfish-actions.pod:3038 ../src/guestfs-actions.pod:4541
11278 " mke2fs -O journal_dev -b blocksize device\n"
11283 #: ../fish/guestfish-actions.pod:3040
11284 msgid "mke2journal-L"
11285 msgstr "mke2journal-L"
11288 #: ../fish/guestfish-actions.pod:3042
11291 " mke2journal-L blocksize label device\n"
11296 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4555
11297 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11301 #: ../fish/guestfish-actions.pod:3046
11302 msgid "mke2journal-U"
11303 msgstr "mke2journal-U"
11306 #: ../fish/guestfish-actions.pod:3048
11309 " mke2journal-U blocksize uuid device\n"
11314 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4569
11315 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11319 #: ../fish/guestfish-actions.pod:3052
11324 #: ../fish/guestfish-actions.pod:3054
11327 " mkfifo mode path\n"
11330 " mkfifo режим шлях\n"
11334 #: ../fish/guestfish-actions.pod:3056
11336 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11337 "is just a convenient wrapper around L</mknod>."
11341 #: ../fish/guestfish-actions.pod:3062
11346 #: ../fish/guestfish-actions.pod:3064
11349 " mkfs fstype device\n"
11352 " mkfs тип_файлової_системи пристрій\n"
11356 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4599
11358 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11359 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11363 #: ../fish/guestfish-actions.pod:3070
11368 #: ../fish/guestfish-actions.pod:3072
11371 " mkfs-b fstype blocksize device\n"
11376 #: ../fish/guestfish-actions.pod:3074
11378 "This call is similar to L</mkfs>, but it allows you to control the block "
11379 "size of the resulting filesystem. Supported block sizes depend on the "
11380 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11384 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
11385 #: ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4665
11387 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11392 #: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4625
11394 "This function is deprecated. In new code, use the C<mkfs_opts> call instead."
11398 #: ../fish/guestfish-actions.pod:3089
11403 #: ../fish/guestfish-actions.pod:3091
11406 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11411 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4652
11413 "This function creates a filesystem on C<device>. The filesystem type is "
11414 "C<fstype>, for example C<ext3>."
11418 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4659
11419 msgid "C<blocksize>"
11420 msgstr "C<blocksize>"
11423 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4661
11425 "The filesystem block size. Supported block sizes depend on the filesystem "
11426 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11431 #: ../fish/guestfish-actions.pod:3109 ../src/guestfs-actions.pod:4668
11432 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11436 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4670
11437 msgid "C<features>"
11438 msgstr "C<features>"
11441 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4672
11442 msgid "This passes the I<-O> parameter to the external mkfs program."
11446 #: ../fish/guestfish-actions.pod:3115 ../src/guestfs-actions.pod:4674
11448 "For certain filesystem types, this allows extra filesystem features to be "
11449 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11453 #: ../fish/guestfish-actions.pod:3119 ../src/guestfs-actions.pod:4678
11455 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11460 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4681
11465 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11467 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11468 "sets the inode size (only for ext2/3/4 filesystems at present)."
11472 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11473 msgid "C<sectorsize>"
11477 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11479 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11480 "sets sector size for ufs filesystem."
11484 #: ../fish/guestfish-actions.pod:3136
11485 msgid "mkmountpoint"
11486 msgstr "mkmountpoint"
11489 #: ../fish/guestfish-actions.pod:3138
11492 " mkmountpoint exemptpath\n"
11497 #: ../fish/guestfish-actions.pod:3140
11499 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11500 "to create extra mountpoints before mounting the first filesystem."
11504 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4731
11506 "These calls are I<only> necessary in some very limited circumstances, mainly "
11507 "the case where you want to mount a mix of unrelated and/or read-only "
11508 "filesystems together."
11512 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4735
11514 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11515 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11516 "inside that. You can unpack this as follows in guestfish:"
11520 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11523 " add-ro Fedora-11-i686-Live.iso\n"
11525 " mkmountpoint /cd\n"
11526 " mkmountpoint /sqsh\n"
11527 " mkmountpoint /ext3fs\n"
11528 " mount /dev/sda /cd\n"
11529 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11530 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11533 " add-ro Fedora-11-i686-Live.iso\n"
11535 " mkmountpoint /cd\n"
11536 " mkmountpoint /sqsh\n"
11537 " mkmountpoint /ext3fs\n"
11538 " mount /dev/sda /cd\n"
11539 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11540 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11544 #: ../fish/guestfish-actions.pod:3162 ../src/guestfs-actions.pod:4749
11545 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11549 #: ../fish/guestfish-actions.pod:3164
11551 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11552 "unexpected errors if you try to mix these calls. It is safest to manually "
11553 "unmount filesystems and remove mountpoints after use."
11557 #: ../fish/guestfish-actions.pod:3168
11559 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11560 "for this to work for manual mountpoints, you must ensure that the innermost "
11561 "mountpoints have the longest pathnames, as in the example code above."
11565 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4760
11567 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11571 #: ../fish/guestfish-actions.pod:3175
11573 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11574 "L</umount-all> to be called when the handle is closed which can also trigger "
11579 #: ../fish/guestfish-actions.pod:3179
11584 #: ../fish/guestfish-actions.pod:3181
11587 " mknod mode devmajor devminor path\n"
11592 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4779
11594 "This call creates block or character special devices, or named pipes (FIFOs)."
11598 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4782
11600 "The C<mode> parameter should be the mode, using the standard constants. "
11601 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11602 "used when creating block and character special devices."
11606 #: ../fish/guestfish-actions.pod:3191
11608 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11609 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11610 "regular file). These constants are available in the standard Linux header "
11611 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11612 "wrappers around this command which bitwise OR in the appropriate constant "
11617 #: ../fish/guestfish-actions.pod:3201
11622 #: ../fish/guestfish-actions.pod:3203
11625 " mknod-b mode devmajor devminor path\n"
11630 #: ../fish/guestfish-actions.pod:3205
11632 "This call creates a block device node called C<path> with mode C<mode> and "
11633 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11634 "wrapper around L</mknod>."
11638 #: ../fish/guestfish-actions.pod:3211
11643 #: ../fish/guestfish-actions.pod:3213
11646 " mknod-c mode devmajor devminor path\n"
11651 #: ../fish/guestfish-actions.pod:3215
11653 "This call creates a char device node called C<path> with mode C<mode> and "
11654 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11655 "wrapper around L</mknod>."
11659 #: ../fish/guestfish-actions.pod:3221
11664 #: ../fish/guestfish-actions.pod:3223
11670 " mkswap пристрій\n"
11674 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4845
11675 msgid "Create a swap partition on C<device>."
11679 #: ../fish/guestfish-actions.pod:3227
11684 #: ../fish/guestfish-actions.pod:3229
11687 " mkswap-L label device\n"
11690 " mkswap-L мітка пристрій\n"
11694 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4858
11695 msgid "Create a swap partition on C<device> with label C<label>."
11699 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4860
11701 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11702 "sda>), just to a partition. This appears to be a limitation of the kernel "
11707 #: ../fish/guestfish-actions.pod:3237
11712 #: ../fish/guestfish-actions.pod:3239
11715 " mkswap-U uuid device\n"
11718 " mkswap-U uuid пристрій\n"
11722 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4875
11723 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11727 #: ../fish/guestfish-actions.pod:3243
11728 msgid "mkswap-file"
11729 msgstr "mkswap-file"
11732 #: ../fish/guestfish-actions.pod:3245
11735 " mkswap-file path\n"
11738 " mkswap-file шлях\n"
11742 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4887
11743 msgid "Create a swap file."
11744 msgstr "Створити файл резервної пам’яті."
11747 #: ../fish/guestfish-actions.pod:3249
11749 "This command just writes a swap file signature to an existing file. To "
11750 "create the file itself, use something like L</fallocate>."
11754 #: ../fish/guestfish-actions.pod:3252
11759 #: ../fish/guestfish-actions.pod:3254
11762 " modprobe modulename\n"
11765 " modprobe назва_модуля\n"
11769 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4902
11770 msgid "This loads a kernel module in the appliance."
11774 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4904
11776 "The kernel module must have been whitelisted when libguestfs was built (see "
11777 "C<appliance/kmod.whitelist.in> in the source)."
11781 #: ../fish/guestfish-actions.pod:3261
11786 #: ../fish/guestfish-actions.pod:3263
11789 " mount device mountpoint\n"
11792 " mount пристрій точка_монтування\n"
11796 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:4918
11798 "Mount a guest disk at a position in the filesystem. Block devices are named "
11799 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
11800 "those block devices contain partitions, they will have the usual names (eg. "
11801 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
11805 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4924
11807 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11808 "mounted on C</> before others can be mounted. Other filesystems can only be "
11809 "mounted on directories which already exist."
11813 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
11815 "The mounted filesystem is writable, if we have sufficient permissions on the "
11816 "underlying device."
11820 #: ../fish/guestfish-actions.pod:3279
11822 "B<Important note:> When you use this call, the filesystem options C<sync> "
11823 "and C<noatime> are set implicitly. This was originally done because we "
11824 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11825 "very large negative performance impact and negligible effect on "
11826 "reliability. Therefore we recommend that you avoid using L</mount> in any "
11827 "code that needs performance, and instead use L</mount-options> (use an empty "
11828 "string for the first parameter if you don't want any options)."
11832 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:4944
11834 "This function is deprecated. In new code, use the C<mount_options> call "
11839 #: ../fish/guestfish-actions.pod:3296
11844 #: ../fish/guestfish-actions.pod:3298
11847 " mount-9p mounttag mountpoint [options:..]\n"
11852 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:4968
11854 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11859 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4971
11861 "If required, C<trans=virtio> will be automatically added to the options. "
11862 "Any other options required can be passed in the optional C<options> "
11867 #: ../fish/guestfish-actions.pod:3309
11869 msgstr "mount-loop"
11872 #: ../fish/guestfish-actions.pod:3311
11875 " mount-loop file mountpoint\n"
11880 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5010
11882 "This command lets you mount C<file> (a filesystem image in a file) on a "
11883 "mount point. It is entirely equivalent to the command C<mount -o loop file "
11888 #: ../fish/guestfish-actions.pod:3317
11889 msgid "mount-options"
11890 msgstr "mount-options"
11893 #: ../fish/guestfish-actions.pod:3319
11896 " mount-options options device mountpoint\n"
11901 #: ../fish/guestfish-actions.pod:3321
11903 "This is the same as the L</mount> command, but it allows you to set the "
11904 "mount options as for the L<mount(8)> I<-o> flag."
11908 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5030
11910 "If the C<options> parameter is an empty string, then no options are passed "
11911 "(all options default to whatever the filesystem uses)."
11915 #: ../fish/guestfish-actions.pod:3329
11920 #: ../fish/guestfish-actions.pod:3331
11923 " mount-ro device mountpoint\n"
11926 " mount-ro пристрій точка_монтування\n"
11930 #: ../fish/guestfish-actions.pod:3333
11932 "This is the same as the L</mount> command, but it mounts the filesystem with "
11933 "the read-only (I<-o ro>) flag."
11937 #: ../fish/guestfish-actions.pod:3336
11942 #: ../fish/guestfish-actions.pod:3338
11945 " mount-vfs options vfstype device mountpoint\n"
11950 #: ../fish/guestfish-actions.pod:3340
11952 "This is the same as the L</mount> command, but it allows you to set both the "
11953 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11957 #: ../fish/guestfish-actions.pod:3344
11958 msgid "mountpoints"
11959 msgstr "mountpoints"
11962 #: ../fish/guestfish-actions.pod:3346
11972 #: ../fish/guestfish-actions.pod:3348
11974 "This call is similar to L</mounts>. That call returns a list of devices. "
11975 "This one returns a hash table (map) of device name to directory where the "
11976 "device is mounted."
11980 #: ../fish/guestfish-actions.pod:3352
11985 #: ../fish/guestfish-actions.pod:3354
11995 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5091
11997 "This returns the list of currently mounted filesystems. It returns the list "
11998 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12002 #: ../fish/guestfish-actions.pod:3359 ../src/guestfs-actions.pod:5094
12003 msgid "Some internal mounts are not shown."
12007 #: ../fish/guestfish-actions.pod:3361
12008 msgid "See also: L</mountpoints>"
12009 msgstr "Див. також L</mountpoints>"
12012 #: ../fish/guestfish-actions.pod:3363
12017 #: ../fish/guestfish-actions.pod:3365
12023 " mv джерело призначення\n"
12027 #: ../fish/guestfish-actions.pod:3367 ../src/guestfs-actions.pod:5111
12029 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12030 "destination filename or destination directory."
12034 #: ../fish/guestfish-actions.pod:3370
12035 msgid "ntfs-3g-probe"
12036 msgstr "ntfs-3g-probe"
12039 #: ../fish/guestfish-actions.pod:3372
12042 " ntfs-3g-probe true|false device\n"
12047 #: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5125
12049 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12050 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12051 "write, and some cannot be mounted at all)."
12055 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5129
12057 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12058 "can be mounted read-write. Set it to false if you want to test if the "
12059 "volume can be mounted read-only."
12063 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5133
12065 "The return value is an integer which C<0> if the operation would succeed, or "
12066 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12070 #: ../fish/guestfish-actions.pod:3386
12072 msgstr "ntfsresize"
12075 #: ../fish/guestfish-actions.pod:3388
12078 " ntfsresize device\n"
12081 " ntfsresize пристрій\n"
12085 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
12086 #: ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5186
12088 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12089 "size of the underlying device."
12093 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5150
12095 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12096 "consistency check (for safety). You have to boot into Windows to perform "
12097 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12098 "resize filesystems which have been marked in this way. So in effect it is "
12099 "not possible to call ntfsresize multiple times on a single filesystem "
12100 "without booting into Windows between each resize."
12104 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
12105 #: ../src/guestfs-actions.pod:5158 ../src/guestfs-actions.pod:5212
12106 msgid "See also L<ntfsresize(8)>."
12110 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
12111 #: ../src/guestfs-actions.pod:5162 ../src/guestfs-actions.pod:5252
12113 "This function is deprecated. In new code, use the C<ntfsresize_opts> call "
12118 #: ../fish/guestfish-actions.pod:3410
12119 msgid "ntfsresize-opts"
12123 #: ../fish/guestfish-actions.pod:3412
12126 " ntfsresize-opts device [size:..] [force:..]\n"
12131 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5195
12133 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12134 "resized to fit the container (eg. partition)."
12138 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5198
12143 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12145 "If this option is true, then force the resize of the filesystem even if the "
12146 "filesystem is marked as requiring a consistency check."
12150 #: ../fish/guestfish-actions.pod:3431
12152 "After the resize operation, the filesystem is always marked as requiring a "
12153 "consistency check (for safety). You have to boot into Windows to perform "
12154 "this check and clear this condition. If you I<don't> set the C<force> "
12155 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12156 "a single filesystem without booting into Windows between each resize."
12160 #: ../fish/guestfish-actions.pod:3444
12161 msgid "ntfsresize-size"
12162 msgstr "ntfsresize-size"
12165 #: ../fish/guestfish-actions.pod:3446
12168 " ntfsresize-size device size\n"
12173 #: ../fish/guestfish-actions.pod:3448
12175 "This command is the same as L</ntfsresize> except that it allows you to "
12176 "specify the new size (in bytes) explicitly."
12180 #: ../fish/guestfish-actions.pod:3458
12185 #: ../fish/guestfish-actions.pod:3460
12188 " part-add device prlogex startsect endsect\n"
12193 #: ../fish/guestfish-actions.pod:3462
12195 "This command adds a partition to C<device>. If there is no partition table "
12196 "on the device, call L</part-init> first."
12200 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5273
12202 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12203 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12204 "C<logical>) and C<e> (or C<extended>) partition types."
12208 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12210 "C<startsect> and C<endsect> are the start and end of the partition in "
12211 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12212 "from the end of the disk (C<-1> is the last sector)."
12216 #: ../fish/guestfish-actions.pod:3474
12218 "Creating a partition which covers the whole disk is not so easy. Use L</"
12219 "part-disk> to do that."
12223 #: ../fish/guestfish-actions.pod:3477
12228 #: ../fish/guestfish-actions.pod:3479
12231 " part-del device partnum\n"
12236 #: ../fish/guestfish-actions.pod:3481 ../src/guestfs-actions.pod:5296
12237 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12241 #: ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:5298
12243 "Note that in the case of MBR partitioning, deleting an extended partition "
12244 "also deletes any logical partitions it contains."
12248 #: ../fish/guestfish-actions.pod:3487
12253 #: ../fish/guestfish-actions.pod:3489
12256 " part-disk device parttype\n"
12259 " part-disk пристрій тип_розділу\n"
12263 #: ../fish/guestfish-actions.pod:3491
12265 "This command is simply a combination of L</part-init> followed by L</part-"
12266 "add> to create a single primary partition covering the whole disk."
12270 #: ../fish/guestfish-actions.pod:3495
12272 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12273 "possible values are described in L</part-init>."
12277 #: ../fish/guestfish-actions.pod:3501
12278 msgid "part-get-bootable"
12279 msgstr "part-get-bootable"
12282 #: ../fish/guestfish-actions.pod:3503
12285 " part-get-bootable device partnum\n"
12290 #: ../fish/guestfish-actions.pod:3505 ../src/guestfs-actions.pod:5334
12292 "This command returns true if the partition C<partnum> on C<device> has the "
12293 "bootable flag set."
12297 #: ../fish/guestfish-actions.pod:3508
12298 msgid "See also L</part-set-bootable>."
12299 msgstr "Див. також L</part-set-bootable>."
12302 #: ../fish/guestfish-actions.pod:3510
12303 msgid "part-get-mbr-id"
12304 msgstr "part-get-mbr-id"
12307 #: ../fish/guestfish-actions.pod:3512
12310 " part-get-mbr-id device partnum\n"
12315 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5350
12317 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12318 "partition C<partnum>."
12322 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3661
12324 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12325 "undefined results for other partition table types (see L</part-get-"
12330 #: ../fish/guestfish-actions.pod:3521
12331 msgid "part-get-parttype"
12332 msgstr "part-get-parttype"
12335 #: ../fish/guestfish-actions.pod:3523
12338 " part-get-parttype device\n"
12341 " part-get-parttype пристрій\n"
12345 #: ../fish/guestfish-actions.pod:3525 ../src/guestfs-actions.pod:5367
12347 "This command examines the partition table on C<device> and returns the "
12348 "partition table type (format) being used."
12352 #: ../fish/guestfish-actions.pod:3528
12354 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12355 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12356 "possible, although unusual. See L</part-init> for a full list."
12360 #: ../fish/guestfish-actions.pod:3533
12365 #: ../fish/guestfish-actions.pod:3535
12368 " part-init device parttype\n"
12373 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5387
12375 "This creates an empty partition table on C<device> of one of the partition "
12376 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12377 "(for large disks)."
12381 #: ../fish/guestfish-actions.pod:3541
12383 "Initially there are no partitions. Following this, you should call L</part-"
12384 "add> for each partition required."
12388 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5394
12389 msgid "Possible values for C<parttype> are:"
12393 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5398
12398 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5400
12403 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5402
12404 msgid "Intel EFI / GPT partition table."
12408 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5404
12410 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12411 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12412 "the C<mbr> format."
12416 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5408
12421 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5410
12426 #: ../fish/guestfish-actions.pod:3562 ../src/guestfs-actions.pod:5412
12428 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12429 "Windows. This partition type will B<only> work for device sizes up to 2 "
12430 "TB. For large disks we recommend using C<gpt>."
12434 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5419
12436 "Other partition table types that may work but are not supported include:"
12440 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12445 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5426
12446 msgid "AIX disk labels."
12447 msgstr "Мітки дисків AIX."
12450 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5428
12452 #| msgid "B<amiga> | B<rdb>"
12454 msgstr "B<amiga> | B<rdb>"
12457 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5430
12462 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5432
12463 msgid "Amiga \"Rigid Disk Block\" format."
12464 msgstr "Формат \"Rigid Disk Block\" Amiga."
12467 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5434
12472 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5436
12473 msgid "BSD disk labels."
12474 msgstr "Мітки дисків BSD."
12477 #: ../fish/guestfish-actions.pod:3588 ../src/guestfs-actions.pod:5438
12482 #: ../fish/guestfish-actions.pod:3590 ../src/guestfs-actions.pod:5440
12483 msgid "DASD, used on IBM mainframes."
12484 msgstr "DASD, використовувалися у мейнфреймах IBM."
12487 #: ../fish/guestfish-actions.pod:3592 ../src/guestfs-actions.pod:5442
12492 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5444
12493 msgid "MIPS/SGI volumes."
12494 msgstr "Томи MIPS/SGI."
12497 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
12502 #: ../fish/guestfish-actions.pod:3598 ../src/guestfs-actions.pod:5448
12503 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12504 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12507 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
12512 #: ../fish/guestfish-actions.pod:3602 ../src/guestfs-actions.pod:5452
12513 msgid "NEC PC-98 format, common in Japan apparently."
12514 msgstr "Формат NEC PC-98, поширений у Японії."
12517 #: ../fish/guestfish-actions.pod:3604 ../src/guestfs-actions.pod:5454
12522 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5456
12523 msgid "Sun disk labels."
12524 msgstr "Мітки дисків Sun."
12527 #: ../fish/guestfish-actions.pod:3610
12532 #: ../fish/guestfish-actions.pod:3612
12535 " part-list device\n"
12538 " part-list device\n"
12542 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5470
12544 "This command parses the partition table on C<device> and returns the list of "
12545 "partitions found."
12549 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5473
12550 msgid "The fields in the returned structure are:"
12554 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5477
12555 msgid "B<part_num>"
12556 msgstr "B<part_num>"
12559 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5479
12560 msgid "Partition number, counting from 1."
12564 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5481
12565 msgid "B<part_start>"
12566 msgstr "B<part_start>"
12569 #: ../fish/guestfish-actions.pod:3627
12571 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12572 "the device's sector size, see L</blockdev-getss>."
12576 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12577 msgid "B<part_end>"
12578 msgstr "B<part_end>"
12581 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5488
12582 msgid "End of the partition in bytes."
12586 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5490
12587 msgid "B<part_size>"
12588 msgstr "B<part_size>"
12591 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5492
12592 msgid "Size of the partition in bytes."
12596 #: ../fish/guestfish-actions.pod:3640
12597 msgid "part-set-bootable"
12598 msgstr "part-set-bootable"
12601 #: ../fish/guestfish-actions.pod:3642
12604 " part-set-bootable device partnum true|false\n"
12609 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5510
12611 "This sets the bootable flag on partition numbered C<partnum> on device "
12612 "C<device>. Note that partitions are numbered from 1."
12616 #: ../fish/guestfish-actions.pod:3647 ../src/guestfs-actions.pod:5513
12618 "The bootable flag is used by some operating systems (notably Windows) to "
12619 "determine which partition to boot from. It is by no means universally "
12624 #: ../fish/guestfish-actions.pod:3651
12625 msgid "part-set-mbr-id"
12626 msgstr "part-set-mbr-id"
12629 #: ../fish/guestfish-actions.pod:3653
12632 " part-set-mbr-id device partnum idbyte\n"
12637 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5529
12639 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12640 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
12641 "documentation are in fact hexadecimal numbers, but usually documented "
12642 "without any leading \"0x\" which might be confusing."
12646 #: ../fish/guestfish-actions.pod:3665
12647 msgid "part-set-name"
12648 msgstr "part-set-name"
12651 #: ../fish/guestfish-actions.pod:3667
12654 " part-set-name device partnum name\n"
12659 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5551
12661 "This sets the partition name on partition numbered C<partnum> on device "
12662 "C<device>. Note that partitions are numbered from 1."
12666 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5554
12668 "The partition name can only be set on certain types of partition table. "
12669 "This works on C<gpt> but not on C<mbr> partitions."
12673 #: ../fish/guestfish-actions.pod:3675
12674 msgid "part-to-dev"
12675 msgstr "part-to-dev"
12678 #: ../fish/guestfish-actions.pod:3677
12681 " part-to-dev partition\n"
12684 " part-to-dev розділ\n"
12688 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5567
12690 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12691 "partition number, returning the device name (eg. \"/dev/sdb\")."
12695 #: ../fish/guestfish-actions.pod:3683
12697 "The named partition must exist, for example as a string returned from L</"
12698 "list-partitions>."
12702 #: ../fish/guestfish-actions.pod:3686
12703 msgid "ping-daemon"
12704 msgstr "ping-daemon"
12707 #: ../fish/guestfish-actions.pod:3688
12717 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5584
12719 "This is a test probe into the guestfs daemon running inside the qemu "
12720 "subprocess. Calling this function checks that the daemon responds to the "
12721 "ping message, without affecting the daemon or attached block device(s) in "
12726 #: ../fish/guestfish-actions.pod:3695
12731 #: ../fish/guestfish-actions.pod:3697
12734 " pread path count offset\n"
12739 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5602
12741 "This command lets you read part of a file. It reads C<count> bytes of the "
12742 "file, starting at C<offset>, from file C<path>."
12746 #: ../fish/guestfish-actions.pod:3702 ../fish/guestfish-actions.pod:3717
12747 #: ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5631
12749 "This may read fewer bytes than requested. For further details see the "
12750 "L<pread(2)> system call."
12754 #: ../fish/guestfish-actions.pod:3705
12755 msgid "See also L</pwrite>, L</pread-device>."
12756 msgstr "Див. також L</pwrite>, L</pread-device>."
12759 #: ../fish/guestfish-actions.pod:3710
12760 msgid "pread-device"
12761 msgstr "pread-device"
12764 #: ../fish/guestfish-actions.pod:3712
12767 " pread-device device count offset\n"
12772 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5628
12774 "This command lets you read part of a file. It reads C<count> bytes of "
12775 "C<device>, starting at C<offset>."
12779 #: ../fish/guestfish-actions.pod:3720
12780 msgid "See also L</pread>."
12781 msgstr "Див. також L</pread>."
12784 #: ../fish/guestfish-actions.pod:3725
12789 #: ../fish/guestfish-actions.pod:3727
12792 " pvcreate device\n"
12795 " pvcreate пристрій\n"
12799 #: ../fish/guestfish-actions.pod:3729 ../src/guestfs-actions.pod:5651
12801 "This creates an LVM physical volume on the named C<device>, where C<device> "
12802 "should usually be a partition name such as C</dev/sda1>."
12806 #: ../fish/guestfish-actions.pod:3733
12811 #: ../fish/guestfish-actions.pod:3735
12814 " pvremove device\n"
12817 " pvremove пристрій\n"
12821 #: ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5665
12823 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12828 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5668
12830 "The implementation uses the C<pvremove> command which refuses to wipe "
12831 "physical volumes that contain any volume groups, so you have to remove those "
12836 #: ../fish/guestfish-actions.pod:3744
12841 #: ../fish/guestfish-actions.pod:3746
12844 " pvresize device\n"
12847 " pvresize пристрій\n"
12851 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5682
12853 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12854 "the new size of the underlying device."
12858 #: ../fish/guestfish-actions.pod:3751
12859 msgid "pvresize-size"
12860 msgstr "pvresize-size"
12863 #: ../fish/guestfish-actions.pod:3753
12866 " pvresize-size device size\n"
12871 #: ../fish/guestfish-actions.pod:3755
12873 "This command is the same as L</pvresize> except that it allows you to "
12874 "specify the new size (in bytes) explicitly."
12878 #: ../fish/guestfish-actions.pod:3758
12883 #: ../fish/guestfish-actions.pod:3760
12893 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5708
12895 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12900 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5711
12902 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12907 #: ../fish/guestfish-actions.pod:3768
12908 msgid "See also L</pvs-full>."
12909 msgstr "Див. також L</pvs-full>."
12912 #: ../fish/guestfish-actions.pod:3770
12917 #: ../fish/guestfish-actions.pod:3772
12927 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5727
12929 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12930 "(8)> command. The \"full\" version includes all fields."
12934 #: ../fish/guestfish-actions.pod:3777
12939 #: ../fish/guestfish-actions.pod:3779
12945 " pvuuid пристрій\n"
12949 #: ../fish/guestfish-actions.pod:3781 ../src/guestfs-actions.pod:5742
12950 msgid "This command returns the UUID of the LVM PV C<device>."
12954 #: ../fish/guestfish-actions.pod:3783
12959 #: ../fish/guestfish-actions.pod:3785
12962 " pwrite path content offset\n"
12967 #: ../fish/guestfish-actions.pod:3787 ../src/guestfs-actions.pod:5758
12969 "This command writes to part of a file. It writes the data buffer C<content> "
12970 "to the file C<path> starting at offset C<offset>."
12974 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5761
12976 "This command implements the L<pwrite(2)> system call, and like that system "
12977 "call it may not write the full data requested. The return value is the "
12978 "number of bytes that were actually written to the file. This could even be "
12979 "0, although short writes are unlikely for regular files in ordinary "
12984 #: ../fish/guestfish-actions.pod:3796
12985 msgid "See also L</pread>, L</pwrite-device>."
12986 msgstr "Див. також L</pread>, L</pwrite-device>."
12989 #: ../fish/guestfish-actions.pod:3801
12990 msgid "pwrite-device"
12991 msgstr "pwrite-device"
12994 #: ../fish/guestfish-actions.pod:3803
12997 " pwrite-device device content offset\n"
13002 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5785
13004 "This command writes to part of a device. It writes the data buffer "
13005 "C<content> to C<device> starting at offset C<offset>."
13009 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5788
13011 "This command implements the L<pwrite(2)> system call, and like that system "
13012 "call it may not write the full data requested (although short writes to disk "
13013 "devices and partitions are probably impossible with standard Linux kernels)."
13017 #: ../fish/guestfish-actions.pod:3813
13018 msgid "See also L</pwrite>."
13019 msgstr "Див. також L</pwrite>."
13022 #: ../fish/guestfish-actions.pod:3818
13027 #: ../fish/guestfish-actions.pod:3820
13030 " read-file path\n"
13033 " read-file шлях\n"
13037 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5809
13038 msgid "This calls returns the contents of the file C<path> as a buffer."
13042 #: ../fish/guestfish-actions.pod:3825
13044 "Unlike L</cat>, this function can correctly handle files that contain "
13045 "embedded ASCII NUL characters. However unlike L</download>, this function "
13046 "is limited in the total size of file that can be handled."
13050 #: ../fish/guestfish-actions.pod:3833
13052 msgstr "read-lines"
13055 #: ../fish/guestfish-actions.pod:3835
13058 " read-lines path\n"
13061 " read-lines шлях\n"
13065 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5834
13067 "The file contents are returned as a list of lines. Trailing C<LF> and "
13068 "C<CRLF> character sequences are I<not> returned."
13072 #: ../fish/guestfish-actions.pod:3842
13074 "Note that this function cannot correctly handle binary files (specifically, "
13075 "files containing C<\\0> character which is treated as end of line). For "
13076 "those you need to use the L</read-file> function which has a more complex "
13081 #: ../fish/guestfish-actions.pod:3847
13086 #: ../fish/guestfish-actions.pod:3849
13092 " readdir каталог\n"
13096 #: ../fish/guestfish-actions.pod:3851 ../src/guestfs-actions.pod:5854
13097 msgid "This returns the list of directory entries in directory C<dir>."
13101 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5856
13103 "All entries in the directory are returned, including C<.> and C<..>. The "
13104 "entries are I<not> sorted, but returned in the same order as the underlying "
13109 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:5860
13111 "Also this call returns basic file type information about each file. The "
13112 "C<ftyp> field will contain one of the following characters:"
13116 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13121 #: ../fish/guestfish-actions.pod:3864 ../src/guestfs-actions.pod:5867
13122 msgid "Block special"
13123 msgstr "Блоковий особливий"
13126 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5869
13131 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:5871
13132 msgid "Char special"
13133 msgstr "Символьний особливий"
13136 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5873
13141 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:5875
13146 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:5877
13151 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:5879
13152 msgid "FIFO (named pipe)"
13153 msgstr "FIFO (іменований канал)"
13156 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
13161 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
13162 msgid "Symbolic link"
13163 msgstr "Символічне посилання"
13166 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
13171 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
13172 msgid "Regular file"
13173 msgstr "Звичайний файл"
13176 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:5889
13181 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
13186 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:5893
13191 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:5895
13192 msgid "Unknown file type"
13193 msgstr "Невідомий тип файла"
13196 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5897
13201 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:5899
13203 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13207 #: ../fish/guestfish-actions.pod:3901
13209 "This function is primarily intended for use by programs. To get a simple "
13210 "list of names, use L</ls>. To get a printable directory for human "
13211 "consumption, use L</ll>."
13215 #: ../fish/guestfish-actions.pod:3905
13220 #: ../fish/guestfish-actions.pod:3907
13230 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5920
13231 msgid "This command reads the target of a symbolic link."
13235 #: ../fish/guestfish-actions.pod:3911
13236 msgid "readlinklist"
13237 msgstr "readlinklist"
13240 #: ../fish/guestfish-actions.pod:3913
13243 " readlinklist path 'names ...'\n"
13248 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5934
13250 "This call allows you to do a C<readlink> operation on multiple files, where "
13251 "all files are in the directory C<path>. C<names> is the list of files from "
13256 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5938
13258 "On return you get a list of strings, with a one-to-one correspondence to the "
13259 "C<names> list. Each string is the value of the symbolic link."
13263 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5942
13265 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13266 "result string is the empty string C<\"\">. However the whole operation is "
13267 "completed even if there were C<readlink(2)> errors, and so you can call this "
13268 "function with names where you don't know if they are symbolic links already "
13269 "(albeit slightly less efficient)."
13273 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:5949
13275 "This call is intended for programs that want to efficiently list a directory "
13276 "contents without making many round-trips. Very long directory listings "
13277 "might cause the protocol message size to be exceeded, causing this call to "
13278 "fail. The caller must split up such requests into smaller groups of names."
13282 #: ../fish/guestfish-actions.pod:3937
13287 #: ../fish/guestfish-actions.pod:3939
13297 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:5968
13299 "Return the canonicalized absolute pathname of C<path>. The returned path "
13300 "has no C<.>, C<..> or symbolic link path elements."
13304 #: ../fish/guestfish-actions.pod:3944
13305 msgid "removexattr"
13306 msgstr "removexattr"
13309 #: ../fish/guestfish-actions.pod:3946
13312 " removexattr xattr path\n"
13317 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:5983
13319 "This call removes the extended attribute named C<xattr> of the file C<path>."
13323 #: ../fish/guestfish-actions.pod:3951
13324 msgid "See also: L</lremovexattr>, L<attr(5)>."
13325 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13328 #: ../fish/guestfish-actions.pod:3953
13333 #: ../fish/guestfish-actions.pod:3955
13336 " resize2fs device\n"
13339 " resize2fs пристрій\n"
13343 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5998
13345 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13346 "underlying device."
13350 #: ../fish/guestfish-actions.pod:3960
13352 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13353 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13354 "gives an error about this and sometimes not. In any case, it is always safe "
13355 "to call L</e2fsck-f> before calling this function."
13359 #: ../fish/guestfish-actions.pod:3966
13360 msgid "resize2fs-M"
13361 msgstr "resize2fs-M"
13364 #: ../fish/guestfish-actions.pod:3968
13367 " resize2fs-M device\n"
13370 " resize2fs-M пристрій\n"
13374 #: ../fish/guestfish-actions.pod:3970
13376 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13377 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13382 #: ../fish/guestfish-actions.pod:3974
13384 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13385 "and read the C<Block size> and C<Block count> values. These two numbers, "
13386 "multiplied together, give the resulting size of the minimal filesystem in "
13391 #: ../fish/guestfish-actions.pod:3979
13392 msgid "resize2fs-size"
13393 msgstr "resize2fs-size"
13396 #: ../fish/guestfish-actions.pod:3981
13399 " resize2fs-size device size\n"
13404 #: ../fish/guestfish-actions.pod:3983
13406 "This command is the same as L</resize2fs> except that it allows you to "
13407 "specify the new size (in bytes) explicitly."
13411 #: ../fish/guestfish-actions.pod:3986
13416 #: ../fish/guestfish-actions.pod:3988
13426 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6050
13427 msgid "Remove the single file C<path>."
13431 #: ../fish/guestfish-actions.pod:3992
13436 #: ../fish/guestfish-actions.pod:3994
13446 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6062
13448 "Remove the file or directory C<path>, recursively removing the contents if "
13449 "its a directory. This is like the C<rm -rf> shell command."
13453 #: ../fish/guestfish-actions.pod:4000
13458 #: ../fish/guestfish-actions.pod:4002
13468 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6076
13469 msgid "Remove the single directory C<path>."
13473 #: ../fish/guestfish-actions.pod:4006
13474 msgid "rmmountpoint"
13475 msgstr "rmmountpoint"
13478 #: ../fish/guestfish-actions.pod:4008
13481 " rmmountpoint exemptpath\n"
13486 #: ../fish/guestfish-actions.pod:4010
13488 "This calls removes a mountpoint that was previously created with L</"
13489 "mkmountpoint>. See L</mkmountpoint> for full details."
13493 #: ../fish/guestfish-actions.pod:4014
13494 msgid "scrub-device"
13495 msgstr "scrub-device"
13498 #: ../fish/guestfish-actions.pod:4016
13501 " scrub-device device\n"
13504 " scrub-device пристрій\n"
13508 #: ../fish/guestfish-actions.pod:4018 ../src/guestfs-actions.pod:6102
13510 "This command writes patterns over C<device> to make data retrieval more "
13515 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4036
13516 #: ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6105
13517 #: ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6145
13519 "It is an interface to the L<scrub(1)> program. See that manual page for "
13524 #: ../fish/guestfish-actions.pod:4027
13526 msgstr "scrub-file"
13529 #: ../fish/guestfish-actions.pod:4029
13532 " scrub-file file\n"
13535 " scrub-file файл\n"
13539 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6121
13541 "This command writes patterns over a file to make data retrieval more "
13546 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6124
13547 msgid "The file is I<removed> after scrubbing."
13551 #: ../fish/guestfish-actions.pod:4039
13552 msgid "scrub-freespace"
13553 msgstr "scrub-freespace"
13556 #: ../fish/guestfish-actions.pod:4041
13559 " scrub-freespace dir\n"
13562 " scrub-freespace каталог\n"
13566 #: ../fish/guestfish-actions.pod:4043
13568 "This command creates the directory C<dir> and then fills it with files until "
13569 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13570 "deletes them. The intention is to scrub any free space on the partition "
13571 "containing C<dir>."
13575 #: ../fish/guestfish-actions.pod:4052
13577 msgstr "set-append"
13580 #: ../fish/guestfish-actions.pod:4054
13585 #: ../fish/guestfish-actions.pod:4056
13588 " set-append append\n"
13593 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6158
13595 "This function is used to add additional options to the guest kernel command "
13600 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6161
13602 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13603 "environment variable."
13607 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6164
13609 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13610 "(libguestfs always adds a few of its own)."
13614 #: ../fish/guestfish-actions.pod:4067
13615 msgid "set-attach-method"
13616 msgstr "set-attach-method"
13619 #: ../fish/guestfish-actions.pod:4069
13620 msgid "attach-method"
13624 #: ../fish/guestfish-actions.pod:4071
13627 " set-attach-method attachmethod\n"
13632 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6177
13634 "Set the method that libguestfs uses to connect to the back end guestfsd "
13635 "daemon. Possible methods are:"
13639 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13640 #: ../src/guestfs.pod:2687
13641 msgid "C<appliance>"
13642 msgstr "C<appliance>"
13645 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6184
13647 "Launch an appliance and connect to it. This is the ordinary method and the "
13652 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13653 msgid "C<unix:I<path>>"
13654 msgstr "C<unix:I<шлях>>"
13657 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13658 msgid "Connect to the Unix domain socket I<path>."
13659 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13662 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6191
13664 "This method lets you connect to an existing daemon or (using virtio-serial) "
13665 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
13666 "RUNNING DAEMONS>."
13670 #: ../fish/guestfish-actions.pod:4093
13671 msgid "set-autosync"
13672 msgstr "set-autosync"
13675 #: ../fish/guestfish-actions.pod:4095
13680 #: ../fish/guestfish-actions.pod:4097
13683 " set-autosync true|false\n"
13686 " set-autosync true|false\n"
13690 #: ../fish/guestfish-actions.pod:4099 ../src/guestfs-actions.pod:6207
13692 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
13693 "effort attempt to make filesystems consistent and synchronized when the "
13694 "handle is closed (also if the program exits without closing handles)."
13698 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13700 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13701 "disabled by default)."
13705 #: ../fish/guestfish-actions.pod:4107
13707 msgstr "set-direct"
13710 #: ../fish/guestfish-actions.pod:4109
13715 #: ../fish/guestfish-actions.pod:4111
13718 " set-direct true|false\n"
13721 " set-direct true|false\n"
13725 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6225
13727 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13728 "passed directly through to the appliance once it is launched."
13732 #: ../fish/guestfish-actions.pod:4117
13734 "One consequence of this is that log messages aren't caught by the library "
13735 "and handled by L</set-log-message-callback>, but go straight to stdout."
13739 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6233
13740 msgid "You probably don't want to use this unless you know what you are doing."
13744 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6236
13745 msgid "The default is disabled."
13749 #: ../fish/guestfish-actions.pod:4126
13750 msgid "set-e2label"
13751 msgstr "set-e2label"
13754 #: ../fish/guestfish-actions.pod:4128
13757 " set-e2label device label\n"
13762 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6249
13764 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13765 "C<label>. Filesystem labels are limited to 16 characters."
13769 #: ../fish/guestfish-actions.pod:4134
13771 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13772 "label on a filesystem."
13776 #: ../fish/guestfish-actions.pod:4137
13778 msgstr "set-e2uuid"
13781 #: ../fish/guestfish-actions.pod:4139
13784 " set-e2uuid device uuid\n"
13789 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6267
13791 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13792 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
13793 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13797 #: ../fish/guestfish-actions.pod:4146
13799 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13800 "UUID of a filesystem."
13804 #: ../fish/guestfish-actions.pod:4149
13805 msgid "set-memsize"
13806 msgstr "set-memsize"
13809 #: ../fish/guestfish-actions.pod:4151
13814 #: ../fish/guestfish-actions.pod:4153
13817 " set-memsize memsize\n"
13822 #: ../fish/guestfish-actions.pod:4155
13824 "This sets the memory size in megabytes allocated to the qemu subprocess. "
13825 "This only has any effect if called before L</launch>."
13829 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6289
13831 "You can also change this by setting the environment variable "
13832 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13836 #: ../fish/guestfish-actions.pod:4166
13837 msgid "set-network"
13838 msgstr "set-network"
13841 #: ../fish/guestfish-actions.pod:4168
13846 #: ../fish/guestfish-actions.pod:4170
13849 " set-network true|false\n"
13852 " set-network true|false\n"
13856 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6306
13858 "If C<network> is true, then the network is enabled in the libguestfs "
13859 "appliance. The default is false."
13863 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6309
13865 "This affects whether commands are able to access the network (see L<guestfs"
13866 "(3)/RUNNING COMMANDS>)."
13870 #: ../fish/guestfish-actions.pod:4178
13872 "You must call this before calling L</launch>, otherwise it has no effect."
13876 #: ../fish/guestfish-actions.pod:4181
13881 #: ../fish/guestfish-actions.pod:4185
13884 " set-path searchpath\n"
13889 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6325
13890 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13894 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6327
13896 "The default is C<$libdir/guestfs> unless overridden by setting "
13897 "C<LIBGUESTFS_PATH> environment variable."
13901 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13902 msgid "Setting C<path> to C<NULL> restores the default path."
13906 #: ../fish/guestfish-actions.pod:4194
13911 #: ../fish/guestfish-actions.pod:4196
13916 #: ../fish/guestfish-actions.pod:4198
13919 " set-pgroup true|false\n"
13924 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6342
13926 "If C<pgroup> is true, child processes are placed into their own process "
13931 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6345
13933 "The practical upshot of this is that signals like C<SIGINT> (from users "
13934 "pressing C<^C>) won't be received by the child process."
13938 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6348
13940 "The default for this flag is false, because usually you want C<^C> to kill "
13945 #: ../fish/guestfish-actions.pod:4209
13950 #: ../fish/guestfish-actions.pod:4211
13955 #: ../fish/guestfish-actions.pod:4213
13965 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6361
13966 msgid "Set the qemu binary that we will use."
13970 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6363
13972 "The default is chosen when the library was compiled by the configure script."
13976 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13978 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13983 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6369
13984 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13988 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13990 "Note that you should call this function as early as possible after creating "
13991 "the handle. This is because some pre-launch operations depend on testing "
13992 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
13993 "don't retest features, and so you might see inconsistent results. Using the "
13994 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13995 "the qemu binary at the same time as the handle is created."
13999 #: ../fish/guestfish-actions.pod:4233
14000 msgid "set-recovery-proc"
14001 msgstr "set-recovery-proc"
14004 #: ../fish/guestfish-actions.pod:4235
14005 msgid "recovery-proc"
14006 msgstr "recovery-proc"
14009 #: ../fish/guestfish-actions.pod:4237
14012 " set-recovery-proc true|false\n"
14015 " set-recovery-proc true|false\n"
14019 #: ../fish/guestfish-actions.pod:4239
14021 "If this is called with the parameter C<false> then L</launch> does not "
14022 "create a recovery process. The purpose of the recovery process is to stop "
14023 "runaway qemu processes in the case where the main program aborts abruptly."
14027 #: ../fish/guestfish-actions.pod:4244
14029 "This only has any effect if called before L</launch>, and the default is "
14034 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6397
14036 "About the only time when you would want to disable this is if the main "
14037 "process will fork itself into the background (\"daemonize\" itself). In "
14038 "this case the recovery process thinks that the main program has disappeared "
14039 "and so kills qemu, which is not very helpful."
14043 #: ../fish/guestfish-actions.pod:4253
14044 msgid "set-selinux"
14045 msgstr "set-selinux"
14048 #: ../fish/guestfish-actions.pod:4255
14053 #: ../fish/guestfish-actions.pod:4257
14056 " set-selinux true|false\n"
14059 " set-selinux true|false\n"
14063 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6413
14065 "This sets the selinux flag that is passed to the appliance at boot time. "
14066 "The default is C<selinux=0> (disabled)."
14070 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6416
14072 "Note that if SELinux is enabled, it is always in Permissive mode "
14073 "(C<enforcing=0>)."
14077 #: ../fish/guestfish-actions.pod:4268
14082 #: ../fish/guestfish-actions.pod:4270
14087 #: ../fish/guestfish-actions.pod:4272
14090 " set-trace true|false\n"
14093 " set-trace true|false\n"
14097 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6432
14099 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14100 "return values are traced."
14104 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6435
14106 "If you want to trace C API calls into libguestfs (and other libraries) then "
14107 "possibly a better way is to use the external ltrace(1) command."
14111 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6439
14113 "Command traces are disabled unless the environment variable "
14114 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14118 #: ../fish/guestfish-actions.pod:4284
14120 "Trace messages are normally sent to C<stderr>, unless you register a "
14121 "callback to send them somewhere else (see L</set-event-callback>)."
14125 #: ../fish/guestfish-actions.pod:4288
14126 msgid "set-verbose"
14127 msgstr "set-verbose"
14130 #: ../fish/guestfish-actions.pod:4290
14135 #: ../fish/guestfish-actions.pod:4292
14138 " set-verbose true|false\n"
14141 " set-verbose true|false\n"
14145 #: ../fish/guestfish-actions.pod:4294 ../src/guestfs-actions.pod:6456
14146 msgid "If C<verbose> is true, this turns on verbose messages."
14150 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6458
14152 "Verbose messages are disabled unless the environment variable "
14153 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14157 #: ../fish/guestfish-actions.pod:4299
14159 "Verbose messages are normally sent to C<stderr>, unless you register a "
14160 "callback to send them somewhere else (see L</set-event-callback>)."
14164 #: ../fish/guestfish-actions.pod:4303
14169 #: ../fish/guestfish-actions.pod:4305
14172 " setcon context\n"
14175 " setcon контекст\n"
14179 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6475
14181 "This sets the SELinux security context of the daemon to the string "
14186 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6478
14187 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14191 #: ../fish/guestfish-actions.pod:4312
14196 #: ../fish/guestfish-actions.pod:4314
14199 " setxattr xattr val vallen path\n"
14204 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6493
14206 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14207 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14211 #: ../fish/guestfish-actions.pod:4320
14212 msgid "See also: L</lsetxattr>, L<attr(5)>."
14213 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14216 #: ../fish/guestfish-actions.pod:4322
14221 #: ../fish/guestfish-actions.pod:4324
14224 " sfdisk device cyls heads sectors 'lines ...'\n"
14229 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6513
14231 "This is a direct interface to the L<sfdisk(8)> program for creating "
14232 "partitions on block devices."
14236 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6516
14237 msgid "C<device> should be a block device, for example C</dev/sda>."
14241 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
14243 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14244 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14245 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14246 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14247 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14248 "the kernel) cannot work out the right geometry and you will need to tell it."
14252 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6526
14254 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14255 "refer to the L<sfdisk(8)> manpage."
14259 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6529
14261 "To create a single partition occupying the whole disk, you would pass "
14262 "C<lines> as a single element list, when the single element being the string "
14267 #: ../fish/guestfish-actions.pod:4346
14268 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14269 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14272 #: ../fish/guestfish-actions.pod:4352 ../fish/guestfish-actions.pod:4375
14273 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6541
14274 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6604
14276 "This function is deprecated. In new code, use the C<part_add> call instead."
14280 #: ../fish/guestfish-actions.pod:4359
14285 #: ../fish/guestfish-actions.pod:4361
14288 " sfdiskM device 'lines ...'\n"
14293 #: ../fish/guestfish-actions.pod:4363
14295 "This is a simplified interface to the L</sfdisk> command, where partition "
14296 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14297 "you don't need to specify the cyls, heads and sectors parameters which were "
14298 "rarely if ever used anyway."
14302 #: ../fish/guestfish-actions.pod:4369
14303 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14305 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14308 #: ../fish/guestfish-actions.pod:4382
14313 #: ../fish/guestfish-actions.pod:4384
14316 " sfdisk-N device partnum cyls heads sectors line\n"
14321 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6591
14323 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14324 "(note: C<n> counts from 1)."
14328 #: ../fish/guestfish-actions.pod:4389
14330 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14331 "cyls/heads/sectors parameters."
14335 #: ../fish/guestfish-actions.pod:4392
14336 msgid "See also: L</part-add>"
14337 msgstr "Див. також L</part-add>"
14340 #: ../fish/guestfish-actions.pod:4404
14341 msgid "sfdisk-disk-geometry"
14342 msgstr "sfdisk-disk-geometry"
14345 #: ../fish/guestfish-actions.pod:4406
14348 " sfdisk-disk-geometry device\n"
14351 " sfdisk-disk-geometry пристрій\n"
14355 #: ../fish/guestfish-actions.pod:4408
14357 "This displays the disk geometry of C<device> read from the partition table. "
14358 "Especially in the case where the underlying block device has been resized, "
14359 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14360 "kernel-geometry>)."
14364 #: ../fish/guestfish-actions.pod:4413 ../fish/guestfish-actions.pod:4422
14365 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6640
14366 msgid "The result is in human-readable format, and not designed to be parsed."
14370 #: ../fish/guestfish-actions.pod:4416
14371 msgid "sfdisk-kernel-geometry"
14372 msgstr "sfdisk-kernel-geometry"
14375 #: ../fish/guestfish-actions.pod:4418
14378 " sfdisk-kernel-geometry device\n"
14381 " sfdisk-kernel-geometry пристрій\n"
14385 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6638
14386 msgid "This displays the kernel's idea of the geometry of C<device>."
14390 #: ../fish/guestfish-actions.pod:4425
14395 #: ../fish/guestfish-actions.pod:4427
14398 " sfdisk-l device\n"
14401 " sfdisk-l пристрій\n"
14405 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6654
14407 "This displays the partition table on C<device>, in the human-readable output "
14408 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14412 #: ../fish/guestfish-actions.pod:4433
14413 msgid "See also: L</part-list>"
14414 msgstr "Див. також L</part-list>"
14417 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6663
14419 "This function is deprecated. In new code, use the C<part_list> call instead."
14423 #: ../fish/guestfish-actions.pod:4442
14428 #: ../fish/guestfish-actions.pod:4444
14438 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6678
14440 "This call runs a command from the guest filesystem via the guest's C</bin/"
14445 #: ../fish/guestfish-actions.pod:4449
14446 msgid "This is like L</command>, but passes the command to:"
14450 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14453 " /bin/sh -c \"command\"\n"
14458 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6685
14460 "Depending on the guest's shell, this usually results in wildcards being "
14461 "expanded, shell expressions being interpolated and so on."
14465 #: ../fish/guestfish-actions.pod:4457
14466 msgid "All the provisos about L</command> apply to this call."
14470 #: ../fish/guestfish-actions.pod:4459
14475 #: ../fish/guestfish-actions.pod:4461
14478 " sh-lines command\n"
14481 " sh-lines команда\n"
14485 #: ../fish/guestfish-actions.pod:4463
14486 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14490 #: ../fish/guestfish-actions.pod:4466
14491 msgid "See also: L</command-lines>"
14492 msgstr "Див. також L</command-lines>"
14495 #: ../fish/guestfish-actions.pod:4468
14500 #: ../fish/guestfish-actions.pod:4470
14506 " sleep час_у_секундах\n"
14510 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6719
14511 msgid "Sleep for C<secs> seconds."
14515 #: ../fish/guestfish-actions.pod:4474
14520 #: ../fish/guestfish-actions.pod:4476
14530 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6733
14531 msgid "This is the same as the C<stat(2)> system call."
14535 #: ../fish/guestfish-actions.pod:4482
14540 #: ../fish/guestfish-actions.pod:4484
14550 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6747
14552 "Returns file system statistics for any mounted file system. C<path> should "
14553 "be a file or directory in the mounted file system (typically it is the mount "
14554 "point itself, but it doesn't need to be)."
14558 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6751
14559 msgid "This is the same as the C<statvfs(2)> system call."
14563 #: ../fish/guestfish-actions.pod:4492
14568 #: ../fish/guestfish-actions.pod:4494
14578 #: ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6765
14580 "This runs the L<strings(1)> command on a file and returns the list of "
14581 "printable strings found."
14585 #: ../fish/guestfish-actions.pod:4502
14590 #: ../fish/guestfish-actions.pod:4504
14593 " strings-e encoding path\n"
14596 " strings-e кодування шлях\n"
14600 #: ../fish/guestfish-actions.pod:4506
14602 "This is like the L</strings> command, but allows you to specify the encoding "
14603 "of strings that are looked for in the source file C<path>."
14607 #: ../fish/guestfish-actions.pod:4510 ../src/guestfs-actions.pod:6788
14608 msgid "Allowed encodings are:"
14609 msgstr "Можливими кодуваннями є:"
14612 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6792
14617 #: ../fish/guestfish-actions.pod:4516
14619 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14620 "ISO-8859-X (this is what L</strings> uses)."
14624 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14629 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6799
14630 msgid "Single 8-bit-byte characters."
14631 msgstr "Окремі 8-бітові-байтові символи."
14634 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6801
14639 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6803
14640 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14644 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14645 msgid "l (lower case letter L)"
14649 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14651 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
14652 "examining binaries in Windows guests."
14656 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14661 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14662 msgid "32-bit big endian such as UCS-4BE."
14666 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
14671 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:6817
14672 msgid "32-bit little endian such as UCS-4LE."
14676 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6821
14677 msgid "The returned strings are transcoded to UTF-8."
14681 #: ../fish/guestfish-actions.pod:4548
14682 msgid "swapoff-device"
14683 msgstr "swapoff-device"
14686 #: ../fish/guestfish-actions.pod:4550
14689 " swapoff-device device\n"
14692 " swapoff-device пристрій\n"
14696 #: ../fish/guestfish-actions.pod:4552
14698 "This command disables the libguestfs appliance swap device or partition "
14699 "named C<device>. See L</swapon-device>."
14703 #: ../fish/guestfish-actions.pod:4556
14704 msgid "swapoff-file"
14705 msgstr "swapoff-file"
14708 #: ../fish/guestfish-actions.pod:4558
14711 " swapoff-file file\n"
14714 " swapoff-file файл\n"
14718 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6852
14719 msgid "This command disables the libguestfs appliance swap on file."
14723 #: ../fish/guestfish-actions.pod:4562
14724 msgid "swapoff-label"
14725 msgstr "swapoff-label"
14728 #: ../fish/guestfish-actions.pod:4564
14731 " swapoff-label label\n"
14734 " swapoff-label мітка\n"
14738 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6864
14740 "This command disables the libguestfs appliance swap on labeled swap "
14745 #: ../fish/guestfish-actions.pod:4569
14746 msgid "swapoff-uuid"
14747 msgstr "swapoff-uuid"
14750 #: ../fish/guestfish-actions.pod:4571
14753 " swapoff-uuid uuid\n"
14756 " swapoff-uuid uuid\n"
14760 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6877
14762 "This command disables the libguestfs appliance swap partition with the given "
14767 #: ../fish/guestfish-actions.pod:4576
14768 msgid "swapon-device"
14769 msgstr "swapon-device"
14772 #: ../fish/guestfish-actions.pod:4578
14775 " swapon-device device\n"
14778 " swapon-device пристрій\n"
14782 #: ../fish/guestfish-actions.pod:4580
14784 "This command enables the libguestfs appliance to use the swap device or "
14785 "partition named C<device>. The increased memory is made available for all "
14786 "commands, for example those run using L</command> or L</sh>."
14790 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:6895
14792 "Note that you should not swap to existing guest swap partitions unless you "
14793 "know what you are doing. They may contain hibernation information, or other "
14794 "information that the guest doesn't want you to trash. You also risk leaking "
14795 "information about the host to the guest this way. Instead, attach a new "
14796 "host device to the guest and swap on that."
14800 #: ../fish/guestfish-actions.pod:4592
14801 msgid "swapon-file"
14802 msgstr "swapon-file"
14805 #: ../fish/guestfish-actions.pod:4594
14808 " swapon-file file\n"
14811 " swapon-file файл\n"
14815 #: ../fish/guestfish-actions.pod:4596
14817 "This command enables swap to a file. See L</swapon-device> for other notes."
14821 #: ../fish/guestfish-actions.pod:4599
14822 msgid "swapon-label"
14823 msgstr "swapon-label"
14826 #: ../fish/guestfish-actions.pod:4601
14829 " swapon-label label\n"
14832 " swapon-label мітка\n"
14836 #: ../fish/guestfish-actions.pod:4603
14838 "This command enables swap to a labeled swap partition. See L</swapon-"
14839 "device> for other notes."
14843 #: ../fish/guestfish-actions.pod:4606
14844 msgid "swapon-uuid"
14845 msgstr "swapon-uuid"
14848 #: ../fish/guestfish-actions.pod:4608
14851 " swapon-uuid uuid\n"
14854 " swapon-uuid uuid\n"
14858 #: ../fish/guestfish-actions.pod:4610
14860 "This command enables swap to a swap partition with the given UUID. See L</"
14861 "swapon-device> for other notes."
14865 #: ../fish/guestfish-actions.pod:4613
14870 #: ../fish/guestfish-actions.pod:4615
14880 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6950
14882 "This syncs the disk, so that any writes are flushed through to the "
14883 "underlying disk image."
14887 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6953
14889 "You should always call this if you have modified a disk image, before "
14890 "closing the handle."
14894 #: ../fish/guestfish-actions.pod:4623
14899 #: ../fish/guestfish-actions.pod:4625
14909 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6966
14911 "This command returns up to the last 10 lines of a file as a list of strings."
14915 #: ../fish/guestfish-actions.pod:4633
14920 #: ../fish/guestfish-actions.pod:4635
14923 " tail-n nrlines path\n"
14928 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:6985
14930 "If the parameter C<nrlines> is a positive number, this returns the last "
14931 "C<nrlines> lines of the file C<path>."
14935 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:6988
14937 "If the parameter C<nrlines> is a negative number, this returns lines from "
14938 "the file C<path>, starting with the C<-nrlines>th line."
14942 #: ../fish/guestfish-actions.pod:4648
14947 #: ../fish/guestfish-actions.pod:4650
14950 " tar-in (tarfile|-) directory\n"
14953 " tar-in (файл_tar|-) каталог\n"
14957 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7009
14959 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14960 "tar file) into C<directory>."
14964 #: ../fish/guestfish-actions.pod:4655
14965 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14969 #: ../fish/guestfish-actions.pod:4660
14974 #: ../fish/guestfish-actions.pod:4662
14977 " tar-out directory (tarfile|-)\n"
14980 " tar-out каталог (файл tar|-)\n"
14984 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7026
14986 "This command packs the contents of C<directory> and downloads it to local "
14991 #: ../fish/guestfish-actions.pod:4667
14992 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14996 #: ../fish/guestfish-actions.pod:4672
15001 #: ../fish/guestfish-actions.pod:4674
15004 " tgz-in (tarball|-) directory\n"
15007 " tgz-in (архів tar|-) каталог\n"
15011 #: ../fish/guestfish-actions.pod:4676 ../src/guestfs-actions.pod:7043
15013 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15014 "tar file) into C<directory>."
15018 #: ../fish/guestfish-actions.pod:4679
15019 msgid "To upload an uncompressed tarball, use L</tar-in>."
15023 #: ../fish/guestfish-actions.pod:4683
15028 #: ../fish/guestfish-actions.pod:4685
15031 " tgz-out directory (tarball|-)\n"
15034 " tgz-out каталог (архів tar|-)\n"
15038 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7059
15040 "This command packs the contents of C<directory> and downloads it to local "
15045 #: ../fish/guestfish-actions.pod:4690
15046 msgid "To download an uncompressed tarball, use L</tar-out>."
15050 #: ../fish/guestfish-actions.pod:4694
15055 #: ../fish/guestfish-actions.pod:4696
15065 #: ../fish/guestfish-actions.pod:4698 ../src/guestfs-actions.pod:7074
15067 "Touch acts like the L<touch(1)> command. It can be used to update the "
15068 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15073 #: ../fish/guestfish-actions.pod:4702 ../src/guestfs-actions.pod:7078
15075 "This command only works on regular files, and will fail on other file types "
15076 "such as directories, symbolic links, block special etc."
15080 #: ../fish/guestfish-actions.pod:4705
15085 #: ../fish/guestfish-actions.pod:4707
15095 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7091
15097 "This command truncates C<path> to a zero-length file. The file must exist "
15102 #: ../fish/guestfish-actions.pod:4712
15103 msgid "truncate-size"
15104 msgstr "truncate-size"
15107 #: ../fish/guestfish-actions.pod:4714
15110 " truncate-size path size\n"
15113 " truncate-size шлях розмір\n"
15117 #: ../fish/guestfish-actions.pod:4716 ../src/guestfs-actions.pod:7105
15119 "This command truncates C<path> to size C<size> bytes. The file must exist "
15124 #: ../fish/guestfish-actions.pod:4719
15126 "If the current file size is less than C<size> then the file is extended to "
15127 "the required size with zero bytes. This creates a sparse file (ie. disk "
15128 "blocks are not allocated for the file until you write to it). To create a "
15129 "non-sparse file of zeroes, use L</fallocate64> instead."
15133 #: ../fish/guestfish-actions.pod:4725
15138 #: ../fish/guestfish-actions.pod:4727
15141 " tune2fs-l device\n"
15144 " tune2fs-l пристрій\n"
15148 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7124
15150 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15155 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7127
15157 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15158 "for more details. The list of fields returned isn't clearly defined, and "
15159 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15160 "and the filesystem itself."
15164 #: ../fish/guestfish-actions.pod:4737
15169 #: ../fish/guestfish-actions.pod:4739
15172 " txz-in (tarball|-) directory\n"
15175 " txz-in (архів tar|-) каталог\n"
15179 #: ../fish/guestfish-actions.pod:4741 ../src/guestfs-actions.pod:7147
15181 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15182 "tar file) into C<directory>."
15186 #: ../fish/guestfish-actions.pod:4746
15191 #: ../fish/guestfish-actions.pod:4748
15194 " txz-out directory (tarball|-)\n"
15197 " txz-out каталог (архів tar|-)\n"
15201 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7161
15203 "This command packs the contents of C<directory> and downloads it to local "
15204 "file C<tarball> (as an xz compressed tar archive)."
15208 #: ../fish/guestfish-actions.pod:4755
15213 #: ../fish/guestfish-actions.pod:4757
15223 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7174
15225 "This function sets the mask used for creating new files and device nodes to "
15230 #: ../fish/guestfish-actions.pod:4762 ../src/guestfs-actions.pod:7177
15232 "Typical umask values would be C<022> which creates new files with "
15233 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15234 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15238 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15240 "The default umask is C<022>. This is important because it means that "
15241 "directories and device nodes will be created with C<0644> or C<0755> mode "
15242 "even if you specify C<0777>."
15246 #: ../fish/guestfish-actions.pod:4771
15247 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15248 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15251 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7189
15252 msgid "This call returns the previous umask."
15256 #: ../fish/guestfish-actions.pod:4776
15261 #: ../fish/guestfish-actions.pod:4778
15266 #: ../fish/guestfish-actions.pod:4780
15269 " umount pathordevice\n"
15272 " umount шлях_або_пристрій\n"
15276 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7201
15278 "This unmounts the given filesystem. The filesystem may be specified either "
15279 "by its mountpoint (path) or the device which contains the filesystem."
15283 #: ../fish/guestfish-actions.pod:4786
15285 msgstr "umount-all"
15288 #: ../fish/guestfish-actions.pod:4788
15289 msgid "unmount-all"
15290 msgstr "unmount-all"
15293 #: ../fish/guestfish-actions.pod:4790
15303 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7214
15304 msgid "This unmounts all mounted filesystems."
15308 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7216
15309 msgid "Some internal mounts are not unmounted by this call."
15313 #: ../fish/guestfish-actions.pod:4796
15318 #: ../fish/guestfish-actions.pod:4798
15321 " upload (filename|-) remotefilename\n"
15324 " upload (назва_файла|-) назва_віддаленого_файла\n"
15328 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4813
15329 #: ../src/guestfs-actions.pod:7229 ../src/guestfs-actions.pod:7253
15330 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15334 #: ../fish/guestfish-actions.pod:4805
15335 msgid "See also L</download>."
15336 msgstr "Див. також L</download>."
15339 #: ../fish/guestfish-actions.pod:4809
15340 msgid "upload-offset"
15341 msgstr "upload-offset"
15344 #: ../fish/guestfish-actions.pod:4811
15347 " upload-offset (filename|-) remotefilename offset\n"
15350 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15354 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7256
15356 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15357 "The intention is to overwrite parts of existing files or devices, although "
15358 "if a non-existant file is specified then it is created with a \"hole\" "
15359 "before C<offset>. The size of the data written is implicit in the size of "
15360 "the source C<filename>."
15364 #: ../fish/guestfish-actions.pod:4823
15366 "Note that there is no limit on the amount of data that can be uploaded with "
15367 "this call, unlike with L</pwrite>, and this call always writes the full "
15368 "amount unless an error occurs."
15372 #: ../fish/guestfish-actions.pod:4828
15373 msgid "See also L</upload>, L</pwrite>."
15374 msgstr "Див. також L</upload>, L</pwrite>."
15377 #: ../fish/guestfish-actions.pod:4832
15382 #: ../fish/guestfish-actions.pod:4834
15385 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15390 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7289
15391 msgid "This command sets the timestamps of a file with nanosecond precision."
15395 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7292
15397 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15402 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7295
15404 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15405 "nanoseconds from the epoch."
15409 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7298
15411 "If the C<*nsecs> field contains the special value C<-1> then the "
15412 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15413 "ignored in this case)."
15417 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7302
15419 "If the C<*nsecs> field contains the special value C<-2> then the "
15420 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15425 #: ../fish/guestfish-actions.pod:4853
15430 #: ../fish/guestfish-actions.pod:4855
15440 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7315
15442 "Return the libguestfs version number that the program is linked against."
15446 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7318
15448 "Note that because of dynamic linking this is not necessarily the version of "
15449 "libguestfs that you compiled against. You can compile the program, and then "
15450 "at runtime dynamically link against a completely different C<libguestfs.so> "
15455 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15457 "This call was added in version C<1.0.58>. In previous versions of "
15458 "libguestfs there was no way to get the version number. From C code you can "
15459 "use dynamic linker functions to find out if this symbol exists (if it "
15460 "doesn't, then it's an earlier version)."
15464 #: ../fish/guestfish-actions.pod:4871 ../src/guestfs-actions.pod:7329
15466 "The call returns a structure with four elements. The first three (C<major>, "
15467 "C<minor> and C<release>) are numbers and correspond to the usual version "
15468 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15469 "but may be used for distro-specific information."
15473 #: ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:7335
15475 "To construct the original version string: C<$major.$minor.$release$extra>"
15479 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7338
15480 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15484 #: ../fish/guestfish-actions.pod:4882
15486 "I<Note:> Don't use this call to test for availability of features. In "
15487 "enterprise distributions we backport features from later versions into "
15488 "earlier versions, making this an unreliable way to test for features. Use "
15489 "L</available> instead."
15493 #: ../fish/guestfish-actions.pod:4888
15498 #: ../fish/guestfish-actions.pod:4890
15501 " vfs-label device\n"
15504 " vfs-label пристрій\n"
15508 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7358
15509 msgid "This returns the filesystem label of the filesystem on C<device>."
15513 #: ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:7361
15514 msgid "If the filesystem is unlabeled, this returns the empty string."
15518 #: ../fish/guestfish-actions.pod:4897
15519 msgid "To find a filesystem from the label, use L</findfs-label>."
15523 #: ../fish/guestfish-actions.pod:4899
15528 #: ../fish/guestfish-actions.pod:4901
15531 " vfs-type device\n"
15534 " vfs-type пристрій\n"
15538 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7376
15540 "This command gets the filesystem type corresponding to the filesystem on "
15545 #: ../fish/guestfish-actions.pod:4906 ../src/guestfs-actions.pod:7379
15547 "For most filesystems, the result is the name of the Linux VFS module which "
15548 "would be used to mount this filesystem if you mounted it without specifying "
15549 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15553 #: ../fish/guestfish-actions.pod:4911
15558 #: ../fish/guestfish-actions.pod:4913
15561 " vfs-uuid device\n"
15564 " vfs-uuid пристрій\n"
15568 #: ../fish/guestfish-actions.pod:4915 ../src/guestfs-actions.pod:7395
15569 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15573 #: ../fish/guestfish-actions.pod:4918 ../src/guestfs-actions.pod:7398
15574 msgid "If the filesystem does not have a UUID, this returns the empty string."
15578 #: ../fish/guestfish-actions.pod:4920
15579 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15583 #: ../fish/guestfish-actions.pod:4922
15584 msgid "vg-activate"
15585 msgstr "vg-activate"
15588 #: ../fish/guestfish-actions.pod:4924
15591 " vg-activate true|false 'volgroups ...'\n"
15596 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7414
15598 "This command activates or (if C<activate> is false) deactivates all logical "
15599 "volumes in the listed volume groups C<volgroups>."
15603 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7417
15604 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15608 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15610 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15611 "activated or deactivated."
15615 #: ../fish/guestfish-actions.pod:4934
15616 msgid "vg-activate-all"
15617 msgstr "vg-activate-all"
15620 #: ../fish/guestfish-actions.pod:4936
15623 " vg-activate-all true|false\n"
15626 " vg-activate-all true|false\n"
15630 #: ../fish/guestfish-actions.pod:4938 ../src/guestfs-actions.pod:7432
15632 "This command activates or (if C<activate> is false) deactivates all logical "
15633 "volumes in all volume groups."
15637 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7435
15638 msgid "This command is the same as running C<vgchange -a y|n>"
15642 #: ../fish/guestfish-actions.pod:4943
15647 #: ../fish/guestfish-actions.pod:4945
15650 " vgcreate volgroup 'physvols ...'\n"
15655 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7448
15657 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15658 "of physical volumes C<physvols>."
15662 #: ../fish/guestfish-actions.pod:4950
15667 #: ../fish/guestfish-actions.pod:4952
15670 " vglvuuids vgname\n"
15675 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7461
15677 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15678 "volumes created in this volume group."
15682 #: ../fish/guestfish-actions.pod:4957
15684 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15685 "logical volumes and volume groups."
15689 #: ../fish/guestfish-actions.pod:4960
15690 msgid "See also L</vgpvuuids>."
15691 msgstr "Див. також L</vgpvuuids>."
15694 #: ../fish/guestfish-actions.pod:4962
15699 #: ../fish/guestfish-actions.pod:4964
15702 " vgpvuuids vgname\n"
15707 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7481
15709 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15710 "volumes that this volume group resides on."
15714 #: ../fish/guestfish-actions.pod:4969
15716 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15717 "physical volumes and volume groups."
15721 #: ../fish/guestfish-actions.pod:4972
15722 msgid "See also L</vglvuuids>."
15723 msgstr "Див. також L</vglvuuids>."
15726 #: ../fish/guestfish-actions.pod:4974
15731 #: ../fish/guestfish-actions.pod:4976
15734 " vgremove vgname\n"
15739 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7501
15740 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15744 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7503
15746 "This also forcibly removes all logical volumes in the volume group (if any)."
15750 #: ../fish/guestfish-actions.pod:4983
15755 #: ../fish/guestfish-actions.pod:4985
15758 " vgrename volgroup newvolgroup\n"
15763 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7517
15764 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15768 #: ../fish/guestfish-actions.pod:4989
15773 #: ../fish/guestfish-actions.pod:4991
15783 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7528
15785 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15790 #: ../fish/guestfish-actions.pod:4996 ../src/guestfs-actions.pod:7531
15792 "This returns a list of just the volume group names that were detected (eg. "
15797 #: ../fish/guestfish-actions.pod:4999
15798 msgid "See also L</vgs-full>."
15799 msgstr "Див. також L</vgs-full>."
15802 #: ../fish/guestfish-actions.pod:5001
15807 #: ../fish/guestfish-actions.pod:5003
15817 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7547
15819 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15820 "> command. The \"full\" version includes all fields."
15824 #: ../fish/guestfish-actions.pod:5008
15829 #: ../fish/guestfish-actions.pod:5010
15839 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7561
15841 "This rescans all block devices and rebuilds the list of LVM physical "
15842 "volumes, volume groups and logical volumes."
15846 #: ../fish/guestfish-actions.pod:5015
15851 #: ../fish/guestfish-actions.pod:5017
15859 #: ../fish/guestfish-actions.pod:5019 ../src/guestfs-actions.pod:7574
15860 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15864 #: ../fish/guestfish-actions.pod:5021
15869 #: ../fish/guestfish-actions.pod:5023
15879 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7614
15881 "This command counts the characters in a file, using the C<wc -c> external "
15886 #: ../fish/guestfish-actions.pod:5028
15891 #: ../fish/guestfish-actions.pod:5030
15901 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7627
15903 "This command counts the lines in a file, using the C<wc -l> external command."
15907 #: ../fish/guestfish-actions.pod:5035
15912 #: ../fish/guestfish-actions.pod:5037
15922 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7640
15924 "This command counts the words in a file, using the C<wc -w> external command."
15928 #: ../fish/guestfish-actions.pod:5042
15933 #: ../fish/guestfish-actions.pod:5044
15936 " write path content\n"
15939 " write шлях дані\n"
15943 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7655
15945 "This call creates a file called C<path>. The content of the file is the "
15946 "string C<content> (which can contain any 8 bit data)."
15950 #: ../fish/guestfish-actions.pod:5049
15951 msgid "See also L</write-append>."
15955 #: ../fish/guestfish-actions.pod:5054
15956 msgid "write-append"
15960 #: ../fish/guestfish-actions.pod:5056
15963 " write-append path content\n"
15968 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7675
15970 "This call appends C<content> to the end of file C<path>. If C<path> does "
15971 "not exist, then a new file is created."
15975 #: ../fish/guestfish-actions.pod:5061
15976 msgid "See also L</write>."
15980 #: ../fish/guestfish-actions.pod:5066
15982 msgstr "write-file"
15985 #: ../fish/guestfish-actions.pod:5068
15988 " write-file path content size\n"
15993 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7695
15995 "This call creates a file called C<path>. The contents of the file is the "
15996 "string C<content> (which can contain any 8 bit data), with length C<size>."
16000 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7699
16002 "As a special case, if C<size> is C<0> then the length is calculated using "
16003 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16007 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7703
16009 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16010 "I<not> work, even if the length is specified."
16014 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7711
16016 "This function is deprecated. In new code, use the C<write> call instead."
16020 #: ../fish/guestfish-actions.pod:5091
16025 #: ../fish/guestfish-actions.pod:5093
16028 " zegrep regex path\n"
16031 " zegrep формальний_вираз шлях\n"
16035 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7727
16037 "This calls the external C<zegrep> program and returns the matching lines."
16041 #: ../fish/guestfish-actions.pod:5101
16046 #: ../fish/guestfish-actions.pod:5103
16049 " zegrepi regex path\n"
16054 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7746
16056 "This calls the external C<zegrep -i> program and returns the matching lines."
16060 #: ../fish/guestfish-actions.pod:5111
16065 #: ../fish/guestfish-actions.pod:5113
16075 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7764
16076 msgid "This command writes zeroes over the first few blocks of C<device>."
16080 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7766
16082 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16083 "securely wipe the device). It should be sufficient to remove any partition "
16084 "tables, filesystem superblocks and so on."
16088 #: ../fish/guestfish-actions.pod:5121
16089 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16093 #: ../fish/guestfish-actions.pod:5124
16094 msgid "zero-device"
16095 msgstr "zero-device"
16098 #: ../fish/guestfish-actions.pod:5126
16101 " zero-device device\n"
16104 " zero-device пристрій\n"
16108 #: ../fish/guestfish-actions.pod:5128
16110 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16111 "which just zeroes the first few blocks of a device."
16115 #: ../fish/guestfish-actions.pod:5135
16120 #: ../fish/guestfish-actions.pod:5137
16123 " zerofree device\n"
16126 " zerofree пристрій\n"
16130 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7810
16132 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16133 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16134 "possible to compress the filesystem more effectively."
16138 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
16139 msgid "You should B<not> run this program if the filesystem is mounted."
16143 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7818
16145 "It is possible that using this program can damage the filesystem or data on "
16150 #: ../fish/guestfish-actions.pod:5150
16155 #: ../fish/guestfish-actions.pod:5152
16158 " zfgrep pattern path\n"
16161 " zfgrep шаблон шлях\n"
16165 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7832
16167 "This calls the external C<zfgrep> program and returns the matching lines."
16171 #: ../fish/guestfish-actions.pod:5160
16176 #: ../fish/guestfish-actions.pod:5162
16179 " zfgrepi pattern path\n"
16182 " zfgrepi шаблон шлях\n"
16186 #: ../fish/guestfish-actions.pod:5164 ../src/guestfs-actions.pod:7851
16188 "This calls the external C<zfgrep -i> program and returns the matching lines."
16192 #: ../fish/guestfish-actions.pod:5170
16197 #: ../fish/guestfish-actions.pod:5172
16200 " zfile meth path\n"
16203 " zfile метод шлях\n"
16207 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7870
16209 "This command runs C<file> after first decompressing C<path> using C<method>."
16213 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7873
16214 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16218 #: ../fish/guestfish-actions.pod:5179
16220 "Since 1.0.63, use L</file> instead which can now process compressed files."
16224 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7881
16226 "This function is deprecated. In new code, use the C<file> call instead."
16230 #: ../fish/guestfish-actions.pod:5189
16235 #: ../fish/guestfish-actions.pod:5191
16238 " zgrep regex path\n"
16241 " zgrep формальний_вираз шлях\n"
16245 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7897
16247 "This calls the external C<zgrep> program and returns the matching lines."
16251 #: ../fish/guestfish-actions.pod:5199
16256 #: ../fish/guestfish-actions.pod:5201
16259 " zgrepi regex path\n"
16262 " zgrepi формальний_вираз шлях\n"
16266 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7916
16268 "This calls the external C<zgrep -i> program and returns the matching lines."
16272 #: ../fish/guestfish-commands.pod:1
16277 #: ../fish/guestfish-commands.pod:3
16282 #: ../fish/guestfish-commands.pod:5
16285 " alloc filename size\n"
16290 #: ../fish/guestfish-commands.pod:7
16292 "This creates an empty (zeroed) file of the given size, and then adds so it "
16293 "can be further examined."
16297 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
16298 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16302 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
16303 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16307 #: ../fish/guestfish-commands.pod:14
16309 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16310 "image, see L</PREPARED DISK IMAGES>."
16314 #: ../fish/guestfish-commands.pod:17
16319 #: ../fish/guestfish-commands.pod:19
16322 " copy-in local [local ...] /remotedir\n"
16327 #: ../fish/guestfish-commands.pod:21
16329 "C<copy-in> copies local files or directories recursively into the disk "
16330 "image, placing them in the directory called C</remotedir> (which must "
16331 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16332 "other commands as necessary."
16336 #: ../fish/guestfish-commands.pod:26
16338 "Multiple local files and directories can be specified, but the last "
16339 "parameter must always be a remote directory. Wildcards cannot be used."
16343 #: ../fish/guestfish-commands.pod:30
16348 #: ../fish/guestfish-commands.pod:32
16351 " copy-out remote [remote ...] localdir\n"
16356 #: ../fish/guestfish-commands.pod:34
16358 "C<copy-out> copies remote files or directories recursively out of the disk "
16359 "image, placing them on the host disk in a local directory called C<localdir> "
16360 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16361 "download>, L</tar-out> and other commands as necessary."
16365 #: ../fish/guestfish-commands.pod:40
16367 "Multiple remote files and directories can be specified, but the last "
16368 "parameter must always be a local directory. To download to the current "
16369 "directory, use C<.> as in:"
16373 #: ../fish/guestfish-commands.pod:44
16376 " copy-out /home .\n"
16379 " copy-out /home .\n"
16383 #: ../fish/guestfish-commands.pod:46
16385 "Wildcards cannot be used in the ordinary command, but you can use them with "
16386 "the help of L</glob> like this:"
16390 #: ../fish/guestfish-commands.pod:49
16393 " glob copy-out /home/* .\n"
16396 " glob copy-out /home/* .\n"
16400 #: ../fish/guestfish-commands.pod:51
16405 #: ../fish/guestfish-commands.pod:53
16408 " display filename\n"
16413 #: ../fish/guestfish-commands.pod:55
16415 "Use C<display> (a graphical display program) to display an image file. It "
16416 "downloads the file, and runs C<display> on it."
16420 #: ../fish/guestfish-commands.pod:58
16422 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16423 "environment variable. For example to use the GNOME display program:"
16427 #: ../fish/guestfish-commands.pod:61
16430 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16435 #: ../fish/guestfish-commands.pod:63
16436 msgid "See also L<display(1)>."
16440 #: ../fish/guestfish-commands.pod:65
16445 #: ../fish/guestfish-commands.pod:67
16448 " echo [params ...]\n"
16451 " echo [параметри...]\n"
16455 #: ../fish/guestfish-commands.pod:69
16456 msgid "This echos the parameters to the terminal."
16460 #: ../fish/guestfish-commands.pod:71
16465 #: ../fish/guestfish-commands.pod:73
16470 #: ../fish/guestfish-commands.pod:75
16475 #: ../fish/guestfish-commands.pod:77
16481 " edit назва_файла\n"
16485 #: ../fish/guestfish-commands.pod:79
16487 "This is used to edit a file. It downloads the file, edits it locally using "
16488 "your editor, then uploads the result."
16492 #: ../fish/guestfish-commands.pod:82
16494 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16495 "or C<emacs> you will get those corresponding editors."
16499 #: ../fish/guestfish-commands.pod:86
16504 #: ../fish/guestfish-commands.pod:88
16507 " glob command args...\n"
16510 " glob команда параметри...\n"
16514 #: ../fish/guestfish-commands.pod:90
16516 "Expand wildcards in any paths in the args list, and run C<command> "
16517 "repeatedly on each matching path."
16521 #: ../fish/guestfish-commands.pod:93
16522 msgid "See L</WILDCARDS AND GLOBBING>."
16523 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16526 #: ../fish/guestfish-commands.pod:95
16531 #: ../fish/guestfish-commands.pod:97
16534 " hexedit <filename|device>\n"
16535 " hexedit <filename|device> <max>\n"
16536 " hexedit <filename|device> <start> <max>\n"
16541 #: ../fish/guestfish-commands.pod:101
16543 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16548 #: ../fish/guestfish-commands.pod:104
16550 "This command works by downloading potentially the whole file or device, "
16551 "editing it locally, then uploading it. If the file or device is large, you "
16552 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16553 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
16554 "usual modifiers allowed such as C<1M> (1 megabyte)."
16558 #: ../fish/guestfish-commands.pod:111
16559 msgid "For example to edit the first few sectors of a disk you might do:"
16563 #: ../fish/guestfish-commands.pod:114
16566 " hexedit /dev/sda 1M\n"
16569 " hexedit /dev/sda 1M\n"
16573 #: ../fish/guestfish-commands.pod:116
16575 "which would allow you to edit anywhere within the first megabyte of the disk."
16579 #: ../fish/guestfish-commands.pod:119
16580 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16584 #: ../fish/guestfish-commands.pod:121
16587 " hexedit /dev/sda1 0x400 0x400\n"
16590 " hexedit /dev/sda1 0x400 0x400\n"
16594 #: ../fish/guestfish-commands.pod:123
16595 msgid "(assuming the superblock is in the standard location)."
16599 #: ../fish/guestfish-commands.pod:125
16601 "This command requires the external L<hexedit(1)> program. You can specify "
16602 "another program to use by setting the C<HEXEDITOR> environment variable."
16606 #: ../fish/guestfish-commands.pod:129
16607 msgid "See also L</hexdump>."
16608 msgstr "Див. також L</hexdump>."
16611 #: ../fish/guestfish-commands.pod:131
16616 #: ../fish/guestfish-commands.pod:133
16624 #: ../fish/guestfish-commands.pod:135
16626 "Change the local directory, ie. the current directory of guestfish itself."
16630 #: ../fish/guestfish-commands.pod:138
16631 msgid "Note that C<!cd> won't do what you might expect."
16635 #: ../fish/guestfish-commands.pod:140
16640 #: ../fish/guestfish-commands.pod:142
16645 #: ../fish/guestfish-commands.pod:144
16655 #: ../fish/guestfish-commands.pod:146
16656 msgid "Opens the manual page for guestfish."
16660 #: ../fish/guestfish-commands.pod:148
16665 #: ../fish/guestfish-commands.pod:150
16670 #: ../fish/guestfish-commands.pod:152
16678 #: ../fish/guestfish-commands.pod:154
16686 #: ../fish/guestfish-commands.pod:156
16687 msgid "This is used to view a file."
16691 #: ../fish/guestfish-commands.pod:158
16693 "The default viewer is C<$PAGER>. However if you use the alternate command "
16694 "C<less> you will get the C<less> command specifically."
16698 #: ../fish/guestfish-commands.pod:161
16703 #: ../fish/guestfish-commands.pod:163
16711 #: ../fish/guestfish-commands.pod:165
16713 "Close and reopen the libguestfs handle. It is not necessary to use this "
16714 "normally, because the handle is closed properly when guestfish exits. "
16715 "However this is occasionally useful for testing."
16719 #: ../fish/guestfish-commands.pod:169
16724 #: ../fish/guestfish-commands.pod:171
16727 " sparse filename size\n"
16732 #: ../fish/guestfish-commands.pod:173
16734 "This creates an empty sparse file of the given size, and then adds so it can "
16735 "be further examined."
16739 #: ../fish/guestfish-commands.pod:176
16741 "In all respects it works the same as the L</alloc> command, except that the "
16742 "image file is allocated sparsely, which means that disk blocks are not "
16743 "assigned to the file until they are needed. Sparse disk files only use "
16744 "space when written to, but they are slower and there is a danger you could "
16745 "run out of real disk space during a write operation."
16749 #: ../fish/guestfish-commands.pod:186
16754 #: ../fish/guestfish-commands.pod:188
16764 #: ../fish/guestfish-commands.pod:190
16766 "This command returns a list of the optional groups known to the daemon, and "
16767 "indicates which ones are supported by this build of the libguestfs appliance."
16771 #: ../fish/guestfish-commands.pod:194
16772 msgid "See also L<guestfs(3)/AVAILABILITY>."
16776 #: ../fish/guestfish-commands.pod:196
16781 #: ../fish/guestfish-commands.pod:198
16784 " time command args...\n"
16789 #: ../fish/guestfish-commands.pod:200
16791 "Run the command as usual, but print the elapsed time afterwards. This can "
16792 "be useful for benchmarking operations."
16796 #: ../fish/guestfish.pod:5
16797 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16801 #: ../fish/guestfish.pod:9
16804 " guestfish [--options] [commands]\n"
16809 #: ../fish/guestfish.pod:11
16817 #: ../fish/guestfish.pod:13
16820 " guestfish [--ro|--rw] -a disk.img\n"
16825 #: ../fish/guestfish.pod:15
16828 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16833 #: ../fish/guestfish.pod:17
16836 " guestfish -d libvirt-domain\n"
16841 #: ../fish/guestfish.pod:19
16844 " guestfish [--ro|--rw] -a disk.img -i\n"
16849 #: ../fish/guestfish.pod:21
16852 " guestfish -d libvirt-domain -i\n"
16857 #: ../fish/guestfish.pod:25
16859 "Using guestfish in read/write mode on live virtual machines can be "
16860 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
16861 "option to use guestfish safely if the disk image or virtual machine might be "
16866 #: ../fish/guestfish.pod:32
16868 "Guestfish is a shell and command-line tool for examining and modifying "
16869 "virtual machine filesystems. It uses libguestfs and exposes all of the "
16870 "functionality of the guestfs API, see L<guestfs(3)>."
16874 #: ../fish/guestfish.pod:36
16876 "Guestfish gives you structured access to the libguestfs API, from shell "
16877 "scripts or the command line or interactively. If you want to rescue a "
16878 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16883 #: ../fish/guestfish.pod:43
16884 msgid "As an interactive shell"
16888 #: ../fish/guestfish.pod:45
16896 #: ../fish/guestfish.pod:47
16899 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16900 " editing virtual machine filesystems.\n"
16905 #: ../fish/guestfish.pod:50
16908 " Type: 'help' for a list of commands\n"
16909 " 'man' to read the manual\n"
16910 " 'quit' to quit the shell\n"
16915 #: ../fish/guestfish.pod:54
16918 " ><fs> add-ro disk.img\n"
16920 " ><fs> list-filesystems\n"
16921 " /dev/sda1: ext4\n"
16922 " /dev/vg_guest/lv_root: ext4\n"
16923 " /dev/vg_guest/lv_swap: swap\n"
16924 " ><fs> mount /dev/vg_guest/lv_root /\n"
16925 " ><fs> cat /etc/fstab\n"
16927 " # Created by anaconda\n"
16934 #: ../fish/guestfish.pod:67
16935 msgid "From shell scripts"
16939 #: ../fish/guestfish.pod:69
16940 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16944 #: ../fish/guestfish.pod:71
16947 " guestfish <<_EOF_\n"
16950 " mount /dev/vg_guest/lv_root /\n"
16951 " write /etc/motd \"Welcome, new users\"\n"
16957 #: ../fish/guestfish.pod:78
16958 msgid "List the LVM logical volumes in a disk image:"
16962 #: ../fish/guestfish.pod:80
16965 " guestfish -a disk.img --ro <<_EOF_\n"
16973 #: ../fish/guestfish.pod:85
16974 msgid "List all the filesystems in a disk image:"
16978 #: ../fish/guestfish.pod:87
16981 " guestfish -a disk.img --ro <<_EOF_\n"
16983 " list-filesystems\n"
16989 #: ../fish/guestfish.pod:92
16990 msgid "On one command line"
16994 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16995 msgid "Update C</etc/resolv.conf> in a guest:"
16999 #: ../fish/guestfish.pod:96
17003 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17004 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17009 #: ../fish/guestfish.pod:100
17010 msgid "Edit C</boot/grub/grub.conf> interactively:"
17014 #: ../fish/guestfish.pod:102
17017 " guestfish --rw --add disk.img \\\n"
17018 " --mount /dev/vg_guest/lv_root \\\n"
17019 " --mount /dev/sda1:/boot \\\n"
17020 " edit /boot/grub/grub.conf\n"
17025 #: ../fish/guestfish.pod:107
17026 msgid "Mount disks automatically"
17030 #: ../fish/guestfish.pod:109
17032 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17036 #: ../fish/guestfish.pod:112
17039 " guestfish --ro -a disk.img -i cat /etc/group\n"
17044 #: ../fish/guestfish.pod:114
17047 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17052 #: ../fish/guestfish.pod:116
17053 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17057 #: ../fish/guestfish.pod:118
17060 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17065 #: ../fish/guestfish.pod:120
17066 msgid "As a script interpreter"
17070 #: ../fish/guestfish.pod:122
17071 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17075 #: ../fish/guestfish.pod:124
17078 " #!/usr/bin/guestfish -f\n"
17079 " sparse test1.img 100M\n"
17081 " part-disk /dev/sda mbr\n"
17082 " mkfs ext2 /dev/sda1\n"
17087 #: ../fish/guestfish.pod:130
17088 msgid "Start with a prepared disk"
17092 #: ../fish/guestfish.pod:132
17094 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17095 "single ext2-formatted partition:"
17099 #: ../fish/guestfish.pod:135
17102 " guestfish -N fs\n"
17107 #: ../fish/guestfish.pod:137
17108 msgid "To list what is available do:"
17112 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
17115 " guestfish -N help | less\n"
17120 #: ../fish/guestfish.pod:141
17121 msgid "Remote control"
17122 msgstr "Дистанційне керування"
17125 #: ../fish/guestfish.pod:143
17128 " eval \"`guestfish --listen`\"\n"
17129 " guestfish --remote add-ro disk.img\n"
17130 " guestfish --remote run\n"
17131 " guestfish --remote lvs\n"
17134 " eval \"`guestfish --listen`\"\n"
17135 " guestfish --remote add-ro disk.img\n"
17136 " guestfish --remote run\n"
17137 " guestfish --remote lvs\n"
17141 #: ../fish/guestfish.pod:154
17142 msgid "Displays general help on options."
17146 #: ../fish/guestfish.pod:158
17147 msgid "B<--cmd-help>"
17148 msgstr "B<--cmd-help>"
17151 #: ../fish/guestfish.pod:160
17152 msgid "Lists all available guestfish commands."
17156 #: ../fish/guestfish.pod:162
17158 msgstr "B<-h команда>"
17161 #: ../fish/guestfish.pod:164
17162 msgid "B<--cmd-help cmd>"
17163 msgstr "B<--cmd-help команда>"
17166 #: ../fish/guestfish.pod:166
17167 msgid "Displays detailed help on a single command C<cmd>."
17171 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17172 msgid "B<-a image>"
17173 msgstr "B<-a образ>"
17176 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17177 msgid "B<--add image>"
17178 msgstr "B<--add образ>"
17181 #: ../fish/guestfish.pod:172
17182 msgid "Add a block device or virtual machine image to the shell."
17186 #: ../fish/guestfish.pod:177
17188 "Using this flag is mostly equivalent to using the C<add> command, with "
17189 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17190 "the I<--format=...> flag was given."
17194 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17196 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17197 "URI to use. The default is to use the default libvirt connection."
17201 #: ../fish/guestfish.pod:189
17206 #: ../fish/guestfish.pod:191
17208 "If using the I<--listen> option and a csh-like shell, use this option. See "
17209 "section L</REMOTE CONTROL AND CSH> below."
17213 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17214 msgid "B<-d libvirt-domain>"
17215 msgstr "B<-d домен-libvirt>"
17218 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17219 msgid "B<--domain libvirt-domain>"
17220 msgstr "B<--domain домен-libvirt>"
17223 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17225 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17226 "used, then any libvirt domain can be used. However in write mode, only "
17227 "libvirt domains which are shut down can be named here."
17231 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17232 msgid "Domain UUIDs can be used instead of names."
17236 #: ../fish/guestfish.pod:204
17238 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17239 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17240 "if the I<--format:...> flag was given."
17244 #: ../fish/guestfish.pod:208
17249 #: ../fish/guestfish.pod:210
17250 msgid "B<--no-dest-paths>"
17251 msgstr "B<--no-dest-paths>"
17254 #: ../fish/guestfish.pod:212
17256 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17257 "to hit the tab key to complete paths on the guest filesystem, but this "
17258 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17259 "allow this feature to be disabled."
17263 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17265 "When prompting for keys and passphrases, guestfish normally turns echoing "
17266 "off so you cannot see what you are typing. If you are not worried about "
17267 "Tempest attacks and there is no one else in the room you can specify this "
17268 "flag to see what you are typing."
17272 #: ../fish/guestfish.pod:224
17274 msgstr "B<-f файл>"
17277 #: ../fish/guestfish.pod:226
17278 msgid "B<--file file>"
17279 msgstr "B<--file файл>"
17282 #: ../fish/guestfish.pod:228
17283 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17287 #: ../fish/guestfish.pod:231
17290 " #!/usr/bin/guestfish -f\n"
17293 " #!/usr/bin/guestfish -f\n"
17297 #: ../fish/guestfish.pod:244
17300 " guestfish --format=raw -a disk.img\n"
17303 " guestfish --format=raw -a disk.img\n"
17307 #: ../fish/guestfish.pod:248
17310 " guestfish --format=raw -a disk.img --format -a another.img\n"
17313 " guestfish --format=raw -a disk.img --format -a another.img\n"
17317 #: ../fish/guestfish.pod:253
17319 "If you have untrusted raw-format guest disk images, you should use this "
17320 "option to specify the disk format. This avoids a possible security problem "
17321 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17325 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17326 msgid "B<--inspector>"
17327 msgstr "B<--inspector>"
17330 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17332 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17333 "system and mount filesystems as they would be mounted on the real virtual "
17338 #: ../fish/guestfish.pod:266
17339 msgid "Typical usage is either:"
17343 #: ../fish/guestfish.pod:268
17346 " guestfish -d myguest -i\n"
17349 " guestfish -d myguest -i\n"
17353 #: ../fish/guestfish.pod:270
17354 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17358 #: ../fish/guestfish.pod:272
17361 " guestfish --ro -d myguest -i\n"
17364 " guestfish --ro -d myguest -i\n"
17368 #: ../fish/guestfish.pod:274
17369 msgid "(for active domains, readonly), or specify the block device directly:"
17373 #: ../fish/guestfish.pod:276
17376 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17379 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17383 #: ../fish/guestfish.pod:278
17385 "Note that the command line syntax changed slightly over older versions of "
17386 "guestfish. You can still use the old syntax:"
17390 #: ../fish/guestfish.pod:281
17393 " guestfish [--ro] -i disk.img\n"
17396 " guestfish [--ro] -i disk.img\n"
17400 #: ../fish/guestfish.pod:283
17403 " guestfish [--ro] -i libvirt-domain\n"
17408 #: ../fish/guestfish.pod:285
17410 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17411 "then using other commands to mount the filesystems that were found."
17415 #: ../fish/guestfish.pod:294
17416 msgid "B<--listen>"
17417 msgstr "B<--listen>"
17420 #: ../fish/guestfish.pod:296
17422 "Fork into the background and listen for remote commands. See section L</"
17423 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17427 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17432 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17434 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17435 "ATTACHING TO RUNNING DAEMONS>)."
17439 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17440 msgid "B<-m dev[:mountpoint[:options]]>"
17444 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17445 msgid "B<--mount dev[:mountpoint[:options]]>"
17449 #: ../fish/guestfish.pod:308
17450 msgid "Mount the named partition or logical volume on the given mountpoint."
17454 #: ../fish/guestfish.pod:310
17455 msgid "If the mountpoint is omitted, it defaults to C</>."
17459 #: ../fish/guestfish.pod:312
17460 msgid "You have to mount something on C</> before most commands will work."
17464 #: ../fish/guestfish.pod:314
17466 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17471 #: ../fish/guestfish.pod:317
17473 "If you don't know what filesystems a disk image contains, you can either run "
17474 "guestfish without this option, then list the partitions, filesystems and LVs "
17475 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17476 "commands), or you can use the L<virt-filesystems(1)> program."
17480 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17482 "The third (and rarely used) part of the mount parameter is the list of mount "
17483 "options used to mount the underlying filesystem. If this is not given, then "
17484 "the mount options are either the empty string or C<ro> (the latter if the "
17485 "I<--ro> flag is used). By specifying the mount options, you override this "
17486 "default choice. Probably the only time you would use this is to enable ACLs "
17487 "and/or extended attributes if the filesystem can support them:"
17491 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17494 " -m /dev/sda1:/:acl,user_xattr\n"
17499 #: ../fish/guestfish.pod:333
17500 msgid "Using this flag is equivalent to using the C<mount-options> command."
17504 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17505 #: ../resize/virt-resize.pod:352
17510 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17511 msgid "B<--no-sync>"
17512 msgstr "B<--no-sync>"
17515 #: ../fish/guestfish.pod:339
17517 "Disable autosync. This is enabled by default. See the discussion of "
17518 "autosync in the L<guestfs(3)> manpage."
17522 #: ../fish/guestfish.pod:342
17527 #: ../fish/guestfish.pod:344
17528 msgid "B<--new type>"
17529 msgstr "B<--new тип>"
17532 #: ../fish/guestfish.pod:346
17534 msgstr "B<-N help>"
17537 #: ../fish/guestfish.pod:348
17539 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
17540 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17541 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
17546 #: ../fish/guestfish.pod:353
17547 msgid "B<--progress-bars>"
17548 msgstr "B<--progress-bars>"
17551 #: ../fish/guestfish.pod:355
17552 msgid "Enable progress bars, even when guestfish is used non-interactively."
17556 #: ../fish/guestfish.pod:357
17558 "Progress bars are enabled by default when guestfish is used as an "
17559 "interactive shell."
17563 #: ../fish/guestfish.pod:360
17564 msgid "B<--no-progress-bars>"
17565 msgstr "B<--no-progress-bars>"
17568 #: ../fish/guestfish.pod:362
17569 msgid "Disable progress bars."
17573 #: ../fish/guestfish.pod:364
17574 msgid "B<--remote[=pid]>"
17575 msgstr "B<--remote[=pid]>"
17578 #: ../fish/guestfish.pod:366
17580 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
17581 "CONTROL GUESTFISH OVER A SOCKET> below."
17585 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17586 #: ../rescue/virt-rescue.pod:161
17591 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17592 #: ../rescue/virt-rescue.pod:163
17597 #: ../fish/guestfish.pod:373
17599 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17600 "mounts are done read-only."
17604 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17606 "The option must always be used if the disk image or virtual machine might be "
17607 "running, and is generally recommended in cases where you don't need write "
17608 "access to the disk."
17612 #: ../fish/guestfish.pod:380
17614 "Note that prepared disk images created with I<-N> are not affected by this "
17615 "option. Also commands like C<add> are not affected - you have to specify "
17616 "the C<readonly:true> option explicitly if you need it."
17620 #: ../fish/guestfish.pod:384
17621 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17625 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17626 #: ../rescue/virt-rescue.pod:173
17627 msgid "B<--selinux>"
17628 msgstr "B<--selinux>"
17631 #: ../fish/guestfish.pod:388
17632 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
17636 #: ../fish/guestfish.pod:394
17638 "Enable very verbose messages. This is particularly useful if you find a bug."
17642 #: ../fish/guestfish.pod:401
17643 msgid "Display the guestfish / libguestfs version number and exit."
17647 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17648 #: ../rescue/virt-rescue.pod:190
17653 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17654 #: ../rescue/virt-rescue.pod:192
17659 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17661 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17662 "mounts are done read-write."
17666 #: ../fish/guestfish.pod:410
17667 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17671 #: ../fish/guestfish.pod:414
17672 msgid "Echo each command before executing it."
17676 #: ../fish/guestfish.pod:418
17677 msgid "COMMANDS ON COMMAND LINE"
17681 #: ../fish/guestfish.pod:420
17683 "Any additional (non-option) arguments are treated as commands to execute."
17687 #: ../fish/guestfish.pod:423
17689 "Commands to execute should be separated by a colon (C<:>), where the colon "
17690 "is a separate parameter. Thus:"
17694 #: ../fish/guestfish.pod:426
17697 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17702 #: ../fish/guestfish.pod:428
17704 "If there are no additional arguments, then we enter a shell, either an "
17705 "interactive shell with a prompt (if the input is a terminal) or a non-"
17706 "interactive shell."
17710 #: ../fish/guestfish.pod:432
17712 "In either command line mode or non-interactive shell, the first command that "
17713 "gives an error causes the whole shell to exit. In interactive mode (with a "
17714 "prompt) if a command fails, you can continue to enter commands."
17718 #: ../fish/guestfish.pod:437
17719 msgid "USING launch (OR run)"
17723 #: ../fish/guestfish.pod:439
17725 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17726 "then launch it, then mount any disks you need, and finally issue actions/"
17727 "commands. So the general order of the day is:"
17731 #: ../fish/guestfish.pod:447
17732 msgid "add or -a/--add"
17736 #: ../fish/guestfish.pod:451
17737 msgid "launch (aka run)"
17741 #: ../fish/guestfish.pod:455
17742 msgid "mount or -m/--mount"
17746 #: ../fish/guestfish.pod:459
17747 msgid "any other commands"
17751 #: ../fish/guestfish.pod:463
17753 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
17754 "guest before mounting or performing any other commands."
17758 #: ../fish/guestfish.pod:466
17760 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17761 "I<--new> options were given then C<run> is done automatically, simply "
17762 "because guestfish can't perform the action you asked for without doing this."
17766 #: ../fish/guestfish.pod:471
17767 msgid "OPENING DISKS FOR READ AND WRITE"
17771 #: ../fish/guestfish.pod:473
17773 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17774 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17775 "I<-i> and I<-m> open disk images read-only or for writing."
17779 #: ../fish/guestfish.pod:478
17781 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17782 "opening disk images supplied on the command line for write. To open a disk "
17783 "image read-only you have to do I<-a image --ro>."
17787 #: ../fish/guestfish.pod:482
17789 "This matters: If you accidentally open a live VM disk image writable then "
17790 "you will cause irreversible disk corruption."
17794 #: ../fish/guestfish.pod:485
17796 "In a future libguestfs we intend to change the default the other way. Disk "
17797 "images will be opened read-only. You will have to either specify "
17798 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17799 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17800 "access for disk images specified by those other command line options."
17804 #: ../fish/guestfish.pod:492
17806 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17807 "which does nothing (it is already the default). However it is highly "
17808 "recommended that you use this option to indicate that you need write access, "
17809 "and prepare your scripts for the day when this option will be required for "
17814 #: ../fish/guestfish.pod:498
17816 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17817 "other libguestfs program apart from guestfish and guestmount."
17821 #: ../fish/guestfish.pod:501
17826 #: ../fish/guestfish.pod:503
17828 "You can quote ordinary parameters using either single or double quotes. For "
17833 #: ../fish/guestfish.pod:506
17836 " add \"file with a space.img\"\n"
17841 #: ../fish/guestfish.pod:508
17844 " rm '/file name'\n"
17849 #: ../fish/guestfish.pod:510
17857 #: ../fish/guestfish.pod:512
17859 "A few commands require a list of strings to be passed. For these, use a "
17860 "whitespace-separated list, enclosed in quotes. Strings containing "
17861 "whitespace to be passed through must be enclosed in single quotes. A "
17862 "literal single quote must be escaped with a backslash."
17866 #: ../fish/guestfish.pod:517
17869 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17870 " command \"/bin/echo 'foo bar'\"\n"
17871 " command \"/bin/echo \\'foo\\'\"\n"
17876 #: ../fish/guestfish.pod:521
17877 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17881 #: ../fish/guestfish.pod:523
17883 "In double-quoted arguments (only) use backslash to insert special characters:"
17887 #: ../fish/guestfish.pod:528
17892 #: ../fish/guestfish.pod:530
17893 msgid "Alert (bell) character."
17897 #: ../fish/guestfish.pod:532
17902 #: ../fish/guestfish.pod:534
17903 msgid "Backspace character."
17907 #: ../fish/guestfish.pod:536
17912 #: ../fish/guestfish.pod:538
17913 msgid "Form feed character."
17917 #: ../fish/guestfish.pod:540
17922 #: ../fish/guestfish.pod:542
17923 msgid "Newline character."
17927 #: ../fish/guestfish.pod:544
17932 #: ../fish/guestfish.pod:546
17933 msgid "Carriage return character."
17937 #: ../fish/guestfish.pod:548
17942 #: ../fish/guestfish.pod:550
17943 msgid "Horizontal tab character."
17947 #: ../fish/guestfish.pod:552
17952 #: ../fish/guestfish.pod:554
17953 msgid "Vertical tab character."
17957 #: ../fish/guestfish.pod:556
17962 #: ../fish/guestfish.pod:558
17963 msgid "A literal double quote character."
17967 #: ../fish/guestfish.pod:560
17972 #: ../fish/guestfish.pod:562
17974 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
17979 #: ../fish/guestfish.pod:565
17984 #: ../fish/guestfish.pod:567
17986 "A character with hex value I<hh>. There must be precisely 2 hex digits."
17990 #: ../fish/guestfish.pod:570
17992 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17997 #: ../fish/guestfish.pod:573
18002 #: ../fish/guestfish.pod:575
18003 msgid "A literal backslash character."
18007 #: ../fish/guestfish.pod:579
18008 msgid "OPTIONAL ARGUMENTS"
18012 #: ../fish/guestfish.pod:581
18014 "Some commands take optional arguments. These arguments appear in this "
18015 "documentation as C<[argname:..]>. You can use them as in these examples:"
18019 #: ../fish/guestfish.pod:585
18022 " add-drive-opts filename\n"
18027 #: ../fish/guestfish.pod:587
18030 " add-drive-opts filename readonly:true\n"
18035 #: ../fish/guestfish.pod:589
18038 " add-drive-opts filename format:qcow2 readonly:false\n"
18043 #: ../fish/guestfish.pod:591
18045 "Each optional argument can appear at most once. All optional arguments must "
18046 "appear after the required ones."
18050 #: ../fish/guestfish.pod:594
18055 #: ../fish/guestfish.pod:596
18057 "This section applies to all commands which can take integers as parameters."
18061 #: ../fish/guestfish.pod:599
18062 msgid "SIZE SUFFIX"
18066 #: ../fish/guestfish.pod:601
18068 "When the command takes a parameter measured in bytes, you can use one of the "
18069 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18073 #: ../fish/guestfish.pod:607
18074 msgid "B<k> or B<K> or B<KiB>"
18075 msgstr "B<k>, B<K> або B<KiB>"
18078 #: ../fish/guestfish.pod:609
18079 msgid "The size in kilobytes (multiplied by 1024)."
18083 #: ../fish/guestfish.pod:611
18088 #: ../fish/guestfish.pod:613
18089 msgid "The size in SI 1000 byte units."
18093 #: ../fish/guestfish.pod:615
18094 msgid "B<M> or B<MiB>"
18095 msgstr "B<M> або B<MiB>"
18098 #: ../fish/guestfish.pod:617
18099 msgid "The size in megabytes (multiplied by 1048576)."
18103 #: ../fish/guestfish.pod:619
18108 #: ../fish/guestfish.pod:621
18109 msgid "The size in SI 1000000 byte units."
18113 #: ../fish/guestfish.pod:623
18114 msgid "B<G> or B<GiB>"
18115 msgstr "B<G> або B<GiB>"
18118 #: ../fish/guestfish.pod:625
18119 msgid "The size in gigabytes (multiplied by 2**30)."
18120 msgstr "Розмір у гігабайтах (з множником 2**30)."
18123 #: ../fish/guestfish.pod:627
18128 #: ../fish/guestfish.pod:629
18129 msgid "The size in SI 10**9 byte units."
18130 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18133 #: ../fish/guestfish.pod:631
18134 msgid "B<T> or B<TiB>"
18135 msgstr "B<T> або B<TiB>"
18138 #: ../fish/guestfish.pod:633
18139 msgid "The size in terabytes (multiplied by 2**40)."
18140 msgstr "Розмір у терабайтах (з множником 2**40)."
18143 #: ../fish/guestfish.pod:635
18148 #: ../fish/guestfish.pod:637
18149 msgid "The size in SI 10**12 byte units."
18153 #: ../fish/guestfish.pod:639
18154 msgid "B<P> or B<PiB>"
18155 msgstr "B<P> або B<PiB>"
18158 #: ../fish/guestfish.pod:641
18159 msgid "The size in petabytes (multiplied by 2**50)."
18163 #: ../fish/guestfish.pod:643
18168 #: ../fish/guestfish.pod:645
18169 msgid "The size in SI 10**15 byte units."
18173 #: ../fish/guestfish.pod:647
18174 msgid "B<E> or B<EiB>"
18175 msgstr "B<E> або B<EiB>"
18178 #: ../fish/guestfish.pod:649
18179 msgid "The size in exabytes (multiplied by 2**60)."
18183 #: ../fish/guestfish.pod:651
18188 #: ../fish/guestfish.pod:653
18189 msgid "The size in SI 10**18 byte units."
18193 #: ../fish/guestfish.pod:655
18194 msgid "B<Z> or B<ZiB>"
18195 msgstr "B<Z> або B<ZiB>"
18198 #: ../fish/guestfish.pod:657
18199 msgid "The size in zettabytes (multiplied by 2**70)."
18203 #: ../fish/guestfish.pod:659
18208 #: ../fish/guestfish.pod:661
18209 msgid "The size in SI 10**21 byte units."
18213 #: ../fish/guestfish.pod:663
18214 msgid "B<Y> or B<YiB>"
18215 msgstr "B<Y> або B<YiB>"
18218 #: ../fish/guestfish.pod:665
18219 msgid "The size in yottabytes (multiplied by 2**80)."
18223 #: ../fish/guestfish.pod:667
18228 #: ../fish/guestfish.pod:669
18229 msgid "The size in SI 10**24 byte units."
18233 #: ../fish/guestfish.pod:675
18236 " truncate-size /file 1G\n"
18241 #: ../fish/guestfish.pod:677
18242 msgid "would truncate the file to 1 gigabyte."
18246 #: ../fish/guestfish.pod:679
18248 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18249 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18250 "suffix will probably not do what you expect."
18254 #: ../fish/guestfish.pod:683
18255 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18259 #: ../fish/guestfish.pod:685
18261 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18262 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18266 #: ../fish/guestfish.pod:688
18269 " 1234 decimal number 1234\n"
18270 " 02322 octal number, equivalent to decimal 1234\n"
18271 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18276 #: ../fish/guestfish.pod:692
18278 "When using the C<chmod> command, you almost always want to specify an octal "
18279 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18280 "L<chmod(1)> program):"
18284 #: ../fish/guestfish.pod:696
18287 " chmod 0777 /public # OK\n"
18288 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18293 #: ../fish/guestfish.pod:699
18295 "Commands that return numbers usually print them in decimal, but some "
18296 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18297 "octal, preceeded by C<0>)."
18301 #: ../fish/guestfish.pod:703
18302 msgid "WILDCARDS AND GLOBBING"
18306 #: ../fish/guestfish.pod:705
18308 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18309 "(globbing) by default. So for example the following will not do what you "
18314 #: ../fish/guestfish.pod:709
18322 #: ../fish/guestfish.pod:711
18324 "Assuming you don't have a directory called literally C</home/*> then the "
18325 "above command will return an error."
18329 #: ../fish/guestfish.pod:714
18330 msgid "To perform wildcard expansion, use the C<glob> command."
18334 #: ../fish/guestfish.pod:716
18337 " glob rm-rf /home/*\n"
18342 #: ../fish/guestfish.pod:718
18344 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18345 "many times), equivalent to:"
18349 #: ../fish/guestfish.pod:721
18352 " rm-rf /home/jim\n"
18353 " rm-rf /home/joe\n"
18354 " rm-rf /home/mary\n"
18359 #: ../fish/guestfish.pod:725
18360 msgid "C<glob> only works on simple guest paths and not on device names."
18364 #: ../fish/guestfish.pod:727
18366 "If you have several parameters, each containing a wildcard, then glob will "
18367 "perform a Cartesian product."
18371 #: ../fish/guestfish.pod:730
18376 #: ../fish/guestfish.pod:732
18378 "Any line which starts with a I<#> character is treated as a comment and "
18379 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18380 "a command. For example:"
18384 #: ../fish/guestfish.pod:736
18387 " # this is a comment\n"
18388 " # this is a comment\n"
18389 " foo # NOT a comment\n"
18394 #: ../fish/guestfish.pod:740
18395 msgid "Blank lines are also ignored."
18399 #: ../fish/guestfish.pod:742
18400 msgid "RUNNING COMMANDS LOCALLY"
18404 #: ../fish/guestfish.pod:744
18406 "Any line which starts with a I<!> character is treated as a command sent to "
18407 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18411 #: ../fish/guestfish.pod:748
18415 " tgz-out /remote local/remote-data.tar.gz\n"
18420 #: ../fish/guestfish.pod:751
18422 "will create a directory C<local> on the host, and then export the contents "
18423 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18424 "(See C<tgz-out>)."
18428 #: ../fish/guestfish.pod:755
18430 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18431 "effect, due to the way that subprocesses work in Unix."
18435 #: ../fish/guestfish.pod:758
18436 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18440 #: ../fish/guestfish.pod:760
18442 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18443 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18444 "and executed as guestfish commands."
18448 #: ../fish/guestfish.pod:764
18450 "Thus you can use shell script to construct arbitrary guestfish commands "
18451 "which are then parsed by guestfish."
18455 #: ../fish/guestfish.pod:767
18457 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18458 "through C</foo.100>) using guestfish commands alone. However this is simple "
18459 "if we use a shell script to create the guestfish commands for us:"
18463 #: ../fish/guestfish.pod:772
18466 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18471 #: ../fish/guestfish.pod:774
18472 msgid "or with names like C</foo.001>:"
18476 #: ../fish/guestfish.pod:776
18479 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18484 #: ../fish/guestfish.pod:778
18486 "When using guestfish interactively it can be helpful to just run the shell "
18487 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18488 "ordinary I<!> local command), see what guestfish commands it would run, and "
18489 "when you are happy with those prepend the C<E<lt>> character to run the "
18490 "guestfish commands for real."
18494 #: ../fish/guestfish.pod:784
18499 #: ../fish/guestfish.pod:786
18501 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18502 "command (a guestfish command) to the second command (any host command). For "
18507 #: ../fish/guestfish.pod:790
18510 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18515 #: ../fish/guestfish.pod:792
18517 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18518 "program). The above command would list all accounts in the guest filesystem "
18519 "which have UID 0, ie. root accounts including backdoors. Other examples:"
18523 #: ../fish/guestfish.pod:797
18526 " hexdump /bin/ls | head\n"
18527 " list-devices | tail -1\n"
18528 " tgz-out / - | tar ztf -\n"
18533 #: ../fish/guestfish.pod:801
18535 "The space before the pipe symbol is required, any space after the pipe "
18536 "symbol is optional. Everything after the pipe symbol is just passed "
18537 "straight to the host shell, so it can contain redirections, globs and "
18538 "anything else that makes sense on the host side."
18542 #: ../fish/guestfish.pod:806
18544 "To use a literal argument which begins with a pipe symbol, you have to quote "
18549 #: ../fish/guestfish.pod:809
18557 #: ../fish/guestfish.pod:811
18558 msgid "HOME DIRECTORIES"
18562 #: ../fish/guestfish.pod:813
18564 "If a parameter starts with the character C<~> then the tilde may be expanded "
18565 "as a home directory path (either C<~> for the current user's home directory, "
18566 "or C<~user> for another user)."
18570 #: ../fish/guestfish.pod:817
18572 "Note that home directory expansion happens for users known I<on the host>, "
18573 "not in the guest filesystem."
18577 #: ../fish/guestfish.pod:820
18579 "To use a literal argument which begins with a tilde, you have to quote it, "
18584 #: ../fish/guestfish.pod:823
18592 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18593 msgid "ENCRYPTED DISKS"
18594 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18597 #: ../fish/guestfish.pod:827
18599 "Libguestfs has some support for Linux guests encrypted according to the "
18600 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18601 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
18602 "LUKS is supported."
18606 #: ../fish/guestfish.pod:832
18607 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18611 #: ../fish/guestfish.pod:834
18614 " ><fs> vfs-type /dev/sda2\n"
18620 #: ../fish/guestfish.pod:837
18622 "Then open those devices using L</luks-open>. This creates a device-mapper "
18623 "device called C</dev/mapper/luksdev>."
18627 #: ../fish/guestfish.pod:840
18630 " ><fs> luks-open /dev/sda2 luksdev\n"
18631 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18636 #: ../fish/guestfish.pod:843
18638 "Finally you have to tell LVM to scan for volume groups on the newly created "
18643 #: ../fish/guestfish.pod:846
18647 " vg-activate-all true\n"
18652 #: ../fish/guestfish.pod:849
18653 msgid "The logical volume(s) can now be mounted in the usual way."
18657 #: ../fish/guestfish.pod:851
18659 "Before closing a LUKS device you must unmount any logical volumes on it and "
18660 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18661 "one. Then you can close the mapper device:"
18665 #: ../fish/guestfish.pod:855
18668 " vg-activate false /dev/VG\n"
18669 " luks-close /dev/mapper/luksdev\n"
18674 #: ../fish/guestfish.pod:860
18676 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18677 "letters and paths (with some limitations). The following commands are "
18682 #: ../fish/guestfish.pod:864
18685 " file /WINDOWS/system32/config/system.LOG\n"
18690 #: ../fish/guestfish.pod:866
18693 " file win:\\windows\\system32\\config\\system.log\n"
18698 #: ../fish/guestfish.pod:868
18701 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18706 #: ../fish/guestfish.pod:870
18708 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18709 "where the drive is mounted, prepending that to the path, changing all "
18710 "backslash characters to forward slash, then resolving the result using L</"
18711 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
18712 "the parameter might be rewritten like this:"
18716 #: ../fish/guestfish.pod:876
18719 " win:e:\\foo\\bar => /e/FOO/bar\n"
18724 #: ../fish/guestfish.pod:878
18725 msgid "This only works in argument positions that expect a path."
18729 #: ../fish/guestfish.pod:880
18730 msgid "UPLOADING AND DOWNLOADING FILES"
18734 #: ../fish/guestfish.pod:882
18736 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18737 "others which upload from or download to a local file, you can use the "
18738 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
18742 #: ../fish/guestfish.pod:886
18750 #: ../fish/guestfish.pod:888
18752 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18756 #: ../fish/guestfish.pod:891
18759 " tar-out /etc - | tar tf -\n"
18764 #: ../fish/guestfish.pod:893
18766 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18767 "command (see L</PIPES>)."
18771 #: ../fish/guestfish.pod:896
18773 "When using C<-> to read from stdin, the input is read up to the end of "
18774 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
18775 "some arbitrary end marker:"
18779 #: ../fish/guestfish.pod:900
18782 " upload -<<END /foo\n"
18791 #: ../fish/guestfish.pod:906
18793 "Any string of characters can be used instead of C<END>. The end marker must "
18794 "appear on a line of its own, without any preceeding or following characters "
18795 "(not even spaces)."
18799 #: ../fish/guestfish.pod:910
18801 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18802 "upload local files (so-called \"FileIn\" parameters in the generator)."
18806 #: ../fish/guestfish.pod:913
18807 msgid "EXIT ON ERROR BEHAVIOUR"
18811 #: ../fish/guestfish.pod:915
18813 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18814 "taking commands from a human over a tty), and will exit on the first error "
18815 "in non-interactive mode (scripts, commands given on the command line)."
18819 #: ../fish/guestfish.pod:920
18821 "If you prefix a command with a I<-> character, then that command will not "
18822 "cause guestfish to exit, even if that (one) command returns an error."
18826 #: ../fish/guestfish.pod:924
18827 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18831 #: ../fish/guestfish.pod:926
18833 "Guestfish can be remote-controlled over a socket. This is useful "
18834 "particularly in shell scripts where you want to make several different "
18835 "changes to a filesystem, but you don't want the overhead of starting up a "
18836 "guestfish process each time."
18840 #: ../fish/guestfish.pod:931
18841 msgid "Start a guestfish server process using:"
18845 #: ../fish/guestfish.pod:933
18848 " eval \"`guestfish --listen`\"\n"
18853 #: ../fish/guestfish.pod:935
18854 msgid "and then send it commands by doing:"
18858 #: ../fish/guestfish.pod:937
18861 " guestfish --remote cmd [...]\n"
18866 #: ../fish/guestfish.pod:939
18867 msgid "To cause the server to exit, send it the exit command:"
18871 #: ../fish/guestfish.pod:943
18873 "Note that the server will normally exit if there is an error in a command. "
18874 "You can change this in the usual way. See section L</EXIT ON ERROR "
18879 #: ../fish/guestfish.pod:947
18880 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18884 #: ../fish/guestfish.pod:949
18886 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18887 "is how the I<--remote> option knows where to send the commands. You can "
18888 "have several guestfish listener processes running using:"
18892 #: ../fish/guestfish.pod:953
18895 " eval \"`guestfish --listen`\"\n"
18896 " pid1=$GUESTFISH_PID\n"
18897 " eval \"`guestfish --listen`\"\n"
18898 " pid2=$GUESTFISH_PID\n"
18900 " guestfish --remote=$pid1 cmd\n"
18901 " guestfish --remote=$pid2 cmd\n"
18906 #: ../fish/guestfish.pod:961
18907 msgid "REMOTE CONTROL AND CSH"
18911 #: ../fish/guestfish.pod:963
18913 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18918 #: ../fish/guestfish.pod:966
18921 " eval \"`guestfish --listen --csh`\"\n"
18926 #: ../fish/guestfish.pod:968
18927 msgid "REMOTE CONTROL DETAILS"
18931 #: ../fish/guestfish.pod:970
18933 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18934 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18935 "and C<$PID> is the process ID of the server."
18939 #: ../fish/guestfish.pod:974
18940 msgid "Guestfish client and server versions must match exactly."
18944 #: ../fish/guestfish.pod:976
18945 msgid "PREPARED DISK IMAGES"
18949 #: ../fish/guestfish.pod:978
18951 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18952 "preformatted disk images that guestfish can make for you to save typing. "
18953 "This is particularly useful for testing purposes. This option is used "
18954 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18955 "can be mixed with I<-a>)."
18959 #: ../fish/guestfish.pod:984
18961 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18962 "the second and so on. Existing files in the current directory are "
18967 #: ../fish/guestfish.pod:988
18969 "The type briefly describes how the disk should be sized, partitioned, how "
18970 "filesystem(s) should be created, and how content should be added. "
18971 "Optionally the type can be followed by extra parameters, separated by C<:> "
18972 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
18973 "allocated disk, containing a single partition, with the partition formatted "
18974 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18979 #: ../fish/guestfish.pod:996
18980 msgid "To list the available types and any extra parameters they take, run:"
18984 #: ../fish/guestfish.pod:1000
18986 "Note that the prepared filesystem is not mounted. You would usually have to "
18987 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18991 #: ../fish/guestfish.pod:1004
18993 "If any I<-N> or I<--new> options are given, the guest is automatically "
18998 #: ../fish/guestfish.pod:1009
18999 msgid "Create a 100MB disk with an ext4-formatted partition:"
19003 #: ../fish/guestfish.pod:1011
19006 " guestfish -N fs:ext4\n"
19011 #: ../fish/guestfish.pod:1013
19012 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19016 #: ../fish/guestfish.pod:1015
19019 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19024 #: ../fish/guestfish.pod:1017
19025 msgid "Create a blank 200MB disk:"
19029 #: ../fish/guestfish.pod:1019
19032 " guestfish -N disk:200M\n"
19037 #: ../fish/guestfish.pod:1021
19038 msgid "PROGRESS BARS"
19042 #: ../fish/guestfish.pod:1023
19044 "Some (not all) long-running commands send progress notification messages as "
19045 "they are running. Guestfish turns these messages into progress bars."
19049 #: ../fish/guestfish.pod:1027
19051 "When a command that supports progress bars takes longer than two seconds to "
19052 "run, and if progress bars are enabled, then you will see one appearing below "
19057 #: ../fish/guestfish.pod:1031
19060 " ><fs> copy-size /large-file /another-file 2048M\n"
19061 " / 10% [#####-----------------------------------------] 00:30\n"
19066 #: ../fish/guestfish.pod:1034
19068 "The spinner on the left hand side moves round once for every progress "
19069 "notification received from the backend. This is a (reasonably) golden "
19070 "assurance that the command is \"doing something\" even if the progress bar "
19071 "is not moving, because the command is able to send the progress "
19072 "notifications. When the bar reaches 100% and the command finishes, the "
19073 "spinner disappears."
19077 #: ../fish/guestfish.pod:1041
19079 "Progress bars are enabled by default when guestfish is used interactively. "
19080 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19081 "and you can disable them completely using I<--no-progress-bars>."
19085 #: ../fish/guestfish.pod:1046
19086 msgid "GUESTFISH COMMANDS"
19090 #: ../fish/guestfish.pod:1048
19092 "The commands in this section are guestfish convenience commands, in other "
19093 "words, they are not part of the L<guestfs(3)> API."
19097 #: ../fish/guestfish.pod:1051
19102 #: ../fish/guestfish.pod:1053
19114 #: ../fish/guestfish.pod:1056
19115 msgid "Without any parameter, this provides general help."
19116 msgstr "Без параметра показує загальну довідкову інформацію."
19119 #: ../fish/guestfish.pod:1058
19120 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19124 #: ../fish/guestfish.pod:1060
19125 msgid "quit | exit"
19129 #: ../fish/guestfish.pod:1062
19130 msgid "This exits guestfish. You can also use C<^D> key."
19134 #: ../fish/guestfish.pod:1064
19135 msgid "@FISH_COMMANDS@"
19139 #: ../fish/guestfish.pod:1066
19144 #: ../fish/guestfish.pod:1068 ../src/guestfs.pod:1474
19149 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
19151 msgstr "КОД ВИХОДУ"
19154 #: ../fish/guestfish.pod:1072
19156 "guestfish returns 0 if the commands completed without error, or 1 if there "
19161 #: ../fish/guestfish.pod:1079
19166 #: ../fish/guestfish.pod:1081
19168 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19173 #: ../fish/guestfish.pod:1084 ../src/guestfs.pod:2969
19174 msgid "FEBOOTSTRAP_KERNEL"
19178 #: ../fish/guestfish.pod:1086 ../src/guestfs.pod:2971
19179 msgid "FEBOOTSTRAP_MODULES"
19183 #: ../fish/guestfish.pod:1088 ../src/guestfs.pod:2973
19185 "These two environment variables allow the kernel that libguestfs uses in the "
19186 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19187 "most recent host kernel is chosen. For more information about kernel "
19188 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19189 "available in febootstrap E<ge> 3.8."
19193 #: ../fish/guestfish.pod:1094
19194 msgid "GUESTFISH_DISPLAY_IMAGE"
19198 #: ../fish/guestfish.pod:1096
19200 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19201 "If not set, it uses L<display(1)>."
19205 #: ../fish/guestfish.pod:1099
19206 msgid "GUESTFISH_PID"
19210 #: ../fish/guestfish.pod:1101
19212 "Used with the I<--remote> option to specify the remote guestfish process to "
19213 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19217 #: ../fish/guestfish.pod:1105
19222 #: ../fish/guestfish.pod:1107
19224 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19225 "not specified, the external L<hexedit(1)> program is used."
19229 #: ../fish/guestfish.pod:1111
19234 #: ../fish/guestfish.pod:1113
19236 "If compiled with GNU readline support, various files in the home directory "
19237 "can be used. See L</FILES>."
19241 #: ../fish/guestfish.pod:1116 ../src/guestfs.pod:2979
19242 msgid "LIBGUESTFS_APPEND"
19246 #: ../fish/guestfish.pod:1118 ../src/guestfs.pod:2981
19247 msgid "Pass additional options to the guest kernel."
19251 #: ../fish/guestfish.pod:1120 ../src/guestfs.pod:2983
19252 msgid "LIBGUESTFS_DEBUG"
19253 msgstr "LIBGUESTFS_DEBUG"
19256 #: ../fish/guestfish.pod:1122
19258 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19259 "effect as using the B<-v> option."
19263 #: ../fish/guestfish.pod:1125 ../src/guestfs.pod:2988
19264 msgid "LIBGUESTFS_MEMSIZE"
19265 msgstr "LIBGUESTFS_MEMSIZE"
19268 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2990
19270 "Set the memory allocated to the qemu process, in megabytes. For example:"
19274 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:2993
19277 " LIBGUESTFS_MEMSIZE=700\n"
19280 " LIBGUESTFS_MEMSIZE=700\n"
19284 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:2995
19285 msgid "LIBGUESTFS_PATH"
19289 #: ../fish/guestfish.pod:1134
19291 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19292 "the discussion of paths in L<guestfs(3)>."
19296 #: ../fish/guestfish.pod:1137 ../src/guestfs.pod:3000
19297 msgid "LIBGUESTFS_QEMU"
19301 #: ../fish/guestfish.pod:1139 ../src/guestfs.pod:3002
19303 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19304 "which was found at compile time by the configure script is used."
19308 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3008
19309 msgid "LIBGUESTFS_TRACE"
19313 #: ../fish/guestfish.pod:1145
19314 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19318 #: ../fish/guestfish.pod:1147
19320 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19323 #: ../fish/guestfish.pod:1149
19325 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19330 #: ../fish/guestfish.pod:1152 ../src/guestfs.pod:3013
19335 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3015
19337 "Location of temporary directory, defaults to C</tmp> except for the cached "
19338 "supermin appliance which defaults to C</var/tmp>."
19342 #: ../fish/guestfish.pod:1157 ../src/guestfs.pod:3018
19344 "If libguestfs was compiled to use the supermin appliance then the real "
19345 "appliance is cached in this directory, shared between all handles belonging "
19346 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19347 "use in case C</var/tmp> is not large enough."
19351 #: ../fish/guestfish.pod:1165 ../fuse/guestmount.pod:288
19352 #: ../rescue/virt-rescue.pod:269
19357 #: ../fish/guestfish.pod:1169 ../fuse/guestmount.pod:292
19358 #: ../rescue/virt-rescue.pod:273
19359 msgid "$HOME/.libguestfs-tools.rc"
19363 #: ../fish/guestfish.pod:1171 ../fuse/guestmount.pod:294
19364 #: ../rescue/virt-rescue.pod:275
19365 msgid "/etc/libguestfs-tools.conf"
19369 #: ../fish/guestfish.pod:1173 ../fuse/guestmount.pod:296
19370 #: ../rescue/virt-rescue.pod:277
19372 "This configuration file controls the default read-only or read-write mode "
19373 "(I<--ro> or I<--rw>)."
19377 #: ../fish/guestfish.pod:1176
19378 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19382 #: ../fish/guestfish.pod:1178
19383 msgid "$HOME/.guestfish"
19387 #: ../fish/guestfish.pod:1180
19389 "If compiled with GNU readline support, then the command history is saved in "
19394 #: ../fish/guestfish.pod:1183
19395 msgid "$HOME/.inputrc"
19399 #: ../fish/guestfish.pod:1185
19400 msgid "/etc/inputrc"
19404 #: ../fish/guestfish.pod:1187
19406 "If compiled with GNU readline support, then these files can be used to "
19407 "configure readline. For further information, please see L<readline(3)/"
19408 "INITIALIZATION FILE>."
19412 #: ../fish/guestfish.pod:1191
19413 msgid "To write rules which only apply to guestfish, use:"
19417 #: ../fish/guestfish.pod:1193
19427 #: ../fish/guestfish.pod:1197
19429 "Variables that you can set in inputrc that change the behaviour of guestfish "
19430 "in useful ways include:"
19434 #: ../fish/guestfish.pod:1202
19435 msgid "completion-ignore-case (default: on)"
19439 #: ../fish/guestfish.pod:1204
19441 "By default, guestfish will ignore case when tab-completing paths on the "
19446 #: ../fish/guestfish.pod:1207
19449 " set completion-ignore-case off\n"
19454 #: ../fish/guestfish.pod:1209
19455 msgid "to make guestfish case sensitive."
19459 #: ../fish/guestfish.pod:1213
19464 #: ../fish/guestfish.pod:1215
19465 msgid "test2.img (etc)"
19469 #: ../fish/guestfish.pod:1217
19471 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19472 "will be created in the file C<test1.img> in the current directory. The "
19473 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
19474 "the same name will be overwritten."
19478 #: ../fish/guestfish.pod:1226
19480 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19481 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19482 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19483 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19484 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19485 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19489 #: ../fish/guestfish.pod:1255 ../src/guestfs.pod:3104
19490 #: ../test-tool/libguestfs-test-tool.pod:99
19491 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
19495 #: ../fish/virt-copy-in.pod:5
19497 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19501 #: ../fish/virt-copy-in.pod:9
19504 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19509 #: ../fish/virt-copy-in.pod:11
19512 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19517 #: ../fish/virt-copy-in.pod:15
19519 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19520 "causing disk corruption. The virtual machine must be shut down before you "
19521 "use this command."
19525 #: ../fish/virt-copy-in.pod:21
19527 "C<virt-copy-in> copies files and directories from the local disk into a "
19528 "virtual machine disk image or named libvirt domain."
19532 #: ../fish/virt-copy-in.pod:24
19534 "You can give one of more filenames and directories on the command line. "
19535 "Directories are copied in recursively. The final parameter must be the "
19536 "destination directory in the disk image which must be an absolute path "
19537 "starting with a C</> character."
19541 #: ../fish/virt-copy-in.pod:33
19544 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19549 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19550 msgid "Upload a home directory to a guest:"
19554 #: ../fish/virt-copy-in.pod:37
19557 " virt-copy-in -d MyGuest skel /home\n"
19562 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19563 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19564 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19568 #: ../fish/virt-copy-in.pod:41
19570 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19571 "> C<copy-in> command. For anything more complex than a trivial copy, you "
19572 "are probably better off using guestfish directly."
19576 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19577 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19579 "Since the shell script just passes options straight to guestfish, read "
19580 "L<guestfish(1)> to see the full list of options."
19584 #: ../fish/virt-copy-in.pod:52
19587 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19588 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19589 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19590 #| "libguestfs.org/>."
19592 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19593 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19595 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19596 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19597 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19601 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19602 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19604 #| msgid "Copyright (C) 2009 Red Hat Inc."
19605 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19606 msgstr "© Red Hat Inc., 2009"
19609 #: ../fish/virt-copy-out.pod:5
19611 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19616 #: ../fish/virt-copy-out.pod:9
19619 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19624 #: ../fish/virt-copy-out.pod:11
19627 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19632 #: ../fish/virt-copy-out.pod:15
19634 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19635 "image or named libvirt domain."
19639 #: ../fish/virt-copy-out.pod:18
19641 "You can give one of more filenames and directories on the command line. "
19642 "Directories are copied out recursively."
19646 #: ../fish/virt-copy-out.pod:23
19647 msgid "Download the home directories from a virtual machine:"
19651 #: ../fish/virt-copy-out.pod:25
19655 " virt-copy-out -d MyGuest /home homes\n"
19660 #: ../fish/virt-copy-out.pod:30
19662 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19663 "> C<copy-out> command. For anything more complex than a trivial copy, you "
19664 "are probably better off using guestfish directly."
19668 #: ../fish/virt-copy-out.pod:41
19671 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19672 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19673 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19674 #| "libguestfs.org/>."
19676 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19677 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19679 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19680 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19681 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19685 #: ../fish/virt-tar-in.pod:5
19686 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19690 #: ../fish/virt-tar-in.pod:9
19693 " virt-tar-in -a disk.img data.tar /destination\n"
19698 #: ../fish/virt-tar-in.pod:11
19701 " virt-tar-in -d domain data.tar /destination\n"
19706 #: ../fish/virt-tar-in.pod:13
19709 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19714 #: ../fish/virt-tar-in.pod:17
19716 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19717 "causing disk corruption. The virtual machine must be shut down before you "
19718 "use this command."
19722 #: ../fish/virt-tar-in.pod:23
19724 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19725 "image or named libvirt domain."
19729 #: ../fish/virt-tar-in.pod:26
19731 "The first parameter is the tar file. Use C<-> to read the tar file from "
19732 "standard input. The second parameter is the absolute target directory to "
19737 #: ../fish/virt-tar-in.pod:34
19740 " virt-tar-in -d MyGuest homes.tar /home\n"
19745 #: ../fish/virt-tar-in.pod:38
19747 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19748 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
19749 "probably better off using guestfish directly."
19753 #: ../fish/virt-tar-in.pod:49
19756 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19757 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19758 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19759 #| "libguestfs.org/>."
19761 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19762 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19765 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19766 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19767 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19771 #: ../fish/virt-tar-out.pod:5
19773 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19777 #: ../fish/virt-tar-out.pod:9
19780 " virt-tar-out -a disk.img /dir files.tar\n"
19785 #: ../fish/virt-tar-out.pod:11
19788 " virt-tar-out -d domain /dir files.tar\n"
19793 #: ../fish/virt-tar-out.pod:13
19796 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19801 #: ../fish/virt-tar-out.pod:17
19803 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19807 #: ../fish/virt-tar-out.pod:20
19809 "The first parameter is the absolute path of the virtual machine directory. "
19810 "The second parameter is the tar file to write. Use C<-> to write to "
19815 #: ../fish/virt-tar-out.pod:26
19816 msgid "Download the home directories from a guest:"
19820 #: ../fish/virt-tar-out.pod:28
19823 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19828 #: ../fish/virt-tar-out.pod:32
19830 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19831 "> C<tar-out> command. For anything more complex than a trivial copy, you "
19832 "are probably better off using guestfish directly."
19836 #: ../fish/virt-tar-out.pod:43
19839 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19840 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19841 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19842 #| "libguestfs.org/>."
19844 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19845 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19847 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19848 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19849 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19853 #: ../fuse/guestmount.pod:5
19855 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19859 #: ../fuse/guestmount.pod:9
19862 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19867 #: ../fuse/guestmount.pod:11
19870 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19875 #: ../fuse/guestmount.pod:13
19878 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19883 #: ../fuse/guestmount.pod:17
19885 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19886 "machines. If you do this, you risk disk corruption in the VM."
19890 #: ../fuse/guestmount.pod:22
19892 "The guestmount program can be used to mount virtual machine filesystems and "
19893 "other disk images on the host. It uses libguestfs for access to the guest "
19894 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19895 "a mountable device."
19899 #: ../fuse/guestmount.pod:27
19901 "Along with other options, you have to give at least one device (I<-a> "
19902 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19903 "option) or use the I<-i> inspection option. How this works is better "
19904 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19909 #: ../fuse/guestmount.pod:33
19911 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
19912 "by you, and the filesystem will not be visible to any other users unless you "
19913 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
19914 "the filesystem, use the C<fusermount -u> command."
19918 #: ../fuse/guestmount.pod:41
19920 "For a typical Windows guest which has its main filesystem on the first "
19925 #: ../fuse/guestmount.pod:44
19928 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19933 #: ../fuse/guestmount.pod:46
19935 "For a typical Linux guest which has a /boot filesystem on the first "
19936 "partition, and the root filesystem on a logical volume:"
19940 #: ../fuse/guestmount.pod:49
19943 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19948 #: ../fuse/guestmount.pod:51
19949 msgid "To get libguestfs to detect guest mountpoints for you:"
19953 #: ../fuse/guestmount.pod:53
19956 " guestmount -a guest.img -i --ro /mnt\n"
19961 #: ../fuse/guestmount.pod:55
19962 msgid "For a libvirt guest called \"Guest\" you could do:"
19966 #: ../fuse/guestmount.pod:57
19969 " guestmount -d Guest -i --ro /mnt\n"
19974 #: ../fuse/guestmount.pod:59
19976 "If you don't know what filesystems are contained in a guest or disk image, "
19977 "use L<virt-filesystems(1)> first:"
19981 #: ../fuse/guestmount.pod:62
19984 " virt-filesystems MyGuest\n"
19989 #: ../fuse/guestmount.pod:64
19991 "If you want to trace the libguestfs calls but without excessive debugging "
19992 "information, we recommend:"
19996 #: ../fuse/guestmount.pod:67
19999 " guestmount [...] --trace /mnt\n"
20004 #: ../fuse/guestmount.pod:69
20005 msgid "If you want to debug the program, we recommend:"
20009 #: ../fuse/guestmount.pod:71
20012 " guestmount [...] --trace --verbose /mnt\n"
20017 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20018 #: ../resize/virt-resize.pod:486
20023 #: ../fuse/guestmount.pod:75
20024 msgid "Other users cannot see the filesystem by default"
20028 #: ../fuse/guestmount.pod:77
20030 "If you mount a filesystem as one user (eg. root), then other users will not "
20031 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20032 "option when mounting:"
20036 #: ../fuse/guestmount.pod:81
20039 " sudo guestmount [...] -o allow_other /mnt\n"
20044 #: ../fuse/guestmount.pod:91
20045 msgid "Add a block device or virtual machine image."
20049 #: ../fuse/guestmount.pod:114
20050 msgid "B<--dir-cache-timeout N>"
20051 msgstr "B<--dir-cache-timeout N>"
20054 #: ../fuse/guestmount.pod:116
20056 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20057 "seconds. The readdir cache [actually, there are several semi-independent "
20058 "caches] is populated after a readdir(2) call with the stat and extended "
20059 "attributes of the files in the directory, in anticipation that they will be "
20060 "requested soon after."
20064 #: ../fuse/guestmount.pod:122
20066 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20067 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20068 "requests, only cache existing ones."
20072 #: ../fuse/guestmount.pod:142
20074 "If you have untrusted raw-format guest disk images, you should use this "
20075 "option to specify the disk format. This avoids a possible security problem "
20076 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20077 "guestfs_add_drive_opts>."
20081 #: ../fuse/guestmount.pod:147
20082 msgid "B<--fuse-help>"
20083 msgstr "B<--fuse-help>"
20086 #: ../fuse/guestmount.pod:149
20087 msgid "Display help on special FUSE options (see I<-o> below)."
20091 #: ../fuse/guestmount.pod:153
20092 msgid "Display brief help and exit."
20096 #: ../fuse/guestmount.pod:177
20098 "Mount the named partition or logical volume on the given mountpoint B<in the "
20099 "guest> (this has nothing to do with mountpoints in the host)."
20103 #: ../fuse/guestmount.pod:180
20105 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20106 "something on C</>."
20110 #: ../fuse/guestmount.pod:197
20112 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20113 "unmounted. If you specify this option, then we don't attempt to sync the "
20114 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20118 #: ../fuse/guestmount.pod:202
20120 #| msgid "B<--partition>"
20121 msgid "B<-o option>"
20122 msgstr "B<--partition>"
20125 #: ../fuse/guestmount.pod:204
20127 #| msgid "B<--partition>"
20128 msgid "B<--option option>"
20129 msgstr "B<--partition>"
20132 #: ../fuse/guestmount.pod:206
20133 msgid "Pass extra options to FUSE."
20137 #: ../fuse/guestmount.pod:208
20139 "To get a list of all the extra options supported by FUSE, use the command "
20140 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20141 "of them are a good idea."
20145 #: ../fuse/guestmount.pod:212
20148 " guestmount --fuse-help\n"
20153 #: ../fuse/guestmount.pod:214
20154 msgid "Some potentially useful FUSE options:"
20158 #: ../fuse/guestmount.pod:218
20159 msgid "B<-o allow_other>"
20163 #: ../fuse/guestmount.pod:220
20164 msgid "Allow other users to see the filesystem."
20168 #: ../fuse/guestmount.pod:222
20169 msgid "B<-o attr_timeout=N>"
20170 msgstr "B<-o attr_timeout=N>"
20173 #: ../fuse/guestmount.pod:224
20174 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20178 #: ../fuse/guestmount.pod:226
20179 msgid "B<-o kernel_cache>"
20183 #: ../fuse/guestmount.pod:228
20185 "Allow the kernel to cache files (reduces the number of reads that have to go "
20186 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20187 "afford the extra memory usage."
20191 #: ../fuse/guestmount.pod:232
20192 msgid "B<-o uid=N> B<-o gid=N>"
20196 #: ../fuse/guestmount.pod:234
20198 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20199 "the chosen values."
20203 #: ../fuse/guestmount.pod:243
20205 "Add devices and mount everything read-only. Also disallow writes and make "
20206 "the disk appear read-only to FUSE."
20210 #: ../fuse/guestmount.pod:246
20212 "This is highly recommended if you are not going to edit the guest disk. If "
20213 "the guest is running and this option is I<not> supplied, then there is a "
20214 "strong risk of disk corruption in the guest. We try to prevent this from "
20215 "happening, but it is not always possible."
20219 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20220 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20224 #: ../fuse/guestmount.pod:255
20225 msgid "Enable SELinux support for the guest."
20229 #: ../fuse/guestmount.pod:261
20230 msgid "Enable verbose messages from underlying libguestfs."
20234 #: ../fuse/guestmount.pod:267
20235 msgid "Display the program version and exit."
20239 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20240 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20241 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20245 #: ../fuse/guestmount.pod:280
20252 #: ../fuse/guestmount.pod:282
20253 msgid "Trace libguestfs calls and entry into each FUSE function."
20257 #: ../fuse/guestmount.pod:284
20258 msgid "This also stops the daemon from forking into the background."
20262 #: ../fuse/guestmount.pod:305
20264 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20265 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20270 #: ../fuse/guestmount.pod:320
20271 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20275 #: ../inspector/virt-inspector.pod:5
20277 "virt-inspector - Display operating system version and other information "
20278 "about a virtual machine"
20282 #: ../inspector/virt-inspector.pod:9
20285 #| " virt-list-partitions [--options] domname\n"
20288 " virt-inspector [--options] -d domname\n"
20291 " virt-list-partitions [--параметри] назва_домену\n"
20295 #: ../inspector/virt-inspector.pod:11
20298 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20301 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20304 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20308 #: ../inspector/virt-inspector.pod:15
20311 #| " virt-list-partitions [--options] domname\n"
20314 " virt-inspector domname\n"
20317 " virt-list-partitions [--параметри] назва_домену\n"
20321 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20324 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20327 " virt-inspector disk.img [disk.img ...]\n"
20330 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20334 #: ../inspector/virt-inspector.pod:21
20336 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20337 "determine the version of the operating system and other information about "
20338 "the virtual machine."
20342 #: ../inspector/virt-inspector.pod:25
20343 msgid "Virt-inspector produces XML output for feeding into other programs."
20347 #: ../inspector/virt-inspector.pod:27
20349 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20350 "the libvirt domain (see: C<virsh list --all>)."
20354 #: ../inspector/virt-inspector.pod:30
20356 "You can also run virt-inspector directly on disk images from a single "
20357 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20358 "has several block devices, in which case you should list several I<-a> "
20359 "options one after another, with the first corresponding to the guest's C</"
20360 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20364 #: ../inspector/virt-inspector.pod:37
20366 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20367 "keys and similar."
20371 #: ../inspector/virt-inspector.pod:40
20373 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20374 "inspect several virtual machines, you have to run virt-inspector several "
20375 "times (for example, from a shell script for-loop)."
20379 #: ../inspector/virt-inspector.pod:45
20381 "Because virt-inspector needs direct access to guest images, it won't "
20382 "normally work over remote libvirt connections."
20386 #: ../inspector/virt-inspector.pod:48
20388 "All of the information available from virt-inspector is also available "
20389 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20390 "The same information can also be fetched using guestfish or via libguestfs "
20391 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20392 "WITH OTHER PROGRAMMING LANGUAGES>)."
20396 #: ../inspector/virt-inspector.pod:81
20398 "Libvirt is only used if you specify a C<domname> on the command line. If "
20399 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20404 #: ../inspector/virt-inspector.pod:94
20406 "When prompting for keys and passphrases, virt-inspector normally turns "
20407 "echoing off so you cannot see what you are typing. If you are not worried "
20408 "about Tempest attacks and there is no one else in the room you can specify "
20409 "this flag to see what you are typing."
20413 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20414 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20415 #: ../tools/virt-win-reg.pl:144
20417 "Specify the format of disk images given on the command line. If this is "
20418 "omitted then the format is autodetected from the content of the disk image."
20422 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20423 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20424 #: ../tools/virt-win-reg.pl:148
20426 "If disk images are requested from libvirt, then this program asks libvirt "
20427 "for this information. In this case, the value of the format parameter is "
20432 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20433 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
20434 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20435 #: ../tools/virt-win-reg.pl:152
20437 "If working with untrusted raw-format guest disk images, you should ensure "
20438 "the format is always specified."
20442 #: ../inspector/virt-inspector.pod:139
20443 msgid "Previous versions of virt-inspector allowed you to write either:"
20447 #: ../inspector/virt-inspector.pod:145
20450 #| " inspect-get-hostname root\n"
20453 " virt-inspector guestname\n"
20456 " inspect-get-hostname корінь\n"
20460 #: ../inspector/virt-inspector.pod:153
20465 #: ../inspector/virt-inspector.pod:155
20467 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20468 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20469 "just an overview."
20473 #: ../inspector/virt-inspector.pod:159
20475 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20476 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
20477 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20478 "which is vanishingly rare in real world VMs."
20482 #: ../inspector/virt-inspector.pod:164
20483 msgid "E<lt>operatingsystemE<gt>"
20487 #: ../inspector/virt-inspector.pod:166
20489 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20490 "describe the operating system, its architecture, the descriptive \"product "
20491 "name\" string, the type of OS and so on, as in this example:"
20495 #: ../inspector/virt-inspector.pod:170
20498 " <operatingsystems>\n"
20499 " <operatingsystem>\n"
20500 " <root>/dev/sda2</root>\n"
20501 " <name>windows</name>\n"
20502 " <arch>i386</arch>\n"
20503 " <distro>windows</distro>\n"
20504 " <product_name>Windows 7 Enterprise</product_name>\n"
20505 " <product_variant>Client</product_variant>\n"
20506 " <major_version>6</major_version>\n"
20507 " <minor_version>1</minor_version>\n"
20508 " <windows_systemroot>/Windows</windows_systemroot>\n"
20509 " <format>installed</format>\n"
20514 #: ../inspector/virt-inspector.pod:183
20516 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20517 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20518 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20519 "architecture. The other fields are fairly self-explanatory, but because "
20520 "these fields are taken directly from the libguestfs inspection API you can "
20521 "find precise information from L<guestfs(3)/INSPECTION>."
20525 #: ../inspector/virt-inspector.pod:191
20527 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20528 "of view of libguestfs (block devices may have completely different names "
20529 "inside the VM itself)."
20533 #: ../inspector/virt-inspector.pod:195
20535 #| msgid "mountpoints"
20536 msgid "E<lt>mountpointsE<gt>"
20537 msgstr "mountpoints"
20540 #: ../inspector/virt-inspector.pod:197
20542 "Un*x-like guests typically have multiple filesystems which are mounted at "
20543 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20544 "element which looks like this:"
20548 #: ../inspector/virt-inspector.pod:201
20551 " <operatingsystems>\n"
20552 " <operatingsystem>\n"
20555 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20556 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20557 " </mountpoints>\n"
20562 #: ../inspector/virt-inspector.pod:209
20564 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20565 "and may have completely different names inside the guest. Only mountable "
20566 "filesystems appear in this list, not things like swap devices."
20570 #: ../inspector/virt-inspector.pod:214
20572 #| msgid "list-filesystems"
20573 msgid "E<lt>filesystemsE<gt>"
20574 msgstr "list-filesystems"
20577 #: ../inspector/virt-inspector.pod:216
20579 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20580 "filesystems belonging to the guest, including swap and empty partitions. "
20581 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20582 "this OS or shared with this OS and other OSes)."
20586 #: ../inspector/virt-inspector.pod:222
20587 msgid "You might see something like this:"
20591 #: ../inspector/virt-inspector.pod:224
20594 " <operatingsystems>\n"
20595 " <operatingsystem>\n"
20598 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20599 " <type>ext4</type>\n"
20600 " <label>Fedora-13-x86_64</label>\n"
20601 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20607 #: ../inspector/virt-inspector.pod:234
20609 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20610 "the label, and the UUID."
20614 #: ../inspector/virt-inspector.pod:237
20615 msgid "E<lt>applicationsE<gt>"
20619 #: ../inspector/virt-inspector.pod:239
20621 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20622 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20627 #: ../inspector/virt-inspector.pod:243
20629 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
20630 "Typical values would be C<rpm> and C<deb>."
20634 #: ../inspector/virt-inspector.pod:246
20636 "E<lt>package_managementE<gt>, if present, describes the package manager. "
20637 "Typical values include C<yum>, C<up2date> and C<apt>"
20641 #: ../inspector/virt-inspector.pod:249
20642 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20646 #: ../inspector/virt-inspector.pod:252
20649 " <operatingsystems>\n"
20650 " <operatingsystem>\n"
20652 " <applications>\n"
20654 " <name>coreutils</name>\n"
20655 " <version>8.5</version>\n"
20656 " <release>1</release>\n"
20657 " </application>\n"
20662 #: ../inspector/virt-inspector.pod:262
20664 "The version and release fields may not be available for some types guests. "
20665 "Other fields are possible, see L<guestfs(3)/"
20666 "guestfs_inspect_list_applications>."
20670 #: ../inspector/virt-inspector.pod:266
20671 msgid "E<lt>drive_mappingsE<gt>"
20675 #: ../inspector/virt-inspector.pod:268
20677 "For operating systems like Windows which use drive letters, virt-inspector "
20678 "is able to find out how drive letters map to filesystems."
20682 #: ../inspector/virt-inspector.pod:272
20685 " <operatingsystems>\n"
20686 " <operatingsystem>\n"
20688 " <drive_mappings>\n"
20689 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20690 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20691 " </drive_mappings>\n"
20696 #: ../inspector/virt-inspector.pod:280
20698 "In the example above, drive C maps to the filesystem on the second partition "
20699 "on the first disk, and drive E maps to the filesystem on the first partition "
20700 "on the second disk."
20704 #: ../inspector/virt-inspector.pod:284
20706 "Note that this only covers permanent local filesystem mappings, not things "
20707 "like network shares. Furthermore NTFS volume mount points may not be listed "
20712 #: ../inspector/virt-inspector.pod:288
20714 #| msgid "B<-s E<lt>NE<gt>>"
20715 msgid "E<lt>iconE<gt>"
20716 msgstr "B<-s E<lt>NE<gt>>"
20719 #: ../inspector/virt-inspector.pod:290
20721 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
20722 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
20723 "very large and high quality."
20727 #: ../inspector/virt-inspector.pod:294
20730 " <operatingsystems>\n"
20731 " <operatingsystem>\n"
20734 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20735 " [... many lines of base64 data ...]\n"
20741 #: ../inspector/virt-inspector.pod:302
20743 "To display the icon, you have to extract it and convert the base64 data back "
20744 "to a binary file. Use an XPath query or simply an editor to extract the "
20745 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20750 #: ../inspector/virt-inspector.pod:307
20753 " base64 -i -d < icon.data > icon.png\n"
20758 #: ../inspector/virt-inspector.pod:309
20759 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20763 #: ../inspector/virt-inspector.pod:311
20765 "Virt-inspector can detect some operating system installers on install disks, "
20766 "live CDs, bootable USB keys and more."
20770 #: ../inspector/virt-inspector.pod:314
20772 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20773 "fields may be present to indicate a live CD, network installer, or one part "
20774 "of a multipart CD. For example:"
20778 #: ../inspector/virt-inspector.pod:318
20781 " <operatingsystems>\n"
20782 " <operatingsystem>\n"
20783 " <root>/dev/sda</root>\n"
20784 " <name>linux</name>\n"
20785 " <arch>i386</arch>\n"
20786 " <distro>ubuntu</distro>\n"
20787 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
20788 " <major_version>10</major_version>\n"
20789 " <minor_version>10</minor_version>\n"
20790 " <format>installer</format>\n"
20796 #: ../inspector/virt-inspector.pod:330
20797 msgid "USING XPATH"
20801 #: ../inspector/virt-inspector.pod:332
20803 "You can use the XPath query language, and/or the xpath tool, in order to "
20804 "select parts of the XML."
20808 #: ../inspector/virt-inspector.pod:337
20811 " $ virt-inspector -d Guest | xpath //filesystems\n"
20812 " Found 1 nodes:\n"
20815 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20816 " <type>ext4</type>\n"
20822 #: ../inspector/virt-inspector.pod:345
20825 " $ virt-inspector -d Guest | \\\n"
20826 " xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20827 " Query didn't return a nodeset. Value: ext4\n"
20832 #: ../inspector/virt-inspector.pod:356
20833 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20837 #: ../inspector/virt-inspector.pod:358
20839 "Early versions of libguestfs shipped with a different virt-inspector program "
20840 "written in Perl (the current version is written in C). The XML output of "
20841 "the Perl virt-inspector was different and it could also output in other "
20842 "formats like text."
20846 #: ../inspector/virt-inspector.pod:363
20848 "The old virt-inspector is no longer supported or shipped with libguestfs."
20852 #: ../inspector/virt-inspector.pod:366
20854 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20855 "versions of virt-inspector with different names:"
20859 #: ../inspector/virt-inspector.pod:369
20862 " virt-inspector Old Perl version.\n"
20863 " virt-inspector2 New C version.\n"
20868 #: ../inspector/virt-inspector.pod:374
20870 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20871 ">, L<http://libguestfs.org/>."
20875 #: ../inspector/virt-inspector.pod:390
20876 msgid "Matthew Booth L<mbooth@redhat.com>"
20880 #: ../java/examples/guestfs-java.pod:5
20881 msgid "guestfs-java - How to use libguestfs from Java"
20885 #: ../java/examples/guestfs-java.pod:9
20888 " import com.redhat.et.libguestfs.*;\n"
20893 #: ../java/examples/guestfs-java.pod:11
20896 " GuestFS g = new GuestFS ();\n"
20897 " g.add_drive_opts (\"disk.img\", null);\n"
20903 #: ../java/examples/guestfs-java.pod:17
20905 "This manual page documents how to call libguestfs from the Java programming "
20906 "language. This page just documents the differences from the C API and gives "
20907 "some examples. If you are not familiar with using libguestfs, you also need "
20908 "to read L<guestfs(3)>."
20912 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20913 msgid "CLOSING THE HANDLE"
20917 #: ../java/examples/guestfs-java.pod:24
20919 "The handle is closed when it is reaped by the garbage collector. Because "
20920 "libguestfs handles include a lot of state, it is also possible to close (and "
20921 "hence free) them explicitly by calling the C<close> method."
20925 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20926 #: ../python/examples/guestfs-python.pod:21
20927 #: ../ruby/examples/guestfs-ruby.pod:22
20934 #: ../java/examples/guestfs-java.pod:31
20936 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20937 "exception. This has a single parameter which is the error message (a "
20942 #: ../java/examples/guestfs-java.pod:35
20943 msgid "Calling any method on a closed handle raises the same exception."
20947 #: ../java/examples/guestfs-java.pod:47
20950 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20951 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
20952 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20954 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20955 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20956 "libguestfs.org/>, L<http://caml.inria.fr/>."
20958 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20959 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
20960 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20963 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20965 #| msgid "Copyright (C) 2009 Red Hat Inc."
20966 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20967 msgstr "© Red Hat Inc., 2009"
20970 #: ../ocaml/examples/guestfs-ocaml.pod:5
20971 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20975 #: ../ocaml/examples/guestfs-ocaml.pod:9
20976 msgid "Module style:"
20980 #: ../ocaml/examples/guestfs-ocaml.pod:11
20983 " let g = Guestfs.create () in\n"
20984 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20985 " Guestfs.launch g;\n"
20990 #: ../ocaml/examples/guestfs-ocaml.pod:15
20991 msgid "Object-oriented style:"
20995 #: ../ocaml/examples/guestfs-ocaml.pod:17
20998 " let g = new Guestfs.guestfs () in\n"
20999 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21005 #: ../ocaml/examples/guestfs-ocaml.pod:21
21008 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21010 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21015 #: ../ocaml/examples/guestfs-ocaml.pod:27
21017 "This manual page documents how to call libguestfs from the OCaml programming "
21018 "language. This page just documents the differences from the C API and gives "
21019 "some examples. If you are not familiar with using libguestfs, you also need "
21020 "to read L<guestfs(3)>."
21024 #: ../ocaml/examples/guestfs-ocaml.pod:32
21025 msgid "PROGRAMMING STYLES"
21029 #: ../ocaml/examples/guestfs-ocaml.pod:34
21031 "There are two different programming styles supported by the OCaml bindings. "
21032 "You can use a module style, with each C function mapped to an OCaml function:"
21036 #: ../ocaml/examples/guestfs-ocaml.pod:38
21039 #| " int guestfs_last_errno (guestfs_h *g);\n"
21042 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21045 " int guestfs_last_errno (guestfs_h *g);\n"
21049 #: ../ocaml/examples/guestfs-ocaml.pod:40
21054 #: ../ocaml/examples/guestfs-ocaml.pod:42
21057 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21062 #: ../ocaml/examples/guestfs-ocaml.pod:44
21064 "Alternately you can use an object-oriented style, calling methods on the "
21065 "class C<Guestfs.guestfs>:"
21069 #: ../ocaml/examples/guestfs-ocaml.pod:47
21072 " method set_verbose : bool -> unit\n"
21077 #: ../ocaml/examples/guestfs-ocaml.pod:49
21079 "The object-oriented style is usually briefer, and the minor performance "
21080 "penalty isn't noticable in the general overhead of performing libguestfs "
21085 #: ../ocaml/examples/guestfs-ocaml.pod:55
21087 "The handle is closed when it is reaped by the garbage collector. Because "
21088 "libguestfs handles include a lot of state, it is also possible to close (and "
21089 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21094 #: ../ocaml/examples/guestfs-ocaml.pod:62
21096 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21097 "exception. This has a single parameter which is the error message (a "
21102 #: ../ocaml/examples/guestfs-ocaml.pod:66
21104 "Calling any function/method on a closed handle raises C<Guestfs."
21105 "Handle_closed>. The single parameter is the name of the function that you "
21110 #: ../ocaml/examples/guestfs-ocaml.pod:80
21113 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21114 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21115 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21117 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21118 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21119 "libguestfs.org/>, L<http://caml.inria.fr/>."
21121 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21122 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21123 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21126 #: ../perl/examples/guestfs-perl.pod:5
21127 msgid "guestfs-perl - How to use libguestfs from Perl"
21131 #: ../perl/examples/guestfs-perl.pod:9
21134 " use Sys::Guestfs;\n"
21139 #: ../perl/examples/guestfs-perl.pod:11
21142 " my $h = Sys::Guestfs->new ();\n"
21143 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21144 " $h->launch ();\n"
21145 " $h->mount_options ('', '/dev/sda1', '/');\n"
21146 " $h->touch ('/hello');\n"
21152 #: ../perl/examples/guestfs-perl.pod:20
21154 "This manual page documents how to call libguestfs from the Perl programming "
21155 "language. This page just documents the differences from the C API and gives "
21156 "some examples. If you are not familiar with using libguestfs, you also need "
21157 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21161 #: ../perl/examples/guestfs-perl.pod:26
21166 #: ../perl/examples/guestfs-perl.pod:28
21168 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21173 #: ../perl/examples/guestfs-perl.pod:41
21176 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21177 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21178 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21180 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21181 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21182 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21184 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21185 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21186 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21189 #: ../python/examples/guestfs-python.pod:5
21190 msgid "guestfs-python - How to use libguestfs from Python"
21194 #: ../python/examples/guestfs-python.pod:9
21197 " import guestfs\n"
21198 " g = guestfs.GuestFS ()\n"
21199 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21205 #: ../python/examples/guestfs-python.pod:16
21207 "This manual page documents how to call libguestfs from the Python "
21208 "programming language. This page just documents the differences from the C "
21209 "API and gives some examples. If you are not familiar with using libguestfs, "
21210 "you also need to read L<guestfs(3)>."
21214 #: ../python/examples/guestfs-python.pod:23
21216 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21217 "single string argument which is the error message."
21221 #: ../python/examples/guestfs-python.pod:26
21222 msgid "MORE DOCUMENTATION"
21226 #: ../python/examples/guestfs-python.pod:28
21231 #: ../python/examples/guestfs-python.pod:30
21235 " >>> import guestfs\n"
21236 " >>> help (guestfs)\n"
21241 #: ../python/examples/guestfs-python.pod:44
21244 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21245 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21246 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21248 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21249 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21250 "libguestfs.org/>."
21252 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21253 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21254 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21257 #: ../rescue/virt-rescue.pod:5
21258 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21262 #: ../rescue/virt-rescue.pod:9
21265 #| " virt-list-partitions [--options] domname\n"
21268 " virt-rescue [--options] -d domname\n"
21271 " virt-list-partitions [--параметри] назва_домену\n"
21275 #: ../rescue/virt-rescue.pod:11
21278 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21281 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21284 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21288 #: ../rescue/virt-rescue.pod:15
21291 #| " virt-list-partitions [--options] domname\n"
21294 " virt-rescue [--options] domname\n"
21297 " virt-list-partitions [--параметри] назва_домену\n"
21301 #: ../rescue/virt-rescue.pod:17
21304 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21307 " virt-rescue [--options] disk.img [disk.img ...]\n"
21310 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21314 #: ../rescue/virt-rescue.pod:21
21316 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21317 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21318 "you from doing this, but doesn't catch all cases."
21322 #: ../rescue/virt-rescue.pod:25
21324 "However if you use the I<--ro> (read only) option, then you can attach a "
21325 "shell to a live virtual machine. The results might be strange or "
21326 "inconsistent at times but you won't get disk corruption."
21330 #: ../rescue/virt-rescue.pod:31
21332 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21333 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21334 "recovery tools which you can use to examine or rescue a virtual machine or "
21339 #: ../rescue/virt-rescue.pod:36
21341 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21342 "on disk image(s):"
21346 #: ../rescue/virt-rescue.pod:39
21349 " virt-rescue -d GuestName\n"
21354 #: ../rescue/virt-rescue.pod:41
21357 " virt-rescue --ro -a /path/to/disk.img\n"
21362 #: ../rescue/virt-rescue.pod:43
21365 " virt-rescue -a /dev/sdc\n"
21370 #: ../rescue/virt-rescue.pod:45
21371 msgid "For live VMs you I<must> use the --ro option."
21375 #: ../rescue/virt-rescue.pod:47
21377 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21378 "in an interactive bash shell where you can use many ordinary Linux "
21379 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21380 "appliance. You must mount the virtual machine's filesystems by hand. There "
21381 "is an empty directory called C</sysroot> where you can mount filesystems."
21385 #: ../rescue/virt-rescue.pod:54
21387 "In the example below, we list logical volumes, then choose one to mount "
21388 "under C</sysroot>:"
21392 #: ../rescue/virt-rescue.pod:57
21396 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21397 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21398 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21399 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21400 " ><rescue> ls /sysroot\n"
21405 #: ../rescue/virt-rescue.pod:64
21407 "If you don't know what filesystems are available on the virtual machine then "
21408 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21412 #: ../rescue/virt-rescue.pod:70
21414 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21415 "virtual machine. For example you can use it on a blank file if you want to "
21416 "partition that file (although we would recommend using L<guestfish(1)> "
21417 "instead as it is more suitable for this purpose). You can even use virt-"
21418 "rescue on things like SD cards."
21422 #: ../rescue/virt-rescue.pod:76
21424 "Virt-rescue does not require root. You only need to run it as root if you "
21425 "need root to open the disk image."
21429 #: ../rescue/virt-rescue.pod:79
21431 "This tool is just designed for quick interactive hacking on a virtual "
21432 "machine. For more structured access to a virtual machine disk image, you "
21433 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21434 "make scripted changes to guests, use L<guestfish(1)>."
21438 #: ../rescue/virt-rescue.pod:103
21439 msgid "B<--append kernelopts>"
21443 #: ../rescue/virt-rescue.pod:105
21444 msgid "Pass additional options to the rescue kernel."
21448 #: ../rescue/virt-rescue.pod:135
21451 #| " guestfish --format=raw -a disk.img\n"
21454 " virt-rescue --format=raw -a disk.img\n"
21457 " guestfish --format=raw -a disk.img\n"
21461 #: ../rescue/virt-rescue.pod:139
21464 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21467 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21470 " guestfish --format=raw -a disk.img --format -a another.img\n"
21474 #: ../rescue/virt-rescue.pod:148
21479 #: ../rescue/virt-rescue.pod:150
21481 #| msgid "B<--merge>"
21482 msgid "B<--memsize MB>"
21483 msgstr "B<--merge>"
21486 #: ../rescue/virt-rescue.pod:152
21488 "Change the amount of memory allocated to the rescue system. The default is "
21489 "set by libguestfs and is small but adequate for running system tools. The "
21490 "occasional program might need more memory. The parameter is specified in "
21495 #: ../rescue/virt-rescue.pod:157
21497 #| msgid "B<--inspector>"
21498 msgid "B<--network>"
21499 msgstr "B<--inspector>"
21502 #: ../rescue/virt-rescue.pod:159
21503 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
21507 #: ../rescue/virt-rescue.pod:165
21508 msgid "Open the image read-only."
21512 #: ../rescue/virt-rescue.pod:175
21514 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
21515 "SELINUX> before using this option."
21519 #: ../rescue/virt-rescue.pod:194
21521 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21522 "are done read-write."
21526 #: ../rescue/virt-rescue.pod:207
21527 msgid "Previous versions of virt-rescue allowed you to write either:"
21531 #: ../rescue/virt-rescue.pod:209
21534 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21537 " virt-rescue disk.img [disk.img ...]\n"
21540 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21544 #: ../rescue/virt-rescue.pod:213
21547 #| " file-architecture filename\n"
21550 " virt-rescue guestname\n"
21553 " file-architecture назва_файла\n"
21557 #: ../rescue/virt-rescue.pod:221
21562 #: ../rescue/virt-rescue.pod:223
21564 "Adding the I<--network> option enables QEMU user networking in the rescue "
21565 "appliance. There are some differences between user networking and ordinary "
21570 #: ../rescue/virt-rescue.pod:229
21571 msgid "ping does not work"
21575 #: ../rescue/virt-rescue.pod:231
21577 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21578 "send the ping packets, and because virt-rescue must be able to run as non-"
21579 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
21580 "The ping command will appear to resolve addresses but will not be able to "
21581 "send or receive any packets. This does not mean that the network is not "
21586 #: ../rescue/virt-rescue.pod:238
21587 msgid "cannot receive connections"
21591 #: ../rescue/virt-rescue.pod:240
21592 msgid "QEMU user networking cannot receive incoming connections."
21596 #: ../rescue/virt-rescue.pod:242
21597 msgid "making TCP connections"
21601 #: ../rescue/virt-rescue.pod:244
21603 "The virt-rescue appliance needs to be small and so does not include many "
21604 "network tools. In particular there is no L<telnet(1)> command. You can "
21605 "make TCP connections from the shell using the magical C</dev/tcp/"
21606 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21610 #: ../rescue/virt-rescue.pod:249
21613 " exec 3<>/dev/tcp/redhat.com/80\n"
21614 " echo \"GET /\" >&3\n"
21620 #: ../rescue/virt-rescue.pod:253
21621 msgid "See L<bash(1)> for more details."
21625 #: ../rescue/virt-rescue.pod:259
21627 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
21628 "ENVIRONMENT VARIABLES> for the complete list."
21632 #: ../rescue/virt-rescue.pod:286
21635 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21636 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21637 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21639 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21640 "libguestfs.org/>."
21642 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21643 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21644 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21647 #: ../resize/virt-resize.pod:5
21648 msgid "virt-resize - Resize a virtual machine disk"
21652 #: ../resize/virt-resize.pod:9
21655 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21656 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21657 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21662 #: ../resize/virt-resize.pod:15
21664 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21665 "larger or smaller overall, and resizing or deleting any partitions contained "
21670 #: ../resize/virt-resize.pod:19
21672 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
21673 "not> be used on live virtual machines - for consistent results, shut the "
21674 "virtual machine down before resizing it."
21678 #: ../resize/virt-resize.pod:23
21680 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21681 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21685 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
21686 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
21691 #: ../resize/virt-resize.pod:33
21693 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21694 "fill the extra 5GB of space."
21698 #: ../resize/virt-resize.pod:36
21701 " virt-filesystems --long -h --all -a olddisk\n"
21706 #: ../resize/virt-resize.pod:38
21709 " truncate -r olddisk newdisk\n"
21710 " truncate -s +5G newdisk\n"
21715 #: ../resize/virt-resize.pod:41
21718 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21719 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21724 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
21725 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
21730 #: ../resize/virt-resize.pod:46
21732 "As above, but make the /boot partition 200MB bigger, while giving the "
21733 "remaining space to /dev/sda2:"
21737 #: ../resize/virt-resize.pod:49
21740 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21741 " olddisk newdisk\n"
21746 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
21751 #: ../resize/virt-resize.pod:54
21753 "As in the first example, but expand a logical volume as the final step. "
21754 "This is what you would typically use for Linux guests that use LVM:"
21758 #: ../resize/virt-resize.pod:58
21761 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21762 " olddisk newdisk\n"
21767 #: ../resize/virt-resize.pod:61
21772 #: ../resize/virt-resize.pod:63
21774 "As in the first example, but the output format will be qcow2 instead of a "
21779 #: ../resize/virt-resize.pod:66
21782 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21783 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21788 #: ../resize/virt-resize.pod:71
21789 msgid "DETAILED USAGE"
21793 #: ../resize/virt-resize.pod:73
21794 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21798 #: ../resize/virt-resize.pod:77
21799 msgid "1. Shut down the virtual machine"
21803 #: ../resize/virt-resize.pod:79
21804 msgid "2. Locate input disk image"
21808 #: ../resize/virt-resize.pod:81
21810 "Locate the input disk image (ie. the file or device on the host containing "
21811 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
21812 "dumpxml> like this to find the disk image name:"
21816 #: ../resize/virt-resize.pod:85
21819 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21820 " Found 1 nodes:\n"
21822 " <source dev=\"/dev/vg/lv_guest\" />\n"
21827 #: ../resize/virt-resize.pod:90
21828 msgid "3. Look at current sizing"
21832 #: ../resize/virt-resize.pod:92
21833 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21837 #: ../resize/virt-resize.pod:95
21840 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21841 " Name Type Size Parent\n"
21842 " /dev/sda1 partition 101M /dev/sda\n"
21843 " /dev/sda2 partition 7.9G /dev/sda\n"
21844 " /dev/sda device 8.0G -\n"
21849 #: ../resize/virt-resize.pod:101
21851 "(This example is a virtual machine with an 8 GB disk which we would like to "
21852 "expand up to 10 GB)."
21856 #: ../resize/virt-resize.pod:104
21857 msgid "4. Create output disk"
21861 #: ../resize/virt-resize.pod:106
21863 "Virt-resize cannot do in-place disk modifications. You have to have space "
21864 "to store the resized output disk."
21868 #: ../resize/virt-resize.pod:109
21870 "To store the resized disk image in a file, create a file of a suitable size:"
21874 #: ../resize/virt-resize.pod:112
21877 " # rm -f outdisk\n"
21878 " # truncate -s 10G outdisk\n"
21883 #: ../resize/virt-resize.pod:115
21884 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21888 #: ../resize/virt-resize.pod:117
21891 " # lvcreate -L 10G -n lv_name vg_name\n"
21896 #: ../resize/virt-resize.pod:119
21897 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21901 #: ../resize/virt-resize.pod:121
21904 " # virsh pool-list\n"
21905 " # virsh vol-create-as poolname newvol 10G\n"
21910 #: ../resize/virt-resize.pod:124
21915 #: ../resize/virt-resize.pod:126
21917 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21918 "file) and the output disk. The output disk is the one created in the "
21923 #: ../resize/virt-resize.pod:130
21926 " # virt-resize indisk outdisk\n"
21931 #: ../resize/virt-resize.pod:132
21933 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21934 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
21935 "larger, then an extra, empty partition is created at the end of the disk "
21936 "covering the extra space. If C<outdisk> is smaller, then it will give an "
21941 #: ../resize/virt-resize.pod:138
21943 "More realistically you'd want to expand existing partitions in the disk "
21944 "image by passing extra options (for the full list see the L</OPTIONS> "
21949 #: ../resize/virt-resize.pod:142
21951 "L</--expand> is the most useful option. It expands the named partition "
21952 "within the disk to fill any extra space:"
21956 #: ../resize/virt-resize.pod:145
21959 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21964 #: ../resize/virt-resize.pod:147
21966 "(In this case, an extra partition is I<not> created at the end of the disk, "
21967 "because there will be no unused space)."
21971 #: ../resize/virt-resize.pod:150
21973 "L</--resize> is the other commonly used option. The following would "
21974 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21975 "rest of the available space:"
21979 #: ../resize/virt-resize.pod:154
21982 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21983 " indisk outdisk\n"
21988 #: ../resize/virt-resize.pod:157
21990 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21991 "if virt-resize knows how, it will resize the contents, the equivalent of "
21992 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21993 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
21994 "filesystems, so you would have to online resize them after booting the guest."
21998 #: ../resize/virt-resize.pod:164
21999 msgid "Other options are covered below."
22003 #: ../resize/virt-resize.pod:166
22008 #: ../resize/virt-resize.pod:168
22009 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22013 #: ../resize/virt-resize.pod:170
22014 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22018 #: ../resize/virt-resize.pod:172
22021 #| " edit filename\n"
22024 " # virsh edit guestname\n"
22027 " edit назва_файла\n"
22031 #: ../resize/virt-resize.pod:174
22033 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22034 "html#elementsDisks>"
22038 #: ../resize/virt-resize.pod:177
22039 msgid "Then start up the domain with the new, resized disk:"
22043 #: ../resize/virt-resize.pod:179
22046 #| " ln-s target linkname\n"
22049 " # virsh start guestname\n"
22052 " ln-s призначення назва_посилання\n"
22056 #: ../resize/virt-resize.pod:181
22058 "and check that it still works. See also the L</NOTES> section below for "
22059 "additional information."
22063 #: ../resize/virt-resize.pod:184
22064 msgid "7. Resize LVs etc inside the guest"
22068 #: ../resize/virt-resize.pod:186
22069 msgid "(This can also be done offline using L<guestfish(1)>)"
22073 #: ../resize/virt-resize.pod:188
22075 "Once the guest has booted you should see the new space available, at least "
22076 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22077 "may need to resize LVs inside PVs, and also resize filesystem types that "
22078 "virt-resize does not know how to expand."
22082 #: ../resize/virt-resize.pod:195
22083 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22087 #: ../resize/virt-resize.pod:197
22089 "Shrinking is somewhat more complex than expanding, and only an overview is "
22094 #: ../resize/virt-resize.pod:200
22096 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22097 "filesystems). The user has to shrink content before passing the disk image "
22098 "to virt-resize, and virt-resize will check that the content has been shrunk "
22103 #: ../resize/virt-resize.pod:205
22104 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22108 #: ../resize/virt-resize.pod:207
22110 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22111 "steps 3 and 4 above to allocate a new disk image."
22115 #: ../resize/virt-resize.pod:210
22117 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22121 #: ../resize/virt-resize.pod:213
22122 msgid "IGNORING OR DELETING PARTITIONS"
22126 #: ../resize/virt-resize.pod:215
22128 "virt-resize also gives a convenient way to ignore or delete partitions when "
22129 "copying from the input disk to the output disk. Ignoring a partition speeds "
22130 "up the copy where you don't care about the existing contents of a "
22131 "partition. Deleting a partition removes it completely, but note that it "
22132 "also renumbers any partitions after the one which is deleted, which can "
22133 "leave some guests unbootable."
22137 #: ../resize/virt-resize.pod:222
22138 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22142 #: ../resize/virt-resize.pod:224
22144 "If the input disk is in qcow2 format, then you may prefer that the output is "
22145 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22146 "the fly. The output format is simply determined by the format of the empty "
22147 "output container that you provide. Thus to create qcow2 output, use:"
22151 #: ../resize/virt-resize.pod:230
22154 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22159 #: ../resize/virt-resize.pod:232
22160 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22164 #: ../resize/virt-resize.pod:234
22165 msgid "Similarly, to get non-sparse raw output use:"
22169 #: ../resize/virt-resize.pod:236
22172 #| " fallocate path len\n"
22175 " fallocate -l size outdisk\n"
22178 " fallocate шлях довжина\n"
22182 #: ../resize/virt-resize.pod:238
22184 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22185 "dev/zero of=outdisk bs=1M count=..>)"
22189 #: ../resize/virt-resize.pod:247
22190 msgid "Display help."
22194 #: ../resize/virt-resize.pod:249
22199 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22200 #: ../tools/virt-win-reg.pl:120
22202 msgstr "B<--debug>"
22205 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22206 msgid "Enable debugging messages."
22210 #: ../resize/virt-resize.pod:255
22212 #| msgid "B<--no-dest-paths>"
22213 msgid "B<--delete part>"
22214 msgstr "B<--no-dest-paths>"
22217 #: ../resize/virt-resize.pod:257
22219 "Delete the named partition. It would be more accurate to describe this as "
22220 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22221 "the original disk image is left intact."
22225 #: ../resize/virt-resize.pod:261
22227 "Note that when you delete a partition, then anything contained in the "
22228 "partition is also deleted. Furthermore, this causes any partitions that "
22229 "come after to be I<renumbered>, which can easily make your guest unbootable."
22233 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22234 #: ../resize/virt-resize.pod:448
22235 msgid "You can give this option multiple times."
22239 #: ../resize/virt-resize.pod:268
22241 #| msgid "B<--partition>"
22242 msgid "B<--expand part>"
22243 msgstr "B<--partition>"
22246 #: ../resize/virt-resize.pod:270
22248 "Expand the named partition so it uses up all extra space (space left over "
22249 "after any other resize changes that you request have been done)."
22253 #: ../resize/virt-resize.pod:273
22255 "If virt-resize knows how, it will expand the direct content of the "
22256 "partition. For example, if the partition is an LVM PV, it will expand the "
22257 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22258 "content it doesn't know about alone."
22262 #: ../resize/virt-resize.pod:278
22263 msgid "Currently virt-resize can resize:"
22267 #: ../resize/virt-resize.pod:284
22268 msgid "ext2, ext3 and ext4 filesystems."
22272 #: ../resize/virt-resize.pod:288
22273 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22277 #: ../resize/virt-resize.pod:290
22279 "The filesystem must have been shut down consistently last time it was used. "
22280 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22281 "consistency check, so at the first boot after resizing Windows will check "
22286 #: ../resize/virt-resize.pod:297
22288 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22289 "inside the PV, but see the I<--LV-expand> option. The user could also "
22290 "resize LVs as desired after boot."
22294 #: ../resize/virt-resize.pod:303
22295 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22299 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
22300 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22304 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22305 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22306 #: ../tools/virt-win-reg.pl:142
22307 msgid "B<--format> raw"
22311 #: ../resize/virt-resize.pod:311
22313 "Specify the format of the input disk image. If this flag is not given then "
22314 "it is auto-detected from the image itself."
22318 #: ../resize/virt-resize.pod:317
22320 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22321 "AND NON-SPARSE RAW FORMATS>."
22325 #: ../resize/virt-resize.pod:320
22327 #| msgid "B<--format>"
22328 msgid "B<--ignore part>"
22329 msgstr "B<--format>"
22332 #: ../resize/virt-resize.pod:322
22334 "Ignore the named partition. Effectively this means the partition is "
22335 "allocated on the destination disk, but the content is not copied across from "
22336 "the source disk. The content of the partition will be blank (all zero "
22341 #: ../resize/virt-resize.pod:329
22342 msgid "B<--LV-expand logvol>"
22346 #: ../resize/virt-resize.pod:331
22348 "This takes the logical volume and, as a final step, expands it to fill all "
22349 "the space available in its volume group. A typical usage, assuming a Linux "
22350 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22351 "lv_root> would be:"
22355 #: ../resize/virt-resize.pod:336
22358 " virt-resize indisk outdisk \\\n"
22359 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22364 #: ../resize/virt-resize.pod:339
22366 "This would first expand the partition (and PV), and then expand the root "
22367 "device to fill the extra space in the PV."
22371 #: ../resize/virt-resize.pod:342
22373 "The contents of the LV are also resized if virt-resize knows how to do "
22374 "that. You can stop virt-resize from trying to expand the content by using "
22375 "the option I<--no-expand-content>."
22379 #: ../resize/virt-resize.pod:346
22380 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22384 #: ../resize/virt-resize.pod:348
22386 "You can give this option multiple times, I<but> it doesn't make sense to do "
22387 "this unless the logical volumes you specify are all in different volume "
22392 #: ../resize/virt-resize.pod:354
22394 #| msgid "B<--debug>"
22395 msgid "B<--dryrun>"
22396 msgstr "B<--debug>"
22399 #: ../resize/virt-resize.pod:356
22400 msgid "Print a summary of what would be done, but don't do anything."
22404 #: ../resize/virt-resize.pod:358
22405 msgid "B<--no-copy-boot-loader>"
22409 #: ../resize/virt-resize.pod:360
22411 "By default, virt-resize copies over some sectors at the start of the disk "
22412 "(up to the beginning of the first partition). Commonly these sectors "
22413 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22414 "in order for the guest to boot correctly."
22418 #: ../resize/virt-resize.pod:365
22420 "If you specify this flag, then this initial copy is not done. You may need "
22421 "to reinstall the boot loader in this case."
22425 #: ../resize/virt-resize.pod:368
22427 #| msgid "B<--partition>"
22428 msgid "B<--no-extra-partition>"
22429 msgstr "B<--partition>"
22432 #: ../resize/virt-resize.pod:370
22434 "By default, virt-resize creates an extra partition if there is any extra, "
22435 "unused space after all resizing has happened. Use this option to prevent "
22436 "the extra partition from being created. If you do this then the extra space "
22437 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22438 "tool in the guest."
22442 #: ../resize/virt-resize.pod:376
22444 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22449 #: ../resize/virt-resize.pod:379
22451 #| msgid "B<--no-dest-paths>"
22452 msgid "B<--no-expand-content>"
22453 msgstr "B<--no-dest-paths>"
22456 #: ../resize/virt-resize.pod:381
22458 "By default, virt-resize will try to expand the direct contents of "
22459 "partitions, if it knows how (see I<--expand> option above)."
22463 #: ../resize/virt-resize.pod:384
22465 "If you give the I<--no-expand-content> option then virt-resize will not "
22470 #: ../resize/virt-resize.pod:387
22472 #| msgid "ntfsresize-size"
22473 msgid "B<--ntfsresize-force>"
22474 msgstr "ntfsresize-size"
22477 #: ../resize/virt-resize.pod:389
22479 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22480 "the NTFS disk is marked as needing a consistency check. You have to use "
22481 "this option if you want to resize a Windows guest multiple times without "
22482 "booting into Windows between each resize."
22486 #: ../resize/virt-resize.pod:395
22488 #| msgid "B<--format>"
22489 msgid "B<--output-format> raw"
22490 msgstr "B<--format>"
22493 #: ../resize/virt-resize.pod:397
22495 "Specify the format of the output disk image. If this flag is not given then "
22496 "it is auto-detected from the image itself."
22500 #: ../resize/virt-resize.pod:403
22502 "Note that this option I<does not create> the output format. This option "
22503 "just tells libguestfs what it is so it doesn't try to guess it. You still "
22504 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
22505 "SPARSE RAW FORMATS>."
22509 #: ../resize/virt-resize.pod:408
22514 #: ../resize/virt-resize.pod:410
22516 #| msgid "B<--live>"
22521 #: ../resize/virt-resize.pod:412
22522 msgid "Don't print the summary."
22526 #: ../resize/virt-resize.pod:414
22528 #| msgid "B<part_size>"
22529 msgid "B<--resize part=size>"
22530 msgstr "B<part_size>"
22533 #: ../resize/virt-resize.pod:416
22535 "Resize the named partition (expanding or shrinking it) so that it has the "
22540 #: ../resize/virt-resize.pod:419
22542 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22543 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22544 "size; or as a relative number or percentage. For example:"
22548 #: ../resize/virt-resize.pod:425
22551 #| " hexedit /dev/sda 1M\n"
22554 " --resize /dev/sda2=10G\n"
22557 " hexedit /dev/sda 1M\n"
22561 #: ../resize/virt-resize.pod:427
22564 #| " pvresize device\n"
22567 " --resize /dev/sda4=90%\n"
22570 " pvresize пристрій\n"
22574 #: ../resize/virt-resize.pod:429
22577 #| " hexedit /dev/sda 1M\n"
22580 " --resize /dev/sda2=+1G\n"
22583 " hexedit /dev/sda 1M\n"
22587 #: ../resize/virt-resize.pod:431
22590 #| " hexedit /dev/sda 1M\n"
22593 " --resize /dev/sda2=-200M\n"
22596 " hexedit /dev/sda 1M\n"
22600 #: ../resize/virt-resize.pod:433
22603 #| " hexedit /dev/sda 1M\n"
22606 " --resize /dev/sda1=+128K\n"
22609 " hexedit /dev/sda 1M\n"
22613 #: ../resize/virt-resize.pod:435
22616 #| " hexedit /dev/sda 1M\n"
22619 " --resize /dev/sda1=+10%\n"
22622 " hexedit /dev/sda 1M\n"
22626 #: ../resize/virt-resize.pod:437
22629 #| " hexedit /dev/sda 1M\n"
22632 " --resize /dev/sda1=-10%\n"
22635 " hexedit /dev/sda 1M\n"
22639 #: ../resize/virt-resize.pod:439
22641 "You can increase the size of any partition. Virt-resize will expand the "
22642 "direct content of the partition if it knows how (see I<--expand> below)."
22646 #: ../resize/virt-resize.pod:443
22648 "You can only I<decrease> the size of partitions that contain filesystems or "
22649 "PVs which have already been shrunk. Virt-resize will check this has been "
22650 "done before proceeding, or else will print an error (see also I<--resize-"
22655 #: ../resize/virt-resize.pod:450
22656 msgid "B<--resize-force part=size>"
22660 #: ../resize/virt-resize.pod:452
22662 "This is the same as I<--resize> except that it will let you decrease the "
22663 "size of any partition. Generally this means you will lose any data which "
22664 "was at the end of the partition you shrink, but you may not care about that "
22665 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22666 "as a swap partition)."
22670 #: ../resize/virt-resize.pod:458
22671 msgid "See also the I<--ignore> option."
22675 #: ../resize/virt-resize.pod:460
22677 #| msgid "B<--partition>"
22678 msgid "B<--shrink part>"
22679 msgstr "B<--partition>"
22682 #: ../resize/virt-resize.pod:462
22684 "Shrink the named partition until the overall disk image fits in the "
22685 "destination. The named partition B<must> contain a filesystem or PV which "
22686 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22687 "online tools). Virt-resize will check this and give an error if it has not "
22692 #: ../resize/virt-resize.pod:468
22694 "The amount by which the overall disk must be shrunk (after carrying out all "
22695 "other operations requested by the user) is called the \"deficit\". For "
22696 "example, a straight copy (assume no other operations) from a 5GB disk image "
22697 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
22698 "would give an error unless the user specified a partition to shrink and that "
22699 "partition had more than a gigabyte of free space."
22703 #: ../resize/virt-resize.pod:488
22704 msgid "\"Partition 1 does not end on cylinder boundary.\""
22708 #: ../resize/virt-resize.pod:490
22710 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
22711 "means the partitions will not be aligned to the ancient CHS geometry. "
22712 "However CHS geometry is meaningless for disks manufactured since the early "
22713 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
22714 "cylinders is not required by any modern operating system."
22718 #: ../resize/virt-resize.pod:497
22719 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22723 #: ../resize/virt-resize.pod:499
22725 "In Windows Vista and later versions, Microsoft switched to using a separate "
22726 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
22727 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
22728 "the boot partition. Doing so seems to break the guest completely. However "
22729 "expanding the second partition (ie. C: drive) should work."
22733 #: ../resize/virt-resize.pod:506
22735 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22736 "NTFS partitions have been expanded. This is just a safety check and (unless "
22737 "it find errors) is nothing to worry about."
22741 #: ../resize/virt-resize.pod:510
22742 msgid "GUEST BOOT STUCK AT \"GRUB\""
22746 #: ../resize/virt-resize.pod:512
22748 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22749 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
22750 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22751 "although we think is to do with partition alignment."
22755 #: ../resize/virt-resize.pod:517
22758 " guestfish -i -a newdisk\n"
22759 " ><fs> cat /boot/grub/device.map\n"
22760 " # check the contents of this file are sensible or\n"
22761 " # edit the file if necessary\n"
22762 " ><fs> grub-install / /dev/vda\n"
22768 #: ../resize/virt-resize.pod:524
22770 "For more flexible guest reconfiguration, including if you need to specify "
22771 "other parameters to grub-install, use L<virt-rescue(1)>."
22775 #: ../resize/virt-resize.pod:527
22776 msgid "ALTERNATIVE TOOLS"
22780 #: ../resize/virt-resize.pod:529
22782 "There are several proprietary tools for resizing partitions. We won't "
22783 "mention any here."
22787 #: ../resize/virt-resize.pod:532
22789 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22790 "operations on disk images. They can resize and move partitions, but I don't "
22791 "think they can do anything with the contents, and they certainly don't "
22796 #: ../resize/virt-resize.pod:537
22798 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22799 "but at a much lower level. You will probably end up hand-calculating sector "
22800 "offsets, which is something that virt-resize was designed to avoid. If you "
22801 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22806 #: ../resize/virt-resize.pod:552
22808 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22809 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22810 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22811 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22815 #: ../ruby/examples/guestfs-ruby.pod:5
22816 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22820 #: ../ruby/examples/guestfs-ruby.pod:9
22823 " require 'guestfs'\n"
22824 " g = Guestfs::Guestfs.new()\n"
22825 " g.add_drive_opts(\"disk.img\",\n"
22826 " :readonly => 1, :format => \"raw\")\n"
22832 #: ../ruby/examples/guestfs-ruby.pod:17
22834 "This manual page documents how to call libguestfs from the Ruby programming "
22835 "language. This page just documents the differences from the C API and gives "
22836 "some examples. If you are not familiar with using libguestfs, you also need "
22837 "to read L<guestfs(3)>."
22841 #: ../ruby/examples/guestfs-ruby.pod:24
22843 "Errors from libguestfs functions are mapped into the C<Error> exception. "
22844 "This has a single parameter which is the error message (a string)."
22848 #: ../ruby/examples/guestfs-ruby.pod:38
22851 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22852 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22853 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22855 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
22856 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
22857 "libguestfs.org/>."
22859 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22860 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22861 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22864 #: ../src/guestfs-actions.pod:1
22865 msgid "guestfs_add_cdrom"
22869 #: ../src/guestfs-actions.pod:3
22873 " guestfs_add_cdrom (guestfs_h *g,\n"
22874 " const char *filename);\n"
22879 #: ../src/guestfs-actions.pod:17
22881 "This call checks for the existence of C<filename>. This stops you from "
22882 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22883 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
22888 #: ../src/guestfs-actions.pod:24
22890 "If you just want to add an ISO file (often you use this as an efficient way "
22891 "to transfer large files into the guest), then you should probably use "
22892 "C<guestfs_add_drive_ro> instead."
22896 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
22897 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22898 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
22899 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22900 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
22901 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
22902 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
22903 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
22904 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
22905 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
22906 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
22907 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041
22908 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079
22909 #: ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181
22910 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214
22911 #: ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304
22912 #: ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360
22913 #: ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1508
22914 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757
22915 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866
22916 #: ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2485
22917 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2581
22918 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3636
22919 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3850
22920 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877
22921 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906
22922 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4014
22923 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4051
22924 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4097
22925 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151
22926 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4205
22927 #: ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4253
22928 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4282
22929 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4314
22930 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4427
22931 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4491
22932 #: ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4527
22933 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4557
22934 #: ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4588
22935 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4623
22936 #: ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:4766
22937 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816
22938 #: ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847
22939 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877
22940 #: ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:4907
22941 #: ../src/guestfs-actions.pod:4942 ../src/guestfs-actions.pod:4975
22942 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5034
22943 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5065
22944 #: ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5160
22945 #: ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5250
22946 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5302
22947 #: ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5460
22948 #: ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5539
22949 #: ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5589
22950 #: ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:5672
22951 #: ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5699
22952 #: ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6007
22953 #: ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6040
22954 #: ../src/guestfs-actions.pod:6052 ../src/guestfs-actions.pod:6066
22955 #: ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6092
22956 #: ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6129
22957 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6167
22958 #: ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6215
22959 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6256
22960 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6296
22961 #: ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6332
22962 #: ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6379
22963 #: ../src/guestfs-actions.pod:6403 ../src/guestfs-actions.pod:6422
22964 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6465
22965 #: ../src/guestfs-actions.pod:6480 ../src/guestfs-actions.pod:6499
22966 #: ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6566
22967 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6721
22968 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:6854
22969 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6880
22970 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-actions.pod:6915
22971 #: ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6941
22972 #: ../src/guestfs-actions.pod:6956 ../src/guestfs-actions.pod:7015
22973 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7048
22974 #: ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7081
22975 #: ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7114
22976 #: ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7164
22977 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218
22978 #: ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7270
22979 #: ../src/guestfs-actions.pod:7306 ../src/guestfs-actions.pod:7422
22980 #: ../src/guestfs-actions.pod:7437 ../src/guestfs-actions.pod:7451
22981 #: ../src/guestfs-actions.pod:7506 ../src/guestfs-actions.pod:7519
22982 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7597
22983 #: ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:7680
22984 #: ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7773
22985 #: ../src/guestfs-actions.pod:7792 ../src/guestfs-actions.pod:7821
22986 msgid "This function returns 0 on success or -1 on error."
22990 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
22991 #: ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980
22992 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2192
22993 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3643
22994 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:6217
22995 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6467
22996 #: ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:7083
22997 #: ../src/guestfs-actions.pod:7606
22998 msgid "(Added in 0.3)"
23002 #: ../src/guestfs-actions.pod:41
23003 msgid "guestfs_add_domain"
23007 #: ../src/guestfs-actions.pod:43
23011 " guestfs_add_domain (guestfs_h *g,\n"
23012 " const char *dom,\n"
23018 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23019 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2826
23020 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4961
23021 #: ../src/guestfs-actions.pod:5178
23023 "You may supply a list of optional arguments to this call. Use zero or more "
23024 "of the following pairs of parameters, and terminate the list with C<-1> on "
23025 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23029 #: ../src/guestfs-actions.pod:53
23032 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23033 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23034 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23035 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23036 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23041 #: ../src/guestfs-actions.pod:59
23043 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23044 "It works by connecting to libvirt, requesting the domain and domain XML from "
23045 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23050 #: ../src/guestfs-actions.pod:94
23052 "The other optional parameters are passed directly through to "
23053 "C<guestfs_add_drive_opts>."
23057 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23058 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
23059 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
23060 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380
23061 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939
23062 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2101
23063 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2179
23064 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2944
23065 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:5137
23066 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5769
23067 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7191
23068 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7630
23069 #: ../src/guestfs-actions.pod:7643
23070 msgid "On error this function returns -1."
23074 #: ../src/guestfs-actions.pod:99
23075 msgid "(Added in 1.7.4)"
23079 #: ../src/guestfs-actions.pod:101
23080 msgid "guestfs_add_domain_va"
23084 #: ../src/guestfs-actions.pod:103
23088 " guestfs_add_domain_va (guestfs_h *g,\n"
23089 " const char *dom,\n"
23090 " va_list args);\n"
23095 #: ../src/guestfs-actions.pod:108
23096 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23100 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23101 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23102 #: ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882
23103 #: ../src/guestfs-actions.pod:2910 ../src/guestfs-actions.pod:2922
23104 #: ../src/guestfs-actions.pod:4707 ../src/guestfs-actions.pod:4719
23105 #: ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5001
23106 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5238
23107 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23108 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23111 #: ../src/guestfs-actions.pod:112
23112 msgid "guestfs_add_domain_argv"
23113 msgstr "guestfs_add_domain_argv"
23116 #: ../src/guestfs-actions.pod:114
23120 " guestfs_add_domain_argv (guestfs_h *g,\n"
23121 " const char *dom,\n"
23122 " const struct guestfs_add_domain_argv *optargs);\n"
23127 #: ../src/guestfs-actions.pod:119
23128 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23132 #: ../src/guestfs-actions.pod:123
23133 msgid "guestfs_add_drive"
23137 #: ../src/guestfs-actions.pod:125
23141 " guestfs_add_drive (guestfs_h *g,\n"
23142 " const char *filename);\n"
23147 #: ../src/guestfs-actions.pod:129
23149 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23150 "optional parameters, so the disk is added writable, with the format being "
23151 "detected automatically."
23155 #: ../src/guestfs-actions.pod:133
23157 "Automatic detection of the format opens you up to a potential security hole "
23158 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23159 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23160 "you should think about replacing calls to this function with calls to "
23161 "C<guestfs_add_drive_opts>, and specifying the format."
23165 #: ../src/guestfs-actions.pod:144
23166 msgid "guestfs_add_drive_opts"
23170 #: ../src/guestfs-actions.pod:146
23174 " guestfs_add_drive_opts (guestfs_h *g,\n"
23175 " const char *filename,\n"
23181 #: ../src/guestfs-actions.pod:156
23184 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23185 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23186 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23191 #: ../src/guestfs-actions.pod:185
23193 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23194 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23195 "Possible formats include C<raw> and C<qcow2>."
23199 #: ../src/guestfs-actions.pod:196
23201 "This rarely-used option lets you emulate the behaviour of the deprecated "
23202 "C<guestfs_add_drive_with_if> call (q.v.)"
23206 #: ../src/guestfs-actions.pod:203
23207 msgid "(Added in 1.5.23)"
23211 #: ../src/guestfs-actions.pod:205
23212 msgid "guestfs_add_drive_opts_va"
23216 #: ../src/guestfs-actions.pod:207
23220 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23221 " const char *filename,\n"
23222 " va_list args);\n"
23227 #: ../src/guestfs-actions.pod:212
23228 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23232 #: ../src/guestfs-actions.pod:216
23233 msgid "guestfs_add_drive_opts_argv"
23237 #: ../src/guestfs-actions.pod:218
23241 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23242 " const char *filename,\n"
23243 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23248 #: ../src/guestfs-actions.pod:223
23249 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23253 #: ../src/guestfs-actions.pod:227
23254 msgid "guestfs_add_drive_ro"
23258 #: ../src/guestfs-actions.pod:229
23262 " guestfs_add_drive_ro (guestfs_h *g,\n"
23263 " const char *filename);\n"
23268 #: ../src/guestfs-actions.pod:233
23270 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23271 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23272 "disk is added read-only, with the format being detected automatically."
23276 #: ../src/guestfs-actions.pod:240
23277 msgid "(Added in 1.0.38)"
23281 #: ../src/guestfs-actions.pod:242
23282 msgid "guestfs_add_drive_ro_with_if"
23286 #: ../src/guestfs-actions.pod:244
23290 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23291 " const char *filename,\n"
23292 " const char *iface);\n"
23297 #: ../src/guestfs-actions.pod:249
23299 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23300 "QEMU interface emulation to use at run time."
23304 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23305 #: ../src/guestfs-actions.pod:2431
23306 msgid "(Added in 1.0.84)"
23310 #: ../src/guestfs-actions.pod:263
23311 msgid "guestfs_add_drive_with_if"
23315 #: ../src/guestfs-actions.pod:265
23319 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23320 " const char *filename,\n"
23321 " const char *iface);\n"
23326 #: ../src/guestfs-actions.pod:270
23328 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23329 "QEMU interface emulation to use at run time."
23333 #: ../src/guestfs-actions.pod:284
23334 msgid "guestfs_aug_clear"
23338 #: ../src/guestfs-actions.pod:286
23342 " guestfs_aug_clear (guestfs_h *g,\n"
23343 " const char *augpath);\n"
23348 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2181
23349 msgid "(Added in 1.3.4)"
23353 #: ../src/guestfs-actions.pod:297
23354 msgid "guestfs_aug_close"
23358 #: ../src/guestfs-actions.pod:299
23362 " guestfs_aug_close (guestfs_h *g);\n"
23367 #: ../src/guestfs-actions.pod:302
23369 "Close the current Augeas handle and free up any resources used by it. After "
23370 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23371 "any other Augeas functions."
23375 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23376 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23377 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
23378 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
23379 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
23380 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
23381 #: ../src/guestfs-actions.pod:5846
23382 msgid "(Added in 0.7)"
23386 #: ../src/guestfs-actions.pod:311
23387 msgid "guestfs_aug_defnode"
23391 #: ../src/guestfs-actions.pod:313
23394 " struct guestfs_int_bool *\n"
23395 " guestfs_aug_defnode (guestfs_h *g,\n"
23396 " const char *name,\n"
23397 " const char *expr,\n"
23398 " const char *val);\n"
23403 #: ../src/guestfs-actions.pod:322
23405 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23406 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
23407 "containing that single node."
23411 #: ../src/guestfs-actions.pod:330
23413 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23414 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
23418 #: ../src/guestfs-actions.pod:336
23419 msgid "guestfs_aug_defvar"
23423 #: ../src/guestfs-actions.pod:338
23427 " guestfs_aug_defvar (guestfs_h *g,\n"
23428 " const char *name,\n"
23429 " const char *expr);\n"
23434 #: ../src/guestfs-actions.pod:354
23435 msgid "guestfs_aug_get"
23439 #: ../src/guestfs-actions.pod:356
23443 " guestfs_aug_get (guestfs_h *g,\n"
23444 " const char *augpath);\n"
23449 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922
23450 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000
23451 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119
23452 #: ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266
23453 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419
23454 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719
23455 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899
23456 #: ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2002
23457 #: ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:2204
23458 #: ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2600
23459 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794
23460 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3027
23461 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3076
23462 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3169
23463 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3209
23464 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:4189
23465 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4469
23466 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5574
23467 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5922
23468 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6627
23469 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6660
23470 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:7365
23471 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7402
23472 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7878
23474 "This function returns a string, or NULL on error. I<The caller must free "
23475 "the returned string after use>."
23479 #: ../src/guestfs-actions.pod:368
23480 msgid "guestfs_aug_init"
23484 #: ../src/guestfs-actions.pod:370
23488 " guestfs_aug_init (guestfs_h *g,\n"
23489 " const char *root,\n"
23495 #: ../src/guestfs-actions.pod:379
23496 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23500 #: ../src/guestfs-actions.pod:414
23501 msgid "Do not load the tree in C<guestfs_aug_init>."
23505 #: ../src/guestfs-actions.pod:418
23506 msgid "To close the handle, you can call C<guestfs_aug_close>."
23510 #: ../src/guestfs-actions.pod:426
23511 msgid "guestfs_aug_insert"
23515 #: ../src/guestfs-actions.pod:428
23519 " guestfs_aug_insert (guestfs_h *g,\n"
23520 " const char *augpath,\n"
23521 " const char *label,\n"
23527 #: ../src/guestfs-actions.pod:446
23528 msgid "guestfs_aug_load"
23532 #: ../src/guestfs-actions.pod:448
23536 " guestfs_aug_load (guestfs_h *g);\n"
23541 #: ../src/guestfs-actions.pod:460
23542 msgid "guestfs_aug_ls"
23546 #: ../src/guestfs-actions.pod:462
23550 " guestfs_aug_ls (guestfs_h *g,\n"
23551 " const char *augpath);\n"
23556 #: ../src/guestfs-actions.pod:466
23558 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23559 "sorting the resulting nodes into alphabetical order."
23563 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
23564 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138
23565 #: ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453
23566 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
23567 #: ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2276
23568 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2311
23569 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2378
23570 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2498
23571 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3129
23572 #: ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3719
23573 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3756
23574 #: ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3923
23575 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:5098
23576 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5842
23577 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6707
23578 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6823
23579 #: ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6993
23580 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7489
23581 #: ../src/guestfs-actions.pod:7536 ../src/guestfs-actions.pod:7730
23582 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7835
23583 #: ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7900
23584 #: ../src/guestfs-actions.pod:7919
23586 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23587 ">), or NULL if there was an error. I<The caller must free the strings and "
23588 "the array after use>."
23592 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063
23593 #: ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491
23594 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514
23595 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4222
23596 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4442
23597 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5102
23598 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6054
23599 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6080
23600 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7207
23601 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7453
23602 #: ../src/guestfs-actions.pod:7718
23603 msgid "(Added in 0.8)"
23607 #: ../src/guestfs-actions.pod:475
23608 msgid "guestfs_aug_match"
23612 #: ../src/guestfs-actions.pod:477
23616 " guestfs_aug_match (guestfs_h *g,\n"
23617 " const char *augpath);\n"
23622 #: ../src/guestfs-actions.pod:491
23623 msgid "guestfs_aug_mv"
23627 #: ../src/guestfs-actions.pod:493
23631 " guestfs_aug_mv (guestfs_h *g,\n"
23632 " const char *src,\n"
23633 " const char *dest);\n"
23638 #: ../src/guestfs-actions.pod:505
23639 msgid "guestfs_aug_rm"
23643 #: ../src/guestfs-actions.pod:507
23647 " guestfs_aug_rm (guestfs_h *g,\n"
23648 " const char *augpath);\n"
23653 #: ../src/guestfs-actions.pod:519
23654 msgid "guestfs_aug_save"
23658 #: ../src/guestfs-actions.pod:521
23662 " guestfs_aug_save (guestfs_h *g);\n"
23667 #: ../src/guestfs-actions.pod:526
23669 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23674 #: ../src/guestfs-actions.pod:533
23675 msgid "guestfs_aug_set"
23679 #: ../src/guestfs-actions.pod:535
23683 " guestfs_aug_set (guestfs_h *g,\n"
23684 " const char *augpath,\n"
23685 " const char *val);\n"
23690 #: ../src/guestfs-actions.pod:542
23692 "In the Augeas API, it is possible to clear a node by setting the value to "
23693 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
23694 "this call. Instead you must use the C<guestfs_aug_clear> call."
23698 #: ../src/guestfs-actions.pod:551
23699 msgid "guestfs_available"
23703 #: ../src/guestfs-actions.pod:553
23707 " guestfs_available (guestfs_h *g,\n"
23708 " char *const *groups);\n"
23713 #: ../src/guestfs-actions.pod:561
23715 "The libguestfs groups, and the functions that those groups correspond to, "
23716 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
23717 "runtime by calling C<guestfs_available_all_groups>."
23721 #: ../src/guestfs-actions.pod:585
23722 msgid "You must call C<guestfs_launch> before calling this function."
23726 #: ../src/guestfs-actions.pod:607
23728 "This call was added in version C<1.0.80>. In previous versions of "
23729 "libguestfs all you could do would be to speculatively execute a command to "
23730 "find out if the daemon implemented it. See also C<guestfs_version>."
23734 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
23735 msgid "(Added in 1.0.80)"
23739 #: ../src/guestfs-actions.pod:618
23740 msgid "guestfs_available_all_groups"
23744 #: ../src/guestfs-actions.pod:620
23748 " guestfs_available_all_groups (guestfs_h *g);\n"
23753 #: ../src/guestfs-actions.pod:623
23755 "This command returns a list of all optional groups that this daemon knows "
23756 "about. Note this returns both supported and unsupported groups. To find "
23757 "out which ones the daemon can actually support you have to call "
23758 "C<guestfs_available> on each member of the returned list."
23762 #: ../src/guestfs-actions.pod:629
23763 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23767 #: ../src/guestfs-actions.pod:635
23768 msgid "(Added in 1.3.15)"
23772 #: ../src/guestfs-actions.pod:637
23773 msgid "guestfs_base64_in"
23777 #: ../src/guestfs-actions.pod:639
23781 " guestfs_base64_in (guestfs_h *g,\n"
23782 " const char *base64file,\n"
23783 " const char *filename);\n"
23788 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
23789 msgid "(Added in 1.3.5)"
23793 #: ../src/guestfs-actions.pod:651
23794 msgid "guestfs_base64_out"
23798 #: ../src/guestfs-actions.pod:653
23802 " guestfs_base64_out (guestfs_h *g,\n"
23803 " const char *filename,\n"
23804 " const char *base64file);\n"
23809 #: ../src/guestfs-actions.pod:665
23810 msgid "guestfs_blockdev_flushbufs"
23814 #: ../src/guestfs-actions.pod:667
23818 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23819 " const char *device);\n"
23824 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
23825 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
23826 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
23827 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
23828 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
23829 msgid "(Added in 0.9.3)"
23833 #: ../src/guestfs-actions.pod:680
23834 msgid "guestfs_blockdev_getbsz"
23838 #: ../src/guestfs-actions.pod:682
23842 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23843 " const char *device);\n"
23848 #: ../src/guestfs-actions.pod:697
23849 msgid "guestfs_blockdev_getro"
23853 #: ../src/guestfs-actions.pod:699
23857 " guestfs_blockdev_getro (guestfs_h *g,\n"
23858 " const char *device);\n"
23863 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474
23864 #: ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978
23865 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061
23866 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2127
23867 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2167
23868 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3226
23869 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260
23870 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3436
23871 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3465
23872 #: ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3496
23873 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3526
23874 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
23875 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583
23876 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
23877 #: ../src/guestfs-actions.pod:5339
23878 msgid "This function returns a C truth value on success or -1 on error."
23882 #: ../src/guestfs-actions.pod:712
23883 msgid "guestfs_blockdev_getsize64"
23887 #: ../src/guestfs-actions.pod:714
23891 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23892 " const char *device);\n"
23897 #: ../src/guestfs-actions.pod:720
23898 msgid "See also C<guestfs_blockdev_getsz>."
23902 #: ../src/guestfs-actions.pod:728
23903 msgid "guestfs_blockdev_getss"
23907 #: ../src/guestfs-actions.pod:730
23911 " guestfs_blockdev_getss (guestfs_h *g,\n"
23912 " const char *device);\n"
23917 #: ../src/guestfs-actions.pod:737
23919 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23924 #: ../src/guestfs-actions.pod:746
23925 msgid "guestfs_blockdev_getsz"
23929 #: ../src/guestfs-actions.pod:748
23933 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23934 " const char *device);\n"
23939 #: ../src/guestfs-actions.pod:755
23941 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23942 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23946 #: ../src/guestfs-actions.pod:765
23947 msgid "guestfs_blockdev_rereadpt"
23951 #: ../src/guestfs-actions.pod:767
23955 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23956 " const char *device);\n"
23961 #: ../src/guestfs-actions.pod:779
23962 msgid "guestfs_blockdev_setbsz"
23966 #: ../src/guestfs-actions.pod:781
23970 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23971 " const char *device,\n"
23972 " int blocksize);\n"
23977 #: ../src/guestfs-actions.pod:797
23978 msgid "guestfs_blockdev_setro"
23982 #: ../src/guestfs-actions.pod:799
23986 " guestfs_blockdev_setro (guestfs_h *g,\n"
23987 " const char *device);\n"
23992 #: ../src/guestfs-actions.pod:811
23993 msgid "guestfs_blockdev_setrw"
23997 #: ../src/guestfs-actions.pod:813
24001 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24002 " const char *device);\n"
24007 #: ../src/guestfs-actions.pod:825
24008 msgid "guestfs_btrfs_filesystem_resize"
24012 #: ../src/guestfs-actions.pod:827
24016 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24017 " const char *mountpoint,\n"
24023 #: ../src/guestfs-actions.pod:837
24026 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24031 #: ../src/guestfs-actions.pod:860
24032 msgid "(Added in 1.11.17)"
24036 #: ../src/guestfs-actions.pod:862
24037 msgid "guestfs_btrfs_filesystem_resize_va"
24041 #: ../src/guestfs-actions.pod:864
24045 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24046 " const char *mountpoint,\n"
24047 " va_list args);\n"
24052 #: ../src/guestfs-actions.pod:869
24053 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24057 #: ../src/guestfs-actions.pod:873
24058 msgid "guestfs_btrfs_filesystem_resize_argv"
24062 #: ../src/guestfs-actions.pod:875
24066 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24067 " const char *mountpoint,\n"
24068 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24073 #: ../src/guestfs-actions.pod:880
24074 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24078 #: ../src/guestfs-actions.pod:884
24079 msgid "guestfs_case_sensitive_path"
24083 #: ../src/guestfs-actions.pod:886
24087 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24088 " const char *path);\n"
24093 #: ../src/guestfs-actions.pod:912
24095 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24096 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24097 "how the directories were originally created under Windows)."
24101 #: ../src/guestfs-actions.pod:920
24102 msgid "See also C<guestfs_realpath>."
24106 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7387
24107 msgid "(Added in 1.0.75)"
24111 #: ../src/guestfs-actions.pod:927
24112 msgid "guestfs_cat"
24116 #: ../src/guestfs-actions.pod:929
24120 " guestfs_cat (guestfs_h *g,\n"
24121 " const char *path);\n"
24126 #: ../src/guestfs-actions.pod:935
24128 "Note that this function cannot correctly handle binary files (specifically, "
24129 "files containing C<\\0> character which is treated as end of string). For "
24130 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24131 "functions which have a more complex interface."
24135 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3740
24136 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3839
24137 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4335
24138 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:5720
24139 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:7540
24140 #: ../src/guestfs-actions.pod:7554
24141 msgid "(Added in 0.4)"
24145 #: ../src/guestfs-actions.pod:948
24146 msgid "guestfs_checksum"
24150 #: ../src/guestfs-actions.pod:950
24154 " guestfs_checksum (guestfs_h *g,\n"
24155 " const char *csumtype,\n"
24156 " const char *path);\n"
24161 #: ../src/guestfs-actions.pod:996
24162 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24166 #: ../src/guestfs-actions.pod:998
24167 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24171 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311
24172 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3438
24173 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3528
24174 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:7243
24175 msgid "(Added in 1.0.2)"
24179 #: ../src/guestfs-actions.pod:1005
24180 msgid "guestfs_checksum_device"
24184 #: ../src/guestfs-actions.pod:1007
24188 " guestfs_checksum_device (guestfs_h *g,\n"
24189 " const char *csumtype,\n"
24190 " const char *device);\n"
24195 #: ../src/guestfs-actions.pod:1012
24197 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24198 "device named C<device>. For the types of checksums supported see the "
24199 "C<guestfs_checksum> command."
24203 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5169
24204 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5341
24205 #: ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5541
24206 #: ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7166
24207 #: ../src/guestfs-actions.pod:7566
24208 msgid "(Added in 1.3.2)"
24212 #: ../src/guestfs-actions.pod:1021
24213 msgid "guestfs_checksums_out"
24217 #: ../src/guestfs-actions.pod:1023
24221 " guestfs_checksums_out (guestfs_h *g,\n"
24222 " const char *csumtype,\n"
24223 " const char *directory,\n"
24224 " const char *sumsfile);\n"
24229 #: ../src/guestfs-actions.pod:1043
24230 msgid "(Added in 1.3.7)"
24234 #: ../src/guestfs-actions.pod:1045
24235 msgid "guestfs_chmod"
24239 #: ../src/guestfs-actions.pod:1047
24243 " guestfs_chmod (guestfs_h *g,\n"
24245 " const char *path);\n"
24250 #: ../src/guestfs-actions.pod:1065
24251 msgid "guestfs_chown"
24255 #: ../src/guestfs-actions.pod:1067
24259 " guestfs_chown (guestfs_h *g,\n"
24262 " const char *path);\n"
24267 #: ../src/guestfs-actions.pod:1083
24268 msgid "guestfs_command"
24272 #: ../src/guestfs-actions.pod:1085
24276 " guestfs_command (guestfs_h *g,\n"
24277 " char *const *arguments);\n"
24282 #: ../src/guestfs-actions.pod:1094
24284 "The single parameter is an argv-style list of arguments. The first element "
24285 "is the name of the program to run. Subsequent elements are parameters. The "
24286 "list must be non-empty (ie. must contain a program name). Note that the "
24287 "command runs directly, and is I<not> invoked via the shell (see "
24292 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
24293 #: ../src/guestfs-actions.pod:1610
24294 msgid "(Added in 0.9.1)"
24298 #: ../src/guestfs-actions.pod:1127
24299 msgid "guestfs_command_lines"
24303 #: ../src/guestfs-actions.pod:1129
24307 " guestfs_command_lines (guestfs_h *g,\n"
24308 " char *const *arguments);\n"
24313 #: ../src/guestfs-actions.pod:1133
24315 "This is the same as C<guestfs_command>, but splits the result into a list of "
24320 #: ../src/guestfs-actions.pod:1136
24321 msgid "See also: C<guestfs_sh_lines>"
24325 #: ../src/guestfs-actions.pod:1147
24326 msgid "guestfs_config"
24330 #: ../src/guestfs-actions.pod:1149
24334 " guestfs_config (guestfs_h *g,\n"
24335 " const char *qemuparam,\n"
24336 " const char *qemuvalue);\n"
24341 #: ../src/guestfs-actions.pod:1167
24342 msgid "guestfs_copy_size"
24346 #: ../src/guestfs-actions.pod:1169
24350 " guestfs_copy_size (guestfs_h *g,\n"
24351 " const char *src,\n"
24352 " const char *dest,\n"
24353 " int64_t size);\n"
24358 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306
24359 #: ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382
24360 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781
24361 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:7238
24362 #: ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7775
24363 #: ../src/guestfs-actions.pod:7794
24365 "This long-running command can generate progress notification messages so "
24366 "that the caller can display a progress bar or indicator. To receive these "
24367 "messages, the caller must register a progress event callback. See L<guestfs"
24368 "(3)/GUESTFS_EVENT_PROGRESS>."
24372 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4362
24373 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7473
24374 #: ../src/guestfs-actions.pod:7493 ../src/guestfs-actions.pod:7579
24375 msgid "(Added in 1.0.87)"
24379 #: ../src/guestfs-actions.pod:1190
24384 #: ../src/guestfs-actions.pod:1192
24388 " guestfs_cp (guestfs_h *g,\n"
24389 " const char *src,\n"
24390 " const char *dest);\n"
24395 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216
24396 #: ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362
24397 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5116
24398 #: ../src/guestfs-actions.pod:5591
24399 msgid "(Added in 1.0.18)"
24403 #: ../src/guestfs-actions.pod:1204
24404 msgid "guestfs_cp_a"
24408 #: ../src/guestfs-actions.pod:1206
24412 " guestfs_cp_a (guestfs_h *g,\n"
24413 " const char *src,\n"
24414 " const char *dest);\n"
24419 #: ../src/guestfs-actions.pod:1218
24424 #: ../src/guestfs-actions.pod:1220
24428 " guestfs_dd (guestfs_h *g,\n"
24429 " const char *src,\n"
24430 " const char *dest);\n"
24435 #: ../src/guestfs-actions.pod:1230
24437 "If the destination is a device, it must be as large or larger than the "
24438 "source file or device, otherwise the copy will fail. This command cannot do "
24439 "partial copies (see C<guestfs_copy_size>)."
24443 #: ../src/guestfs-actions.pod:1238
24448 #: ../src/guestfs-actions.pod:1240
24452 " guestfs_df (guestfs_h *g);\n"
24457 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
24459 "This command is mostly useful for interactive sessions. It is I<not> "
24460 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
24465 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269
24466 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2361
24467 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2453
24468 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:5016
24469 #: ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7000
24470 #: ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7632
24471 #: ../src/guestfs-actions.pod:7645
24472 msgid "(Added in 1.0.54)"
24476 #: ../src/guestfs-actions.pod:1254
24477 msgid "guestfs_df_h"
24481 #: ../src/guestfs-actions.pod:1256
24485 " guestfs_df_h (guestfs_h *g);\n"
24490 #: ../src/guestfs-actions.pod:1271
24491 msgid "guestfs_dmesg"
24495 #: ../src/guestfs-actions.pod:1273
24499 " guestfs_dmesg (guestfs_h *g);\n"
24504 #: ../src/guestfs-actions.pod:1280
24506 "Another way to get the same information is to enable verbose messages with "
24507 "C<guestfs_set_verbose> or by setting the environment variable "
24508 "C<LIBGUESTFS_DEBUG=1> before running the program."
24512 #: ../src/guestfs-actions.pod:1290
24513 msgid "guestfs_download"
24517 #: ../src/guestfs-actions.pod:1292
24521 " guestfs_download (guestfs_h *g,\n"
24522 " const char *remotefilename,\n"
24523 " const char *filename);\n"
24528 #: ../src/guestfs-actions.pod:1302
24529 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24533 #: ../src/guestfs-actions.pod:1313
24534 msgid "guestfs_download_offset"
24538 #: ../src/guestfs-actions.pod:1315
24542 " guestfs_download_offset (guestfs_h *g,\n"
24543 " const char *remotefilename,\n"
24544 " const char *filename,\n"
24545 " int64_t offset,\n"
24546 " int64_t size);\n"
24551 #: ../src/guestfs-actions.pod:1328
24553 "Note that there is no limit on the amount of data that can be downloaded "
24554 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24555 "full amount unless an error occurs."
24559 #: ../src/guestfs-actions.pod:1333
24560 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24564 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7277
24565 msgid "(Added in 1.5.17)"
24569 #: ../src/guestfs-actions.pod:1344
24570 msgid "guestfs_drop_caches"
24574 #: ../src/guestfs-actions.pod:1346
24578 " guestfs_drop_caches (guestfs_h *g,\n"
24579 " int whattodrop);\n"
24584 #: ../src/guestfs-actions.pod:1364
24589 #: ../src/guestfs-actions.pod:1366
24593 " guestfs_du (guestfs_h *g,\n"
24594 " const char *path);\n"
24599 #: ../src/guestfs-actions.pod:1389
24600 msgid "guestfs_e2fsck_f"
24604 #: ../src/guestfs-actions.pod:1391
24608 " guestfs_e2fsck_f (guestfs_h *g,\n"
24609 " const char *device);\n"
24614 #: ../src/guestfs-actions.pod:1399
24616 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
24617 "Normally you should use C<guestfs_fsck>."
24621 #: ../src/guestfs-actions.pod:1404
24622 msgid "(Added in 1.0.29)"
24626 #: ../src/guestfs-actions.pod:1406
24627 msgid "guestfs_echo_daemon"
24631 #: ../src/guestfs-actions.pod:1408
24635 " guestfs_echo_daemon (guestfs_h *g,\n"
24636 " char *const *words);\n"
24641 #: ../src/guestfs-actions.pod:1417
24642 msgid "See also C<guestfs_ping_daemon>."
24646 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2169
24647 #: ../src/guestfs-actions.pod:6448
24648 msgid "(Added in 1.0.69)"
24652 #: ../src/guestfs-actions.pod:1424
24653 msgid "guestfs_egrep"
24657 #: ../src/guestfs-actions.pod:1426
24661 " guestfs_egrep (guestfs_h *g,\n"
24662 " const char *regex,\n"
24663 " const char *path);\n"
24668 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460
24669 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563
24670 #: ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2299
24671 #: ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2474
24672 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2502
24673 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2570
24674 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:3852
24675 #: ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3879
24676 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:4894
24677 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5974
24678 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6856
24679 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6882
24680 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6917
24681 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6943
24682 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7756
24683 #: ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7861
24684 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7926
24685 msgid "(Added in 1.0.66)"
24689 #: ../src/guestfs-actions.pod:1443
24690 msgid "guestfs_egrepi"
24694 #: ../src/guestfs-actions.pod:1445
24698 " guestfs_egrepi (guestfs_h *g,\n"
24699 " const char *regex,\n"
24700 " const char *path);\n"
24705 #: ../src/guestfs-actions.pod:1462
24706 msgid "guestfs_equal"
24710 #: ../src/guestfs-actions.pod:1464
24714 " guestfs_equal (guestfs_h *g,\n"
24715 " const char *file1,\n"
24716 " const char *file2);\n"
24721 #: ../src/guestfs-actions.pod:1478
24722 msgid "guestfs_exists"
24726 #: ../src/guestfs-actions.pod:1480
24730 " guestfs_exists (guestfs_h *g,\n"
24731 " const char *path);\n"
24736 #: ../src/guestfs-actions.pod:1487
24737 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24741 #: ../src/guestfs-actions.pod:1493
24742 msgid "guestfs_fallocate"
24746 #: ../src/guestfs-actions.pod:1495
24750 " guestfs_fallocate (guestfs_h *g,\n"
24751 " const char *path,\n"
24757 #: ../src/guestfs-actions.pod:1519
24758 msgid "guestfs_fallocate64"
24762 #: ../src/guestfs-actions.pod:1521
24766 " guestfs_fallocate64 (guestfs_h *g,\n"
24767 " const char *path,\n"
24773 #: ../src/guestfs-actions.pod:1530
24775 "Note that this call allocates disk blocks for the file. To create a sparse "
24776 "file use C<guestfs_truncate_size> instead."
24780 #: ../src/guestfs-actions.pod:1533
24782 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24783 "oversight it only allowed 30 bit lengths to be specified, effectively "
24784 "limiting the maximum size of files created through that call to 1GB."
24788 #: ../src/guestfs-actions.pod:1544
24789 msgid "(Added in 1.3.17)"
24793 #: ../src/guestfs-actions.pod:1546
24794 msgid "guestfs_fgrep"
24798 #: ../src/guestfs-actions.pod:1548
24802 " guestfs_fgrep (guestfs_h *g,\n"
24803 " const char *pattern,\n"
24804 " const char *path);\n"
24809 #: ../src/guestfs-actions.pod:1565
24810 msgid "guestfs_fgrepi"
24814 #: ../src/guestfs-actions.pod:1567
24818 " guestfs_fgrepi (guestfs_h *g,\n"
24819 " const char *pattern,\n"
24820 " const char *path);\n"
24825 #: ../src/guestfs-actions.pod:1584
24826 msgid "guestfs_file"
24830 #: ../src/guestfs-actions.pod:1586
24834 " guestfs_file (guestfs_h *g,\n"
24835 " const char *path);\n"
24840 #: ../src/guestfs-actions.pod:1604
24842 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24843 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24847 #: ../src/guestfs-actions.pod:1612
24848 msgid "guestfs_file_architecture"
24852 #: ../src/guestfs-actions.pod:1614
24856 " guestfs_file_architecture (guestfs_h *g,\n"
24857 " const char *filename);\n"
24862 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885
24863 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2603
24864 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759
24865 #: ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2964
24866 #: ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3079
24867 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3409
24868 #: ../src/guestfs-actions.pod:3541
24869 msgid "(Added in 1.5.3)"
24873 #: ../src/guestfs-actions.pod:1724
24874 msgid "guestfs_filesize"
24878 #: ../src/guestfs-actions.pod:1726
24882 " guestfs_filesize (guestfs_h *g,\n"
24883 " const char *file);\n"
24888 #: ../src/guestfs-actions.pod:1732
24890 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24891 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
24892 "devices, use C<guestfs_blockdev_getsize64>."
24896 #: ../src/guestfs-actions.pod:1738
24897 msgid "(Added in 1.0.82)"
24901 #: ../src/guestfs-actions.pod:1740
24902 msgid "guestfs_fill"
24906 #: ../src/guestfs-actions.pod:1742
24910 " guestfs_fill (guestfs_h *g,\n"
24913 " const char *path);\n"
24918 #: ../src/guestfs-actions.pod:1752
24920 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24921 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
24922 "bytes use C<guestfs_fill_pattern>."
24926 #: ../src/guestfs-actions.pod:1764
24927 msgid "(Added in 1.0.79)"
24931 #: ../src/guestfs-actions.pod:1766
24932 msgid "guestfs_fill_pattern"
24936 #: ../src/guestfs-actions.pod:1768
24940 " guestfs_fill_pattern (guestfs_h *g,\n"
24941 " const char *pattern,\n"
24943 " const char *path);\n"
24948 #: ../src/guestfs-actions.pod:1774
24950 "This function is like C<guestfs_fill> except that it creates a new file of "
24951 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
24952 "pattern is truncated if necessary to ensure the length of the file is "
24953 "exactly C<len> bytes."
24957 #: ../src/guestfs-actions.pod:1786
24958 msgid "(Added in 1.3.12)"
24962 #: ../src/guestfs-actions.pod:1788
24963 msgid "guestfs_find"
24967 #: ../src/guestfs-actions.pod:1790
24971 " guestfs_find (guestfs_h *g,\n"
24972 " const char *directory);\n"
24977 #: ../src/guestfs-actions.pod:1806
24979 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24983 #: ../src/guestfs-actions.pod:1819
24984 msgid "See also C<guestfs_find0>."
24988 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4299
24989 #: ../src/guestfs-actions.pod:6009
24990 msgid "(Added in 1.0.27)"
24994 #: ../src/guestfs-actions.pod:1830
24995 msgid "guestfs_find0"
24999 #: ../src/guestfs-actions.pod:1832
25003 " guestfs_find0 (guestfs_h *g,\n"
25004 " const char *directory,\n"
25005 " const char *files);\n"
25010 #: ../src/guestfs-actions.pod:1841
25012 "This command works the same way as C<guestfs_find> with the following "
25017 #: ../src/guestfs-actions.pod:1868
25018 msgid "(Added in 1.0.74)"
25022 #: ../src/guestfs-actions.pod:1870
25023 msgid "guestfs_findfs_label"
25027 #: ../src/guestfs-actions.pod:1872
25031 " guestfs_findfs_label (guestfs_h *g,\n"
25032 " const char *label);\n"
25037 #: ../src/guestfs-actions.pod:1880
25038 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25042 #: ../src/guestfs-actions.pod:1887
25043 msgid "guestfs_findfs_uuid"
25047 #: ../src/guestfs-actions.pod:1889
25051 " guestfs_findfs_uuid (guestfs_h *g,\n"
25052 " const char *uuid);\n"
25057 #: ../src/guestfs-actions.pod:1897
25058 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25062 #: ../src/guestfs-actions.pod:1904
25063 msgid "guestfs_fsck"
25067 #: ../src/guestfs-actions.pod:1906
25071 " guestfs_fsck (guestfs_h *g,\n"
25072 " const char *fstype,\n"
25073 " const char *device);\n"
25078 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7780
25079 msgid "(Added in 1.0.16)"
25083 #: ../src/guestfs-actions.pod:1943
25084 msgid "guestfs_get_append"
25088 #: ../src/guestfs-actions.pod:1945
25092 " guestfs_get_append (guestfs_h *g);\n"
25097 #: ../src/guestfs-actions.pod:1953
25099 "This function returns a string which may be NULL. There is no way to return "
25100 "an error from this function. The string is owned by the guest handle and "
25101 "must I<not> be freed."
25105 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5687
25106 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6611
25107 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6646
25108 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:7424
25109 #: ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7823
25110 msgid "(Added in 1.0.26)"
25114 #: ../src/guestfs-actions.pod:1959
25115 msgid "guestfs_get_attach_method"
25119 #: ../src/guestfs-actions.pod:1961
25123 " guestfs_get_attach_method (guestfs_h *g);\n"
25128 #: ../src/guestfs-actions.pod:1964
25129 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
25133 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6199
25134 msgid "(Added in 1.9.8)"
25138 #: ../src/guestfs-actions.pod:1971
25139 msgid "guestfs_get_autosync"
25143 #: ../src/guestfs-actions.pod:1973
25147 " guestfs_get_autosync (guestfs_h *g);\n"
25152 #: ../src/guestfs-actions.pod:1982
25153 msgid "guestfs_get_direct"
25157 #: ../src/guestfs-actions.pod:1984
25161 " guestfs_get_direct (guestfs_h *g);\n"
25166 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6240
25167 msgid "(Added in 1.0.72)"
25171 #: ../src/guestfs-actions.pod:1993
25172 msgid "guestfs_get_e2label"
25176 #: ../src/guestfs-actions.pod:1995
25180 " guestfs_get_e2label (guestfs_h *g,\n"
25181 " const char *device);\n"
25186 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033
25187 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6277
25188 msgid "(Added in 1.0.15)"
25192 #: ../src/guestfs-actions.pod:2014
25193 msgid "guestfs_get_e2uuid"
25197 #: ../src/guestfs-actions.pod:2016
25201 " guestfs_get_e2uuid (guestfs_h *g,\n"
25202 " const char *device);\n"
25207 #: ../src/guestfs-actions.pod:2035
25208 msgid "guestfs_get_memsize"
25212 #: ../src/guestfs-actions.pod:2037
25216 " guestfs_get_memsize (guestfs_h *g);\n"
25221 #: ../src/guestfs-actions.pod:2043
25223 "If C<guestfs_set_memsize> was not called on this handle, and if "
25224 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25225 "value for memsize."
25229 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4590
25230 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4818
25231 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4849
25232 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4879
25233 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6298
25234 #: ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:7193
25235 msgid "(Added in 1.0.55)"
25239 #: ../src/guestfs-actions.pod:2054
25240 msgid "guestfs_get_network"
25244 #: ../src/guestfs-actions.pod:2056
25248 " guestfs_get_network (guestfs_h *g);\n"
25253 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6317
25254 msgid "(Added in 1.5.4)"
25258 #: ../src/guestfs-actions.pod:2065
25259 msgid "guestfs_get_path"
25263 #: ../src/guestfs-actions.pod:2067
25267 " guestfs_get_path (guestfs_h *g);\n"
25272 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2115
25274 "This function returns a string, or NULL on error. The string is owned by "
25275 "the guest handle and must I<not> be freed."
25279 #: ../src/guestfs-actions.pod:2080
25280 msgid "guestfs_get_pgroup"
25284 #: ../src/guestfs-actions.pod:2082
25288 " guestfs_get_pgroup (guestfs_h *g);\n"
25293 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:6353
25294 #: ../src/guestfs-actions.pod:7685
25296 #| msgid "(Added in 1.5.1)"
25297 msgid "(Added in 1.11.18)"
25298 msgstr "(Додано у 1.5.1)"
25301 #: ../src/guestfs-actions.pod:2091
25302 msgid "guestfs_get_pid"
25306 #: ../src/guestfs-actions.pod:2093
25310 " guestfs_get_pid (guestfs_h *g);\n"
25315 #: ../src/guestfs-actions.pod:2103
25316 msgid "(Added in 1.0.56)"
25320 #: ../src/guestfs-actions.pod:2105
25321 msgid "guestfs_get_qemu"
25325 #: ../src/guestfs-actions.pod:2107
25329 " guestfs_get_qemu (guestfs_h *g);\n"
25334 #: ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:6381
25335 msgid "(Added in 1.0.6)"
25339 #: ../src/guestfs-actions.pod:2120
25340 msgid "guestfs_get_recovery_proc"
25344 #: ../src/guestfs-actions.pod:2122
25348 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25353 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3663
25354 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4397
25355 #: ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:5617
25356 #: ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6405
25357 #: ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7116
25358 #: ../src/guestfs-actions.pod:7308
25359 msgid "(Added in 1.0.77)"
25363 #: ../src/guestfs-actions.pod:2131
25364 msgid "guestfs_get_selinux"
25368 #: ../src/guestfs-actions.pod:2133
25372 " guestfs_get_selinux (guestfs_h *g);\n"
25377 #: ../src/guestfs-actions.pod:2136
25379 "This returns the current setting of the selinux flag which is passed to the "
25380 "appliance at boot time. See C<guestfs_set_selinux>."
25384 #: ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2207
25385 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6482
25386 msgid "(Added in 1.0.67)"
25390 #: ../src/guestfs-actions.pod:2146
25391 msgid "guestfs_get_state"
25395 #: ../src/guestfs-actions.pod:2148
25399 " guestfs_get_state (guestfs_h *g);\n"
25404 #: ../src/guestfs-actions.pod:2160
25405 msgid "guestfs_get_trace"
25409 #: ../src/guestfs-actions.pod:2162
25413 " guestfs_get_trace (guestfs_h *g);\n"
25418 #: ../src/guestfs-actions.pod:2171
25419 msgid "guestfs_get_umask"
25423 #: ../src/guestfs-actions.pod:2173
25427 " guestfs_get_umask (guestfs_h *g);\n"
25432 #: ../src/guestfs-actions.pod:2176
25434 "Return the current umask. By default the umask is C<022> unless it has been "
25435 "set by calling C<guestfs_umask>."
25439 #: ../src/guestfs-actions.pod:2183
25440 msgid "guestfs_get_verbose"
25444 #: ../src/guestfs-actions.pod:2185
25448 " guestfs_get_verbose (guestfs_h *g);\n"
25453 #: ../src/guestfs-actions.pod:2194
25454 msgid "guestfs_getcon"
25458 #: ../src/guestfs-actions.pod:2196
25462 " guestfs_getcon (guestfs_h *g);\n"
25467 #: ../src/guestfs-actions.pod:2201
25469 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25473 #: ../src/guestfs-actions.pod:2209
25474 msgid "guestfs_getxattr"
25478 #: ../src/guestfs-actions.pod:2211
25482 " guestfs_getxattr (guestfs_h *g,\n"
25483 " const char *path,\n"
25484 " const char *name,\n"
25485 " size_t *size_r);\n"
25490 #: ../src/guestfs-actions.pod:2217
25492 "Get a single extended attribute from file C<path> named C<name>. This call "
25493 "follows symlinks. If you want to lookup an extended attribute for the "
25494 "symlink itself, use C<guestfs_lgetxattr>."
25498 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:3677
25500 "Normally it is better to get all extended attributes from a file in one go "
25501 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
25502 "implementations are buggy and do not provide a way to list out attributes. "
25503 "For these filesystems (notably ntfs-3g) you have to know the names of the "
25504 "extended attributes you want in advance and call this function."
25508 #: ../src/guestfs-actions.pod:2231
25509 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25513 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2424
25514 #: ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:3689
25515 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
25516 #: ../src/guestfs-actions.pod:5817
25518 "This function returns a buffer, or NULL on error. The size of the returned "
25519 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
25524 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:3693
25525 msgid "(Added in 1.7.24)"
25529 #: ../src/guestfs-actions.pod:2239
25530 msgid "guestfs_getxattrs"
25534 #: ../src/guestfs-actions.pod:2241
25537 " struct guestfs_xattr_list *\n"
25538 " guestfs_getxattrs (guestfs_h *g,\n"
25539 " const char *path);\n"
25544 #: ../src/guestfs-actions.pod:2251
25545 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25549 #: ../src/guestfs-actions.pod:2253 ../src/guestfs-actions.pod:3705
25550 #: ../src/guestfs-actions.pod:4393
25552 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25553 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
25557 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:3709
25558 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3944
25559 #: ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6501
25560 #: ../src/guestfs-actions.pod:7888
25561 msgid "(Added in 1.0.59)"
25565 #: ../src/guestfs-actions.pod:2259
25566 msgid "guestfs_glob_expand"
25570 #: ../src/guestfs-actions.pod:2261
25574 " guestfs_glob_expand (guestfs_h *g,\n"
25575 " const char *pattern);\n"
25580 #: ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:6694
25581 #: ../src/guestfs-actions.pod:6711
25582 msgid "(Added in 1.0.50)"
25586 #: ../src/guestfs-actions.pod:2282
25587 msgid "guestfs_grep"
25591 #: ../src/guestfs-actions.pod:2284
25595 " guestfs_grep (guestfs_h *g,\n"
25596 " const char *regex,\n"
25597 " const char *path);\n"
25602 #: ../src/guestfs-actions.pod:2301
25603 msgid "guestfs_grepi"
25607 #: ../src/guestfs-actions.pod:2303
25611 " guestfs_grepi (guestfs_h *g,\n"
25612 " const char *regex,\n"
25613 " const char *path);\n"
25618 #: ../src/guestfs-actions.pod:2320
25619 msgid "guestfs_grub_install"
25623 #: ../src/guestfs-actions.pod:2322
25627 " guestfs_grub_install (guestfs_h *g,\n"
25628 " const char *root,\n"
25629 " const char *device);\n"
25634 #: ../src/guestfs-actions.pod:2343
25635 msgid "(Added in 1.0.17)"
25639 #: ../src/guestfs-actions.pod:2345
25640 msgid "guestfs_head"
25644 #: ../src/guestfs-actions.pod:2347
25648 " guestfs_head (guestfs_h *g,\n"
25649 " const char *path);\n"
25654 #: ../src/guestfs-actions.pod:2363
25655 msgid "guestfs_head_n"
25659 #: ../src/guestfs-actions.pod:2365
25663 " guestfs_head_n (guestfs_h *g,\n"
25665 " const char *path);\n"
25670 #: ../src/guestfs-actions.pod:2387
25671 msgid "guestfs_hexdump"
25675 #: ../src/guestfs-actions.pod:2389
25679 " guestfs_hexdump (guestfs_h *g,\n"
25680 " const char *path);\n"
25685 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:6775
25686 #: ../src/guestfs-actions.pod:6830
25687 msgid "(Added in 1.0.22)"
25691 #: ../src/guestfs-actions.pod:2404
25692 msgid "guestfs_initrd_cat"
25696 #: ../src/guestfs-actions.pod:2406
25700 " guestfs_initrd_cat (guestfs_h *g,\n"
25701 " const char *initrdpath,\n"
25702 " const char *filename,\n"
25703 " size_t *size_r);\n"
25708 #: ../src/guestfs-actions.pod:2422
25709 msgid "See also C<guestfs_initrd_list>."
25713 #: ../src/guestfs-actions.pod:2433
25714 msgid "guestfs_initrd_list"
25718 #: ../src/guestfs-actions.pod:2435
25722 " guestfs_initrd_list (guestfs_h *g,\n"
25723 " const char *path);\n"
25728 #: ../src/guestfs-actions.pod:2455
25729 msgid "guestfs_inotify_add_watch"
25733 #: ../src/guestfs-actions.pod:2457
25737 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25738 " const char *path,\n"
25744 #: ../src/guestfs-actions.pod:2476
25745 msgid "guestfs_inotify_close"
25749 #: ../src/guestfs-actions.pod:2478
25753 " guestfs_inotify_close (guestfs_h *g);\n"
25758 #: ../src/guestfs-actions.pod:2489
25759 msgid "guestfs_inotify_files"
25763 #: ../src/guestfs-actions.pod:2491
25767 " guestfs_inotify_files (guestfs_h *g);\n"
25772 #: ../src/guestfs-actions.pod:2494
25774 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25775 "returns a list of pathnames of objects that were touched. The returned "
25776 "pathnames are sorted and deduplicated."
25780 #: ../src/guestfs-actions.pod:2504
25781 msgid "guestfs_inotify_init"
25785 #: ../src/guestfs-actions.pod:2506
25789 " guestfs_inotify_init (guestfs_h *g,\n"
25790 " int maxevents);\n"
25795 #: ../src/guestfs-actions.pod:2514
25797 "C<maxevents> is the maximum number of events which will be queued up between "
25798 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
25799 "passed as C<0>, then the kernel (or previously set) default is used. For "
25800 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
25801 "throws away events, but records the fact that it threw them away by setting "
25802 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25803 "C<guestfs_inotify_read>)."
25807 #: ../src/guestfs-actions.pod:2524
25809 "Before any events are generated, you have to add some watches to the "
25810 "internal watch list. See: C<guestfs_inotify_add_watch>, "
25811 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25815 #: ../src/guestfs-actions.pod:2530
25817 "Queued up events should be read periodically by calling "
25818 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25819 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
25820 "often enough then you risk the internal queue overflowing."
25824 #: ../src/guestfs-actions.pod:2537
25826 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
25827 "This also removes any watches automatically."
25831 #: ../src/guestfs-actions.pod:2550
25832 msgid "guestfs_inotify_read"
25836 #: ../src/guestfs-actions.pod:2552
25839 " struct guestfs_inotify_event_list *\n"
25840 " guestfs_inotify_read (guestfs_h *g);\n"
25845 #: ../src/guestfs-actions.pod:2566
25847 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25848 "there was an error. I<The caller must call "
25849 "C<guestfs_free_inotify_event_list> after use>."
25853 #: ../src/guestfs-actions.pod:2572
25854 msgid "guestfs_inotify_rm_watch"
25858 #: ../src/guestfs-actions.pod:2574
25862 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25868 #: ../src/guestfs-actions.pod:2578
25870 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
25874 #: ../src/guestfs-actions.pod:2585
25875 msgid "guestfs_inspect_get_arch"
25879 #: ../src/guestfs-actions.pod:2587
25883 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25884 " const char *root);\n"
25889 #: ../src/guestfs-actions.pod:2591
25891 "This returns the architecture of the inspected operating system. The "
25892 "possible return values are listed under C<guestfs_file_architecture>."
25896 #: ../src/guestfs-actions.pod:2605
25897 msgid "guestfs_inspect_get_distro"
25901 #: ../src/guestfs-actions.pod:2607
25905 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25906 " const char *root);\n"
25911 #: ../src/guestfs-actions.pod:2695
25912 msgid "guestfs_inspect_get_drive_mappings"
25916 #: ../src/guestfs-actions.pod:2697
25920 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25921 " const char *root);\n"
25926 #: ../src/guestfs-actions.pod:2726
25928 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
25929 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25933 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2998
25934 #: ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5078
25935 #: ../src/guestfs-actions.pod:7132
25937 "This function returns a NULL-terminated array of strings, or NULL if there "
25938 "was an error. The array of strings will always have length C<2n+1>, where "
25939 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
25940 "caller must free the strings and the array after use>."
25944 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3192
25945 msgid "(Added in 1.9.17)"
25949 #: ../src/guestfs-actions.pod:2738
25950 msgid "guestfs_inspect_get_filesystems"
25954 #: ../src/guestfs-actions.pod:2740
25958 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25959 " const char *root);\n"
25964 #: ../src/guestfs-actions.pod:2752
25966 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
25967 "C<guestfs_inspect_get_mountpoints>."
25971 #: ../src/guestfs-actions.pod:2761
25972 msgid "guestfs_inspect_get_format"
25976 #: ../src/guestfs-actions.pod:2763
25980 " guestfs_inspect_get_format (guestfs_h *g,\n"
25981 " const char *root);\n"
25986 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3228
25987 #: ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3262
25988 #: ../src/guestfs-actions.pod:6028
25989 msgid "(Added in 1.9.4)"
25993 #: ../src/guestfs-actions.pod:2799
25994 msgid "guestfs_inspect_get_hostname"
25998 #: ../src/guestfs-actions.pod:2801
26002 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26003 " const char *root);\n"
26008 #: ../src/guestfs-actions.pod:2816
26009 msgid "(Added in 1.7.9)"
26013 #: ../src/guestfs-actions.pod:2818
26014 msgid "guestfs_inspect_get_icon"
26018 #: ../src/guestfs-actions.pod:2820
26022 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26023 " const char *root,\n"
26024 " size_t *size_r,\n"
26030 #: ../src/guestfs-actions.pod:2831
26033 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26034 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26039 #: ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:3723
26040 #: ../src/guestfs-actions.pod:4977
26041 msgid "(Added in 1.11.12)"
26045 #: ../src/guestfs-actions.pod:2900
26046 msgid "guestfs_inspect_get_icon_va"
26050 #: ../src/guestfs-actions.pod:2902
26054 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26055 " const char *root,\n"
26056 " size_t *size_r,\n"
26057 " va_list args);\n"
26062 #: ../src/guestfs-actions.pod:2908
26063 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26067 #: ../src/guestfs-actions.pod:2912
26068 msgid "guestfs_inspect_get_icon_argv"
26072 #: ../src/guestfs-actions.pod:2914
26076 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26077 " const char *root,\n"
26078 " size_t *size_r,\n"
26079 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
26084 #: ../src/guestfs-actions.pod:2920
26085 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26089 #: ../src/guestfs-actions.pod:2924
26090 msgid "guestfs_inspect_get_major_version"
26094 #: ../src/guestfs-actions.pod:2926
26098 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26099 " const char *root);\n"
26104 #: ../src/guestfs-actions.pod:2948
26105 msgid "guestfs_inspect_get_minor_version"
26109 #: ../src/guestfs-actions.pod:2950
26113 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26114 " const char *root);\n"
26119 #: ../src/guestfs-actions.pod:2959
26121 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26122 "C<guestfs_inspect_get_major_version>."
26126 #: ../src/guestfs-actions.pod:2966
26127 msgid "guestfs_inspect_get_mountpoints"
26131 #: ../src/guestfs-actions.pod:2968
26135 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26136 " const char *root);\n"
26141 #: ../src/guestfs-actions.pod:2989
26143 "For operating systems like Windows which still use drive letters, this call "
26144 "will only return an entry for the first drive \"mounted on\" C</>. For "
26145 "information about the mapping of drive letters to partitions, see "
26146 "C<guestfs_inspect_get_drive_mappings>."
26150 #: ../src/guestfs-actions.pod:2995
26152 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26153 "C<guestfs_inspect_get_filesystems>."
26157 #: ../src/guestfs-actions.pod:3006
26158 msgid "guestfs_inspect_get_package_format"
26162 #: ../src/guestfs-actions.pod:3008
26166 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26167 " const char *root);\n"
26172 #: ../src/guestfs-actions.pod:3012
26174 "This function and C<guestfs_inspect_get_package_management> return the "
26175 "package format and package management tool used by the inspected operating "
26176 "system. For example for Fedora these functions would return C<rpm> (package "
26177 "format) and C<yum> (package management)."
26181 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
26182 msgid "(Added in 1.7.5)"
26186 #: ../src/guestfs-actions.pod:3032
26187 msgid "guestfs_inspect_get_package_management"
26191 #: ../src/guestfs-actions.pod:3034
26195 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26196 " const char *root);\n"
26201 #: ../src/guestfs-actions.pod:3038
26203 "C<guestfs_inspect_get_package_format> and this function return the package "
26204 "format and package management tool used by the inspected operating system. "
26205 "For example for Fedora these functions would return C<rpm> (package format) "
26206 "and C<yum> (package management)."
26210 #: ../src/guestfs-actions.pod:3060
26211 msgid "guestfs_inspect_get_product_name"
26215 #: ../src/guestfs-actions.pod:3062
26219 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26220 " const char *root);\n"
26225 #: ../src/guestfs-actions.pod:3081
26226 msgid "guestfs_inspect_get_product_variant"
26230 #: ../src/guestfs-actions.pod:3083
26234 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26235 " const char *root);\n"
26240 #: ../src/guestfs-actions.pod:3106
26242 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26243 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26247 #: ../src/guestfs-actions.pod:3113
26248 msgid "(Added in 1.9.13)"
26252 #: ../src/guestfs-actions.pod:3115
26253 msgid "guestfs_inspect_get_roots"
26257 #: ../src/guestfs-actions.pod:3117
26261 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26266 #: ../src/guestfs-actions.pod:3120
26268 "This function is a convenient way to get the list of root devices, as "
26269 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26270 "the whole inspection process."
26274 #: ../src/guestfs-actions.pod:3124
26276 "This returns an empty list if either no root devices were found or the "
26277 "caller has not called C<guestfs_inspect_os>."
26281 #: ../src/guestfs-actions.pod:3133
26282 msgid "(Added in 1.7.3)"
26286 #: ../src/guestfs-actions.pod:3135
26287 msgid "guestfs_inspect_get_type"
26291 #: ../src/guestfs-actions.pod:3137
26295 " guestfs_inspect_get_type (guestfs_h *g,\n"
26296 " const char *root);\n"
26301 #: ../src/guestfs-actions.pod:3174
26302 msgid "guestfs_inspect_get_windows_current_control_set"
26306 #: ../src/guestfs-actions.pod:3176
26310 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26311 " const char *root);\n"
26316 #: ../src/guestfs-actions.pod:3194
26317 msgid "guestfs_inspect_get_windows_systemroot"
26321 #: ../src/guestfs-actions.pod:3196
26325 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26326 " const char *root);\n"
26331 #: ../src/guestfs-actions.pod:3212
26332 msgid "(Added in 1.5.25)"
26336 #: ../src/guestfs-actions.pod:3214
26337 msgid "guestfs_inspect_is_live"
26341 #: ../src/guestfs-actions.pod:3216
26345 " guestfs_inspect_is_live (guestfs_h *g,\n"
26346 " const char *root);\n"
26351 #: ../src/guestfs-actions.pod:3220
26353 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26354 "disk), then this returns true if a live image was detected on the disk."
26358 #: ../src/guestfs-actions.pod:3230
26359 msgid "guestfs_inspect_is_multipart"
26363 #: ../src/guestfs-actions.pod:3232
26367 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26368 " const char *root);\n"
26373 #: ../src/guestfs-actions.pod:3236
26375 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26376 "disk), then this returns true if the disk is part of a set."
26380 #: ../src/guestfs-actions.pod:3246
26381 msgid "guestfs_inspect_is_netinst"
26385 #: ../src/guestfs-actions.pod:3248
26389 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26390 " const char *root);\n"
26395 #: ../src/guestfs-actions.pod:3252
26397 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26398 "disk), then this returns true if the disk is a network installer, ie. not a "
26399 "self-contained install CD but one which is likely to require network access "
26400 "to complete the install."
26404 #: ../src/guestfs-actions.pod:3264
26405 msgid "guestfs_inspect_list_applications"
26409 #: ../src/guestfs-actions.pod:3266
26412 " struct guestfs_application_list *\n"
26413 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26414 " const char *root);\n"
26419 #: ../src/guestfs-actions.pod:3272
26421 "I<Note:> This call works differently from other parts of the inspection "
26422 "API. You have to call C<guestfs_inspect_os>, then "
26423 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26424 "this. Listing applications is a significantly more difficult operation "
26425 "which requires access to the full filesystem. Also note that unlike the "
26426 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26427 "the libguestfs handle, this call actually reads parts of the mounted "
26428 "filesystems during the call."
26432 #: ../src/guestfs-actions.pod:3362
26434 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26435 "there was an error. I<The caller must call C<guestfs_free_application_list> "
26440 #: ../src/guestfs-actions.pod:3366
26441 msgid "(Added in 1.7.8)"
26445 #: ../src/guestfs-actions.pod:3368
26446 msgid "guestfs_inspect_os"
26450 #: ../src/guestfs-actions.pod:3370
26454 " guestfs_inspect_os (guestfs_h *g);\n"
26459 #: ../src/guestfs-actions.pod:3386
26461 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26462 "functions in order to query further information about each operating system, "
26463 "such as the name and version."
26467 #: ../src/guestfs-actions.pod:3391
26469 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26470 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26471 "the contents. This should be called with no disks currently mounted. The "
26472 "function may also use Augeas, so any existing Augeas handle will be closed."
26476 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3734
26477 #: ../src/guestfs-actions.pod:3816
26478 msgid "See also C<guestfs_list_filesystems>."
26482 #: ../src/guestfs-actions.pod:3411
26483 msgid "guestfs_is_blockdev"
26487 #: ../src/guestfs-actions.pod:3413
26491 " guestfs_is_blockdev (guestfs_h *g,\n"
26492 " const char *path);\n"
26497 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3449
26498 #: ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494
26499 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3566
26500 #: ../src/guestfs-actions.pod:3581
26501 msgid "See also C<guestfs_stat>."
26505 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3453
26506 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3570
26507 #: ../src/guestfs-actions.pod:3585
26508 msgid "(Added in 1.5.10)"
26512 #: ../src/guestfs-actions.pod:3426
26513 msgid "guestfs_is_busy"
26517 #: ../src/guestfs-actions.pod:3428
26521 " guestfs_is_busy (guestfs_h *g);\n"
26526 #: ../src/guestfs-actions.pod:3440
26527 msgid "guestfs_is_chardev"
26531 #: ../src/guestfs-actions.pod:3442
26535 " guestfs_is_chardev (guestfs_h *g,\n"
26536 " const char *path);\n"
26541 #: ../src/guestfs-actions.pod:3455
26542 msgid "guestfs_is_config"
26546 #: ../src/guestfs-actions.pod:3457
26550 " guestfs_is_config (guestfs_h *g);\n"
26555 #: ../src/guestfs-actions.pod:3469
26556 msgid "guestfs_is_dir"
26560 #: ../src/guestfs-actions.pod:3471
26564 " guestfs_is_dir (guestfs_h *g,\n"
26565 " const char *path);\n"
26570 #: ../src/guestfs-actions.pod:3485
26571 msgid "guestfs_is_fifo"
26575 #: ../src/guestfs-actions.pod:3487
26579 " guestfs_is_fifo (guestfs_h *g,\n"
26580 " const char *path);\n"
26585 #: ../src/guestfs-actions.pod:3500
26586 msgid "guestfs_is_file"
26590 #: ../src/guestfs-actions.pod:3502
26594 " guestfs_is_file (guestfs_h *g,\n"
26595 " const char *path);\n"
26600 #: ../src/guestfs-actions.pod:3516
26601 msgid "guestfs_is_launching"
26605 #: ../src/guestfs-actions.pod:3518
26609 " guestfs_is_launching (guestfs_h *g);\n"
26614 #: ../src/guestfs-actions.pod:3530
26615 msgid "guestfs_is_lv"
26619 #: ../src/guestfs-actions.pod:3532
26623 " guestfs_is_lv (guestfs_h *g,\n"
26624 " const char *device);\n"
26629 #: ../src/guestfs-actions.pod:3543
26630 msgid "guestfs_is_ready"
26634 #: ../src/guestfs-actions.pod:3545
26638 " guestfs_is_ready (guestfs_h *g);\n"
26643 #: ../src/guestfs-actions.pod:3557
26644 msgid "guestfs_is_socket"
26648 #: ../src/guestfs-actions.pod:3559
26652 " guestfs_is_socket (guestfs_h *g,\n"
26653 " const char *path);\n"
26658 #: ../src/guestfs-actions.pod:3572
26659 msgid "guestfs_is_symlink"
26663 #: ../src/guestfs-actions.pod:3574
26667 " guestfs_is_symlink (guestfs_h *g,\n"
26668 " const char *path);\n"
26673 #: ../src/guestfs-actions.pod:3587
26674 msgid "guestfs_is_zero"
26678 #: ../src/guestfs-actions.pod:3589
26682 " guestfs_is_zero (guestfs_h *g,\n"
26683 " const char *path);\n"
26688 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
26689 msgid "(Added in 1.11.8)"
26693 #: ../src/guestfs-actions.pod:3600
26694 msgid "guestfs_is_zero_device"
26698 #: ../src/guestfs-actions.pod:3602
26702 " guestfs_is_zero_device (guestfs_h *g,\n"
26703 " const char *device);\n"
26708 #: ../src/guestfs-actions.pod:3614
26709 msgid "guestfs_kill_subprocess"
26713 #: ../src/guestfs-actions.pod:3616
26717 " guestfs_kill_subprocess (guestfs_h *g);\n"
26722 #: ../src/guestfs-actions.pod:3625
26723 msgid "guestfs_launch"
26727 #: ../src/guestfs-actions.pod:3627
26731 " guestfs_launch (guestfs_h *g);\n"
26736 #: ../src/guestfs-actions.pod:3645
26737 msgid "guestfs_lchown"
26741 #: ../src/guestfs-actions.pod:3647
26745 " guestfs_lchown (guestfs_h *g,\n"
26748 " const char *path);\n"
26753 #: ../src/guestfs-actions.pod:3653
26755 "Change the file owner to C<owner> and group to C<group>. This is like "
26756 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26757 "changed, not the target."
26761 #: ../src/guestfs-actions.pod:3665
26762 msgid "guestfs_lgetxattr"
26766 #: ../src/guestfs-actions.pod:3667
26770 " guestfs_lgetxattr (guestfs_h *g,\n"
26771 " const char *path,\n"
26772 " const char *name,\n"
26773 " size_t *size_r);\n"
26778 #: ../src/guestfs-actions.pod:3687
26779 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26783 #: ../src/guestfs-actions.pod:3695
26784 msgid "guestfs_lgetxattrs"
26788 #: ../src/guestfs-actions.pod:3697
26791 " struct guestfs_xattr_list *\n"
26792 " guestfs_lgetxattrs (guestfs_h *g,\n"
26793 " const char *path);\n"
26798 #: ../src/guestfs-actions.pod:3701
26800 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26801 "then it returns the extended attributes of the link itself."
26805 #: ../src/guestfs-actions.pod:3711
26806 msgid "guestfs_list_9p"
26810 #: ../src/guestfs-actions.pod:3713
26814 " guestfs_list_9p (guestfs_h *g);\n"
26819 #: ../src/guestfs-actions.pod:3725
26820 msgid "guestfs_list_devices"
26824 #: ../src/guestfs-actions.pod:3727
26828 " guestfs_list_devices (guestfs_h *g);\n"
26833 #: ../src/guestfs-actions.pod:3742
26834 msgid "guestfs_list_dm_devices"
26838 #: ../src/guestfs-actions.pod:3744
26842 " guestfs_list_dm_devices (guestfs_h *g);\n"
26847 #: ../src/guestfs-actions.pod:3749
26849 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26850 "previous call to C<guestfs_luks_open>."
26854 #: ../src/guestfs-actions.pod:3752
26856 "Device mapper devices which correspond to logical volumes are I<not> "
26857 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
26862 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:5216
26863 msgid "(Added in 1.11.15)"
26867 #: ../src/guestfs-actions.pod:3762
26868 msgid "guestfs_list_filesystems"
26872 #: ../src/guestfs-actions.pod:3764
26876 " guestfs_list_filesystems (guestfs_h *g);\n"
26881 #: ../src/guestfs-actions.pod:3784
26883 "This command runs other libguestfs commands, which might include "
26884 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26885 "soon after launch and only when nothing is mounted."
26889 #: ../src/guestfs-actions.pod:3788
26891 "Not all of the filesystems returned will be mountable. In particular, swap "
26892 "partitions are returned in the list. Also this command does not check that "
26893 "each filesystem found is valid and mountable, and some filesystems might be "
26894 "mountable but require special options. Filesystems may not all belong to a "
26895 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26899 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:5577
26900 msgid "(Added in 1.5.15)"
26904 #: ../src/guestfs-actions.pod:3804
26905 msgid "guestfs_list_partitions"
26906 msgstr "guestfs_list_partitions"
26909 #: ../src/guestfs-actions.pod:3806
26913 " guestfs_list_partitions (guestfs_h *g);\n"
26917 " guestfs_list_partitions (guestfs_h *g);\n"
26921 #: ../src/guestfs-actions.pod:3813
26923 "This does not return logical volumes. For that you will need to call "
26928 #: ../src/guestfs-actions.pod:3824
26930 msgstr "guestfs_ll"
26933 #: ../src/guestfs-actions.pod:3826
26937 " guestfs_ll (guestfs_h *g,\n"
26938 " const char *directory);\n"
26942 " guestfs_ll (guestfs_h *g,\n"
26943 " const char *directory);\n"
26947 #: ../src/guestfs-actions.pod:3841
26949 msgstr "guestfs_ln"
26952 #: ../src/guestfs-actions.pod:3843
26956 " guestfs_ln (guestfs_h *g,\n"
26957 " const char *target,\n"
26958 " const char *linkname);\n"
26962 " guestfs_ln (guestfs_h *g,\n"
26963 " const char *target,\n"
26964 " const char *linkname);\n"
26968 #: ../src/guestfs-actions.pod:3854
26969 msgid "guestfs_ln_f"
26970 msgstr "guestfs_ln_f"
26973 #: ../src/guestfs-actions.pod:3856
26977 " guestfs_ln_f (guestfs_h *g,\n"
26978 " const char *target,\n"
26979 " const char *linkname);\n"
26983 " guestfs_ln_f (guestfs_h *g,\n"
26984 " const char *target,\n"
26985 " const char *linkname);\n"
26989 #: ../src/guestfs-actions.pod:3868
26990 msgid "guestfs_ln_s"
26991 msgstr "guestfs_ln_s"
26994 #: ../src/guestfs-actions.pod:3870
26998 " guestfs_ln_s (guestfs_h *g,\n"
26999 " const char *target,\n"
27000 " const char *linkname);\n"
27004 " guestfs_ln_s (guestfs_h *g,\n"
27005 " const char *target,\n"
27006 " const char *linkname);\n"
27010 #: ../src/guestfs-actions.pod:3881
27011 msgid "guestfs_ln_sf"
27012 msgstr "guestfs_ln_sf"
27015 #: ../src/guestfs-actions.pod:3883
27019 " guestfs_ln_sf (guestfs_h *g,\n"
27020 " const char *target,\n"
27021 " const char *linkname);\n"
27025 " guestfs_ln_sf (guestfs_h *g,\n"
27026 " const char *target,\n"
27027 " const char *linkname);\n"
27031 #: ../src/guestfs-actions.pod:3895
27032 msgid "guestfs_lremovexattr"
27033 msgstr "guestfs_lremovexattr"
27036 #: ../src/guestfs-actions.pod:3897
27040 " guestfs_lremovexattr (guestfs_h *g,\n"
27041 " const char *xattr,\n"
27042 " const char *path);\n"
27046 " guestfs_lremovexattr (guestfs_h *g,\n"
27047 " const char *xattr,\n"
27048 " const char *path);\n"
27052 #: ../src/guestfs-actions.pod:3902
27054 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27055 "link, then it removes an extended attribute of the link itself."
27059 #: ../src/guestfs-actions.pod:3910
27061 msgstr "guestfs_ls"
27064 #: ../src/guestfs-actions.pod:3912
27068 " guestfs_ls (guestfs_h *g,\n"
27069 " const char *directory);\n"
27073 " guestfs_ls (guestfs_h *g,\n"
27074 " const char *directory);\n"
27078 #: ../src/guestfs-actions.pod:3920
27080 "This command is mostly useful for interactive sessions. Programs should "
27081 "probably use C<guestfs_readdir> instead."
27085 #: ../src/guestfs-actions.pod:3929
27086 msgid "guestfs_lsetxattr"
27087 msgstr "guestfs_lsetxattr"
27090 #: ../src/guestfs-actions.pod:3931
27094 " guestfs_lsetxattr (guestfs_h *g,\n"
27095 " const char *xattr,\n"
27096 " const char *val,\n"
27098 " const char *path);\n"
27102 " guestfs_lsetxattr (guestfs_h *g,\n"
27103 " const char *xattr,\n"
27104 " const char *val,\n"
27106 " const char *path);\n"
27110 #: ../src/guestfs-actions.pod:3938
27112 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27113 "then it sets an extended attribute of the link itself."
27117 #: ../src/guestfs-actions.pod:3946
27118 msgid "guestfs_lstat"
27119 msgstr "guestfs_lstat"
27122 #: ../src/guestfs-actions.pod:3948
27125 " struct guestfs_stat *\n"
27126 " guestfs_lstat (guestfs_h *g,\n"
27127 " const char *path);\n"
27130 " struct guestfs_stat *\n"
27131 " guestfs_lstat (guestfs_h *g,\n"
27132 " const char *path);\n"
27136 #: ../src/guestfs-actions.pod:3954
27138 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27139 "link, then the link is stat-ed, not the file it refers to."
27143 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:6735
27145 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27146 "error. I<The caller must call C<guestfs_free_stat> after use>."
27150 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:6739
27151 #: ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:7138
27152 msgid "(Added in 0.9.2)"
27153 msgstr "(Додано у 0.9.2)"
27156 #: ../src/guestfs-actions.pod:3966
27157 msgid "guestfs_lstatlist"
27158 msgstr "guestfs_lstatlist"
27161 #: ../src/guestfs-actions.pod:3968
27164 " struct guestfs_stat_list *\n"
27165 " guestfs_lstatlist (guestfs_h *g,\n"
27166 " const char *path,\n"
27167 " char *const *names);\n"
27170 " struct guestfs_stat_list *\n"
27171 " guestfs_lstatlist (guestfs_h *g,\n"
27172 " const char *path,\n"
27173 " char *const *names);\n"
27177 #: ../src/guestfs-actions.pod:3973
27179 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27180 "files, where all files are in the directory C<path>. C<names> is the list "
27181 "of files from this directory."
27185 #: ../src/guestfs-actions.pod:3982
27187 "This call is intended for programs that want to efficiently list a directory "
27188 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
27189 "for a similarly efficient call for getting extended attributes. Very long "
27190 "directory listings might cause the protocol message size to be exceeded, "
27191 "causing this call to fail. The caller must split up such requests into "
27192 "smaller groups of names."
27196 #: ../src/guestfs-actions.pod:3990
27198 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27199 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
27203 #: ../src/guestfs-actions.pod:3996
27204 msgid "guestfs_luks_add_key"
27205 msgstr "guestfs_luks_add_key"
27208 #: ../src/guestfs-actions.pod:3998
27212 " guestfs_luks_add_key (guestfs_h *g,\n"
27213 " const char *device,\n"
27214 " const char *key,\n"
27215 " const char *newkey,\n"
27220 " guestfs_luks_add_key (guestfs_h *g,\n"
27221 " const char *device,\n"
27222 " const char *key,\n"
27223 " const char *newkey,\n"
27228 #: ../src/guestfs-actions.pod:4010
27230 "Note that if C<keyslot> already contains a key, then this command will "
27231 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
27235 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4056
27236 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4099
27237 #: ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4153
27239 "This function takes a key or passphrase parameter which could contain "
27240 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
27245 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4060
27246 #: ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4103
27247 msgid "(Added in 1.5.2)"
27248 msgstr "(Додано у 1.5.2)"
27251 #: ../src/guestfs-actions.pod:4022
27252 msgid "guestfs_luks_close"
27253 msgstr "guestfs_luks_close"
27256 #: ../src/guestfs-actions.pod:4024
27260 " guestfs_luks_close (guestfs_h *g,\n"
27261 " const char *device);\n"
27265 " guestfs_luks_close (guestfs_h *g,\n"
27266 " const char *device);\n"
27270 #: ../src/guestfs-actions.pod:4028
27272 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27273 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
27274 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27275 "underlying block device."
27279 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4138
27280 #: ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4207
27281 #: ../src/guestfs-actions.pod:4255
27282 msgid "(Added in 1.5.1)"
27283 msgstr "(Додано у 1.5.1)"
27286 #: ../src/guestfs-actions.pod:4038
27287 msgid "guestfs_luks_format"
27288 msgstr "guestfs_luks_format"
27291 #: ../src/guestfs-actions.pod:4040
27295 " guestfs_luks_format (guestfs_h *g,\n"
27296 " const char *device,\n"
27297 " const char *key,\n"
27302 " guestfs_luks_format (guestfs_h *g,\n"
27303 " const char *device,\n"
27304 " const char *key,\n"
27309 #: ../src/guestfs-actions.pod:4062
27310 msgid "guestfs_luks_format_cipher"
27311 msgstr "guestfs_luks_format_cipher"
27314 #: ../src/guestfs-actions.pod:4064
27318 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27319 " const char *device,\n"
27320 " const char *key,\n"
27322 " const char *cipher);\n"
27326 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27327 " const char *device,\n"
27328 " const char *key,\n"
27330 " const char *cipher);\n"
27334 #: ../src/guestfs-actions.pod:4071
27336 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27337 "set the C<cipher> used."
27341 #: ../src/guestfs-actions.pod:4085
27342 msgid "guestfs_luks_kill_slot"
27343 msgstr "guestfs_luks_kill_slot"
27346 #: ../src/guestfs-actions.pod:4087
27350 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27351 " const char *device,\n"
27352 " const char *key,\n"
27357 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27358 " const char *device,\n"
27359 " const char *key,\n"
27364 #: ../src/guestfs-actions.pod:4105
27365 msgid "guestfs_luks_open"
27366 msgstr "guestfs_luks_open"
27369 #: ../src/guestfs-actions.pod:4107
27373 " guestfs_luks_open (guestfs_h *g,\n"
27374 " const char *device,\n"
27375 " const char *key,\n"
27376 " const char *mapname);\n"
27380 " guestfs_luks_open (guestfs_h *g,\n"
27381 " const char *device,\n"
27382 " const char *key,\n"
27383 " const char *mapname);\n"
27387 #: ../src/guestfs-actions.pod:4125
27389 "If this block device contains LVM volume groups, then calling "
27390 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27395 #: ../src/guestfs-actions.pod:4129
27396 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27400 #: ../src/guestfs-actions.pod:4140
27401 msgid "guestfs_luks_open_ro"
27402 msgstr "guestfs_luks_open_ro"
27405 #: ../src/guestfs-actions.pod:4142
27409 " guestfs_luks_open_ro (guestfs_h *g,\n"
27410 " const char *device,\n"
27411 " const char *key,\n"
27412 " const char *mapname);\n"
27416 " guestfs_luks_open_ro (guestfs_h *g,\n"
27417 " const char *device,\n"
27418 " const char *key,\n"
27419 " const char *mapname);\n"
27423 #: ../src/guestfs-actions.pod:4148
27425 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27430 #: ../src/guestfs-actions.pod:4159
27431 msgid "guestfs_lvcreate"
27432 msgstr "guestfs_lvcreate"
27435 #: ../src/guestfs-actions.pod:4161
27439 " guestfs_lvcreate (guestfs_h *g,\n"
27440 " const char *logvol,\n"
27441 " const char *volgroup,\n"
27446 " guestfs_lvcreate (guestfs_h *g,\n"
27447 " const char *logvol,\n"
27448 " const char *volgroup,\n"
27453 #: ../src/guestfs-actions.pod:4174
27454 msgid "guestfs_lvm_canonical_lv_name"
27455 msgstr "guestfs_lvm_canonical_lv_name"
27458 #: ../src/guestfs-actions.pod:4176
27462 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27463 " const char *lvname);\n"
27467 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27468 " const char *lvname);\n"
27472 #: ../src/guestfs-actions.pod:4187
27473 msgid "See also C<guestfs_is_lv>."
27477 #: ../src/guestfs-actions.pod:4192
27478 msgid "(Added in 1.5.24)"
27479 msgstr "(Додано у 1.5.24)"
27482 #: ../src/guestfs-actions.pod:4194
27483 msgid "guestfs_lvm_clear_filter"
27484 msgstr "guestfs_lvm_clear_filter"
27487 #: ../src/guestfs-actions.pod:4196
27491 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27495 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27499 #: ../src/guestfs-actions.pod:4199
27501 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
27502 "see every block device."
27506 #: ../src/guestfs-actions.pod:4209
27507 msgid "guestfs_lvm_remove_all"
27508 msgstr "guestfs_lvm_remove_all"
27511 #: ../src/guestfs-actions.pod:4211
27515 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27519 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27523 #: ../src/guestfs-actions.pod:4224
27524 msgid "guestfs_lvm_set_filter"
27525 msgstr "guestfs_lvm_set_filter"
27528 #: ../src/guestfs-actions.pod:4226
27532 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27533 " char *const *devices);\n"
27537 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27538 " char *const *devices);\n"
27542 #: ../src/guestfs-actions.pod:4257
27543 msgid "guestfs_lvremove"
27544 msgstr "guestfs_lvremove"
27547 #: ../src/guestfs-actions.pod:4259
27551 " guestfs_lvremove (guestfs_h *g,\n"
27552 " const char *device);\n"
27556 " guestfs_lvremove (guestfs_h *g,\n"
27557 " const char *device);\n"
27561 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:5674
27562 #: ../src/guestfs-actions.pod:7508
27563 msgid "(Added in 1.0.13)"
27564 msgstr "(Додано у 1.0.13)"
27567 #: ../src/guestfs-actions.pod:4273
27568 msgid "guestfs_lvrename"
27569 msgstr "guestfs_lvrename"
27572 #: ../src/guestfs-actions.pod:4275
27576 " guestfs_lvrename (guestfs_h *g,\n"
27577 " const char *logvol,\n"
27578 " const char *newlogvol);\n"
27582 " guestfs_lvrename (guestfs_h *g,\n"
27583 " const char *logvol,\n"
27584 " const char *newlogvol);\n"
27588 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:7521
27589 msgid "(Added in 1.0.83)"
27590 msgstr "(Додано у 1.0.83)"
27593 #: ../src/guestfs-actions.pod:4286
27594 msgid "guestfs_lvresize"
27595 msgstr "guestfs_lvresize"
27598 #: ../src/guestfs-actions.pod:4288
27602 " guestfs_lvresize (guestfs_h *g,\n"
27603 " const char *device,\n"
27608 " guestfs_lvresize (guestfs_h *g,\n"
27609 " const char *device,\n"
27614 #: ../src/guestfs-actions.pod:4301
27615 msgid "guestfs_lvresize_free"
27616 msgstr "guestfs_lvresize_free"
27619 #: ../src/guestfs-actions.pod:4303
27623 " guestfs_lvresize_free (guestfs_h *g,\n"
27624 " const char *lv,\n"
27629 " guestfs_lvresize_free (guestfs_h *g,\n"
27630 " const char *lv,\n"
27635 #: ../src/guestfs-actions.pod:4316
27636 msgid "(Added in 1.3.3)"
27637 msgstr "(Додано у 1.3.3)"
27640 #: ../src/guestfs-actions.pod:4318
27641 msgid "guestfs_lvs"
27642 msgstr "guestfs_lvs"
27645 #: ../src/guestfs-actions.pod:4320
27649 " guestfs_lvs (guestfs_h *g);\n"
27653 " guestfs_lvs (guestfs_h *g);\n"
27657 #: ../src/guestfs-actions.pod:4329
27658 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27662 #: ../src/guestfs-actions.pod:4337
27663 msgid "guestfs_lvs_full"
27664 msgstr "guestfs_lvs_full"
27667 #: ../src/guestfs-actions.pod:4339
27670 " struct guestfs_lvm_lv_list *\n"
27671 " guestfs_lvs_full (guestfs_h *g);\n"
27674 " struct guestfs_lvm_lv_list *\n"
27675 " guestfs_lvs_full (guestfs_h *g);\n"
27679 #: ../src/guestfs-actions.pod:4345
27681 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27682 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27686 #: ../src/guestfs-actions.pod:4351
27687 msgid "guestfs_lvuuid"
27688 msgstr "guestfs_lvuuid"
27691 #: ../src/guestfs-actions.pod:4353
27695 " guestfs_lvuuid (guestfs_h *g,\n"
27696 " const char *device);\n"
27700 " guestfs_lvuuid (guestfs_h *g,\n"
27701 " const char *device);\n"
27705 #: ../src/guestfs-actions.pod:4364
27706 msgid "guestfs_lxattrlist"
27707 msgstr "guestfs_lxattrlist"
27710 #: ../src/guestfs-actions.pod:4366
27713 " struct guestfs_xattr_list *\n"
27714 " guestfs_lxattrlist (guestfs_h *g,\n"
27715 " const char *path,\n"
27716 " char *const *names);\n"
27719 " struct guestfs_xattr_list *\n"
27720 " guestfs_lxattrlist (guestfs_h *g,\n"
27721 " const char *path,\n"
27722 " char *const *names);\n"
27726 #: ../src/guestfs-actions.pod:4385
27728 "This call is intended for programs that want to efficiently list a directory "
27729 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
27730 "a similarly efficient call for getting standard stats. Very long directory "
27731 "listings might cause the protocol message size to be exceeded, causing this "
27732 "call to fail. The caller must split up such requests into smaller groups of "
27737 #: ../src/guestfs-actions.pod:4399
27738 msgid "guestfs_mkdir"
27739 msgstr "guestfs_mkdir"
27742 #: ../src/guestfs-actions.pod:4401
27746 " guestfs_mkdir (guestfs_h *g,\n"
27747 " const char *path);\n"
27751 " guestfs_mkdir (guestfs_h *g,\n"
27752 " const char *path);\n"
27756 #: ../src/guestfs-actions.pod:4411
27757 msgid "guestfs_mkdir_mode"
27758 msgstr "guestfs_mkdir_mode"
27761 #: ../src/guestfs-actions.pod:4413
27765 " guestfs_mkdir_mode (guestfs_h *g,\n"
27766 " const char *path,\n"
27771 " guestfs_mkdir_mode (guestfs_h *g,\n"
27772 " const char *path,\n"
27777 #: ../src/guestfs-actions.pod:4425
27778 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27782 #: ../src/guestfs-actions.pod:4431
27783 msgid "guestfs_mkdir_p"
27784 msgstr "guestfs_mkdir_p"
27787 #: ../src/guestfs-actions.pod:4433
27791 " guestfs_mkdir_p (guestfs_h *g,\n"
27792 " const char *path);\n"
27796 " guestfs_mkdir_p (guestfs_h *g,\n"
27797 " const char *path);\n"
27801 #: ../src/guestfs-actions.pod:4444
27802 msgid "guestfs_mkdtemp"
27803 msgstr "guestfs_mkdtemp"
27806 #: ../src/guestfs-actions.pod:4446
27810 " guestfs_mkdtemp (guestfs_h *g,\n"
27811 " const char *template);\n"
27815 " guestfs_mkdtemp (guestfs_h *g,\n"
27816 " const char *template);\n"
27820 #: ../src/guestfs-actions.pod:4474
27821 msgid "guestfs_mke2fs_J"
27822 msgstr "guestfs_mke2fs_J"
27825 #: ../src/guestfs-actions.pod:4476
27829 " guestfs_mke2fs_J (guestfs_h *g,\n"
27830 " const char *fstype,\n"
27831 " int blocksize,\n"
27832 " const char *device,\n"
27833 " const char *journal);\n"
27837 " guestfs_mke2fs_J (guestfs_h *g,\n"
27838 " const char *fstype,\n"
27839 " int blocksize,\n"
27840 " const char *device,\n"
27841 " const char *journal);\n"
27845 #: ../src/guestfs-actions.pod:4489
27846 msgid "See also C<guestfs_mke2journal>."
27850 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4511
27851 #: ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4545
27852 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4573
27853 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4909
27854 msgid "(Added in 1.0.68)"
27855 msgstr "(Додано у 1.0.68)"
27858 #: ../src/guestfs-actions.pod:4495
27859 msgid "guestfs_mke2fs_JL"
27860 msgstr "guestfs_mke2fs_JL"
27863 #: ../src/guestfs-actions.pod:4497
27867 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27868 " const char *fstype,\n"
27869 " int blocksize,\n"
27870 " const char *device,\n"
27871 " const char *label);\n"
27875 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27876 " const char *fstype,\n"
27877 " int blocksize,\n"
27878 " const char *device,\n"
27879 " const char *label);\n"
27883 #: ../src/guestfs-actions.pod:4507
27884 msgid "See also C<guestfs_mke2journal_L>."
27888 #: ../src/guestfs-actions.pod:4513
27889 msgid "guestfs_mke2fs_JU"
27890 msgstr "guestfs_mke2fs_JU"
27893 #: ../src/guestfs-actions.pod:4515
27897 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27898 " const char *fstype,\n"
27899 " int blocksize,\n"
27900 " const char *device,\n"
27901 " const char *uuid);\n"
27905 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27906 " const char *fstype,\n"
27907 " int blocksize,\n"
27908 " const char *device,\n"
27909 " const char *uuid);\n"
27913 #: ../src/guestfs-actions.pod:4525
27914 msgid "See also C<guestfs_mke2journal_U>."
27918 #: ../src/guestfs-actions.pod:4531
27919 msgid "guestfs_mke2journal"
27920 msgstr "guestfs_mke2journal"
27923 #: ../src/guestfs-actions.pod:4533
27927 " guestfs_mke2journal (guestfs_h *g,\n"
27928 " int blocksize,\n"
27929 " const char *device);\n"
27933 " guestfs_mke2journal (guestfs_h *g,\n"
27934 " int blocksize,\n"
27935 " const char *device);\n"
27939 #: ../src/guestfs-actions.pod:4547
27940 msgid "guestfs_mke2journal_L"
27941 msgstr "guestfs_mke2journal_L"
27944 #: ../src/guestfs-actions.pod:4549
27948 " guestfs_mke2journal_L (guestfs_h *g,\n"
27949 " int blocksize,\n"
27950 " const char *label,\n"
27951 " const char *device);\n"
27955 " guestfs_mke2journal_L (guestfs_h *g,\n"
27956 " int blocksize,\n"
27957 " const char *label,\n"
27958 " const char *device);\n"
27962 #: ../src/guestfs-actions.pod:4561
27963 msgid "guestfs_mke2journal_U"
27964 msgstr "guestfs_mke2journal_U"
27967 #: ../src/guestfs-actions.pod:4563
27971 " guestfs_mke2journal_U (guestfs_h *g,\n"
27972 " int blocksize,\n"
27973 " const char *uuid,\n"
27974 " const char *device);\n"
27978 " guestfs_mke2journal_U (guestfs_h *g,\n"
27979 " int blocksize,\n"
27980 " const char *uuid,\n"
27981 " const char *device);\n"
27985 #: ../src/guestfs-actions.pod:4575
27986 msgid "guestfs_mkfifo"
27987 msgstr "guestfs_mkfifo"
27990 #: ../src/guestfs-actions.pod:4577
27994 " guestfs_mkfifo (guestfs_h *g,\n"
27996 " const char *path);\n"
28000 " guestfs_mkfifo (guestfs_h *g,\n"
28002 " const char *path);\n"
28006 #: ../src/guestfs-actions.pod:4582
28008 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28009 "is just a convenient wrapper around C<guestfs_mknod>."
28013 #: ../src/guestfs-actions.pod:4592
28014 msgid "guestfs_mkfs"
28015 msgstr "guestfs_mkfs"
28018 #: ../src/guestfs-actions.pod:4594
28022 " guestfs_mkfs (guestfs_h *g,\n"
28023 " const char *fstype,\n"
28024 " const char *device);\n"
28028 " guestfs_mkfs (guestfs_h *g,\n"
28029 " const char *fstype,\n"
28030 " const char *device);\n"
28034 #: ../src/guestfs-actions.pod:4607
28035 msgid "guestfs_mkfs_b"
28036 msgstr "guestfs_mkfs_b"
28039 #: ../src/guestfs-actions.pod:4609
28043 " guestfs_mkfs_b (guestfs_h *g,\n"
28044 " const char *fstype,\n"
28045 " int blocksize,\n"
28046 " const char *device);\n"
28050 " guestfs_mkfs_b (guestfs_h *g,\n"
28051 " const char *fstype,\n"
28052 " int blocksize,\n"
28053 " const char *device);\n"
28057 #: ../src/guestfs-actions.pod:4615
28059 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28060 "block size of the resulting filesystem. Supported block sizes depend on the "
28061 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28065 #: ../src/guestfs-actions.pod:4634
28066 msgid "guestfs_mkfs_opts"
28067 msgstr "guestfs_mkfs_opts"
28070 #: ../src/guestfs-actions.pod:4636
28074 " guestfs_mkfs_opts (guestfs_h *g,\n"
28075 " const char *fstype,\n"
28076 " const char *device,\n"
28081 " guestfs_mkfs_opts (guestfs_h *g,\n"
28082 " const char *fstype,\n"
28083 " const char *device,\n"
28088 #: ../src/guestfs-actions.pod:4647
28091 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28092 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28093 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28094 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28099 #: ../src/guestfs-actions.pod:4695
28100 msgid "(Added in 1.7.19)"
28101 msgstr "(Додано у 1.7.19)"
28104 #: ../src/guestfs-actions.pod:4697
28105 msgid "guestfs_mkfs_opts_va"
28106 msgstr "guestfs_mkfs_opts_va"
28109 #: ../src/guestfs-actions.pod:4699
28113 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28114 " const char *fstype,\n"
28115 " const char *device,\n"
28116 " va_list args);\n"
28120 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28121 " const char *fstype,\n"
28122 " const char *device,\n"
28123 " va_list args);\n"
28127 #: ../src/guestfs-actions.pod:4705
28128 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28132 #: ../src/guestfs-actions.pod:4709
28133 msgid "guestfs_mkfs_opts_argv"
28134 msgstr "guestfs_mkfs_opts_argv"
28137 #: ../src/guestfs-actions.pod:4711
28141 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28142 " const char *fstype,\n"
28143 " const char *device,\n"
28144 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28148 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28149 " const char *fstype,\n"
28150 " const char *device,\n"
28151 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28155 #: ../src/guestfs-actions.pod:4717
28156 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28160 #: ../src/guestfs-actions.pod:4721
28161 msgid "guestfs_mkmountpoint"
28162 msgstr "guestfs_mkmountpoint"
28165 #: ../src/guestfs-actions.pod:4723
28169 " guestfs_mkmountpoint (guestfs_h *g,\n"
28170 " const char *exemptpath);\n"
28174 " guestfs_mkmountpoint (guestfs_h *g,\n"
28175 " const char *exemptpath);\n"
28179 #: ../src/guestfs-actions.pod:4727
28181 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28182 "that can be used to create extra mountpoints before mounting the first "
28187 #: ../src/guestfs-actions.pod:4751
28189 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
28190 "may get unexpected errors if you try to mix these calls. It is safest to "
28191 "manually unmount filesystems and remove mountpoints after use."
28195 #: ../src/guestfs-actions.pod:4755
28197 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28198 "first, so for this to work for manual mountpoints, you must ensure that the "
28199 "innermost mountpoints have the longest pathnames, as in the example code "
28204 #: ../src/guestfs-actions.pod:4762
28206 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28207 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28208 "can also trigger these issues."
28212 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:5084
28213 #: ../src/guestfs-actions.pod:6094
28214 msgid "(Added in 1.0.62)"
28215 msgstr "(Додано у 1.0.62)"
28218 #: ../src/guestfs-actions.pod:4770
28219 msgid "guestfs_mknod"
28223 #: ../src/guestfs-actions.pod:4772
28227 " guestfs_mknod (guestfs_h *g,\n"
28231 " const char *path);\n"
28236 #: ../src/guestfs-actions.pod:4787
28238 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28239 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28240 "regular file). These constants are available in the standard Linux header "
28241 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28242 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28243 "the appropriate constant for you."
28247 #: ../src/guestfs-actions.pod:4801
28248 msgid "guestfs_mknod_b"
28252 #: ../src/guestfs-actions.pod:4803
28256 " guestfs_mknod_b (guestfs_h *g,\n"
28260 " const char *path);\n"
28265 #: ../src/guestfs-actions.pod:4810
28267 "This call creates a block device node called C<path> with mode C<mode> and "
28268 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28269 "wrapper around C<guestfs_mknod>."
28273 #: ../src/guestfs-actions.pod:4820
28274 msgid "guestfs_mknod_c"
28278 #: ../src/guestfs-actions.pod:4822
28282 " guestfs_mknod_c (guestfs_h *g,\n"
28286 " const char *path);\n"
28291 #: ../src/guestfs-actions.pod:4829
28293 "This call creates a char device node called C<path> with mode C<mode> and "
28294 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28295 "wrapper around C<guestfs_mknod>."
28299 #: ../src/guestfs-actions.pod:4839
28300 msgid "guestfs_mkswap"
28304 #: ../src/guestfs-actions.pod:4841
28308 " guestfs_mkswap (guestfs_h *g,\n"
28309 " const char *device);\n"
28314 #: ../src/guestfs-actions.pod:4851
28315 msgid "guestfs_mkswap_L"
28319 #: ../src/guestfs-actions.pod:4853
28323 " guestfs_mkswap_L (guestfs_h *g,\n"
28324 " const char *label,\n"
28325 " const char *device);\n"
28330 #: ../src/guestfs-actions.pod:4868
28331 msgid "guestfs_mkswap_U"
28335 #: ../src/guestfs-actions.pod:4870
28339 " guestfs_mkswap_U (guestfs_h *g,\n"
28340 " const char *uuid,\n"
28341 " const char *device);\n"
28346 #: ../src/guestfs-actions.pod:4881
28347 msgid "guestfs_mkswap_file"
28351 #: ../src/guestfs-actions.pod:4883
28355 " guestfs_mkswap_file (guestfs_h *g,\n"
28356 " const char *path);\n"
28361 #: ../src/guestfs-actions.pod:4889
28363 "This command just writes a swap file signature to an existing file. To "
28364 "create the file itself, use something like C<guestfs_fallocate>."
28368 #: ../src/guestfs-actions.pod:4896
28369 msgid "guestfs_modprobe"
28373 #: ../src/guestfs-actions.pod:4898
28377 " guestfs_modprobe (guestfs_h *g,\n"
28378 " const char *modulename);\n"
28383 #: ../src/guestfs-actions.pod:4911
28384 msgid "guestfs_mount"
28388 #: ../src/guestfs-actions.pod:4913
28392 " guestfs_mount (guestfs_h *g,\n"
28393 " const char *device,\n"
28394 " const char *mountpoint);\n"
28399 #: ../src/guestfs-actions.pod:4932
28401 "B<Important note:> When you use this call, the filesystem options C<sync> "
28402 "and C<noatime> are set implicitly. This was originally done because we "
28403 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28404 "very large negative performance impact and negligible effect on "
28405 "reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
28406 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28407 "(use an empty string for the first parameter if you don't want any options)."
28411 #: ../src/guestfs-actions.pod:4953
28412 msgid "guestfs_mount_9p"
28416 #: ../src/guestfs-actions.pod:4955
28420 " guestfs_mount_9p (guestfs_h *g,\n"
28421 " const char *mounttag,\n"
28422 " const char *mountpoint,\n"
28428 #: ../src/guestfs-actions.pod:4966
28431 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28436 #: ../src/guestfs-actions.pod:4979
28437 msgid "guestfs_mount_9p_va"
28441 #: ../src/guestfs-actions.pod:4981
28445 " guestfs_mount_9p_va (guestfs_h *g,\n"
28446 " const char *mounttag,\n"
28447 " const char *mountpoint,\n"
28448 " va_list args);\n"
28453 #: ../src/guestfs-actions.pod:4987
28454 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28458 #: ../src/guestfs-actions.pod:4991
28459 msgid "guestfs_mount_9p_argv"
28463 #: ../src/guestfs-actions.pod:4993
28467 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28468 " const char *mounttag,\n"
28469 " const char *mountpoint,\n"
28470 " const struct guestfs_mount_9p_argv *optargs);\n"
28475 #: ../src/guestfs-actions.pod:4999
28476 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28480 #: ../src/guestfs-actions.pod:5003
28481 msgid "guestfs_mount_loop"
28485 #: ../src/guestfs-actions.pod:5005
28489 " guestfs_mount_loop (guestfs_h *g,\n"
28490 " const char *file,\n"
28491 " const char *mountpoint);\n"
28496 #: ../src/guestfs-actions.pod:5018
28497 msgid "guestfs_mount_options"
28501 #: ../src/guestfs-actions.pod:5020
28505 " guestfs_mount_options (guestfs_h *g,\n"
28506 " const char *options,\n"
28507 " const char *device,\n"
28508 " const char *mountpoint);\n"
28513 #: ../src/guestfs-actions.pod:5026
28515 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28516 "the mount options as for the L<mount(8)> I<-o> flag."
28520 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5050
28521 #: ../src/guestfs-actions.pod:5067
28522 msgid "(Added in 1.0.10)"
28526 #: ../src/guestfs-actions.pod:5038
28527 msgid "guestfs_mount_ro"
28531 #: ../src/guestfs-actions.pod:5040
28535 " guestfs_mount_ro (guestfs_h *g,\n"
28536 " const char *device,\n"
28537 " const char *mountpoint);\n"
28542 #: ../src/guestfs-actions.pod:5045
28544 "This is the same as the C<guestfs_mount> command, but it mounts the "
28545 "filesystem with the read-only (I<-o ro>) flag."
28549 #: ../src/guestfs-actions.pod:5052
28550 msgid "guestfs_mount_vfs"
28554 #: ../src/guestfs-actions.pod:5054
28558 " guestfs_mount_vfs (guestfs_h *g,\n"
28559 " const char *options,\n"
28560 " const char *vfstype,\n"
28561 " const char *device,\n"
28562 " const char *mountpoint);\n"
28567 #: ../src/guestfs-actions.pod:5061
28569 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28570 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28575 #: ../src/guestfs-actions.pod:5069
28576 msgid "guestfs_mountpoints"
28580 #: ../src/guestfs-actions.pod:5071
28584 " guestfs_mountpoints (guestfs_h *g);\n"
28589 #: ../src/guestfs-actions.pod:5074
28591 "This call is similar to C<guestfs_mounts>. That call returns a list of "
28592 "devices. This one returns a hash table (map) of device name to directory "
28593 "where the device is mounted."
28597 #: ../src/guestfs-actions.pod:5086
28598 msgid "guestfs_mounts"
28602 #: ../src/guestfs-actions.pod:5088
28606 " guestfs_mounts (guestfs_h *g);\n"
28611 #: ../src/guestfs-actions.pod:5096
28612 msgid "See also: C<guestfs_mountpoints>"
28616 #: ../src/guestfs-actions.pod:5104
28621 #: ../src/guestfs-actions.pod:5106
28625 " guestfs_mv (guestfs_h *g,\n"
28626 " const char *src,\n"
28627 " const char *dest);\n"
28632 #: ../src/guestfs-actions.pod:5118
28633 msgid "guestfs_ntfs_3g_probe"
28637 #: ../src/guestfs-actions.pod:5120
28641 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28643 " const char *device);\n"
28648 #: ../src/guestfs-actions.pod:5139
28649 msgid "(Added in 1.0.43)"
28653 #: ../src/guestfs-actions.pod:5141
28654 msgid "guestfs_ntfsresize"
28658 #: ../src/guestfs-actions.pod:5143
28662 " guestfs_ntfsresize (guestfs_h *g,\n"
28663 " const char *device);\n"
28668 #: ../src/guestfs-actions.pod:5171
28669 msgid "guestfs_ntfsresize_opts"
28673 #: ../src/guestfs-actions.pod:5173
28677 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28678 " const char *device,\n"
28684 #: ../src/guestfs-actions.pod:5183
28687 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28688 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28693 #: ../src/guestfs-actions.pod:5203
28695 "After the resize operation, the filesystem is always marked as requiring a "
28696 "consistency check (for safety). You have to boot into Windows to perform "
28697 "this check and clear this condition. If you I<don't> set the C<force> "
28698 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28699 "times on a single filesystem without booting into Windows between each "
28704 #: ../src/guestfs-actions.pod:5218
28705 msgid "guestfs_ntfsresize_opts_va"
28709 #: ../src/guestfs-actions.pod:5220
28713 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28714 " const char *device,\n"
28715 " va_list args);\n"
28720 #: ../src/guestfs-actions.pod:5225
28721 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28725 #: ../src/guestfs-actions.pod:5229
28726 msgid "guestfs_ntfsresize_opts_argv"
28730 #: ../src/guestfs-actions.pod:5231
28734 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28735 " const char *device,\n"
28736 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28741 #: ../src/guestfs-actions.pod:5236
28742 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28746 #: ../src/guestfs-actions.pod:5240
28747 msgid "guestfs_ntfsresize_size"
28751 #: ../src/guestfs-actions.pod:5242
28755 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28756 " const char *device,\n"
28757 " int64_t size);\n"
28762 #: ../src/guestfs-actions.pod:5247
28764 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28765 "to specify the new size (in bytes) explicitly."
28769 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5701
28770 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042
28771 #: ../src/guestfs-actions.pod:7665
28772 msgid "(Added in 1.3.14)"
28776 #: ../src/guestfs-actions.pod:5261
28777 msgid "guestfs_part_add"
28781 #: ../src/guestfs-actions.pod:5263
28785 " guestfs_part_add (guestfs_h *g,\n"
28786 " const char *device,\n"
28787 " const char *prlogex,\n"
28788 " int64_t startsect,\n"
28789 " int64_t endsect);\n"
28794 #: ../src/guestfs-actions.pod:5270
28796 "This command adds a partition to C<device>. If there is no partition table "
28797 "on the device, call C<guestfs_part_init> first."
28801 #: ../src/guestfs-actions.pod:5282
28803 "Creating a partition which covers the whole disk is not so easy. Use "
28804 "C<guestfs_part_disk> to do that."
28808 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5325
28809 #: ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462
28810 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519
28811 #: ../src/guestfs-actions.pod:5559
28812 msgid "(Added in 1.0.78)"
28816 #: ../src/guestfs-actions.pod:5289
28817 msgid "guestfs_part_del"
28821 #: ../src/guestfs-actions.pod:5291
28825 " guestfs_part_del (guestfs_h *g,\n"
28826 " const char *device,\n"
28832 #: ../src/guestfs-actions.pod:5306
28833 msgid "guestfs_part_disk"
28837 #: ../src/guestfs-actions.pod:5308
28841 " guestfs_part_disk (guestfs_h *g,\n"
28842 " const char *device,\n"
28843 " const char *parttype);\n"
28848 #: ../src/guestfs-actions.pod:5313
28850 "This command is simply a combination of C<guestfs_part_init> followed by "
28851 "C<guestfs_part_add> to create a single primary partition covering the whole "
28856 #: ../src/guestfs-actions.pod:5317
28858 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28859 "possible values are described in C<guestfs_part_init>."
28863 #: ../src/guestfs-actions.pod:5327
28864 msgid "guestfs_part_get_bootable"
28868 #: ../src/guestfs-actions.pod:5329
28872 " guestfs_part_get_bootable (guestfs_h *g,\n"
28873 " const char *device,\n"
28879 #: ../src/guestfs-actions.pod:5337
28880 msgid "See also C<guestfs_part_set_bootable>."
28884 #: ../src/guestfs-actions.pod:5343
28885 msgid "guestfs_part_get_mbr_id"
28889 #: ../src/guestfs-actions.pod:5345
28893 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28894 " const char *device,\n"
28900 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5535
28902 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
28903 "undefined results for other partition table types (see "
28904 "C<guestfs_part_get_parttype>)."
28908 #: ../src/guestfs-actions.pod:5361
28909 msgid "guestfs_part_get_parttype"
28913 #: ../src/guestfs-actions.pod:5363
28917 " guestfs_part_get_parttype (guestfs_h *g,\n"
28918 " const char *device);\n"
28923 #: ../src/guestfs-actions.pod:5370
28925 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28926 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
28927 "possible, although unusual. See C<guestfs_part_init> for a full list."
28931 #: ../src/guestfs-actions.pod:5380
28932 msgid "guestfs_part_init"
28936 #: ../src/guestfs-actions.pod:5382
28940 " guestfs_part_init (guestfs_h *g,\n"
28941 " const char *device,\n"
28942 " const char *parttype);\n"
28947 #: ../src/guestfs-actions.pod:5391
28949 "Initially there are no partitions. Following this, you should call "
28950 "C<guestfs_part_add> for each partition required."
28954 #: ../src/guestfs-actions.pod:5464
28955 msgid "guestfs_part_list"
28956 msgstr "guestfs_part_list"
28959 #: ../src/guestfs-actions.pod:5466
28962 " struct guestfs_partition_list *\n"
28963 " guestfs_part_list (guestfs_h *g,\n"
28964 " const char *device);\n"
28967 " struct guestfs_partition_list *\n"
28968 " guestfs_part_list (guestfs_h *g,\n"
28969 " const char *device);\n"
28973 #: ../src/guestfs-actions.pod:5483
28975 "Start of the partition I<in bytes>. To get sectors you have to divide by "
28976 "the device's sector size, see C<guestfs_blockdev_getss>."
28980 #: ../src/guestfs-actions.pod:5496
28982 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
28983 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
28988 #: ../src/guestfs-actions.pod:5502
28989 msgid "guestfs_part_set_bootable"
28993 #: ../src/guestfs-actions.pod:5504
28997 " guestfs_part_set_bootable (guestfs_h *g,\n"
28998 " const char *device,\n"
29000 " int bootable);\n"
29005 #: ../src/guestfs-actions.pod:5521
29006 msgid "guestfs_part_set_mbr_id"
29010 #: ../src/guestfs-actions.pod:5523
29014 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29015 " const char *device,\n"
29022 #: ../src/guestfs-actions.pod:5543
29023 msgid "guestfs_part_set_name"
29027 #: ../src/guestfs-actions.pod:5545
29031 " guestfs_part_set_name (guestfs_h *g,\n"
29032 " const char *device,\n"
29034 " const char *name);\n"
29039 #: ../src/guestfs-actions.pod:5561
29040 msgid "guestfs_part_to_dev"
29044 #: ../src/guestfs-actions.pod:5563
29048 " guestfs_part_to_dev (guestfs_h *g,\n"
29049 " const char *partition);\n"
29054 #: ../src/guestfs-actions.pod:5571
29056 "The named partition must exist, for example as a string returned from "
29057 "C<guestfs_list_partitions>."
29061 #: ../src/guestfs-actions.pod:5579
29062 msgid "guestfs_ping_daemon"
29066 #: ../src/guestfs-actions.pod:5581
29070 " guestfs_ping_daemon (guestfs_h *g);\n"
29075 #: ../src/guestfs-actions.pod:5593
29076 msgid "guestfs_pread"
29080 #: ../src/guestfs-actions.pod:5595
29084 " guestfs_pread (guestfs_h *g,\n"
29085 " const char *path,\n"
29087 " int64_t offset,\n"
29088 " size_t *size_r);\n"
29093 #: ../src/guestfs-actions.pod:5608
29094 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29098 #: ../src/guestfs-actions.pod:5619
29099 msgid "guestfs_pread_device"
29103 #: ../src/guestfs-actions.pod:5621
29107 " guestfs_pread_device (guestfs_h *g,\n"
29108 " const char *device,\n"
29110 " int64_t offset,\n"
29111 " size_t *size_r);\n"
29116 #: ../src/guestfs-actions.pod:5634
29117 msgid "See also C<guestfs_pread>."
29121 #: ../src/guestfs-actions.pod:5643
29122 msgid "(Added in 1.5.21)"
29126 #: ../src/guestfs-actions.pod:5645
29127 msgid "guestfs_pvcreate"
29131 #: ../src/guestfs-actions.pod:5647
29135 " guestfs_pvcreate (guestfs_h *g,\n"
29136 " const char *device);\n"
29141 #: ../src/guestfs-actions.pod:5659
29142 msgid "guestfs_pvremove"
29146 #: ../src/guestfs-actions.pod:5661
29150 " guestfs_pvremove (guestfs_h *g,\n"
29151 " const char *device);\n"
29156 #: ../src/guestfs-actions.pod:5676
29157 msgid "guestfs_pvresize"
29161 #: ../src/guestfs-actions.pod:5678
29165 " guestfs_pvresize (guestfs_h *g,\n"
29166 " const char *device);\n"
29171 #: ../src/guestfs-actions.pod:5689
29172 msgid "guestfs_pvresize_size"
29176 #: ../src/guestfs-actions.pod:5691
29180 " guestfs_pvresize_size (guestfs_h *g,\n"
29181 " const char *device,\n"
29182 " int64_t size);\n"
29187 #: ../src/guestfs-actions.pod:5696
29189 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29190 "specify the new size (in bytes) explicitly."
29194 #: ../src/guestfs-actions.pod:5703
29195 msgid "guestfs_pvs"
29199 #: ../src/guestfs-actions.pod:5705
29203 " guestfs_pvs (guestfs_h *g);\n"
29208 #: ../src/guestfs-actions.pod:5714
29209 msgid "See also C<guestfs_pvs_full>."
29213 #: ../src/guestfs-actions.pod:5722
29214 msgid "guestfs_pvs_full"
29218 #: ../src/guestfs-actions.pod:5724
29221 " struct guestfs_lvm_pv_list *\n"
29222 " guestfs_pvs_full (guestfs_h *g);\n"
29227 #: ../src/guestfs-actions.pod:5730
29229 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29230 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29234 #: ../src/guestfs-actions.pod:5736
29235 msgid "guestfs_pvuuid"
29239 #: ../src/guestfs-actions.pod:5738
29243 " guestfs_pvuuid (guestfs_h *g,\n"
29244 " const char *device);\n"
29249 #: ../src/guestfs-actions.pod:5749
29250 msgid "guestfs_pwrite"
29254 #: ../src/guestfs-actions.pod:5751
29258 " guestfs_pwrite (guestfs_h *g,\n"
29259 " const char *path,\n"
29260 " const char *content,\n"
29261 " size_t content_size,\n"
29262 " int64_t offset);\n"
29267 #: ../src/guestfs-actions.pod:5767
29268 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29272 #: ../src/guestfs-actions.pod:5776
29273 msgid "guestfs_pwrite_device"
29277 #: ../src/guestfs-actions.pod:5778
29281 " guestfs_pwrite_device (guestfs_h *g,\n"
29282 " const char *device,\n"
29283 " const char *content,\n"
29284 " size_t content_size,\n"
29285 " int64_t offset);\n"
29290 #: ../src/guestfs-actions.pod:5793
29291 msgid "See also C<guestfs_pwrite>."
29295 #: ../src/guestfs-actions.pod:5800
29296 msgid "(Added in 1.5.20)"
29300 #: ../src/guestfs-actions.pod:5802
29301 msgid "guestfs_read_file"
29305 #: ../src/guestfs-actions.pod:5804
29309 " guestfs_read_file (guestfs_h *g,\n"
29310 " const char *path,\n"
29311 " size_t *size_r);\n"
29316 #: ../src/guestfs-actions.pod:5812
29318 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29319 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
29320 "function is limited in the total size of file that can be handled."
29324 #: ../src/guestfs-actions.pod:5824
29325 msgid "(Added in 1.0.63)"
29329 #: ../src/guestfs-actions.pod:5826
29330 msgid "guestfs_read_lines"
29334 #: ../src/guestfs-actions.pod:5828
29338 " guestfs_read_lines (guestfs_h *g,\n"
29339 " const char *path);\n"
29344 #: ../src/guestfs-actions.pod:5837
29346 "Note that this function cannot correctly handle binary files (specifically, "
29347 "files containing C<\\0> character which is treated as end of line). For "
29348 "those you need to use the C<guestfs_read_file> function which has a more "
29349 "complex interface."
29353 #: ../src/guestfs-actions.pod:5848
29354 msgid "guestfs_readdir"
29358 #: ../src/guestfs-actions.pod:5850
29361 " struct guestfs_dirent_list *\n"
29362 " guestfs_readdir (guestfs_h *g,\n"
29363 " const char *dir);\n"
29368 #: ../src/guestfs-actions.pod:5904
29370 "This function is primarily intended for use by programs. To get a simple "
29371 "list of names, use C<guestfs_ls>. To get a printable directory for human "
29372 "consumption, use C<guestfs_ll>."
29376 #: ../src/guestfs-actions.pod:5908
29378 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29379 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
29383 #: ../src/guestfs-actions.pod:5914
29384 msgid "guestfs_readlink"
29388 #: ../src/guestfs-actions.pod:5916
29392 " guestfs_readlink (guestfs_h *g,\n"
29393 " const char *path);\n"
29398 #: ../src/guestfs-actions.pod:5927
29399 msgid "guestfs_readlinklist"
29403 #: ../src/guestfs-actions.pod:5929
29407 " guestfs_readlinklist (guestfs_h *g,\n"
29408 " const char *path,\n"
29409 " char *const *names);\n"
29414 #: ../src/guestfs-actions.pod:5962
29415 msgid "guestfs_realpath"
29419 #: ../src/guestfs-actions.pod:5964
29423 " guestfs_realpath (guestfs_h *g,\n"
29424 " const char *path);\n"
29429 #: ../src/guestfs-actions.pod:5976
29430 msgid "guestfs_removexattr"
29434 #: ../src/guestfs-actions.pod:5978
29438 " guestfs_removexattr (guestfs_h *g,\n"
29439 " const char *xattr,\n"
29440 " const char *path);\n"
29445 #: ../src/guestfs-actions.pod:5986
29446 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29450 #: ../src/guestfs-actions.pod:5992
29451 msgid "guestfs_resize2fs"
29455 #: ../src/guestfs-actions.pod:5994
29459 " guestfs_resize2fs (guestfs_h *g,\n"
29460 " const char *device);\n"
29465 #: ../src/guestfs-actions.pod:6001
29467 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29468 "C<device> before calling this command. For unknown reasons C<resize2fs> "
29469 "sometimes gives an error about this and sometimes not. In any case, it is "
29470 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29474 #: ../src/guestfs-actions.pod:6011
29475 msgid "guestfs_resize2fs_M"
29479 #: ../src/guestfs-actions.pod:6013
29483 " guestfs_resize2fs_M (guestfs_h *g,\n"
29484 " const char *device);\n"
29489 #: ../src/guestfs-actions.pod:6017
29491 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29492 "resized to its minimum size. This works like the I<-M> option to the "
29493 "C<resize2fs> command."
29497 #: ../src/guestfs-actions.pod:6021
29499 "To get the resulting size of the filesystem you should call "
29500 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
29501 "These two numbers, multiplied together, give the resulting size of the "
29502 "minimal filesystem in bytes."
29506 #: ../src/guestfs-actions.pod:6030
29507 msgid "guestfs_resize2fs_size"
29511 #: ../src/guestfs-actions.pod:6032
29515 " guestfs_resize2fs_size (guestfs_h *g,\n"
29516 " const char *device,\n"
29517 " int64_t size);\n"
29522 #: ../src/guestfs-actions.pod:6037
29524 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29525 "to specify the new size (in bytes) explicitly."
29529 #: ../src/guestfs-actions.pod:6044
29534 #: ../src/guestfs-actions.pod:6046
29538 " guestfs_rm (guestfs_h *g,\n"
29539 " const char *path);\n"
29544 #: ../src/guestfs-actions.pod:6056
29545 msgid "guestfs_rm_rf"
29549 #: ../src/guestfs-actions.pod:6058
29553 " guestfs_rm_rf (guestfs_h *g,\n"
29554 " const char *path);\n"
29559 #: ../src/guestfs-actions.pod:6070
29560 msgid "guestfs_rmdir"
29564 #: ../src/guestfs-actions.pod:6072
29568 " guestfs_rmdir (guestfs_h *g,\n"
29569 " const char *path);\n"
29574 #: ../src/guestfs-actions.pod:6082
29575 msgid "guestfs_rmmountpoint"
29579 #: ../src/guestfs-actions.pod:6084
29583 " guestfs_rmmountpoint (guestfs_h *g,\n"
29584 " const char *exemptpath);\n"
29589 #: ../src/guestfs-actions.pod:6088
29591 "This calls removes a mountpoint that was previously created with "
29592 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
29596 #: ../src/guestfs-actions.pod:6096
29597 msgid "guestfs_scrub_device"
29601 #: ../src/guestfs-actions.pod:6098
29605 " guestfs_scrub_device (guestfs_h *g,\n"
29606 " const char *device);\n"
29611 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131
29612 #: ../src/guestfs-actions.pod:6150
29613 msgid "(Added in 1.0.52)"
29617 #: ../src/guestfs-actions.pod:6115
29618 msgid "guestfs_scrub_file"
29622 #: ../src/guestfs-actions.pod:6117
29626 " guestfs_scrub_file (guestfs_h *g,\n"
29627 " const char *file);\n"
29632 #: ../src/guestfs-actions.pod:6133
29633 msgid "guestfs_scrub_freespace"
29637 #: ../src/guestfs-actions.pod:6135
29641 " guestfs_scrub_freespace (guestfs_h *g,\n"
29642 " const char *dir);\n"
29647 #: ../src/guestfs-actions.pod:6139
29649 "This command creates the directory C<dir> and then fills it with files until "
29650 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29651 "and deletes them. The intention is to scrub any free space on the partition "
29652 "containing C<dir>."
29656 #: ../src/guestfs-actions.pod:6152
29657 msgid "guestfs_set_append"
29661 #: ../src/guestfs-actions.pod:6154
29665 " guestfs_set_append (guestfs_h *g,\n"
29666 " const char *append);\n"
29671 #: ../src/guestfs-actions.pod:6171
29672 msgid "guestfs_set_attach_method"
29676 #: ../src/guestfs-actions.pod:6173
29680 " guestfs_set_attach_method (guestfs_h *g,\n"
29681 " const char *attachmethod);\n"
29686 #: ../src/guestfs-actions.pod:6201
29687 msgid "guestfs_set_autosync"
29691 #: ../src/guestfs-actions.pod:6203
29695 " guestfs_set_autosync (guestfs_h *g,\n"
29696 " int autosync);\n"
29701 #: ../src/guestfs-actions.pod:6219
29702 msgid "guestfs_set_direct"
29706 #: ../src/guestfs-actions.pod:6221
29710 " guestfs_set_direct (guestfs_h *g,\n"
29716 #: ../src/guestfs-actions.pod:6229
29718 "One consequence of this is that log messages aren't caught by the library "
29719 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29724 #: ../src/guestfs-actions.pod:6242
29725 msgid "guestfs_set_e2label"
29729 #: ../src/guestfs-actions.pod:6244
29733 " guestfs_set_e2label (guestfs_h *g,\n"
29734 " const char *device,\n"
29735 " const char *label);\n"
29740 #: ../src/guestfs-actions.pod:6253
29742 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29743 "the existing label on a filesystem."
29747 #: ../src/guestfs-actions.pod:6260
29748 msgid "guestfs_set_e2uuid"
29752 #: ../src/guestfs-actions.pod:6262
29756 " guestfs_set_e2uuid (guestfs_h *g,\n"
29757 " const char *device,\n"
29758 " const char *uuid);\n"
29763 #: ../src/guestfs-actions.pod:6272
29765 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29766 "the existing UUID of a filesystem."
29770 #: ../src/guestfs-actions.pod:6279
29771 msgid "guestfs_set_memsize"
29775 #: ../src/guestfs-actions.pod:6281
29779 " guestfs_set_memsize (guestfs_h *g,\n"
29785 #: ../src/guestfs-actions.pod:6285
29787 "This sets the memory size in megabytes allocated to the qemu subprocess. "
29788 "This only has any effect if called before C<guestfs_launch>."
29792 #: ../src/guestfs-actions.pod:6300
29793 msgid "guestfs_set_network"
29797 #: ../src/guestfs-actions.pod:6302
29801 " guestfs_set_network (guestfs_h *g,\n"
29807 #: ../src/guestfs-actions.pod:6312
29809 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29814 #: ../src/guestfs-actions.pod:6319
29815 msgid "guestfs_set_path"
29819 #: ../src/guestfs-actions.pod:6321
29823 " guestfs_set_path (guestfs_h *g,\n"
29824 " const char *searchpath);\n"
29829 #: ../src/guestfs-actions.pod:6336
29830 msgid "guestfs_set_pgroup"
29834 #: ../src/guestfs-actions.pod:6338
29838 " guestfs_set_pgroup (guestfs_h *g,\n"
29844 #: ../src/guestfs-actions.pod:6355
29845 msgid "guestfs_set_qemu"
29849 #: ../src/guestfs-actions.pod:6357
29853 " guestfs_set_qemu (guestfs_h *g,\n"
29854 " const char *qemu);\n"
29859 #: ../src/guestfs-actions.pod:6383
29860 msgid "guestfs_set_recovery_proc"
29864 #: ../src/guestfs-actions.pod:6385
29868 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29869 " int recoveryproc);\n"
29874 #: ../src/guestfs-actions.pod:6389
29876 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29877 "not create a recovery process. The purpose of the recovery process is to "
29878 "stop runaway qemu processes in the case where the main program aborts "
29883 #: ../src/guestfs-actions.pod:6394
29885 "This only has any effect if called before C<guestfs_launch>, and the default "
29890 #: ../src/guestfs-actions.pod:6407
29891 msgid "guestfs_set_selinux"
29895 #: ../src/guestfs-actions.pod:6409
29899 " guestfs_set_selinux (guestfs_h *g,\n"
29905 #: ../src/guestfs-actions.pod:6426
29906 msgid "guestfs_set_trace"
29910 #: ../src/guestfs-actions.pod:6428
29914 " guestfs_set_trace (guestfs_h *g,\n"
29920 #: ../src/guestfs-actions.pod:6442
29922 "Trace messages are normally sent to C<stderr>, unless you register a "
29923 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29927 #: ../src/guestfs-actions.pod:6450
29928 msgid "guestfs_set_verbose"
29932 #: ../src/guestfs-actions.pod:6452
29936 " guestfs_set_verbose (guestfs_h *g,\n"
29942 #: ../src/guestfs-actions.pod:6461
29944 "Verbose messages are normally sent to C<stderr>, unless you register a "
29945 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29949 #: ../src/guestfs-actions.pod:6469
29950 msgid "guestfs_setcon"
29954 #: ../src/guestfs-actions.pod:6471
29958 " guestfs_setcon (guestfs_h *g,\n"
29959 " const char *context);\n"
29964 #: ../src/guestfs-actions.pod:6484
29965 msgid "guestfs_setxattr"
29969 #: ../src/guestfs-actions.pod:6486
29973 " guestfs_setxattr (guestfs_h *g,\n"
29974 " const char *xattr,\n"
29975 " const char *val,\n"
29977 " const char *path);\n"
29982 #: ../src/guestfs-actions.pod:6497
29983 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
29987 #: ../src/guestfs-actions.pod:6503
29988 msgid "guestfs_sfdisk"
29992 #: ../src/guestfs-actions.pod:6505
29996 " guestfs_sfdisk (guestfs_h *g,\n"
29997 " const char *device,\n"
30001 " char *const *lines);\n"
30006 #: ../src/guestfs-actions.pod:6533
30008 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30012 #: ../src/guestfs-actions.pod:6550
30013 msgid "guestfs_sfdiskM"
30017 #: ../src/guestfs-actions.pod:6552
30021 " guestfs_sfdiskM (guestfs_h *g,\n"
30022 " const char *device,\n"
30023 " char *const *lines);\n"
30028 #: ../src/guestfs-actions.pod:6557
30030 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30031 "partition sizes are specified in megabytes only (rounded to the nearest "
30032 "cylinder) and you don't need to specify the cyls, heads and sectors "
30033 "parameters which were rarely if ever used anyway."
30037 #: ../src/guestfs-actions.pod:6563
30039 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30040 "C<guestfs_part_disk>"
30044 #: ../src/guestfs-actions.pod:6580
30045 msgid "guestfs_sfdisk_N"
30049 #: ../src/guestfs-actions.pod:6582
30053 " guestfs_sfdisk_N (guestfs_h *g,\n"
30054 " const char *device,\n"
30059 " const char *line);\n"
30064 #: ../src/guestfs-actions.pod:6594
30066 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
30067 "for the cyls/heads/sectors parameters."
30071 #: ../src/guestfs-actions.pod:6597
30072 msgid "See also: C<guestfs_part_add>"
30076 #: ../src/guestfs-actions.pod:6613
30077 msgid "guestfs_sfdisk_disk_geometry"
30081 #: ../src/guestfs-actions.pod:6615
30085 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30086 " const char *device);\n"
30091 #: ../src/guestfs-actions.pod:6619
30093 "This displays the disk geometry of C<device> read from the partition table. "
30094 "Especially in the case where the underlying block device has been resized, "
30095 "this can be different from the kernel's idea of the geometry (see "
30096 "C<guestfs_sfdisk_kernel_geometry>)."
30100 #: ../src/guestfs-actions.pod:6632
30101 msgid "guestfs_sfdisk_kernel_geometry"
30105 #: ../src/guestfs-actions.pod:6634
30109 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30110 " const char *device);\n"
30115 #: ../src/guestfs-actions.pod:6648
30116 msgid "guestfs_sfdisk_l"
30120 #: ../src/guestfs-actions.pod:6650
30124 " guestfs_sfdisk_l (guestfs_h *g,\n"
30125 " const char *device);\n"
30130 #: ../src/guestfs-actions.pod:6658
30131 msgid "See also: C<guestfs_part_list>"
30135 #: ../src/guestfs-actions.pod:6672
30140 #: ../src/guestfs-actions.pod:6674
30144 " guestfs_sh (guestfs_h *g,\n"
30145 " const char *command);\n"
30150 #: ../src/guestfs-actions.pod:6681
30151 msgid "This is like C<guestfs_command>, but passes the command to:"
30155 #: ../src/guestfs-actions.pod:6689
30156 msgid "All the provisos about C<guestfs_command> apply to this call."
30160 #: ../src/guestfs-actions.pod:6696
30161 msgid "guestfs_sh_lines"
30165 #: ../src/guestfs-actions.pod:6698
30169 " guestfs_sh_lines (guestfs_h *g,\n"
30170 " const char *command);\n"
30175 #: ../src/guestfs-actions.pod:6702
30177 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30182 #: ../src/guestfs-actions.pod:6705
30183 msgid "See also: C<guestfs_command_lines>"
30187 #: ../src/guestfs-actions.pod:6713
30188 msgid "guestfs_sleep"
30192 #: ../src/guestfs-actions.pod:6715
30196 " guestfs_sleep (guestfs_h *g,\n"
30202 #: ../src/guestfs-actions.pod:6723
30203 msgid "(Added in 1.0.41)"
30207 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
30208 msgid "guestfs_stat"
30212 #: ../src/guestfs-actions.pod:6727
30215 " struct guestfs_stat *\n"
30216 " guestfs_stat (guestfs_h *g,\n"
30217 " const char *path);\n"
30222 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-structs.pod:135
30223 msgid "guestfs_statvfs"
30227 #: ../src/guestfs-actions.pod:6743
30230 " struct guestfs_statvfs *\n"
30231 " guestfs_statvfs (guestfs_h *g,\n"
30232 " const char *path);\n"
30237 #: ../src/guestfs-actions.pod:6753
30239 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30240 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
30244 #: ../src/guestfs-actions.pod:6759
30245 msgid "guestfs_strings"
30249 #: ../src/guestfs-actions.pod:6761
30253 " guestfs_strings (guestfs_h *g,\n"
30254 " const char *path);\n"
30259 #: ../src/guestfs-actions.pod:6777
30260 msgid "guestfs_strings_e"
30264 #: ../src/guestfs-actions.pod:6779
30268 " guestfs_strings_e (guestfs_h *g,\n"
30269 " const char *encoding,\n"
30270 " const char *path);\n"
30275 #: ../src/guestfs-actions.pod:6784
30277 "This is like the C<guestfs_strings> command, but allows you to specify the "
30278 "encoding of strings that are looked for in the source file C<path>."
30282 #: ../src/guestfs-actions.pod:6794
30284 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30285 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30289 #: ../src/guestfs-actions.pod:6832
30290 msgid "guestfs_swapoff_device"
30294 #: ../src/guestfs-actions.pod:6834
30298 " guestfs_swapoff_device (guestfs_h *g,\n"
30299 " const char *device);\n"
30304 #: ../src/guestfs-actions.pod:6838
30306 "This command disables the libguestfs appliance swap device or partition "
30307 "named C<device>. See C<guestfs_swapon_device>."
30311 #: ../src/guestfs-actions.pod:6846
30312 msgid "guestfs_swapoff_file"
30316 #: ../src/guestfs-actions.pod:6848
30320 " guestfs_swapoff_file (guestfs_h *g,\n"
30321 " const char *file);\n"
30326 #: ../src/guestfs-actions.pod:6858
30327 msgid "guestfs_swapoff_label"
30331 #: ../src/guestfs-actions.pod:6860
30335 " guestfs_swapoff_label (guestfs_h *g,\n"
30336 " const char *label);\n"
30341 #: ../src/guestfs-actions.pod:6871
30342 msgid "guestfs_swapoff_uuid"
30346 #: ../src/guestfs-actions.pod:6873
30350 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30351 " const char *uuid);\n"
30356 #: ../src/guestfs-actions.pod:6884
30357 msgid "guestfs_swapon_device"
30361 #: ../src/guestfs-actions.pod:6886
30365 " guestfs_swapon_device (guestfs_h *g,\n"
30366 " const char *device);\n"
30371 #: ../src/guestfs-actions.pod:6890
30373 "This command enables the libguestfs appliance to use the swap device or "
30374 "partition named C<device>. The increased memory is made available for all "
30375 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30379 #: ../src/guestfs-actions.pod:6906
30380 msgid "guestfs_swapon_file"
30384 #: ../src/guestfs-actions.pod:6908
30388 " guestfs_swapon_file (guestfs_h *g,\n"
30389 " const char *file);\n"
30394 #: ../src/guestfs-actions.pod:6912
30396 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
30401 #: ../src/guestfs-actions.pod:6919
30402 msgid "guestfs_swapon_label"
30406 #: ../src/guestfs-actions.pod:6921
30410 " guestfs_swapon_label (guestfs_h *g,\n"
30411 " const char *label);\n"
30416 #: ../src/guestfs-actions.pod:6925
30418 "This command enables swap to a labeled swap partition. See "
30419 "C<guestfs_swapon_device> for other notes."
30423 #: ../src/guestfs-actions.pod:6932
30424 msgid "guestfs_swapon_uuid"
30428 #: ../src/guestfs-actions.pod:6934
30432 " guestfs_swapon_uuid (guestfs_h *g,\n"
30433 " const char *uuid);\n"
30438 #: ../src/guestfs-actions.pod:6938
30440 "This command enables swap to a swap partition with the given UUID. See "
30441 "C<guestfs_swapon_device> for other notes."
30445 #: ../src/guestfs-actions.pod:6945
30446 msgid "guestfs_sync"
30450 #: ../src/guestfs-actions.pod:6947
30454 " guestfs_sync (guestfs_h *g);\n"
30459 #: ../src/guestfs-actions.pod:6960
30460 msgid "guestfs_tail"
30464 #: ../src/guestfs-actions.pod:6962
30468 " guestfs_tail (guestfs_h *g,\n"
30469 " const char *path);\n"
30474 #: ../src/guestfs-actions.pod:6978
30475 msgid "guestfs_tail_n"
30479 #: ../src/guestfs-actions.pod:6980
30483 " guestfs_tail_n (guestfs_h *g,\n"
30485 " const char *path);\n"
30490 #: ../src/guestfs-actions.pod:7002
30491 msgid "guestfs_tar_in"
30495 #: ../src/guestfs-actions.pod:7004
30499 " guestfs_tar_in (guestfs_h *g,\n"
30500 " const char *tarfile,\n"
30501 " const char *directory);\n"
30506 #: ../src/guestfs-actions.pod:7012
30508 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30512 #: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034
30513 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
30514 msgid "(Added in 1.0.3)"
30518 #: ../src/guestfs-actions.pod:7019
30519 msgid "guestfs_tar_out"
30523 #: ../src/guestfs-actions.pod:7021
30527 " guestfs_tar_out (guestfs_h *g,\n"
30528 " const char *directory,\n"
30529 " const char *tarfile);\n"
30534 #: ../src/guestfs-actions.pod:7029
30536 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30537 "C<guestfs_txz_out>."
30541 #: ../src/guestfs-actions.pod:7036
30542 msgid "guestfs_tgz_in"
30546 #: ../src/guestfs-actions.pod:7038
30550 " guestfs_tgz_in (guestfs_h *g,\n"
30551 " const char *tarball,\n"
30552 " const char *directory);\n"
30557 #: ../src/guestfs-actions.pod:7046
30558 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30562 #: ../src/guestfs-actions.pod:7052
30563 msgid "guestfs_tgz_out"
30567 #: ../src/guestfs-actions.pod:7054
30571 " guestfs_tgz_out (guestfs_h *g,\n"
30572 " const char *directory,\n"
30573 " const char *tarball);\n"
30578 #: ../src/guestfs-actions.pod:7062
30579 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30583 #: ../src/guestfs-actions.pod:7068
30584 msgid "guestfs_touch"
30588 #: ../src/guestfs-actions.pod:7070
30592 " guestfs_touch (guestfs_h *g,\n"
30593 " const char *path);\n"
30598 #: ../src/guestfs-actions.pod:7085
30599 msgid "guestfs_truncate"
30603 #: ../src/guestfs-actions.pod:7087
30607 " guestfs_truncate (guestfs_h *g,\n"
30608 " const char *path);\n"
30613 #: ../src/guestfs-actions.pod:7098
30614 msgid "guestfs_truncate_size"
30618 #: ../src/guestfs-actions.pod:7100
30622 " guestfs_truncate_size (guestfs_h *g,\n"
30623 " const char *path,\n"
30624 " int64_t size);\n"
30629 #: ../src/guestfs-actions.pod:7108
30631 "If the current file size is less than C<size> then the file is extended to "
30632 "the required size with zero bytes. This creates a sparse file (ie. disk "
30633 "blocks are not allocated for the file until you write to it). To create a "
30634 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30638 #: ../src/guestfs-actions.pod:7118
30639 msgid "guestfs_tune2fs_l"
30643 #: ../src/guestfs-actions.pod:7120
30647 " guestfs_tune2fs_l (guestfs_h *g,\n"
30648 " const char *device);\n"
30653 #: ../src/guestfs-actions.pod:7140
30654 msgid "guestfs_txz_in"
30658 #: ../src/guestfs-actions.pod:7142
30662 " guestfs_txz_in (guestfs_h *g,\n"
30663 " const char *tarball,\n"
30664 " const char *directory);\n"
30669 #: ../src/guestfs-actions.pod:7154
30670 msgid "guestfs_txz_out"
30674 #: ../src/guestfs-actions.pod:7156
30678 " guestfs_txz_out (guestfs_h *g,\n"
30679 " const char *directory,\n"
30680 " const char *tarball);\n"
30685 #: ../src/guestfs-actions.pod:7168
30686 msgid "guestfs_umask"
30690 #: ../src/guestfs-actions.pod:7170
30694 " guestfs_umask (guestfs_h *g,\n"
30700 #: ../src/guestfs-actions.pod:7186
30702 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30703 "C<guestfs_mkdir>."
30707 #: ../src/guestfs-actions.pod:7195
30708 msgid "guestfs_umount"
30712 #: ../src/guestfs-actions.pod:7197
30716 " guestfs_umount (guestfs_h *g,\n"
30717 " const char *pathordevice);\n"
30722 #: ../src/guestfs-actions.pod:7209
30723 msgid "guestfs_umount_all"
30727 #: ../src/guestfs-actions.pod:7211
30731 " guestfs_umount_all (guestfs_h *g);\n"
30736 #: ../src/guestfs-actions.pod:7222
30737 msgid "guestfs_upload"
30741 #: ../src/guestfs-actions.pod:7224
30745 " guestfs_upload (guestfs_h *g,\n"
30746 " const char *filename,\n"
30747 " const char *remotefilename);\n"
30752 #: ../src/guestfs-actions.pod:7234
30753 msgid "See also C<guestfs_download>."
30757 #: ../src/guestfs-actions.pod:7245
30758 msgid "guestfs_upload_offset"
30762 #: ../src/guestfs-actions.pod:7247
30766 " guestfs_upload_offset (guestfs_h *g,\n"
30767 " const char *filename,\n"
30768 " const char *remotefilename,\n"
30769 " int64_t offset);\n"
30774 #: ../src/guestfs-actions.pod:7263
30776 "Note that there is no limit on the amount of data that can be uploaded with "
30777 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30778 "full amount unless an error occurs."
30782 #: ../src/guestfs-actions.pod:7268
30783 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30787 #: ../src/guestfs-actions.pod:7279
30788 msgid "guestfs_utimens"
30792 #: ../src/guestfs-actions.pod:7281
30796 " guestfs_utimens (guestfs_h *g,\n"
30797 " const char *path,\n"
30798 " int64_t atsecs,\n"
30799 " int64_t atnsecs,\n"
30800 " int64_t mtsecs,\n"
30801 " int64_t mtnsecs);\n"
30806 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-structs.pod:175
30807 msgid "guestfs_version"
30811 #: ../src/guestfs-actions.pod:7312
30814 " struct guestfs_version *\n"
30815 " guestfs_version (guestfs_h *g);\n"
30820 #: ../src/guestfs-actions.pod:7340
30822 "I<Note:> Don't use this call to test for availability of features. In "
30823 "enterprise distributions we backport features from later versions into "
30824 "earlier versions, making this an unreliable way to test for features. Use "
30825 "C<guestfs_available> instead."
30829 #: ../src/guestfs-actions.pod:7346
30831 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30832 "error. I<The caller must call C<guestfs_free_version> after use>."
30836 #: ../src/guestfs-actions.pod:7350
30837 msgid "(Added in 1.0.58)"
30841 #: ../src/guestfs-actions.pod:7352
30842 msgid "guestfs_vfs_label"
30846 #: ../src/guestfs-actions.pod:7354
30850 " guestfs_vfs_label (guestfs_h *g,\n"
30851 " const char *device);\n"
30856 #: ../src/guestfs-actions.pod:7363
30857 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30861 #: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
30862 msgid "(Added in 1.3.18)"
30866 #: ../src/guestfs-actions.pod:7370
30867 msgid "guestfs_vfs_type"
30871 #: ../src/guestfs-actions.pod:7372
30875 " guestfs_vfs_type (guestfs_h *g,\n"
30876 " const char *device);\n"
30881 #: ../src/guestfs-actions.pod:7389
30882 msgid "guestfs_vfs_uuid"
30886 #: ../src/guestfs-actions.pod:7391
30890 " guestfs_vfs_uuid (guestfs_h *g,\n"
30891 " const char *device);\n"
30896 #: ../src/guestfs-actions.pod:7400
30897 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
30901 #: ../src/guestfs-actions.pod:7407
30902 msgid "guestfs_vg_activate"
30906 #: ../src/guestfs-actions.pod:7409
30910 " guestfs_vg_activate (guestfs_h *g,\n"
30912 " char *const *volgroups);\n"
30917 #: ../src/guestfs-actions.pod:7426
30918 msgid "guestfs_vg_activate_all"
30922 #: ../src/guestfs-actions.pod:7428
30926 " guestfs_vg_activate_all (guestfs_h *g,\n"
30927 " int activate);\n"
30932 #: ../src/guestfs-actions.pod:7441
30933 msgid "guestfs_vgcreate"
30937 #: ../src/guestfs-actions.pod:7443
30941 " guestfs_vgcreate (guestfs_h *g,\n"
30942 " const char *volgroup,\n"
30943 " char *const *physvols);\n"
30948 #: ../src/guestfs-actions.pod:7455
30949 msgid "guestfs_vglvuuids"
30953 #: ../src/guestfs-actions.pod:7457
30957 " guestfs_vglvuuids (guestfs_h *g,\n"
30958 " const char *vgname);\n"
30963 #: ../src/guestfs-actions.pod:7464
30965 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
30966 "associate logical volumes and volume groups."
30970 #: ../src/guestfs-actions.pod:7467
30971 msgid "See also C<guestfs_vgpvuuids>."
30975 #: ../src/guestfs-actions.pod:7475
30976 msgid "guestfs_vgpvuuids"
30980 #: ../src/guestfs-actions.pod:7477
30984 " guestfs_vgpvuuids (guestfs_h *g,\n"
30985 " const char *vgname);\n"
30990 #: ../src/guestfs-actions.pod:7484
30992 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
30993 "associate physical volumes and volume groups."
30997 #: ../src/guestfs-actions.pod:7487
30998 msgid "See also C<guestfs_vglvuuids>."
31002 #: ../src/guestfs-actions.pod:7495
31003 msgid "guestfs_vgremove"
31007 #: ../src/guestfs-actions.pod:7497
31011 " guestfs_vgremove (guestfs_h *g,\n"
31012 " const char *vgname);\n"
31017 #: ../src/guestfs-actions.pod:7510
31018 msgid "guestfs_vgrename"
31022 #: ../src/guestfs-actions.pod:7512
31026 " guestfs_vgrename (guestfs_h *g,\n"
31027 " const char *volgroup,\n"
31028 " const char *newvolgroup);\n"
31033 #: ../src/guestfs-actions.pod:7523
31034 msgid "guestfs_vgs"
31038 #: ../src/guestfs-actions.pod:7525
31042 " guestfs_vgs (guestfs_h *g);\n"
31047 #: ../src/guestfs-actions.pod:7534
31048 msgid "See also C<guestfs_vgs_full>."
31052 #: ../src/guestfs-actions.pod:7542
31053 msgid "guestfs_vgs_full"
31057 #: ../src/guestfs-actions.pod:7544
31060 " struct guestfs_lvm_vg_list *\n"
31061 " guestfs_vgs_full (guestfs_h *g);\n"
31066 #: ../src/guestfs-actions.pod:7550
31068 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31069 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31073 #: ../src/guestfs-actions.pod:7556
31074 msgid "guestfs_vgscan"
31078 #: ../src/guestfs-actions.pod:7558
31082 " guestfs_vgscan (guestfs_h *g);\n"
31087 #: ../src/guestfs-actions.pod:7568
31088 msgid "guestfs_vguuid"
31092 #: ../src/guestfs-actions.pod:7570
31096 " guestfs_vguuid (guestfs_h *g,\n"
31097 " const char *vgname);\n"
31102 #: ../src/guestfs-actions.pod:7581
31103 msgid "guestfs_wait_ready"
31107 #: ../src/guestfs-actions.pod:7583
31111 " guestfs_wait_ready (guestfs_h *g);\n"
31116 #: ../src/guestfs-actions.pod:7586
31117 msgid "This function is a no op."
31121 #: ../src/guestfs-actions.pod:7588
31123 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31124 "calling C<guestfs_launch> to wait for the launch to complete. However this "
31125 "is no longer necessary because C<guestfs_launch> now does the waiting."
31129 #: ../src/guestfs-actions.pod:7593
31131 "If you see any calls to this function in code then you can just remove them, "
31132 "unless you want to retain compatibility with older versions of the API."
31136 #: ../src/guestfs-actions.pod:7599
31138 "This function is deprecated. In new code, use the C<launch> call instead."
31142 #: ../src/guestfs-actions.pod:7608
31143 msgid "guestfs_wc_c"
31147 #: ../src/guestfs-actions.pod:7610
31151 " guestfs_wc_c (guestfs_h *g,\n"
31152 " const char *path);\n"
31157 #: ../src/guestfs-actions.pod:7621
31158 msgid "guestfs_wc_l"
31162 #: ../src/guestfs-actions.pod:7623
31166 " guestfs_wc_l (guestfs_h *g,\n"
31167 " const char *path);\n"
31172 #: ../src/guestfs-actions.pod:7634
31173 msgid "guestfs_wc_w"
31177 #: ../src/guestfs-actions.pod:7636
31181 " guestfs_wc_w (guestfs_h *g,\n"
31182 " const char *path);\n"
31187 #: ../src/guestfs-actions.pod:7647
31188 msgid "guestfs_write"
31192 #: ../src/guestfs-actions.pod:7649
31196 " guestfs_write (guestfs_h *g,\n"
31197 " const char *path,\n"
31198 " const char *content,\n"
31199 " size_t content_size);\n"
31204 #: ../src/guestfs-actions.pod:7658
31205 msgid "See also C<guestfs_write_append>."
31209 #: ../src/guestfs-actions.pod:7667
31210 msgid "guestfs_write_append"
31214 #: ../src/guestfs-actions.pod:7669
31218 " guestfs_write_append (guestfs_h *g,\n"
31219 " const char *path,\n"
31220 " const char *content,\n"
31221 " size_t content_size);\n"
31226 #: ../src/guestfs-actions.pod:7678
31227 msgid "See also C<guestfs_write>."
31231 #: ../src/guestfs-actions.pod:7687
31232 msgid "guestfs_write_file"
31233 msgstr "guestfs_write_file"
31236 #: ../src/guestfs-actions.pod:7689
31240 " guestfs_write_file (guestfs_h *g,\n"
31241 " const char *path,\n"
31242 " const char *content,\n"
31247 " guestfs_write_file (guestfs_h *g,\n"
31248 " const char *path,\n"
31249 " const char *content,\n"
31254 #: ../src/guestfs-actions.pod:7720
31255 msgid "guestfs_zegrep"
31256 msgstr "guestfs_zegrep"
31259 #: ../src/guestfs-actions.pod:7722
31263 " guestfs_zegrep (guestfs_h *g,\n"
31264 " const char *regex,\n"
31265 " const char *path);\n"
31269 " guestfs_zegrep (guestfs_h *g,\n"
31270 " const char *regex,\n"
31271 " const char *path);\n"
31275 #: ../src/guestfs-actions.pod:7739
31276 msgid "guestfs_zegrepi"
31277 msgstr "guestfs_zegrepi"
31280 #: ../src/guestfs-actions.pod:7741
31284 " guestfs_zegrepi (guestfs_h *g,\n"
31285 " const char *regex,\n"
31286 " const char *path);\n"
31290 " guestfs_zegrepi (guestfs_h *g,\n"
31291 " const char *regex,\n"
31292 " const char *path);\n"
31296 #: ../src/guestfs-actions.pod:7758
31297 msgid "guestfs_zero"
31298 msgstr "guestfs_zero"
31301 #: ../src/guestfs-actions.pod:7760
31305 " guestfs_zero (guestfs_h *g,\n"
31306 " const char *device);\n"
31310 " guestfs_zero (guestfs_h *g,\n"
31311 " const char *device);\n"
31315 #: ../src/guestfs-actions.pod:7770
31317 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31318 "C<guestfs_is_zero_device>"
31322 #: ../src/guestfs-actions.pod:7782
31323 msgid "guestfs_zero_device"
31324 msgstr "guestfs_zero_device"
31327 #: ../src/guestfs-actions.pod:7784
31331 " guestfs_zero_device (guestfs_h *g,\n"
31332 " const char *device);\n"
31336 " guestfs_zero_device (guestfs_h *g,\n"
31337 " const char *device);\n"
31341 #: ../src/guestfs-actions.pod:7788
31343 "This command writes zeroes over the entire C<device>. Compare with "
31344 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31348 #: ../src/guestfs-actions.pod:7802
31349 msgid "(Added in 1.3.1)"
31350 msgstr "(Додано у 1.3.1)"
31353 #: ../src/guestfs-actions.pod:7804
31354 msgid "guestfs_zerofree"
31355 msgstr "guestfs_zerofree"
31358 #: ../src/guestfs-actions.pod:7806
31362 " guestfs_zerofree (guestfs_h *g,\n"
31363 " const char *device);\n"
31367 " guestfs_zerofree (guestfs_h *g,\n"
31368 " const char *device);\n"
31372 #: ../src/guestfs-actions.pod:7825
31373 msgid "guestfs_zfgrep"
31374 msgstr "guestfs_zfgrep"
31377 #: ../src/guestfs-actions.pod:7827
31381 " guestfs_zfgrep (guestfs_h *g,\n"
31382 " const char *pattern,\n"
31383 " const char *path);\n"
31387 " guestfs_zfgrep (guestfs_h *g,\n"
31388 " const char *pattern,\n"
31389 " const char *path);\n"
31393 #: ../src/guestfs-actions.pod:7844
31394 msgid "guestfs_zfgrepi"
31395 msgstr "guestfs_zfgrepi"
31398 #: ../src/guestfs-actions.pod:7846
31402 " guestfs_zfgrepi (guestfs_h *g,\n"
31403 " const char *pattern,\n"
31404 " const char *path);\n"
31408 " guestfs_zfgrepi (guestfs_h *g,\n"
31409 " const char *pattern,\n"
31410 " const char *path);\n"
31414 #: ../src/guestfs-actions.pod:7863
31415 msgid "guestfs_zfile"
31416 msgstr "guestfs_zfile"
31419 #: ../src/guestfs-actions.pod:7865
31423 " guestfs_zfile (guestfs_h *g,\n"
31424 " const char *meth,\n"
31425 " const char *path);\n"
31429 " guestfs_zfile (guestfs_h *g,\n"
31430 " const char *meth,\n"
31431 " const char *path);\n"
31435 #: ../src/guestfs-actions.pod:7875
31437 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31442 #: ../src/guestfs-actions.pod:7890
31443 msgid "guestfs_zgrep"
31444 msgstr "guestfs_zgrep"
31447 #: ../src/guestfs-actions.pod:7892
31451 " guestfs_zgrep (guestfs_h *g,\n"
31452 " const char *regex,\n"
31453 " const char *path);\n"
31457 " guestfs_zgrep (guestfs_h *g,\n"
31458 " const char *regex,\n"
31459 " const char *path);\n"
31463 #: ../src/guestfs-actions.pod:7909
31464 msgid "guestfs_zgrepi"
31465 msgstr "guestfs_zgrepi"
31468 #: ../src/guestfs-actions.pod:7911
31472 " guestfs_zgrepi (guestfs_h *g,\n"
31473 " const char *regex,\n"
31474 " const char *path);\n"
31478 " guestfs_zgrepi (guestfs_h *g,\n"
31479 " const char *regex,\n"
31480 " const char *path);\n"
31484 #: ../src/guestfs-availability.pod:3
31489 #: ../src/guestfs-availability.pod:5
31491 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31492 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31493 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31494 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31495 "L</guestfs_aug_save> L</guestfs_aug_set>"
31499 #: ../src/guestfs-availability.pod:21
31504 #: ../src/guestfs-availability.pod:23
31505 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31509 #: ../src/guestfs-availability.pod:26
31511 msgstr "B<inotify>"
31514 #: ../src/guestfs-availability.pod:28
31516 "The following functions: L</guestfs_inotify_add_watch> L</"
31517 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31518 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31522 #: ../src/guestfs-availability.pod:36
31523 msgid "B<linuxfsuuid>"
31524 msgstr "B<linuxfsuuid>"
31527 #: ../src/guestfs-availability.pod:38
31529 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31530 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31534 #: ../src/guestfs-availability.pod:45
31535 msgid "B<linuxmodules>"
31536 msgstr "B<linuxmodules>"
31539 #: ../src/guestfs-availability.pod:47
31540 msgid "The following functions: L</guestfs_modprobe>"
31544 #: ../src/guestfs-availability.pod:50
31545 msgid "B<linuxxattrs>"
31546 msgstr "B<linuxxattrs>"
31549 #: ../src/guestfs-availability.pod:52
31551 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31552 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31553 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31554 "guestfs_setxattr>"
31558 #: ../src/guestfs-availability.pod:63
31563 #: ../src/guestfs-availability.pod:65
31565 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31566 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31567 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31571 #: ../src/guestfs-availability.pod:74
31576 #: ../src/guestfs-availability.pod:76
31578 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31579 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31580 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31581 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31582 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31583 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31584 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31588 #: ../src/guestfs-availability.pod:99
31593 #: ../src/guestfs-availability.pod:101
31595 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31596 "guestfs_mknod_b> L</guestfs_mknod_c>"
31600 #: ../src/guestfs-availability.pod:107
31605 #: ../src/guestfs-availability.pod:109
31606 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31610 #: ../src/guestfs-availability.pod:112
31611 msgid "B<ntfsprogs>"
31612 msgstr "B<ntfsprogs>"
31615 #: ../src/guestfs-availability.pod:114
31617 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31618 "L</guestfs_ntfsresize_size>"
31622 #: ../src/guestfs-availability.pod:119
31623 msgid "B<realpath>"
31624 msgstr "B<realpath>"
31627 #: ../src/guestfs-availability.pod:121
31628 msgid "The following functions: L</guestfs_realpath>"
31632 #: ../src/guestfs-availability.pod:124
31637 #: ../src/guestfs-availability.pod:126
31639 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31640 "guestfs_scrub_freespace>"
31644 #: ../src/guestfs-availability.pod:131
31646 msgstr "B<selinux>"
31649 #: ../src/guestfs-availability.pod:133
31650 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31654 #: ../src/guestfs-availability.pod:137
31659 #: ../src/guestfs-availability.pod:139
31660 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31664 #: ../src/guestfs-availability.pod:143
31665 msgid "B<zerofree>"
31666 msgstr "B<zerofree>"
31669 #: ../src/guestfs-availability.pod:145
31670 msgid "The following functions: L</guestfs_zerofree>"
31674 #: ../src/guestfs-structs.pod:1
31675 msgid "guestfs_int_bool"
31679 #: ../src/guestfs-structs.pod:3
31682 " struct guestfs_int_bool {\n"
31690 #: ../src/guestfs-structs.pod:8
31693 " struct guestfs_int_bool_list {\n"
31694 " uint32_t len; /* Number of elements in list. */\n"
31695 " struct guestfs_int_bool *val; /* Elements. */\n"
31701 #: ../src/guestfs-structs.pod:13
31704 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31705 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31710 #: ../src/guestfs-structs.pod:16
31711 msgid "guestfs_lvm_pv"
31715 #: ../src/guestfs-structs.pod:18
31718 " struct guestfs_lvm_pv {\n"
31719 " char *pv_name;\n"
31720 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31721 " char pv_uuid[32];\n"
31723 " uint64_t pv_size;\n"
31724 " uint64_t dev_size;\n"
31725 " uint64_t pv_free;\n"
31726 " uint64_t pv_used;\n"
31727 " char *pv_attr;\n"
31728 " int64_t pv_pe_count;\n"
31729 " int64_t pv_pe_alloc_count;\n"
31730 " char *pv_tags;\n"
31731 " uint64_t pe_start;\n"
31732 " int64_t pv_mda_count;\n"
31733 " uint64_t pv_mda_free;\n"
31739 #: ../src/guestfs-structs.pod:36
31742 " struct guestfs_lvm_pv_list {\n"
31743 " uint32_t len; /* Number of elements in list. */\n"
31744 " struct guestfs_lvm_pv *val; /* Elements. */\n"
31750 #: ../src/guestfs-structs.pod:41
31753 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31754 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31759 #: ../src/guestfs-structs.pod:44
31760 msgid "guestfs_lvm_vg"
31764 #: ../src/guestfs-structs.pod:46
31767 " struct guestfs_lvm_vg {\n"
31768 " char *vg_name;\n"
31769 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31770 " char vg_uuid[32];\n"
31772 " char *vg_attr;\n"
31773 " uint64_t vg_size;\n"
31774 " uint64_t vg_free;\n"
31775 " char *vg_sysid;\n"
31776 " uint64_t vg_extent_size;\n"
31777 " int64_t vg_extent_count;\n"
31778 " int64_t vg_free_count;\n"
31779 " int64_t max_lv;\n"
31780 " int64_t max_pv;\n"
31781 " int64_t pv_count;\n"
31782 " int64_t lv_count;\n"
31783 " int64_t snap_count;\n"
31784 " int64_t vg_seqno;\n"
31785 " char *vg_tags;\n"
31786 " int64_t vg_mda_count;\n"
31787 " uint64_t vg_mda_free;\n"
31793 #: ../src/guestfs-structs.pod:69
31796 " struct guestfs_lvm_vg_list {\n"
31797 " uint32_t len; /* Number of elements in list. */\n"
31798 " struct guestfs_lvm_vg *val; /* Elements. */\n"
31804 #: ../src/guestfs-structs.pod:74
31807 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31808 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31813 #: ../src/guestfs-structs.pod:77
31814 msgid "guestfs_lvm_lv"
31818 #: ../src/guestfs-structs.pod:79
31821 " struct guestfs_lvm_lv {\n"
31822 " char *lv_name;\n"
31823 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31824 " char lv_uuid[32];\n"
31825 " char *lv_attr;\n"
31826 " int64_t lv_major;\n"
31827 " int64_t lv_minor;\n"
31828 " int64_t lv_kernel_major;\n"
31829 " int64_t lv_kernel_minor;\n"
31830 " uint64_t lv_size;\n"
31831 " int64_t seg_count;\n"
31833 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
31834 " float snap_percent;\n"
31835 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
31836 " float copy_percent;\n"
31837 " char *move_pv;\n"
31838 " char *lv_tags;\n"
31839 " char *mirror_log;\n"
31840 " char *modules;\n"
31846 #: ../src/guestfs-structs.pod:101
31849 " struct guestfs_lvm_lv_list {\n"
31850 " uint32_t len; /* Number of elements in list. */\n"
31851 " struct guestfs_lvm_lv *val; /* Elements. */\n"
31857 #: ../src/guestfs-structs.pod:106
31860 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31861 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31866 #: ../src/guestfs-structs.pod:111
31869 " struct guestfs_stat {\n"
31873 " int64_t nlink;\n"
31878 " int64_t blksize;\n"
31879 " int64_t blocks;\n"
31880 " int64_t atime;\n"
31881 " int64_t mtime;\n"
31882 " int64_t ctime;\n"
31888 #: ../src/guestfs-structs.pod:127
31891 " struct guestfs_stat_list {\n"
31892 " uint32_t len; /* Number of elements in list. */\n"
31893 " struct guestfs_stat *val; /* Elements. */\n"
31899 #: ../src/guestfs-structs.pod:132
31902 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
31903 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
31908 #: ../src/guestfs-structs.pod:137
31911 " struct guestfs_statvfs {\n"
31912 " int64_t bsize;\n"
31913 " int64_t frsize;\n"
31914 " int64_t blocks;\n"
31915 " int64_t bfree;\n"
31916 " int64_t bavail;\n"
31917 " int64_t files;\n"
31918 " int64_t ffree;\n"
31919 " int64_t favail;\n"
31922 " int64_t namemax;\n"
31928 #: ../src/guestfs-structs.pod:151
31931 " struct guestfs_statvfs_list {\n"
31932 " uint32_t len; /* Number of elements in list. */\n"
31933 " struct guestfs_statvfs *val; /* Elements. */\n"
31939 #: ../src/guestfs-structs.pod:156
31942 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
31943 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
31948 #: ../src/guestfs-structs.pod:159
31949 msgid "guestfs_dirent"
31953 #: ../src/guestfs-structs.pod:161
31956 " struct guestfs_dirent {\n"
31965 #: ../src/guestfs-structs.pod:167
31968 " struct guestfs_dirent_list {\n"
31969 " uint32_t len; /* Number of elements in list. */\n"
31970 " struct guestfs_dirent *val; /* Elements. */\n"
31976 #: ../src/guestfs-structs.pod:172
31979 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
31980 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
31985 #: ../src/guestfs-structs.pod:177
31988 " struct guestfs_version {\n"
31989 " int64_t major;\n"
31990 " int64_t minor;\n"
31991 " int64_t release;\n"
31998 #: ../src/guestfs-structs.pod:184
32001 " struct guestfs_version_list {\n"
32002 " uint32_t len; /* Number of elements in list. */\n"
32003 " struct guestfs_version *val; /* Elements. */\n"
32009 #: ../src/guestfs-structs.pod:189
32012 " void guestfs_free_version (struct guestfs_free_version *);\n"
32013 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32018 #: ../src/guestfs-structs.pod:192
32019 msgid "guestfs_xattr"
32023 #: ../src/guestfs-structs.pod:194
32026 " struct guestfs_xattr {\n"
32027 " char *attrname;\n"
32028 " /* The next two fields describe a byte array. */\n"
32029 " uint32_t attrval_len;\n"
32030 " char *attrval;\n"
32036 #: ../src/guestfs-structs.pod:201
32039 " struct guestfs_xattr_list {\n"
32040 " uint32_t len; /* Number of elements in list. */\n"
32041 " struct guestfs_xattr *val; /* Elements. */\n"
32047 #: ../src/guestfs-structs.pod:206
32050 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32051 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32056 #: ../src/guestfs-structs.pod:209
32057 msgid "guestfs_inotify_event"
32061 #: ../src/guestfs-structs.pod:211
32064 " struct guestfs_inotify_event {\n"
32065 " int64_t in_wd;\n"
32066 " uint32_t in_mask;\n"
32067 " uint32_t in_cookie;\n"
32068 " char *in_name;\n"
32074 #: ../src/guestfs-structs.pod:218
32077 " struct guestfs_inotify_event_list {\n"
32078 " uint32_t len; /* Number of elements in list. */\n"
32079 " struct guestfs_inotify_event *val; /* Elements. */\n"
32085 #: ../src/guestfs-structs.pod:223
32088 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32089 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32094 #: ../src/guestfs-structs.pod:226
32095 msgid "guestfs_partition"
32099 #: ../src/guestfs-structs.pod:228
32102 " struct guestfs_partition {\n"
32103 " int32_t part_num;\n"
32104 " uint64_t part_start;\n"
32105 " uint64_t part_end;\n"
32106 " uint64_t part_size;\n"
32112 #: ../src/guestfs-structs.pod:235
32115 " struct guestfs_partition_list {\n"
32116 " uint32_t len; /* Number of elements in list. */\n"
32117 " struct guestfs_partition *val; /* Elements. */\n"
32123 #: ../src/guestfs-structs.pod:240
32126 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32127 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32132 #: ../src/guestfs-structs.pod:243
32133 msgid "guestfs_application"
32137 #: ../src/guestfs-structs.pod:245
32140 " struct guestfs_application {\n"
32141 " char *app_name;\n"
32142 " char *app_display_name;\n"
32143 " int32_t app_epoch;\n"
32144 " char *app_version;\n"
32145 " char *app_release;\n"
32146 " char *app_install_path;\n"
32147 " char *app_trans_path;\n"
32148 " char *app_publisher;\n"
32149 " char *app_url;\n"
32150 " char *app_source_package;\n"
32151 " char *app_summary;\n"
32152 " char *app_description;\n"
32158 #: ../src/guestfs-structs.pod:260
32161 " struct guestfs_application_list {\n"
32162 " uint32_t len; /* Number of elements in list. */\n"
32163 " struct guestfs_application *val; /* Elements. */\n"
32169 #: ../src/guestfs-structs.pod:265
32172 " void guestfs_free_application (struct guestfs_free_application *);\n"
32173 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32178 #: ../src/guestfs.pod:5
32179 msgid "guestfs - Library for accessing and modifying virtual machine images"
32181 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32185 #: ../src/guestfs.pod:11
32188 " guestfs_h *g = guestfs_create ();\n"
32189 " guestfs_add_drive (g, \"guest.img\");\n"
32190 " guestfs_launch (g);\n"
32191 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32192 " guestfs_touch (g, \"/hello\");\n"
32193 " guestfs_umount (g, \"/\");\n"
32194 " guestfs_close (g);\n"
32197 " guestfs_h *g = guestfs_create ();\n"
32198 " guestfs_add_drive (g, \"guest.img\");\n"
32199 " guestfs_launch (g);\n"
32200 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32201 " guestfs_touch (g, \"/hello\");\n"
32202 " guestfs_umount (g, \"/\");\n"
32203 " guestfs_close (g);\n"
32207 #: ../src/guestfs.pod:25
32209 "Libguestfs is a library for accessing and modifying guest disk images. "
32210 "Amongst the things this is good for: making batch configuration changes to "
32211 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32212 "between virtualization systems (see also: virt-p2v), performing partial "
32213 "backups, performing partial guest clones, cloning guests and changing "
32214 "registry/UUID/hostname info, and much else besides."
32218 #: ../src/guestfs.pod:33
32220 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32221 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32222 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32227 #: ../src/guestfs.pod:38
32229 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32230 "what filesystem is in each LV, etc.). It can also run commands in the "
32231 "context of the guest. Also you can access filesystems over FUSE."
32235 #: ../src/guestfs.pod:43
32237 "Libguestfs is a library that can be linked with C and C++ management "
32238 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32239 "PHP, Haskell or C#). You can also use it from shell scripts or the command "
32244 #: ../src/guestfs.pod:48
32246 "You don't need to be root to use libguestfs, although obviously you do need "
32247 "enough permissions to access the disk images."
32251 #: ../src/guestfs.pod:51
32253 "Libguestfs is a large API because it can do many things. For a gentle "
32254 "introduction, please read the L</API OVERVIEW> section next."
32258 #: ../src/guestfs.pod:54
32260 "There are also some example programs in the L<guestfs-examples(3)> manual "
32265 #: ../src/guestfs.pod:57
32266 msgid "API OVERVIEW"
32270 #: ../src/guestfs.pod:59
32272 "This section provides a gentler overview of the libguestfs API. We also try "
32273 "to group API calls together, where that may not be obvious from reading "
32274 "about the individual calls in the main section of this manual."
32278 #: ../src/guestfs.pod:64
32283 #: ../src/guestfs.pod:66
32285 "Before you can use libguestfs calls, you have to create a handle. Then you "
32286 "must add at least one disk image to the handle, followed by launching the "
32287 "handle, then performing whatever operations you want, and finally closing "
32288 "the handle. By convention we use the single letter C<g> for the name of the "
32289 "handle variable, although of course you can use any name you want."
32293 #: ../src/guestfs.pod:73
32294 msgid "The general structure of all libguestfs-using programs looks like this:"
32298 #: ../src/guestfs.pod:76
32301 " guestfs_h *g = guestfs_create ();\n"
32304 " guestfs_h *g = guestfs_create ();\n"
32308 #: ../src/guestfs.pod:78
32311 " /* Call guestfs_add_drive additional times if there are\n"
32312 " * multiple disk images.\n"
32314 " guestfs_add_drive (g, \"guest.img\");\n"
32319 #: ../src/guestfs.pod:83
32322 " /* Most manipulation calls won't work until you've launched\n"
32323 " * the handle 'g'. You have to do this _after_ adding drives\n"
32324 " * and _before_ other commands.\n"
32326 " guestfs_launch (g);\n"
32331 #: ../src/guestfs.pod:89
32334 " /* Now you can examine what partitions, LVs etc are available.\n"
32336 " char **partitions = guestfs_list_partitions (g);\n"
32337 " char **logvols = guestfs_lvs (g);\n"
32340 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32342 " char **partitions = guestfs_list_partitions (g);\n"
32343 " char **logvols = guestfs_lvs (g);\n"
32347 #: ../src/guestfs.pod:94
32350 " /* To access a filesystem in the image, you must mount it.\n"
32352 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32355 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32357 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32361 #: ../src/guestfs.pod:98
32364 " /* Now you can perform filesystem actions on the guest\n"
32367 " guestfs_touch (g, \"/hello\");\n"
32372 #: ../src/guestfs.pod:103
32375 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
32376 " * it is done automatically when you close the handle. See\n"
32377 " * discussion of autosync in this page.\n"
32379 " guestfs_sync (g);\n"
32384 #: ../src/guestfs.pod:109
32387 " /* Close the handle 'g'. */\n"
32388 " guestfs_close (g);\n"
32391 " /* Закрити дескриптор 'g'. */\n"
32392 " guestfs_close (g);\n"
32396 #: ../src/guestfs.pod:112
32398 "The code above doesn't include any error checking. In real code you should "
32399 "check return values carefully for errors. In general all functions that "
32400 "return integers return C<-1> on error, and all functions that return "
32401 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
32402 "how to handle errors, and consult the documentation for each function call "
32403 "below to see precisely how they return error indications. See L<guestfs-"
32404 "examples(3)> for fully worked examples."
32408 #: ../src/guestfs.pod:121
32409 msgid "DISK IMAGES"
32410 msgstr "ОБРАЗИ ДИСКІВ"
32413 #: ../src/guestfs.pod:123
32415 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32416 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32417 "actual block device, or simply an empty file of zeroes that you have created "
32418 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
32423 #: ../src/guestfs.pod:129
32425 "The call you should use in modern code for adding drives is L</"
32426 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
32427 "specifying that the format is raw, do:"
32431 #: ../src/guestfs.pod:133
32434 " guestfs_add_drive_opts (g, filename,\n"
32435 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32439 " guestfs_add_drive_opts (g, filename,\n"
32440 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32445 #: ../src/guestfs.pod:137
32446 msgid "You can add a disk read-only using:"
32447 msgstr "Ви можете додати диск у режимі лише читання:"
32450 #: ../src/guestfs.pod:139
32453 " guestfs_add_drive_opts (g, filename,\n"
32454 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32455 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32459 " guestfs_add_drive_opts (g, filename,\n"
32460 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32461 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32466 #: ../src/guestfs.pod:144
32468 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
32469 "libguestfs won't modify the file."
32473 #: ../src/guestfs.pod:147
32475 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32476 "by a virtual machine. Adding it read-write will almost certainly cause disk "
32477 "corruption, but adding it read-only is safe."
32481 #: ../src/guestfs.pod:151
32483 "You must add at least one disk image, and you may add multiple disk images. "
32484 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32485 "first one you added), C</dev/sdb> (for the second one you added), etc."
32489 #: ../src/guestfs.pod:156
32491 "Once L</guestfs_launch> has been called you cannot add any more images. You "
32492 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32493 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
32497 #: ../src/guestfs.pod:161
32499 msgstr "МОНТУВАННЯ"
32502 #: ../src/guestfs.pod:163
32504 "Before you can read or write files, create directories and so on in a disk "
32505 "image that contains filesystems, you have to mount those filesystems using "
32506 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
32507 "a disk image contains (for example) one partition with a filesystem on that "
32508 "partition, then you can mount it directly:"
32512 #: ../src/guestfs.pod:170
32515 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32518 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32522 #: ../src/guestfs.pod:172
32524 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32525 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
32526 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
32527 "that these are libguestfs virtual devices, and are nothing to do with host "
32532 #: ../src/guestfs.pod:178
32534 "If you are given a disk image and you don't know what it contains then you "
32535 "have to find out. Libguestfs can do that too: use L</"
32536 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32537 "LVs, and either try mounting each to see what is mountable, or else examine "
32538 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
32539 "filesystems, use L</guestfs_list_filesystems>."
32543 #: ../src/guestfs.pod:186
32545 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32546 "L</INSPECTION> below). But you might find it easier to look at higher level "
32547 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32551 #: ../src/guestfs.pod:191
32553 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
32554 "several other variations of the C<guestfs_mount_*> call."
32558 #: ../src/guestfs.pod:194
32559 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32560 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32563 #: ../src/guestfs.pod:196
32565 "The majority of the libguestfs API consists of fairly low-level calls for "
32566 "accessing and modifying the files, directories, symlinks etc on mounted "
32567 "filesystems. There are over a hundred such calls which you can find listed "
32568 "in detail below in this man page, and we don't even pretend to cover them "
32569 "all in this overview."
32573 #: ../src/guestfs.pod:202
32575 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32578 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32579 "точкою монтування."
32582 #: ../src/guestfs.pod:205
32584 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32585 "the file called C<\"etc/passwd\"> then you could do:"
32587 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32588 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32592 #: ../src/guestfs.pod:208
32595 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32598 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32602 #: ../src/guestfs.pod:210
32604 "This would return C<data> as a newly allocated buffer containing the full "
32605 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32606 "or C<NULL> if there was an error."
32610 #: ../src/guestfs.pod:214
32612 "As another example, to create a top-level directory on that filesystem "
32613 "called C<\"var\"> you would do:"
32617 #: ../src/guestfs.pod:217
32620 " guestfs_mkdir (g, \"/var\");\n"
32623 " guestfs_mkdir (g, \"/var\");\n"
32627 #: ../src/guestfs.pod:219
32628 msgid "To create a symlink you could do:"
32629 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32632 #: ../src/guestfs.pod:221
32635 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32636 " \"/etc/rc3.d/S30portmap\");\n"
32639 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32640 " \"/etc/rc3.d/S30portmap\");\n"
32644 #: ../src/guestfs.pod:224
32646 "Libguestfs will reject attempts to use relative paths and there is no "
32647 "concept of a current working directory."
32651 #: ../src/guestfs.pod:227
32653 "Libguestfs can return errors in many situations: for example if the "
32654 "filesystem isn't writable, or if a file or directory that you requested "
32655 "doesn't exist. If you are using the C API (documented here) you have to "
32656 "check for those error conditions after each call. (Other language bindings "
32657 "turn these errors into exceptions)."
32661 #: ../src/guestfs.pod:233
32663 "File writes are affected by the per-handle umask, set by calling L</"
32664 "guestfs_umask> and defaulting to 022. See L</UMASK>."
32668 #: ../src/guestfs.pod:236
32669 msgid "PARTITIONING"
32670 msgstr "ПОДІЛ НА РОЗДІЛИ"
32673 #: ../src/guestfs.pod:238
32675 "Libguestfs contains API calls to read, create and modify partition tables on "
32680 #: ../src/guestfs.pod:241
32682 "In the common case where you want to create a single partition covering the "
32683 "whole disk, you should use the L</guestfs_part_disk> call:"
32687 #: ../src/guestfs.pod:245
32690 " const char *parttype = \"mbr\";\n"
32691 " if (disk_is_larger_than_2TB)\n"
32692 " parttype = \"gpt\";\n"
32693 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32696 " const char *parttype = \"mbr\";\n"
32697 " if (disk_is_larger_than_2TB)\n"
32698 " parttype = \"gpt\";\n"
32699 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32703 #: ../src/guestfs.pod:250
32705 "Obviously this effectively wipes anything that was on that disk image before."
32709 #: ../src/guestfs.pod:253
32714 #: ../src/guestfs.pod:255
32716 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32717 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
32718 "you familiarize yourself with the concepts of physical volumes, volume "
32719 "groups and logical volumes."
32723 #: ../src/guestfs.pod:260
32725 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32726 "tldp.org/HOWTO/LVM-HOWTO/>."
32730 #: ../src/guestfs.pod:263
32731 msgid "DOWNLOADING"
32732 msgstr "ОТРИМАННЯ ДАНИХ"
32735 #: ../src/guestfs.pod:265
32737 "Use L</guestfs_cat> to download small, text only files. This call is "
32738 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32739 "NUL (C<\\0>) characters. However the API is very simple to use."
32743 #: ../src/guestfs.pod:269
32745 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32746 "bit data, since it returns a (pointer, size) pair. However it is still "
32747 "limited to \"small\" files, less than 2 MB."
32751 #: ../src/guestfs.pod:273
32753 "L</guestfs_download> can be used to download any file, with no limits on "
32754 "content or size (even files larger than 4 GB)."
32758 #: ../src/guestfs.pod:276
32760 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32764 #: ../src/guestfs.pod:279
32766 msgstr "ВИВАНТАЖЕННЯ"
32769 #: ../src/guestfs.pod:281
32771 "It's often the case that you want to write a file or files to the disk image."
32775 #: ../src/guestfs.pod:284
32777 "To write a small file with fixed content, use L</guestfs_write>. To create "
32778 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32779 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
32780 "of other functions for creating test files, for example L</guestfs_fill> and "
32781 "L</guestfs_fill_pattern>."
32785 #: ../src/guestfs.pod:290
32787 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
32788 "file content or size (even files larger than 4 GB)."
32792 #: ../src/guestfs.pod:293
32794 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32798 #: ../src/guestfs.pod:295
32800 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32801 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32802 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
32803 "in a predictable way (eg. adding it last after all other drives) then you "
32804 "can get the device name from L</guestfs_list_devices> and mount it directly "
32805 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
32806 "portable between kernel versions, and they don't support labels or UUIDs. "
32807 "If you want to pre-build an image or you need to mount it using a label or "
32808 "UUID, use an ISO image instead."
32812 #: ../src/guestfs.pod:306
32814 msgstr "КОПІЮВАННЯ"
32817 #: ../src/guestfs.pod:308
32819 "There are various different commands for copying between files and devices "
32820 "and in and out of the guest filesystem. These are summarised in the table "
32825 #: ../src/guestfs.pod:314
32826 msgid "B<file> to B<file>"
32827 msgstr "B<файл> у B<файл>"
32830 #: ../src/guestfs.pod:316
32832 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32833 "directories recursively."
32837 #: ../src/guestfs.pod:319
32838 msgid "B<file or device> to B<file or device>"
32839 msgstr "B<файл або пристрій> у B<файл або пристрій>"
32842 #: ../src/guestfs.pod:321
32844 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32845 "devices in the guest."
32849 #: ../src/guestfs.pod:324
32850 msgid "Example: duplicate the contents of an LV:"
32854 #: ../src/guestfs.pod:326
32857 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32860 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32864 #: ../src/guestfs.pod:328
32866 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32867 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
32868 "guestfs_copy_size>."
32872 #: ../src/guestfs.pod:332
32873 msgid "B<file on the host> to B<file or device>"
32877 #: ../src/guestfs.pod:334
32878 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
32882 #: ../src/guestfs.pod:336
32883 msgid "B<file or device> to B<file on the host>"
32887 #: ../src/guestfs.pod:338
32888 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
32892 #: ../src/guestfs.pod:342
32893 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
32897 #: ../src/guestfs.pod:344
32899 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
32900 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
32901 "appears you can only upload and download to files. However many Un*x-like "
32902 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
32903 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
32904 "and arbitrary file descriptor N."
32908 #: ../src/guestfs.pod:352
32909 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
32913 #: ../src/guestfs.pod:355
32916 " guestfs_download (g, filename, \"/dev/stdout\");\n"
32919 " guestfs_download (g, filename, \"/dev/stdout\");\n"
32923 #: ../src/guestfs.pod:357
32924 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
32928 #: ../src/guestfs.pod:359
32931 " char devfd[64];\n"
32932 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
32933 " guestfs_tar_out (g, \"/\", devfd);\n"
32936 " char devfd[64];\n"
32937 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
32938 " guestfs_tar_out (g, \"/\", devfd);\n"
32942 #: ../src/guestfs.pod:363
32943 msgid "LISTING FILES"
32944 msgstr "СПИСКИ ФАЙЛІВ"
32947 #: ../src/guestfs.pod:365
32949 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
32950 "L<guestfish(1)>-equivalent command C<ll>)."
32954 #: ../src/guestfs.pod:368
32956 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
32957 "programs, as a flat list of strings."
32961 #: ../src/guestfs.pod:371
32963 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
32964 "directory, plus additional information about each one. It is more "
32965 "equivalent to using the L<readdir(3)> call on a local filesystem."
32969 #: ../src/guestfs.pod:375
32971 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
32975 #: ../src/guestfs.pod:378
32976 msgid "RUNNING COMMANDS"
32977 msgstr "ВИКОНАННЯ КОМАНД"
32980 #: ../src/guestfs.pod:380
32982 "Although libguestfs is primarily an API for manipulating files inside guest "
32983 "images, we also provide some limited facilities for running commands inside "
32988 #: ../src/guestfs.pod:384
32989 msgid "There are many limitations to this:"
32993 #: ../src/guestfs.pod:390
32995 "The kernel version that the command runs under will be different from what "
33000 #: ../src/guestfs.pod:395
33002 "If the command needs to communicate with daemons, then most likely they "
33003 "won't be running."
33007 #: ../src/guestfs.pod:400
33008 msgid "The command will be running in limited memory."
33012 #: ../src/guestfs.pod:404
33014 "The network may not be available unless you enable it (see L</"
33015 "guestfs_set_network>)."
33019 #: ../src/guestfs.pod:409
33020 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33024 #: ../src/guestfs.pod:413
33026 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33030 #: ../src/guestfs.pod:418
33032 "For SELinux guests, you may need to enable SELinux and load policy first. "
33033 "See L</SELINUX> in this manpage."
33037 #: ../src/guestfs.pod:423
33039 "I<Security:> It is not safe to run commands from untrusted, possibly "
33040 "malicious guests. These commands may attempt to exploit your program by "
33041 "sending unexpected output. They could also try to exploit the Linux kernel "
33042 "or qemu provided by the libguestfs appliance. They could use the network "
33043 "provided by the libguestfs appliance to bypass ordinary network partitions "
33044 "and firewalls. They could use the elevated privileges or different SELinux "
33045 "context of your program to their advantage."
33049 #: ../src/guestfs.pod:432
33051 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33052 "(a script which runs when the guest next boots normally), and to have this "
33053 "script run the commands you want in the normal context of the running guest, "
33054 "network security and so on. For information about other security issues, "
33055 "see L</SECURITY>."
33059 #: ../src/guestfs.pod:440
33061 "The two main API calls to run commands are L</guestfs_command> and L</"
33062 "guestfs_sh> (there are also variations)."
33066 #: ../src/guestfs.pod:443
33068 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33069 "shell globs, redirections, etc will work."
33073 #: ../src/guestfs.pod:446
33074 msgid "CONFIGURATION FILES"
33075 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33078 #: ../src/guestfs.pod:448
33080 "To read and write configuration files in Linux guest filesystems, we "
33081 "strongly recommend using Augeas. For example, Augeas understands how to "
33082 "read and write, say, a Linux shadow password file or X.org configuration "
33083 "file, and so avoids you having to write that code."
33087 #: ../src/guestfs.pod:453
33089 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
33090 "document Augeas itself here because there is excellent documentation on the "
33091 "L<http://augeas.net/> website."
33095 #: ../src/guestfs.pod:457
33097 "If you don't want to use Augeas (you fool!) then try calling L</"
33098 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33103 #: ../src/guestfs.pod:461
33108 #: ../src/guestfs.pod:463
33110 "We support SELinux guests. To ensure that labeling happens correctly in "
33111 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33115 #: ../src/guestfs.pod:471
33116 msgid "Before launching, do:"
33120 #: ../src/guestfs.pod:473
33123 " guestfs_set_selinux (g, 1);\n"
33126 " guestfs_set_selinux (g, 1);\n"
33130 #: ../src/guestfs.pod:477
33132 "After mounting the guest's filesystem(s), load the policy. This is best "
33133 "done by running the L<load_policy(8)> command in the guest itself:"
33137 #: ../src/guestfs.pod:481
33140 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33143 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33147 #: ../src/guestfs.pod:483
33149 "(Older versions of C<load_policy> require you to specify the name of the "
33154 #: ../src/guestfs.pod:488
33156 "Optionally, set the security context for the API. The correct security "
33157 "context to use can only be known by inspecting the guest. As an example:"
33161 #: ../src/guestfs.pod:492
33164 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33167 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33171 #: ../src/guestfs.pod:496
33172 msgid "This will work for running commands and editing existing files."
33176 #: ../src/guestfs.pod:498
33178 "When new files are created, you may need to label them explicitly, for "
33179 "example by running the external command C<restorecon pathname>."
33183 #: ../src/guestfs.pod:502
33188 #: ../src/guestfs.pod:504
33190 "Certain calls are affected by the current file mode creation mask (the "
33191 "\"umask\"). In particular ones which create files or directories, such as "
33192 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
33193 "either the default mode that the file is created with or modifies the mode "
33198 #: ../src/guestfs.pod:510
33200 "The default umask is C<022>, so files are created with modes such as C<0644> "
33201 "and directories with C<0755>."
33205 #: ../src/guestfs.pod:513
33207 "There are two ways to avoid being affected by umask. Either set umask to 0 "
33208 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
33209 "guestfs_chmod> after creating each file or directory."
33213 #: ../src/guestfs.pod:517
33214 msgid "For more information about umask, see L<umask(2)>."
33218 #: ../src/guestfs.pod:521
33220 "Libguestfs allows you to access Linux guests which have been encrypted using "
33221 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33222 "standard. This includes nearly all whole disk encryption systems used by "
33223 "modern Linux guests."
33227 #: ../src/guestfs.pod:527
33229 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33230 "returns the string C<crypto_LUKS>)."
33234 #: ../src/guestfs.pod:530
33236 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
33237 "will require the passphrase!"
33241 #: ../src/guestfs.pod:533
33243 "Opening a LUKS device creates a new device mapper device called C</dev/"
33244 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33245 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
33246 "from and encrypted to the underlying block device respectively."
33250 #: ../src/guestfs.pod:539
33252 "LVM volume groups on the device can be made visible by calling L</"
33253 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
33254 "(s) can now be mounted in the usual way."
33258 #: ../src/guestfs.pod:543
33260 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
33261 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33262 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
33263 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33264 "underlying encrypted block device)."
33268 #: ../src/guestfs.pod:550
33273 #: ../src/guestfs.pod:552
33275 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33276 "contains operating systems, an install CD or a live CD. (These APIs used to "
33277 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33278 "version 1.5.3 the most frequently used part of this library has been "
33279 "rewritten in C and moved into the core code)."
33283 #: ../src/guestfs.pod:559
33285 "Add all disks belonging to the unknown virtual machine and call L</"
33286 "guestfs_launch> in the usual way."
33290 #: ../src/guestfs.pod:562
33292 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
33293 "and certain heuristics, and returns a list of operating systems that were "
33294 "found. An empty list means none were found. A single element is the root "
33295 "filesystem of the operating system. For dual- or multi-boot guests, "
33296 "multiple roots can be returned, each one corresponding to a separate "
33297 "operating system. (Multi-boot virtual machines are extremely rare in the "
33298 "world of virtualization, but since this scenario can happen, we have built "
33299 "libguestfs to deal with it.)"
33303 #: ../src/guestfs.pod:571
33305 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33306 "to get additional details about that operating system. For example, call L</"
33307 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33308 "Windows and Linux-based operating systems respectively."
33312 #: ../src/guestfs.pod:577
33314 "Un*x-like and Linux-based operating systems usually consist of several "
33315 "filesystems which are mounted at boot time (for example, a separate boot "
33316 "partition mounted on C</boot>). The inspection rules are able to detect how "
33317 "filesystems correspond to mount points. Call "
33318 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
33319 "hash table like this example:"
33323 #: ../src/guestfs.pod:584
33326 " /boot => /dev/sda1\n"
33327 " / => /dev/vg_guest/lv_root\n"
33328 " /usr => /dev/vg_guest/lv_usr\n"
33331 " /boot => /dev/sda1\n"
33332 " / => /dev/vg_guest/lv_root\n"
33333 " /usr => /dev/vg_guest/lv_usr\n"
33337 #: ../src/guestfs.pod:588
33339 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33340 "filesystems as suggested."
33344 #: ../src/guestfs.pod:591
33346 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33347 "usr>). Sorting the keys of the hash by length, shortest first, should work."
33351 #: ../src/guestfs.pod:595
33353 "Inspection currently only works for some common operating systems. "
33354 "Contributors are welcome to send patches for other operating systems that we "
33355 "currently cannot detect."
33359 #: ../src/guestfs.pod:599
33361 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
33362 "for more details. The L</guestfs_inspect_os> function just ignores any "
33363 "encrypted devices."
33367 #: ../src/guestfs.pod:603
33369 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33370 "inspection and caches the results in the guest handle. Subsequent calls to "
33371 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33372 "read the disks. If you change the content of the guest disks, you can redo "
33373 "inspection by calling L</guestfs_inspect_os> again. (L</"
33374 "guestfs_inspect_list_applications> works a little differently from the other "
33375 "calls and does read the disks. See documentation for that function for "
33380 #: ../src/guestfs.pod:612
33381 msgid "INSPECTING INSTALL DISKS"
33385 #: ../src/guestfs.pod:614
33387 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33392 #: ../src/guestfs.pod:617
33394 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33395 "system, which currently can be C<installed> (a regular operating system) or "
33396 "C<installer> (some sort of install disk)."
33400 #: ../src/guestfs.pod:621
33402 "Further information is available about the operating system that can be "
33403 "installed using the regular inspection APIs like L</"
33404 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33408 #: ../src/guestfs.pod:626
33410 "Some additional information specific to installer disks is also available "
33411 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33412 "guestfs_inspect_is_multipart> calls."
33416 #: ../src/guestfs.pod:631
33417 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33421 #: ../src/guestfs.pod:633
33423 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
33424 "ntfs-3g.org/> driver."
33428 #: ../src/guestfs.pod:636
33429 msgid "DRIVE LETTERS AND PATHS"
33430 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33433 #: ../src/guestfs.pod:638
33435 "DOS and Windows still use drive letters, and the filesystems are always "
33436 "treated as case insensitive by Windows itself, and therefore you might find "
33437 "a Windows configuration file referring to a path like C<c:\\windows"
33438 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
33439 "might be referred to as C</WINDOWS/System32>."
33443 #: ../src/guestfs.pod:644
33445 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33446 "L</guestfs_inspect_get_drive_mappings>)"
33450 #: ../src/guestfs.pod:647
33452 "Dealing with separator characters (backslash vs forward slash) is outside "
33453 "the scope of libguestfs, but usually a simple character replacement will "
33458 #: ../src/guestfs.pod:651
33460 "To resolve the case insensitivity of paths, call L</"
33461 "guestfs_case_sensitive_path>."
33465 #: ../src/guestfs.pod:654
33466 msgid "ACCESSING THE WINDOWS REGISTRY"
33467 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33470 #: ../src/guestfs.pod:656
33472 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33473 "files, through the library C<hivex> which is part of the libguestfs project "
33474 "although ships as a separate tarball. You have to locate and download the "
33475 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
33476 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33477 "reg(1)> for more help on this issue."
33481 #: ../src/guestfs.pod:664
33482 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33483 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33486 #: ../src/guestfs.pod:666
33488 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33489 "provide something which looks like a Linux symlink. The way it tries to do "
33490 "the rewriting is described here:"
33494 #: ../src/guestfs.pod:670
33496 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33499 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33503 #: ../src/guestfs.pod:672
33505 "The essential problem is that ntfs-3g simply does not have enough "
33506 "information to do a correct job. NTFS links can contain drive letters and "
33507 "references to external device GUIDs that ntfs-3g has no way of resolving. "
33508 "It is almost certainly the case that libguestfs callers should ignore what "
33509 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33513 #: ../src/guestfs.pod:679
33515 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33516 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33517 "attribute, and read the raw reparse data from that (you can find the format "
33518 "documented in various places around the web)."
33522 #: ../src/guestfs.pod:684
33523 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33527 #: ../src/guestfs.pod:686
33529 "There are other useful extended attributes that can be read from ntfs-3g "
33530 "filesystems (using L</guestfs_getxattr>). See:"
33534 #: ../src/guestfs.pod:689
33536 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33538 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33541 #: ../src/guestfs.pod:691
33542 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33543 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33546 #: ../src/guestfs.pod:693
33548 "Although we don't want to discourage you from using the C API, we will "
33549 "mention here that the same API is also available in other languages."
33553 #: ../src/guestfs.pod:696
33555 "The API is broadly identical in all supported languages. This means that "
33556 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33557 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33558 "OCaml. In other words, a straightforward, predictable isomorphism between "
33563 #: ../src/guestfs.pod:702
33565 "Error messages are automatically transformed into exceptions if the language "
33570 #: ../src/guestfs.pod:705
33572 "We don't try to \"object orientify\" parts of the API in OO languages, "
33573 "although contributors are welcome to write higher level APIs above what we "
33574 "provide in their favourite languages if they wish."
33578 #: ../src/guestfs.pod:711
33583 #: ../src/guestfs.pod:713
33585 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
33586 "identical to the C API. C++ classes and exceptions are not used."
33590 #: ../src/guestfs.pod:717
33595 #: ../src/guestfs.pod:719
33597 "The C# bindings are highly experimental. Please read the warnings at the "
33598 "top of C<csharp/Libguestfs.cs>."
33602 #: ../src/guestfs.pod:722
33604 msgstr "B<Haskell>"
33607 #: ../src/guestfs.pod:724
33609 "This is the only language binding that is working but incomplete. Only "
33610 "calls which return simple integers have been bound in Haskell, and we are "
33611 "looking for help to complete this binding."
33615 #: ../src/guestfs.pod:728
33620 #: ../src/guestfs.pod:730
33622 "Full documentation is contained in the Javadoc which is distributed with "
33623 "libguestfs. For examples, see L<guestfs-java(3)>."
33627 #: ../src/guestfs.pod:733
33632 #: ../src/guestfs.pod:735
33633 msgid "See L<guestfs-ocaml(3)>."
33634 msgstr "Див. L<guestfs-ocaml(3)>."
33637 #: ../src/guestfs.pod:737
33642 #: ../src/guestfs.pod:739
33643 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33644 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33647 #: ../src/guestfs.pod:741
33652 #: ../src/guestfs.pod:743
33654 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33655 "the php-libguestfs package for your distribution."
33659 #: ../src/guestfs.pod:746
33660 msgid "The PHP binding only works correctly on 64 bit machines."
33664 #: ../src/guestfs.pod:748
33669 #: ../src/guestfs.pod:750
33670 msgid "See L<guestfs-python(3)>."
33671 msgstr "Див. L<guestfs-python(3)>."
33674 #: ../src/guestfs.pod:752
33679 #: ../src/guestfs.pod:754
33680 msgid "See L<guestfs-ruby(3)>."
33681 msgstr "Див. L<guestfs-ruby(3)>."
33684 #: ../src/guestfs.pod:756
33685 msgid "B<shell scripts>"
33686 msgstr "B<скрипти оболонки>"
33689 #: ../src/guestfs.pod:758
33690 msgid "See L<guestfish(1)>."
33691 msgstr "Див. L<guestfish(1)>."
33694 #: ../src/guestfs.pod:762
33695 msgid "LIBGUESTFS GOTCHAS"
33699 #: ../src/guestfs.pod:764
33701 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33702 "system [...] that works in the way it is documented but is counterintuitive "
33703 "and almost invites mistakes.\""
33707 #: ../src/guestfs.pod:768
33709 "Since we developed libguestfs and the associated tools, there are several "
33710 "things we would have designed differently, but are now stuck with for "
33711 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
33712 "release, you can expect these to change. Beware of them."
33716 #: ../src/guestfs.pod:776
33717 msgid "Autosync / forgetting to sync."
33721 #: ../src/guestfs.pod:778
33723 "I<Update:> Autosync is enabled by default for all API users starting from "
33724 "libguestfs 1.5.24. This section only applies to older versions."
33728 #: ../src/guestfs.pod:781
33730 "When modifying a filesystem from C or another language, you B<must> unmount "
33731 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33732 "libguestfs handle. You can also call:"
33736 #: ../src/guestfs.pod:785
33739 " guestfs_set_autosync (g, 1);\n"
33742 " guestfs_set_autosync (g, 1);\n"
33746 #: ../src/guestfs.pod:787
33748 "to have the unmount/sync done automatically for you when the handle 'g' is "
33749 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33753 #: ../src/guestfs.pod:791
33755 "If you forget to do this, then it is entirely possible that your changes "
33756 "won't be written out, or will be partially written, or (very rarely) that "
33757 "you'll get disk corruption."
33761 #: ../src/guestfs.pod:795
33763 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
33764 "guestfish scripts that forget to sync will work just fine, which can make "
33765 "this very puzzling if you are trying to debug a problem."
33769 #: ../src/guestfs.pod:799
33770 msgid "Mount option C<-o sync> should not be the default."
33774 #: ../src/guestfs.pod:801
33776 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
33777 "However C<-o sync> does not add any reliability benefit, but does have a "
33778 "very large performance impact."
33782 #: ../src/guestfs.pod:805
33784 "The work around is to use L</guestfs_mount_options> and set the mount "
33785 "options that you actually want to use."
33789 #: ../src/guestfs.pod:808
33790 msgid "Read-only should be the default."
33794 #: ../src/guestfs.pod:810
33796 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33797 "specify I<--rw> if you want to make changes to the image."
33801 #: ../src/guestfs.pod:813
33802 msgid "This would reduce the potential to corrupt live VM images."
33806 #: ../src/guestfs.pod:815
33808 "Note that many filesystems change the disk when you just mount and unmount, "
33809 "even if you didn't perform any writes. You need to use L</"
33810 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33814 #: ../src/guestfs.pod:819
33815 msgid "guestfish command line is hard to use."
33819 #: ../src/guestfs.pod:821
33821 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33822 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
33823 "exist, so it fails. In earlier versions of guestfish the error message was "
33824 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
33825 "we should have used C<guestfish -c command> to run commands."
33829 #: ../src/guestfs.pod:828
33830 msgid "guestfish megabyte modifiers don't work right on all commands"
33834 #: ../src/guestfs.pod:830
33836 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33837 "other modifiers). What guestfish actually does is to multiply the number "
33838 "part by the modifier part and pass the result to the C API. However this "
33839 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33840 "expecting some other unit (eg. megabytes)."
33844 #: ../src/guestfs.pod:837
33845 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
33849 #: ../src/guestfs.pod:839
33852 " lvcreate LV VG 100M\n"
33855 " lvcreate LV VG 100M\n"
33859 #: ../src/guestfs.pod:841
33861 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
33862 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33863 "megabytes * megabytes) logical volume. The error message you get from this "
33864 "is also a little obscure."
33868 #: ../src/guestfs.pod:846
33870 "This could be fixed in the generator by specially marking parameters and "
33871 "return values which take bytes or other units."
33875 #: ../src/guestfs.pod:849
33876 msgid "Ambiguity between devices and paths"
33880 #: ../src/guestfs.pod:851
33882 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
33883 "sdb2>) and a similar pathname. A file might just happen to be called "
33884 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
33888 #: ../src/guestfs.pod:856
33890 "In the current API we usually resolve this ambiguity by having two separate "
33891 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
33892 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
33893 "detecting if the path supplied begins with C</dev/>."
33897 #: ../src/guestfs.pod:862
33899 "To avoid both the ambiguity and the need to duplicate some calls, we could "
33900 "make paths/devices into structured names. One way to do this would be to "
33901 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
33902 "aspect of grub. Another way would be to use a structured type, equivalent "
33903 "to this OCaml type:"
33907 #: ../src/guestfs.pod:868
33910 " type path = Path of string | Device of int | Partition of int * int\n"
33915 #: ../src/guestfs.pod:870
33916 msgid "which would allow you to pass arguments like:"
33920 #: ../src/guestfs.pod:872
33923 " Path \"/foo/bar\"\n"
33924 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
33925 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
33926 " Path \"/dev/sdb2\" (* not a device *)\n"
33931 #: ../src/guestfs.pod:877
33933 "As you can see there are still problems to resolve even with this "
33934 "representation. Also consider how it might work in guestfish."
33938 #: ../src/guestfs.pod:882
33939 msgid "KEYS AND PASSPHRASES"
33940 msgstr "КЛЮЧІ І ПАРОЛІ"
33943 #: ../src/guestfs.pod:884
33945 "Certain libguestfs calls take a parameter that contains sensitive key "
33946 "material, passed in as a C string."
33950 #: ../src/guestfs.pod:887
33952 "In the future we would hope to change the libguestfs implementation so that "
33953 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
33954 "swap. However this is I<not> done at the moment, because of the complexity "
33955 "of such an implementation."
33959 #: ../src/guestfs.pod:892
33961 "Therefore you should be aware that any key parameter you pass to libguestfs "
33962 "might end up being written out to the swap partition. If this is a concern, "
33963 "scrub the swap partition or don't use libguestfs on encrypted devices."
33967 #: ../src/guestfs.pod:897
33968 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
33972 #: ../src/guestfs.pod:899
33974 "All high-level libguestfs actions are synchronous. If you want to use "
33975 "libguestfs asynchronously then you must create a thread."
33979 #: ../src/guestfs.pod:902
33981 "Only use the handle from a single thread. Either use the handle exclusively "
33982 "from one thread, or provide your own mutex so that two threads cannot issue "
33983 "calls on the same handle at the same time."
33987 #: ../src/guestfs.pod:906
33989 "See the graphical program guestfs-browser for one possible architecture for "
33990 "multithreaded programs using libvirt and libguestfs."
33994 #: ../src/guestfs.pod:909
33999 #: ../src/guestfs.pod:911
34001 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34006 #: ../src/guestfs.pod:914
34008 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34009 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34013 #: ../src/guestfs.pod:917
34015 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34016 "to change the directories that libguestfs will search in. The value is a "
34017 "colon-separated list of paths. The current directory is I<not> searched "
34018 "unless the path contains an empty element or C<.>. For example "
34019 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34020 "then C</usr/lib/guestfs>."
34024 #: ../src/guestfs.pod:924
34025 msgid "QEMU WRAPPERS"
34029 #: ../src/guestfs.pod:926
34031 "If you want to compile your own qemu, run qemu from a non-standard location, "
34032 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34037 #: ../src/guestfs.pod:930
34039 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34040 "last command in the shell script (so that qemu replaces the shell and "
34041 "becomes the direct child of the libguestfs-using program). If you don't do "
34042 "this, then the qemu process won't be cleaned up correctly."
34046 #: ../src/guestfs.pod:935
34048 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34053 #: ../src/guestfs.pod:938
34057 " qemudir=/home/rjones/d/qemu\n"
34058 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34062 " qemudir=/home/rjones/d/qemu\n"
34063 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34067 #: ../src/guestfs.pod:942
34069 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34070 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
34075 #: ../src/guestfs.pod:946
34078 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34081 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34085 #: ../src/guestfs.pod:948
34087 "Note that libguestfs also calls qemu with the -help and -version options in "
34088 "order to determine features."
34092 #: ../src/guestfs.pod:951
34093 msgid "ATTACHING TO RUNNING DAEMONS"
34094 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34097 #: ../src/guestfs.pod:953
34099 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34100 "babies. Use with caution."
34104 #: ../src/guestfs.pod:956
34106 "I<Note (2):> This section explains how to attach to a running daemon from a "
34107 "low level perspective. For most users, simply using virt tools such as "
34108 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34112 #: ../src/guestfs.pod:960
34113 msgid "Using guestfs_set_attach_method"
34114 msgstr "За допомогою guestfs_set_attach_method"
34117 #: ../src/guestfs.pod:962
34119 "By calling L</guestfs_set_attach_method> you can change how the library "
34120 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34121 "ARCHITECTURE> for some background)."
34125 #: ../src/guestfs.pod:966
34127 "The normal attach method is C<appliance>, where a small appliance is created "
34128 "containing the daemon, and then the library connects to this."
34132 #: ../src/guestfs.pod:969
34134 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34135 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34136 "daemon over the Unix domain socket."
34140 #: ../src/guestfs.pod:973
34142 "The normal use for this is to connect to a running virtual machine that "
34143 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34144 "files inside the live virtual machine."
34148 #: ../src/guestfs.pod:977
34149 msgid "Using guestfs_add_domain with live flag"
34150 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34153 #: ../src/guestfs.pod:979
34155 "L</guestfs_add_domain> provides some help for getting the correct attach "
34156 "method. If you pass the C<live> option to this function, then (if the "
34157 "virtual machine is running) it will examine the libvirt XML looking for a "
34158 "virtio-serial channel to connect to:"
34162 #: ../src/guestfs.pod:985
34169 " <channel type='unix'>\n"
34170 " <source mode='bind' path='/path/to/socket'/>\n"
34171 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34182 " <channel type='unix'>\n"
34183 " <source mode='bind' path='/path/to/socket'/>\n"
34184 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34192 #: ../src/guestfs.pod:997
34194 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34195 "method to C<unix:/path/to/socket>."
34199 #: ../src/guestfs.pod:1000
34201 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34202 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34203 "to attach to and modify live virtual machines."
34207 #: ../src/guestfs.pod:1004
34209 "The virtual machine needs to have been set up beforehand so that it has the "
34210 "virtio-serial channel and so that guestfsd is running inside it."
34214 #: ../src/guestfs.pod:1008
34215 msgid "ABI GUARANTEE"
34216 msgstr "ГАРАНТІЯ ЩОДО ABI"
34219 #: ../src/guestfs.pod:1010
34221 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34222 "actions as outlined in this section. Although we will deprecate some "
34223 "actions, for example if they get replaced by newer calls, we will keep the "
34224 "old actions forever. This allows you the developer to program in confidence "
34225 "against the libguestfs API."
34229 #: ../src/guestfs.pod:1016
34230 msgid "BLOCK DEVICE NAMING"
34231 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34234 #: ../src/guestfs.pod:1018
34236 "In the kernel there is now quite a profusion of schemata for naming block "
34237 "devices (in this context, by I<block device> I mean a physical or virtual "
34238 "hard drive). The original Linux IDE driver used names starting with C</dev/"
34239 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
34240 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
34241 "for the old IDE driver (particularly for SATA devices) those devices also "
34242 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
34243 "paravirtualized drivers. This has created several different naming systems, "
34244 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34248 #: ../src/guestfs.pod:1030
34250 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34251 "Linux kernel to access block devices. We can run a variety of appliances "
34252 "based on a variety of Linux kernels."
34256 #: ../src/guestfs.pod:1034
34258 "This causes a problem for libguestfs because many API calls use device or "
34259 "partition names. Working scripts and the recipe (example) scripts that we "
34260 "make available over the internet could fail if the naming scheme changes."
34264 #: ../src/guestfs.pod:1039
34266 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
34267 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34268 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34269 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34273 #: ../src/guestfs.pod:1045
34275 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
34276 "L</guestfs_list_partitions> and similar calls return the true names of the "
34277 "devices and partitions as known to the appliance."
34281 #: ../src/guestfs.pod:1050
34282 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34286 #: ../src/guestfs.pod:1052
34288 "Usually this translation is transparent. However in some (very rare) cases "
34289 "you may need to know the exact algorithm. Such cases include where you use "
34290 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34291 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34295 #: ../src/guestfs.pod:1058
34297 "The algorithm is applied only to I<parameters> which are known to be either "
34298 "device or partition names. Return values from functions such as L</"
34299 "guestfs_list_devices> are never changed."
34303 #: ../src/guestfs.pod:1066
34304 msgid "Is the string a parameter which is a device or partition name?"
34308 #: ../src/guestfs.pod:1070
34309 msgid "Does the string begin with C</dev/sd>?"
34310 msgstr "Чи починається рядок з C</dev/sd>?"
34313 #: ../src/guestfs.pod:1074
34315 "Does the named device exist? If so, we use that device. However if I<not> "
34316 "then we continue with this algorithm."
34320 #: ../src/guestfs.pod:1079
34321 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34325 #: ../src/guestfs.pod:1081
34326 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34330 #: ../src/guestfs.pod:1083
34331 msgid "If that named device exists, use it. If not, continue."
34335 #: ../src/guestfs.pod:1087
34336 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34340 #: ../src/guestfs.pod:1089
34341 msgid "If that named device exists, use it. If not, return an error."
34345 #: ../src/guestfs.pod:1093
34346 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34350 #: ../src/guestfs.pod:1095
34352 "Although the standard naming scheme and automatic translation is useful for "
34353 "simple programs and guestfish scripts, for larger programs it is best not to "
34354 "rely on this mechanism."
34358 #: ../src/guestfs.pod:1099
34360 "Where possible for maximum future portability programs using libguestfs "
34361 "should use these future-proof techniques:"
34365 #: ../src/guestfs.pod:1106
34367 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34368 "device names, and then use those names directly."
34372 #: ../src/guestfs.pod:1109
34374 "Since those device names exist by definition, they will never be translated."
34378 #: ../src/guestfs.pod:1114
34380 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34381 "filesystem labels."
34385 #: ../src/guestfs.pod:1119
34390 #: ../src/guestfs.pod:1121
34392 "This section discusses security implications of using libguestfs, "
34393 "particularly with untrusted or malicious guests or disk images."
34397 #: ../src/guestfs.pod:1124
34398 msgid "GENERAL SECURITY CONSIDERATIONS"
34399 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34402 #: ../src/guestfs.pod:1126
34404 "Be careful with any files or data that you download from a guest (by "
34405 "\"download\" we mean not just the L</guestfs_download> command but any "
34406 "command that reads files, filenames, directories or anything else from a "
34407 "disk image). An attacker could manipulate the data to fool your program "
34408 "into doing the wrong thing. Consider cases such as:"
34412 #: ../src/guestfs.pod:1136
34413 msgid "the data (file etc) not being present"
34417 #: ../src/guestfs.pod:1140
34418 msgid "being present but empty"
34422 #: ../src/guestfs.pod:1144
34423 msgid "being much larger than normal"
34427 #: ../src/guestfs.pod:1148
34428 msgid "containing arbitrary 8 bit data"
34432 #: ../src/guestfs.pod:1152
34433 msgid "being in an unexpected character encoding"
34437 #: ../src/guestfs.pod:1156
34438 msgid "containing homoglyphs."
34442 #: ../src/guestfs.pod:1160
34443 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34444 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34447 #: ../src/guestfs.pod:1162
34449 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34450 "(VFS) module can sometimes be escalated into exploits by deliberately "
34451 "creating a malicious, malformed filesystem. These exploits are very severe "
34452 "for two reasons. Firstly there are very many filesystem drivers in the "
34453 "kernel, and many of them are infrequently used and not much developer "
34454 "attention has been paid to the code. Linux userspace helps potential "
34455 "crackers by detecting the filesystem type and automatically choosing the "
34456 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34457 "the administrator. Secondly, a kernel-level exploit is like a local root "
34458 "exploit (worse in some ways), giving immediate and total access to the "
34459 "system right down to the hardware level."
34463 #: ../src/guestfs.pod:1175
34465 "That explains why you should never mount a filesystem from an untrusted "
34466 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
34467 "inside a qemu virtual machine, usually running as a non-root user. The "
34468 "attacker would need to write a filesystem which first exploited the kernel, "
34469 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34470 "the libguestfs protocol, and finally to be as serious as the host kernel "
34471 "exploit it would need to escalate its privileges to root. This multi-step "
34472 "escalation, performed by a static piece of data, is thought to be extremely "
34473 "hard to do, although we never say 'never' about security issues."
34477 #: ../src/guestfs.pod:1186
34479 "In any case callers can reduce the attack surface by forcing the filesystem "
34480 "type when mounting (use L</guestfs_mount_vfs>)."
34484 #: ../src/guestfs.pod:1189
34485 msgid "PROTOCOL SECURITY"
34486 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34489 #: ../src/guestfs.pod:1191
34491 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
34492 "defined upper message size. However a program that uses libguestfs must "
34493 "also take care - for example you can write a program that downloads a binary "
34494 "from a disk image and executes it locally, and no amount of protocol "
34495 "security will save you from the consequences."
34499 #: ../src/guestfs.pod:1197
34500 msgid "INSPECTION SECURITY"
34504 #: ../src/guestfs.pod:1199
34506 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34507 "directly from the guest, and these could contain any 8 bit data. Callers "
34508 "should be careful to escape these before printing them to a structured file "
34509 "(for example, use HTML escaping if creating a web page)."
34513 #: ../src/guestfs.pod:1205
34515 "Guest configuration may be altered in unusual ways by the administrator of "
34516 "the virtual machine, and may not reflect reality (particularly for untrusted "
34517 "or actively malicious guests). For example we parse the hostname from "
34518 "configuration files like C</etc/sysconfig/network> that we find in the "
34519 "guest, but the guest administrator can easily manipulate these files to "
34520 "provide the wrong hostname."
34524 #: ../src/guestfs.pod:1213
34526 "The inspection API parses guest configuration using two external libraries: "
34527 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
34528 "designed to be robust in the face of malicious data, although denial of "
34529 "service attacks are still possible, for example with oversized configuration "
34534 #: ../src/guestfs.pod:1219
34535 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34536 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34539 #: ../src/guestfs.pod:1221
34541 "Be very cautious about running commands from the guest. By running a "
34542 "command in the guest, you are giving CPU time to a binary that you do not "
34543 "control, under the same user account as the library, albeit wrapped in qemu "
34544 "virtualization. More information and alternatives can be found in the "
34545 "section L</RUNNING COMMANDS>."
34549 #: ../src/guestfs.pod:1227
34550 msgid "CVE-2010-3851"
34551 msgstr "CVE-2010-3851"
34554 #: ../src/guestfs.pod:1229
34555 msgid "https://bugzilla.redhat.com/642934"
34556 msgstr "https://bugzilla.redhat.com/642934"
34559 #: ../src/guestfs.pod:1231
34561 "This security bug concerns the automatic disk format detection that qemu "
34562 "does on disk images."
34566 #: ../src/guestfs.pod:1234
34568 "A raw disk image is just the raw bytes, there is no header. Other disk "
34569 "images like qcow2 contain a special header. Qemu deals with this by looking "
34570 "for one of the known headers, and if none is found then assuming the disk "
34571 "image must be raw."
34575 #: ../src/guestfs.pod:1239
34577 "This allows a guest which has been given a raw disk image to write some "
34578 "other header. At next boot (or when the disk image is accessed by "
34579 "libguestfs) qemu would do autodetection and think the disk image format was, "
34580 "say, qcow2 based on the header written by the guest."
34584 #: ../src/guestfs.pod:1244
34586 "This in itself would not be a problem, but qcow2 offers many features, one "
34587 "of which is to allow a disk image to refer to another image (called the "
34588 "\"backing disk\"). It does this by placing the path to the backing disk "
34589 "into the qcow2 header. This path is not validated and could point to any "
34590 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
34591 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34592 "control of the attacker."
34596 #: ../src/guestfs.pod:1252
34598 "In libguestfs this is rather hard to exploit except under two circumstances:"
34602 #: ../src/guestfs.pod:1259
34603 msgid "You have enabled the network or have opened the disk in write mode."
34607 #: ../src/guestfs.pod:1263
34609 "You are also running untrusted code from the guest (see L</RUNNING "
34614 #: ../src/guestfs.pod:1268
34616 "The way to avoid this is to specify the expected disk format when adding "
34617 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
34618 "should always do this if the disk is raw format, and it's a good idea for "
34623 #: ../src/guestfs.pod:1273
34625 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34626 "format is fetched from libvirt and passed through."
34630 #: ../src/guestfs.pod:1276
34632 "For libguestfs tools, use the I<--format> command line parameter as "
34637 #: ../src/guestfs.pod:1279
34638 msgid "CONNECTION MANAGEMENT"
34639 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34642 #: ../src/guestfs.pod:1281
34643 msgid "guestfs_h *"
34644 msgstr "guestfs_h *"
34647 #: ../src/guestfs.pod:1283
34649 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
34650 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
34651 "handle and release all resources used."
34655 #: ../src/guestfs.pod:1287
34657 "For information on using multiple handles and threads, see the section L</"
34658 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34662 #: ../src/guestfs.pod:1290
34663 msgid "guestfs_create"
34664 msgstr "guestfs_create"
34667 #: ../src/guestfs.pod:1292
34670 " guestfs_h *guestfs_create (void);\n"
34673 " guestfs_h *guestfs_create (void);\n"
34677 #: ../src/guestfs.pod:1294
34678 msgid "Create a connection handle."
34679 msgstr "Створити дескриптор з’єднання."
34682 #: ../src/guestfs.pod:1296
34684 "On success this returns a non-NULL pointer to a handle. On error it returns "
34689 #: ../src/guestfs.pod:1299
34691 "You have to \"configure\" the handle after creating it. This includes "
34692 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34693 "handle at least once."
34697 #: ../src/guestfs.pod:1303
34698 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34702 #: ../src/guestfs.pod:1305
34704 "You may also want to configure error handling for the handle. See the L</"
34705 "ERROR HANDLING> section below."
34709 #: ../src/guestfs.pod:1308
34710 msgid "guestfs_close"
34711 msgstr "guestfs_close"
34714 #: ../src/guestfs.pod:1310
34717 " void guestfs_close (guestfs_h *g);\n"
34720 " void guestfs_close (guestfs_h *g);\n"
34724 #: ../src/guestfs.pod:1312
34725 msgid "This closes the connection handle and frees up all resources used."
34729 #: ../src/guestfs.pod:1314
34731 "If autosync was set on the handle and the handle was launched, then this "
34732 "implicitly calls various functions to unmount filesystems and sync the "
34733 "disk. See L</guestfs_set_autosync> for more details."
34737 #: ../src/guestfs.pod:1318
34738 msgid "If a close callback was set on the handle, then it is called."
34742 #: ../src/guestfs.pod:1320
34743 msgid "ERROR HANDLING"
34744 msgstr "ОБРОБКА ПОМИЛОК"
34747 #: ../src/guestfs.pod:1322
34749 "API functions can return errors. For example, almost all functions that "
34750 "return C<int> will return C<-1> to indicate an error."
34754 #: ../src/guestfs.pod:1325
34756 "Additional information is available for errors: an error message string and "
34757 "optionally an error number (errno) if the thing that failed was a system "
34762 #: ../src/guestfs.pod:1329
34764 "You can get at the additional information about the last error on the handle "
34765 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34766 "up an error handler with L</guestfs_set_error_handler>."
34770 #: ../src/guestfs.pod:1334
34772 "When the handle is created, a default error handler is installed which "
34773 "prints the error message string to C<stderr>. For small short-running "
34774 "command line programs it is sufficient to do:"
34778 #: ../src/guestfs.pod:1338
34781 " if (guestfs_launch (g) == -1)\n"
34782 " exit (EXIT_FAILURE);\n"
34785 " if (guestfs_launch (g) == -1)\n"
34786 " exit (EXIT_FAILURE);\n"
34790 #: ../src/guestfs.pod:1341
34792 "since the default error handler will ensure that an error message has been "
34793 "printed to C<stderr> before the program exits."
34797 #: ../src/guestfs.pod:1344
34799 "For other programs the caller will almost certainly want to install an "
34800 "alternate error handler or do error handling in-line like this:"
34804 #: ../src/guestfs.pod:1347
34807 " g = guestfs_create ();\n"
34810 " g = guestfs_create ();\n"
34814 #: ../src/guestfs.pod:1349
34817 " /* This disables the default behaviour of printing errors\n"
34819 " guestfs_set_error_handler (g, NULL, NULL);\n"
34824 #: ../src/guestfs.pod:1353
34827 " if (guestfs_launch (g) == -1) {\n"
34828 " /* Examine the error message and print it etc. */\n"
34829 " char *msg = guestfs_last_error (g);\n"
34830 " int errnum = guestfs_last_errno (g);\n"
34831 " fprintf (stderr, \"%s\\n\", msg);\n"
34836 " if (guestfs_launch (g) == -1) {\n"
34837 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
34838 " char *msg = guestfs_last_error (g);\n"
34839 " int errnum = guestfs_last_errno (g);\n"
34840 " fprintf (stderr, \"%s\\n\", msg);\n"
34846 #: ../src/guestfs.pod:1361
34848 "Out of memory errors are handled differently. The default action is to call "
34849 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
34850 "guestfs_set_out_of_memory_handler>."
34854 #: ../src/guestfs.pod:1365
34856 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34857 "because there is no handle if this happens there is no way to get additional "
34858 "error information. However L</guestfs_create> is supposed to be a "
34859 "lightweight operation which can only fail because of insufficient memory (it "
34860 "returns NULL in this case)."
34864 #: ../src/guestfs.pod:1371
34865 msgid "guestfs_last_error"
34866 msgstr "guestfs_last_error"
34869 #: ../src/guestfs.pod:1373
34872 " const char *guestfs_last_error (guestfs_h *g);\n"
34875 " const char *guestfs_last_error (guestfs_h *g);\n"
34879 #: ../src/guestfs.pod:1375
34881 "This returns the last error message that happened on C<g>. If there has not "
34882 "been an error since the handle was created, then this returns C<NULL>."
34886 #: ../src/guestfs.pod:1379
34888 "The lifetime of the returned string is until the next error occurs, or L</"
34889 "guestfs_close> is called."
34893 #: ../src/guestfs.pod:1382
34894 msgid "guestfs_last_errno"
34895 msgstr "guestfs_last_errno"
34898 #: ../src/guestfs.pod:1384
34901 " int guestfs_last_errno (guestfs_h *g);\n"
34904 " int guestfs_last_errno (guestfs_h *g);\n"
34908 #: ../src/guestfs.pod:1386
34909 msgid "This returns the last error number (errno) that happened on C<g>."
34913 #: ../src/guestfs.pod:1388
34914 msgid "If successful, an errno integer not equal to zero is returned."
34918 #: ../src/guestfs.pod:1390
34920 "If no error, this returns 0. This call can return 0 in three situations:"
34924 #: ../src/guestfs.pod:1397
34925 msgid "There has not been any error on the handle."
34929 #: ../src/guestfs.pod:1401
34931 "There has been an error but the errno was meaningless. This corresponds to "
34932 "the case where the error did not come from a failed system call, but for "
34933 "some other reason."
34937 #: ../src/guestfs.pod:1407
34939 "There was an error from a failed system call, but for some reason the errno "
34940 "was not captured and returned. This usually indicates a bug in libguestfs."
34944 #: ../src/guestfs.pod:1413
34946 "Libguestfs tries to convert the errno from inside the applicance into a "
34947 "corresponding errno for the caller (not entirely trivial: the appliance "
34948 "might be running a completely different operating system from the library "
34949 "and error numbers are not standardized across Un*xen). If this could not be "
34950 "done, then the error is translated to C<EINVAL>. In practice this should "
34951 "only happen in very rare circumstances."
34955 #: ../src/guestfs.pod:1421
34956 msgid "guestfs_set_error_handler"
34957 msgstr "guestfs_set_error_handler"
34960 #: ../src/guestfs.pod:1423
34963 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
34965 " const char *msg);\n"
34966 " void guestfs_set_error_handler (guestfs_h *g,\n"
34967 " guestfs_error_handler_cb cb,\n"
34968 " void *opaque);\n"
34971 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
34973 " const char *msg);\n"
34974 " void guestfs_set_error_handler (guestfs_h *g,\n"
34975 " guestfs_error_handler_cb cb,\n"
34976 " void *opaque);\n"
34980 #: ../src/guestfs.pod:1430
34982 "The callback C<cb> will be called if there is an error. The parameters "
34983 "passed to the callback are an opaque data pointer and the error message "
34988 #: ../src/guestfs.pod:1434
34990 "C<errno> is not passed to the callback. To get that the callback must call "
34991 "L</guestfs_last_errno>."
34995 #: ../src/guestfs.pod:1437
34997 "Note that the message string C<msg> is freed as soon as the callback "
34998 "function returns, so if you want to stash it somewhere you must make your "
35003 #: ../src/guestfs.pod:1441
35004 msgid "The default handler prints messages on C<stderr>."
35008 #: ../src/guestfs.pod:1443
35009 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35013 #: ../src/guestfs.pod:1445
35014 msgid "guestfs_get_error_handler"
35015 msgstr "guestfs_get_error_handler"
35018 #: ../src/guestfs.pod:1447
35021 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35022 " void **opaque_rtn);\n"
35025 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35026 " void **opaque_rtn);\n"
35030 #: ../src/guestfs.pod:1450
35031 msgid "Returns the current error handler callback."
35035 #: ../src/guestfs.pod:1452
35036 msgid "guestfs_set_out_of_memory_handler"
35037 msgstr "guestfs_set_out_of_memory_handler"
35040 #: ../src/guestfs.pod:1454
35043 " typedef void (*guestfs_abort_cb) (void);\n"
35044 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35045 " guestfs_abort_cb);\n"
35048 " typedef void (*guestfs_abort_cb) (void);\n"
35049 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35050 " guestfs_abort_cb);\n"
35054 #: ../src/guestfs.pod:1458
35056 "The callback C<cb> will be called if there is an out of memory situation. "
35057 "I<Note this callback must not return>."
35061 #: ../src/guestfs.pod:1461
35062 msgid "The default is to call L<abort(3)>."
35066 #: ../src/guestfs.pod:1463
35068 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
35072 #: ../src/guestfs.pod:1466
35073 msgid "guestfs_get_out_of_memory_handler"
35074 msgstr "guestfs_get_out_of_memory_handler"
35077 #: ../src/guestfs.pod:1468
35080 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35083 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35087 #: ../src/guestfs.pod:1470
35088 msgid "This returns the current out of memory handler."
35092 #: ../src/guestfs.pod:1472
35094 msgstr "ВИКЛИКИ API"
35097 #: ../src/guestfs.pod:1476
35102 #: ../src/guestfs.pod:1478
35107 #: ../src/guestfs.pod:1480
35108 msgid "AVAILABILITY"
35109 msgstr "ДОСТУПНІСТЬ"
35112 #: ../src/guestfs.pod:1482
35113 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35114 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35117 #: ../src/guestfs.pod:1484
35119 "Using L</guestfs_available> you can test availability of the following "
35120 "groups of functions. This test queries the appliance to see if the "
35121 "appliance you are currently using supports the functionality."
35125 #: ../src/guestfs.pod:1489
35126 msgid "@AVAILABILITY@"
35127 msgstr "@AVAILABILITY@"
35130 #: ../src/guestfs.pod:1491
35131 msgid "GUESTFISH supported COMMAND"
35135 #: ../src/guestfs.pod:1493
35137 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35138 "prints out the available groups and whether they are supported by this build "
35139 "of libguestfs. Note however that you have to do C<run> first."
35143 #: ../src/guestfs.pod:1498
35144 msgid "SINGLE CALLS AT COMPILE TIME"
35148 #: ../src/guestfs.pod:1500
35150 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35151 "function, such as:"
35155 #: ../src/guestfs.pod:1503
35158 " #define LIBGUESTFS_HAVE_DD 1\n"
35161 " #define LIBGUESTFS_HAVE_DD 1\n"
35165 #: ../src/guestfs.pod:1505
35166 msgid "if L</guestfs_dd> is available."
35170 #: ../src/guestfs.pod:1507
35172 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35173 "function is available at compile time, we recommended using build tools such "
35174 "as autoconf or cmake. For example in autotools you could use:"
35178 #: ../src/guestfs.pod:1512
35181 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35182 " AC_CHECK_FUNCS([guestfs_dd])\n"
35185 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35186 " AC_CHECK_FUNCS([guestfs_dd])\n"
35190 #: ../src/guestfs.pod:1515
35192 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35197 #: ../src/guestfs.pod:1518
35198 msgid "SINGLE CALLS AT RUN TIME"
35202 #: ../src/guestfs.pod:1520
35204 "Testing at compile time doesn't guarantee that a function really exists in "
35205 "the library. The reason is that you might be dynamically linked against a "
35206 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
35207 "This situation unfortunately results in a segmentation fault, which is a "
35208 "shortcoming of the C dynamic linking system itself."
35212 #: ../src/guestfs.pod:1527
35214 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35215 "in this example program (note that you still need the compile time check as "
35220 #: ../src/guestfs.pod:1531
35223 " #include <stdio.h>\n"
35224 " #include <stdlib.h>\n"
35225 " #include <unistd.h>\n"
35226 " #include <dlfcn.h>\n"
35227 " #include <guestfs.h>\n"
35230 " #include <stdio.h>\n"
35231 " #include <stdlib.h>\n"
35232 " #include <unistd.h>\n"
35233 " #include <dlfcn.h>\n"
35234 " #include <guestfs.h>\n"
35238 #: ../src/guestfs.pod:1537
35243 " #ifdef LIBGUESTFS_HAVE_DD\n"
35245 " int has_function;\n"
35250 " #ifdef LIBGUESTFS_HAVE_DD\n"
35252 " int has_function;\n"
35256 #: ../src/guestfs.pod:1543
35259 " /* Test if the function guestfs_dd is really available. */\n"
35260 " dl = dlopen (NULL, RTLD_LAZY);\n"
35262 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35263 " exit (EXIT_FAILURE);\n"
35265 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35271 #: ../src/guestfs.pod:1552
35274 " if (!has_function)\n"
35275 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35277 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35278 " /* Now it's safe to call\n"
35279 " guestfs_dd (g, \"foo\", \"bar\");\n"
35283 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35290 #: ../src/guestfs.pod:1565
35292 "You may think the above is an awful lot of hassle, and it is. There are "
35293 "other ways outside of the C linking system to ensure that this kind of "
35294 "incompatibility never arises, such as using package versioning:"
35298 #: ../src/guestfs.pod:1570
35301 " Requires: libguestfs >= 1.0.80\n"
35306 #: ../src/guestfs.pod:1572
35307 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35311 #: ../src/guestfs.pod:1574
35313 "A recent feature of the API is the introduction of calls which take optional "
35314 "arguments. In C these are declared 3 ways. The main way is as a call which "
35315 "takes variable arguments (ie. C<...>), as in this example:"
35319 #: ../src/guestfs.pod:1579
35322 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35325 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35329 #: ../src/guestfs.pod:1581
35331 "Call this with a list of optional arguments, terminated by C<-1>. So to "
35332 "call with no optional arguments specified:"
35336 #: ../src/guestfs.pod:1584
35339 " guestfs_add_drive_opts (g, filename, -1);\n"
35342 " guestfs_add_drive_opts (g, filename, -1);\n"
35346 #: ../src/guestfs.pod:1586
35347 msgid "With a single optional argument:"
35351 #: ../src/guestfs.pod:1588
35354 " guestfs_add_drive_opts (g, filename,\n"
35355 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35359 " guestfs_add_drive_opts (g, filename,\n"
35360 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35365 #: ../src/guestfs.pod:1592
35370 #: ../src/guestfs.pod:1594
35373 " guestfs_add_drive_opts (g, filename,\n"
35374 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35375 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35379 " guestfs_add_drive_opts (g, filename,\n"
35380 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35381 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35386 #: ../src/guestfs.pod:1599
35388 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
35393 #: ../src/guestfs.pod:1602
35394 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35398 #: ../src/guestfs.pod:1604
35400 "The second variant has the same name with the suffix C<_va>, which works the "
35401 "same way but takes a C<va_list>. See the C manual for details. For the "
35402 "example function, this is declared:"
35406 #: ../src/guestfs.pod:1608
35409 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35410 " va_list args);\n"
35413 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35414 " va_list args);\n"
35418 #: ../src/guestfs.pod:1611
35419 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35423 #: ../src/guestfs.pod:1613
35425 "The third variant is useful where you need to construct these calls. You "
35426 "pass in a structure where you fill in the optional fields. The structure "
35427 "has a bitmask as the first element which you must set to indicate which "
35428 "fields you have filled in. For our example function the structure and call "
35433 #: ../src/guestfs.pod:1619
35436 " struct guestfs_add_drive_opts_argv {\n"
35437 " uint64_t bitmask;\n"
35439 " const char *format;\n"
35442 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35443 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35446 " struct guestfs_add_drive_opts_argv {\n"
35447 " uint64_t bitmask;\n"
35449 " const char *format;\n"
35452 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35453 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35457 #: ../src/guestfs.pod:1628
35458 msgid "You could call it like this:"
35462 #: ../src/guestfs.pod:1630
35465 " struct guestfs_add_drive_opts_argv optargs = {\n"
35466 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35467 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35468 " .readonly = 1,\n"
35469 " .format = \"qcow2\"\n"
35473 " struct guestfs_add_drive_opts_argv optargs = {\n"
35474 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35475 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35476 " .readonly = 1,\n"
35477 " .format = \"qcow2\"\n"
35482 #: ../src/guestfs.pod:1637
35485 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35488 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35492 #: ../src/guestfs.pod:1645
35493 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35497 #: ../src/guestfs.pod:1650
35498 msgid "You do not need to fill in all fields of the structure."
35502 #: ../src/guestfs.pod:1654
35504 "There must be a one-to-one correspondence between fields of the structure "
35505 "that are filled in, and bits set in the bitmask."
35509 #: ../src/guestfs.pod:1659
35510 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35514 #: ../src/guestfs.pod:1661
35516 "In other languages, optional arguments are expressed in the way that is "
35517 "natural for that language. We refer you to the language-specific "
35518 "documentation for more details on that."
35522 #: ../src/guestfs.pod:1665
35523 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35527 #: ../src/guestfs.pod:1667
35528 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35532 #: ../src/guestfs.pod:1669
35534 "B<Note:> This section documents the generic event mechanism introduced in "
35535 "libguestfs 1.10, which you should use in new code if possible. The old "
35536 "functions C<guestfs_set_log_message_callback>, "
35537 "C<guestfs_set_subprocess_quit_callback>, "
35538 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35539 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35540 "page. Because of the ABI guarantee, the old functions continue to work."
35544 #: ../src/guestfs.pod:1678
35546 "Handles generate events when certain things happen, such as log messages "
35547 "being generated, progress messages during long-running operations, or the "
35548 "handle being closed. The API calls described below let you register a "
35549 "callback to be called when events happen. You can register multiple "
35550 "callbacks (for the same, different or overlapping sets of events), and "
35551 "individually remove callbacks. If callbacks are not removed, then they "
35552 "remain in force until the handle is closed."
35556 #: ../src/guestfs.pod:1686
35558 "In the current implementation, events are only generated synchronously: that "
35559 "means that events (and hence callbacks) can only happen while you are in the "
35560 "middle of making another libguestfs call. The callback is called in the "
35565 #: ../src/guestfs.pod:1691
35567 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35568 "unsigned integers, or a message buffer. Payloads are discussed later on."
35572 #: ../src/guestfs.pod:1695
35573 msgid "CLASSES OF EVENTS"
35577 #: ../src/guestfs.pod:1699
35578 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35582 #: ../src/guestfs.pod:1702
35584 "The callback function will be called while the handle is being closed "
35585 "(synchronously from L</guestfs_close>)."
35589 #: ../src/guestfs.pod:1705
35591 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35592 "handles that are open when the program exits. This means that this callback "
35593 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35594 "problems in higher-level languages (eg. if your HLL interpreter has already "
35595 "been cleaned up by the time this is called, and if your callback then jumps "
35596 "into some HLL function)."
35600 #: ../src/guestfs.pod:1712
35602 "If no callback is registered: the handle is closed without any callback "
35607 #: ../src/guestfs.pod:1715
35608 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35612 #: ../src/guestfs.pod:1718
35614 "The callback function will be called when the child process quits, either "
35615 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
35616 "corresponds to a transition from any state to the CONFIG state)."
35620 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
35621 msgid "If no callback is registered: the event is ignored."
35625 #: ../src/guestfs.pod:1724
35626 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35630 #: ../src/guestfs.pod:1727
35632 "The callback function will be called when the child process becomes ready "
35633 "first time after it has been launched. (This corresponds to a transition "
35634 "from LAUNCHING to the READY state)."
35638 #: ../src/guestfs.pod:1733
35639 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35643 #: ../src/guestfs.pod:1736
35645 "Some long-running operations can generate progress messages. If this "
35646 "callback is registered, then it will be called each time a progress message "
35647 "is generated (usually two seconds after the operation started, and three "
35648 "times per second thereafter until it completes, although the frequency may "
35649 "change in future versions)."
35653 #: ../src/guestfs.pod:1742
35655 "The callback receives in the payload four unsigned 64 bit numbers which are "
35656 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35660 #: ../src/guestfs.pod:1745
35662 "The units of C<total> are not defined, although for some operations C<total> "
35663 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35664 "or megabytes), and C<position> may be the portion which has been transferred."
35668 #: ../src/guestfs.pod:1750
35669 msgid "The only defined and stable parts of the API are:"
35673 #: ../src/guestfs.pod:1756
35675 "The callback can display to the user some type of progress bar or indicator "
35676 "which shows the ratio of C<position>:C<total>."
35680 #: ../src/guestfs.pod:1761
35681 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35685 #: ../src/guestfs.pod:1765
35687 "If any progress notification is sent during a call, then a final progress "
35688 "notification is always sent when C<position> = C<total> (I<unless> the call "
35689 "fails with an error)."
35693 #: ../src/guestfs.pod:1769
35695 "This is to simplify caller code, so callers can easily set the progress "
35696 "indicator to \"100%\" at the end of the operation, without requiring special "
35697 "code to detect this case."
35701 #: ../src/guestfs.pod:1775
35703 "For some calls we are unable to estimate the progress of the call, but we "
35704 "can still generate progress messages to indicate activity. This is known as "
35705 "\"pulse mode\", and is directly supported by certain progress bar "
35706 "implementations (eg. GtkProgressBar)."
35710 #: ../src/guestfs.pod:1780
35712 "For these calls, zero or more progress messages are generated with "
35713 "C<position = 0> and C<total = 1>, followed by a final message with "
35714 "C<position = total = 1>."
35718 #: ../src/guestfs.pod:1784
35720 "As noted above, if the call fails with an error then the final message may "
35721 "not be generated."
35725 #: ../src/guestfs.pod:1789
35727 "The callback also receives the procedure number (C<proc_nr>) and serial "
35728 "number (C<serial>) of the call. These are only useful for debugging "
35729 "protocol issues, and the callback can normally ignore them. The callback "
35730 "may want to print these numbers in error messages or debugging messages."
35734 #: ../src/guestfs.pod:1795
35735 msgid "If no callback is registered: progress messages are discarded."
35739 #: ../src/guestfs.pod:1797
35740 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35744 #: ../src/guestfs.pod:1800
35746 "The callback function is called whenever a log message is generated by qemu, "
35747 "the appliance kernel, guestfsd (daemon), or utility programs."
35751 #: ../src/guestfs.pod:1803
35753 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35754 "guestfs_launch>) then additional debug messages are generated."
35758 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
35760 "If no callback is registered: the messages are discarded unless the verbose "
35761 "flag is set in which case they are sent to stderr. You can override the "
35762 "printing of verbose messages to stderr by setting up a callback."
35766 #: ../src/guestfs.pod:1811
35767 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35771 #: ../src/guestfs.pod:1814
35773 "The callback function is called whenever a log message is generated by the "
35774 "library part of libguestfs."
35778 #: ../src/guestfs.pod:1817
35780 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35781 "messages are generated."
35785 #: ../src/guestfs.pod:1825
35786 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35790 #: ../src/guestfs.pod:1828
35792 "The callback function is called whenever a trace message is generated. This "
35793 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35797 #: ../src/guestfs.pod:1831
35799 "If no callback is registered: the messages are sent to stderr. You can "
35800 "override the printing of trace messages to stderr by setting up a callback."
35804 #: ../src/guestfs.pod:1837
35805 msgid "guestfs_set_event_callback"
35809 #: ../src/guestfs.pod:1839
35812 " int guestfs_set_event_callback (guestfs_h *g,\n"
35813 " guestfs_event_callback cb,\n"
35814 " uint64_t event_bitmask,\n"
35816 " void *opaque);\n"
35821 #: ../src/guestfs.pod:1845
35823 "This function registers a callback (C<cb>) for all event classes in the "
35824 "C<event_bitmask>."
35828 #: ../src/guestfs.pod:1848
35830 "For example, to register for all log message events, you could call this "
35831 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
35832 "To register a single callback for all possible classes of events, use "
35833 "C<GUESTFS_EVENT_ALL>."
35837 #: ../src/guestfs.pod:1854
35838 msgid "C<flags> should always be passed as 0."
35842 #: ../src/guestfs.pod:1856
35844 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
35845 "it for any purpose."
35849 #: ../src/guestfs.pod:1859
35851 "The return value is the event handle (an integer) which you can use to "
35852 "delete the callback (see below)."
35856 #: ../src/guestfs.pod:1862
35858 "If there is an error, this function returns C<-1>, and sets the error in the "
35859 "handle in the usual way (see L</guestfs_last_error> etc.)"
35863 #: ../src/guestfs.pod:1865
35865 "Callbacks remain in effect until they are deleted, or until the handle is "
35870 #: ../src/guestfs.pod:1868
35872 "In the case where multiple callbacks are registered for a particular event "
35873 "class, all of the callbacks are called. The order in which multiple "
35874 "callbacks are called is not defined."
35878 #: ../src/guestfs.pod:1872
35879 msgid "guestfs_delete_event_callback"
35883 #: ../src/guestfs.pod:1874
35886 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
35891 #: ../src/guestfs.pod:1876
35893 "Delete a callback that was previously registered. C<event_handle> should be "
35894 "the integer that was returned by a previous call to "
35895 "C<guestfs_set_event_callback> on the same handle."
35899 #: ../src/guestfs.pod:1880
35900 msgid "guestfs_event_callback"
35904 #: ../src/guestfs.pod:1882
35907 " typedef void (*guestfs_event_callback) (\n"
35910 " uint64_t event,\n"
35911 " int event_handle,\n"
35913 " const char *buf, size_t buf_len,\n"
35914 " const uint64_t *array, size_t array_len);\n"
35919 #: ../src/guestfs.pod:1891
35921 "This is the type of the event callback function that you have to provide."
35925 #: ../src/guestfs.pod:1894
35927 "The basic parameters are: the handle (C<g>), the opaque user pointer "
35928 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
35929 "handle, and C<flags> which in the current API you should ignore."
35933 #: ../src/guestfs.pod:1898
35935 "The remaining parameters contain the event payload (if any). Each event may "
35936 "contain a payload, which usually relates to the event class, but for future "
35937 "proofing your code should be written to handle any payload for any event "
35942 #: ../src/guestfs.pod:1903
35944 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
35945 "there is no message buffer). Note that this message buffer can contain "
35946 "arbitrary 8 bit data, including NUL bytes."
35950 #: ../src/guestfs.pod:1907
35952 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
35953 "moment this is only used for progress messages."
35957 #: ../src/guestfs.pod:1910
35958 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
35962 #: ../src/guestfs.pod:1912
35964 "One motivation for the generic event API was to allow GUI programs to "
35965 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
35966 "unconditionally to C<stderr>."
35970 #: ../src/guestfs.pod:1916
35972 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
35973 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
35974 "messages are not events; you must capture error messages separately)."
35978 #: ../src/guestfs.pod:1921
35980 "Programs have to set up a callback to capture the classes of events of "
35985 #: ../src/guestfs.pod:1924
35989 " guestfs_set_event_callback\n"
35990 " (g, message_callback,\n"
35991 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
35992 " GUESTFS_EVENT_TRACE,\n"
35993 " 0, NULL) == -1)\n"
35994 " if (eh == -1) {\n"
35995 " // handle error in the usual way\n"
36001 #: ../src/guestfs.pod:1934
36003 "The callback can then direct messages to the appropriate place. In this "
36004 "example, messages are directed to syslog:"
36008 #: ../src/guestfs.pod:1937
36012 " message_callback (\n"
36015 " uint64_t event,\n"
36016 " int event_handle,\n"
36018 " const char *buf, size_t buf_len,\n"
36019 " const uint64_t *array, size_t array_len)\n"
36021 " const int priority = LOG_USER|LOG_INFO;\n"
36022 " if (buf_len > 0)\n"
36023 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36029 #: ../src/guestfs.pod:1952
36030 msgid "CANCELLING LONG TRANSFERS"
36034 #: ../src/guestfs.pod:1954
36036 "Some operations can be cancelled by the caller while they are in progress. "
36037 "Currently only operations that involve uploading or downloading data can be "
36038 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36039 "parameters in the generator)."
36043 #: ../src/guestfs.pod:1959
36044 msgid "guestfs_user_cancel"
36048 #: ../src/guestfs.pod:1961
36051 " void guestfs_user_cancel (guestfs_h *g);\n"
36056 #: ../src/guestfs.pod:1963
36058 "C<guestfs_user_cancel> cancels the current upload or download operation."
36062 #: ../src/guestfs.pod:1966
36064 "Unlike most other libguestfs calls, this function is signal safe and thread "
36065 "safe. You can call it from a signal handler or from another thread, without "
36066 "needing to do any locking."
36070 #: ../src/guestfs.pod:1970
36072 "The transfer that was in progress (if there is one) will stop shortly "
36073 "afterwards, and will return an error. The errno (see L</"
36074 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36075 "out if the operation was cancelled or failed because of another error."
36079 #: ../src/guestfs.pod:1976
36081 "No cleanup is performed: for example, if a file was being uploaded then "
36082 "after cancellation there may be a partially uploaded file. It is the "
36083 "caller's responsibility to clean up if necessary."
36087 #: ../src/guestfs.pod:1980
36088 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36092 #: ../src/guestfs.pod:1982
36094 "In an interactive text-based program, you might call it from a C<SIGINT> "
36095 "signal handler so that pressing C<^C> cancels the current operation. (You "
36096 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36097 "receive the C<^C> signal)."
36101 #: ../src/guestfs.pod:1987
36103 "In a graphical program, when the main thread is displaying a progress bar "
36104 "with a cancel button, wire up the cancel button to call this function."
36108 #: ../src/guestfs.pod:1991
36109 msgid "PRIVATE DATA AREA"
36113 #: ../src/guestfs.pod:1993
36115 "You can attach named pieces of private data to the libguestfs handle, fetch "
36116 "them by name, and walk over them, for the lifetime of the handle. This is "
36117 "called the private data area and is only available from the C API."
36121 #: ../src/guestfs.pod:1998
36122 msgid "To attach a named piece of data, use the following call:"
36126 #: ../src/guestfs.pod:2000
36129 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36132 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36136 #: ../src/guestfs.pod:2002
36138 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36139 "pointer (which can be C<NULL>). Any previous item with the same key is "
36144 #: ../src/guestfs.pod:2006
36146 "You can use any C<key> you want, but your key should I<not> start with an "
36147 "underscore character. Keys beginning with an underscore character are "
36148 "reserved for internal libguestfs purposes (eg. for implementing language "
36149 "bindings). It is recommended that you prefix the key with some unique "
36150 "string to avoid collisions with other users."
36154 #: ../src/guestfs.pod:2012
36155 msgid "To retrieve the pointer, use:"
36159 #: ../src/guestfs.pod:2014
36162 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36165 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36169 #: ../src/guestfs.pod:2016
36171 "This function returns C<NULL> if either no data is found associated with "
36172 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36177 #: ../src/guestfs.pod:2020
36179 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36180 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
36181 "all. In particular, libguestfs does I<not> try to free the data when the "
36182 "handle is closed. If the data must be freed, then the caller must either "
36183 "free it before calling L</guestfs_close> or must set up a close callback to "
36184 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36188 #: ../src/guestfs.pod:2027
36189 msgid "To walk over all entries, use these two functions:"
36193 #: ../src/guestfs.pod:2029
36196 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36201 #: ../src/guestfs.pod:2031
36204 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36209 #: ../src/guestfs.pod:2033
36211 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36212 "not have any particular meaning -- keys are not returned in any defined "
36213 "order). A pointer to the key is returned in C<*key_rtn> and the "
36214 "corresponding data pointer is returned from the function. C<NULL> is "
36215 "returned if there are no keys stored in the handle."
36219 #: ../src/guestfs.pod:2039
36221 "C<guestfs_next_private> returns the next key, pointer pair. The return "
36222 "value of this function is also C<NULL> is there are no further entries to "
36227 #: ../src/guestfs.pod:2043
36228 msgid "Notes about walking over entries:"
36232 #: ../src/guestfs.pod:2049
36234 "You must not call C<guestfs_set_private> while walking over the entries."
36238 #: ../src/guestfs.pod:2054
36240 "The handle maintains an internal iterator which is reset when you call "
36241 "C<guestfs_first_private>. This internal iterator is invalidated when you "
36242 "call C<guestfs_set_private>."
36246 #: ../src/guestfs.pod:2060
36247 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36251 #: ../src/guestfs.pod:2062
36254 " guestfs_set_private (g, key, NULL);\n"
36259 #: ../src/guestfs.pod:2064
36260 msgid "then that C<key> is not returned when walking."
36264 #: ../src/guestfs.pod:2068
36266 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36267 "C<guestfs_next_private> or C<guestfs_set_private>."
36271 #: ../src/guestfs.pod:2074
36273 "The following example code shows how to print all keys and data pointers "
36274 "that are associated with the handle C<g>:"
36278 #: ../src/guestfs.pod:2077
36281 " const char *key;\n"
36282 " void *data = guestfs_first_private (g, &key);\n"
36283 " while (data != NULL)\n"
36285 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36286 " data = guestfs_next_private (g, &key);\n"
36292 #: ../src/guestfs.pod:2085
36294 "More commonly you are only interested in keys that begin with an application-"
36295 "specific prefix C<foo_>. Modify the loop like so:"
36299 #: ../src/guestfs.pod:2088
36302 " const char *key;\n"
36303 " void *data = guestfs_first_private (g, &key);\n"
36304 " while (data != NULL)\n"
36306 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36307 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36308 " data = guestfs_next_private (g, &key);\n"
36314 #: ../src/guestfs.pod:2097
36316 "If you need to modify keys while walking, then you have to jump back to the "
36317 "beginning of the loop. For example, to delete all keys prefixed with "
36322 #: ../src/guestfs.pod:2101
36325 " const char *key;\n"
36328 " data = guestfs_first_private (g, &key);\n"
36329 " while (data != NULL)\n"
36331 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36333 " guestfs_set_private (g, key, NULL);\n"
36334 " /* note that 'key' pointer is now invalid, and so is\n"
36335 " the internal iterator */\n"
36338 " data = guestfs_next_private (g, &key);\n"
36344 #: ../src/guestfs.pod:2117
36346 "Note that the above loop is guaranteed to terminate because the keys are "
36347 "being deleted, but other manipulations of keys within the loop might not "
36348 "terminate unless you also maintain an indication of which keys have been "
36353 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
36358 #: ../src/guestfs.pod:2124
36360 "<!-- old anchor for the next section --> <a name="
36361 "\"state_machine_and_low_level_event_api\"/>"
36363 "<!-- old anchor for the next section --> <a name="
36364 "\"state_machine_and_low_level_event_api\"/>"
36367 #: ../src/guestfs.pod:2129
36368 msgid "ARCHITECTURE"
36369 msgstr "АРХІТЕКТУРА"
36372 #: ../src/guestfs.pod:2131
36374 "Internally, libguestfs is implemented by running an appliance (a special "
36375 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
36376 "process of the main program."
36380 #: ../src/guestfs.pod:2135
36383 " ___________________\n"
36385 " | main program |\n"
36387 " | | child process / appliance\n"
36388 " | | __________________________\n"
36390 " +-------------------+ RPC | +-----------------+ |\n"
36391 " | libguestfs <--------------------> guestfsd | |\n"
36392 " | | | +-----------------+ |\n"
36393 " \\___________________/ | | Linux kernel | |\n"
36394 " | +--^--------------+ |\n"
36395 " \\_________|________________/\n"
36397 " _______v______\n"
36400 " | disk image |\n"
36401 " \\______________/\n"
36406 #: ../src/guestfs.pod:2155
36408 "The library, linked to the main program, creates the child process and hence "
36409 "the appliance in the L</guestfs_launch> function."
36413 #: ../src/guestfs.pod:2158
36415 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36416 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36417 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
36418 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
36419 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
36420 "attached to the qemu process which translates device access by the "
36421 "appliance's Linux kernel into accesses to the image."
36425 #: ../src/guestfs.pod:2167
36427 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
36428 "Although the disk image you are attached to might also be used by some "
36429 "virtual machine, libguestfs doesn't know or care about this. (But you will "
36430 "care if both libguestfs's qemu process and your virtual machine are trying "
36431 "to update the disk image at the same time, since these usually results in "
36432 "massive disk corruption)."
36436 #: ../src/guestfs.pod:2174
36437 msgid "STATE MACHINE"
36438 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36441 #: ../src/guestfs.pod:2176
36442 msgid "libguestfs uses a state machine to model the child process:"
36446 #: ../src/guestfs.pod:2178
36450 " guestfs_create\n"
36458 " / | \\ \\ guestfs_launch\n"
36459 " / | _\\__V______\n"
36461 " / | | LAUNCHING |\n"
36462 " / | \\___________/\n"
36464 " / | guestfs_launch\n"
36466 " ______ / __|____V\n"
36467 " / \\ ------> / \\\n"
36468 " | BUSY | | READY |\n"
36469 " \\______/ <------ \\________/\n"
36474 #: ../src/guestfs.pod:2200
36476 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36477 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36478 "(3) alternating between READY and BUSY as commands are issued to, and "
36479 "carried out by, the child process."
36483 #: ../src/guestfs.pod:2205
36485 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36486 "asynchronously at any time (eg. due to some internal error), and that causes "
36487 "the state to transition back to CONFIG."
36491 #: ../src/guestfs.pod:2209
36493 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36494 "issued when in the CONFIG state."
36498 #: ../src/guestfs.pod:2212
36500 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
36501 "L</guestfs_launch> blocks until the child process is READY to accept "
36502 "commands (or until some failure or timeout). L</guestfs_launch> internally "
36503 "moves the state from CONFIG to LAUNCHING while it is running."
36507 #: ../src/guestfs.pod:2218
36509 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36510 "state. These API calls block waiting for the command to be carried out (ie. "
36511 "the state to transition to BUSY and then back to READY). There are no non-"
36512 "blocking versions, and no way to issue more than one command per handle at "
36517 #: ../src/guestfs.pod:2224
36519 "Finally, the child process sends asynchronous messages back to the main "
36520 "program, such as kernel log messages. You can register a callback to "
36521 "receive these messages."
36525 #: ../src/guestfs.pod:2228
36530 #: ../src/guestfs.pod:2230
36531 msgid "COMMUNICATION PROTOCOL"
36535 #: ../src/guestfs.pod:2232
36537 "Don't rely on using this protocol directly. This section documents how it "
36538 "currently works, but it may change at any time."
36542 #: ../src/guestfs.pod:2235
36544 "The protocol used to talk between the library and the daemon running inside "
36545 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36546 "1014, RFC 1832, RFC 4506)."
36550 #: ../src/guestfs.pod:2239
36552 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36553 "this file is automatically generated)."
36557 #: ../src/guestfs.pod:2242
36559 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36560 "and C<FileOut> parameters, which are handled with very simple request/reply "
36561 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
36562 "parameters, which use the same request and reply messages, but they may also "
36563 "be followed by files sent using a chunked encoding."
36567 #: ../src/guestfs.pod:2249
36568 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36572 #: ../src/guestfs.pod:2251
36573 msgid "For ordinary functions, the request message is:"
36577 #: ../src/guestfs.pod:2253
36580 " total length (header + arguments,\n"
36581 " but not including the length word itself)\n"
36582 " struct guestfs_message_header (encoded as XDR)\n"
36583 " struct guestfs_<foo>_args (encoded as XDR)\n"
36588 #: ../src/guestfs.pod:2258
36590 "The total length field allows the daemon to allocate a fixed size buffer "
36591 "into which it slurps the rest of the message. As a result, the total length "
36592 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36593 "effective size of any request is limited to somewhere under this size."
36597 #: ../src/guestfs.pod:2264
36599 "Note also that many functions don't take any arguments, in which case the "
36600 "C<guestfs_I<foo>_args> is completely omitted."
36604 #: ../src/guestfs.pod:2267
36606 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36607 "receiver knows what type of args structure to expect, or none at all."
36611 #: ../src/guestfs.pod:2271
36613 "For functions that take optional arguments, the optional arguments are "
36614 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36615 "arguments. A bitmask in the header indicates which optional arguments are "
36616 "meaningful. The bitmask is also checked to see if it contains bits set "
36617 "which the daemon does not know about (eg. if more optional arguments were "
36618 "added in a later version of the library), and this causes the call to be "
36623 #: ../src/guestfs.pod:2279
36624 msgid "The reply message for ordinary functions is:"
36628 #: ../src/guestfs.pod:2281
36631 " total length (header + ret,\n"
36632 " but not including the length word itself)\n"
36633 " struct guestfs_message_header (encoded as XDR)\n"
36634 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36639 #: ../src/guestfs.pod:2286
36641 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36642 "functions that return no formal return values."
36646 #: ../src/guestfs.pod:2289
36648 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36652 #: ../src/guestfs.pod:2292
36654 "In the case of an error, a flag is set in the header, and the reply message "
36655 "is slightly changed:"
36659 #: ../src/guestfs.pod:2295
36662 " total length (header + error,\n"
36663 " but not including the length word itself)\n"
36664 " struct guestfs_message_header (encoded as XDR)\n"
36665 " struct guestfs_message_error (encoded as XDR)\n"
36670 #: ../src/guestfs.pod:2300
36672 "The C<guestfs_message_error> structure contains the error message as a "
36677 #: ../src/guestfs.pod:2303
36678 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36682 #: ../src/guestfs.pod:2305
36684 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
36685 "The normal request message is sent (see above). However this is followed by "
36686 "a sequence of file chunks."
36690 #: ../src/guestfs.pod:2309
36693 " total length (header + arguments,\n"
36694 " but not including the length word itself,\n"
36695 " and not including the chunks)\n"
36696 " struct guestfs_message_header (encoded as XDR)\n"
36697 " struct guestfs_<foo>_args (encoded as XDR)\n"
36698 " sequence of chunks for FileIn param #0\n"
36699 " sequence of chunks for FileIn param #1 etc.\n"
36704 #: ../src/guestfs.pod:2317
36705 msgid "The \"sequence of chunks\" is:"
36709 #: ../src/guestfs.pod:2319
36712 " length of chunk (not including length word itself)\n"
36713 " struct guestfs_chunk (encoded as XDR)\n"
36714 " length of chunk\n"
36715 " struct guestfs_chunk (encoded as XDR)\n"
36717 " length of chunk\n"
36718 " struct guestfs_chunk (with data.data_len == 0)\n"
36723 #: ../src/guestfs.pod:2327
36725 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
36726 "is set in the final chunk to indicate either successful completion or early "
36731 #: ../src/guestfs.pod:2331
36733 "At time of writing there are no functions that have more than one FileIn "
36734 "parameter. However this is (theoretically) supported, by sending the "
36735 "sequence of chunks for each FileIn parameter one after another (from left to "
36740 #: ../src/guestfs.pod:2336
36742 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36743 "transfer. The library does this by sending a chunk with a special flag set "
36744 "to indicate cancellation. When the daemon sees this, it cancels the whole "
36745 "RPC, does I<not> send any reply, and goes back to reading the next request."
36749 #: ../src/guestfs.pod:2342
36751 "The daemon may also cancel. It does this by writing a special word "
36752 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
36753 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36754 "cancel chunk). The special word is chosen so that even if cancellation "
36755 "happens right at the end of the transfer (after the library has finished "
36756 "writing and has started listening for the reply), the \"spurious\" cancel "
36757 "flag will not be confused with the reply message."
36761 #: ../src/guestfs.pod:2351
36763 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36764 "limit), and also files where the size is not known in advance (eg. from "
36765 "pipes or sockets). However the chunks are rather small "
36766 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36767 "to keep much in memory."
36771 #: ../src/guestfs.pod:2357
36772 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36776 #: ../src/guestfs.pod:2359
36778 "The protocol for FileOut parameters is exactly the same as for FileIn "
36779 "parameters, but with the roles of daemon and library reversed."
36783 #: ../src/guestfs.pod:2362
36786 " total length (header + ret,\n"
36787 " but not including the length word itself,\n"
36788 " and not including the chunks)\n"
36789 " struct guestfs_message_header (encoded as XDR)\n"
36790 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36791 " sequence of chunks for FileOut param #0\n"
36792 " sequence of chunks for FileOut param #1 etc.\n"
36797 #: ../src/guestfs.pod:2370
36798 msgid "INITIAL MESSAGE"
36802 #: ../src/guestfs.pod:2372
36804 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36805 "which indicates that the guest and daemon is alive. This is what L</"
36806 "guestfs_launch> waits for."
36810 #: ../src/guestfs.pod:2376
36811 msgid "PROGRESS NOTIFICATION MESSAGES"
36815 #: ../src/guestfs.pod:2378
36817 "The daemon may send progress notification messages at any time. These are "
36818 "distinguished by the normal length word being replaced by "
36819 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36823 #: ../src/guestfs.pod:2382
36825 "The library turns them into progress callbacks (see L</"
36826 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36831 #: ../src/guestfs.pod:2386
36833 "The daemon self-limits the frequency of progress messages it sends (see "
36834 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
36839 #: ../src/guestfs.pod:2390
36840 msgid "LIBGUESTFS VERSION NUMBERS"
36844 #: ../src/guestfs.pod:2392
36846 "Since April 2010, libguestfs has started to make separate development and "
36847 "stable releases, along with corresponding branches in our git repository. "
36848 "These separate releases can be identified by version number:"
36852 #: ../src/guestfs.pod:2397
36855 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
36856 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36862 " | `-------- sub-version\n"
36864 " `------ always '1' because we don't change the ABI\n"
36869 #: ../src/guestfs.pod:2408
36870 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
36874 #: ../src/guestfs.pod:2410
36876 "As time passes we cherry pick fixes from the development branch and backport "
36877 "those into the stable branch, the effect being that the stable branch should "
36878 "get more stable and less buggy over time. So the stable releases are ideal "
36879 "for people who don't need new features but would just like the software to "
36884 #: ../src/guestfs.pod:2416
36885 msgid "Our criteria for backporting changes are:"
36889 #: ../src/guestfs.pod:2422
36891 "Documentation changes which don't affect any code are backported unless the "
36892 "documentation refers to a future feature which is not in stable."
36896 #: ../src/guestfs.pod:2428
36898 "Bug fixes which are not controversial, fix obvious problems, and have been "
36899 "well tested are backported."
36903 #: ../src/guestfs.pod:2433
36905 "Simple rearrangements of code which shouldn't affect how it works get "
36906 "backported. This is so that the code in the two branches doesn't get too "
36907 "far out of step, allowing us to backport future fixes more easily."
36911 #: ../src/guestfs.pod:2439
36913 "We I<don't> backport new features, new APIs, new tools etc, except in one "
36914 "exceptional case: the new feature is required in order to implement an "
36915 "important bug fix."
36919 #: ../src/guestfs.pod:2445
36921 "A new stable branch starts when we think the new features in development are "
36922 "substantial and compelling enough over the current stable branch to warrant "
36923 "it. When that happens we create new stable and development versions 1.N.0 "
36924 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
36925 "stable at this point, but by backporting fixes from development, that branch "
36926 "will stabilize over time."
36930 #: ../src/guestfs.pod:2453
36931 msgid "EXTENDING LIBGUESTFS"
36935 #: ../src/guestfs.pod:2455
36936 msgid "ADDING A NEW API ACTION"
36940 #: ../src/guestfs.pod:2457
36942 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
36943 "documentation) are generated, and this makes it easy to extend the "
36948 #: ../src/guestfs.pod:2461
36949 msgid "To add a new API action there are two changes:"
36953 #: ../src/guestfs.pod:2467
36955 "You need to add a description of the call (name, parameters, return type, "
36956 "tests, documentation) to C<generator/generator_actions.ml>."
36960 #: ../src/guestfs.pod:2470
36962 "There are two sorts of API action, depending on whether the call goes "
36963 "through to the daemon in the appliance, or is serviced entirely by the "
36964 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
36965 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
36966 "an example of the latter, since a trace flag is maintained in the handle and "
36967 "all tracing is done on the library side."
36971 #: ../src/guestfs.pod:2478
36973 "Most new actions are of the first type, and get added to the "
36974 "C<daemon_functions> list. Each function has a unique procedure number used "
36975 "in the RPC protocol which is assigned to that action when we publish "
36976 "libguestfs and cannot be reused. Take the latest procedure number and "
36981 #: ../src/guestfs.pod:2484
36983 "For library-only actions of the second type, add to the "
36984 "C<non_daemon_functions> list. Since these functions are serviced by the "
36985 "library and do not travel over the RPC mechanism to the daemon, these "
36986 "functions do not need a procedure number, and so the procedure number is set "
36991 #: ../src/guestfs.pod:2492
36992 msgid "Implement the action (in C):"
36996 #: ../src/guestfs.pod:2494
36998 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
36999 "C<daemon/> directory."
37003 #: ../src/guestfs.pod:2497
37005 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37006 "(note: double underscore) in the C<src/> directory."
37010 #: ../src/guestfs.pod:2500
37011 msgid "In either case, use another function as an example of what to do."
37015 #: ../src/guestfs.pod:2504
37016 msgid "After making these changes, use C<make> to compile."
37020 #: ../src/guestfs.pod:2506
37022 "Note that you don't need to implement the RPC, language bindings, manual "
37023 "pages or anything else. It's all automatically generated from the OCaml "
37028 #: ../src/guestfs.pod:2510
37029 msgid "ADDING TESTS FOR AN API ACTION"
37033 #: ../src/guestfs.pod:2512
37035 "You can supply zero or as many tests as you want per API call. The tests "
37036 "can either be added as part of the API description (C<generator/"
37037 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37038 "into C<regressions/>. Note that adding a script to C<regressions/> is "
37039 "slower, so if possible use the first method."
37043 #: ../src/guestfs.pod:2518
37045 "The following describes the test environment used when you add an API test "
37046 "in C<generator_actions.ml>."
37050 #: ../src/guestfs.pod:2521
37051 msgid "The test environment has 4 block devices:"
37055 #: ../src/guestfs.pod:2525
37056 msgid "C</dev/sda> 500MB"
37057 msgstr "C</dev/sda> 500 МБ"
37060 #: ../src/guestfs.pod:2527
37061 msgid "General block device for testing."
37065 #: ../src/guestfs.pod:2529
37066 msgid "C</dev/sdb> 50MB"
37067 msgstr "C</dev/sdb> 50 МБ"
37070 #: ../src/guestfs.pod:2531
37072 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37077 #: ../src/guestfs.pod:2534
37078 msgid "C</dev/sdc> 10MB"
37079 msgstr "C</dev/sdc> 10 МБ"
37082 #: ../src/guestfs.pod:2536
37083 msgid "Used in a few tests where two block devices are needed."
37087 #: ../src/guestfs.pod:2538
37088 msgid "C</dev/sdd>"
37089 msgstr "C</dev/sdd>"
37092 #: ../src/guestfs.pod:2540
37093 msgid "ISO with fixed content (see C<images/test.iso>)."
37097 #: ../src/guestfs.pod:2544
37099 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37100 "appliance and block devices are reused between tests. So don't try testing "
37101 "L</guestfs_kill_subprocess> :-x"
37105 #: ../src/guestfs.pod:2548
37107 "Each test starts with an initial scenario, selected using one of the "
37108 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
37109 "initialize the disks mentioned above in a particular way as documented in "
37110 "C<generator_types.ml>. You should not assume anything about the previous "
37111 "contents of other disks that are not initialized."
37115 #: ../src/guestfs.pod:2554
37117 "You can add a prerequisite clause to any individual test. This is a run-"
37118 "time check, which, if it fails, causes the test to be skipped. Useful if "
37119 "testing a command which might not work on all variations of libguestfs "
37120 "builds. A test that has prerequisite of C<Always> means to run "
37125 #: ../src/guestfs.pod:2560
37127 "In addition, packagers can skip individual tests by setting environment "
37128 "variables before running C<make check>."
37132 #: ../src/guestfs.pod:2563
37135 " SKIP_TEST_<CMD>_<NUM>=1\n"
37140 #: ../src/guestfs.pod:2565
37141 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37145 #: ../src/guestfs.pod:2567
37150 #: ../src/guestfs.pod:2569
37153 " SKIP_TEST_<CMD>=1\n"
37158 #: ../src/guestfs.pod:2571
37159 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37163 #: ../src/guestfs.pod:2573
37164 msgid "Packagers can run only certain tests by setting for example:"
37168 #: ../src/guestfs.pod:2575
37171 " TEST_ONLY=\"vfs_type zerofree\"\n"
37176 #: ../src/guestfs.pod:2577
37178 "See C<capitests/tests.c> for more details of how these environment variables "
37183 #: ../src/guestfs.pod:2580
37184 msgid "DEBUGGING NEW API ACTIONS"
37188 #: ../src/guestfs.pod:2582
37189 msgid "Test new actions work before submitting them."
37193 #: ../src/guestfs.pod:2584
37194 msgid "You can use guestfish to try out new commands."
37198 #: ../src/guestfs.pod:2586
37200 "Debugging the daemon is a problem because it runs inside a minimal "
37201 "environment. However you can fprintf messages in the daemon to stderr, and "
37202 "they will show up if you use C<guestfish -v>."
37206 #: ../src/guestfs.pod:2590
37207 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37211 #: ../src/guestfs.pod:2592
37213 "Our C source code generally adheres to some basic code-formatting "
37214 "conventions. The existing code base is not totally consistent on this "
37215 "front, but we do prefer that contributed code be formatted similarly. In "
37216 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37217 "indentation level, and other than that, follow the K&R style."
37221 #: ../src/guestfs.pod:2598
37223 "If you use Emacs, add the following to one of one of your start-up files (e."
37224 "g., ~/.emacs), to help ensure that you get indentation right:"
37228 #: ../src/guestfs.pod:2601
37231 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37232 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37233 " (add-hook 'find-file-hook\n"
37234 " '(lambda () (if (and buffer-file-name\n"
37235 " (string-match \"/libguestfs\\\\>\"\n"
37236 " (buffer-file-name))\n"
37237 " (not (string-equal mode-name \"Change Log\"))\n"
37238 " (not (string-equal mode-name \"Makefile\")))\n"
37239 " (setq indent-tabs-mode nil))))\n"
37244 #: ../src/guestfs.pod:2611
37247 " ;;; When editing C sources in libguestfs, use this style.\n"
37248 " (defun libguestfs-c-mode ()\n"
37249 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
37251 " (c-set-style \"K&R\")\n"
37252 " (setq c-indent-level 2)\n"
37253 " (setq c-basic-offset 2))\n"
37254 " (add-hook 'c-mode-hook\n"
37255 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37256 " (buffer-file-name))\n"
37257 " (libguestfs-c-mode))))\n"
37262 #: ../src/guestfs.pod:2623
37263 msgid "Enable warnings when compiling (and fix any problems this finds):"
37267 #: ../src/guestfs.pod:2626
37270 " ./configure --enable-gcc-warnings\n"
37273 " ./configure --enable-gcc-warnings\n"
37277 #: ../src/guestfs.pod:2628
37278 msgid "Useful targets are:"
37282 #: ../src/guestfs.pod:2630
37285 " make syntax-check # checks the syntax of the C code\n"
37286 " make check # runs the test suite\n"
37291 #: ../src/guestfs.pod:2633
37292 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37296 #: ../src/guestfs.pod:2635
37298 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37299 "which are used to do shell quoting."
37303 #: ../src/guestfs.pod:2640
37308 #: ../src/guestfs.pod:2642
37310 "Simple shell quoted string. Any spaces or other shell characters are "
37315 #: ../src/guestfs.pod:2645
37320 #: ../src/guestfs.pod:2647
37322 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37327 #: ../src/guestfs.pod:2654
37330 " asprintf (&cmd, \"cat %R\", path);\n"
37335 #: ../src/guestfs.pod:2656
37336 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37340 #: ../src/guestfs.pod:2658
37342 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37343 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
37344 "they are not passed via the shell (instead, straight to exec). You probably "
37345 "want to use the C<sysroot_path()> function however."
37349 #: ../src/guestfs.pod:2664
37350 msgid "SUBMITTING YOUR NEW API ACTIONS"
37354 #: ../src/guestfs.pod:2666
37356 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37357 "libguestfs> and CC to L<rjones@redhat.com>."
37361 #: ../src/guestfs.pod:2670
37362 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37366 #: ../src/guestfs.pod:2672
37367 msgid "We support i18n (gettext anyhow) in the library."
37371 #: ../src/guestfs.pod:2674
37373 "However many messages come from the daemon, and we don't translate those at "
37374 "the moment. One reason is that the appliance generally has all locale files "
37375 "removed from it, because they take up a lot of space. So we'd have to readd "
37376 "some of those, as well as copying our PO files into the appliance."
37380 #: ../src/guestfs.pod:2680
37382 "Debugging messages are never translated, since they are intended for the "
37387 #: ../src/guestfs.pod:2683
37388 msgid "SOURCE CODE SUBDIRECTORIES"
37392 #: ../src/guestfs.pod:2689
37393 msgid "The libguestfs appliance, build scripts and so on."
37397 #: ../src/guestfs.pod:2691
37398 msgid "C<capitests>"
37399 msgstr "C<capitests>"
37402 #: ../src/guestfs.pod:2693
37403 msgid "Automated tests of the C API."
37407 #: ../src/guestfs.pod:2695
37412 #: ../src/guestfs.pod:2697
37414 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37419 #: ../src/guestfs.pod:2700
37424 #: ../src/guestfs.pod:2702
37426 "Safety and liveness tests of components that libguestfs depends upon (not of "
37427 "libguestfs itself). Mainly this is for qemu and the kernel."
37431 #: ../src/guestfs.pod:2705
37433 msgstr "C<contrib>"
37436 #: ../src/guestfs.pod:2707
37437 msgid "Outside contributions, experimental parts."
37441 #: ../src/guestfs.pod:2709
37446 #: ../src/guestfs.pod:2711
37448 "The daemon that runs inside the libguestfs appliance and carries out actions."
37452 #: ../src/guestfs.pod:2714
37457 #: ../src/guestfs.pod:2716
37458 msgid "L<virt-df(1)> command and documentation."
37462 #: ../src/guestfs.pod:2718
37467 #: ../src/guestfs.pod:2720
37468 msgid "L<virt-edit(1)> command and documentation."
37472 #: ../src/guestfs.pod:2722
37473 msgid "C<examples>"
37474 msgstr "C<examples>"
37477 #: ../src/guestfs.pod:2724
37478 msgid "C API example code."
37479 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37482 #: ../src/guestfs.pod:2726
37487 #: ../src/guestfs.pod:2728
37489 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37490 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37491 "L<virt-tar-out(1)>."
37495 #: ../src/guestfs.pod:2732
37500 #: ../src/guestfs.pod:2734
37502 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37506 #: ../src/guestfs.pod:2736
37507 msgid "C<generator>"
37508 msgstr "C<generator>"
37511 #: ../src/guestfs.pod:2738
37513 "The crucially important generator, used to automatically generate large "
37514 "amounts of boilerplate C code for things like RPC and bindings."
37518 #: ../src/guestfs.pod:2741
37523 #: ../src/guestfs.pod:2743
37524 msgid "Files used by the test suite."
37528 #: ../src/guestfs.pod:2745
37529 msgid "Some \"phony\" guest images which we test against."
37533 #: ../src/guestfs.pod:2747
37534 msgid "C<inspector>"
37535 msgstr "C<inspector>"
37538 #: ../src/guestfs.pod:2749
37539 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37543 #: ../src/guestfs.pod:2751
37548 #: ../src/guestfs.pod:2753
37549 msgid "Logo used on the website. The fish is called Arthur by the way."
37553 #: ../src/guestfs.pod:2755
37558 #: ../src/guestfs.pod:2757
37559 msgid "M4 macros used by autoconf."
37563 #: ../src/guestfs.pod:2759
37568 #: ../src/guestfs.pod:2761
37569 msgid "Translations of simple gettext strings."
37570 msgstr "Переклади простих рядків gettext."
37573 #: ../src/guestfs.pod:2763
37575 msgstr "C<po-docs>"
37578 #: ../src/guestfs.pod:2765
37580 "The build infrastructure and PO files for translations of manpages and POD "
37581 "files. Eventually this will be combined with the C<po> directory, but that "
37582 "is rather complicated."
37586 #: ../src/guestfs.pod:2769
37587 msgid "C<regressions>"
37588 msgstr "C<regressions>"
37591 #: ../src/guestfs.pod:2771
37592 msgid "Regression tests."
37593 msgstr "Тести на регресії."
37596 #: ../src/guestfs.pod:2773
37601 #: ../src/guestfs.pod:2775
37602 msgid "L<virt-rescue(1)> command and documentation."
37606 #: ../src/guestfs.pod:2777
37611 #: ../src/guestfs.pod:2779
37612 msgid "Source code to the C library."
37616 #: ../src/guestfs.pod:2781
37621 #: ../src/guestfs.pod:2783
37622 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37626 #: ../src/guestfs.pod:2785
37627 msgid "C<test-tool>"
37628 msgstr "C<test-tool>"
37631 #: ../src/guestfs.pod:2787
37633 "Test tool for end users to test if their qemu/kernel combination will work "
37638 #: ../src/guestfs.pod:2790
37643 #: ../src/guestfs.pod:2792
37645 msgstr "C<haskell>"
37648 #: ../src/guestfs.pod:2794
37653 #: ../src/guestfs.pod:2796
37658 #: ../src/guestfs.pod:2798
37663 #: ../src/guestfs.pod:2800
37668 #: ../src/guestfs.pod:2802
37673 #: ../src/guestfs.pod:2804
37678 #: ../src/guestfs.pod:2806
37679 msgid "Language bindings."
37680 msgstr "Прив’язки до мов програмування."
37683 #: ../src/guestfs.pod:2810
37684 msgid "MAKING A STABLE RELEASE"
37688 #: ../src/guestfs.pod:2812
37690 "When we make a stable release, there are several steps documented here. See "
37691 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37696 #: ../src/guestfs.pod:2820
37698 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37702 #: ../src/guestfs.pod:2825
37703 msgid "Finalize RELEASE-NOTES."
37707 #: ../src/guestfs.pod:2829
37708 msgid "Update ROADMAP."
37712 #: ../src/guestfs.pod:2833
37713 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37717 #: ../src/guestfs.pod:2837
37718 msgid "Push and pull from Transifex."
37722 #: ../src/guestfs.pod:2839
37727 #: ../src/guestfs.pod:2841
37735 #: ../src/guestfs.pod:2843
37736 msgid "to push the latest POT files to Transifex. Then run:"
37740 #: ../src/guestfs.pod:2845
37748 #: ../src/guestfs.pod:2847
37749 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37753 #: ../src/guestfs.pod:2851
37755 "Create new stable and development directories under L<http://libguestfs.org/"
37760 #: ../src/guestfs.pod:2856
37761 msgid "Create the branch in git:"
37765 #: ../src/guestfs.pod:2858
37768 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37769 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37770 " git branch stable-1.XX\n"
37771 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37776 #: ../src/guestfs.pod:2865
37781 #: ../src/guestfs.pod:2867
37782 msgid "PROTOCOL LIMITS"
37783 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
37786 #: ../src/guestfs.pod:2869
37788 "Internally libguestfs uses a message-based protocol to pass API calls and "
37789 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37790 "plenty more detail about this). The maximum message size used by the "
37791 "protocol is slightly less than 4 MB. For some API calls you may need to be "
37792 "aware of this limit. The API calls which may be affected are individually "
37793 "documented, with a link back to this section of the documentation."
37797 #: ../src/guestfs.pod:2877
37799 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37800 "a simple string. Because this string is at some point internally encoded as "
37801 "a message, the maximum size that it can return is slightly under 4 MB. If "
37802 "the requested file is larger than this then you will get an error."
37806 #: ../src/guestfs.pod:2883
37808 "In order to transfer large files into and out of the guest filesystem, you "
37809 "need to use particular calls that support this. The sections L</UPLOADING> "
37810 "and L</DOWNLOADING> document how to do this."
37814 #: ../src/guestfs.pod:2887
37816 "You might also consider mounting the disk image using our FUSE filesystem "
37817 "support (L<guestmount(1)>)."
37821 #: ../src/guestfs.pod:2890
37822 msgid "MAXIMUM NUMBER OF DISKS"
37826 #: ../src/guestfs.pod:2892
37827 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37831 #: ../src/guestfs.pod:2895
37833 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37834 "slots. However febootstrap only understands disks with names C</dev/vda> "
37835 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37840 #: ../src/guestfs.pod:2900
37842 "We are working to substantially raise this limit in future versions but it "
37843 "requires complex changes to qemu."
37847 #: ../src/guestfs.pod:2903
37849 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37850 "disks (add and remove disks after calling L</guestfs_launch>). This also "
37851 "requires changes to qemu."
37855 #: ../src/guestfs.pod:2907
37856 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37860 #: ../src/guestfs.pod:2909
37861 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
37865 #: ../src/guestfs.pod:2911
37867 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
37868 "vda>, and C</dev/vda1> through C</dev/vda15>)."
37872 #: ../src/guestfs.pod:2914
37874 "If you attach a disk with more than 15 partitions, the extra partitions are "
37875 "ignored by libguestfs."
37879 #: ../src/guestfs.pod:2917
37880 msgid "MAXIMUM SIZE OF A DISK"
37884 #: ../src/guestfs.pod:2919
37885 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
37889 #: ../src/guestfs.pod:2921
37891 "We have tested block devices up to 1 exabyte (2**60 or "
37892 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
37897 #: ../src/guestfs.pod:2925
37899 "Although libguestfs probably does not impose any limit, the underlying host "
37900 "storage will. If you store disk images on a host ext4 filesystem, then the "
37901 "maximum size will be limited by the maximum ext4 file size (currently 16 "
37902 "TB). If you store disk images as host logical volumes then you are limited "
37903 "by the maximum size of an LV."
37907 #: ../src/guestfs.pod:2931
37909 "For the hugest disk image files, we recommend using XFS on the host for "
37914 #: ../src/guestfs.pod:2934
37915 msgid "MAXIMUM SIZE OF A PARTITION"
37919 #: ../src/guestfs.pod:2936
37921 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
37922 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
37923 "address a partition located beyond 2 TB on the disk."
37927 #: ../src/guestfs.pod:2940
37929 "It is recommended that you use GPT partitions on disks which are larger than "
37930 "this size. GPT uses 64 bit sector numbers and so can address partitions "
37931 "which are theoretically larger than the largest disk we could support."
37935 #: ../src/guestfs.pod:2945
37936 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
37940 #: ../src/guestfs.pod:2947
37942 "This depends on the filesystem type. libguestfs itself does not impose any "
37943 "known limit. Consult Wikipedia or the filesystem documentation to find out "
37944 "what these limits are."
37948 #: ../src/guestfs.pod:2951
37949 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
37953 #: ../src/guestfs.pod:2953
37955 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
37956 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
37957 "uploads and downloads."
37961 #: ../src/guestfs.pod:2957
37962 msgid "INSPECTION LIMITS"
37966 #: ../src/guestfs.pod:2959
37968 "The inspection code has several arbitrary limits on things like the size of "
37969 "Windows Registry hive it will read, and the length of product name. These "
37970 "are intended to stop a malicious guest from consuming arbitrary amounts of "
37971 "memory and disk space on the host, and should not be reached in practice. "
37972 "See the source code for more information."
37976 #: ../src/guestfs.pod:2985
37978 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
37979 "effect as calling C<guestfs_set_verbose (g, 1)>."
37983 #: ../src/guestfs.pod:2997
37985 "Set the path that libguestfs uses to search for a supermin appliance. See "
37986 "the discussion of paths in section L</PATH> above."
37990 #: ../src/guestfs.pod:3006
37991 msgid "See also L</QEMU WRAPPERS> above."
37995 #: ../src/guestfs.pod:3010
37997 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
37998 "effect as calling C<guestfs_set_trace (g, 1)>."
38002 #: ../src/guestfs.pod:3028
38004 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38005 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38006 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38007 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38008 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38009 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38010 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38011 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38015 #: ../src/guestfs.pod:3058
38017 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38018 "(8)>, L<disktype(1)>."
38022 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553
38023 #: ../tools/virt-win-reg.pl:761
38028 #: ../src/guestfs.pod:3067
38029 msgid "To get a list of bugs against libguestfs use this link:"
38031 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38035 #: ../src/guestfs.pod:3069
38037 "L<https://bugzilla.redhat.com/buglist.cgi?"
38038 "component=libguestfs&product=Virtualization+Tools>"
38040 "L<https://bugzilla.redhat.com/buglist.cgi?"
38041 "component=libguestfs&product=Virtualization+Tools>"
38044 #: ../src/guestfs.pod:3071
38045 msgid "To report a new bug against libguestfs use this link:"
38046 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38049 #: ../src/guestfs.pod:3073
38051 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38052 "component=libguestfs&product=Virtualization+Tools>"
38054 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38055 "component=libguestfs&product=Virtualization+Tools>"
38058 #: ../src/guestfs.pod:3075
38059 msgid "When reporting a bug, please check:"
38063 #: ../src/guestfs.pod:3081
38064 msgid "That the bug hasn't been reported already."
38068 #: ../src/guestfs.pod:3085
38069 msgid "That you are testing a recent version."
38073 #: ../src/guestfs.pod:3089
38074 msgid "Describe the bug accurately, and give a way to reproduce it."
38078 #: ../src/guestfs.pod:3093
38080 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38085 #: ../test-tool/libguestfs-test-tool.pod:5
38086 msgid "libguestfs-test-tool - End user tests for libguestfs"
38090 #: ../test-tool/libguestfs-test-tool.pod:9
38093 " libguestfs-test-tool [--options]\n"
38098 #: ../test-tool/libguestfs-test-tool.pod:13
38100 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38101 "and developers, to allow them to check basic libguestfs functionality is "
38102 "working. This is needed because libguestfs occasionally breaks for reasons "
38103 "beyond our control: usually because of changes in the underlying qemu or "
38104 "kernel packages, or the host environment."
38108 #: ../test-tool/libguestfs-test-tool.pod:20
38109 msgid "If you suspect a problem in libguestfs, then just run:"
38113 #: ../test-tool/libguestfs-test-tool.pod:22
38116 " libguestfs-test-tool\n"
38121 #: ../test-tool/libguestfs-test-tool.pod:24
38122 msgid "It will print lots of diagnostic messages."
38126 #: ../test-tool/libguestfs-test-tool.pod:26
38127 msgid "If it runs to completion successfully, you will see this near the end:"
38131 #: ../test-tool/libguestfs-test-tool.pod:28
38134 " ===== TEST FINISHED OK =====\n"
38139 #: ../test-tool/libguestfs-test-tool.pod:30
38140 msgid "and the test tool will exit with code 0."
38144 #: ../test-tool/libguestfs-test-tool.pod:32
38146 "If it fails (and/or exits with non-zero error code), please paste the "
38147 "B<complete, unedited> output of the test tool into a bug report. More "
38148 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38153 #: ../test-tool/libguestfs-test-tool.pod:41
38158 #: ../test-tool/libguestfs-test-tool.pod:43
38159 msgid "Display short usage information and exit."
38163 #: ../test-tool/libguestfs-test-tool.pod:45
38164 msgid "I<--qemu qemu_binary>"
38165 msgstr "I<--qemu виконуваний_файл_qemu>"
38168 #: ../test-tool/libguestfs-test-tool.pod:47
38170 "If you have downloaded another qemu binary, point this option at the full "
38171 "path of the binary to try it."
38175 #: ../test-tool/libguestfs-test-tool.pod:50
38176 msgid "I<--qemudir qemu_source_dir>"
38180 #: ../test-tool/libguestfs-test-tool.pod:52
38182 "If you have compiled qemu from source, point this option at the source "
38183 "directory to try it."
38187 #: ../test-tool/libguestfs-test-tool.pod:55
38188 msgid "I<--timeout N>"
38189 msgstr "I<--timeout N>"
38192 #: ../test-tool/libguestfs-test-tool.pod:57
38194 "Set the launch timeout to C<N> seconds. The default is 120 seconds which "
38195 "does not usually need to be adjusted unless your machine is very slow."
38199 #: ../test-tool/libguestfs-test-tool.pod:63
38200 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38204 #: ../test-tool/libguestfs-test-tool.pod:65
38206 "If you have compiled another version of qemu from source and would like to "
38207 "try that, then you can use the I<--qemudir> option to point to the qemu "
38208 "source directory."
38212 #: ../test-tool/libguestfs-test-tool.pod:69
38214 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38215 "option to point to the binary."
38219 #: ../test-tool/libguestfs-test-tool.pod:72
38221 "When using an alternate qemu with libguestfs, usually you would need to "
38222 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38223 ">). libguestfs-test-tool writes a temporary qemu wrapper script when you "
38224 "use either of the I<--qemudir> or I<--qemu> options."
38228 #: ../test-tool/libguestfs-test-tool.pod:79
38230 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38231 "I<1> if there was an error."
38235 #: ../test-tool/libguestfs-test-tool.pod:84
38237 "For the full list of environment variables which may affect libguestfs, "
38238 "please see the L<guestfs(3)> manual page."
38242 #: ../test-tool/libguestfs-test-tool.pod:89
38243 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38247 #: ../tools/virt-list-filesystems.pl:32
38249 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38253 #: ../tools/virt-list-filesystems.pl:36
38256 " virt-list-filesystems [--options] domname\n"
38261 #: ../tools/virt-list-filesystems.pl:38
38264 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38269 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38271 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
38276 #: ../tools/virt-list-filesystems.pl:45
38278 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38279 "are contained in a virtual machine or disk image."
38283 #: ../tools/virt-list-filesystems.pl:49
38285 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38286 "functionality. For more complex cases you should look at the L<guestfish(1)"
38291 #: ../tools/virt-list-filesystems.pl:112
38293 "With this option, C<virt-list-filesystems> displays the type of each "
38294 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38298 #: ../tools/virt-list-filesystems.pl:119
38300 #| msgid "B<-a image>"
38302 msgstr "B<-a образ>"
38305 #: ../tools/virt-list-filesystems.pl:123
38307 "Normally we only show mountable filesystems. If this option is given then "
38308 "swap devices are shown too."
38312 #: ../tools/virt-list-filesystems.pl:197
38314 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38315 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38316 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38318 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38319 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38320 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38323 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38324 msgid "Copyright (C) 2009 Red Hat Inc."
38325 msgstr "© Red Hat Inc., 2009"
38328 #: ../tools/virt-list-partitions.pl:32
38330 "virt-list-partitions - List partitions in a virtual machine or disk image"
38334 #: ../tools/virt-list-partitions.pl:36
38337 " virt-list-partitions [--options] domname\n"
38340 " virt-list-partitions [--параметри] назва_домену\n"
38344 #: ../tools/virt-list-partitions.pl:38
38347 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38350 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38354 #: ../tools/virt-list-partitions.pl:45
38356 "C<virt-list-partitions> is a command line tool to list the partitions that "
38357 "are contained in a virtual machine or disk image. It is mainly useful as a "
38358 "first step to using L<virt-resize(1)>."
38362 #: ../tools/virt-list-partitions.pl:50
38364 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38365 "functionality. For more complex cases you should look at the L<guestfish(1)"
38370 #: ../tools/virt-list-partitions.pl:113
38371 msgid "Show sizes in human-readable form (eg. \"1G\")."
38375 #: ../tools/virt-list-partitions.pl:123
38377 "With this option, C<virt-list-partitions> displays the type and size of each "
38378 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38382 #: ../tools/virt-list-partitions.pl:130
38387 #: ../tools/virt-list-partitions.pl:132
38389 #| msgid "B<-t> | B<--total>"
38391 msgstr "B<-t> | B<--total>"
38394 #: ../tools/virt-list-partitions.pl:134
38396 "Display the total size of each block device (as a separate row or rows)."
38400 #: ../tools/virt-list-partitions.pl:267
38402 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38403 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38404 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38406 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38407 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38408 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38411 #: ../tools/virt-list-partitions.pl:283
38412 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38413 msgstr "© Red Hat Inc., 2009–2010"
38416 #: ../tools/virt-make-fs.pl:37
38417 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38421 #: ../tools/virt-make-fs.pl:41
38424 " virt-make-fs [--options] input.tar output.img\n"
38429 #: ../tools/virt-make-fs.pl:43
38432 " virt-make-fs [--options] input.tar.gz output.img\n"
38437 #: ../tools/virt-make-fs.pl:45
38440 " virt-make-fs [--options] directory output.img\n"
38445 #: ../tools/virt-make-fs.pl:49
38447 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38448 "archive or some files in a directory. It is similar to tools like L<mkisofs"
38449 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
38450 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38451 "you want to attach these filesystems to existing virtual machines (eg. to "
38452 "import large amounts of read-only data to a VM)."
38456 #: ../tools/virt-make-fs.pl:57
38457 msgid "Basic usage is:"
38461 #: ../tools/virt-make-fs.pl:59
38464 " virt-make-fs input output\n"
38469 #: ../tools/virt-make-fs.pl:61
38471 "where C<input> is either a directory containing files that you want to add, "
38472 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38473 "C<output> is a disk image. The input type is detected automatically. The "
38474 "output disk image defaults to a raw ext2 image unless you specify extra "
38475 "flags (see L</OPTIONS> below)."
38479 #: ../tools/virt-make-fs.pl:67
38480 msgid "EXTRA SPACE"
38484 #: ../tools/virt-make-fs.pl:69
38486 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38487 "the files that it contains, but might have extra space. Depending on how "
38488 "you are going to use the output, you might think this extra space is wasted "
38489 "and want to minimize it, or you might want to leave space so that more files "
38490 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
38491 "but you can use the I<--size> flag to leave space in the filesystem if you "
38496 #: ../tools/virt-make-fs.pl:77
38498 "An alternative way to leave extra space but not make the output image any "
38499 "bigger is to use an alternative disk image format (instead of the default "
38500 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38501 "image format (check your hypervisor supports this before using it). This "
38502 "allows you to choose a large I<--size> but the extra space won't actually be "
38503 "allocated in the image until you try to store something in it."
38507 #: ../tools/virt-make-fs.pl:85
38509 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38510 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38511 "to build another image from scratch."
38515 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38516 #: ../tools/virt-make-fs.pl:142
38521 #: ../tools/virt-make-fs.pl:91
38524 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38527 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38531 #: ../tools/virt-make-fs.pl:93
38532 msgid "FILESYSTEM TYPE"
38533 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38536 #: ../tools/virt-make-fs.pl:95
38538 "The default filesystem type is C<ext2>. Just about any filesystem type that "
38539 "libguestfs supports can be used (but I<not> read-only formats like "
38540 "ISO9660). Here are some of the more common choices:"
38544 #: ../tools/virt-make-fs.pl:101
38549 #: ../tools/virt-make-fs.pl:103
38551 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
38552 "you are not going to use the filesystem in a way that requires the journal, "
38553 "then this is just wasted overhead."
38557 #: ../tools/virt-make-fs.pl:107
38558 msgid "I<ntfs> or I<vfat>"
38559 msgstr "I<ntfs> або I<vfat>"
38562 #: ../tools/virt-make-fs.pl:109
38563 msgid "Useful if exporting data to a Windows guest."
38567 #: ../tools/virt-make-fs.pl:111
38569 "I<Note for vfat>: The tar archive or local directory must only contain files "
38570 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
38571 "program running within libguestfs is unable to change the ownership of non-"
38572 "root files, since vfat itself does not support this."
38576 #: ../tools/virt-make-fs.pl:116
38581 #: ../tools/virt-make-fs.pl:118
38583 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38584 "total filesystem size."
38588 #: ../tools/virt-make-fs.pl:125
38591 " virt-make-fs --type=minix input minixfs.img\n"
38596 #: ../tools/virt-make-fs.pl:127
38597 msgid "TO PARTITION OR NOT TO PARTITION"
38601 #: ../tools/virt-make-fs.pl:129
38602 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38606 #: ../tools/virt-make-fs.pl:131
38608 "Adding a partition can make the disk image more compatible with certain "
38609 "virtualized operating systems which don't expect to see a filesystem "
38610 "directly located on a block device (Linux doesn't care and will happily "
38611 "handle both types)."
38615 #: ../tools/virt-make-fs.pl:136
38617 "On the other hand, if you have a partition table then the output image is no "
38618 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
38619 "directly on a partitioned disk image. (However libguestfs tools such as "
38620 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38624 #: ../tools/virt-make-fs.pl:144
38625 msgid "Add an MBR partition:"
38629 #: ../tools/virt-make-fs.pl:146
38632 " virt-make-fs --partition -- input disk.img\n"
38637 #: ../tools/virt-make-fs.pl:148
38639 "If the output disk image could be terabyte-sized or larger, it's better to "
38640 "use an EFI/GPT-compatible partition table:"
38644 #: ../tools/virt-make-fs.pl:151
38647 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38652 #: ../tools/virt-make-fs.pl:179
38653 msgid "Enable debugging information."
38654 msgstr "Увімкнути виведення діагностичних даних."
38657 #: ../tools/virt-make-fs.pl:185
38658 msgid "B<--size=E<lt>NE<gt>>"
38659 msgstr "B<--size=E<lt>NE<gt>>"
38662 #: ../tools/virt-make-fs.pl:187
38663 msgid "B<--size=+E<lt>NE<gt>>"
38664 msgstr "B<--size=+E<lt>NE<gt>>"
38667 #: ../tools/virt-make-fs.pl:189
38668 msgid "B<-s E<lt>NE<gt>>"
38669 msgstr "B<-s E<lt>NE<gt>>"
38672 #: ../tools/virt-make-fs.pl:191
38673 msgid "B<-s +E<lt>NE<gt>>"
38674 msgstr "B<-s +E<lt>NE<gt>>"
38677 #: ../tools/virt-make-fs.pl:193
38679 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38683 #: ../tools/virt-make-fs.pl:196
38685 "If this option is I<not> given, then the output image will be just large "
38686 "enough to contain all the files, with not much wasted space."
38690 #: ../tools/virt-make-fs.pl:199
38692 "To choose a fixed size output disk, specify an absolute number followed by b/"
38693 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38694 "Petabytes or Exabytes. This must be large enough to contain all the input "
38695 "files, else you will get an error."
38699 #: ../tools/virt-make-fs.pl:204
38701 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38702 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38703 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
38704 "the input files, and (approximately) an extra 200 MB free space."
38708 #: ../tools/virt-make-fs.pl:210
38710 "Note that virt-make-fs estimates free space, and therefore will not produce "
38711 "filesystems containing precisely the free space requested. (It is much more "
38712 "expensive and time-consuming to produce a filesystem which has precisely the "
38713 "desired free space)."
38717 #: ../tools/virt-make-fs.pl:219
38718 msgid "B<--format=E<lt>fmtE<gt>>"
38722 #: ../tools/virt-make-fs.pl:221
38723 msgid "B<-F E<lt>fmtE<gt>>"
38727 #: ../tools/virt-make-fs.pl:223
38728 msgid "Choose the output disk image format."
38732 #: ../tools/virt-make-fs.pl:225
38733 msgid "The default is C<raw> (raw disk image)."
38737 #: ../tools/virt-make-fs.pl:227
38739 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
38740 "that would really make sense here is C<qcow2>."
38744 #: ../tools/virt-make-fs.pl:234
38745 msgid "B<--type=E<lt>fsE<gt>>"
38749 #: ../tools/virt-make-fs.pl:236
38750 msgid "B<-t E<lt>fsE<gt>>"
38754 #: ../tools/virt-make-fs.pl:238
38755 msgid "Choose the output filesystem type."
38759 #: ../tools/virt-make-fs.pl:240
38760 msgid "The default is C<ext2>."
38761 msgstr "Типовим значенням є C<ext2>."
38764 #: ../tools/virt-make-fs.pl:242
38766 "Any filesystem which is supported read-write by libguestfs can be used here."
38770 #: ../tools/virt-make-fs.pl:249
38771 msgid "B<--partition>"
38772 msgstr "B<--partition>"
38775 #: ../tools/virt-make-fs.pl:251
38776 msgid "B<--partition=E<lt>parttypeE<gt>>"
38780 #: ../tools/virt-make-fs.pl:253
38782 "If specified, this flag adds an MBR partition table to the output disk image."
38786 #: ../tools/virt-make-fs.pl:256
38788 "You can change the partition table type, eg. I<--partition=gpt> for large "
38793 #: ../tools/virt-make-fs.pl:259
38795 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38796 "might consider the next parameter to be the partition type. For example:"
38800 #: ../tools/virt-make-fs.pl:263
38803 " virt-make-fs --partition input.tar ...\n"
38808 #: ../tools/virt-make-fs.pl:265
38810 "would cause virt-make-fs to think you wanted to use a partition type of "
38811 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
38812 "dash) between options and the input file argument:"
38816 #: ../tools/virt-make-fs.pl:269
38819 " virt-make-fs --partition -- input.tar ...\n"
38822 " virt-make-fs --partition -- input.tar ...\n"
38826 #: ../tools/virt-make-fs.pl:541
38828 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38829 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38830 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38832 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38833 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38834 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38837 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38839 "When reporting bugs, please enable debugging and capture the I<complete> "
38844 #: ../tools/virt-make-fs.pl:558
38847 " export LIBGUESTFS_DEBUG=1\n"
38848 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38851 " export LIBGUESTFS_DEBUG=1\n"
38852 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38856 #: ../tools/virt-make-fs.pl:561
38858 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
38863 #: ../tools/virt-tar.pl:33
38864 msgid "virt-tar - Extract or upload files to a virtual machine"
38868 #: ../tools/virt-tar.pl:37
38871 " virt-tar [--options] -x domname directory tarball\n"
38876 #: ../tools/virt-tar.pl:39
38879 " virt-tar [--options] -u domname tarball directory\n"
38884 #: ../tools/virt-tar.pl:41
38887 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
38892 #: ../tools/virt-tar.pl:43
38895 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
38900 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
38905 #: ../tools/virt-tar.pl:47
38907 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
38908 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
38912 #: ../tools/virt-tar.pl:52
38913 msgid "Download C</home> from the VM into a local tarball:"
38917 #: ../tools/virt-tar.pl:54
38920 " virt-tar -x domname /home home.tar\n"
38925 #: ../tools/virt-tar.pl:56
38928 " virt-tar -zx domname /home home.tar.gz\n"
38933 #: ../tools/virt-tar.pl:58
38934 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
38938 #: ../tools/virt-tar.pl:60
38941 " virt-tar -u domname uploadstuff.tar /tmp\n"
38946 #: ../tools/virt-tar.pl:62
38949 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
38954 #: ../tools/virt-tar.pl:66
38956 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
38957 "virtual machines. If you do this, you risk disk corruption in the VM. "
38958 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
38962 #: ../tools/virt-tar.pl:71
38964 "You can use I<-x> (extract) on live virtual machines, but you might get "
38965 "inconsistent results or errors if there is filesystem activity inside the "
38966 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
38967 "work, but the only way to guarantee consistent results is if the virtual "
38968 "machine is shut down."
38972 #: ../tools/virt-tar.pl:79
38974 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
38975 "parts of a guest filesystem. There are many possibilities: making backups, "
38976 "uploading data files, snooping on guest activity, fixing or customizing "
38981 #: ../tools/virt-tar.pl:84
38983 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
38984 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
38985 "should look at the L<guestfish(1)> tool."
38989 #: ../tools/virt-tar.pl:88
38991 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
38992 "its contents (recursively) from the virtual machine into a local tarball. "
38993 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
38994 "virtual machine. You cannot use these two options together."
38998 #: ../tools/virt-tar.pl:94
39000 "In addition, you may need to use the I<-z> (gZip) option to enable "
39001 "compression. When uploading, you have to specify I<-z> if the upload file "
39002 "is compressed because virt-tar won't detect this on its own."
39006 #: ../tools/virt-tar.pl:98
39008 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
39009 "example it cannot do PKZip files or bzip2 compression. If you want that "
39010 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
39011 "the L<libguestfs(3)> API)."
39015 #: ../tools/virt-tar.pl:160
39017 #| msgid "B<--format>"
39018 msgid "B<--extract>"
39019 msgstr "B<--format>"
39022 #: ../tools/virt-tar.pl:162
39024 #| msgid "download"
39025 msgid "B<--download>"
39029 #: ../tools/virt-tar.pl:164
39034 #: ../tools/virt-tar.pl:166
39036 #| msgid "B<-u> | B<--upload>"
39037 msgid "B<--upload>"
39038 msgstr "B<-u> | B<--upload>"
39041 #: ../tools/virt-tar.pl:168
39043 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39048 #: ../tools/virt-tar.pl:171
39050 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
39051 "Please read the L</WARNING> section above before using this option."
39055 #: ../tools/virt-tar.pl:175
39056 msgid "You must specify exactly one of these options."
39060 #: ../tools/virt-tar.pl:181
39065 #: ../tools/virt-tar.pl:183
39067 #| msgid "B<-z> | B<--gzip>"
39069 msgstr "B<-z> | B<--gzip>"
39072 #: ../tools/virt-tar.pl:185
39073 msgid "Specify that the input or output tarball is gzip-compressed."
39077 #: ../tools/virt-tar.pl:298
39079 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39080 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39081 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39084 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39085 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39086 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39090 #: ../tools/virt-win-reg.pl:37
39092 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39096 #: ../tools/virt-win-reg.pl:41
39099 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39104 #: ../tools/virt-win-reg.pl:43
39107 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39112 #: ../tools/virt-win-reg.pl:45
39115 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39120 #: ../tools/virt-win-reg.pl:47
39123 " virt-win-reg --merge domname [input.reg ...]\n"
39128 #: ../tools/virt-win-reg.pl:49
39131 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39136 #: ../tools/virt-win-reg.pl:53
39138 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39139 "virtual machines. If you do this, you I<will> get irreversible disk "
39140 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
39141 "but doesn't catch all cases."
39145 #: ../tools/virt-win-reg.pl:58
39147 "Modifying the Windows Registry is an inherently risky operation. The format "
39148 "is deliberately obscure and undocumented, and Registry changes can leave the "
39149 "system unbootable. Therefore when using the I<--merge> option, make sure "
39150 "you have a reliable backup first."
39154 #: ../tools/virt-win-reg.pl:65
39156 "This program can export and merge Windows Registry entries from a Windows "
39161 #: ../tools/virt-win-reg.pl:68
39163 "The first parameter is the libvirt guest name or the raw disk image of a "
39168 #: ../tools/virt-win-reg.pl:71
39170 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39171 "exported (recursively). For example:"
39175 #: ../tools/virt-win-reg.pl:74
39178 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39183 #: ../tools/virt-win-reg.pl:76
39185 "You can also display single values from within registry keys, for example:"
39189 #: ../tools/virt-win-reg.pl:79
39192 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39193 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39194 " Windows 7 Enterprise\n"
39199 #: ../tools/virt-win-reg.pl:83
39201 "With I<--merge>, you can merge a textual regedit file into the Windows "
39206 #: ../tools/virt-win-reg.pl:86
39209 " $ virt-win-reg --merge Windows7 changes.reg\n"
39214 #: ../tools/virt-win-reg.pl:90
39216 "This program is only meant for simple access to the registry. If you want "
39217 "to do complicated things with the registry, we suggest you download the "
39218 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39219 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39220 "L<hivexregedit(1)>."
39224 #: ../tools/virt-win-reg.pl:159
39226 msgstr "B<--merge>"
39229 #: ../tools/virt-win-reg.pl:161
39231 "In merge mode, this merges a textual regedit file into the Windows Registry "
39232 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
39233 "displays or exports Registry entries instead."
39237 #: ../tools/virt-win-reg.pl:165
39239 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39240 "result in disk corruption. However exporting (without this flag) is always "
39245 #: ../tools/virt-win-reg.pl:173
39246 msgid "B<--encoding> UTF-16LE|ASCII"
39250 #: ../tools/virt-win-reg.pl:175
39252 "When merging (only), you may need to specify the encoding for strings to be "
39253 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
39254 "(3)/ENCODING STRINGS>."
39258 #: ../tools/virt-win-reg.pl:179
39260 "The default is to use UTF-16LE, which should work with recent versions of "
39265 #: ../tools/virt-win-reg.pl:186
39266 msgid "B<--unsafe-printable-strings>"
39270 #: ../tools/virt-win-reg.pl:188
39272 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39273 "instead of hex sequences. Remove the final zero codepoint from strings if "
39278 #: ../tools/virt-win-reg.pl:192
39280 "This is unsafe and does not preserve the fidelity of strings in the original "
39281 "Registry for various reasons:"
39285 #: ../tools/virt-win-reg.pl:199
39287 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
39288 "other encodings will be corrupted by this transformation."
39292 #: ../tools/virt-win-reg.pl:204
39294 "Assumes that everything which has type 1 or 2 is really a string and that "
39295 "everything else is not a string, but the type field in real Registries is "
39300 #: ../tools/virt-win-reg.pl:210
39302 "Loses information about whether a zero codepoint followed the string in the "
39307 #: ../tools/virt-win-reg.pl:215
39309 "This all happens because the Registry itself contains no information about "
39310 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39314 #: ../tools/virt-win-reg.pl:219
39316 "You should only use this option for quick hacking and debugging of the "
39317 "Registry contents, and I<never> use it if the output is going to be passed "
39318 "into another program or stored in another Registry."
39322 #: ../tools/virt-win-reg.pl:556
39323 msgid "SUPPORTED SYSTEMS"
39327 #: ../tools/virt-win-reg.pl:558
39329 "The program currently supports Windows NT-derived guests starting with "
39330 "Windows XP through to at least Windows 7."
39334 #: ../tools/virt-win-reg.pl:561
39335 msgid "The following Registry keys are supported:"
39339 #: ../tools/virt-win-reg.pl:565
39340 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39344 #: ../tools/virt-win-reg.pl:567
39345 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39349 #: ../tools/virt-win-reg.pl:569
39350 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39354 #: ../tools/virt-win-reg.pl:571
39355 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39359 #: ../tools/virt-win-reg.pl:573
39360 msgid "C<HKEY_USERS\\.DEFAULT>"
39364 #: ../tools/virt-win-reg.pl:575
39365 msgid "C<HKEY_USERS\\I<SID>>"
39369 #: ../tools/virt-win-reg.pl:577
39370 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39374 #: ../tools/virt-win-reg.pl:579
39375 msgid "C<HKEY_USERS\\I<username>>"
39379 #: ../tools/virt-win-reg.pl:581
39381 "where I<username> is a local user name (this is a libguestfs extension)."
39385 #: ../tools/virt-win-reg.pl:585
39387 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39392 #: ../tools/virt-win-reg.pl:588
39394 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39395 "supported (there is no \"current user\")."
39399 #: ../tools/virt-win-reg.pl:591
39404 #: ../tools/virt-win-reg.pl:593
39406 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39407 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
39408 "style line endings. Since Windows regedit files are often in UTF-16LE with "
39409 "Windows-style line endings, you may need to reencode the whole file before "
39410 "or after processing."
39414 #: ../tools/virt-win-reg.pl:599
39416 "To reencode a file from Windows format to Linux (before processing it with "
39417 "the I<--merge> option), you would do something like this:"
39421 #: ../tools/virt-win-reg.pl:602
39424 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39429 #: ../tools/virt-win-reg.pl:604
39431 "To go in the opposite direction, after exporting and before sending the file "
39432 "to a Windows user, do something like this:"
39436 #: ../tools/virt-win-reg.pl:607
39439 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39444 #: ../tools/virt-win-reg.pl:609
39445 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39449 #: ../tools/virt-win-reg.pl:611
39451 "If you are unsure about the current encoding, use the L<file(1)> command. "
39452 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39453 "style (CRLF) line endings, like this:"
39457 #: ../tools/virt-win-reg.pl:615
39460 " $ file software.reg\n"
39461 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39462 " with CRLF line terminators\n"
39467 #: ../tools/virt-win-reg.pl:619
39468 msgid "This file would need conversion before you could I<--merge> it."
39472 #: ../tools/virt-win-reg.pl:621
39473 msgid "CurrentControlSet etc."
39477 #: ../tools/virt-win-reg.pl:623
39479 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39480 "Registry at the level of the hive file, and therefore you cannot modify "
39485 #: ../tools/virt-win-reg.pl:627
39487 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
39488 "circumstances it might refer to another control set. The way to find out is "
39489 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39493 #: ../tools/virt-win-reg.pl:631
39496 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39497 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39498 " \"Current\"=dword:00000001\n"
39499 " \"Default\"=dword:00000001\n"
39500 " \"Failed\"=dword:00000000\n"
39501 " \"LastKnownGood\"=dword:00000002\n"
39506 #: ../tools/virt-win-reg.pl:638
39507 msgid "\"Current\" is the one which Windows will choose when it boots."
39511 #: ../tools/virt-win-reg.pl:640
39513 "Similarly, other C<Current...> keys in the path may need to be replaced."
39517 #: ../tools/virt-win-reg.pl:643
39518 msgid "WINDOWS TIPS"
39522 #: ../tools/virt-win-reg.pl:645
39524 "Note that some of these tips modify the guest disk image. The guest I<must> "
39525 "be shut off, else you will get disk corruption."
39529 #: ../tools/virt-win-reg.pl:648
39530 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39534 #: ../tools/virt-win-reg.pl:650
39536 "Prepare a DOS batch script, VBScript or executable. Upload this using "
39537 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
39538 "is uploaded into C<C:\\>:"
39542 #: ../tools/virt-win-reg.pl:654
39545 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39550 #: ../tools/virt-win-reg.pl:656
39551 msgid "Prepare a regedit file containing the registry change:"
39555 #: ../tools/virt-win-reg.pl:658
39558 " cat > test.reg <<'EOF'\n"
39559 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39560 " \"Test\"=\"c:\\\\test.bat\"\n"
39566 #: ../tools/virt-win-reg.pl:663
39568 "In this example we use the key C<RunOnce> which means that the script will "
39569 "run precisely once when the first user logs in. If you want it to run every "
39570 "time a user logs in, replace C<RunOnce> with C<Run>."
39574 #: ../tools/virt-win-reg.pl:667
39575 msgid "Now update the registry:"
39579 #: ../tools/virt-win-reg.pl:669
39582 " virt-win-reg --merge WindowsGuest test.reg\n"
39587 #: ../tools/virt-win-reg.pl:671
39588 msgid "INSTALLING A SERVICE"
39592 #: ../tools/virt-win-reg.pl:673
39594 "This section assumes you are familiar with Windows services, and you either "
39595 "have a program which handles the Windows Service Control Protocol directly "
39596 "or you want to run any program using a service wrapper like SrvAny or the "
39601 #: ../tools/virt-win-reg.pl:678
39603 "First upload the program and optionally the service wrapper. In this case "
39604 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39608 #: ../tools/virt-win-reg.pl:682
39611 " guestfish -i -d WindowsGuest <<EOF\n"
39612 " upload rhsrvany.exe /rhsrvany.exe\n"
39613 " upload test.exe /test.exe\n"
39619 #: ../tools/virt-win-reg.pl:687
39621 "Prepare a regedit file containing the registry changes. In this example, "
39622 "the first registry change is needed for the service itself or the service "
39623 "wrapper (if used). The second registry change is only needed because I am "
39624 "using the RHSrvAny service wrapper."
39628 #: ../tools/virt-win-reg.pl:692
39631 " cat > service.reg <<'EOF'\n"
39632 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39633 " \"Type\"=dword:00000010\n"
39634 " \"Start\"=dword:00000002\n"
39635 " \"ErrorControl\"=dword:00000001\n"
39636 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39637 " \"DisplayName\"=\"RHSrvAny\"\n"
39638 " \"ObjectName\"=\"NetworkService\"\n"
39643 #: ../tools/virt-win-reg.pl:701
39646 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39647 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39648 " \"PWD\"=\"c:\\\\Temp\"\n"
39654 #: ../tools/virt-win-reg.pl:712
39656 "For use of C<ControlSet001> see the section above in this manual page. You "
39657 "may need to adjust this according to the control set that is in use by the "
39662 #: ../tools/virt-win-reg.pl:718
39664 "C<\"ObjectName\"> controls the privileges that the service will have. An "
39665 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39666 "privileged account."
39670 #: ../tools/virt-win-reg.pl:724
39672 "For the meaning of the magic numbers, see this Microsoft KB article: "
39673 "L<http://support.microsoft.com/kb/103000>."
39677 #: ../tools/virt-win-reg.pl:729
39678 msgid "Update the registry:"
39682 #: ../tools/virt-win-reg.pl:731
39685 " virt-win-reg --merge WindowsGuest service.reg\n"
39690 #: ../tools/virt-win-reg.pl:735
39692 "Be careful when passing parameters containing C<\\> (backslash) in the "
39693 "shell. Usually you will have to use 'single quotes' or double backslashes "
39694 "(but not both) to protect them from the shell."
39698 #: ../tools/virt-win-reg.pl:739
39699 msgid "Paths and value names are case-insensitive."
39703 #: ../tools/virt-win-reg.pl:748
39705 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39706 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39707 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39711 #: ../tools/virt-win-reg.pl:766
39714 " export LIBGUESTFS_DEBUG=1\n"
39715 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39720 #: ../tools/virt-win-reg.pl:769
39722 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39726 #~ msgid "B<-a> | B<--all>"
39727 #~ msgstr "B<-a> | B<--all>"
39729 #~ msgid "B<-x> | B<--extract> | B<--download>"
39730 #~ msgstr "B<-x> | B<--extract> | B<--download>"