1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-08-28 17:57+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
60 msgstr "КОРОТКИЙ ОПИС"
63 #: ../cat/virt-cat.pod:9
66 #| " virt-list-partitions [--options] domname\n"
69 " virt-cat [--options] -d domname file [file ...]\n"
72 " virt-list-partitions [--параметри] назва_домену\n"
76 #: ../cat/virt-cat.pod:11
79 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
82 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
85 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
89 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
90 #: ../inspector/virt-inspector.pod:13
95 #: ../cat/virt-cat.pod:15
98 " virt-cat domname file\n"
103 #: ../cat/virt-cat.pod:17
106 " virt-cat disk.img file\n"
111 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
112 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
113 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
114 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
115 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
116 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
117 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
118 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
119 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
120 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
121 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
122 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
123 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
124 #: ../tools/virt-win-reg.pl:63
129 #: ../cat/virt-cat.pod:21
131 "C<virt-cat> is a command line tool to display the contents of C<file> where "
132 "C<file> exists in the named virtual machine (or disk image)."
136 #: ../cat/virt-cat.pod:24
138 "Multiple filenames can be given, in which case they are concatenated "
139 "together. Each filename must be a full path, starting at the root directory "
140 "(starting with '/')."
144 #: ../cat/virt-cat.pod:28
146 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
147 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
148 "(see L</USING GUESTFISH> below)."
152 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
153 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
154 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
155 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
156 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
157 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
162 #: ../cat/virt-cat.pod:34
164 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
168 #: ../cat/virt-cat.pod:37
171 " virt-cat -d mydomain /etc/fstab\n"
176 #: ../cat/virt-cat.pod:39
177 msgid "List syslog messages from a VM disk image file:"
181 #: ../cat/virt-cat.pod:41
184 " virt-cat -a disk.img /var/log/messages | tail\n"
189 #: ../cat/virt-cat.pod:43
190 msgid "Find out what DHCP IP address a VM acquired:"
194 #: ../cat/virt-cat.pod:45
197 " virt-cat -d mydomain /var/log/messages | \\\n"
198 " grep 'dhclient: bound to' | tail\n"
203 #: ../cat/virt-cat.pod:48
204 msgid "Find out what packages were recently installed:"
208 #: ../cat/virt-cat.pod:50
211 " virt-cat -d mydomain /var/log/yum.log | tail\n"
216 #: ../cat/virt-cat.pod:52
217 msgid "Find out who is logged on inside a virtual machine:"
221 #: ../cat/virt-cat.pod:54
224 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
230 #: ../cat/virt-cat.pod:57
231 msgid "or who was logged on:"
235 #: ../cat/virt-cat.pod:59
238 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
239 " last -f /tmp/wtmp\n"
244 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
245 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
246 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
247 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
248 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
249 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
250 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
251 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
252 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
253 #: ../tools/virt-win-reg.pl:96
258 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
259 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
260 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
261 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
262 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
263 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
264 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
269 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
270 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
271 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
272 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
273 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
274 #: ../tools/virt-win-reg.pl:106
275 msgid "Display brief help."
279 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
280 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
281 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
283 #| msgid "B<-f file>"
288 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
289 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
290 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
292 #| msgid "B<--add image>"
293 msgid "B<--add> file"
294 msgstr "B<--add образ>"
297 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
298 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
299 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
301 "Add I<file> which should be a disk image from a virtual machine. If the "
302 "virtual machine has multiple block devices, you must supply all of them with "
303 "separate I<-a> options."
307 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
308 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
309 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
310 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
312 "The format of the disk image is auto-detected. To override this and force a "
313 "particular format use the I<--format=..> option."
317 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
318 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
322 msgstr "B<-c адреса>"
325 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
326 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
328 #| msgid "B<--connect URI>"
329 msgid "B<--connect> URI"
330 msgstr "B<--connect адреса>"
333 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
334 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
335 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
336 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
337 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
339 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
340 "to the default libvirt hypervisor."
344 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
345 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
347 "If you specify guest block devices directly (I<-a>), then libvirt is not "
352 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
353 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
354 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
359 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
360 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
361 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
362 msgid "B<--domain> guest"
366 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
367 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
368 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
370 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
375 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
376 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
377 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
378 msgid "B<--echo-keys>"
379 msgstr "B<--echo-keys>"
382 #: ../cat/virt-cat.pod:100
384 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
385 "so you cannot see what you are typing. If you are not worried about Tempest "
386 "attacks and there is no one else in the room you can specify this flag to "
387 "see what you are typing."
391 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
392 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
393 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
394 #: ../rescue/virt-rescue.pod:124
395 msgid "B<--format=raw|qcow2|..>"
396 msgstr "B<--format=raw|qcow2|..>"
399 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
400 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
401 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
402 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
407 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
408 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
409 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
410 #: ../rescue/virt-rescue.pod:128
412 "The default for the I<-a> option is to auto-detect the format of the disk "
413 "image. Using this forces the disk format for I<-a> options which follow on "
414 "the command line. Using I<--format> with no argument switches back to auto-"
415 "detection for subsequent I<-a> options."
419 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
420 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
421 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
422 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
423 #: ../src/guestfs.pod:2668
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:484
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:486 ../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:488 ../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, and C<file> is the full path to the file."
685 #: ../cat/virt-cat.pod:191 ../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:352 ../rescue/virt-rescue.pod:262
688 #: ../resize/virt-resize.pod:601 ../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:193 ../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:354 ../rescue/virt-rescue.pod:264
698 #: ../resize/virt-resize.pod:603 ../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:198 ../cat/virt-filesystems.pod:372
710 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
711 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
712 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
713 #: ../test-tool/libguestfs-test-tool.pod:77
718 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
719 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
720 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
721 #: ../resize/virt-resize.pod:610
723 "This program returns 0 if successful, or non-zero if there was an error."
727 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
728 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
729 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
730 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
731 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
732 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
733 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
734 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
735 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
736 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
737 #: ../src/guestfs.pod:3042 ../test-tool/libguestfs-test-tool.pod:87
738 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
739 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
740 #: ../tools/virt-win-reg.pl:746
742 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
745 #: ../cat/virt-cat.pod:205
748 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
749 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
750 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
752 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
753 "tar-out(1)>, L<http://libguestfs.org/>."
755 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
756 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
757 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
760 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
761 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
762 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:634
763 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
764 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
765 #: ../tools/virt-win-reg.pl:772
770 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
771 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
772 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294
773 #: ../resize/virt-resize.pod:636 ../tools/virt-list-filesystems.pl:210
774 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
775 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
776 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
777 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
780 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
781 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
782 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
783 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
784 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
785 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
786 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61
787 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
788 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
789 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:51
790 #: ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:97
791 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
792 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
793 #: ../tools/virt-win-reg.pl:776
795 msgstr "АВТОРСЬКІ ПРАВА"
798 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
799 #: ../resize/virt-resize.pod:640
801 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
802 msgid "Copyright (C) 2010-2011 Red Hat Inc."
803 msgstr "© Red Hat Inc., 2009–2010"
806 #: ../cat/virt-cat.pod:220 ../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:1269 ../fish/virt-copy-in.pod:69
809 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
810 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
811 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300
812 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:102
813 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
814 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
815 #: ../tools/virt-win-reg.pl:780
817 "This program is free software; you can redistribute it and/or modify it "
818 "under the terms of the GNU General Public License as published by the Free "
819 "Software Foundation; either version 2 of the License, or (at your option) "
824 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
825 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
826 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
827 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
828 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
829 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305
830 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:107
831 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
832 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
833 #: ../tools/virt-win-reg.pl:785
835 "This program is distributed in the hope that it will be useful, but WITHOUT "
836 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
837 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
840 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
841 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
842 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
843 "дізнатися з GNU General Public License."
846 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
847 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
848 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
849 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
850 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
851 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310
852 #: ../resize/virt-resize.pod:652 ../test-tool/libguestfs-test-tool.pod:112
853 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
854 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
855 #: ../tools/virt-win-reg.pl:790
857 "You should have received a copy of the GNU General Public License along with "
858 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
859 "Ave, Cambridge, MA 02139, USA."
863 #: ../cat/virt-filesystems.pod:5
865 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
866 "virtual machine or disk image"
870 #: ../cat/virt-filesystems.pod:9
873 #| " virt-list-partitions [--options] domname\n"
876 " virt-filesystems [--options] -d domname\n"
879 " virt-list-partitions [--параметри] назва_домену\n"
883 #: ../cat/virt-filesystems.pod:11
886 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
889 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
892 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
896 #: ../cat/virt-filesystems.pod:15
898 "This tool allows you to discover filesystems, partitions, logical volumes, "
899 "and their sizes in a disk image or virtual machine. It is a replacement for "
900 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
904 #: ../cat/virt-filesystems.pod:20
906 "One use for this tool is from shell scripts to iterate over all filesystems "
911 #: ../cat/virt-filesystems.pod:23
914 " for fs in $(virt-filesystems -a disk.img); do\n"
921 #: ../cat/virt-filesystems.pod:27
923 "Another use is to list partitions before using another tool to modify those "
924 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
925 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
929 #: ../cat/virt-filesystems.pod:32
931 "Various command line options control what this program displays. You need "
932 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
933 "guest respectively. If you just specify that then the program shows "
934 "filesystems found, one per line, like this:"
938 #: ../cat/virt-filesystems.pod:37
941 " $ virt-filesystems -a disk.img\n"
943 " /dev/vg_guest/lv_root\n"
948 #: ../cat/virt-filesystems.pod:41
950 "If you add I<-l> or I<--long> then the output includes extra information:"
954 #: ../cat/virt-filesystems.pod:44
957 " $ virt-filesystems -a disk.img -l\n"
958 " Name Type VFS Label Size\n"
959 " /dev/sda1 filesystem ext4 boot 524288000\n"
960 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
965 #: ../cat/virt-filesystems.pod:49
967 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
972 #: ../cat/virt-filesystems.pod:52
975 " $ virt-filesystems -a disk.img --extra\n"
977 " /dev/vg_guest/lv_root\n"
978 " /dev/vg_guest/lv_swap\n"
979 " /dev/vg_guest/lv_data\n"
984 #: ../cat/virt-filesystems.pod:58
986 "If you add I<--partitions> then partitions are shown instead of filesystems:"
990 #: ../cat/virt-filesystems.pod:60
993 " $ virt-filesystems -a disk.img --partitions\n"
1000 #: ../cat/virt-filesystems.pod:64
1002 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1003 "volumes>, I<--block-devices> to list those items."
1007 #: ../cat/virt-filesystems.pod:67
1009 "You can use these options in combination as well (if you want a combination "
1010 "including filesystems, you have to add I<--filesystems>). Notice that some "
1011 "items fall into several categories (eg. C</dev/sda1> might be both a "
1012 "partition and a filesystem). These items are listed several times. To get "
1013 "a list which includes absolutely everything that virt-filesystems knows "
1014 "about, use the I<--all> option."
1018 #: ../cat/virt-filesystems.pod:74
1020 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1021 "uuid> option to display device and filesystem UUIDs in the long output."
1025 #: ../cat/virt-filesystems.pod:78
1027 "I<--all --long --uuid> is a useful combination to display all possible "
1028 "information about everything."
1032 #: ../cat/virt-filesystems.pod:81
1035 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1036 " Name Type VFS Label Size Parent UUID\n"
1037 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1038 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1039 " /dev/sda1 partition - - 100M /dev/sda -\n"
1040 " /dev/sda2 partition - - 20G /dev/sda -\n"
1041 " /dev/sda device - - 20G - -\n"
1046 #: ../cat/virt-filesystems.pod:89
1048 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1052 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1054 #| msgid "B<--help>"
1059 #: ../cat/virt-filesystems.pod:112
1061 "Display everything. This is currently the same as specifying these options: "
1062 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1063 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1064 "added to this list in future)."
1068 #: ../cat/virt-filesystems.pod:117
1070 #| msgid "See also L</is-lv>."
1071 msgid "See also I<--long>."
1072 msgstr "Див. також L</is-lv>."
1075 #: ../cat/virt-filesystems.pod:119
1077 #| msgid "B<--live>"
1078 msgid "B<--blkdevs>"
1082 #: ../cat/virt-filesystems.pod:121
1084 #| msgid "is-blockdev"
1085 msgid "B<--block-devices>"
1086 msgstr "is-blockdev"
1089 #: ../cat/virt-filesystems.pod:123
1091 #| msgid "is-blockdev"
1092 msgid "Display block devices."
1093 msgstr "is-blockdev"
1096 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1103 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1105 "Write out the results in CSV format (comma-separated values). This format "
1106 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1107 "ABOUT CSV FORMAT> below."
1111 #: ../cat/virt-filesystems.pod:150
1113 "When prompting for keys and passphrases, virt-filesystems normally turns "
1114 "echoing off so you cannot see what you are typing. If you are not worried "
1115 "about Tempest attacks and there is no one else in the room you can specify "
1116 "this flag to see what you are typing."
1120 #: ../cat/virt-filesystems.pod:155
1127 #: ../cat/virt-filesystems.pod:157
1129 "This causes filesystems that are not ordinary, mountable filesystems to be "
1130 "displayed. This category includes swapspace, and filesystems that are empty "
1131 "or contain unknown data."
1135 #: ../cat/virt-filesystems.pod:161
1136 msgid "This option implies I<--filesystems>."
1140 #: ../cat/virt-filesystems.pod:163
1142 #| msgid "list-filesystems"
1143 msgid "B<--filesystems>"
1144 msgstr "list-filesystems"
1147 #: ../cat/virt-filesystems.pod:165
1149 "Display mountable filesystems. If no display option was selected then this "
1150 "option is implied."
1154 #: ../cat/virt-filesystems.pod:168
1155 msgid "With I<--extra>, non-mountable filesystems are shown too."
1159 #: ../cat/virt-filesystems.pod:181
1162 #| " guestfish --format=raw -a disk.img\n"
1165 " virt-filesystems --format=raw -a disk.img\n"
1168 " guestfish --format=raw -a disk.img\n"
1172 #: ../cat/virt-filesystems.pod:185
1175 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1178 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1181 " guestfish --format=raw -a disk.img --format -a another.img\n"
1185 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1186 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1187 #: ../tools/virt-list-partitions.pl:109
1192 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1193 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1195 #| msgid "B<-h> | B<--human-readable>"
1196 msgid "B<--human-readable>"
1197 msgstr "B<-h> | B<--human-readable>"
1200 #: ../cat/virt-filesystems.pod:198
1201 msgid "In I<--long> mode, display sizes in human-readable format."
1205 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1206 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1211 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1212 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1219 #: ../cat/virt-filesystems.pod:209
1220 msgid "Display extra columns of data (\"long format\")."
1224 #: ../cat/virt-filesystems.pod:211
1225 msgid "A title row is added unless you also specify I<--no-title>."
1229 #: ../cat/virt-filesystems.pod:213
1231 "The extra columns displayed depend on what output you select, and the "
1232 "ordering of columns may change in future versions. Use the title row, I<--"
1233 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1238 #: ../cat/virt-filesystems.pod:218
1240 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1241 "default is to show raw numbers of I<bytes>."
1245 #: ../cat/virt-filesystems.pod:221
1246 msgid "Use I<--uuid> to display UUIDs too."
1250 #: ../cat/virt-filesystems.pod:223
1252 #| msgid "B<--live>"
1257 #: ../cat/virt-filesystems.pod:225
1259 #| msgid "B<--live>"
1260 msgid "B<--logvols>"
1264 #: ../cat/virt-filesystems.pod:227
1266 #| msgid "B<--live>"
1267 msgid "B<--logical-volumes>"
1271 #: ../cat/virt-filesystems.pod:229
1273 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1274 "of whether the LVs contain filesystems."
1278 #: ../cat/virt-filesystems.pod:232
1280 #| msgid "B<--listen>"
1281 msgid "B<--no-title>"
1282 msgstr "B<--listen>"
1285 #: ../cat/virt-filesystems.pod:234
1286 msgid "In I<--long> mode, don't add a title row."
1290 #: ../cat/virt-filesystems.pod:236
1292 "Note that the order of the columns is not fixed, and may change in future "
1293 "versions of virt-filesystems, so using this option may give you unexpected "
1298 #: ../cat/virt-filesystems.pod:240
1300 #| msgid "B<--partition>"
1302 msgstr "B<--partition>"
1305 #: ../cat/virt-filesystems.pod:242
1307 #| msgid "B<--partition>"
1308 msgid "B<--partitions>"
1309 msgstr "B<--partition>"
1312 #: ../cat/virt-filesystems.pod:244
1314 "Display partitions. In this mode, these are displayed irrespective of "
1315 "whether the partitions contain filesystems."
1319 #: ../cat/virt-filesystems.pod:247
1326 #: ../cat/virt-filesystems.pod:249
1328 #| msgid "B<--verbose>"
1329 msgid "B<--physvols>"
1330 msgstr "B<--verbose>"
1333 #: ../cat/virt-filesystems.pod:251
1334 msgid "B<--physical-volumes>"
1338 #: ../cat/virt-filesystems.pod:253
1339 msgid "Display LVM physical volumes."
1343 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1345 #| msgid "B<--live>"
1350 #: ../cat/virt-filesystems.pod:257
1357 #: ../cat/virt-filesystems.pod:259
1358 msgid "In I<--long> mode, display UUIDs as well."
1362 #: ../cat/virt-filesystems.pod:273
1369 #: ../cat/virt-filesystems.pod:275
1371 #| msgid "B<--verbose>"
1372 msgid "B<--volgroups>"
1373 msgstr "B<--verbose>"
1376 #: ../cat/virt-filesystems.pod:277
1378 #| msgid "B<--verbose>"
1379 msgid "B<--volume-groups>"
1380 msgstr "B<--verbose>"
1383 #: ../cat/virt-filesystems.pod:279
1384 msgid "Display LVM volume groups."
1388 #: ../cat/virt-filesystems.pod:287
1393 #: ../cat/virt-filesystems.pod:289
1395 "Note that columns in the output are subject to reordering and change in "
1396 "future versions of this tool."
1400 #: ../cat/virt-filesystems.pod:294
1405 #: ../cat/virt-filesystems.pod:296
1406 msgid "The filesystem, partition, block device or LVM name."
1410 #: ../cat/virt-filesystems.pod:298
1412 "For device and partition names these are displayed as canonical libguestfs "
1413 "names, so that for example C</dev/sda2> is the second partition on the first "
1418 #: ../cat/virt-filesystems.pod:302
1420 "If the I<--long> option is B<not> specified, then only the name column is "
1421 "shown in the output."
1425 #: ../cat/virt-filesystems.pod:305
1427 #| msgid "B<-N type>"
1432 #: ../cat/virt-filesystems.pod:307
1433 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1437 #: ../cat/virt-filesystems.pod:309
1442 #: ../cat/virt-filesystems.pod:311
1444 "If there is a filesystem, then this column displays the filesystem type if "
1445 "one could be detected, eg. C<ext4>."
1449 #: ../cat/virt-filesystems.pod:314
1454 #: ../cat/virt-filesystems.pod:316
1456 "If the object has a label (used for identifying and mounting filesystems) "
1457 "then this column contains the label."
1461 #: ../cat/virt-filesystems.pod:319
1463 #| msgid "B<part_size>"
1465 msgstr "B<part_size>"
1468 #: ../cat/virt-filesystems.pod:321
1470 "The size of the object in bytes. If the I<--human> option is used then the "
1471 "size is displayed in a human-readable form."
1475 #: ../cat/virt-filesystems.pod:324
1480 #: ../cat/virt-filesystems.pod:326
1482 "The parent column records the parent relationship between objects. For "
1483 "example, if the object is a partition, then this column contains the name of "
1484 "the containing device. If the object is a logical volume, then this column "
1485 "is the name of the volume group."
1489 #: ../cat/virt-filesystems.pod:331
1494 #: ../cat/virt-filesystems.pod:333
1496 "If the object has a UUID (used for identifying and mounting filesystems and "
1497 "block devices) then this column contains the UUID as a string."
1501 #: ../cat/virt-filesystems.pod:337
1502 msgid "The UUID is only displayed if the I<--uuid> option is given."
1506 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1507 #: ../df/virt-df.pod:191
1508 msgid "NOTE ABOUT CSV FORMAT"
1512 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1513 #: ../df/virt-df.pod:193
1515 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
1516 "should be easy to parse, but it is definitely not easy to parse."
1520 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1521 #: ../df/virt-df.pod:196
1523 "Myth: Just split fields at commas. Reality: This does I<not> work "
1524 "reliably. This example has two columns:"
1528 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1529 #: ../df/virt-df.pod:199
1532 " \"foo,bar\",baz\n"
1537 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1538 #: ../df/virt-df.pod:201
1540 "Myth: Read the file one line at a time. Reality: This does I<not> work "
1541 "reliably. This example has one row:"
1545 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1546 #: ../df/virt-df.pod:204
1555 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1556 #: ../df/virt-df.pod:207
1558 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1559 "packaged in major Linux distributions)."
1563 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1564 #: ../df/virt-df.pod:210
1566 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1567 "or Python's built-in csv library)."
1571 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1572 #: ../df/virt-df.pod:213
1573 msgid "Most spreadsheets and databases can import CSV directly."
1577 #: ../cat/virt-filesystems.pod:379
1580 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1581 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1582 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1584 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1585 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1588 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1589 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1590 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1593 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1594 #: ../tools/virt-win-reg.pl:778
1595 msgid "Copyright (C) 2010 Red Hat Inc."
1599 #: ../cat/virt-ls.pod:5
1600 msgid "virt-ls - List files in a virtual machine"
1604 #: ../cat/virt-ls.pod:9
1607 " virt-ls [--options] -d domname directory [directory ...]\n"
1612 #: ../cat/virt-ls.pod:11
1615 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1618 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1621 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1625 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1630 #: ../cat/virt-ls.pod:15
1633 #| " virt-list-partitions [--options] domname\n"
1636 " virt-ls [--options] domname directory\n"
1639 " virt-list-partitions [--параметри] назва_домену\n"
1643 #: ../cat/virt-ls.pod:17
1646 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1649 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1652 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1656 #: ../cat/virt-ls.pod:21
1658 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1659 "more from a virtual machine or disk image."
1663 #: ../cat/virt-ls.pod:24
1665 "Multiple directory names can be given, in which case the output from each is "
1670 #: ../cat/virt-ls.pod:27
1672 "To list directories from a libvirt guest use the I<-d> option to specify the "
1673 "name of the guest. For a disk image, use the I<-a> option."
1677 #: ../cat/virt-ls.pod:31
1679 "C<virt-ls> can do many simple file listings. For more complicated cases you "
1680 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1685 #: ../cat/virt-ls.pod:37
1686 msgid "Get a list of all files and directories in a virtual machine:"
1690 #: ../cat/virt-ls.pod:39
1693 #| " guestfish --ro -d myguest -i\n"
1696 " virt-ls -R -d guest /\n"
1699 " guestfish --ro -d myguest -i\n"
1703 #: ../cat/virt-ls.pod:41
1704 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1708 #: ../cat/virt-ls.pod:43
1711 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1716 #: ../cat/virt-ls.pod:45
1717 msgid "List all public-writable directories in a Linux virtual machine:"
1721 #: ../cat/virt-ls.pod:47
1724 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1729 #: ../cat/virt-ls.pod:49
1730 msgid "List all Unix domain sockets in a Linux virtual machine:"
1734 #: ../cat/virt-ls.pod:51
1737 " virt-ls -lR -d guest / | grep '^s'\n"
1742 #: ../cat/virt-ls.pod:53
1743 msgid "List all regular files with filenames ending in '.png':"
1747 #: ../cat/virt-ls.pod:55
1750 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1755 #: ../cat/virt-ls.pod:57
1756 msgid "To display files larger than 10MB in home directories:"
1760 #: ../cat/virt-ls.pod:59
1763 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1768 #: ../cat/virt-ls.pod:61
1769 msgid "Find everything modified in the last 7 days:"
1773 #: ../cat/virt-ls.pod:63
1776 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1781 #: ../cat/virt-ls.pod:65
1782 msgid "Find regular files modified in the last 24 hours:"
1786 #: ../cat/virt-ls.pod:67
1789 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1794 #: ../cat/virt-ls.pod:69
1795 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1799 #: ../cat/virt-ls.pod:71
1801 "Find the differences between files in a guest and an earlier snapshot of the "
1806 #: ../cat/virt-ls.pod:74
1809 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1810 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1811 " diff -u old new | less\n"
1816 #: ../cat/virt-ls.pod:78
1818 "The commands above won't find files where the content has changed but the "
1819 "metadata (eg. file size and modification date) is the same. To do that, you "
1820 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
1821 "checksum> can be quite slow since it has to read and compute a checksum of "
1822 "every regular file in the virtual machine."
1826 #: ../cat/virt-ls.pod:84
1827 msgid "OUTPUT MODES"
1831 #: ../cat/virt-ls.pod:86
1833 "C<virt-ls> has four output modes, controlled by different combinations of "
1834 "the I<-l> and I<-R> options."
1838 #: ../cat/virt-ls.pod:89
1839 msgid "SIMPLE LISTING"
1843 #: ../cat/virt-ls.pod:91
1844 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1848 #: ../cat/virt-ls.pod:93
1851 " $ virt-ls -d guest /\n"
1859 #: ../cat/virt-ls.pod:98
1862 msgid "LONG LISTING"
1866 #: ../cat/virt-ls.pod:100
1868 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1869 "(more specifically, like the C<guestfs_ll> function)."
1873 #: ../cat/virt-ls.pod:103
1876 " $ virt-ls -l -d guest /\n"
1878 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
1879 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
1885 #: ../cat/virt-ls.pod:109
1887 "Note that while this is useful for displaying a directory, do not try "
1888 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
1893 #: ../cat/virt-ls.pod:113
1894 msgid "RECURSIVE LISTING"
1898 #: ../cat/virt-ls.pod:115
1900 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1901 "and directories recursively:"
1905 #: ../cat/virt-ls.pod:118
1908 " $ virt-ls -R -d guest /tmp\n"
1916 #: ../cat/virt-ls.pod:123
1918 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1919 "converts C<\\0> characters to C<\\n>."
1923 #: ../cat/virt-ls.pod:126
1924 msgid "RECURSIVE LONG LISTING"
1928 #: ../cat/virt-ls.pod:128
1930 "Using I<-lR> options together changes the output to display directories "
1931 "recursively, with file stats, and optionally other features such as "
1932 "checksums and extended attributes."
1936 #: ../cat/virt-ls.pod:132
1938 "Most of the interesting features of C<virt-ls> are only available when using "
1943 #: ../cat/virt-ls.pod:135
1945 "The fields are normally space-separated. Filenames are B<not> quoted, so "
1946 "you cannot use the output in another program (because filenames can contain "
1947 "spaces and other unsafe characters). If the guest was untrusted and someone "
1948 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1949 "on you by creating filenames with embedded newline characters. To B<safely> "
1950 "parse the output in another program, use the I<--csv> (Comma-Separated "
1955 #: ../cat/virt-ls.pod:143
1957 "Note that this output format is completely unrelated to the C<ls -lR> "
1962 #: ../cat/virt-ls.pod:146
1965 " $ virt-ls -lR -d guest /bin\n"
1966 " d 0555 4096 /bin\n"
1967 " - 0755 123 /bin/alsaunmute\n"
1968 " - 0755 28328 /bin/arch\n"
1969 " l 0777 4 /bin/awk -> gawk\n"
1970 " - 0755 27216 /bin/basename\n"
1971 " - 0755 943360 /bin/bash\n"
1977 #: ../cat/virt-ls.pod:155
1978 msgid "These basic fields are always shown:"
1982 #: ../cat/virt-ls.pod:159
1989 #: ../cat/virt-ls.pod:161
1991 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1992 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1993 "link), C<s> (socket) or C<u> (unknown)."
1997 #: ../cat/virt-ls.pod:171
2004 #: ../cat/virt-ls.pod:173
2005 msgid "The Unix permissions, displayed as a 4 digit octal number."
2009 #: ../cat/virt-ls.pod:175
2016 #: ../cat/virt-ls.pod:177
2018 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2019 "readable> option is given, in which case this is shown as a human-readable "
2024 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
2029 #: ../cat/virt-ls.pod:183
2030 msgid "The full path of the file or directory."
2034 #: ../cat/virt-ls.pod:185
2041 #: ../cat/virt-ls.pod:187
2042 msgid "For symbolic links only, the link target."
2046 #: ../cat/virt-ls.pod:191
2048 "In I<-lR> mode, additional command line options enable the display of more "
2053 #: ../cat/virt-ls.pod:194
2055 "With the I<--uids> flag, these additional fields are displayed before the "
2060 #: ../cat/virt-ls.pod:199
2067 #: ../cat/virt-ls.pod:201
2074 #: ../cat/virt-ls.pod:203
2076 "The UID and GID of the owner of the file (displayed numerically). Note "
2077 "these only make sense in the context of a Unix-like guest."
2081 #: ../cat/virt-ls.pod:208
2082 msgid "With the I<--times> flag, these additional fields are displayed:"
2086 #: ../cat/virt-ls.pod:212
2093 #: ../cat/virt-ls.pod:214
2094 msgid "The time of last access."
2098 #: ../cat/virt-ls.pod:216
2105 #: ../cat/virt-ls.pod:218
2106 msgid "The time of last modification."
2110 #: ../cat/virt-ls.pod:220
2117 #: ../cat/virt-ls.pod:222
2118 msgid "The time of last status change."
2122 #: ../cat/virt-ls.pod:226
2124 "The time fields are displayed as string dates and times, unless one of the "
2125 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2129 #: ../cat/virt-ls.pod:229
2130 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2134 #: ../cat/virt-ls.pod:233
2136 #| msgid "zero-device"
2138 msgstr "zero-device"
2141 #: ../cat/virt-ls.pod:235
2143 "The device containing the file (displayed as major:minor). This may not "
2144 "match devices as known to the guest."
2148 #: ../cat/virt-ls.pod:238
2153 #: ../cat/virt-ls.pod:240
2154 msgid "The inode number."
2158 #: ../cat/virt-ls.pod:242
2165 #: ../cat/virt-ls.pod:244
2166 msgid "The number of hard links."
2170 #: ../cat/virt-ls.pod:246
2175 #: ../cat/virt-ls.pod:248
2177 "For block and char special files, the device (displayed as major:minor)."
2181 #: ../cat/virt-ls.pod:251
2183 #| msgid "C<blocksize>"
2185 msgstr "C<blocksize>"
2188 #: ../cat/virt-ls.pod:253
2189 msgid "The number of 512 byte blocks allocated to the file."
2193 #: ../cat/virt-ls.pod:257
2195 "With the I<--checksum> flag, the checksum of the file contents is shown "
2196 "(only for regular files). Computing file checksums can take a considerable "
2201 #: ../cat/virt-ls.pod:280
2204 msgid "B<--checksum>"
2208 #: ../cat/virt-ls.pod:282
2209 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2213 #: ../cat/virt-ls.pod:284
2215 "Display checksum over file contents for regular files. With no argument, "
2216 "this defaults to using I<md5>. Using an argument, you can select the "
2217 "checksum type to use."
2221 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2222 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2223 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2225 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2230 #: ../cat/virt-ls.pod:316
2232 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2233 "so you cannot see what you are typing. If you are not worried about Tempest "
2234 "attacks and there is no one else in the room you can specify this flag to "
2235 "see what you are typing."
2239 #: ../cat/virt-ls.pod:321
2241 #| msgid "B<--no-dest-paths>"
2242 msgid "B<--extra-stats>"
2243 msgstr "B<--no-dest-paths>"
2246 #: ../cat/virt-ls.pod:323
2247 msgid "Display extra stats."
2251 #: ../cat/virt-ls.pod:339
2254 #| " guestfish --format=raw -a disk.img\n"
2257 " virt-ls --format=raw -a disk.img /dir\n"
2260 " guestfish --format=raw -a disk.img\n"
2264 #: ../cat/virt-ls.pod:343
2267 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2270 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2273 " guestfish --format=raw -a disk.img --format -a another.img\n"
2277 #: ../cat/virt-ls.pod:356
2278 msgid "Display file sizes in human-readable format."
2282 #: ../cat/virt-ls.pod:370
2287 #: ../cat/virt-ls.pod:372
2289 #| msgid "B<--live>"
2290 msgid "B<--recursive>"
2294 #: ../cat/virt-ls.pod:374
2296 "Select the mode. With neither of these options, C<virt-ls> produces a "
2297 "simple, flat list of the files in the named directory. See L</SIMPLE "
2302 #: ../cat/virt-ls.pod:378
2304 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2309 #: ../cat/virt-ls.pod:381
2311 "C<virt-ls -R> produces a recursive list of files starting at the named "
2312 "directory. See L</RECURSIVE LISTING>."
2316 #: ../cat/virt-ls.pod:384
2318 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2319 "parsed. See L</RECURSIVE LONG LISTING>."
2323 #: ../cat/virt-ls.pod:387
2325 #| msgid "B<--live>"
2330 #: ../cat/virt-ls.pod:389
2331 msgid "Display time fields."
2335 #: ../cat/virt-ls.pod:394
2337 #| msgid "B<--echo-keys>"
2338 msgid "B<--time-days>"
2339 msgstr "B<--echo-keys>"
2342 #: ../cat/virt-ls.pod:396
2343 msgid "Display time fields as days before now (negative if in the future)."
2347 #: ../cat/virt-ls.pod:398
2349 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2350 "of the file is between 0 and 86399 seconds."
2354 #: ../cat/virt-ls.pod:404
2356 #| msgid "B<--live>"
2357 msgid "B<--time-relative>"
2361 #: ../cat/virt-ls.pod:406
2362 msgid "Display time fields as seconds before now (negative if in the future)."
2366 #: ../cat/virt-ls.pod:411
2368 #| msgid "I<--timeout N>"
2370 msgstr "I<--timeout N>"
2373 #: ../cat/virt-ls.pod:413
2374 msgid "Display time fields as seconds since the Unix epoch."
2378 #: ../cat/virt-ls.pod:418
2385 #: ../cat/virt-ls.pod:420
2386 msgid "Display UID and GID fields."
2390 #: ../cat/virt-ls.pod:445
2391 msgid "Previous versions of virt-ls allowed you to write either:"
2395 #: ../cat/virt-ls.pod:447
2398 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2401 " virt-ls disk.img [disk.img ...] /dir\n"
2404 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2408 #: ../cat/virt-ls.pod:451
2411 #| " inspect-get-hostname root\n"
2414 " virt-ls guestname /dir\n"
2417 " inspect-get-hostname корінь\n"
2421 #: ../cat/virt-ls.pod:497
2424 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2425 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2426 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2428 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2429 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2430 "L<http://libguestfs.org/>."
2432 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2433 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2434 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2437 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2438 #: ../rescue/virt-rescue.pod:298
2440 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2441 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2442 msgstr "© Red Hat Inc., 2009–2010"
2445 #: ../df/virt-df.pod:5
2446 msgid "virt-df - Display free space on virtual filesystems"
2450 #: ../df/virt-df.pod:9
2453 #| " virt-list-partitions [--options] domname\n"
2456 " virt-df [--options]\n"
2459 " virt-list-partitions [--параметри] назва_домену\n"
2463 #: ../df/virt-df.pod:11
2466 #| " virt-list-partitions [--options] domname\n"
2469 " virt-df [--options] -d domname\n"
2472 " virt-list-partitions [--параметри] назва_домену\n"
2476 #: ../df/virt-df.pod:13
2479 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2482 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2485 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2489 #: ../df/virt-df.pod:17
2492 #| " virt-list-partitions [--options] domname\n"
2495 " virt-df [--options] domname\n"
2498 " virt-list-partitions [--параметри] назва_домену\n"
2502 #: ../df/virt-df.pod:19
2505 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2508 " virt-df [--options] disk.img [disk.img ...]\n"
2511 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2515 #: ../df/virt-df.pod:23
2517 "C<virt-df> is a command line tool to display free space on virtual machine "
2518 "filesystems. Unlike other tools, it doesn't just display the size of disk "
2519 "allocated to a virtual machine, but can look inside disk images to see how "
2520 "much space is really being used."
2524 #: ../df/virt-df.pod:28
2526 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2527 "to get a list of all active and inactive guests, and performs a C<df>-type "
2528 "operation on each one in turn, printing out the results."
2532 #: ../df/virt-df.pod:32
2534 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2535 "type operation on either the single named libvirt domain, or on the disk "
2536 "image(s) listed on the command line (which must all belong to a single VM). "
2537 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2538 "guest>. If you want to run on multiple guests, then you have to invoke "
2539 "C<virt-df> multiple times."
2543 #: ../df/virt-df.pod:39
2545 "Use the I<--csv> option to get a format which can be easily parsed by other "
2546 "programs. Other options are similar to the standard L<df(1)> command."
2550 #: ../df/virt-df.pod:45
2552 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
2553 "output human-readable:"
2557 #: ../df/virt-df.pod:48
2560 " # virt-df -d F14x64 -h\n"
2561 " Filesystem Size Used Available Use%\n"
2562 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
2563 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
2568 #: ../df/virt-df.pod:53
2569 msgid "Show disk usage for a disk image file called C<test.img>:"
2573 #: ../df/virt-df.pod:55
2576 " $ virt-df -a test1.img\n"
2577 " Filesystem 1K-blocks Used Available Use%\n"
2578 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
2583 #: ../df/virt-df.pod:112
2586 #| " guestfish --format=raw -a disk.img\n"
2589 " virt-df --format=raw -a disk.img\n"
2592 " guestfish --format=raw -a disk.img\n"
2596 #: ../df/virt-df.pod:116
2599 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2602 " virt-df --format=raw -a disk.img --format -a another.img\n"
2605 " guestfish --format=raw -a disk.img --format -a another.img\n"
2609 #: ../df/virt-df.pod:129
2610 msgid "Print sizes in human-readable format."
2614 #: ../df/virt-df.pod:131
2615 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2619 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2624 #: ../df/virt-df.pod:135
2626 #| msgid "B<--live>"
2631 #: ../df/virt-df.pod:137
2632 msgid "Print inodes instead of blocks."
2636 #: ../df/virt-df.pod:139
2638 #| msgid "B<--merge>"
2639 msgid "B<--one-per-guest>"
2643 #: ../df/virt-df.pod:141
2645 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
2646 "disks from several guests to a single libguestfs appliance."
2650 #: ../df/virt-df.pod:144
2651 msgid "You might use this option in the following circumstances:"
2655 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2656 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2657 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2658 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2659 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2660 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2661 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2662 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2663 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2664 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2665 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2666 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2667 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2668 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2669 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2670 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2671 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2672 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2673 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2674 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2675 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2676 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2677 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2678 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2679 #: ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397
2680 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2681 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2682 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2683 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2684 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2685 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2686 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2687 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2688 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2689 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2690 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2691 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2692 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2693 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2694 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2695 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2696 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2697 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2698 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2699 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2700 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2701 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2702 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2703 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2704 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2705 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2063 ../src/guestfs.pod:2068
2706 #: ../src/guestfs.pod:2074 ../src/guestfs.pod:2082 ../src/guestfs.pod:2436
2707 #: ../src/guestfs.pod:2442 ../src/guestfs.pod:2447 ../src/guestfs.pod:2453
2708 #: ../src/guestfs.pod:2834 ../src/guestfs.pod:2839 ../src/guestfs.pod:2843
2709 #: ../src/guestfs.pod:2847 ../src/guestfs.pod:2851 ../src/guestfs.pod:2865
2710 #: ../src/guestfs.pod:2870 ../src/guestfs.pod:3095 ../src/guestfs.pod:3099
2711 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3107
2712 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2713 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2714 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2719 #: ../df/virt-df.pod:150
2721 "If you think an untrusted guest might actively try to exploit the libguestfs "
2722 "appliance kernel, then this prevents one guest from interfering with the "
2723 "stats printed for another guest."
2727 #: ../df/virt-df.pod:156
2729 "If the kernel has a bug which stops it from accessing a filesystem in one "
2730 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2731 "and report stats for further guests."
2735 #: ../df/virt-df.pod:165
2737 "Print UUIDs instead of names. This is useful for following a guest even "
2738 "when the guest is migrated or renamed, or when two guests happen to have the "
2743 #: ../df/virt-df.pod:169
2745 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
2746 "images, we still print the disk image name even when this option is "
2751 #: ../df/virt-df.pod:229
2753 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2758 #: ../edit/virt-edit.pod:5
2759 msgid "virt-edit - Edit a file in a virtual machine"
2763 #: ../edit/virt-edit.pod:9
2766 #| " virt-list-partitions [--options] domname\n"
2769 " virt-edit [--options] -d domname file [file ...]\n"
2772 " virt-list-partitions [--параметри] назва_домену\n"
2776 #: ../edit/virt-edit.pod:11
2779 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2782 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2785 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2789 #: ../edit/virt-edit.pod:13
2792 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2797 #: ../edit/virt-edit.pod:17
2800 " virt-edit domname file\n"
2805 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2808 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2811 " virt-edit disk.img [disk.img ...] file\n"
2814 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2818 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2819 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2820 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2821 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2823 msgstr "ПОПЕРЕДЖЕННЯ"
2826 #: ../edit/virt-edit.pod:23
2828 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
2829 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
2830 "doing this, but doesn't catch all cases."
2834 #: ../edit/virt-edit.pod:29
2836 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2837 "exists in the named virtual machine (or disk image)."
2841 #: ../edit/virt-edit.pod:32
2843 "Multiple filenames can be given, in which case they are each edited in "
2844 "turn. Each filename must be a full path, starting at the root directory "
2845 "(starting with '/')."
2849 #: ../edit/virt-edit.pod:36
2850 msgid "If you want to just view a file, use L<virt-cat(1)>."
2854 #: ../edit/virt-edit.pod:38
2856 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2857 "USING GUESTFISH> below)."
2861 #: ../edit/virt-edit.pod:41
2863 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
2864 "that and much more."
2868 #: ../edit/virt-edit.pod:46
2869 msgid "Edit the named files interactively:"
2873 #: ../edit/virt-edit.pod:48
2876 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2881 #: ../edit/virt-edit.pod:50
2884 " virt-edit -d mydomain /etc/passwd\n"
2889 #: ../edit/virt-edit.pod:52
2890 msgid "For Windows guests, some Windows paths are understood:"
2894 #: ../edit/virt-edit.pod:54
2897 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2902 #: ../edit/virt-edit.pod:56
2904 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2905 "INTERACTIVE EDITING> below). To change the init default level to 5:"
2909 #: ../edit/virt-edit.pod:60
2912 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2917 #: ../edit/virt-edit.pod:81
2918 msgid "B<-b> extension"
2922 #: ../edit/virt-edit.pod:83
2923 msgid "B<--backup> extension"
2927 #: ../edit/virt-edit.pod:85
2929 "Create a backup of the original file I<in the guest disk image>. The backup "
2930 "has the original filename with C<extension> added."
2934 #: ../edit/virt-edit.pod:88
2936 "Usually the first character of C<extension> would be a dot C<.> so you would "
2941 #: ../edit/virt-edit.pod:91
2944 " virt-edit -b .orig [etc]\n"
2949 #: ../edit/virt-edit.pod:93
2950 msgid "By default, no backup file is made."
2954 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2955 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2956 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2957 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2959 msgstr "B<-c адреса>"
2962 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2963 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2964 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2965 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2966 msgid "B<--connect URI>"
2967 msgstr "B<--connect адреса>"
2970 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2971 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2972 #: ../tools/virt-win-reg.pl:135
2974 "If you specify guest block devices directly, then libvirt is not used at all."
2978 #: ../edit/virt-edit.pod:114
2980 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2981 "off so you cannot see what you are typing. If you are not worried about "
2982 "Tempest attacks and there is no one else in the room you can specify this "
2983 "flag to see what you are typing."
2987 #: ../edit/virt-edit.pod:119
2992 #: ../edit/virt-edit.pod:121
2994 #| msgid "B<--help>"
2995 msgid "B<--expr> EXPR"
2999 #: ../edit/virt-edit.pod:123
3001 "Instead of launching the external editor, non-interactively apply the Perl "
3002 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
3007 #: ../edit/virt-edit.pod:127
3009 "Be careful to properly quote the expression to prevent it from being altered "
3014 #: ../edit/virt-edit.pod:130
3015 msgid "Note that this option is only available when Perl 5 is installed."
3019 #: ../edit/virt-edit.pod:132
3021 #| msgid "B<--format=raw|qcow2|..>"
3022 msgid "B<--format> raw|qcow2|..."
3023 msgstr "B<--format=raw|qcow2|..>"
3026 #: ../edit/virt-edit.pod:143
3029 #| " guestfish --format=raw -a disk.img\n"
3032 " virt-edit --format=raw -a disk.img file\n"
3035 " guestfish --format=raw -a disk.img\n"
3039 #: ../edit/virt-edit.pod:147
3042 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3045 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3048 " guestfish --format=raw -a disk.img --format -a another.img\n"
3052 #: ../edit/virt-edit.pod:181
3053 msgid "Previous versions of virt-edit allowed you to write either:"
3057 #: ../edit/virt-edit.pod:187
3060 #| " edit filename\n"
3063 " virt-edit guestname file\n"
3066 " edit назва_файла\n"
3070 #: ../edit/virt-edit.pod:195
3071 msgid "NON-INTERACTIVE EDITING"
3075 #: ../edit/virt-edit.pod:197
3077 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3078 "administrator can interactively edit the file."
3082 #: ../edit/virt-edit.pod:200
3084 "There are two ways also to use C<virt-edit> from scripts in order to make "
3085 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
3086 "like this, it's less error-prone to write scripts directly using the "
3087 "libguestfs API and Augeas for configuration file editing.)"
3091 #: ../edit/virt-edit.pod:206
3093 "The first method is to temporarily set C<$EDITOR> to any script or program "
3094 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
3095 "update C<tmpfile> in place however it likes."
3099 #: ../edit/virt-edit.pod:210
3101 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3102 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
3103 "instances of C<foo> with C<bar> in a file:"
3107 #: ../edit/virt-edit.pod:214
3110 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3115 #: ../edit/virt-edit.pod:216
3117 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
3118 "For example to delete root's password you could do:"
3122 #: ../edit/virt-edit.pod:219
3125 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3130 #: ../edit/virt-edit.pod:221
3132 "What really happens is that the snippet is evaluated as a Perl expression "
3133 "for each line of the file. The line, including the final C<\\n>, is passed "
3134 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3138 #: ../edit/virt-edit.pod:226
3140 "To delete a line, set C<$_> to the empty string. For example, to delete the "
3141 "C<apache> user account from the password file you can do:"
3145 #: ../edit/virt-edit.pod:229
3148 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3153 #: ../edit/virt-edit.pod:231
3155 "To insert a line, prepend or append it to C<$_>. However appending lines to "
3156 "the end of the file is rather difficult this way since there is no concept "
3157 "of \"last line of the file\" - your expression just doesn't get called "
3158 "again. You might want to use the first method (setting C<$EDITOR>) if you "
3163 #: ../edit/virt-edit.pod:237
3165 "The variable C<$lineno> contains the current line number. As is "
3166 "traditional, the first line in the file is number C<1>."
3170 #: ../edit/virt-edit.pod:240
3172 "The return value from the expression is ignored, but the expression may call "
3173 "C<die> in order to abort the whole program, leaving the original file "
3178 #: ../edit/virt-edit.pod:244
3180 "Remember when matching the end of a line that C<$_> may contain the final C<"
3181 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3182 "newline then neither of these. Thus to match or substitute some text at the "
3183 "end of a line, use this regular expression:"
3187 #: ../edit/virt-edit.pod:249
3190 " /some text(\\r?\\n)?$/\n"
3195 #: ../edit/virt-edit.pod:251
3197 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3198 "$_> itself (since that would remove all newlines from the file):"
3202 #: ../edit/virt-edit.pod:255
3205 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3210 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3211 msgid "WINDOWS PATHS"
3215 #: ../edit/virt-edit.pod:259
3217 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3218 "paths (eg. C<E:\\foo\\bar.txt>)."
3222 #: ../edit/virt-edit.pod:262
3223 msgid "If and only if the guest is running Windows then:"
3227 #: ../edit/virt-edit.pod:268
3229 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3230 "to the correct filesystem."
3234 #: ../edit/virt-edit.pod:273
3236 "Any backslash (C<\\>) characters in the path are replaced with forward "
3237 "slashes so that libguestfs can process it."
3241 #: ../edit/virt-edit.pod:278
3243 "The path is resolved case insensitively to locate the file that should be "
3248 #: ../edit/virt-edit.pod:283
3249 msgid "There are some known shortcomings:"
3253 #: ../edit/virt-edit.pod:289
3254 msgid "Some NTFS symbolic links may not be followed correctly."
3258 #: ../edit/virt-edit.pod:293
3259 msgid "NTFS junction points that cross filesystems are not followed."
3263 #: ../edit/virt-edit.pod:299
3265 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3266 "C<virt-edit> doesn't work."
3270 #: ../edit/virt-edit.pod:302
3271 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3275 #: ../edit/virt-edit.pod:304
3278 #| " guestfish --ro -d myguest -i\n"
3281 " guestfish --rw -i -d domname edit /file\n"
3284 " guestfish --ro -d myguest -i\n"
3288 #: ../edit/virt-edit.pod:306
3290 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3295 #: ../edit/virt-edit.pod:309
3297 "The command above uses libguestfs's guest inspection feature and so does not "
3298 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3299 "disk images that don't contain guests. To edit a file on a disk image "
3304 #: ../edit/virt-edit.pod:314
3307 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3310 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3313 " guestfish --format=raw -a disk.img --format -a another.img\n"
3317 #: ../edit/virt-edit.pod:316
3319 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3320 "the disk image to edit, and C</file> is the full path to the file."
3324 #: ../edit/virt-edit.pod:320
3326 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3327 "C<write> or C<upload> instead:"
3331 #: ../edit/virt-edit.pod:323
3334 #| " guestfish --ro -d myguest -i\n"
3337 " guestfish --rw -i -d domname touch /newfile\n"
3340 " guestfish --ro -d myguest -i\n"
3344 #: ../edit/virt-edit.pod:325
3347 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3352 #: ../edit/virt-edit.pod:327
3355 " guestfish --rw -i -d domname upload localfile /newfile\n"
3360 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3361 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2981
3362 #: ../test-tool/libguestfs-test-tool.pod:82
3363 msgid "ENVIRONMENT VARIABLES"
3364 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3367 #: ../edit/virt-edit.pod:333
3374 #: ../edit/virt-edit.pod:335
3376 "If set, this string is used as the editor. It may contain arguments, eg. C<"
3381 #: ../edit/virt-edit.pod:338
3382 msgid "If not set, C<vi> is used."
3386 #: ../edit/virt-edit.pod:356
3389 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3390 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3391 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3393 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3394 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3395 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3397 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3398 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3399 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3402 #: ../examples/guestfs-examples.pod:5
3403 msgid "guestfs-examples - Examples of using libguestfs from C"
3407 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3410 " #include <guestfs.h>\n"
3413 " #include <guestfs.h>\n"
3417 #: ../examples/guestfs-examples.pod:11
3420 " guestfs_h *g = guestfs_create ();\n"
3421 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3422 " guestfs_launch (g);\n"
3427 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3430 " cc prog.c -o prog -lguestfs\n"
3432 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3435 " cc prog.c -o prog -lguestfs\n"
3437 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3441 #: ../examples/guestfs-examples.pod:21
3443 "This manual page contains examples of calling libguestfs from the C "
3444 "programming language. If you are not familiar with using libguestfs, you "
3445 "also need to read L<guestfs(3)>."
3449 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3450 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3451 #: ../python/examples/guestfs-python.pod:34
3452 #: ../ruby/examples/guestfs-ruby.pod:28
3453 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3457 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3458 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3459 #: ../python/examples/guestfs-python.pod:36
3460 #: ../ruby/examples/guestfs-ruby.pod:30
3467 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3468 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3469 #: ../python/examples/guestfs-python.pod:38
3470 #: ../ruby/examples/guestfs-ruby.pod:32
3471 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3475 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3476 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3477 #: ../python/examples/guestfs-python.pod:40
3478 #: ../ruby/examples/guestfs-ruby.pod:34
3485 #: ../examples/guestfs-examples.pod:35
3488 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3489 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3490 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3492 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3493 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3496 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3497 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3498 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3501 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3502 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3503 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3504 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3505 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3506 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3507 #: ../python/examples/guestfs-python.pod:53
3508 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3114
3509 #: ../test-tool/libguestfs-test-tool.pod:93
3514 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3515 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3516 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3517 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3518 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3519 #: ../perl/examples/guestfs-perl.pod:53
3520 #: ../python/examples/guestfs-python.pod:55
3521 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3116
3522 #: ../test-tool/libguestfs-test-tool.pod:95
3523 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3527 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3528 #: ../python/examples/guestfs-python.pod:59
3529 #: ../ruby/examples/guestfs-ruby.pod:53
3531 #| msgid "Copyright (C) 2009 Red Hat Inc."
3532 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3533 msgstr "© Red Hat Inc., 2009"
3536 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3537 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3538 #: ../perl/examples/guestfs-perl.pod:59
3539 #: ../python/examples/guestfs-python.pod:61
3540 #: ../ruby/examples/guestfs-ruby.pod:55
3542 "The examples in this manual page may be freely copied, modified and "
3543 "distributed without any restrictions."
3547 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3548 #: ../java/examples/guestfs-java.pod:68
3549 #: ../ocaml/examples/guestfs-ocaml.pod:101
3550 #: ../perl/examples/guestfs-perl.pod:62
3551 #: ../python/examples/guestfs-python.pod:64
3552 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3123
3554 "This library is free software; you can redistribute it and/or modify it "
3555 "under the terms of the GNU Lesser General Public License as published by the "
3556 "Free Software Foundation; either version 2 of the License, or (at your "
3557 "option) any later version."
3561 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3562 #: ../java/examples/guestfs-java.pod:73
3563 #: ../ocaml/examples/guestfs-ocaml.pod:106
3564 #: ../perl/examples/guestfs-perl.pod:67
3565 #: ../python/examples/guestfs-python.pod:69
3566 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3128
3568 "This library is distributed in the hope that it will be useful, but WITHOUT "
3569 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3570 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
3575 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3576 #: ../java/examples/guestfs-java.pod:78
3577 #: ../ocaml/examples/guestfs-ocaml.pod:111
3578 #: ../perl/examples/guestfs-perl.pod:72
3579 #: ../python/examples/guestfs-python.pod:74
3580 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3133
3582 "You should have received a copy of the GNU Lesser General Public License "
3583 "along with this library; if not, write to the Free Software Foundation, "
3584 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3588 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3593 #: ../examples/guestfs-recipes.pod:5
3595 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3596 "here. The only way which works for both sorts of output is to just write "
3597 "the URL directly. Do NOT use L<...> for URLs."
3601 #: ../examples/guestfs-recipes.pod:9
3603 "We break with tradition here and don't use ALL CAPS for the section "
3604 "headings, as this makes them much easier to read."
3608 #: ../examples/guestfs-recipes.pod:16
3609 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3613 #: ../examples/guestfs-recipes.pod:20
3615 "This page contains recipes for and links to things you can do using "
3616 "libguestfs, L<guestfish(1)> and the virt tools."
3620 #: ../examples/guestfs-recipes.pod:23
3621 msgid "Audit a virtual machine for setuid files"
3625 #: ../examples/guestfs-recipes.pod:25
3627 "The link below contains a small program which can be used to audit a Linux "
3628 "virtual machine to see what setuid and setgid files it contains."
3632 #: ../examples/guestfs-recipes.pod:28
3634 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3639 #: ../examples/guestfs-recipes.pod:30
3640 msgid "Change the background image in a Windows XP VM"
3644 #: ../examples/guestfs-recipes.pod:32
3646 "The links below explain how to use L<guestfish(1)> to change the background "
3647 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
3648 "be substantially different for each version of Windows."
3652 #: ../examples/guestfs-recipes.pod:37
3654 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3655 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3659 #: ../examples/guestfs-recipes.pod:40
3660 msgid "Cloning a virtual machine (Linux)"
3664 #: ../examples/guestfs-recipes.pod:42
3666 "The guestfish technique described in the link below works well for most "
3667 "Linux VMs. Depending on the Linux distro you may need to change the paths "
3672 #: ../examples/guestfs-recipes.pod:46
3674 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3679 #: ../examples/guestfs-recipes.pod:48
3681 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
3686 #: ../examples/guestfs-recipes.pod:51
3687 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3691 #: ../examples/guestfs-recipes.pod:53
3692 msgid "Cloning a virtual machine (Windows)"
3696 #: ../examples/guestfs-recipes.pod:55
3698 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3699 "straightforward. Currently there is code in the Aeolus Oz project which "
3700 "does this (using libguestfs). As part of our review of the virt-clone tool, "
3701 "we may add sysprepping ability."
3705 #: ../examples/guestfs-recipes.pod:60
3707 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3708 "list/2011-May/msg00019.html"
3712 #: ../examples/guestfs-recipes.pod:63
3713 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3717 #: ../examples/guestfs-recipes.pod:65
3718 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3722 #: ../examples/guestfs-recipes.pod:67
3725 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3730 #: ../examples/guestfs-recipes.pod:69
3731 msgid "To export just a subdirectory, eg. C</files>, do:"
3735 #: ../examples/guestfs-recipes.pod:71
3738 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3743 #: ../examples/guestfs-recipes.pod:73
3744 msgid "Create empty disk images"
3748 #: ../examples/guestfs-recipes.pod:75
3750 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
3751 "The useful guide below explains the options available."
3755 #: ../examples/guestfs-recipes.pod:78
3757 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3762 #: ../examples/guestfs-recipes.pod:80
3763 msgid "Dump raw filesystem content from inside a disk image or VM"
3767 #: ../examples/guestfs-recipes.pod:82
3769 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3770 "filesystem content from any filesystem in a disk image or a VM (even one "
3771 "which is encrypted or buried inside an LV):"
3775 #: ../examples/guestfs-recipes.pod:86
3778 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3781 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3784 " guestfish --format=raw -a disk.img --format -a another.img\n"
3788 #: ../examples/guestfs-recipes.pod:88
3791 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3796 #: ../examples/guestfs-recipes.pod:90
3797 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3801 #: ../examples/guestfs-recipes.pod:92
3802 msgid "Edit grub configuration in a VM"
3806 #: ../examples/guestfs-recipes.pod:94
3807 msgid "You can use this to:"
3811 #: ../examples/guestfs-recipes.pod:100
3812 msgid "Fix a virtual machine that does not boot."
3816 #: ../examples/guestfs-recipes.pod:104
3817 msgid "Change which kernel is used to boot the VM."
3821 #: ../examples/guestfs-recipes.pod:108
3822 msgid "Change kernel command line options."
3826 #: ../examples/guestfs-recipes.pod:112
3827 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3831 #: ../examples/guestfs-recipes.pod:114
3834 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3839 #: ../examples/guestfs-recipes.pod:116
3841 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3846 #: ../examples/guestfs-recipes.pod:119
3849 " virt-rescue -d BrokenGuest\n"
3854 #: ../examples/guestfs-recipes.pod:121
3855 msgid "Export any directory from a VM"
3859 #: ../examples/guestfs-recipes.pod:123
3861 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3865 #: ../examples/guestfs-recipes.pod:126
3868 #| " copy-out /home .\n"
3871 " virt-copy-out -d Guest /home .\n"
3874 " copy-out /home .\n"
3878 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3879 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3880 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922
3881 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640
3882 #: ../tools/virt-win-reg.pl:706
3887 #: ../examples/guestfs-recipes.pod:134
3889 "The final dot of the command is not a printing error. It means we want to "
3890 "copy out to the current directory."
3894 #: ../examples/guestfs-recipes.pod:139
3895 msgid "This creates a directory called C<home> under the current directory."
3899 #: ../examples/guestfs-recipes.pod:143
3901 "If the guest is a Windows guest then you can use drive letters and "
3902 "backslashes, but you must prefix the path with C<win:> and quote it to "
3903 "protect it from the shell, like this:"
3907 #: ../examples/guestfs-recipes.pod:147
3910 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3915 #: ../examples/guestfs-recipes.pod:149
3916 msgid "To get the output as a compressed tarball, do:"
3920 #: ../examples/guestfs-recipes.pod:151
3923 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3928 #: ../examples/guestfs-recipes.pod:153
3930 "Although it sounds tempting, this is usually not a reliable way to get a "
3931 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
3932 "org/FAQ.html#backup"
3936 #: ../examples/guestfs-recipes.pod:157
3937 msgid "Find out which user is using the most space"
3941 #: ../examples/guestfs-recipes.pod:159
3943 "This simple script examines a Linux guest to find out which user is using "
3944 "the most space in their home directory:"
3948 #: ../examples/guestfs-recipes.pod:162
3951 #| " #!/usr/bin/guestfish -f\n"
3957 " #!/usr/bin/guestfish -f\n"
3961 #: ../examples/guestfs-recipes.pod:164
3964 #| " set-qemu qemu\n"
3974 #: ../examples/guestfs-recipes.pod:166
3983 #: ../examples/guestfs-recipes.pod:169
3986 #| " guestfish --ro -d myguest -i\n"
3989 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3992 " guestfish --ro -d myguest -i\n"
3996 #: ../examples/guestfs-recipes.pod:171
3999 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4000 " echo -n \"$dir/$d\"\n"
4002 " guestfish --remote du \"$dir/$d\";\n"
4003 " done | sort -nr -k 2\n"
4008 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4011 " guestfish --remote exit\n"
4016 #: ../examples/guestfs-recipes.pod:179
4017 msgid "Get DHCP address from a VM"
4021 #: ../examples/guestfs-recipes.pod:181
4023 "The link below explains the many different possible techniques for getting "
4024 "the last assigned DHCP address of a virtual machine."
4028 #: ../examples/guestfs-recipes.pod:184
4030 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4031 "a-virtual-machine-disk-image/#content"
4035 #: ../examples/guestfs-recipes.pod:186
4037 "In the libguestfs source examples directory you will find the latest version "
4038 "of the C<virt-dhcp-address.c> program."
4042 #: ../examples/guestfs-recipes.pod:189
4043 msgid "Get the operating system product name string"
4047 #: ../examples/guestfs-recipes.pod:191
4048 msgid "Save the following script into a file called C<product-name.sh>:"
4052 #: ../examples/guestfs-recipes.pod:193
4055 #| " eval \"`guestfish --listen`\"\n"
4056 #| " guestfish --remote add-ro disk.img\n"
4057 #| " guestfish --remote run\n"
4058 #| " guestfish --remote lvs\n"
4063 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4064 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4065 " guestfish --remote inspect-get-product-name \"$root\"\n"
4066 " guestfish --remote exit\n"
4069 " eval \"`guestfish --listen`\"\n"
4070 " guestfish --remote add-ro disk.img\n"
4071 " guestfish --remote run\n"
4072 " guestfish --remote lvs\n"
4076 #: ../examples/guestfs-recipes.pod:200
4077 msgid "Make the script executable and run it on a named guest:"
4081 #: ../examples/guestfs-recipes.pod:202
4084 " # product-name.sh RHEL60x64\n"
4085 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4090 #: ../examples/guestfs-recipes.pod:205
4092 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4093 "C<xpath> command line tool or from your favourite programming language:"
4097 #: ../examples/guestfs-recipes.pod:209
4100 " # virt-inspector RHEL60x64 > xml\n"
4101 " # xpath '//product_name' < xml\n"
4104 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4109 #: ../examples/guestfs-recipes.pod:215
4110 msgid "Get the default boot kernel for a Linux VM"
4114 #: ../examples/guestfs-recipes.pod:217
4116 "The link below contains a program to print the default boot kernel for a "
4121 #: ../examples/guestfs-recipes.pod:220
4123 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4124 "kernel-for-a-vm/#content"
4128 #: ../examples/guestfs-recipes.pod:222
4130 "It uses Augeas, and the technique is generally applicable for many different "
4135 #: ../examples/guestfs-recipes.pod:229
4136 msgid "listing the user accounts in the guest"
4140 #: ../examples/guestfs-recipes.pod:233
4141 msgid "what repositories is it configured to use"
4145 #: ../examples/guestfs-recipes.pod:237
4146 msgid "what NTP servers does it connect to"
4150 #: ../examples/guestfs-recipes.pod:241
4151 msgid "what were the boot messages last time it booted"
4155 #: ../examples/guestfs-recipes.pod:245
4156 msgid "listing who was logged in recently"
4160 #: ../examples/guestfs-recipes.pod:249
4161 msgid "http://augeas.net/"
4165 #: ../examples/guestfs-recipes.pod:251
4166 msgid "Install RPMs in a guest"
4170 #: ../examples/guestfs-recipes.pod:253
4172 "The link below contains a method to install RPMs in a guest. In fact the "
4173 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4174 "installs them next time the guest is booted. You could use this technique "
4175 "to install vital security updates in an offline guest."
4179 #: ../examples/guestfs-recipes.pod:259
4181 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4185 #: ../examples/guestfs-recipes.pod:261
4186 msgid "List applications installed in a VM"
4190 #: ../examples/guestfs-recipes.pod:263
4191 msgid "Save the following to a file C<list-apps.sh>:"
4195 #: ../examples/guestfs-recipes.pod:265
4198 #| " eval \"`guestfish --listen`\"\n"
4199 #| " guestfish --remote add-ro disk.img\n"
4200 #| " guestfish --remote run\n"
4201 #| " guestfish --remote lvs\n"
4206 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4207 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4208 " guestfish --remote inspect-list-applications \"$root\"\n"
4209 " guestfish --remote exit\n"
4212 " eval \"`guestfish --listen`\"\n"
4213 " guestfish --remote add-ro disk.img\n"
4214 " guestfish --remote run\n"
4215 " guestfish --remote lvs\n"
4219 #: ../examples/guestfs-recipes.pod:272
4221 "Make the file executable and then you can run it on any named virtual "
4226 #: ../examples/guestfs-recipes.pod:275
4229 " # list-apps.sh WinGuest\n"
4231 " app_name: Mozilla Firefox (3.6.12)\n"
4232 " app_display_name: Mozilla Firefox (3.6.12)\n"
4234 " app_version: 3.6.12 (en-GB)\n"
4236 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4237 " app_trans_path:\n"
4238 " app_publisher: Mozilla\n"
4239 " app_url: http://www.mozilla.com/en-GB/\n"
4240 " app_source_package:\n"
4242 " app_description: Mozilla Firefox\n"
4245 " app_name: VLC media player\n"
4246 " app_display_name: VLC media player 1.1.5\n"
4248 " app_version: 1.1.5\n"
4250 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4251 " app_trans_path:\n"
4252 " app_publisher: VideoLAN\n"
4253 " app_url: http://www.videolan.org/\n"
4254 " app_source_package:\n"
4256 " app_description:\n"
4262 #: ../examples/guestfs-recipes.pod:305
4264 "If you want to run the script on disk images (instead of libvirt virtual "
4265 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4270 #: ../examples/guestfs-recipes.pod:309
4271 msgid "List files and directories in a VM"
4275 #: ../examples/guestfs-recipes.pod:311
4276 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4280 #: ../examples/guestfs-recipes.pod:313
4283 #| " guestfish --ro -d myguest -i\n"
4286 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4289 " guestfish --ro -d myguest -i\n"
4293 #: ../examples/guestfs-recipes.pod:315
4294 msgid "List services in a Windows VM"
4298 #: ../examples/guestfs-recipes.pod:317
4300 "The link below contains a script that can be used to list out the services "
4301 "from a Windows VM, and whether those services run at boot time or are loaded "
4306 #: ../examples/guestfs-recipes.pod:321
4308 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4313 #: ../examples/guestfs-recipes.pod:323
4314 msgid "Make a disk image sparse"
4318 #: ../examples/guestfs-recipes.pod:325
4320 "The link below contains some guides for making a disk image sparse (or "
4321 "reintroducing sparseness)."
4325 #: ../examples/guestfs-recipes.pod:328
4327 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4331 #: ../examples/guestfs-recipes.pod:330
4332 msgid "Monitor disk usage over time"
4336 #: ../examples/guestfs-recipes.pod:332
4338 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4339 "The link below contains a guide."
4343 #: ../examples/guestfs-recipes.pod:335
4344 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4348 #: ../examples/guestfs-recipes.pod:337
4349 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4353 #: ../examples/guestfs-recipes.pod:339
4355 "L<guestfish(1)> plus the tools described in the link below can be used to "
4356 "read out the Windows Event Log from any virtual machine running Windows "
4357 "Vista or a later version."
4361 #: ../examples/guestfs-recipes.pod:343
4363 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4364 "guestfish/#content"
4368 #: ../examples/guestfs-recipes.pod:345
4369 msgid "Remove root password (Linux)"
4373 #: ../examples/guestfs-recipes.pod:347
4375 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4376 "files. One use is to remove the root password from a Linux guest:"
4380 #: ../examples/guestfs-recipes.pod:350
4383 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4388 #: ../examples/guestfs-recipes.pod:352
4389 msgid "Remove Administrator password (Windows)"
4393 #: ../examples/guestfs-recipes.pod:354
4395 "The link below contains one technique for removing the Administrator "
4396 "password from a Windows VM, or to be more precise, it gives you a command "
4397 "prompt the next time you log in which you can use to bypass any security:"
4401 #: ../examples/guestfs-recipes.pod:359
4403 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4404 "administrator-password-with-guestfish/"
4408 #: ../examples/guestfs-recipes.pod:361
4409 msgid "Unpack a live CD"
4413 #: ../examples/guestfs-recipes.pod:363
4415 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4416 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
4417 "layers, as outlined in the guide below."
4421 #: ../examples/guestfs-recipes.pod:367
4423 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4428 #: ../examples/guestfs-recipes.pod:369
4429 msgid "Uploading and downloading files"
4433 #: ../examples/guestfs-recipes.pod:371
4435 "The link below contains general tips on uploading (copying in) and "
4436 "downloading (copying out) files from VMs."
4440 #: ../examples/guestfs-recipes.pod:374
4442 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4446 #: ../examples/guestfs-recipes.pod:376
4447 msgid "Use libguestfs tools on VMware ESX guests"
4451 #: ../examples/guestfs-recipes.pod:378
4453 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4454 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4458 #: ../examples/guestfs-recipes.pod:382
4460 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4465 #: ../examples/guestfs-recipes.pod:386
4468 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4469 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4470 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4472 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4473 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4474 "(3)>, L<http://libguestfs.org/>."
4476 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4477 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4478 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4481 #: ../examples/guestfs-recipes.pod:402
4483 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4484 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4485 msgstr "© Red Hat Inc., 2009–2010"
4488 #: ../fish/guestfish-actions.pod:1
4493 #: ../fish/guestfish-actions.pod:3
4496 " add-cdrom filename\n"
4501 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4502 msgid "This function adds a virtual CD-ROM disk image to the guest."
4506 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4507 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4511 #: ../fish/guestfish-actions.pod:15
4513 "This call checks for the existence of C<filename>. This stops you from "
4514 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4515 "and C<http:> URLs. To specify those, use the general L</config> call "
4520 #: ../fish/guestfish-actions.pod:22
4522 "If you just want to add an ISO file (often you use this as an efficient way "
4523 "to transfer large files into the guest), then you should probably use L</add-"
4524 "drive-ro> instead."
4528 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4529 #: ../fish/guestfish-actions.pod:177
4531 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4536 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4537 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4538 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4539 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4540 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4541 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4542 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4543 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4544 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4545 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4546 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4547 #: ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926
4548 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255
4549 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565
4550 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662
4551 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703
4552 #: ../src/guestfs-actions.pod:7886
4554 "Deprecated functions will not be removed from the API, but the fact that "
4555 "they are deprecated indicates that there are problems with correct use of "
4560 #: ../fish/guestfish-actions.pod:35
4565 #: ../fish/guestfish-actions.pod:37
4570 #: ../fish/guestfish-actions.pod:39
4573 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4578 #: ../fish/guestfish-actions.pod:41
4580 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4581 "It works by connecting to libvirt, requesting the domain and domain XML from "
4582 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4586 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4588 "The number of disks added is returned. This operation is atomic: if an "
4589 "error is returned, then no disks are added."
4593 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4595 "This function does some minimal checks to make sure the libvirt domain is "
4596 "not running (unless C<readonly> is true). In a future version we will try "
4597 "to acquire the libvirt lock on each disk."
4601 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4603 "Disks must be accessible locally. This often means that adding disks from a "
4604 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4605 "unless those disks are accessible via the same device path locally too."
4609 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4611 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4612 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4613 "libvirt URI (or one set through an environment variable, see the libvirt "
4614 "documentation for full details)."
4618 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4620 "The optional C<live> flag controls whether this call will try to connect to "
4621 "a running virtual machine C<guestfsd> process if it sees a suitable "
4622 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4623 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4624 "DAEMONS> for more information."
4628 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4630 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4631 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4632 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4637 #: ../fish/guestfish-actions.pod:76
4639 "The other optional parameters are passed directly through to L</add-drive-"
4644 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4645 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4646 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4647 #: ../fish/guestfish-actions.pod:3447
4649 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4653 #: ../fish/guestfish-actions.pod:81
4658 #: ../fish/guestfish-actions.pod:83
4661 " add-drive filename\n"
4664 " add-drive назва_файла\n"
4668 #: ../fish/guestfish-actions.pod:85
4670 "This function is the equivalent of calling L</add-drive-opts> with no "
4671 "optional parameters, so the disk is added writable, with the format being "
4672 "detected automatically."
4676 #: ../fish/guestfish-actions.pod:89
4678 "Automatic detection of the format opens you up to a potential security hole "
4679 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4680 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4681 "you should think about replacing calls to this function with calls to L</add-"
4682 "drive-opts>, and specifying the format."
4686 #: ../fish/guestfish-actions.pod:96
4687 msgid "add-drive-opts"
4688 msgstr "add-drive-opts"
4691 #: ../fish/guestfish-actions.pod:98
4696 #: ../fish/guestfish-actions.pod:100
4699 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4704 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4706 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4707 "The first time you call this function, the disk appears as C</dev/sda>, the "
4708 "second time as C</dev/sdb>, and so on."
4712 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4714 "You don't necessarily need to be root when using libguestfs. However you "
4715 "obviously do need sufficient permissions to access the filename for whatever "
4716 "operations you want to perform (ie. read access if you just want to read the "
4717 "image or write access if you want to modify the image)."
4721 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4722 msgid "This call checks that C<filename> exists."
4726 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4727 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4728 msgid "The optional arguments are:"
4732 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4734 msgstr "C<readonly>"
4737 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4739 "If true then the image is treated as read-only. Writes are still allowed, "
4740 "but they are stored in a temporary snapshot overlay which is discarded at "
4741 "the end. The disk that you add is not modified."
4745 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4750 #: ../fish/guestfish-actions.pod:127
4752 "This forces the image format. If you omit this (or use L</add-drive> or L</"
4753 "add-drive-ro>) then the format is automatically detected. Possible formats "
4754 "include C<raw> and C<qcow2>."
4758 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4760 "Automatic detection of the format opens you up to a potential security hole "
4761 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4762 "RHBZ#642934. Specifying the format closes this security hole."
4766 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4771 #: ../fish/guestfish-actions.pod:138
4773 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4774 "add-drive-with-if> call (q.v.)"
4778 #: ../fish/guestfish-actions.pod:145
4779 msgid "add-drive-ro"
4780 msgstr "add-drive-ro"
4783 #: ../fish/guestfish-actions.pod:147
4788 #: ../fish/guestfish-actions.pod:149
4791 " add-drive-ro filename\n"
4796 #: ../fish/guestfish-actions.pod:151
4798 "This function is the equivalent of calling L</add-drive-opts> with the "
4799 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4800 "is added read-only, with the format being detected automatically."
4804 #: ../fish/guestfish-actions.pod:156
4805 msgid "add-drive-ro-with-if"
4809 #: ../fish/guestfish-actions.pod:158
4812 " add-drive-ro-with-if filename iface\n"
4817 #: ../fish/guestfish-actions.pod:160
4819 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4820 "interface emulation to use at run time."
4824 #: ../fish/guestfish-actions.pod:170
4825 msgid "add-drive-with-if"
4829 #: ../fish/guestfish-actions.pod:172
4832 " add-drive-with-if filename iface\n"
4837 #: ../fish/guestfish-actions.pod:174
4839 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4840 "interface emulation to use at run time."
4844 #: ../fish/guestfish-actions.pod:184
4849 #: ../fish/guestfish-actions.pod:186
4852 " aug-clear augpath\n"
4857 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4859 "Set the value associated with C<path> to C<NULL>. This is the same as the "
4860 "L<augtool(1)> C<clear> command."
4864 #: ../fish/guestfish-actions.pod:191
4869 #: ../fish/guestfish-actions.pod:193
4877 #: ../fish/guestfish-actions.pod:195
4879 "Close the current Augeas handle and free up any resources used by it. After "
4880 "calling this, you have to call L</aug-init> again before you can use any "
4881 "other Augeas functions."
4885 #: ../fish/guestfish-actions.pod:200
4890 #: ../fish/guestfish-actions.pod:202
4893 " aug-defnode name expr val\n"
4898 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4900 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4904 #: ../fish/guestfish-actions.pod:207
4906 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4907 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
4908 "containing that single node."
4912 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4914 "On success this returns a pair containing the number of nodes in the "
4915 "nodeset, and a boolean flag if a node was created."
4919 #: ../fish/guestfish-actions.pod:215
4924 #: ../fish/guestfish-actions.pod:217
4927 " aug-defvar name expr\n"
4932 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4934 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4935 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
4939 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4941 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4942 "evaluates to something which is not a nodeset."
4946 #: ../fish/guestfish-actions.pod:226
4951 #: ../fish/guestfish-actions.pod:228
4954 " aug-get augpath\n"
4959 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4961 "Look up the value associated with C<path>. If C<path> matches exactly one "
4962 "node, the C<value> is returned."
4966 #: ../fish/guestfish-actions.pod:233
4971 #: ../fish/guestfish-actions.pod:235
4974 " aug-init root flags\n"
4979 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4981 "Create a new Augeas handle for editing configuration files. If there was "
4982 "any previous Augeas handle associated with this guestfs session, then it is "
4987 #: ../fish/guestfish-actions.pod:241
4988 msgid "You must call this before using any other L</aug-*> commands."
4992 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4994 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
4998 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5000 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5001 "logical I<or> of the following integers:"
5005 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5006 msgid "C<AUG_SAVE_BACKUP> = 1"
5007 msgstr "C<AUG_SAVE_BACKUP> = 1"
5010 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5011 msgid "Keep the original file with a C<.augsave> extension."
5015 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5016 msgid "C<AUG_SAVE_NEWFILE> = 2"
5017 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5020 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5022 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5023 "original. Overrides C<AUG_SAVE_BACKUP>."
5027 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5028 msgid "C<AUG_TYPE_CHECK> = 4"
5029 msgstr "C<AUG_TYPE_CHECK> = 4"
5032 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5033 msgid "Typecheck lenses."
5037 #: ../fish/guestfish-actions.pod:266
5039 "This option is only useful when debugging Augeas lenses. Use of this option "
5040 "may require additional memory for the libguestfs appliance. You may need to "
5041 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5045 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5046 msgid "C<AUG_NO_STDINC> = 8"
5047 msgstr "C<AUG_NO_STDINC> = 8"
5050 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5051 msgid "Do not use standard load path for modules."
5055 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5056 msgid "C<AUG_SAVE_NOOP> = 16"
5057 msgstr "C<AUG_SAVE_NOOP> = 16"
5060 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5061 msgid "Make save a no-op, just record what would have been changed."
5065 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5066 msgid "C<AUG_NO_LOAD> = 32"
5067 msgstr "C<AUG_NO_LOAD> = 32"
5070 #: ../fish/guestfish-actions.pod:281
5071 msgid "Do not load the tree in L</aug-init>."
5075 #: ../fish/guestfish-actions.pod:285
5076 msgid "To close the handle, you can call L</aug-close>."
5080 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5081 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5085 #: ../fish/guestfish-actions.pod:289
5090 #: ../fish/guestfish-actions.pod:291
5093 " aug-insert augpath label true|false\n"
5098 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5100 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5101 "or after C<path> (depending on the boolean flag C<before>)."
5105 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5107 "C<path> must match exactly one existing node in the tree, and C<label> must "
5108 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5112 #: ../fish/guestfish-actions.pod:301
5117 #: ../fish/guestfish-actions.pod:303
5125 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5126 msgid "Load files into the tree."
5127 msgstr "Завантажити файли до ієрархії."
5130 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5131 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5135 #: ../fish/guestfish-actions.pod:310
5140 #: ../fish/guestfish-actions.pod:312
5148 #: ../fish/guestfish-actions.pod:314
5150 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5151 "resulting nodes into alphabetical order."
5155 #: ../fish/guestfish-actions.pod:317
5160 #: ../fish/guestfish-actions.pod:319
5163 " aug-match augpath\n"
5168 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5170 "Returns a list of paths which match the path expression C<path>. The "
5171 "returned paths are sufficiently qualified so that they match exactly one "
5172 "node in the current tree."
5176 #: ../fish/guestfish-actions.pod:325
5181 #: ../fish/guestfish-actions.pod:327
5184 " aug-mv src dest\n"
5189 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5191 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5192 "C<dest> is overwritten if it exists."
5196 #: ../fish/guestfish-actions.pod:332
5201 #: ../fish/guestfish-actions.pod:334
5209 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5210 msgid "Remove C<path> and all of its children."
5214 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5215 msgid "On success this returns the number of entries which were removed."
5219 #: ../fish/guestfish-actions.pod:340
5224 #: ../fish/guestfish-actions.pod:342
5232 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5233 msgid "This writes all pending changes to disk."
5237 #: ../fish/guestfish-actions.pod:346
5239 "The flags which were passed to L</aug-init> affect exactly how files are "
5244 #: ../fish/guestfish-actions.pod:349
5249 #: ../fish/guestfish-actions.pod:351
5252 " aug-set augpath val\n"
5257 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5258 msgid "Set the value associated with C<path> to C<val>."
5262 #: ../fish/guestfish-actions.pod:355
5264 "In the Augeas API, it is possible to clear a node by setting the value to "
5265 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5266 "this call. Instead you must use the L</aug-clear> call."
5270 #: ../fish/guestfish-actions.pod:360
5275 #: ../fish/guestfish-actions.pod:362
5278 " available 'groups ...'\n"
5283 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5285 "This command is used to check the availability of some groups of "
5286 "functionality in the appliance, which not all builds of the libguestfs "
5287 "appliance will be able to provide."
5291 #: ../fish/guestfish-actions.pod:368
5293 "The libguestfs groups, and the functions that those groups correspond to, "
5294 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5295 "runtime by calling L</available-all-groups>."
5299 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5301 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5302 "\"]> would check for the availability of the Linux inotify functions and "
5303 "Augeas (configuration file editing) functions."
5307 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5308 msgid "The command returns no error if I<all> requested groups are available."
5312 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5314 "It fails with an error if one or more of the requested groups is unavailable "
5319 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5321 "If an unknown group name is included in the list of groups then an error is "
5326 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5328 msgstr "I<Нотатки:>"
5331 #: ../fish/guestfish-actions.pod:392
5332 msgid "You must call L</launch> before calling this function."
5336 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5338 "The reason is because we don't know what groups are supported by the "
5339 "appliance/daemon until it is running and can be queried."
5343 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5345 "If a group of functions is available, this does not necessarily mean that "
5346 "they will work. You still have to check for errors when calling individual "
5347 "API functions even if they are available."
5351 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5353 "It is usually the job of distro packagers to build complete functionality "
5354 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5355 "with all requirements satisfied, will support everything."
5359 #: ../fish/guestfish-actions.pod:414
5361 "This call was added in version C<1.0.80>. In previous versions of "
5362 "libguestfs all you could do would be to speculatively execute a command to "
5363 "find out if the daemon implemented it. See also L</version>."
5367 #: ../fish/guestfish-actions.pod:421
5368 msgid "available-all-groups"
5372 #: ../fish/guestfish-actions.pod:423
5375 " available-all-groups\n"
5380 #: ../fish/guestfish-actions.pod:425
5382 "This command returns a list of all optional groups that this daemon knows "
5383 "about. Note this returns both supported and unsupported groups. To find "
5384 "out which ones the daemon can actually support you have to call L</"
5385 "available> on each member of the returned list."
5389 #: ../fish/guestfish-actions.pod:431
5390 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5394 #: ../fish/guestfish-actions.pod:433
5399 #: ../fish/guestfish-actions.pod:435
5402 " base64-in (base64file|-) filename\n"
5407 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5409 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5413 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5414 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5415 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5416 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5417 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5418 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5419 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5420 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5424 #: ../fish/guestfish-actions.pod:442
5429 #: ../fish/guestfish-actions.pod:444
5432 " base64-out filename (base64file|-)\n"
5437 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5439 "This command downloads the contents of C<filename>, writing it out to local "
5440 "file C<base64file> encoded as base64."
5444 #: ../fish/guestfish-actions.pod:451
5445 msgid "blockdev-flushbufs"
5449 #: ../fish/guestfish-actions.pod:453
5452 " blockdev-flushbufs device\n"
5457 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5459 "This tells the kernel to flush internal buffers associated with C<device>."
5463 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5464 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5465 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5466 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5467 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5468 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5469 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5470 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5471 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5472 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5473 msgid "This uses the L<blockdev(8)> command."
5477 #: ../fish/guestfish-actions.pod:460
5478 msgid "blockdev-getbsz"
5482 #: ../fish/guestfish-actions.pod:462
5485 " blockdev-getbsz device\n"
5490 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5491 msgid "This returns the block size of a device."
5495 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5496 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5498 "(Note this is different from both I<size in blocks> and I<filesystem block "
5503 #: ../fish/guestfish-actions.pod:471
5504 msgid "blockdev-getro"
5508 #: ../fish/guestfish-actions.pod:473
5511 " blockdev-getro device\n"
5516 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5518 "Returns a boolean indicating if the block device is read-only (true if read-"
5519 "only, false if not)."
5523 #: ../fish/guestfish-actions.pod:480
5524 msgid "blockdev-getsize64"
5528 #: ../fish/guestfish-actions.pod:482
5531 " blockdev-getsize64 device\n"
5536 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5537 msgid "This returns the size of the device in bytes."
5541 #: ../fish/guestfish-actions.pod:486
5542 msgid "See also L</blockdev-getsz>."
5546 #: ../fish/guestfish-actions.pod:490
5547 msgid "blockdev-getss"
5551 #: ../fish/guestfish-actions.pod:492
5554 " blockdev-getss device\n"
5559 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5561 "This returns the size of sectors on a block device. Usually 512, but can be "
5562 "larger for modern devices."
5566 #: ../fish/guestfish-actions.pod:497
5568 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5572 #: ../fish/guestfish-actions.pod:502
5573 msgid "blockdev-getsz"
5577 #: ../fish/guestfish-actions.pod:504
5580 " blockdev-getsz device\n"
5585 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5587 "This returns the size of the device in units of 512-byte sectors (even if "
5588 "the sectorsize isn't 512 bytes ... weird)."
5592 #: ../fish/guestfish-actions.pod:509
5594 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5595 "blockdev-getsize64> for the more useful I<size in bytes>."
5599 #: ../fish/guestfish-actions.pod:515
5600 msgid "blockdev-rereadpt"
5604 #: ../fish/guestfish-actions.pod:517
5607 " blockdev-rereadpt device\n"
5612 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5613 msgid "Reread the partition table on C<device>."
5617 #: ../fish/guestfish-actions.pod:523
5618 msgid "blockdev-setbsz"
5622 #: ../fish/guestfish-actions.pod:525
5625 " blockdev-setbsz device blocksize\n"
5630 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5631 msgid "This sets the block size of a device."
5635 #: ../fish/guestfish-actions.pod:534
5636 msgid "blockdev-setro"
5640 #: ../fish/guestfish-actions.pod:536
5643 " blockdev-setro device\n"
5648 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5649 msgid "Sets the block device named C<device> to read-only."
5653 #: ../fish/guestfish-actions.pod:542
5654 msgid "blockdev-setrw"
5658 #: ../fish/guestfish-actions.pod:544
5661 " blockdev-setrw device\n"
5666 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5667 msgid "Sets the block device named C<device> to read-write."
5671 #: ../fish/guestfish-actions.pod:550
5672 msgid "btrfs-filesystem-resize"
5676 #: ../fish/guestfish-actions.pod:552
5679 " btrfs-filesystem-resize mountpoint [size:..]\n"
5684 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5685 msgid "This command resizes a btrfs filesystem."
5689 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5691 "Note that unlike other resize calls, the filesystem has to be mounted and "
5692 "the parameter is the mountpoint not the device (this is a requirement of "
5697 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5698 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5699 msgid "The optional parameters are:"
5703 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5704 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5709 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5711 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5712 "resized to the maximum size."
5716 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5717 msgid "See also L<btrfs(8)>."
5721 #: ../fish/guestfish-actions.pod:575
5722 msgid "case-sensitive-path"
5726 #: ../fish/guestfish-actions.pod:577
5729 " case-sensitive-path path\n"
5734 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5736 "This can be used to resolve case insensitive paths on a filesystem which is "
5737 "case sensitive. The use case is to resolve paths which you have read from "
5738 "Windows configuration files or the Windows Registry, to the true path."
5742 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5744 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5745 "(and probably others), which is that although the underlying filesystem is "
5746 "case-insensitive, the driver exports the filesystem to Linux as case-"
5751 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5753 "One consequence of this is that special directories such as C<c:\\windows> "
5754 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5755 "precise details of how they were created. In Windows itself this would not "
5760 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5762 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5767 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5769 "This function resolves the true case of each element in the path and returns "
5770 "the case-sensitive path."
5774 #: ../fish/guestfish-actions.pod:601
5776 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
5777 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5778 "the directories were originally created under Windows)."
5782 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5783 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5787 #: ../fish/guestfish-actions.pod:609
5788 msgid "See also L</realpath>."
5792 #: ../fish/guestfish-actions.pod:611
5797 #: ../fish/guestfish-actions.pod:613
5807 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5808 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5809 msgid "Return the contents of the file named C<path>."
5813 #: ../fish/guestfish-actions.pod:617
5815 "Note that this function cannot correctly handle binary files (specifically, "
5816 "files containing C<\\0> character which is treated as end of string). For "
5817 "those you need to use the L</read-file> or L</download> functions which have "
5818 "a more complex interface."
5822 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5823 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5824 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5825 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5826 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5827 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5828 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5829 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5830 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5831 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5832 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5833 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5834 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5835 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5836 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5837 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5838 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5839 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5840 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5841 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5842 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5843 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5844 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5845 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5846 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5847 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5848 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5849 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5850 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720
5851 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5852 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5853 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5855 "Because of the message protocol, there is a transfer limit of somewhere "
5856 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
5860 #: ../fish/guestfish-actions.pod:625
5865 #: ../fish/guestfish-actions.pod:627
5868 " checksum csumtype path\n"
5873 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5875 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5879 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5881 "The type of checksum to compute is given by the C<csumtype> parameter which "
5882 "must have one of the following values:"
5886 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5891 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5893 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5898 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5903 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5904 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5908 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5913 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5914 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5918 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5923 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5924 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5928 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5933 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5934 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5938 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5943 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5944 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5948 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5953 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5954 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5958 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5959 msgid "The checksum is returned as a printable string."
5963 #: ../fish/guestfish-actions.pod:670
5964 msgid "To get the checksum for a device, use L</checksum-device>."
5968 #: ../fish/guestfish-actions.pod:672
5969 msgid "To get the checksums for many files, use L</checksums-out>."
5973 #: ../fish/guestfish-actions.pod:674
5974 msgid "checksum-device"
5975 msgstr "checksum-device"
5978 #: ../fish/guestfish-actions.pod:676
5981 " checksum-device csumtype device\n"
5986 #: ../fish/guestfish-actions.pod:678
5988 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5989 "device named C<device>. For the types of checksums supported see the L</"
5990 "checksum> command."
5994 #: ../fish/guestfish-actions.pod:682
5995 msgid "checksums-out"
5999 #: ../fish/guestfish-actions.pod:684
6002 " checksums-out csumtype directory (sumsfile|-)\n"
6007 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6009 "This command computes the checksums of all regular files in C<directory> and "
6010 "then emits a list of those checksums to the local output file C<sumsfile>."
6014 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6016 "This can be used for verifying the integrity of a virtual machine. However "
6017 "to be properly secure you should pay attention to the output of the checksum "
6018 "command (it uses the ones from GNU coreutils). In particular when the "
6019 "filename is not printable, coreutils uses a special backslash syntax. For "
6020 "more information, see the GNU coreutils info file."
6024 #: ../fish/guestfish-actions.pod:700
6029 #: ../fish/guestfish-actions.pod:702
6032 " chmod mode path\n"
6037 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6039 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6044 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6046 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6047 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6052 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
6053 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
6054 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
6055 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
6056 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
6057 msgid "The mode actually set is affected by the umask."
6061 #: ../fish/guestfish-actions.pod:713
6066 #: ../fish/guestfish-actions.pod:715
6069 " chown owner group path\n"
6074 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6075 msgid "Change the file owner to C<owner> and group to C<group>."
6079 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
6080 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
6082 "Only numeric uid and gid are supported. If you want to use names, you will "
6083 "need to locate and parse the password file yourself (Augeas support makes "
6084 "this relatively easy)."
6088 #: ../fish/guestfish-actions.pod:723
6093 #: ../fish/guestfish-actions.pod:725
6096 " command 'arguments ...'\n"
6101 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6103 "This call runs a command from the guest filesystem. The filesystem must be "
6104 "mounted, and must contain a compatible operating system (ie. something "
6105 "Linux, with the same or compatible processor architecture)."
6109 #: ../fish/guestfish-actions.pod:732
6111 "The single parameter is an argv-style list of arguments. The first element "
6112 "is the name of the program to run. Subsequent elements are parameters. The "
6113 "list must be non-empty (ie. must contain a program name). Note that the "
6114 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6118 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6119 msgid "The return value is anything printed to I<stdout> by the command."
6123 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6125 "If the command returns a non-zero exit status, then this function returns an "
6126 "error message. The error message string is the content of I<stderr> from "
6131 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6133 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6134 "bin>. If you require a program from another location, you should provide "
6135 "the full path in the first parameter."
6139 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6141 "Shared libraries and data files required by the program must be available on "
6142 "filesystems which are mounted in the correct places. It is the caller's "
6143 "responsibility to ensure all filesystems that are needed are mounted at the "
6148 #: ../fish/guestfish-actions.pod:760
6149 msgid "command-lines"
6153 #: ../fish/guestfish-actions.pod:762
6156 " command-lines 'arguments ...'\n"
6161 #: ../fish/guestfish-actions.pod:764
6163 "This is the same as L</command>, but splits the result into a list of lines."
6167 #: ../fish/guestfish-actions.pod:767
6168 msgid "See also: L</sh-lines>"
6172 #: ../fish/guestfish-actions.pod:772
6177 #: ../fish/guestfish-actions.pod:774
6180 " config qemuparam qemuvalue\n"
6185 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6187 "This can be used to add arbitrary qemu command line parameters of the form "
6188 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6189 "setting some parameters which would interfere with parameters that we use."
6193 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6194 msgid "The first character of C<param> string must be a C<-> (dash)."
6198 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6199 msgid "C<value> can be NULL."
6203 #: ../fish/guestfish-actions.pod:785
6208 #: ../fish/guestfish-actions.pod:787
6211 " copy-size src dest size\n"
6216 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6218 "This command copies exactly C<size> bytes from one source device or file "
6219 "C<src> to another destination device or file C<dest>."
6223 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6225 "Note this will fail if the source is too short or if the destination is not "
6230 #: ../fish/guestfish-actions.pod:795
6235 #: ../fish/guestfish-actions.pod:797
6243 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6245 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6246 "destination filename or destination directory."
6250 #: ../fish/guestfish-actions.pod:802
6255 #: ../fish/guestfish-actions.pod:804
6263 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6265 "This copies a file or directory from C<src> to C<dest> recursively using the "
6270 #: ../fish/guestfish-actions.pod:809
6275 #: ../fish/guestfish-actions.pod:811
6283 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6285 "This command copies from one source device or file C<src> to another "
6286 "destination device or file C<dest>. Normally you would use this to copy to "
6287 "or from a device or partition, for example to duplicate a filesystem."
6291 #: ../fish/guestfish-actions.pod:818
6293 "If the destination is a device, it must be as large or larger than the "
6294 "source file or device, otherwise the copy will fail. This command cannot do "
6295 "partial copies (see L</copy-size>)."
6299 #: ../fish/guestfish-actions.pod:822
6304 #: ../fish/guestfish-actions.pod:824
6314 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6315 msgid "This command runs the C<df> command to report disk space used."
6319 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6321 "This command is mostly useful for interactive sessions. It is I<not> "
6322 "intended that you try to parse the output string. Use L</statvfs> from "
6327 #: ../fish/guestfish-actions.pod:832
6332 #: ../fish/guestfish-actions.pod:834
6342 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6344 "This command runs the C<df -h> command to report disk space used in human-"
6349 #: ../fish/guestfish-actions.pod:843
6354 #: ../fish/guestfish-actions.pod:845
6364 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6366 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6367 "This is sometimes useful for extended debugging of problems."
6371 #: ../fish/guestfish-actions.pod:851
6373 "Another way to get the same information is to enable verbose messages with "
6374 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6375 "before running the program."
6379 #: ../fish/guestfish-actions.pod:856
6384 #: ../fish/guestfish-actions.pod:858
6387 " download remotefilename (filename|-)\n"
6392 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6393 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6395 "Download file C<remotefilename> and save it as C<filename> on the local "
6400 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
6401 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
6402 msgid "C<filename> can also be a named pipe."
6406 #: ../fish/guestfish-actions.pod:865
6407 msgid "See also L</upload>, L</cat>."
6411 #: ../fish/guestfish-actions.pod:869
6412 msgid "download-offset"
6413 msgstr "download-offset"
6416 #: ../fish/guestfish-actions.pod:871
6419 " download-offset remotefilename (filename|-) offset size\n"
6424 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6426 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6427 "region must be within the file or device)."
6431 #: ../fish/guestfish-actions.pod:879
6433 "Note that there is no limit on the amount of data that can be downloaded "
6434 "with this call, unlike with L</pread>, and this call always reads the full "
6435 "amount unless an error occurs."
6439 #: ../fish/guestfish-actions.pod:884
6440 msgid "See also L</download>, L</pread>."
6444 #: ../fish/guestfish-actions.pod:888
6449 #: ../fish/guestfish-actions.pod:890
6452 " drop-caches whattodrop\n"
6457 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6459 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6460 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6461 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6465 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6466 msgid "Setting C<whattodrop> to 3 should drop everything."
6470 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6472 "This automatically calls L<sync(2)> before the operation, so that the "
6473 "maximum guest memory is freed."
6477 #: ../fish/guestfish-actions.pod:902
6482 #: ../fish/guestfish-actions.pod:904
6492 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6494 "This command runs the C<du -s> command to estimate file space usage for "
6499 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6501 "C<path> can be a file or a directory. If C<path> is a directory then the "
6502 "estimate includes the contents of the directory and all subdirectories "
6507 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6509 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6513 #: ../fish/guestfish-actions.pod:916
6518 #: ../fish/guestfish-actions.pod:918
6521 " e2fsck-f device\n"
6526 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6528 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6529 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6534 #: ../fish/guestfish-actions.pod:924
6536 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6537 "should use L</fsck>."
6541 #: ../fish/guestfish-actions.pod:927
6546 #: ../fish/guestfish-actions.pod:929
6549 " echo-daemon 'words ...'\n"
6554 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6556 "This command concatenates the list of C<words> passed with single spaces "
6557 "between them and returns the resulting string."
6561 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6562 msgid "You can use this command to test the connection through to the daemon."
6566 #: ../fish/guestfish-actions.pod:936
6567 msgid "See also L</ping-daemon>."
6571 #: ../fish/guestfish-actions.pod:938
6576 #: ../fish/guestfish-actions.pod:940
6579 " egrep regex path\n"
6584 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6586 "This calls the external C<egrep> program and returns the matching lines."
6590 #: ../fish/guestfish-actions.pod:948
6595 #: ../fish/guestfish-actions.pod:950
6598 " egrepi regex path\n"
6603 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6605 "This calls the external C<egrep -i> program and returns the matching lines."
6609 #: ../fish/guestfish-actions.pod:958
6614 #: ../fish/guestfish-actions.pod:960
6617 " equal file1 file2\n"
6620 " equal файл1 файл2\n"
6624 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6626 "This compares the two files C<file1> and C<file2> and returns true if their "
6627 "content is exactly equal, or false otherwise."
6631 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6632 msgid "The external L<cmp(1)> program is used for the comparison."
6636 #: ../fish/guestfish-actions.pod:967
6641 #: ../fish/guestfish-actions.pod:969
6651 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6653 "This returns C<true> if and only if there is a file, directory (or anything) "
6654 "with the given C<path> name."
6658 #: ../fish/guestfish-actions.pod:974
6659 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6660 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6663 #: ../fish/guestfish-actions.pod:976
6668 #: ../fish/guestfish-actions.pod:978
6671 " fallocate path len\n"
6674 " fallocate шлях довжина\n"
6678 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6679 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6681 "This command preallocates a file (containing zero bytes) named C<path> of "
6682 "size C<len> bytes. If the file exists already, it is overwritten."
6686 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6688 "Do not confuse this with the guestfish-specific C<alloc> command which "
6689 "allocates a file in the host and attaches it as a device."
6693 #: ../fish/guestfish-actions.pod:988
6695 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6700 #: ../fish/guestfish-actions.pod:995
6702 msgstr "fallocate64"
6705 #: ../fish/guestfish-actions.pod:997
6708 " fallocate64 path len\n"
6711 " fallocate64 шлях довжина\n"
6715 #: ../fish/guestfish-actions.pod:1003
6717 "Note that this call allocates disk blocks for the file. To create a sparse "
6718 "file use L</truncate-size> instead."
6722 #: ../fish/guestfish-actions.pod:1006
6724 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6725 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6726 "maximum size of files created through that call to 1GB."
6730 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6732 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6733 "commands which create a file in the host and attach it as a device."
6737 #: ../fish/guestfish-actions.pod:1015
6742 #: ../fish/guestfish-actions.pod:1017
6745 " fgrep pattern path\n"
6748 " fgrep шаблон шлях\n"
6752 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6754 "This calls the external C<fgrep> program and returns the matching lines."
6758 #: ../fish/guestfish-actions.pod:1025
6763 #: ../fish/guestfish-actions.pod:1027
6766 " fgrepi pattern path\n"
6769 " fgrepi шаблон шлях\n"
6773 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6775 "This calls the external C<fgrep -i> program and returns the matching lines."
6779 #: ../fish/guestfish-actions.pod:1035
6784 #: ../fish/guestfish-actions.pod:1037
6794 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6796 "This call uses the standard L<file(1)> command to determine the type or "
6797 "contents of the file."
6801 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6803 "This call will also transparently look inside various types of compressed "
6808 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6810 "The exact command which runs is C<file -zb path>. Note in particular that "
6811 "the filename is not prepended to the output (the I<-b> option)."
6815 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6817 "The output depends on the output of the underlying L<file(1)> command and it "
6818 "can change in future in ways beyond our control. In other words, the output "
6819 "is not guaranteed by the ABI."
6823 #: ../fish/guestfish-actions.pod:1053
6825 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6826 "(etc), L</is-zero>."
6830 #: ../fish/guestfish-actions.pod:1056
6831 msgid "file-architecture"
6832 msgstr "file-architecture"
6835 #: ../fish/guestfish-actions.pod:1058
6838 " file-architecture filename\n"
6841 " file-architecture назва_файла\n"
6845 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6847 "This detects the architecture of the binary C<filename>, and returns it if "
6852 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6853 msgid "Currently defined architectures are:"
6857 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6862 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6864 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6865 "irrespective of the precise processor requirements of the binary."
6869 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6874 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6875 msgid "64 bit x86-64."
6879 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6884 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6885 msgid "32 bit SPARC."
6889 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6894 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6895 msgid "64 bit SPARC V9 and above."
6899 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6904 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6905 msgid "Intel Itanium."
6906 msgstr "Intel Itanium."
6909 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6914 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6915 msgid "32 bit Power PC."
6919 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6924 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6925 msgid "64 bit Power PC."
6929 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6930 msgid "Libguestfs may return other architecture strings in future."
6934 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6935 msgid "The function works on at least the following types of files:"
6939 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6940 msgid "many types of Un*x and Linux binary"
6944 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6945 msgid "many types of Un*x and Linux shared library"
6949 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6950 msgid "Windows Win32 and Win64 binaries"
6954 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6955 msgid "Windows Win32 and Win64 DLLs"
6959 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6960 msgid "Win32 binaries and DLLs return C<i386>."
6964 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6965 msgid "Win64 binaries and DLLs return C<x86_64>."
6969 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6970 msgid "Linux kernel modules"
6974 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6975 msgid "Linux new-style initrd images"
6979 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6980 msgid "some non-x86 Linux vmlinuz kernels"
6984 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6985 msgid "What it can't do currently:"
6989 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6990 msgid "static libraries (libfoo.a)"
6994 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6995 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6999 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
7000 msgid "x86 Linux vmlinuz kernels"
7004 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
7006 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7007 "compressed code, and are horribly hard to unpack. If you want to find the "
7008 "architecture of a kernel, use the architecture of the associated initrd or "
7009 "kernel module(s) instead."
7013 #: ../fish/guestfish-actions.pod:1161
7018 #: ../fish/guestfish-actions.pod:1163
7028 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7029 msgid "This command returns the size of C<file> in bytes."
7033 #: ../fish/guestfish-actions.pod:1167
7035 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7036 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7040 #: ../fish/guestfish-actions.pod:1171
7045 #: ../fish/guestfish-actions.pod:1173
7048 " fill c len path\n"
7053 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7055 "This command creates a new file called C<path>. The initial content of the "
7056 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7061 #: ../fish/guestfish-actions.pod:1179
7063 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7064 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7069 #: ../fish/guestfish-actions.pod:1184
7070 msgid "fill-pattern"
7071 msgstr "fill-pattern"
7074 #: ../fish/guestfish-actions.pod:1186
7077 " fill-pattern pattern len path\n"
7082 #: ../fish/guestfish-actions.pod:1188
7084 "This function is like L</fill> except that it creates a new file of length "
7085 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7086 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7091 #: ../fish/guestfish-actions.pod:1193
7096 #: ../fish/guestfish-actions.pod:1195
7106 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7108 "This command lists out all files and directories, recursively, starting at "
7109 "C<directory>. It is essentially equivalent to running the shell command "
7110 "C<find directory -print> but some post-processing happens on the output, "
7115 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7117 "This returns a list of strings I<without any prefix>. Thus if the directory "
7122 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7132 #: ../fish/guestfish-actions.pod:1209
7133 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7137 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7148 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7149 msgid "If C<directory> is not a directory, then this command returns an error."
7153 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7154 msgid "The returned list is sorted."
7158 #: ../fish/guestfish-actions.pod:1222
7159 msgid "See also L</find0>."
7160 msgstr "Див. також L</find0>."
7163 #: ../fish/guestfish-actions.pod:1227
7168 #: ../fish/guestfish-actions.pod:1229
7171 " find0 directory (files|-)\n"
7174 " find0 каталог (файли|-)\n"
7178 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7180 "This command lists out all files and directories, recursively, starting at "
7181 "C<directory>, placing the resulting list in the external file called "
7186 #: ../fish/guestfish-actions.pod:1235
7188 "This command works the same way as L</find> with the following exceptions:"
7192 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7193 msgid "The resulting list is written to an external file."
7197 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7199 "Items (filenames) in the result are separated by C<\\0> characters. See "
7200 "L<find(1)> option I<-print0>."
7204 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7205 msgid "This command is not limited in the number of names that it can return."
7209 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7210 msgid "The result list is not sorted."
7214 #: ../fish/guestfish-actions.pod:1262
7215 msgid "findfs-label"
7216 msgstr "findfs-label"
7219 #: ../fish/guestfish-actions.pod:1264
7222 " findfs-label label\n"
7225 " findfs-label мітка\n"
7229 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7231 "This command searches the filesystems and returns the one which has the "
7232 "given label. An error is returned if no such filesystem can be found."
7236 #: ../fish/guestfish-actions.pod:1270
7237 msgid "To find the label of a filesystem, use L</vfs-label>."
7238 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7241 #: ../fish/guestfish-actions.pod:1272
7243 msgstr "findfs-uuid"
7246 #: ../fish/guestfish-actions.pod:1274
7249 " findfs-uuid uuid\n"
7252 " findfs-uuid uuid\n"
7256 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7258 "This command searches the filesystems and returns the one which has the "
7259 "given UUID. An error is returned if no such filesystem can be found."
7263 #: ../fish/guestfish-actions.pod:1280
7264 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7265 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7268 #: ../fish/guestfish-actions.pod:1282
7273 #: ../fish/guestfish-actions.pod:1284
7276 " fsck fstype device\n"
7279 " fsck тип_файлової_системи пристрій\n"
7283 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7285 "This runs the filesystem checker (fsck) on C<device> which should have "
7286 "filesystem type C<fstype>."
7290 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7292 "The returned integer is the status. See L<fsck(8)> for the list of status "
7293 "codes from C<fsck>."
7297 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7298 msgid "Multiple status codes can be summed together."
7302 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7304 "A non-zero return code can mean \"success\", for example if errors have been "
7305 "corrected on the filesystem."
7309 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7310 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7314 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7316 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7320 #: ../fish/guestfish-actions.pod:1314
7325 #: ../fish/guestfish-actions.pod:1316
7335 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7337 "Return the additional kernel options which are added to the guest kernel "
7342 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7343 msgid "If C<NULL> then no options are added."
7347 #: ../fish/guestfish-actions.pod:1323
7348 msgid "get-attach-method"
7349 msgstr "get-attach-method"
7352 #: ../fish/guestfish-actions.pod:1325
7355 " get-attach-method\n"
7358 " get-attach-method\n"
7362 #: ../fish/guestfish-actions.pod:1327
7363 msgid "Return the current attach method. See L</set-attach-method>."
7367 #: ../fish/guestfish-actions.pod:1329
7368 msgid "get-autosync"
7369 msgstr "get-autosync"
7372 #: ../fish/guestfish-actions.pod:1331
7382 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7383 msgid "Get the autosync flag."
7387 #: ../fish/guestfish-actions.pod:1335
7392 #: ../fish/guestfish-actions.pod:1337
7402 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7403 msgid "Return the direct appliance mode flag."
7407 #: ../fish/guestfish-actions.pod:1341
7409 msgstr "get-e2label"
7412 #: ../fish/guestfish-actions.pod:1343
7415 " get-e2label device\n"
7418 " get-e2label пристрій\n"
7422 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
7424 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7428 #: ../fish/guestfish-actions.pod:1348
7430 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7435 #: ../fish/guestfish-actions.pod:1355
7440 #: ../fish/guestfish-actions.pod:1357
7443 " get-e2uuid device\n"
7446 " get-e2uuid пристрій\n"
7450 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
7452 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7456 #: ../fish/guestfish-actions.pod:1362
7458 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7463 #: ../fish/guestfish-actions.pod:1369
7465 msgstr "get-memsize"
7468 #: ../fish/guestfish-actions.pod:1371
7478 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7480 "This gets the memory size in megabytes allocated to the qemu subprocess."
7484 #: ../fish/guestfish-actions.pod:1376
7486 "If L</set-memsize> was not called on this handle, and if "
7487 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7488 "value for memsize."
7492 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7493 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7494 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7495 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7497 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7501 #: ../fish/guestfish-actions.pod:1383
7503 msgstr "get-network"
7506 #: ../fish/guestfish-actions.pod:1385
7516 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7517 msgid "This returns the enable network flag."
7521 #: ../fish/guestfish-actions.pod:1389
7526 #: ../fish/guestfish-actions.pod:1391
7536 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7537 msgid "Return the current search path."
7541 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7543 "This is always non-NULL. If it wasn't set already, then this will return "
7548 #: ../fish/guestfish-actions.pod:1398
7553 #: ../fish/guestfish-actions.pod:1400
7561 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7562 msgid "This returns the process group flag."
7566 #: ../fish/guestfish-actions.pod:1404
7571 #: ../fish/guestfish-actions.pod:1406
7576 #: ../fish/guestfish-actions.pod:1408
7586 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7588 "Return the process ID of the qemu subprocess. If there is no qemu "
7589 "subprocess, then this will return an error."
7593 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7594 msgid "This is an internal call used for debugging and testing."
7598 #: ../fish/guestfish-actions.pod:1415
7603 #: ../fish/guestfish-actions.pod:1417
7613 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7614 msgid "Return the current qemu binary."
7618 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7620 "This is always non-NULL. If it wasn't set already, then this will return "
7621 "the default qemu binary name."
7625 #: ../fish/guestfish-actions.pod:1424
7626 msgid "get-recovery-proc"
7627 msgstr "get-recovery-proc"
7630 #: ../fish/guestfish-actions.pod:1426
7633 " get-recovery-proc\n"
7636 " get-recovery-proc\n"
7640 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7641 msgid "Return the recovery process enabled flag."
7645 #: ../fish/guestfish-actions.pod:1430
7647 msgstr "get-selinux"
7650 #: ../fish/guestfish-actions.pod:1432
7660 #: ../fish/guestfish-actions.pod:1434
7662 "This returns the current setting of the selinux flag which is passed to the "
7663 "appliance at boot time. See L</set-selinux>."
7667 #: ../fish/guestfish-actions.pod:1440
7672 #: ../fish/guestfish-actions.pod:1442
7682 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7684 "This returns the current state as an opaque integer. This is only useful "
7685 "for printing debug and internal error messages."
7689 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7690 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7691 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7692 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7693 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7694 msgid "For more information on states, see L<guestfs(3)>."
7698 #: ../fish/guestfish-actions.pod:1449
7703 #: ../fish/guestfish-actions.pod:1451
7713 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7714 msgid "Return the command trace flag."
7718 #: ../fish/guestfish-actions.pod:1455
7723 #: ../fish/guestfish-actions.pod:1457
7733 #: ../fish/guestfish-actions.pod:1459
7735 "Return the current umask. By default the umask is C<022> unless it has been "
7736 "set by calling L</umask>."
7740 #: ../fish/guestfish-actions.pod:1462
7742 msgstr "get-verbose"
7745 #: ../fish/guestfish-actions.pod:1464
7755 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7756 msgid "This returns the verbose messages flag."
7760 #: ../fish/guestfish-actions.pod:1468
7765 #: ../fish/guestfish-actions.pod:1470
7775 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7776 msgid "This gets the SELinux security context of the daemon."
7780 #: ../fish/guestfish-actions.pod:1474
7781 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7785 #: ../fish/guestfish-actions.pod:1477
7790 #: ../fish/guestfish-actions.pod:1479
7793 " getxattr path name\n"
7796 " getxattr шлях назва\n"
7800 #: ../fish/guestfish-actions.pod:1481
7802 "Get a single extended attribute from file C<path> named C<name>. This call "
7803 "follows symlinks. If you want to lookup an extended attribute for the "
7804 "symlink itself, use L</lgetxattr>."
7808 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7810 "Normally it is better to get all extended attributes from a file in one go "
7811 "by calling L</getxattrs>. However some Linux filesystem implementations are "
7812 "buggy and do not provide a way to list out attributes. For these "
7813 "filesystems (notably ntfs-3g) you have to know the names of the extended "
7814 "attributes you want in advance and call this function."
7818 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7819 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7821 "Extended attribute values are blobs of binary data. If there is no extended "
7822 "attribute named C<name>, this returns an error."
7826 #: ../fish/guestfish-actions.pod:1495
7827 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7828 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7831 #: ../fish/guestfish-actions.pod:1497
7836 #: ../fish/guestfish-actions.pod:1499
7846 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7848 "This call lists the extended attributes of the file or directory C<path>."
7852 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7854 "At the system call level, this is a combination of the L<listxattr(2)> and "
7855 "L<getxattr(2)> calls."
7859 #: ../fish/guestfish-actions.pod:1507
7860 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7861 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7864 #: ../fish/guestfish-actions.pod:1509
7866 msgstr "glob-expand"
7869 #: ../fish/guestfish-actions.pod:1511
7872 " glob-expand pattern\n"
7875 " glob-expand шаблон\n"
7879 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7881 "This command searches for all the pathnames matching C<pattern> according to "
7882 "the wildcard expansion rules used by the shell."
7886 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7888 "If no paths match, then this returns an empty list (note: not an error)."
7892 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7894 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7895 "GLOB_BRACE>. See that manual page for more details."
7899 #: ../fish/guestfish-actions.pod:1524
7904 #: ../fish/guestfish-actions.pod:1526
7907 " grep regex path\n"
7910 " grepi формальний_вираз шлях\n"
7914 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7915 msgid "This calls the external C<grep> program and returns the matching lines."
7919 #: ../fish/guestfish-actions.pod:1534
7924 #: ../fish/guestfish-actions.pod:1536
7927 " grepi regex path\n"
7930 " grepi формальний_вираз шлях\n"
7934 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7936 "This calls the external C<grep -i> program and returns the matching lines."
7940 #: ../fish/guestfish-actions.pod:1544
7941 msgid "grub-install"
7942 msgstr "grub-install"
7945 #: ../fish/guestfish-actions.pod:1546
7948 " grub-install root device\n"
7951 " grub-install кореневий пристрій\n"
7955 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7957 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7958 "the root directory being C<root>."
7962 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7964 "Note: If grub-install reports the error \"No suitable drive was found in the "
7965 "generated device map.\" it may be that you need to create a C</boot/grub/"
7966 "device.map> file first that contains the mapping between grub device names "
7967 "and Linux device names. It is usually sufficient to create a file "
7972 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7980 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7981 msgid "replacing C</dev/vda> with the name of the installation device."
7985 #: ../fish/guestfish-actions.pod:1562
7990 #: ../fish/guestfish-actions.pod:1564
8000 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
8002 "This command returns up to the first 10 lines of a file as a list of strings."
8006 #: ../fish/guestfish-actions.pod:1572
8011 #: ../fish/guestfish-actions.pod:1574
8014 " head-n nrlines path\n"
8019 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
8021 "If the parameter C<nrlines> is a positive number, this returns the first "
8022 "C<nrlines> lines of the file C<path>."
8026 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
8028 "If the parameter C<nrlines> is a negative number, this returns lines from "
8029 "the file C<path>, excluding the last C<nrlines> lines."
8033 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
8034 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
8035 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8039 #: ../fish/guestfish-actions.pod:1587
8044 #: ../fish/guestfish-actions.pod:1589
8054 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
8056 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8057 "readable, canonical hex dump of the file."
8061 #: ../fish/guestfish-actions.pod:1597
8066 #: ../fish/guestfish-actions.pod:1599
8069 " initrd-cat initrdpath filename\n"
8072 " initrd-cat шлях_initrd назва_файла\n"
8076 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
8078 "This command unpacks the file C<filename> from the initrd file called "
8079 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8084 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
8086 "For example, in guestfish you could use the following command to examine the "
8087 "boot script (usually called C</init>) contained in a Linux initrd or "
8092 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
8095 " initrd-cat /boot/initrd-<version>.img init\n"
8100 #: ../fish/guestfish-actions.pod:1611
8101 msgid "See also L</initrd-list>."
8102 msgstr "Див. також L</initrd-list>."
8105 #: ../fish/guestfish-actions.pod:1616
8107 msgstr "initrd-list"
8110 #: ../fish/guestfish-actions.pod:1618
8113 " initrd-list path\n"
8116 " initrd-list шлях\n"
8120 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
8121 msgid "This command lists out files contained in an initrd."
8125 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
8127 "The files are listed without any initial C</> character. The files are "
8128 "listed in the order they appear (not necessarily alphabetical). Directory "
8129 "names are listed as separate items."
8133 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
8135 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8136 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8141 #: ../fish/guestfish-actions.pod:1630
8142 msgid "inotify-add-watch"
8143 msgstr "inotify-add-watch"
8146 #: ../fish/guestfish-actions.pod:1632
8149 " inotify-add-watch path mask\n"
8152 " inotify-add-watch шлях маска\n"
8156 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
8157 msgid "Watch C<path> for the events listed in C<mask>."
8161 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
8163 "Note that if C<path> is a directory then events within that directory are "
8164 "watched, but this does I<not> happen recursively (in subdirectories)."
8168 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
8170 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8171 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8175 #: ../fish/guestfish-actions.pod:1644
8176 msgid "inotify-close"
8177 msgstr "inotify-close"
8180 #: ../fish/guestfish-actions.pod:1646
8190 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
8192 "This closes the inotify handle which was previously opened by inotify_init. "
8193 "It removes all watches, throws away any pending events, and deallocates all "
8198 #: ../fish/guestfish-actions.pod:1652
8199 msgid "inotify-files"
8200 msgstr "inotify-files"
8203 #: ../fish/guestfish-actions.pod:1654
8213 #: ../fish/guestfish-actions.pod:1656
8215 "This function is a helpful wrapper around L</inotify-read> which just "
8216 "returns a list of pathnames of objects that were touched. The returned "
8217 "pathnames are sorted and deduplicated."
8221 #: ../fish/guestfish-actions.pod:1660
8222 msgid "inotify-init"
8223 msgstr "inotify-init"
8226 #: ../fish/guestfish-actions.pod:1662
8229 " inotify-init maxevents\n"
8234 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
8236 "This command creates a new inotify handle. The inotify subsystem can be "
8237 "used to notify events which happen to objects in the guest filesystem."
8241 #: ../fish/guestfish-actions.pod:1668
8243 "C<maxevents> is the maximum number of events which will be queued up between "
8244 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8245 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8246 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8247 "but records the fact that it threw them away by setting a flag "
8248 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8252 #: ../fish/guestfish-actions.pod:1678
8254 "Before any events are generated, you have to add some watches to the "
8255 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8256 "L</inotify-watch-all>."
8260 #: ../fish/guestfish-actions.pod:1684
8262 "Queued up events should be read periodically by calling L</inotify-read> (or "
8263 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8264 "If you don't read the events out often enough then you risk the internal "
8265 "queue overflowing."
8269 #: ../fish/guestfish-actions.pod:1691
8271 "The handle should be closed after use by calling L</inotify-close>. This "
8272 "also removes any watches automatically."
8276 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
8278 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8279 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8280 "that there is one global inotify handle per libguestfs instance."
8284 #: ../fish/guestfish-actions.pod:1700
8285 msgid "inotify-read"
8286 msgstr "inotify-read"
8289 #: ../fish/guestfish-actions.pod:1702
8299 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8301 "Return the complete queue of events that have happened since the previous "
8306 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
8307 msgid "If no events have happened, this returns an empty list."
8311 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
8313 "I<Note>: In order to make sure that all events have been read, you must call "
8314 "this function repeatedly until it returns an empty list. The reason is that "
8315 "the call will read events up to the maximum appliance-to-host message size "
8316 "and leave remaining events in the queue."
8320 #: ../fish/guestfish-actions.pod:1715
8321 msgid "inotify-rm-watch"
8322 msgstr "inotify-rm-watch"
8325 #: ../fish/guestfish-actions.pod:1717
8328 " inotify-rm-watch wd\n"
8333 #: ../fish/guestfish-actions.pod:1719
8334 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8338 #: ../fish/guestfish-actions.pod:1722
8339 msgid "inspect-get-arch"
8340 msgstr "inspect-get-arch"
8343 #: ../fish/guestfish-actions.pod:1724
8346 " inspect-get-arch root\n"
8349 " inspect-get-arch корінь\n"
8353 #: ../fish/guestfish-actions.pod:1726
8355 "This returns the architecture of the inspected operating system. The "
8356 "possible return values are listed under L</file-architecture>."
8360 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
8362 "If the architecture could not be determined, then the string C<unknown> is "
8367 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
8368 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
8369 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
8370 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
8371 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
8372 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
8373 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
8374 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
8375 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
8376 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
8377 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
8378 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
8379 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
8380 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
8381 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
8382 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
8383 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
8384 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8388 #: ../fish/guestfish-actions.pod:1735
8389 msgid "inspect-get-distro"
8390 msgstr "inspect-get-distro"
8393 #: ../fish/guestfish-actions.pod:1737
8396 " inspect-get-distro root\n"
8399 " inspect-get-distro корінь\n"
8403 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
8405 "This returns the distro (distribution) of the inspected operating system."
8409 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
8410 msgid "Currently defined distros are:"
8414 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
8415 msgid "\"archlinux\""
8416 msgstr "\"archlinux\""
8419 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
8421 msgstr "Arch Linux."
8424 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
8429 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
8434 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
8439 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
8444 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
8449 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
8454 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
8459 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8464 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
8465 msgid "\"linuxmint\""
8466 msgstr "\"linuxmint\""
8469 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8471 msgstr "Linux Mint."
8474 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8475 msgid "\"mandriva\""
8476 msgstr "\"mandriva\""
8479 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8484 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8489 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8494 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8499 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8504 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8505 msgid "\"redhat-based\""
8506 msgstr "\"redhat-based\""
8509 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8510 msgid "Some Red Hat-derived distro."
8511 msgstr "Дистрибутив, що походить від Red Hat."
8514 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8519 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8520 msgid "Red Hat Enterprise Linux."
8524 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8525 msgid "\"scientificlinux\""
8529 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8530 msgid "Scientific Linux."
8534 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8535 msgid "\"slackware\""
8539 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8544 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8549 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8554 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8555 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8556 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8558 msgstr "\"unknown\""
8561 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8562 msgid "The distro could not be determined."
8563 msgstr "Дистрибутив, тип якого не вдалося визначити."
8566 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8567 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8569 msgstr "\"windows\""
8572 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8574 "Windows does not have distributions. This string is returned if the OS type "
8579 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8580 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8581 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8583 "Future versions of libguestfs may return other strings here. The caller "
8584 "should be prepared to handle any string."
8588 #: ../fish/guestfish-actions.pod:1818
8589 msgid "inspect-get-drive-mappings"
8593 #: ../fish/guestfish-actions.pod:1820
8596 " inspect-get-drive-mappings root\n"
8601 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8603 "This call is useful for Windows which uses a primitive system of assigning "
8604 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8605 "Windows Registry to find out how disks/partitions are mapped to drive "
8606 "letters, and returns a hash table as in the example below:"
8610 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8620 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8622 "Note that keys are drive letters. For Windows, the key is case insensitive "
8623 "and just contains the drive letter, without the customary colon separator "
8628 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8630 "In future we may support other operating systems that also used drive "
8631 "letters, but the keys for those might not be case insensitive and might be "
8632 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
8637 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8639 "For Windows guests, currently only hard drive mappings are returned. "
8640 "Removable disks (eg. DVD-ROMs) are ignored."
8644 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8646 "For guests that do not use drive mappings, or if the drive mappings could "
8647 "not be determined, this returns an empty hash table."
8651 #: ../fish/guestfish-actions.pod:1847
8653 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8654 "get-mountpoints>, L</inspect-get-filesystems>."
8658 #: ../fish/guestfish-actions.pod:1851
8659 msgid "inspect-get-filesystems"
8660 msgstr "inspect-get-filesystems"
8663 #: ../fish/guestfish-actions.pod:1853
8666 " inspect-get-filesystems root\n"
8669 " inspect-get-filesystems корінь\n"
8673 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8675 "This returns a list of all the filesystems that we think are associated with "
8676 "this operating system. This includes the root filesystem, other ordinary "
8677 "filesystems, and non-mounted devices like swap partitions."
8681 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8683 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8684 "to be shared between operating systems."
8688 #: ../fish/guestfish-actions.pod:1863
8690 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8695 #: ../fish/guestfish-actions.pod:1866
8696 msgid "inspect-get-format"
8697 msgstr "inspect-get-format"
8700 #: ../fish/guestfish-actions.pod:1868
8703 " inspect-get-format root\n"
8706 " inspect-get-format корінь\n"
8710 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8712 "This returns the format of the inspected operating system. You can use it "
8713 "to detect install images, live CDs and similar."
8717 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8718 msgid "Currently defined formats are:"
8722 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8723 msgid "\"installed\""
8724 msgstr "\"installed\""
8727 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8728 msgid "This is an installed operating system."
8729 msgstr "Це встановлена операційна система."
8732 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8733 msgid "\"installer\""
8737 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8739 "The disk image being inspected is not an installed operating system, but a "
8740 "I<bootable> install disk, live CD, or similar."
8744 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8745 msgid "The format of this disk image is not known."
8749 #: ../fish/guestfish-actions.pod:1897
8750 msgid "inspect-get-hostname"
8751 msgstr "inspect-get-hostname"
8754 #: ../fish/guestfish-actions.pod:1899
8757 " inspect-get-hostname root\n"
8760 " inspect-get-hostname корінь\n"
8764 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8766 "This function returns the hostname of the operating system as found by "
8767 "inspection of the guest's configuration files."
8771 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8773 "If the hostname could not be determined, then the string C<unknown> is "
8778 #: ../fish/guestfish-actions.pod:1909
8779 msgid "inspect-get-icon"
8783 #: ../fish/guestfish-actions.pod:1911
8786 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8791 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8793 "This function returns an icon corresponding to the inspected operating "
8794 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
8795 "to PNG if necessary)."
8799 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8801 "If it was not possible to get an icon this function returns a zero-length "
8802 "(non-NULL) buffer. I<Callers must check for this case>."
8806 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8808 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8809 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8810 "this file will be returned. You can disable favicons by passing the "
8811 "optional C<favicon> boolean as false (default is true)."
8815 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8817 "If finding the favicon fails, then we look in other places in the guest for "
8822 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8824 "If the optional C<highquality> boolean is true then only high quality icons "
8825 "are returned, which means only icons of high resolution with an alpha "
8826 "channel. The default (false) is to return any icon we can, even if it is of "
8827 "substandard quality."
8831 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8833 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8834 "before you call this, since it needs to read information from the guest "
8835 "filesystem during the call."
8839 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8841 "B<Security:> The icon data comes from the untrusted guest, and should be "
8842 "treated with caution. PNG files have been known to contain exploits. "
8843 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8844 "trying to process or display the icon."
8848 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8850 "The PNG image returned can be any size. It might not be square. Libguestfs "
8851 "tries to return the largest, highest quality icon available. The "
8852 "application must scale the icon to the required size."
8856 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8858 "Extracting icons from Windows guests requires the external C<wrestool> "
8859 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8860 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
8861 "installed separately."
8865 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8867 "Operating system icons are usually trademarks. Seek legal advice before "
8868 "using trademarks in applications."
8872 #: ../fish/guestfish-actions.pod:1975
8873 msgid "inspect-get-major-version"
8874 msgstr "inspect-get-major-version"
8877 #: ../fish/guestfish-actions.pod:1977
8880 " inspect-get-major-version root\n"
8883 " inspect-get-major-version корінь\n"
8887 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8889 "This returns the major version number of the inspected operating system."
8893 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8895 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8896 "popular public names used by the operating system. Notably the operating "
8897 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8898 "1). You can find out the real versions corresponding to releases of Windows "
8899 "by consulting Wikipedia or MSDN."
8903 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8904 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8905 msgid "If the version could not be determined, then C<0> is returned."
8909 #: ../fish/guestfish-actions.pod:1993
8910 msgid "inspect-get-minor-version"
8911 msgstr "inspect-get-minor-version"
8914 #: ../fish/guestfish-actions.pod:1995
8917 " inspect-get-minor-version root\n"
8920 " inspect-get-minor-version корінь\n"
8924 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8926 "This returns the minor version number of the inspected operating system."
8930 #: ../fish/guestfish-actions.pod:2002
8932 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8933 "get-major-version>."
8937 #: ../fish/guestfish-actions.pod:2005
8938 msgid "inspect-get-mountpoints"
8939 msgstr "inspect-get-mountpoints"
8942 #: ../fish/guestfish-actions.pod:2007
8945 " inspect-get-mountpoints root\n"
8948 " inspect-get-mountpoints корінь\n"
8952 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8954 "This returns a hash of where we think the filesystems associated with this "
8955 "operating system should be mounted. Callers should note that this is at "
8956 "best an educated guess made by reading configuration files such as C</etc/"
8957 "fstab>. I<In particular note> that this may return filesystems which are "
8958 "non-existent or not mountable and callers should be prepared to handle or "
8959 "ignore failures if they try to mount them."
8963 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8965 "Each element in the returned hashtable has a key which is the path of the "
8966 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8967 "mounted there (eg. C</dev/sda1>)."
8971 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8973 "Non-mounted devices such as swap devices are I<not> returned in this list."
8977 #: ../fish/guestfish-actions.pod:2026
8979 "For operating systems like Windows which still use drive letters, this call "
8980 "will only return an entry for the first drive \"mounted on\" C</>. For "
8981 "information about the mapping of drive letters to partitions, see L</inspect-"
8982 "get-drive-mappings>."
8986 #: ../fish/guestfish-actions.pod:2032
8988 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8993 #: ../fish/guestfish-actions.pod:2035
8994 msgid "inspect-get-package-format"
8995 msgstr "inspect-get-package-format"
8998 #: ../fish/guestfish-actions.pod:2037
9001 " inspect-get-package-format root\n"
9004 " inspect-get-package-format корінь\n"
9008 #: ../fish/guestfish-actions.pod:2039
9010 "This function and L</inspect-get-package-management> return the package "
9011 "format and package management tool used by the inspected operating system. "
9012 "For example for Fedora these functions would return C<rpm> (package format) "
9013 "and C<yum> (package management)."
9017 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
9019 "This returns the string C<unknown> if we could not determine the package "
9020 "format I<or> if the operating system does not have a real packaging system "
9025 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
9027 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9028 "Future versions of libguestfs may return other strings."
9032 #: ../fish/guestfish-actions.pod:2054
9033 msgid "inspect-get-package-management"
9034 msgstr "inspect-get-package-management"
9037 #: ../fish/guestfish-actions.pod:2056
9040 " inspect-get-package-management root\n"
9043 " inspect-get-package-management корінь\n"
9047 #: ../fish/guestfish-actions.pod:2058
9049 "L</inspect-get-package-format> and this function return the package format "
9050 "and package management tool used by the inspected operating system. For "
9051 "example for Fedora these functions would return C<rpm> (package format) and "
9052 "C<yum> (package management)."
9056 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
9058 "This returns the string C<unknown> if we could not determine the package "
9059 "management tool I<or> if the operating system does not have a real packaging "
9060 "system (eg. Windows)."
9064 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
9066 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9067 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9068 "libguestfs may return other strings."
9072 #: ../fish/guestfish-actions.pod:2075
9073 msgid "inspect-get-product-name"
9074 msgstr "inspect-get-product-name"
9077 #: ../fish/guestfish-actions.pod:2077
9080 " inspect-get-product-name root\n"
9083 " inspect-get-product-name корінь\n"
9087 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9089 "This returns the product name of the inspected operating system. The "
9090 "product name is generally some freeform string which can be displayed to the "
9091 "user, but should not be parsed by programs."
9095 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
9097 "If the product name could not be determined, then the string C<unknown> is "
9102 #: ../fish/guestfish-actions.pod:2089
9103 msgid "inspect-get-product-variant"
9107 #: ../fish/guestfish-actions.pod:2091
9110 " inspect-get-product-variant root\n"
9115 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
9116 msgid "This returns the product variant of the inspected operating system."
9120 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
9122 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9123 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9124 "is usually a string such as C<Client> or C<Server> (other values are "
9125 "possible). This can be used to distinguish consumer and enterprise versions "
9126 "of Windows that have the same version number (for example, Windows 7 and "
9127 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9128 "the latter is C<Server>)."
9132 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
9134 "For enterprise Linux guests, in future we intend this to return the product "
9135 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9136 "implemented at present."
9140 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
9142 "If the product variant could not be determined, then the string C<unknown> "
9147 #: ../fish/guestfish-actions.pod:2112
9149 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9150 "get-product-name>, L</inspect-get-major-version>."
9154 #: ../fish/guestfish-actions.pod:2116
9155 msgid "inspect-get-roots"
9156 msgstr "inspect-get-roots"
9159 #: ../fish/guestfish-actions.pod:2118
9162 " inspect-get-roots\n"
9165 " inspect-get-roots\n"
9169 #: ../fish/guestfish-actions.pod:2120
9171 "This function is a convenient way to get the list of root devices, as "
9172 "returned from a previous call to L</inspect-os>, but without redoing the "
9173 "whole inspection process."
9177 #: ../fish/guestfish-actions.pod:2124
9179 "This returns an empty list if either no root devices were found or the "
9180 "caller has not called L</inspect-os>."
9184 #: ../fish/guestfish-actions.pod:2129
9185 msgid "inspect-get-type"
9186 msgstr "inspect-get-type"
9189 #: ../fish/guestfish-actions.pod:2131
9192 " inspect-get-type root\n"
9195 " inspect-get-type корінь\n"
9199 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9201 "This returns the type of the inspected operating system. Currently defined "
9206 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
9211 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
9212 msgid "Any Linux-based operating system."
9216 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
9217 msgid "Any Microsoft Windows operating system."
9221 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
9223 msgstr "\"freebsd\""
9226 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
9231 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
9232 msgid "The operating system type could not be determined."
9236 #: ../fish/guestfish-actions.pod:2161
9237 msgid "inspect-get-windows-current-control-set"
9241 #: ../fish/guestfish-actions.pod:2163
9244 " inspect-get-windows-current-control-set root\n"
9249 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
9251 "This returns the Windows CurrentControlSet of the inspected guest. The "
9252 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9256 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
9258 "This call assumes that the guest is Windows and that the Registry could be "
9259 "examined by inspection. If this is not the case then an error is returned."
9263 #: ../fish/guestfish-actions.pod:2174
9264 msgid "inspect-get-windows-systemroot"
9265 msgstr "inspect-get-windows-systemroot"
9268 #: ../fish/guestfish-actions.pod:2176
9271 " inspect-get-windows-systemroot root\n"
9274 " inspect-get-windows-systemroot корінь\n"
9278 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
9280 "This returns the Windows systemroot of the inspected guest. The systemroot "
9281 "is a directory path such as C</WINDOWS>."
9285 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
9287 "This call assumes that the guest is Windows and that the systemroot could be "
9288 "determined by inspection. If this is not the case then an error is returned."
9292 #: ../fish/guestfish-actions.pod:2187
9293 msgid "inspect-is-live"
9294 msgstr "inspect-is-live"
9297 #: ../fish/guestfish-actions.pod:2189
9300 " inspect-is-live root\n"
9303 " inspect-is-live корінь\n"
9307 #: ../fish/guestfish-actions.pod:2191
9309 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9310 "then this returns true if a live image was detected on the disk."
9314 #: ../fish/guestfish-actions.pod:2197
9315 msgid "inspect-is-multipart"
9316 msgstr "inspect-is-multipart"
9319 #: ../fish/guestfish-actions.pod:2199
9322 " inspect-is-multipart root\n"
9325 " inspect-is-multipart корінь\n"
9329 #: ../fish/guestfish-actions.pod:2201
9331 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9332 "then this returns true if the disk is part of a set."
9336 #: ../fish/guestfish-actions.pod:2207
9337 msgid "inspect-is-netinst"
9338 msgstr "inspect-is-netinst"
9341 #: ../fish/guestfish-actions.pod:2209
9344 " inspect-is-netinst root\n"
9347 " inspect-is-netinst корінь\n"
9351 #: ../fish/guestfish-actions.pod:2211
9353 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9354 "then this returns true if the disk is a network installer, ie. not a self-"
9355 "contained install CD but one which is likely to require network access to "
9356 "complete the install."
9360 #: ../fish/guestfish-actions.pod:2219
9361 msgid "inspect-list-applications"
9362 msgstr "inspect-list-applications"
9365 #: ../fish/guestfish-actions.pod:2221
9368 " inspect-list-applications root\n"
9371 " inspect-list-applications кореневий_каталог\n"
9375 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
9376 msgid "Return the list of applications installed in the operating system."
9380 #: ../fish/guestfish-actions.pod:2225
9382 "I<Note:> This call works differently from other parts of the inspection "
9383 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9384 "then mount up the disks, before calling this. Listing applications is a "
9385 "significantly more difficult operation which requires access to the full "
9386 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9387 "are just returning data cached in the libguestfs handle, this call actually "
9388 "reads parts of the mounted filesystems during the call."
9392 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
9394 "This returns an empty list if the inspection code was not able to determine "
9395 "the list of applications."
9399 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
9400 msgid "The application structure contains the following fields:"
9404 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9406 msgstr "C<app_name>"
9409 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9411 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9412 "guests, this is the package name."
9416 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9417 msgid "C<app_display_name>"
9418 msgstr "C<app_display_name>"
9421 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9423 "The display name of the application, sometimes localized to the install "
9424 "language of the guest operating system."
9428 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9430 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9431 "to display something can use C<app_name> instead."
9435 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9436 msgid "C<app_epoch>"
9437 msgstr "C<app_epoch>"
9440 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9442 "For package managers which use epochs, this contains the epoch of the "
9443 "package (an integer). If unavailable, this is returned as C<0>."
9447 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9448 msgid "C<app_version>"
9449 msgstr "C<app_version>"
9452 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9454 "The version string of the application or package. If unavailable this is "
9455 "returned as an empty string C<\"\">."
9459 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
9460 msgid "C<app_release>"
9461 msgstr "C<app_release>"
9464 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
9466 "The release string of the application or package, for package managers that "
9467 "use this. If unavailable this is returned as an empty string C<\"\">."
9471 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9472 msgid "C<app_install_path>"
9473 msgstr "C<app_install_path>"
9476 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9478 "The installation path of the application (on operating systems such as "
9479 "Windows which use installation paths). This path is in the format used by "
9480 "the guest operating system, it is not a libguestfs path."
9484 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9485 msgid "If unavailable this is returned as an empty string C<\"\">."
9489 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9490 msgid "C<app_trans_path>"
9491 msgstr "C<app_trans_path>"
9494 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9496 "The install path translated into a libguestfs path. If unavailable this is "
9497 "returned as an empty string C<\"\">."
9501 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
9502 msgid "C<app_publisher>"
9503 msgstr "C<app_publisher>"
9506 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9508 "The name of the publisher of the application, for package managers that use "
9509 "this. If unavailable this is returned as an empty string C<\"\">."
9513 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9518 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9520 "The URL (eg. upstream URL) of the application. If unavailable this is "
9521 "returned as an empty string C<\"\">."
9525 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9526 msgid "C<app_source_package>"
9527 msgstr "C<app_source_package>"
9530 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9532 "For packaging systems which support this, the name of the source package. "
9533 "If unavailable this is returned as an empty string C<\"\">."
9537 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9538 msgid "C<app_summary>"
9539 msgstr "C<app_summary>"
9542 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9544 "A short (usually one line) description of the application or package. If "
9545 "unavailable this is returned as an empty string C<\"\">."
9549 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9550 msgid "C<app_description>"
9551 msgstr "C<app_description>"
9554 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9556 "A longer description of the application or package. If unavailable this is "
9557 "returned as an empty string C<\"\">."
9561 #: ../fish/guestfish-actions.pod:2315
9566 #: ../fish/guestfish-actions.pod:2317
9576 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9578 "This function uses other libguestfs functions and certain heuristics to "
9579 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9580 "for operating systems."
9584 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9585 msgid "The list returned is empty if no operating systems were found."
9589 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9591 "If one operating system was found, then this returns a list with a single "
9592 "element, which is the name of the root filesystem of this operating system. "
9593 "It is also possible for this function to return a list containing more than "
9594 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9595 "element being the root filesystem of one of the operating systems."
9599 #: ../fish/guestfish-actions.pod:2332
9601 "You can pass the root string(s) returned to other L</inspect-get-*> "
9602 "functions in order to query further information about each operating system, "
9603 "such as the name and version."
9607 #: ../fish/guestfish-actions.pod:2337
9609 "This function uses other libguestfs features such as L</mount-ro> and L</"
9610 "umount-all> in order to mount and unmount filesystems and look at the "
9611 "contents. This should be called with no disks currently mounted. The "
9612 "function may also use Augeas, so any existing Augeas handle will be closed."
9616 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9618 "This function cannot decrypt encrypted disks. The caller must do that first "
9619 "(supplying the necessary keys) if the disk is encrypted."
9623 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9624 #: ../fish/guestfish-actions.pod:2606
9625 msgid "See also L</list-filesystems>."
9626 msgstr "Див. також L</list-filesystems>."
9629 #: ../fish/guestfish-actions.pod:2351
9631 msgstr "is-blockdev"
9634 #: ../fish/guestfish-actions.pod:2353
9637 " is-blockdev path\n"
9640 " is-blockdev шлях\n"
9644 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9646 "This returns C<true> if and only if there is a block device with the given "
9651 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9652 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9653 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9654 #: ../fish/guestfish-actions.pod:2457
9655 msgid "See also L</stat>."
9656 msgstr "Див. також L</stat>."
9659 #: ../fish/guestfish-actions.pod:2360
9664 #: ../fish/guestfish-actions.pod:2362
9674 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9676 "This returns true iff this handle is busy processing a command (in the "
9681 #: ../fish/guestfish-actions.pod:2369
9686 #: ../fish/guestfish-actions.pod:2371
9689 " is-chardev path\n"
9692 " is-chardev шлях\n"
9696 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9698 "This returns C<true> if and only if there is a character device with the "
9699 "given C<path> name."
9703 #: ../fish/guestfish-actions.pod:2378
9708 #: ../fish/guestfish-actions.pod:2380
9718 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9720 "This returns true iff this handle is being configured (in the C<CONFIG> "
9725 #: ../fish/guestfish-actions.pod:2387
9730 #: ../fish/guestfish-actions.pod:2389
9740 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9742 "This returns C<true> if and only if there is a directory with the given "
9743 "C<path> name. Note that it returns false for other objects like files."
9747 #: ../fish/guestfish-actions.pod:2397
9752 #: ../fish/guestfish-actions.pod:2399
9762 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9764 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
9765 "given C<path> name."
9769 #: ../fish/guestfish-actions.pod:2406
9774 #: ../fish/guestfish-actions.pod:2408
9784 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9786 "This returns C<true> if and only if there is a regular file with the given "
9787 "C<path> name. Note that it returns false for other objects like directories."
9791 #: ../fish/guestfish-actions.pod:2416
9792 msgid "is-launching"
9793 msgstr "is-launching"
9796 #: ../fish/guestfish-actions.pod:2418
9806 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9808 "This returns true iff this handle is launching the subprocess (in the "
9809 "C<LAUNCHING> state)."
9813 #: ../fish/guestfish-actions.pod:2425
9818 #: ../fish/guestfish-actions.pod:2427
9828 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9830 "This command tests whether C<device> is a logical volume, and returns true "
9831 "iff this is the case."
9835 #: ../fish/guestfish-actions.pod:2432
9840 #: ../fish/guestfish-actions.pod:2434
9850 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9852 "This returns true iff this handle is ready to accept commands (in the "
9857 #: ../fish/guestfish-actions.pod:2441
9862 #: ../fish/guestfish-actions.pod:2443
9872 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9874 "This returns C<true> if and only if there is a Unix domain socket with the "
9875 "given C<path> name."
9879 #: ../fish/guestfish-actions.pod:2450
9884 #: ../fish/guestfish-actions.pod:2452
9887 " is-symlink path\n"
9890 " is-symlink шлях\n"
9894 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9896 "This returns C<true> if and only if there is a symbolic link with the given "
9901 #: ../fish/guestfish-actions.pod:2459
9906 #: ../fish/guestfish-actions.pod:2461
9914 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9916 "This returns true iff the file exists and the file is empty or it contains "
9921 #: ../fish/guestfish-actions.pod:2466
9922 msgid "is-zero-device"
9926 #: ../fish/guestfish-actions.pod:2468
9929 " is-zero-device device\n"
9934 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9935 msgid "This returns true iff the device exists and contains all zero bytes."
9939 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9940 msgid "Note that for large devices this can take a long time to run."
9944 #: ../fish/guestfish-actions.pod:2474
9945 msgid "kill-subprocess"
9946 msgstr "kill-subprocess"
9949 #: ../fish/guestfish-actions.pod:2476
9952 " kill-subprocess\n"
9955 " kill-subprocess\n"
9959 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9960 msgid "This kills the qemu subprocess. You should never need to call this."
9964 #: ../fish/guestfish-actions.pod:2480
9969 #: ../fish/guestfish-actions.pod:2482
9974 #: ../fish/guestfish-actions.pod:2484
9984 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9986 "Internally libguestfs is implemented by running a virtual machine using "
9991 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9993 "You should call this after configuring the handle (eg. adding drives) but "
9994 "before performing any actions."
9998 #: ../fish/guestfish-actions.pod:2492
10003 #: ../fish/guestfish-actions.pod:2494
10006 " lchown owner group path\n"
10009 " lchown власник група шлях\n"
10013 #: ../fish/guestfish-actions.pod:2496
10015 "Change the file owner to C<owner> and group to C<group>. This is like L</"
10016 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10021 #: ../fish/guestfish-actions.pod:2504
10026 #: ../fish/guestfish-actions.pod:2506
10029 " lgetxattr path name\n"
10032 " lgetxattr шлях назва\n"
10036 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
10038 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10039 "is a symlink, then this call returns an extended attribute from the symlink."
10043 #: ../fish/guestfish-actions.pod:2522
10044 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10045 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10048 #: ../fish/guestfish-actions.pod:2524
10050 msgstr "lgetxattrs"
10053 #: ../fish/guestfish-actions.pod:2526
10056 " lgetxattrs path\n"
10059 " lgetxattrs шлях\n"
10063 #: ../fish/guestfish-actions.pod:2528
10065 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10066 "it returns the extended attributes of the link itself."
10070 #: ../fish/guestfish-actions.pod:2532
10075 #: ../fish/guestfish-actions.pod:2534
10083 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
10085 "List all 9p filesystems attached to the guest. A list of mount tags is "
10090 #: ../fish/guestfish-actions.pod:2539
10091 msgid "list-devices"
10092 msgstr "list-devices"
10095 #: ../fish/guestfish-actions.pod:2541
10105 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
10106 msgid "List all the block devices."
10110 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
10111 msgid "The full block device names are returned, eg. C</dev/sda>."
10115 #: ../fish/guestfish-actions.pod:2549
10116 msgid "list-dm-devices"
10120 #: ../fish/guestfish-actions.pod:2551
10123 " list-dm-devices\n"
10128 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
10129 msgid "List all device mapper devices."
10133 #: ../fish/guestfish-actions.pod:2555
10135 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10136 "previous call to L</luks-open>."
10140 #: ../fish/guestfish-actions.pod:2558
10142 "Device mapper devices which correspond to logical volumes are I<not> "
10143 "returned in this list. Call L</lvs> if you want to list logical volumes."
10147 #: ../fish/guestfish-actions.pod:2562
10148 msgid "list-filesystems"
10149 msgstr "list-filesystems"
10152 #: ../fish/guestfish-actions.pod:2564
10155 " list-filesystems\n"
10158 " list-filesystems\n"
10162 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
10164 "This inspection command looks for filesystems on partitions, block devices "
10165 "and logical volumes, returning a list of devices containing filesystems and "
10170 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
10172 "The return value is a hash, where the keys are the devices containing "
10173 "filesystems, and the values are the filesystem types. For example:"
10177 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10180 " \"/dev/sda1\" => \"ntfs\"\n"
10181 " \"/dev/sda2\" => \"ext2\"\n"
10182 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10183 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10188 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
10190 "The value can have the special value \"unknown\", meaning the content of the "
10191 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10195 #: ../fish/guestfish-actions.pod:2583
10197 "This command runs other libguestfs commands, which might include L</mount> "
10198 "and L</umount>, and therefore you should use this soon after launch and only "
10199 "when nothing is mounted."
10203 #: ../fish/guestfish-actions.pod:2587
10205 "Not all of the filesystems returned will be mountable. In particular, swap "
10206 "partitions are returned in the list. Also this command does not check that "
10207 "each filesystem found is valid and mountable, and some filesystems might be "
10208 "mountable but require special options. Filesystems may not all belong to a "
10209 "single logical operating system (use L</inspect-os> to look for OSes)."
10213 #: ../fish/guestfish-actions.pod:2595
10214 msgid "list-partitions"
10215 msgstr "list-partitions"
10218 #: ../fish/guestfish-actions.pod:2597
10221 " list-partitions\n"
10224 " list-partitions\n"
10228 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
10229 msgid "List all the partitions detected on all block devices."
10233 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
10234 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10238 #: ../fish/guestfish-actions.pod:2603
10240 "This does not return logical volumes. For that you will need to call L</"
10245 #: ../fish/guestfish-actions.pod:2608
10250 #: ../fish/guestfish-actions.pod:2610
10260 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
10262 "List the files in C<directory> (relative to the root directory, there is no "
10263 "cwd) in the format of 'ls -la'."
10267 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
10269 "This command is mostly useful for interactive sessions. It is I<not> "
10270 "intended that you try to parse the output string."
10274 #: ../fish/guestfish-actions.pod:2618
10279 #: ../fish/guestfish-actions.pod:2620
10282 " ln target linkname\n"
10285 " ln призначення назва_посилання\n"
10289 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
10290 msgid "This command creates a hard link using the C<ln> command."
10294 #: ../fish/guestfish-actions.pod:2624
10299 #: ../fish/guestfish-actions.pod:2626
10302 " ln-f target linkname\n"
10305 " ln-f призначення назва_посилання\n"
10309 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
10311 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10312 "option removes the link (C<linkname>) if it exists already."
10316 #: ../fish/guestfish-actions.pod:2631
10321 #: ../fish/guestfish-actions.pod:2633
10324 " ln-s target linkname\n"
10327 " ln-s призначення назва_посилання\n"
10331 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
10332 msgid "This command creates a symbolic link using the C<ln -s> command."
10336 #: ../fish/guestfish-actions.pod:2637
10341 #: ../fish/guestfish-actions.pod:2639
10344 " ln-sf target linkname\n"
10347 " ln-sf призначення назва_посилання\n"
10351 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
10353 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10354 "option removes the link (C<linkname>) if it exists already."
10358 #: ../fish/guestfish-actions.pod:2644
10359 msgid "lremovexattr"
10360 msgstr "lremovexattr"
10363 #: ../fish/guestfish-actions.pod:2646
10366 " lremovexattr xattr path\n"
10371 #: ../fish/guestfish-actions.pod:2648
10373 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10374 "it removes an extended attribute of the link itself."
10378 #: ../fish/guestfish-actions.pod:2652
10383 #: ../fish/guestfish-actions.pod:2654
10393 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
10395 "List the files in C<directory> (relative to the root directory, there is no "
10396 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10400 #: ../fish/guestfish-actions.pod:2660
10402 "This command is mostly useful for interactive sessions. Programs should "
10403 "probably use L</readdir> instead."
10407 #: ../fish/guestfish-actions.pod:2663
10412 #: ../fish/guestfish-actions.pod:2665
10415 " lsetxattr xattr val vallen path\n"
10420 #: ../fish/guestfish-actions.pod:2667
10422 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10423 "sets an extended attribute of the link itself."
10427 #: ../fish/guestfish-actions.pod:2671
10432 #: ../fish/guestfish-actions.pod:2673
10442 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
10443 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
10444 msgid "Returns file information for the given C<path>."
10448 #: ../fish/guestfish-actions.pod:2677
10450 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10451 "the link is stat-ed, not the file it refers to."
10455 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
10456 msgid "This is the same as the C<lstat(2)> system call."
10460 #: ../fish/guestfish-actions.pod:2683
10465 #: ../fish/guestfish-actions.pod:2685
10468 " lstatlist path 'names ...'\n"
10473 #: ../fish/guestfish-actions.pod:2687
10475 "This call allows you to perform the L</lstat> operation on multiple files, "
10476 "where all files are in the directory C<path>. C<names> is the list of files "
10477 "from this directory."
10481 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
10483 "On return you get a list of stat structs, with a one-to-one correspondence "
10484 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10485 "then the C<ino> field of that structure is set to C<-1>."
10489 #: ../fish/guestfish-actions.pod:2696
10491 "This call is intended for programs that want to efficiently list a directory "
10492 "contents without making many round-trips. See also L</lxattrlist> for a "
10493 "similarly efficient call for getting extended attributes. Very long "
10494 "directory listings might cause the protocol message size to be exceeded, "
10495 "causing this call to fail. The caller must split up such requests into "
10496 "smaller groups of names."
10500 #: ../fish/guestfish-actions.pod:2704
10501 msgid "luks-add-key"
10502 msgstr "luks-add-key"
10505 #: ../fish/guestfish-actions.pod:2706
10508 " luks-add-key device keyslot\n"
10513 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
10515 "This command adds a new key on LUKS device C<device>. C<key> is any "
10516 "existing key, and is used to access the device. C<newkey> is the new key to "
10517 "add. C<keyslot> is the key slot that will be replaced."
10521 #: ../fish/guestfish-actions.pod:2713
10523 "Note that if C<keyslot> already contains a key, then this command will "
10524 "fail. You have to use L</luks-kill-slot> first to remove that key."
10528 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
10529 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
10530 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
10532 "This command has one or more key or passphrase parameters. Guestfish will "
10533 "prompt for these separately."
10537 #: ../fish/guestfish-actions.pod:2720
10539 msgstr "luks-close"
10542 #: ../fish/guestfish-actions.pod:2722
10545 " luks-close device\n"
10548 " luks-close пристрій\n"
10552 #: ../fish/guestfish-actions.pod:2724
10554 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10555 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10556 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10561 #: ../fish/guestfish-actions.pod:2730
10562 msgid "luks-format"
10563 msgstr "luks-format"
10566 #: ../fish/guestfish-actions.pod:2732
10569 " luks-format device keyslot\n"
10574 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
10576 "This command erases existing data on C<device> and formats the device as a "
10577 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10578 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10582 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
10583 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
10584 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
10585 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
10586 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
10587 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
10588 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
10589 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580
10590 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
10592 "B<This command is dangerous. Without careful use you can easily destroy all "
10597 #: ../fish/guestfish-actions.pod:2745
10598 msgid "luks-format-cipher"
10599 msgstr "luks-format-cipher"
10602 #: ../fish/guestfish-actions.pod:2747
10605 " luks-format-cipher device keyslot cipher\n"
10610 #: ../fish/guestfish-actions.pod:2749
10612 "This command is the same as L</luks-format> but it also allows you to set "
10613 "the C<cipher> used."
10617 #: ../fish/guestfish-actions.pod:2758
10618 msgid "luks-kill-slot"
10619 msgstr "luks-kill-slot"
10622 #: ../fish/guestfish-actions.pod:2760
10625 " luks-kill-slot device keyslot\n"
10630 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10632 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10633 "device C<device>. C<key> must be one of the I<other> keys."
10637 #: ../fish/guestfish-actions.pod:2769
10642 #: ../fish/guestfish-actions.pod:2771
10645 " luks-open device mapname\n"
10650 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10652 "This command opens a block device which has been encrypted according to the "
10653 "Linux Unified Key Setup (LUKS) standard."
10657 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10658 msgid "C<device> is the encrypted block device or partition."
10662 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10664 "The caller must supply one of the keys associated with the LUKS block "
10665 "device, in the C<key> parameter."
10669 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10671 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
10672 "writes to this block device are decrypted from and encrypted to the "
10673 "underlying C<device> respectively."
10677 #: ../fish/guestfish-actions.pod:2785
10679 "If this block device contains LVM volume groups, then calling L</vgscan> "
10680 "followed by L</vg-activate-all> will make them visible."
10684 #: ../fish/guestfish-actions.pod:2789
10685 msgid "Use L</list-dm-devices> to list all device mapper devices."
10689 #: ../fish/guestfish-actions.pod:2795
10690 msgid "luks-open-ro"
10691 msgstr "luks-open-ro"
10694 #: ../fish/guestfish-actions.pod:2797
10697 " luks-open-ro device mapname\n"
10702 #: ../fish/guestfish-actions.pod:2799
10704 "This is the same as L</luks-open> except that a read-only mapping is created."
10708 #: ../fish/guestfish-actions.pod:2805
10713 #: ../fish/guestfish-actions.pod:2807
10716 " lvcreate logvol volgroup mbytes\n"
10721 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10723 "This creates an LVM logical volume called C<logvol> on the volume group "
10724 "C<volgroup>, with C<size> megabytes."
10728 #: ../fish/guestfish-actions.pod:2812
10729 msgid "lvm-canonical-lv-name"
10730 msgstr "lvm-canonical-lv-name"
10733 #: ../fish/guestfish-actions.pod:2814
10736 " lvm-canonical-lv-name lvname\n"
10741 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10743 "This converts alternative naming schemes for LVs that you might find to the "
10744 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10749 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10751 "This command returns an error if the C<lvname> parameter does not refer to a "
10756 #: ../fish/guestfish-actions.pod:2823
10757 msgid "See also L</is-lv>."
10758 msgstr "Див. також L</is-lv>."
10761 #: ../fish/guestfish-actions.pod:2825
10762 msgid "lvm-clear-filter"
10763 msgstr "lvm-clear-filter"
10766 #: ../fish/guestfish-actions.pod:2827
10769 " lvm-clear-filter\n"
10772 " lvm-clear-filter\n"
10776 #: ../fish/guestfish-actions.pod:2829
10778 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
10783 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10784 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10786 "This command also clears the LVM cache and performs a volume group scan."
10790 #: ../fish/guestfish-actions.pod:2835
10791 msgid "lvm-remove-all"
10792 msgstr "lvm-remove-all"
10795 #: ../fish/guestfish-actions.pod:2837
10798 " lvm-remove-all\n"
10801 " lvm-remove-all\n"
10805 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10807 "This command removes all LVM logical volumes, volume groups and physical "
10812 #: ../fish/guestfish-actions.pod:2845
10813 msgid "lvm-set-filter"
10814 msgstr "lvm-set-filter"
10817 #: ../fish/guestfish-actions.pod:2847
10820 " lvm-set-filter 'devices ...'\n"
10823 " lvm-set-filter 'пристрої...'\n"
10827 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10829 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10830 "block devices in the list C<devices>, and will ignore all other attached "
10835 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10837 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10838 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
10839 "there are two types of duplication possible: either cloned PVs/VGs which "
10840 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10841 "same name. In normal operation you cannot create this situation, but you "
10842 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
10843 "inside the LVM metadata."
10847 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10848 msgid "You can filter whole block devices or individual partitions."
10852 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10854 "You cannot use this if any VG is currently in use (eg. contains a mounted "
10855 "filesystem), even if you are not filtering out that VG."
10859 #: ../fish/guestfish-actions.pod:2872
10864 #: ../fish/guestfish-actions.pod:2874
10867 " lvremove device\n"
10870 " lvremove пристрій\n"
10874 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10876 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10877 "LV, such as C</dev/VG/LV>."
10881 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10883 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10888 #: ../fish/guestfish-actions.pod:2882
10893 #: ../fish/guestfish-actions.pod:2884
10896 " lvrename logvol newlogvol\n"
10901 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10902 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10906 #: ../fish/guestfish-actions.pod:2888
10911 #: ../fish/guestfish-actions.pod:2890
10914 " lvresize device mbytes\n"
10919 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10921 "This resizes (expands or shrinks) an existing LVM logical volume to "
10922 "C<mbytes>. When reducing, data in the reduced part is lost."
10926 #: ../fish/guestfish-actions.pod:2896
10927 msgid "lvresize-free"
10928 msgstr "lvresize-free"
10931 #: ../fish/guestfish-actions.pod:2898
10934 " lvresize-free lv percent\n"
10939 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10941 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10942 "remaining free space in the volume group. Commonly you would call this with "
10943 "pc = 100 which expands the logical volume as much as possible, using all "
10944 "remaining free space in the volume group."
10948 #: ../fish/guestfish-actions.pod:2906
10953 #: ../fish/guestfish-actions.pod:2908
10963 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10965 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10970 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10972 "This returns a list of the logical volume device names (eg. C</dev/"
10973 "VolGroup00/LogVol00>)."
10977 #: ../fish/guestfish-actions.pod:2916
10978 msgid "See also L</lvs-full>, L</list-filesystems>."
10979 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10982 #: ../fish/guestfish-actions.pod:2918
10987 #: ../fish/guestfish-actions.pod:2920
10997 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10999 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11000 "(8)> command. The \"full\" version includes all fields."
11004 #: ../fish/guestfish-actions.pod:2925
11009 #: ../fish/guestfish-actions.pod:2927
11015 " lvuuid пристрій\n"
11019 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
11020 msgid "This command returns the UUID of the LVM LV C<device>."
11024 #: ../fish/guestfish-actions.pod:2931
11026 msgstr "lxattrlist"
11029 #: ../fish/guestfish-actions.pod:2933
11032 " lxattrlist path 'names ...'\n"
11037 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
11039 "This call allows you to get the extended attributes of multiple files, where "
11040 "all files are in the directory C<path>. C<names> is the list of files from "
11045 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
11047 "On return you get a flat list of xattr structs which must be interpreted "
11048 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11049 "C<attrval> in this struct is zero-length to indicate there was an error "
11050 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11051 "number (the number of following attributes for this file, which could be C<"
11052 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11053 "for the first named file. This repeats for the second and subsequent files."
11057 #: ../fish/guestfish-actions.pod:2949
11059 "This call is intended for programs that want to efficiently list a directory "
11060 "contents without making many round-trips. See also L</lstatlist> for a "
11061 "similarly efficient call for getting standard stats. Very long directory "
11062 "listings might cause the protocol message size to be exceeded, causing this "
11063 "call to fail. The caller must split up such requests into smaller groups of "
11068 #: ../fish/guestfish-actions.pod:2957
11073 #: ../fish/guestfish-actions.pod:2959
11083 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
11084 msgid "Create a directory named C<path>."
11088 #: ../fish/guestfish-actions.pod:2963
11090 msgstr "mkdir-mode"
11093 #: ../fish/guestfish-actions.pod:2965
11096 " mkdir-mode path mode\n"
11099 " mkdir-mode шлях режим\n"
11103 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
11105 "This command creates a directory, setting the initial permissions of the "
11106 "directory to C<mode>."
11110 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
11112 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11113 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11118 #: ../fish/guestfish-actions.pod:2974
11119 msgid "See also L</mkdir>, L</umask>"
11120 msgstr "Див. також L</mkdir>, L</umask>"
11123 #: ../fish/guestfish-actions.pod:2976
11128 #: ../fish/guestfish-actions.pod:2978
11138 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
11140 "Create a directory named C<path>, creating any parent directories as "
11141 "necessary. This is like the C<mkdir -p> shell command."
11145 #: ../fish/guestfish-actions.pod:2983
11150 #: ../fish/guestfish-actions.pod:2985
11153 " mkdtemp template\n"
11156 " mkdtemp шаблон\n"
11160 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11162 "This command creates a temporary directory. The C<template> parameter "
11163 "should be a full pathname for the temporary directory name with the final "
11164 "six characters being \"XXXXXX\"."
11168 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
11170 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11171 "being suitable for Windows filesystems."
11175 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
11176 msgid "The name of the temporary directory that was created is returned."
11180 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
11181 msgid "The temporary directory is created with mode 0700 and is owned by root."
11185 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
11187 "The caller is responsible for deleting the temporary directory and its "
11188 "contents after use."
11192 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
11193 msgid "See also: L<mkdtemp(3)>"
11197 #: ../fish/guestfish-actions.pod:3006
11202 #: ../fish/guestfish-actions.pod:3008
11205 " mke2fs-J fstype blocksize device journal\n"
11210 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
11212 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11213 "C<journal>. It is equivalent to the command:"
11217 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
11220 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11223 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11227 #: ../fish/guestfish-actions.pod:3016
11228 msgid "See also L</mke2journal>."
11229 msgstr "Див. також L</mke2journal>."
11232 #: ../fish/guestfish-actions.pod:3018
11237 #: ../fish/guestfish-actions.pod:3020
11240 " mke2fs-JL fstype blocksize device label\n"
11245 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
11247 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11248 "the journal labeled C<label>."
11252 #: ../fish/guestfish-actions.pod:3025
11253 msgid "See also L</mke2journal-L>."
11254 msgstr "Див. також L</mke2journal-L>."
11257 #: ../fish/guestfish-actions.pod:3027
11262 #: ../fish/guestfish-actions.pod:3029
11265 " mke2fs-JU fstype blocksize device uuid\n"
11270 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
11272 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11273 "the journal with UUID C<uuid>."
11277 #: ../fish/guestfish-actions.pod:3034
11278 msgid "See also L</mke2journal-U>."
11279 msgstr "Див. також L</mke2journal-U>."
11282 #: ../fish/guestfish-actions.pod:3036
11283 msgid "mke2journal"
11284 msgstr "mke2journal"
11287 #: ../fish/guestfish-actions.pod:3038
11290 " mke2journal blocksize device\n"
11295 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
11297 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11302 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
11305 " mke2fs -O journal_dev -b blocksize device\n"
11310 #: ../fish/guestfish-actions.pod:3045
11311 msgid "mke2journal-L"
11312 msgstr "mke2journal-L"
11315 #: ../fish/guestfish-actions.pod:3047
11318 " mke2journal-L blocksize label device\n"
11323 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
11324 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11328 #: ../fish/guestfish-actions.pod:3051
11329 msgid "mke2journal-U"
11330 msgstr "mke2journal-U"
11333 #: ../fish/guestfish-actions.pod:3053
11336 " mke2journal-U blocksize uuid device\n"
11341 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
11342 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11346 #: ../fish/guestfish-actions.pod:3057
11351 #: ../fish/guestfish-actions.pod:3059
11354 " mkfifo mode path\n"
11357 " mkfifo режим шлях\n"
11361 #: ../fish/guestfish-actions.pod:3061
11363 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11364 "is just a convenient wrapper around L</mknod>."
11368 #: ../fish/guestfish-actions.pod:3067
11373 #: ../fish/guestfish-actions.pod:3069
11376 " mkfs fstype device\n"
11379 " mkfs тип_файлової_системи пристрій\n"
11383 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
11385 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11386 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11390 #: ../fish/guestfish-actions.pod:3075
11395 #: ../fish/guestfish-actions.pod:3077
11398 " mkfs-b fstype blocksize device\n"
11403 #: ../fish/guestfish-actions.pod:3079
11405 "This call is similar to L</mkfs>, but it allows you to control the block "
11406 "size of the resulting filesystem. Supported block sizes depend on the "
11407 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11411 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
11412 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
11414 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11419 #: ../fish/guestfish-actions.pod:3087
11421 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11426 #: ../fish/guestfish-actions.pod:3094
11431 #: ../fish/guestfish-actions.pod:3096
11434 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11439 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
11441 "This function creates a filesystem on C<device>. The filesystem type is "
11442 "C<fstype>, for example C<ext3>."
11446 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
11447 msgid "C<blocksize>"
11448 msgstr "C<blocksize>"
11451 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
11453 "The filesystem block size. Supported block sizes depend on the filesystem "
11454 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11459 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
11460 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11464 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
11465 msgid "C<features>"
11466 msgstr "C<features>"
11469 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
11470 msgid "This passes the I<-O> parameter to the external mkfs program."
11474 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11476 "For certain filesystem types, this allows extra filesystem features to be "
11477 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11481 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11483 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11488 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11493 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11495 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11496 "sets the inode size (only for ext2/3/4 filesystems at present)."
11500 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
11501 msgid "C<sectorsize>"
11505 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
11507 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11508 "sets sector size for ufs filesystem."
11512 #: ../fish/guestfish-actions.pod:3141
11513 msgid "mkmountpoint"
11514 msgstr "mkmountpoint"
11517 #: ../fish/guestfish-actions.pod:3143
11520 " mkmountpoint exemptpath\n"
11525 #: ../fish/guestfish-actions.pod:3145
11527 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11528 "to create extra mountpoints before mounting the first filesystem."
11532 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
11534 "These calls are I<only> necessary in some very limited circumstances, mainly "
11535 "the case where you want to mount a mix of unrelated and/or read-only "
11536 "filesystems together."
11540 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11542 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11543 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11544 "inside that. You can unpack this as follows in guestfish:"
11548 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
11551 " add-ro Fedora-11-i686-Live.iso\n"
11553 " mkmountpoint /cd\n"
11554 " mkmountpoint /sqsh\n"
11555 " mkmountpoint /ext3fs\n"
11556 " mount /dev/sda /cd\n"
11557 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11558 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11561 " add-ro Fedora-11-i686-Live.iso\n"
11563 " mkmountpoint /cd\n"
11564 " mkmountpoint /sqsh\n"
11565 " mkmountpoint /ext3fs\n"
11566 " mount /dev/sda /cd\n"
11567 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11568 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11572 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
11573 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11577 #: ../fish/guestfish-actions.pod:3169
11579 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11580 "unexpected errors if you try to mix these calls. It is safest to manually "
11581 "unmount filesystems and remove mountpoints after use."
11585 #: ../fish/guestfish-actions.pod:3173
11587 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11588 "for this to work for manual mountpoints, you must ensure that the innermost "
11589 "mountpoints have the longest pathnames, as in the example code above."
11593 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
11595 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11599 #: ../fish/guestfish-actions.pod:3180
11601 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11602 "L</umount-all> to be called when the handle is closed which can also trigger "
11607 #: ../fish/guestfish-actions.pod:3184
11612 #: ../fish/guestfish-actions.pod:3186
11615 " mknod mode devmajor devminor path\n"
11620 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
11622 "This call creates block or character special devices, or named pipes (FIFOs)."
11626 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
11628 "The C<mode> parameter should be the mode, using the standard constants. "
11629 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11630 "used when creating block and character special devices."
11634 #: ../fish/guestfish-actions.pod:3196
11636 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11637 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11638 "regular file). These constants are available in the standard Linux header "
11639 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11640 "wrappers around this command which bitwise OR in the appropriate constant "
11645 #: ../fish/guestfish-actions.pod:3206
11650 #: ../fish/guestfish-actions.pod:3208
11653 " mknod-b mode devmajor devminor path\n"
11658 #: ../fish/guestfish-actions.pod:3210
11660 "This call creates a block device node called C<path> with mode C<mode> and "
11661 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11662 "wrapper around L</mknod>."
11666 #: ../fish/guestfish-actions.pod:3216
11671 #: ../fish/guestfish-actions.pod:3218
11674 " mknod-c mode devmajor devminor path\n"
11679 #: ../fish/guestfish-actions.pod:3220
11681 "This call creates a char device node called C<path> with mode C<mode> and "
11682 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11683 "wrapper around L</mknod>."
11687 #: ../fish/guestfish-actions.pod:3226
11692 #: ../fish/guestfish-actions.pod:3228
11698 " mkswap пристрій\n"
11702 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11703 msgid "Create a swap partition on C<device>."
11707 #: ../fish/guestfish-actions.pod:3232
11712 #: ../fish/guestfish-actions.pod:3234
11715 " mkswap-L label device\n"
11718 " mkswap-L мітка пристрій\n"
11722 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11723 msgid "Create a swap partition on C<device> with label C<label>."
11727 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11729 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11730 "sda>), just to a partition. This appears to be a limitation of the kernel "
11735 #: ../fish/guestfish-actions.pod:3242
11740 #: ../fish/guestfish-actions.pod:3244
11743 " mkswap-U uuid device\n"
11746 " mkswap-U uuid пристрій\n"
11750 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11751 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11755 #: ../fish/guestfish-actions.pod:3248
11756 msgid "mkswap-file"
11757 msgstr "mkswap-file"
11760 #: ../fish/guestfish-actions.pod:3250
11763 " mkswap-file path\n"
11766 " mkswap-file шлях\n"
11770 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11771 msgid "Create a swap file."
11772 msgstr "Створити файл резервної пам’яті."
11775 #: ../fish/guestfish-actions.pod:3254
11777 "This command just writes a swap file signature to an existing file. To "
11778 "create the file itself, use something like L</fallocate>."
11782 #: ../fish/guestfish-actions.pod:3257
11787 #: ../fish/guestfish-actions.pod:3259
11790 " modprobe modulename\n"
11793 " modprobe назва_модуля\n"
11797 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11798 msgid "This loads a kernel module in the appliance."
11802 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11804 "The kernel module must have been whitelisted when libguestfs was built (see "
11805 "C<appliance/kmod.whitelist.in> in the source)."
11809 #: ../fish/guestfish-actions.pod:3266
11814 #: ../fish/guestfish-actions.pod:3268
11817 " mount device mountpoint\n"
11820 " mount пристрій точка_монтування\n"
11824 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
11826 "Mount a guest disk at a position in the filesystem. Block devices are named "
11827 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
11828 "those block devices contain partitions, they will have the usual names (eg. "
11829 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
11833 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11835 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11836 "mounted on C</> before others can be mounted. Other filesystems can only be "
11837 "mounted on directories which already exist."
11841 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
11843 "The mounted filesystem is writable, if we have sufficient permissions on the "
11844 "underlying device."
11848 #: ../fish/guestfish-actions.pod:3284
11850 "B<Important note:> When you use this call, the filesystem options C<sync> "
11851 "and C<noatime> are set implicitly. This was originally done because we "
11852 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11853 "very large negative performance impact and negligible effect on "
11854 "reliability. Therefore we recommend that you avoid using L</mount> in any "
11855 "code that needs performance, and instead use L</mount-options> (use an empty "
11856 "string for the first parameter if you don't want any options)."
11860 #: ../fish/guestfish-actions.pod:3294
11862 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11867 #: ../fish/guestfish-actions.pod:3301
11872 #: ../fish/guestfish-actions.pod:3303
11875 " mount-9p mounttag mountpoint [options:..]\n"
11880 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11882 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11887 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11889 "If required, C<trans=virtio> will be automatically added to the options. "
11890 "Any other options required can be passed in the optional C<options> "
11895 #: ../fish/guestfish-actions.pod:3314
11897 msgstr "mount-loop"
11900 #: ../fish/guestfish-actions.pod:3316
11903 " mount-loop file mountpoint\n"
11908 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11910 "This command lets you mount C<file> (a filesystem image in a file) on a "
11911 "mount point. It is entirely equivalent to the command C<mount -o loop file "
11916 #: ../fish/guestfish-actions.pod:3322
11917 msgid "mount-options"
11918 msgstr "mount-options"
11921 #: ../fish/guestfish-actions.pod:3324
11924 " mount-options options device mountpoint\n"
11929 #: ../fish/guestfish-actions.pod:3326
11931 "This is the same as the L</mount> command, but it allows you to set the "
11932 "mount options as for the L<mount(8)> I<-o> flag."
11936 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11938 "If the C<options> parameter is an empty string, then no options are passed "
11939 "(all options default to whatever the filesystem uses)."
11943 #: ../fish/guestfish-actions.pod:3334
11948 #: ../fish/guestfish-actions.pod:3336
11951 " mount-ro device mountpoint\n"
11954 " mount-ro пристрій точка_монтування\n"
11958 #: ../fish/guestfish-actions.pod:3338
11960 "This is the same as the L</mount> command, but it mounts the filesystem with "
11961 "the read-only (I<-o ro>) flag."
11965 #: ../fish/guestfish-actions.pod:3341
11970 #: ../fish/guestfish-actions.pod:3343
11973 " mount-vfs options vfstype device mountpoint\n"
11978 #: ../fish/guestfish-actions.pod:3345
11980 "This is the same as the L</mount> command, but it allows you to set both the "
11981 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11985 #: ../fish/guestfish-actions.pod:3349
11986 msgid "mountpoints"
11987 msgstr "mountpoints"
11990 #: ../fish/guestfish-actions.pod:3351
12000 #: ../fish/guestfish-actions.pod:3353
12002 "This call is similar to L</mounts>. That call returns a list of devices. "
12003 "This one returns a hash table (map) of device name to directory where the "
12004 "device is mounted."
12008 #: ../fish/guestfish-actions.pod:3357
12013 #: ../fish/guestfish-actions.pod:3359
12023 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12025 "This returns the list of currently mounted filesystems. It returns the list "
12026 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12030 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
12031 msgid "Some internal mounts are not shown."
12035 #: ../fish/guestfish-actions.pod:3366
12036 msgid "See also: L</mountpoints>"
12037 msgstr "Див. також L</mountpoints>"
12040 #: ../fish/guestfish-actions.pod:3368
12045 #: ../fish/guestfish-actions.pod:3370
12051 " mv джерело призначення\n"
12055 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
12057 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12058 "destination filename or destination directory."
12062 #: ../fish/guestfish-actions.pod:3375
12063 msgid "ntfs-3g-probe"
12064 msgstr "ntfs-3g-probe"
12067 #: ../fish/guestfish-actions.pod:3377
12070 " ntfs-3g-probe true|false device\n"
12075 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
12077 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12078 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12079 "write, and some cannot be mounted at all)."
12083 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
12085 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12086 "can be mounted read-write. Set it to false if you want to test if the "
12087 "volume can be mounted read-only."
12091 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
12093 "The return value is an integer which C<0> if the operation would succeed, or "
12094 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12098 #: ../fish/guestfish-actions.pod:3391
12100 msgstr "ntfsresize"
12103 #: ../fish/guestfish-actions.pod:3393
12106 " ntfsresize device\n"
12109 " ntfsresize пристрій\n"
12113 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
12114 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
12116 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12117 "size of the underlying device."
12121 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
12123 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12124 "consistency check (for safety). You have to boot into Windows to perform "
12125 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12126 "resize filesystems which have been marked in this way. So in effect it is "
12127 "not possible to call ntfsresize multiple times on a single filesystem "
12128 "without booting into Windows between each resize."
12132 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
12133 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
12134 msgid "See also L<ntfsresize(8)>."
12138 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
12140 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12145 #: ../fish/guestfish-actions.pod:3415
12146 msgid "ntfsresize-opts"
12150 #: ../fish/guestfish-actions.pod:3417
12153 " ntfsresize-opts device [size:..] [force:..]\n"
12158 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12160 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12161 "resized to fit the container (eg. partition)."
12165 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
12170 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
12172 "If this option is true, then force the resize of the filesystem even if the "
12173 "filesystem is marked as requiring a consistency check."
12177 #: ../fish/guestfish-actions.pod:3436
12179 "After the resize operation, the filesystem is always marked as requiring a "
12180 "consistency check (for safety). You have to boot into Windows to perform "
12181 "this check and clear this condition. If you I<don't> set the C<force> "
12182 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12183 "a single filesystem without booting into Windows between each resize."
12187 #: ../fish/guestfish-actions.pod:3449
12188 msgid "ntfsresize-size"
12189 msgstr "ntfsresize-size"
12192 #: ../fish/guestfish-actions.pod:3451
12195 " ntfsresize-size device size\n"
12200 #: ../fish/guestfish-actions.pod:3453
12202 "This command is the same as L</ntfsresize> except that it allows you to "
12203 "specify the new size (in bytes) explicitly."
12207 #: ../fish/guestfish-actions.pod:3463
12212 #: ../fish/guestfish-actions.pod:3465
12215 " part-add device prlogex startsect endsect\n"
12220 #: ../fish/guestfish-actions.pod:3467
12222 "This command adds a partition to C<device>. If there is no partition table "
12223 "on the device, call L</part-init> first."
12227 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12229 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12230 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12231 "C<logical>) and C<e> (or C<extended>) partition types."
12235 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
12237 "C<startsect> and C<endsect> are the start and end of the partition in "
12238 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12239 "from the end of the disk (C<-1> is the last sector)."
12243 #: ../fish/guestfish-actions.pod:3479
12245 "Creating a partition which covers the whole disk is not so easy. Use L</"
12246 "part-disk> to do that."
12250 #: ../fish/guestfish-actions.pod:3482
12255 #: ../fish/guestfish-actions.pod:3484
12258 " part-del device partnum\n"
12263 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
12264 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12268 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
12270 "Note that in the case of MBR partitioning, deleting an extended partition "
12271 "also deletes any logical partitions it contains."
12275 #: ../fish/guestfish-actions.pod:3492
12280 #: ../fish/guestfish-actions.pod:3494
12283 " part-disk device parttype\n"
12286 " part-disk пристрій тип_розділу\n"
12290 #: ../fish/guestfish-actions.pod:3496
12292 "This command is simply a combination of L</part-init> followed by L</part-"
12293 "add> to create a single primary partition covering the whole disk."
12297 #: ../fish/guestfish-actions.pod:3500
12299 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12300 "possible values are described in L</part-init>."
12304 #: ../fish/guestfish-actions.pod:3506
12305 msgid "part-get-bootable"
12306 msgstr "part-get-bootable"
12309 #: ../fish/guestfish-actions.pod:3508
12312 " part-get-bootable device partnum\n"
12317 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
12319 "This command returns true if the partition C<partnum> on C<device> has the "
12320 "bootable flag set."
12324 #: ../fish/guestfish-actions.pod:3513
12325 msgid "See also L</part-set-bootable>."
12326 msgstr "Див. також L</part-set-bootable>."
12329 #: ../fish/guestfish-actions.pod:3515
12330 msgid "part-get-mbr-id"
12331 msgstr "part-get-mbr-id"
12334 #: ../fish/guestfish-actions.pod:3517
12337 " part-get-mbr-id device partnum\n"
12342 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
12344 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12345 "partition C<partnum>."
12349 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
12351 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12352 "undefined results for other partition table types (see L</part-get-"
12357 #: ../fish/guestfish-actions.pod:3526
12358 msgid "part-get-parttype"
12359 msgstr "part-get-parttype"
12362 #: ../fish/guestfish-actions.pod:3528
12365 " part-get-parttype device\n"
12368 " part-get-parttype пристрій\n"
12372 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
12374 "This command examines the partition table on C<device> and returns the "
12375 "partition table type (format) being used."
12379 #: ../fish/guestfish-actions.pod:3533
12381 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12382 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12383 "possible, although unusual. See L</part-init> for a full list."
12387 #: ../fish/guestfish-actions.pod:3538
12392 #: ../fish/guestfish-actions.pod:3540
12395 " part-init device parttype\n"
12400 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
12402 "This creates an empty partition table on C<device> of one of the partition "
12403 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12404 "(for large disks)."
12408 #: ../fish/guestfish-actions.pod:3546
12410 "Initially there are no partitions. Following this, you should call L</part-"
12411 "add> for each partition required."
12415 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
12416 msgid "Possible values for C<parttype> are:"
12420 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
12425 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
12430 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
12431 msgid "Intel EFI / GPT partition table."
12435 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
12437 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12438 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12439 "the C<mbr> format."
12443 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
12448 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
12453 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
12455 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12456 "Windows. This partition type will B<only> work for device sizes up to 2 "
12457 "TB. For large disks we recommend using C<gpt>."
12461 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12463 "Other partition table types that may work but are not supported include:"
12467 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12472 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12473 msgid "AIX disk labels."
12474 msgstr "Мітки дисків AIX."
12477 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12479 #| msgid "B<amiga> | B<rdb>"
12481 msgstr "B<amiga> | B<rdb>"
12484 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12489 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12490 msgid "Amiga \"Rigid Disk Block\" format."
12491 msgstr "Формат \"Rigid Disk Block\" Amiga."
12494 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12499 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12500 msgid "BSD disk labels."
12501 msgstr "Мітки дисків BSD."
12504 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12509 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
12510 msgid "DASD, used on IBM mainframes."
12511 msgstr "DASD, використовувалися у мейнфреймах IBM."
12514 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
12519 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
12520 msgid "MIPS/SGI volumes."
12521 msgstr "Томи MIPS/SGI."
12524 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12529 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12530 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12531 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12534 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12539 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12540 msgid "NEC PC-98 format, common in Japan apparently."
12541 msgstr "Формат NEC PC-98, поширений у Японії."
12544 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12549 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12550 msgid "Sun disk labels."
12551 msgstr "Мітки дисків Sun."
12554 #: ../fish/guestfish-actions.pod:3615
12559 #: ../fish/guestfish-actions.pod:3617
12562 " part-list device\n"
12565 " part-list device\n"
12569 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
12571 "This command parses the partition table on C<device> and returns the list of "
12572 "partitions found."
12576 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
12577 msgid "The fields in the returned structure are:"
12581 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
12582 msgid "B<part_num>"
12583 msgstr "B<part_num>"
12586 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
12587 msgid "Partition number, counting from 1."
12591 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12592 msgid "B<part_start>"
12593 msgstr "B<part_start>"
12596 #: ../fish/guestfish-actions.pod:3632
12598 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12599 "the device's sector size, see L</blockdev-getss>."
12603 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
12604 msgid "B<part_end>"
12605 msgstr "B<part_end>"
12608 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
12609 msgid "End of the partition in bytes."
12613 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
12614 msgid "B<part_size>"
12615 msgstr "B<part_size>"
12618 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12619 msgid "Size of the partition in bytes."
12623 #: ../fish/guestfish-actions.pod:3645
12624 msgid "part-set-bootable"
12625 msgstr "part-set-bootable"
12628 #: ../fish/guestfish-actions.pod:3647
12631 " part-set-bootable device partnum true|false\n"
12636 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
12638 "This sets the bootable flag on partition numbered C<partnum> on device "
12639 "C<device>. Note that partitions are numbered from 1."
12643 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
12645 "The bootable flag is used by some operating systems (notably Windows) to "
12646 "determine which partition to boot from. It is by no means universally "
12651 #: ../fish/guestfish-actions.pod:3656
12652 msgid "part-set-mbr-id"
12653 msgstr "part-set-mbr-id"
12656 #: ../fish/guestfish-actions.pod:3658
12659 " part-set-mbr-id device partnum idbyte\n"
12664 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
12666 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12667 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
12668 "documentation are in fact hexadecimal numbers, but usually documented "
12669 "without any leading \"0x\" which might be confusing."
12673 #: ../fish/guestfish-actions.pod:3670
12674 msgid "part-set-name"
12675 msgstr "part-set-name"
12678 #: ../fish/guestfish-actions.pod:3672
12681 " part-set-name device partnum name\n"
12686 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12688 "This sets the partition name on partition numbered C<partnum> on device "
12689 "C<device>. Note that partitions are numbered from 1."
12693 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12695 "The partition name can only be set on certain types of partition table. "
12696 "This works on C<gpt> but not on C<mbr> partitions."
12700 #: ../fish/guestfish-actions.pod:3680
12701 msgid "part-to-dev"
12702 msgstr "part-to-dev"
12705 #: ../fish/guestfish-actions.pod:3682
12708 " part-to-dev partition\n"
12711 " part-to-dev розділ\n"
12715 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12717 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12718 "partition number, returning the device name (eg. \"/dev/sdb\")."
12722 #: ../fish/guestfish-actions.pod:3688
12724 "The named partition must exist, for example as a string returned from L</"
12725 "list-partitions>."
12729 #: ../fish/guestfish-actions.pod:3691
12730 msgid "ping-daemon"
12731 msgstr "ping-daemon"
12734 #: ../fish/guestfish-actions.pod:3693
12744 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12746 "This is a test probe into the guestfs daemon running inside the qemu "
12747 "subprocess. Calling this function checks that the daemon responds to the "
12748 "ping message, without affecting the daemon or attached block device(s) in "
12753 #: ../fish/guestfish-actions.pod:3700
12758 #: ../fish/guestfish-actions.pod:3702
12761 " pread path count offset\n"
12766 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12768 "This command lets you read part of a file. It reads C<count> bytes of the "
12769 "file, starting at C<offset>, from file C<path>."
12773 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12774 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12776 "This may read fewer bytes than requested. For further details see the "
12777 "L<pread(2)> system call."
12781 #: ../fish/guestfish-actions.pod:3710
12782 msgid "See also L</pwrite>, L</pread-device>."
12783 msgstr "Див. також L</pwrite>, L</pread-device>."
12786 #: ../fish/guestfish-actions.pod:3715
12787 msgid "pread-device"
12788 msgstr "pread-device"
12791 #: ../fish/guestfish-actions.pod:3717
12794 " pread-device device count offset\n"
12799 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12801 "This command lets you read part of a file. It reads C<count> bytes of "
12802 "C<device>, starting at C<offset>."
12806 #: ../fish/guestfish-actions.pod:3725
12807 msgid "See also L</pread>."
12808 msgstr "Див. також L</pread>."
12811 #: ../fish/guestfish-actions.pod:3730
12816 #: ../fish/guestfish-actions.pod:3732
12819 " pvcreate device\n"
12822 " pvcreate пристрій\n"
12826 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12828 "This creates an LVM physical volume on the named C<device>, where C<device> "
12829 "should usually be a partition name such as C</dev/sda1>."
12833 #: ../fish/guestfish-actions.pod:3738
12838 #: ../fish/guestfish-actions.pod:3740
12841 " pvremove device\n"
12844 " pvremove пристрій\n"
12848 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12850 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12855 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12857 "The implementation uses the C<pvremove> command which refuses to wipe "
12858 "physical volumes that contain any volume groups, so you have to remove those "
12863 #: ../fish/guestfish-actions.pod:3749
12868 #: ../fish/guestfish-actions.pod:3751
12871 " pvresize device\n"
12874 " pvresize пристрій\n"
12878 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12880 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12881 "the new size of the underlying device."
12885 #: ../fish/guestfish-actions.pod:3756
12886 msgid "pvresize-size"
12887 msgstr "pvresize-size"
12890 #: ../fish/guestfish-actions.pod:3758
12893 " pvresize-size device size\n"
12898 #: ../fish/guestfish-actions.pod:3760
12900 "This command is the same as L</pvresize> except that it allows you to "
12901 "specify the new size (in bytes) explicitly."
12905 #: ../fish/guestfish-actions.pod:3763
12910 #: ../fish/guestfish-actions.pod:3765
12920 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12922 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12927 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12929 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12934 #: ../fish/guestfish-actions.pod:3773
12935 msgid "See also L</pvs-full>."
12936 msgstr "Див. також L</pvs-full>."
12939 #: ../fish/guestfish-actions.pod:3775
12944 #: ../fish/guestfish-actions.pod:3777
12954 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12956 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12957 "(8)> command. The \"full\" version includes all fields."
12961 #: ../fish/guestfish-actions.pod:3782
12966 #: ../fish/guestfish-actions.pod:3784
12972 " pvuuid пристрій\n"
12976 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12977 msgid "This command returns the UUID of the LVM PV C<device>."
12981 #: ../fish/guestfish-actions.pod:3788
12986 #: ../fish/guestfish-actions.pod:3790
12989 " pwrite path content offset\n"
12994 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12996 "This command writes to part of a file. It writes the data buffer C<content> "
12997 "to the file C<path> starting at offset C<offset>."
13001 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
13003 "This command implements the L<pwrite(2)> system call, and like that system "
13004 "call it may not write the full data requested. The return value is the "
13005 "number of bytes that were actually written to the file. This could even be "
13006 "0, although short writes are unlikely for regular files in ordinary "
13011 #: ../fish/guestfish-actions.pod:3801
13012 msgid "See also L</pread>, L</pwrite-device>."
13013 msgstr "Див. також L</pread>, L</pwrite-device>."
13016 #: ../fish/guestfish-actions.pod:3806
13017 msgid "pwrite-device"
13018 msgstr "pwrite-device"
13021 #: ../fish/guestfish-actions.pod:3808
13024 " pwrite-device device content offset\n"
13029 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
13031 "This command writes to part of a device. It writes the data buffer "
13032 "C<content> to C<device> starting at offset C<offset>."
13036 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
13038 "This command implements the L<pwrite(2)> system call, and like that system "
13039 "call it may not write the full data requested (although short writes to disk "
13040 "devices and partitions are probably impossible with standard Linux kernels)."
13044 #: ../fish/guestfish-actions.pod:3818
13045 msgid "See also L</pwrite>."
13046 msgstr "Див. також L</pwrite>."
13049 #: ../fish/guestfish-actions.pod:3823
13054 #: ../fish/guestfish-actions.pod:3825
13057 " read-file path\n"
13060 " read-file шлях\n"
13064 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
13065 msgid "This calls returns the contents of the file C<path> as a buffer."
13069 #: ../fish/guestfish-actions.pod:3830
13071 "Unlike L</cat>, this function can correctly handle files that contain "
13072 "embedded ASCII NUL characters. However unlike L</download>, this function "
13073 "is limited in the total size of file that can be handled."
13077 #: ../fish/guestfish-actions.pod:3838
13079 msgstr "read-lines"
13082 #: ../fish/guestfish-actions.pod:3840
13085 " read-lines path\n"
13088 " read-lines шлях\n"
13092 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
13094 "The file contents are returned as a list of lines. Trailing C<LF> and "
13095 "C<CRLF> character sequences are I<not> returned."
13099 #: ../fish/guestfish-actions.pod:3847
13101 "Note that this function cannot correctly handle binary files (specifically, "
13102 "files containing C<\\0> character which is treated as end of line). For "
13103 "those you need to use the L</read-file> function which has a more complex "
13108 #: ../fish/guestfish-actions.pod:3852
13113 #: ../fish/guestfish-actions.pod:3854
13119 " readdir каталог\n"
13123 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
13124 msgid "This returns the list of directory entries in directory C<dir>."
13128 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
13130 "All entries in the directory are returned, including C<.> and C<..>. The "
13131 "entries are I<not> sorted, but returned in the same order as the underlying "
13136 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13138 "Also this call returns basic file type information about each file. The "
13139 "C<ftyp> field will contain one of the following characters:"
13143 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
13148 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
13149 msgid "Block special"
13150 msgstr "Блоковий особливий"
13153 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
13158 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
13159 msgid "Char special"
13160 msgstr "Символьний особливий"
13163 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
13168 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
13173 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
13178 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
13179 msgid "FIFO (named pipe)"
13180 msgstr "FIFO (іменований канал)"
13183 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
13188 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
13189 msgid "Symbolic link"
13190 msgstr "Символічне посилання"
13193 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
13198 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13199 msgid "Regular file"
13200 msgstr "Звичайний файл"
13203 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13208 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13213 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13218 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13219 msgid "Unknown file type"
13220 msgstr "Невідомий тип файла"
13223 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13228 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13230 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13234 #: ../fish/guestfish-actions.pod:3906
13236 "This function is primarily intended for use by programs. To get a simple "
13237 "list of names, use L</ls>. To get a printable directory for human "
13238 "consumption, use L</ll>."
13242 #: ../fish/guestfish-actions.pod:3910
13247 #: ../fish/guestfish-actions.pod:3912
13257 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
13258 msgid "This command reads the target of a symbolic link."
13262 #: ../fish/guestfish-actions.pod:3916
13263 msgid "readlinklist"
13264 msgstr "readlinklist"
13267 #: ../fish/guestfish-actions.pod:3918
13270 " readlinklist path 'names ...'\n"
13275 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
13277 "This call allows you to do a C<readlink> operation on multiple files, where "
13278 "all files are in the directory C<path>. C<names> is the list of files from "
13283 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
13285 "On return you get a list of strings, with a one-to-one correspondence to the "
13286 "C<names> list. Each string is the value of the symbolic link."
13290 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
13292 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13293 "result string is the empty string C<\"\">. However the whole operation is "
13294 "completed even if there were C<readlink(2)> errors, and so you can call this "
13295 "function with names where you don't know if they are symbolic links already "
13296 "(albeit slightly less efficient)."
13300 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
13302 "This call is intended for programs that want to efficiently list a directory "
13303 "contents without making many round-trips. Very long directory listings "
13304 "might cause the protocol message size to be exceeded, causing this call to "
13305 "fail. The caller must split up such requests into smaller groups of names."
13309 #: ../fish/guestfish-actions.pod:3942
13314 #: ../fish/guestfish-actions.pod:3944
13324 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
13326 "Return the canonicalized absolute pathname of C<path>. The returned path "
13327 "has no C<.>, C<..> or symbolic link path elements."
13331 #: ../fish/guestfish-actions.pod:3949
13332 msgid "removexattr"
13333 msgstr "removexattr"
13336 #: ../fish/guestfish-actions.pod:3951
13339 " removexattr xattr path\n"
13344 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
13346 "This call removes the extended attribute named C<xattr> of the file C<path>."
13350 #: ../fish/guestfish-actions.pod:3956
13351 msgid "See also: L</lremovexattr>, L<attr(5)>."
13352 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13355 #: ../fish/guestfish-actions.pod:3958
13360 #: ../fish/guestfish-actions.pod:3960
13363 " resize2fs device\n"
13366 " resize2fs пристрій\n"
13370 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
13372 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13373 "underlying device."
13377 #: ../fish/guestfish-actions.pod:3965
13379 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13380 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13381 "gives an error about this and sometimes not. In any case, it is always safe "
13382 "to call L</e2fsck-f> before calling this function."
13386 #: ../fish/guestfish-actions.pod:3971
13387 msgid "resize2fs-M"
13388 msgstr "resize2fs-M"
13391 #: ../fish/guestfish-actions.pod:3973
13394 " resize2fs-M device\n"
13397 " resize2fs-M пристрій\n"
13401 #: ../fish/guestfish-actions.pod:3975
13403 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13404 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13409 #: ../fish/guestfish-actions.pod:3979
13411 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13412 "and read the C<Block size> and C<Block count> values. These two numbers, "
13413 "multiplied together, give the resulting size of the minimal filesystem in "
13418 #: ../fish/guestfish-actions.pod:3984
13419 msgid "resize2fs-size"
13420 msgstr "resize2fs-size"
13423 #: ../fish/guestfish-actions.pod:3986
13426 " resize2fs-size device size\n"
13431 #: ../fish/guestfish-actions.pod:3988
13433 "This command is the same as L</resize2fs> except that it allows you to "
13434 "specify the new size (in bytes) explicitly."
13438 #: ../fish/guestfish-actions.pod:3991
13443 #: ../fish/guestfish-actions.pod:3993
13453 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
13454 msgid "Remove the single file C<path>."
13458 #: ../fish/guestfish-actions.pod:3997
13463 #: ../fish/guestfish-actions.pod:3999
13473 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
13475 "Remove the file or directory C<path>, recursively removing the contents if "
13476 "its a directory. This is like the C<rm -rf> shell command."
13480 #: ../fish/guestfish-actions.pod:4005
13485 #: ../fish/guestfish-actions.pod:4007
13495 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
13496 msgid "Remove the single directory C<path>."
13500 #: ../fish/guestfish-actions.pod:4011
13501 msgid "rmmountpoint"
13502 msgstr "rmmountpoint"
13505 #: ../fish/guestfish-actions.pod:4013
13508 " rmmountpoint exemptpath\n"
13513 #: ../fish/guestfish-actions.pod:4015
13515 "This calls removes a mountpoint that was previously created with L</"
13516 "mkmountpoint>. See L</mkmountpoint> for full details."
13520 #: ../fish/guestfish-actions.pod:4019
13521 msgid "scrub-device"
13522 msgstr "scrub-device"
13525 #: ../fish/guestfish-actions.pod:4021
13528 " scrub-device device\n"
13531 " scrub-device пристрій\n"
13535 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
13537 "This command writes patterns over C<device> to make data retrieval more "
13542 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
13543 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
13544 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
13546 "It is an interface to the L<scrub(1)> program. See that manual page for "
13551 #: ../fish/guestfish-actions.pod:4032
13553 msgstr "scrub-file"
13556 #: ../fish/guestfish-actions.pod:4034
13559 " scrub-file file\n"
13562 " scrub-file файл\n"
13566 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
13568 "This command writes patterns over a file to make data retrieval more "
13573 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
13574 msgid "The file is I<removed> after scrubbing."
13578 #: ../fish/guestfish-actions.pod:4044
13579 msgid "scrub-freespace"
13580 msgstr "scrub-freespace"
13583 #: ../fish/guestfish-actions.pod:4046
13586 " scrub-freespace dir\n"
13589 " scrub-freespace каталог\n"
13593 #: ../fish/guestfish-actions.pod:4048
13595 "This command creates the directory C<dir> and then fills it with files until "
13596 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13597 "deletes them. The intention is to scrub any free space on the partition "
13598 "containing C<dir>."
13602 #: ../fish/guestfish-actions.pod:4057
13604 msgstr "set-append"
13607 #: ../fish/guestfish-actions.pod:4059
13612 #: ../fish/guestfish-actions.pod:4061
13615 " set-append append\n"
13620 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
13622 "This function is used to add additional options to the guest kernel command "
13627 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
13629 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13630 "environment variable."
13634 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
13636 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13637 "(libguestfs always adds a few of its own)."
13641 #: ../fish/guestfish-actions.pod:4072
13642 msgid "set-attach-method"
13643 msgstr "set-attach-method"
13646 #: ../fish/guestfish-actions.pod:4074
13647 msgid "attach-method"
13651 #: ../fish/guestfish-actions.pod:4076
13654 " set-attach-method attachmethod\n"
13659 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13661 "Set the method that libguestfs uses to connect to the back end guestfsd "
13662 "daemon. Possible methods are:"
13666 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13667 #: ../src/guestfs.pod:2703
13668 msgid "C<appliance>"
13669 msgstr "C<appliance>"
13672 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13674 "Launch an appliance and connect to it. This is the ordinary method and the "
13679 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
13680 msgid "C<unix:I<path>>"
13681 msgstr "C<unix:I<шлях>>"
13684 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
13685 msgid "Connect to the Unix domain socket I<path>."
13686 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13689 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
13691 "This method lets you connect to an existing daemon or (using virtio-serial) "
13692 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
13693 "RUNNING DAEMONS>."
13697 #: ../fish/guestfish-actions.pod:4098
13698 msgid "set-autosync"
13699 msgstr "set-autosync"
13702 #: ../fish/guestfish-actions.pod:4100
13707 #: ../fish/guestfish-actions.pod:4102
13710 " set-autosync true|false\n"
13713 " set-autosync true|false\n"
13717 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13719 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
13720 "effort attempt to make filesystems consistent and synchronized when the "
13721 "handle is closed (also if the program exits without closing handles)."
13725 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13727 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13728 "disabled by default)."
13732 #: ../fish/guestfish-actions.pod:4112
13734 msgstr "set-direct"
13737 #: ../fish/guestfish-actions.pod:4114
13742 #: ../fish/guestfish-actions.pod:4116
13745 " set-direct true|false\n"
13748 " set-direct true|false\n"
13752 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13754 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13755 "passed directly through to the appliance once it is launched."
13759 #: ../fish/guestfish-actions.pod:4122
13761 "One consequence of this is that log messages aren't caught by the library "
13762 "and handled by L</set-log-message-callback>, but go straight to stdout."
13766 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13767 msgid "You probably don't want to use this unless you know what you are doing."
13771 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13772 msgid "The default is disabled."
13776 #: ../fish/guestfish-actions.pod:4131
13777 msgid "set-e2label"
13778 msgstr "set-e2label"
13781 #: ../fish/guestfish-actions.pod:4133
13784 " set-e2label device label\n"
13789 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13791 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13792 "C<label>. Filesystem labels are limited to 16 characters."
13796 #: ../fish/guestfish-actions.pod:4139
13798 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13799 "label on a filesystem."
13803 #: ../fish/guestfish-actions.pod:4142
13805 msgstr "set-e2uuid"
13808 #: ../fish/guestfish-actions.pod:4144
13811 " set-e2uuid device uuid\n"
13816 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13818 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13819 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
13820 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13824 #: ../fish/guestfish-actions.pod:4151
13826 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13827 "UUID of a filesystem."
13831 #: ../fish/guestfish-actions.pod:4154
13832 msgid "set-memsize"
13833 msgstr "set-memsize"
13836 #: ../fish/guestfish-actions.pod:4156
13841 #: ../fish/guestfish-actions.pod:4158
13844 " set-memsize memsize\n"
13849 #: ../fish/guestfish-actions.pod:4160
13851 "This sets the memory size in megabytes allocated to the qemu subprocess. "
13852 "This only has any effect if called before L</launch>."
13856 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13858 "You can also change this by setting the environment variable "
13859 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13863 #: ../fish/guestfish-actions.pod:4171
13864 msgid "set-network"
13865 msgstr "set-network"
13868 #: ../fish/guestfish-actions.pod:4173
13873 #: ../fish/guestfish-actions.pod:4175
13876 " set-network true|false\n"
13879 " set-network true|false\n"
13883 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13885 "If C<network> is true, then the network is enabled in the libguestfs "
13886 "appliance. The default is false."
13890 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13892 "This affects whether commands are able to access the network (see L<guestfs"
13893 "(3)/RUNNING COMMANDS>)."
13897 #: ../fish/guestfish-actions.pod:4183
13899 "You must call this before calling L</launch>, otherwise it has no effect."
13903 #: ../fish/guestfish-actions.pod:4186
13908 #: ../fish/guestfish-actions.pod:4190
13911 " set-path searchpath\n"
13916 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13917 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13921 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13923 "The default is C<$libdir/guestfs> unless overridden by setting "
13924 "C<LIBGUESTFS_PATH> environment variable."
13928 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13929 msgid "Setting C<path> to C<NULL> restores the default path."
13933 #: ../fish/guestfish-actions.pod:4199
13938 #: ../fish/guestfish-actions.pod:4201
13943 #: ../fish/guestfish-actions.pod:4203
13946 " set-pgroup true|false\n"
13951 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13953 "If C<pgroup> is true, child processes are placed into their own process "
13958 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13960 "The practical upshot of this is that signals like C<SIGINT> (from users "
13961 "pressing C<^C>) won't be received by the child process."
13965 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13967 "The default for this flag is false, because usually you want C<^C> to kill "
13972 #: ../fish/guestfish-actions.pod:4214
13977 #: ../fish/guestfish-actions.pod:4216
13982 #: ../fish/guestfish-actions.pod:4218
13992 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13993 msgid "Set the qemu binary that we will use."
13997 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13999 "The default is chosen when the library was compiled by the configure script."
14003 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
14005 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14010 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
14011 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14015 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
14017 "Note that you should call this function as early as possible after creating "
14018 "the handle. This is because some pre-launch operations depend on testing "
14019 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14020 "don't retest features, and so you might see inconsistent results. Using the "
14021 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14022 "the qemu binary at the same time as the handle is created."
14026 #: ../fish/guestfish-actions.pod:4238
14027 msgid "set-recovery-proc"
14028 msgstr "set-recovery-proc"
14031 #: ../fish/guestfish-actions.pod:4240
14032 msgid "recovery-proc"
14033 msgstr "recovery-proc"
14036 #: ../fish/guestfish-actions.pod:4242
14039 " set-recovery-proc true|false\n"
14042 " set-recovery-proc true|false\n"
14046 #: ../fish/guestfish-actions.pod:4244
14048 "If this is called with the parameter C<false> then L</launch> does not "
14049 "create a recovery process. The purpose of the recovery process is to stop "
14050 "runaway qemu processes in the case where the main program aborts abruptly."
14054 #: ../fish/guestfish-actions.pod:4249
14056 "This only has any effect if called before L</launch>, and the default is "
14061 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
14063 "About the only time when you would want to disable this is if the main "
14064 "process will fork itself into the background (\"daemonize\" itself). In "
14065 "this case the recovery process thinks that the main program has disappeared "
14066 "and so kills qemu, which is not very helpful."
14070 #: ../fish/guestfish-actions.pod:4258
14071 msgid "set-selinux"
14072 msgstr "set-selinux"
14075 #: ../fish/guestfish-actions.pod:4260
14080 #: ../fish/guestfish-actions.pod:4262
14083 " set-selinux true|false\n"
14086 " set-selinux true|false\n"
14090 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
14092 "This sets the selinux flag that is passed to the appliance at boot time. "
14093 "The default is C<selinux=0> (disabled)."
14097 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
14099 "Note that if SELinux is enabled, it is always in Permissive mode "
14100 "(C<enforcing=0>)."
14104 #: ../fish/guestfish-actions.pod:4273
14109 #: ../fish/guestfish-actions.pod:4275
14114 #: ../fish/guestfish-actions.pod:4277
14117 " set-trace true|false\n"
14120 " set-trace true|false\n"
14124 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
14126 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14127 "return values are traced."
14131 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
14133 "If you want to trace C API calls into libguestfs (and other libraries) then "
14134 "possibly a better way is to use the external ltrace(1) command."
14138 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
14140 "Command traces are disabled unless the environment variable "
14141 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14145 #: ../fish/guestfish-actions.pod:4289
14147 "Trace messages are normally sent to C<stderr>, unless you register a "
14148 "callback to send them somewhere else (see L</set-event-callback>)."
14152 #: ../fish/guestfish-actions.pod:4293
14153 msgid "set-verbose"
14154 msgstr "set-verbose"
14157 #: ../fish/guestfish-actions.pod:4295
14162 #: ../fish/guestfish-actions.pod:4297
14165 " set-verbose true|false\n"
14168 " set-verbose true|false\n"
14172 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
14173 msgid "If C<verbose> is true, this turns on verbose messages."
14177 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
14179 "Verbose messages are disabled unless the environment variable "
14180 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14184 #: ../fish/guestfish-actions.pod:4304
14186 "Verbose messages are normally sent to C<stderr>, unless you register a "
14187 "callback to send them somewhere else (see L</set-event-callback>)."
14191 #: ../fish/guestfish-actions.pod:4308
14196 #: ../fish/guestfish-actions.pod:4310
14199 " setcon context\n"
14202 " setcon контекст\n"
14206 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
14208 "This sets the SELinux security context of the daemon to the string "
14213 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
14214 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14218 #: ../fish/guestfish-actions.pod:4317
14223 #: ../fish/guestfish-actions.pod:4319
14226 " setxattr xattr val vallen path\n"
14231 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
14233 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14234 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14238 #: ../fish/guestfish-actions.pod:4325
14239 msgid "See also: L</lsetxattr>, L<attr(5)>."
14240 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14243 #: ../fish/guestfish-actions.pod:4327
14248 #: ../fish/guestfish-actions.pod:4329
14251 " sfdisk device cyls heads sectors 'lines ...'\n"
14256 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
14258 "This is a direct interface to the L<sfdisk(8)> program for creating "
14259 "partitions on block devices."
14263 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
14264 msgid "C<device> should be a block device, for example C</dev/sda>."
14268 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
14270 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14271 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14272 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14273 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14274 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14275 "the kernel) cannot work out the right geometry and you will need to tell it."
14279 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
14281 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14282 "refer to the L<sfdisk(8)> manpage."
14286 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
14288 "To create a single partition occupying the whole disk, you would pass "
14289 "C<lines> as a single element list, when the single element being the string "
14294 #: ../fish/guestfish-actions.pod:4351
14295 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14296 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14299 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
14300 #: ../fish/guestfish-actions.pod:4402
14302 "I<This function is deprecated.> In new code, use the L</part_add> call "
14307 #: ../fish/guestfish-actions.pod:4364
14312 #: ../fish/guestfish-actions.pod:4366
14315 " sfdiskM device 'lines ...'\n"
14320 #: ../fish/guestfish-actions.pod:4368
14322 "This is a simplified interface to the L</sfdisk> command, where partition "
14323 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14324 "you don't need to specify the cyls, heads and sectors parameters which were "
14325 "rarely if ever used anyway."
14329 #: ../fish/guestfish-actions.pod:4374
14330 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14332 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14335 #: ../fish/guestfish-actions.pod:4387
14340 #: ../fish/guestfish-actions.pod:4389
14343 " sfdisk-N device partnum cyls heads sectors line\n"
14348 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
14350 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14351 "(note: C<n> counts from 1)."
14355 #: ../fish/guestfish-actions.pod:4394
14357 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14358 "cyls/heads/sectors parameters."
14362 #: ../fish/guestfish-actions.pod:4397
14363 msgid "See also: L</part-add>"
14364 msgstr "Див. також L</part-add>"
14367 #: ../fish/guestfish-actions.pod:4409
14368 msgid "sfdisk-disk-geometry"
14369 msgstr "sfdisk-disk-geometry"
14372 #: ../fish/guestfish-actions.pod:4411
14375 " sfdisk-disk-geometry device\n"
14378 " sfdisk-disk-geometry пристрій\n"
14382 #: ../fish/guestfish-actions.pod:4413
14384 "This displays the disk geometry of C<device> read from the partition table. "
14385 "Especially in the case where the underlying block device has been resized, "
14386 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14387 "kernel-geometry>)."
14391 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
14392 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
14393 msgid "The result is in human-readable format, and not designed to be parsed."
14397 #: ../fish/guestfish-actions.pod:4421
14398 msgid "sfdisk-kernel-geometry"
14399 msgstr "sfdisk-kernel-geometry"
14402 #: ../fish/guestfish-actions.pod:4423
14405 " sfdisk-kernel-geometry device\n"
14408 " sfdisk-kernel-geometry пристрій\n"
14412 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
14413 msgid "This displays the kernel's idea of the geometry of C<device>."
14417 #: ../fish/guestfish-actions.pod:4430
14422 #: ../fish/guestfish-actions.pod:4432
14425 " sfdisk-l device\n"
14428 " sfdisk-l пристрій\n"
14432 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
14434 "This displays the partition table on C<device>, in the human-readable output "
14435 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14439 #: ../fish/guestfish-actions.pod:4438
14440 msgid "See also: L</part-list>"
14441 msgstr "Див. також L</part-list>"
14444 #: ../fish/guestfish-actions.pod:4440
14446 "I<This function is deprecated.> In new code, use the L</part_list> call "
14451 #: ../fish/guestfish-actions.pod:4447
14456 #: ../fish/guestfish-actions.pod:4449
14466 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14468 "This call runs a command from the guest filesystem via the guest's C</bin/"
14473 #: ../fish/guestfish-actions.pod:4454
14474 msgid "This is like L</command>, but passes the command to:"
14478 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
14481 " /bin/sh -c \"command\"\n"
14486 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
14488 "Depending on the guest's shell, this usually results in wildcards being "
14489 "expanded, shell expressions being interpolated and so on."
14493 #: ../fish/guestfish-actions.pod:4462
14494 msgid "All the provisos about L</command> apply to this call."
14498 #: ../fish/guestfish-actions.pod:4464
14503 #: ../fish/guestfish-actions.pod:4466
14506 " sh-lines command\n"
14509 " sh-lines команда\n"
14513 #: ../fish/guestfish-actions.pod:4468
14514 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14518 #: ../fish/guestfish-actions.pod:4471
14519 msgid "See also: L</command-lines>"
14520 msgstr "Див. також L</command-lines>"
14523 #: ../fish/guestfish-actions.pod:4473
14528 #: ../fish/guestfish-actions.pod:4475
14534 " sleep час_у_секундах\n"
14538 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
14539 msgid "Sleep for C<secs> seconds."
14543 #: ../fish/guestfish-actions.pod:4479
14548 #: ../fish/guestfish-actions.pod:4481
14558 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
14559 msgid "This is the same as the C<stat(2)> system call."
14563 #: ../fish/guestfish-actions.pod:4487
14568 #: ../fish/guestfish-actions.pod:4489
14578 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
14580 "Returns file system statistics for any mounted file system. C<path> should "
14581 "be a file or directory in the mounted file system (typically it is the mount "
14582 "point itself, but it doesn't need to be)."
14586 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
14587 msgid "This is the same as the C<statvfs(2)> system call."
14591 #: ../fish/guestfish-actions.pod:4497
14596 #: ../fish/guestfish-actions.pod:4499
14606 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
14608 "This runs the L<strings(1)> command on a file and returns the list of "
14609 "printable strings found."
14613 #: ../fish/guestfish-actions.pod:4507
14618 #: ../fish/guestfish-actions.pod:4509
14621 " strings-e encoding path\n"
14624 " strings-e кодування шлях\n"
14628 #: ../fish/guestfish-actions.pod:4511
14630 "This is like the L</strings> command, but allows you to specify the encoding "
14631 "of strings that are looked for in the source file C<path>."
14635 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
14636 msgid "Allowed encodings are:"
14637 msgstr "Можливими кодуваннями є:"
14640 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14645 #: ../fish/guestfish-actions.pod:4521
14647 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14648 "ISO-8859-X (this is what L</strings> uses)."
14652 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
14657 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
14658 msgid "Single 8-bit-byte characters."
14659 msgstr "Окремі 8-бітові-байтові символи."
14662 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14667 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14668 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14672 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14673 msgid "l (lower case letter L)"
14677 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14679 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
14680 "examining binaries in Windows guests."
14684 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
14689 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
14690 msgid "32-bit big endian such as UCS-4BE."
14694 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
14699 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
14700 msgid "32-bit little endian such as UCS-4LE."
14704 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14705 msgid "The returned strings are transcoded to UTF-8."
14709 #: ../fish/guestfish-actions.pod:4553
14710 msgid "swapoff-device"
14711 msgstr "swapoff-device"
14714 #: ../fish/guestfish-actions.pod:4555
14717 " swapoff-device device\n"
14720 " swapoff-device пристрій\n"
14724 #: ../fish/guestfish-actions.pod:4557
14726 "This command disables the libguestfs appliance swap device or partition "
14727 "named C<device>. See L</swapon-device>."
14731 #: ../fish/guestfish-actions.pod:4561
14732 msgid "swapoff-file"
14733 msgstr "swapoff-file"
14736 #: ../fish/guestfish-actions.pod:4563
14739 " swapoff-file file\n"
14742 " swapoff-file файл\n"
14746 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
14747 msgid "This command disables the libguestfs appliance swap on file."
14751 #: ../fish/guestfish-actions.pod:4567
14752 msgid "swapoff-label"
14753 msgstr "swapoff-label"
14756 #: ../fish/guestfish-actions.pod:4569
14759 " swapoff-label label\n"
14762 " swapoff-label мітка\n"
14766 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14768 "This command disables the libguestfs appliance swap on labeled swap "
14773 #: ../fish/guestfish-actions.pod:4574
14774 msgid "swapoff-uuid"
14775 msgstr "swapoff-uuid"
14778 #: ../fish/guestfish-actions.pod:4576
14781 " swapoff-uuid uuid\n"
14784 " swapoff-uuid uuid\n"
14788 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14790 "This command disables the libguestfs appliance swap partition with the given "
14795 #: ../fish/guestfish-actions.pod:4581
14796 msgid "swapon-device"
14797 msgstr "swapon-device"
14800 #: ../fish/guestfish-actions.pod:4583
14803 " swapon-device device\n"
14806 " swapon-device пристрій\n"
14810 #: ../fish/guestfish-actions.pod:4585
14812 "This command enables the libguestfs appliance to use the swap device or "
14813 "partition named C<device>. The increased memory is made available for all "
14814 "commands, for example those run using L</command> or L</sh>."
14818 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14820 "Note that you should not swap to existing guest swap partitions unless you "
14821 "know what you are doing. They may contain hibernation information, or other "
14822 "information that the guest doesn't want you to trash. You also risk leaking "
14823 "information about the host to the guest this way. Instead, attach a new "
14824 "host device to the guest and swap on that."
14828 #: ../fish/guestfish-actions.pod:4597
14829 msgid "swapon-file"
14830 msgstr "swapon-file"
14833 #: ../fish/guestfish-actions.pod:4599
14836 " swapon-file file\n"
14839 " swapon-file файл\n"
14843 #: ../fish/guestfish-actions.pod:4601
14845 "This command enables swap to a file. See L</swapon-device> for other notes."
14849 #: ../fish/guestfish-actions.pod:4604
14850 msgid "swapon-label"
14851 msgstr "swapon-label"
14854 #: ../fish/guestfish-actions.pod:4606
14857 " swapon-label label\n"
14860 " swapon-label мітка\n"
14864 #: ../fish/guestfish-actions.pod:4608
14866 "This command enables swap to a labeled swap partition. See L</swapon-"
14867 "device> for other notes."
14871 #: ../fish/guestfish-actions.pod:4611
14872 msgid "swapon-uuid"
14873 msgstr "swapon-uuid"
14876 #: ../fish/guestfish-actions.pod:4613
14879 " swapon-uuid uuid\n"
14882 " swapon-uuid uuid\n"
14886 #: ../fish/guestfish-actions.pod:4615
14888 "This command enables swap to a swap partition with the given UUID. See L</"
14889 "swapon-device> for other notes."
14893 #: ../fish/guestfish-actions.pod:4618
14898 #: ../fish/guestfish-actions.pod:4620
14908 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14910 "This syncs the disk, so that any writes are flushed through to the "
14911 "underlying disk image."
14915 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14917 "You should always call this if you have modified a disk image, before "
14918 "closing the handle."
14922 #: ../fish/guestfish-actions.pod:4628
14927 #: ../fish/guestfish-actions.pod:4630
14937 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14939 "This command returns up to the last 10 lines of a file as a list of strings."
14943 #: ../fish/guestfish-actions.pod:4638
14948 #: ../fish/guestfish-actions.pod:4640
14951 " tail-n nrlines path\n"
14956 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14958 "If the parameter C<nrlines> is a positive number, this returns the last "
14959 "C<nrlines> lines of the file C<path>."
14963 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14965 "If the parameter C<nrlines> is a negative number, this returns lines from "
14966 "the file C<path>, starting with the C<-nrlines>th line."
14970 #: ../fish/guestfish-actions.pod:4653
14975 #: ../fish/guestfish-actions.pod:4655
14978 " tar-in (tarfile|-) directory\n"
14981 " tar-in (файл_tar|-) каталог\n"
14985 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14987 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14988 "tar file) into C<directory>."
14992 #: ../fish/guestfish-actions.pod:4660
14993 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14997 #: ../fish/guestfish-actions.pod:4665
15002 #: ../fish/guestfish-actions.pod:4667
15005 " tar-out directory (tarfile|-)\n"
15008 " tar-out каталог (файл tar|-)\n"
15012 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
15014 "This command packs the contents of C<directory> and downloads it to local "
15019 #: ../fish/guestfish-actions.pod:4672
15020 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15024 #: ../fish/guestfish-actions.pod:4677
15029 #: ../fish/guestfish-actions.pod:4679
15032 " tgz-in (tarball|-) directory\n"
15035 " tgz-in (архів tar|-) каталог\n"
15039 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
15041 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15042 "tar file) into C<directory>."
15046 #: ../fish/guestfish-actions.pod:4684
15047 msgid "To upload an uncompressed tarball, use L</tar-in>."
15051 #: ../fish/guestfish-actions.pod:4688
15056 #: ../fish/guestfish-actions.pod:4690
15059 " tgz-out directory (tarball|-)\n"
15062 " tgz-out каталог (архів tar|-)\n"
15066 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
15068 "This command packs the contents of C<directory> and downloads it to local "
15073 #: ../fish/guestfish-actions.pod:4695
15074 msgid "To download an uncompressed tarball, use L</tar-out>."
15078 #: ../fish/guestfish-actions.pod:4699
15083 #: ../fish/guestfish-actions.pod:4701
15093 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
15095 "Touch acts like the L<touch(1)> command. It can be used to update the "
15096 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15101 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
15103 "This command only works on regular files, and will fail on other file types "
15104 "such as directories, symbolic links, block special etc."
15108 #: ../fish/guestfish-actions.pod:4710
15113 #: ../fish/guestfish-actions.pod:4712
15123 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
15125 "This command truncates C<path> to a zero-length file. The file must exist "
15130 #: ../fish/guestfish-actions.pod:4717
15131 msgid "truncate-size"
15132 msgstr "truncate-size"
15135 #: ../fish/guestfish-actions.pod:4719
15138 " truncate-size path size\n"
15141 " truncate-size шлях розмір\n"
15145 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
15147 "This command truncates C<path> to size C<size> bytes. The file must exist "
15152 #: ../fish/guestfish-actions.pod:4724
15154 "If the current file size is less than C<size> then the file is extended to "
15155 "the required size with zero bytes. This creates a sparse file (ie. disk "
15156 "blocks are not allocated for the file until you write to it). To create a "
15157 "non-sparse file of zeroes, use L</fallocate64> instead."
15161 #: ../fish/guestfish-actions.pod:4730
15166 #: ../fish/guestfish-actions.pod:4732
15169 " tune2fs-l device\n"
15172 " tune2fs-l пристрій\n"
15176 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
15178 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15183 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
15185 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15186 "for more details. The list of fields returned isn't clearly defined, and "
15187 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15188 "and the filesystem itself."
15192 #: ../fish/guestfish-actions.pod:4742
15197 #: ../fish/guestfish-actions.pod:4744
15200 " txz-in (tarball|-) directory\n"
15203 " txz-in (архів tar|-) каталог\n"
15207 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
15209 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15210 "tar file) into C<directory>."
15214 #: ../fish/guestfish-actions.pod:4751
15219 #: ../fish/guestfish-actions.pod:4753
15222 " txz-out directory (tarball|-)\n"
15225 " txz-out каталог (архів tar|-)\n"
15229 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
15231 "This command packs the contents of C<directory> and downloads it to local "
15232 "file C<tarball> (as an xz compressed tar archive)."
15236 #: ../fish/guestfish-actions.pod:4760
15241 #: ../fish/guestfish-actions.pod:4762
15251 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
15253 "This function sets the mask used for creating new files and device nodes to "
15258 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15260 "Typical umask values would be C<022> which creates new files with "
15261 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15262 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15266 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
15268 "The default umask is C<022>. This is important because it means that "
15269 "directories and device nodes will be created with C<0644> or C<0755> mode "
15270 "even if you specify C<0777>."
15274 #: ../fish/guestfish-actions.pod:4776
15275 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15276 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15279 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
15280 msgid "This call returns the previous umask."
15284 #: ../fish/guestfish-actions.pod:4781
15289 #: ../fish/guestfish-actions.pod:4783
15294 #: ../fish/guestfish-actions.pod:4785
15297 " umount pathordevice\n"
15300 " umount шлях_або_пристрій\n"
15304 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
15306 "This unmounts the given filesystem. The filesystem may be specified either "
15307 "by its mountpoint (path) or the device which contains the filesystem."
15311 #: ../fish/guestfish-actions.pod:4791
15313 msgstr "umount-all"
15316 #: ../fish/guestfish-actions.pod:4793
15317 msgid "unmount-all"
15318 msgstr "unmount-all"
15321 #: ../fish/guestfish-actions.pod:4795
15331 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
15332 msgid "This unmounts all mounted filesystems."
15336 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
15337 msgid "Some internal mounts are not unmounted by this call."
15341 #: ../fish/guestfish-actions.pod:4801
15346 #: ../fish/guestfish-actions.pod:4803
15349 " upload (filename|-) remotefilename\n"
15352 " upload (назва_файла|-) назва_віддаленого_файла\n"
15356 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
15357 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
15358 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15362 #: ../fish/guestfish-actions.pod:4810
15363 msgid "See also L</download>."
15364 msgstr "Див. також L</download>."
15367 #: ../fish/guestfish-actions.pod:4814
15368 msgid "upload-offset"
15369 msgstr "upload-offset"
15372 #: ../fish/guestfish-actions.pod:4816
15375 " upload-offset (filename|-) remotefilename offset\n"
15378 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15382 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
15384 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15385 "The intention is to overwrite parts of existing files or devices, although "
15386 "if a non-existant file is specified then it is created with a \"hole\" "
15387 "before C<offset>. The size of the data written is implicit in the size of "
15388 "the source C<filename>."
15392 #: ../fish/guestfish-actions.pod:4828
15394 "Note that there is no limit on the amount of data that can be uploaded with "
15395 "this call, unlike with L</pwrite>, and this call always writes the full "
15396 "amount unless an error occurs."
15400 #: ../fish/guestfish-actions.pod:4833
15401 msgid "See also L</upload>, L</pwrite>."
15402 msgstr "Див. також L</upload>, L</pwrite>."
15405 #: ../fish/guestfish-actions.pod:4837
15410 #: ../fish/guestfish-actions.pod:4839
15413 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15418 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
15419 msgid "This command sets the timestamps of a file with nanosecond precision."
15423 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
15425 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15430 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
15432 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15433 "nanoseconds from the epoch."
15437 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
15439 "If the C<*nsecs> field contains the special value C<-1> then the "
15440 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15441 "ignored in this case)."
15445 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
15447 "If the C<*nsecs> field contains the special value C<-2> then the "
15448 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15453 #: ../fish/guestfish-actions.pod:4858
15458 #: ../fish/guestfish-actions.pod:4860
15468 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
15470 "Return the libguestfs version number that the program is linked against."
15474 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15476 "Note that because of dynamic linking this is not necessarily the version of "
15477 "libguestfs that you compiled against. You can compile the program, and then "
15478 "at runtime dynamically link against a completely different C<libguestfs.so> "
15483 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
15485 "This call was added in version C<1.0.58>. In previous versions of "
15486 "libguestfs there was no way to get the version number. From C code you can "
15487 "use dynamic linker functions to find out if this symbol exists (if it "
15488 "doesn't, then it's an earlier version)."
15492 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
15494 "The call returns a structure with four elements. The first three (C<major>, "
15495 "C<minor> and C<release>) are numbers and correspond to the usual version "
15496 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15497 "but may be used for distro-specific information."
15501 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
15503 "To construct the original version string: C<$major.$minor.$release$extra>"
15507 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
15508 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15512 #: ../fish/guestfish-actions.pod:4887
15514 "I<Note:> Don't use this call to test for availability of features. In "
15515 "enterprise distributions we backport features from later versions into "
15516 "earlier versions, making this an unreliable way to test for features. Use "
15517 "L</available> instead."
15521 #: ../fish/guestfish-actions.pod:4893
15526 #: ../fish/guestfish-actions.pod:4895
15529 " vfs-label device\n"
15532 " vfs-label пристрій\n"
15536 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
15537 msgid "This returns the filesystem label of the filesystem on C<device>."
15541 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
15542 msgid "If the filesystem is unlabeled, this returns the empty string."
15546 #: ../fish/guestfish-actions.pod:4902
15547 msgid "To find a filesystem from the label, use L</findfs-label>."
15551 #: ../fish/guestfish-actions.pod:4904
15556 #: ../fish/guestfish-actions.pod:4906
15559 " vfs-type device\n"
15562 " vfs-type пристрій\n"
15566 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
15568 "This command gets the filesystem type corresponding to the filesystem on "
15573 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
15575 "For most filesystems, the result is the name of the Linux VFS module which "
15576 "would be used to mount this filesystem if you mounted it without specifying "
15577 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15581 #: ../fish/guestfish-actions.pod:4916
15586 #: ../fish/guestfish-actions.pod:4918
15589 " vfs-uuid device\n"
15592 " vfs-uuid пристрій\n"
15596 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
15597 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15601 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
15602 msgid "If the filesystem does not have a UUID, this returns the empty string."
15606 #: ../fish/guestfish-actions.pod:4925
15607 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15611 #: ../fish/guestfish-actions.pod:4927
15612 msgid "vg-activate"
15613 msgstr "vg-activate"
15616 #: ../fish/guestfish-actions.pod:4929
15619 " vg-activate true|false 'volgroups ...'\n"
15624 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15626 "This command activates or (if C<activate> is false) deactivates all logical "
15627 "volumes in the listed volume groups C<volgroups>."
15631 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
15632 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15636 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
15638 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15639 "activated or deactivated."
15643 #: ../fish/guestfish-actions.pod:4939
15644 msgid "vg-activate-all"
15645 msgstr "vg-activate-all"
15648 #: ../fish/guestfish-actions.pod:4941
15651 " vg-activate-all true|false\n"
15654 " vg-activate-all true|false\n"
15658 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
15660 "This command activates or (if C<activate> is false) deactivates all logical "
15661 "volumes in all volume groups."
15665 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
15666 msgid "This command is the same as running C<vgchange -a y|n>"
15670 #: ../fish/guestfish-actions.pod:4948
15675 #: ../fish/guestfish-actions.pod:4950
15678 " vgcreate volgroup 'physvols ...'\n"
15683 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
15685 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15686 "of physical volumes C<physvols>."
15690 #: ../fish/guestfish-actions.pod:4955
15695 #: ../fish/guestfish-actions.pod:4957
15698 " vglvuuids vgname\n"
15703 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
15705 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15706 "volumes created in this volume group."
15710 #: ../fish/guestfish-actions.pod:4962
15712 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15713 "logical volumes and volume groups."
15717 #: ../fish/guestfish-actions.pod:4965
15718 msgid "See also L</vgpvuuids>."
15719 msgstr "Див. також L</vgpvuuids>."
15722 #: ../fish/guestfish-actions.pod:4967
15727 #: ../fish/guestfish-actions.pod:4969
15730 " vgpvuuids vgname\n"
15735 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
15737 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15738 "volumes that this volume group resides on."
15742 #: ../fish/guestfish-actions.pod:4974
15744 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15745 "physical volumes and volume groups."
15749 #: ../fish/guestfish-actions.pod:4977
15750 msgid "See also L</vglvuuids>."
15751 msgstr "Див. також L</vglvuuids>."
15754 #: ../fish/guestfish-actions.pod:4979
15759 #: ../fish/guestfish-actions.pod:4981
15762 " vgremove vgname\n"
15767 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
15768 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15772 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
15774 "This also forcibly removes all logical volumes in the volume group (if any)."
15778 #: ../fish/guestfish-actions.pod:4988
15783 #: ../fish/guestfish-actions.pod:4990
15786 " vgrename volgroup newvolgroup\n"
15791 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
15792 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15796 #: ../fish/guestfish-actions.pod:4994
15801 #: ../fish/guestfish-actions.pod:4996
15811 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
15813 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15818 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15820 "This returns a list of just the volume group names that were detected (eg. "
15825 #: ../fish/guestfish-actions.pod:5004
15826 msgid "See also L</vgs-full>."
15827 msgstr "Див. також L</vgs-full>."
15830 #: ../fish/guestfish-actions.pod:5006
15835 #: ../fish/guestfish-actions.pod:5008
15845 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15847 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15848 "> command. The \"full\" version includes all fields."
15852 #: ../fish/guestfish-actions.pod:5013
15857 #: ../fish/guestfish-actions.pod:5015
15867 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15869 "This rescans all block devices and rebuilds the list of LVM physical "
15870 "volumes, volume groups and logical volumes."
15874 #: ../fish/guestfish-actions.pod:5020
15879 #: ../fish/guestfish-actions.pod:5022
15887 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15888 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15892 #: ../fish/guestfish-actions.pod:5026
15897 #: ../fish/guestfish-actions.pod:5028
15907 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15909 "This command counts the characters in a file, using the C<wc -c> external "
15914 #: ../fish/guestfish-actions.pod:5033
15919 #: ../fish/guestfish-actions.pod:5035
15929 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15931 "This command counts the lines in a file, using the C<wc -l> external command."
15935 #: ../fish/guestfish-actions.pod:5040
15940 #: ../fish/guestfish-actions.pod:5042
15950 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15952 "This command counts the words in a file, using the C<wc -w> external command."
15956 #: ../fish/guestfish-actions.pod:5047
15961 #: ../fish/guestfish-actions.pod:5049
15964 " write path content\n"
15967 " write шлях дані\n"
15971 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15973 "This call creates a file called C<path>. The content of the file is the "
15974 "string C<content> (which can contain any 8 bit data)."
15978 #: ../fish/guestfish-actions.pod:5054
15979 msgid "See also L</write-append>."
15983 #: ../fish/guestfish-actions.pod:5059
15984 msgid "write-append"
15988 #: ../fish/guestfish-actions.pod:5061
15991 " write-append path content\n"
15996 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15998 "This call appends C<content> to the end of file C<path>. If C<path> does "
15999 "not exist, then a new file is created."
16003 #: ../fish/guestfish-actions.pod:5066
16004 msgid "See also L</write>."
16008 #: ../fish/guestfish-actions.pod:5071
16010 msgstr "write-file"
16013 #: ../fish/guestfish-actions.pod:5073
16016 " write-file path content size\n"
16021 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
16023 "This call creates a file called C<path>. The contents of the file is the "
16024 "string C<content> (which can contain any 8 bit data), with length C<size>."
16028 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
16030 "As a special case, if C<size> is C<0> then the length is calculated using "
16031 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16035 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
16037 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16038 "I<not> work, even if the length is specified."
16042 #: ../fish/guestfish-actions.pod:5089
16044 "I<This function is deprecated.> In new code, use the L</write> call instead."
16048 #: ../fish/guestfish-actions.pod:5096
16053 #: ../fish/guestfish-actions.pod:5098
16056 " zegrep regex path\n"
16059 " zegrep формальний_вираз шлях\n"
16063 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
16065 "This calls the external C<zegrep> program and returns the matching lines."
16069 #: ../fish/guestfish-actions.pod:5106
16074 #: ../fish/guestfish-actions.pod:5108
16077 " zegrepi regex path\n"
16082 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
16084 "This calls the external C<zegrep -i> program and returns the matching lines."
16088 #: ../fish/guestfish-actions.pod:5116
16093 #: ../fish/guestfish-actions.pod:5118
16103 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
16104 msgid "This command writes zeroes over the first few blocks of C<device>."
16108 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
16110 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16111 "securely wipe the device). It should be sufficient to remove any partition "
16112 "tables, filesystem superblocks and so on."
16116 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
16117 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
16119 "If blocks are already zero, then this command avoids writing zeroes. This "
16120 "prevents the underlying device from becoming non-sparse or growing "
16125 #: ../fish/guestfish-actions.pod:5130
16126 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16130 #: ../fish/guestfish-actions.pod:5133
16131 msgid "zero-device"
16132 msgstr "zero-device"
16135 #: ../fish/guestfish-actions.pod:5135
16138 " zero-device device\n"
16141 " zero-device пристрій\n"
16145 #: ../fish/guestfish-actions.pod:5137
16147 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16148 "which just zeroes the first few blocks of a device."
16152 #: ../fish/guestfish-actions.pod:5148
16157 #: ../fish/guestfish-actions.pod:5150
16160 " zerofree device\n"
16163 " zerofree пристрій\n"
16167 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
16169 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16170 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16171 "possible to compress the filesystem more effectively."
16175 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
16176 msgid "You should B<not> run this program if the filesystem is mounted."
16180 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
16182 "It is possible that using this program can damage the filesystem or data on "
16187 #: ../fish/guestfish-actions.pod:5163
16192 #: ../fish/guestfish-actions.pod:5165
16195 " zfgrep pattern path\n"
16198 " zfgrep шаблон шлях\n"
16202 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
16204 "This calls the external C<zfgrep> program and returns the matching lines."
16208 #: ../fish/guestfish-actions.pod:5173
16213 #: ../fish/guestfish-actions.pod:5175
16216 " zfgrepi pattern path\n"
16219 " zfgrepi шаблон шлях\n"
16223 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
16225 "This calls the external C<zfgrep -i> program and returns the matching lines."
16229 #: ../fish/guestfish-actions.pod:5183
16234 #: ../fish/guestfish-actions.pod:5185
16237 " zfile meth path\n"
16240 " zfile метод шлях\n"
16244 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
16246 "This command runs C<file> after first decompressing C<path> using C<method>."
16250 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
16251 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16255 #: ../fish/guestfish-actions.pod:5192
16257 "Since 1.0.63, use L</file> instead which can now process compressed files."
16261 #: ../fish/guestfish-actions.pod:5195
16263 "I<This function is deprecated.> In new code, use the L</file> call instead."
16267 #: ../fish/guestfish-actions.pod:5202
16272 #: ../fish/guestfish-actions.pod:5204
16275 " zgrep regex path\n"
16278 " zgrep формальний_вираз шлях\n"
16282 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
16284 "This calls the external C<zgrep> program and returns the matching lines."
16288 #: ../fish/guestfish-actions.pod:5212
16293 #: ../fish/guestfish-actions.pod:5214
16296 " zgrepi regex path\n"
16299 " zgrepi формальний_вираз шлях\n"
16303 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
16305 "This calls the external C<zgrep -i> program and returns the matching lines."
16309 #: ../fish/guestfish-commands.pod:1
16314 #: ../fish/guestfish-commands.pod:3
16319 #: ../fish/guestfish-commands.pod:5
16322 " alloc filename size\n"
16327 #: ../fish/guestfish-commands.pod:7
16329 "This creates an empty (zeroed) file of the given size, and then adds so it "
16330 "can be further examined."
16334 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16335 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16339 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16340 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16344 #: ../fish/guestfish-commands.pod:14
16346 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16347 "image, see L</PREPARED DISK IMAGES>."
16351 #: ../fish/guestfish-commands.pod:17
16356 #: ../fish/guestfish-commands.pod:19
16359 " copy-in local [local ...] /remotedir\n"
16364 #: ../fish/guestfish-commands.pod:21
16366 "C<copy-in> copies local files or directories recursively into the disk "
16367 "image, placing them in the directory called C</remotedir> (which must "
16368 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16369 "other commands as necessary."
16373 #: ../fish/guestfish-commands.pod:26
16375 "Multiple local files and directories can be specified, but the last "
16376 "parameter must always be a remote directory. Wildcards cannot be used."
16380 #: ../fish/guestfish-commands.pod:30
16385 #: ../fish/guestfish-commands.pod:32
16388 " copy-out remote [remote ...] localdir\n"
16393 #: ../fish/guestfish-commands.pod:34
16395 "C<copy-out> copies remote files or directories recursively out of the disk "
16396 "image, placing them on the host disk in a local directory called C<localdir> "
16397 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16398 "download>, L</tar-out> and other commands as necessary."
16402 #: ../fish/guestfish-commands.pod:40
16404 "Multiple remote files and directories can be specified, but the last "
16405 "parameter must always be a local directory. To download to the current "
16406 "directory, use C<.> as in:"
16410 #: ../fish/guestfish-commands.pod:44
16413 " copy-out /home .\n"
16416 " copy-out /home .\n"
16420 #: ../fish/guestfish-commands.pod:46
16422 "Wildcards cannot be used in the ordinary command, but you can use them with "
16423 "the help of L</glob> like this:"
16427 #: ../fish/guestfish-commands.pod:49
16430 " glob copy-out /home/* .\n"
16433 " glob copy-out /home/* .\n"
16437 #: ../fish/guestfish-commands.pod:51
16442 #: ../fish/guestfish-commands.pod:53
16445 " display filename\n"
16450 #: ../fish/guestfish-commands.pod:55
16452 "Use C<display> (a graphical display program) to display an image file. It "
16453 "downloads the file, and runs C<display> on it."
16457 #: ../fish/guestfish-commands.pod:58
16459 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16460 "environment variable. For example to use the GNOME display program:"
16464 #: ../fish/guestfish-commands.pod:61
16467 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16472 #: ../fish/guestfish-commands.pod:63
16473 msgid "See also L<display(1)>."
16477 #: ../fish/guestfish-commands.pod:65
16482 #: ../fish/guestfish-commands.pod:67
16485 " echo [params ...]\n"
16488 " echo [параметри...]\n"
16492 #: ../fish/guestfish-commands.pod:69
16493 msgid "This echos the parameters to the terminal."
16497 #: ../fish/guestfish-commands.pod:71
16502 #: ../fish/guestfish-commands.pod:73
16507 #: ../fish/guestfish-commands.pod:75
16512 #: ../fish/guestfish-commands.pod:77
16518 " edit назва_файла\n"
16522 #: ../fish/guestfish-commands.pod:79
16524 "This is used to edit a file. It downloads the file, edits it locally using "
16525 "your editor, then uploads the result."
16529 #: ../fish/guestfish-commands.pod:82
16531 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16532 "or C<emacs> you will get those corresponding editors."
16536 #: ../fish/guestfish-commands.pod:86
16541 #: ../fish/guestfish-commands.pod:88
16544 " glob command args...\n"
16547 " glob команда параметри...\n"
16551 #: ../fish/guestfish-commands.pod:90
16553 "Expand wildcards in any paths in the args list, and run C<command> "
16554 "repeatedly on each matching path."
16558 #: ../fish/guestfish-commands.pod:93
16559 msgid "See L</WILDCARDS AND GLOBBING>."
16560 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16563 #: ../fish/guestfish-commands.pod:95
16568 #: ../fish/guestfish-commands.pod:97
16571 " hexedit <filename|device>\n"
16572 " hexedit <filename|device> <max>\n"
16573 " hexedit <filename|device> <start> <max>\n"
16578 #: ../fish/guestfish-commands.pod:101
16580 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16585 #: ../fish/guestfish-commands.pod:104
16587 "This command works by downloading potentially the whole file or device, "
16588 "editing it locally, then uploading it. If the file or device is large, you "
16589 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16590 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
16591 "usual modifiers allowed such as C<1M> (1 megabyte)."
16595 #: ../fish/guestfish-commands.pod:111
16596 msgid "For example to edit the first few sectors of a disk you might do:"
16600 #: ../fish/guestfish-commands.pod:114
16603 " hexedit /dev/sda 1M\n"
16606 " hexedit /dev/sda 1M\n"
16610 #: ../fish/guestfish-commands.pod:116
16612 "which would allow you to edit anywhere within the first megabyte of the disk."
16616 #: ../fish/guestfish-commands.pod:119
16617 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16621 #: ../fish/guestfish-commands.pod:121
16624 " hexedit /dev/sda1 0x400 0x400\n"
16627 " hexedit /dev/sda1 0x400 0x400\n"
16631 #: ../fish/guestfish-commands.pod:123
16632 msgid "(assuming the superblock is in the standard location)."
16636 #: ../fish/guestfish-commands.pod:125
16638 "This command requires the external L<hexedit(1)> program. You can specify "
16639 "another program to use by setting the C<HEXEDITOR> environment variable."
16643 #: ../fish/guestfish-commands.pod:129
16644 msgid "See also L</hexdump>."
16645 msgstr "Див. також L</hexdump>."
16648 #: ../fish/guestfish-commands.pod:131
16653 #: ../fish/guestfish-commands.pod:133
16661 #: ../fish/guestfish-commands.pod:135
16663 "Change the local directory, ie. the current directory of guestfish itself."
16667 #: ../fish/guestfish-commands.pod:138
16668 msgid "Note that C<!cd> won't do what you might expect."
16672 #: ../fish/guestfish-commands.pod:140
16677 #: ../fish/guestfish-commands.pod:142
16682 #: ../fish/guestfish-commands.pod:144
16692 #: ../fish/guestfish-commands.pod:146
16693 msgid "Opens the manual page for guestfish."
16697 #: ../fish/guestfish-commands.pod:148
16702 #: ../fish/guestfish-commands.pod:150
16707 #: ../fish/guestfish-commands.pod:152
16715 #: ../fish/guestfish-commands.pod:154
16723 #: ../fish/guestfish-commands.pod:156
16724 msgid "This is used to view a file."
16728 #: ../fish/guestfish-commands.pod:158
16730 "The default viewer is C<$PAGER>. However if you use the alternate command "
16731 "C<less> you will get the C<less> command specifically."
16735 #: ../fish/guestfish-commands.pod:161
16740 #: ../fish/guestfish-commands.pod:163
16748 #: ../fish/guestfish-commands.pod:165
16750 "Close and reopen the libguestfs handle. It is not necessary to use this "
16751 "normally, because the handle is closed properly when guestfish exits. "
16752 "However this is occasionally useful for testing."
16756 #: ../fish/guestfish-commands.pod:169
16761 #: ../fish/guestfish-commands.pod:171
16764 " setenv VAR value\n"
16769 #: ../fish/guestfish-commands.pod:173
16770 msgid "Set the environment variable C<VAR> to the string C<value>."
16774 #: ../fish/guestfish-commands.pod:175
16776 "To print the value of an environment variable use a shell command such as:"
16780 #: ../fish/guestfish-commands.pod:178
16788 #: ../fish/guestfish-commands.pod:180
16793 #: ../fish/guestfish-commands.pod:182
16796 " sparse filename size\n"
16801 #: ../fish/guestfish-commands.pod:184
16803 "This creates an empty sparse file of the given size, and then adds so it can "
16804 "be further examined."
16808 #: ../fish/guestfish-commands.pod:187
16810 "In all respects it works the same as the L</alloc> command, except that the "
16811 "image file is allocated sparsely, which means that disk blocks are not "
16812 "assigned to the file until they are needed. Sparse disk files only use "
16813 "space when written to, but they are slower and there is a danger you could "
16814 "run out of real disk space during a write operation."
16818 #: ../fish/guestfish-commands.pod:197
16823 #: ../fish/guestfish-commands.pod:199
16833 #: ../fish/guestfish-commands.pod:201
16835 "This command returns a list of the optional groups known to the daemon, and "
16836 "indicates which ones are supported by this build of the libguestfs appliance."
16840 #: ../fish/guestfish-commands.pod:205
16841 msgid "See also L<guestfs(3)/AVAILABILITY>."
16845 #: ../fish/guestfish-commands.pod:207
16850 #: ../fish/guestfish-commands.pod:209
16853 " time command args...\n"
16858 #: ../fish/guestfish-commands.pod:211
16860 "Run the command as usual, but print the elapsed time afterwards. This can "
16861 "be useful for benchmarking operations."
16865 #: ../fish/guestfish-commands.pod:214
16870 #: ../fish/guestfish-commands.pod:216
16878 #: ../fish/guestfish-commands.pod:218
16879 msgid "Remove C<VAR> from the environment."
16883 #: ../fish/guestfish.pod:5
16884 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16888 #: ../fish/guestfish.pod:9
16891 " guestfish [--options] [commands]\n"
16896 #: ../fish/guestfish.pod:11
16904 #: ../fish/guestfish.pod:13
16907 " guestfish [--ro|--rw] -a disk.img\n"
16912 #: ../fish/guestfish.pod:15
16915 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16920 #: ../fish/guestfish.pod:17
16923 " guestfish -d libvirt-domain\n"
16928 #: ../fish/guestfish.pod:19
16931 " guestfish [--ro|--rw] -a disk.img -i\n"
16936 #: ../fish/guestfish.pod:21
16939 " guestfish -d libvirt-domain -i\n"
16944 #: ../fish/guestfish.pod:25
16946 "Using guestfish in read/write mode on live virtual machines can be "
16947 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
16948 "option to use guestfish safely if the disk image or virtual machine might be "
16953 #: ../fish/guestfish.pod:32
16955 "Guestfish is a shell and command-line tool for examining and modifying "
16956 "virtual machine filesystems. It uses libguestfs and exposes all of the "
16957 "functionality of the guestfs API, see L<guestfs(3)>."
16961 #: ../fish/guestfish.pod:36
16963 "Guestfish gives you structured access to the libguestfs API, from shell "
16964 "scripts or the command line or interactively. If you want to rescue a "
16965 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16970 #: ../fish/guestfish.pod:43
16971 msgid "As an interactive shell"
16975 #: ../fish/guestfish.pod:45
16983 #: ../fish/guestfish.pod:47
16986 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16987 " editing virtual machine filesystems.\n"
16992 #: ../fish/guestfish.pod:50
16995 " Type: 'help' for a list of commands\n"
16996 " 'man' to read the manual\n"
16997 " 'quit' to quit the shell\n"
17002 #: ../fish/guestfish.pod:54
17005 " ><fs> add-ro disk.img\n"
17007 " ><fs> list-filesystems\n"
17008 " /dev/sda1: ext4\n"
17009 " /dev/vg_guest/lv_root: ext4\n"
17010 " /dev/vg_guest/lv_swap: swap\n"
17011 " ><fs> mount /dev/vg_guest/lv_root /\n"
17012 " ><fs> cat /etc/fstab\n"
17014 " # Created by anaconda\n"
17021 #: ../fish/guestfish.pod:67
17022 msgid "From shell scripts"
17026 #: ../fish/guestfish.pod:69
17027 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17031 #: ../fish/guestfish.pod:71
17034 " guestfish <<_EOF_\n"
17037 " mount /dev/vg_guest/lv_root /\n"
17038 " write /etc/motd \"Welcome, new users\"\n"
17044 #: ../fish/guestfish.pod:78
17045 msgid "List the LVM logical volumes in a disk image:"
17049 #: ../fish/guestfish.pod:80
17052 " guestfish -a disk.img --ro <<_EOF_\n"
17060 #: ../fish/guestfish.pod:85
17061 msgid "List all the filesystems in a disk image:"
17065 #: ../fish/guestfish.pod:87
17068 " guestfish -a disk.img --ro <<_EOF_\n"
17070 " list-filesystems\n"
17076 #: ../fish/guestfish.pod:92
17077 msgid "On one command line"
17081 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17082 msgid "Update C</etc/resolv.conf> in a guest:"
17086 #: ../fish/guestfish.pod:96
17090 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17091 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17096 #: ../fish/guestfish.pod:100
17097 msgid "Edit C</boot/grub/grub.conf> interactively:"
17101 #: ../fish/guestfish.pod:102
17104 " guestfish --rw --add disk.img \\\n"
17105 " --mount /dev/vg_guest/lv_root \\\n"
17106 " --mount /dev/sda1:/boot \\\n"
17107 " edit /boot/grub/grub.conf\n"
17112 #: ../fish/guestfish.pod:107
17113 msgid "Mount disks automatically"
17117 #: ../fish/guestfish.pod:109
17119 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17123 #: ../fish/guestfish.pod:112
17126 " guestfish --ro -a disk.img -i cat /etc/group\n"
17131 #: ../fish/guestfish.pod:114
17134 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17139 #: ../fish/guestfish.pod:116
17140 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17144 #: ../fish/guestfish.pod:118
17147 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17152 #: ../fish/guestfish.pod:120
17153 msgid "As a script interpreter"
17157 #: ../fish/guestfish.pod:122
17158 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17162 #: ../fish/guestfish.pod:124
17165 " #!/usr/bin/guestfish -f\n"
17166 " sparse test1.img 100M\n"
17168 " part-disk /dev/sda mbr\n"
17169 " mkfs ext2 /dev/sda1\n"
17174 #: ../fish/guestfish.pod:130
17175 msgid "Start with a prepared disk"
17179 #: ../fish/guestfish.pod:132
17181 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17182 "single ext2-formatted partition:"
17186 #: ../fish/guestfish.pod:135
17189 " guestfish -N fs\n"
17194 #: ../fish/guestfish.pod:137
17195 msgid "To list what is available do:"
17199 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17202 " guestfish -N help | less\n"
17207 #: ../fish/guestfish.pod:141
17208 msgid "Remote control"
17209 msgstr "Дистанційне керування"
17212 #: ../fish/guestfish.pod:143
17215 " eval \"`guestfish --listen`\"\n"
17216 " guestfish --remote add-ro disk.img\n"
17217 " guestfish --remote run\n"
17218 " guestfish --remote lvs\n"
17221 " eval \"`guestfish --listen`\"\n"
17222 " guestfish --remote add-ro disk.img\n"
17223 " guestfish --remote run\n"
17224 " guestfish --remote lvs\n"
17228 #: ../fish/guestfish.pod:154
17229 msgid "Displays general help on options."
17233 #: ../fish/guestfish.pod:158
17234 msgid "B<--cmd-help>"
17235 msgstr "B<--cmd-help>"
17238 #: ../fish/guestfish.pod:160
17239 msgid "Lists all available guestfish commands."
17243 #: ../fish/guestfish.pod:162
17245 msgstr "B<-h команда>"
17248 #: ../fish/guestfish.pod:164
17249 msgid "B<--cmd-help cmd>"
17250 msgstr "B<--cmd-help команда>"
17253 #: ../fish/guestfish.pod:166
17254 msgid "Displays detailed help on a single command C<cmd>."
17258 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17259 msgid "B<-a image>"
17260 msgstr "B<-a образ>"
17263 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17264 msgid "B<--add image>"
17265 msgstr "B<--add образ>"
17268 #: ../fish/guestfish.pod:172
17269 msgid "Add a block device or virtual machine image to the shell."
17273 #: ../fish/guestfish.pod:177
17275 "Using this flag is mostly equivalent to using the C<add> command, with "
17276 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17277 "the I<--format=...> flag was given."
17281 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17283 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17284 "URI to use. The default is to use the default libvirt connection."
17288 #: ../fish/guestfish.pod:189
17293 #: ../fish/guestfish.pod:191
17295 "If using the I<--listen> option and a csh-like shell, use this option. See "
17296 "section L</REMOTE CONTROL AND CSH> below."
17300 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17301 msgid "B<-d libvirt-domain>"
17302 msgstr "B<-d домен-libvirt>"
17305 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17306 msgid "B<--domain libvirt-domain>"
17307 msgstr "B<--domain домен-libvirt>"
17310 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17312 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17313 "used, then any libvirt domain can be used. However in write mode, only "
17314 "libvirt domains which are shut down can be named here."
17318 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17319 msgid "Domain UUIDs can be used instead of names."
17323 #: ../fish/guestfish.pod:204
17325 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17326 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17327 "if the I<--format:...> flag was given."
17331 #: ../fish/guestfish.pod:208
17336 #: ../fish/guestfish.pod:210
17337 msgid "B<--no-dest-paths>"
17338 msgstr "B<--no-dest-paths>"
17341 #: ../fish/guestfish.pod:212
17343 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17344 "to hit the tab key to complete paths on the guest filesystem, but this "
17345 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17346 "allow this feature to be disabled."
17350 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17352 "When prompting for keys and passphrases, guestfish normally turns echoing "
17353 "off so you cannot see what you are typing. If you are not worried about "
17354 "Tempest attacks and there is no one else in the room you can specify this "
17355 "flag to see what you are typing."
17359 #: ../fish/guestfish.pod:224
17361 msgstr "B<-f файл>"
17364 #: ../fish/guestfish.pod:226
17365 msgid "B<--file file>"
17366 msgstr "B<--file файл>"
17369 #: ../fish/guestfish.pod:228
17370 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17374 #: ../fish/guestfish.pod:231
17377 " #!/usr/bin/guestfish -f\n"
17380 " #!/usr/bin/guestfish -f\n"
17384 #: ../fish/guestfish.pod:244
17387 " guestfish --format=raw -a disk.img\n"
17390 " guestfish --format=raw -a disk.img\n"
17394 #: ../fish/guestfish.pod:248
17397 " guestfish --format=raw -a disk.img --format -a another.img\n"
17400 " guestfish --format=raw -a disk.img --format -a another.img\n"
17404 #: ../fish/guestfish.pod:253
17406 "If you have untrusted raw-format guest disk images, you should use this "
17407 "option to specify the disk format. This avoids a possible security problem "
17408 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17412 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17413 msgid "B<--inspector>"
17414 msgstr "B<--inspector>"
17417 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17419 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17420 "system and mount filesystems as they would be mounted on the real virtual "
17425 #: ../fish/guestfish.pod:266
17426 msgid "Typical usage is either:"
17430 #: ../fish/guestfish.pod:268
17433 " guestfish -d myguest -i\n"
17436 " guestfish -d myguest -i\n"
17440 #: ../fish/guestfish.pod:270
17441 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17445 #: ../fish/guestfish.pod:272
17448 " guestfish --ro -d myguest -i\n"
17451 " guestfish --ro -d myguest -i\n"
17455 #: ../fish/guestfish.pod:274
17456 msgid "(for active domains, readonly), or specify the block device directly:"
17460 #: ../fish/guestfish.pod:276
17463 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17466 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17470 #: ../fish/guestfish.pod:278
17472 "Note that the command line syntax changed slightly over older versions of "
17473 "guestfish. You can still use the old syntax:"
17477 #: ../fish/guestfish.pod:281
17480 " guestfish [--ro] -i disk.img\n"
17483 " guestfish [--ro] -i disk.img\n"
17487 #: ../fish/guestfish.pod:283
17490 " guestfish [--ro] -i libvirt-domain\n"
17495 #: ../fish/guestfish.pod:285
17497 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17498 "then using other commands to mount the filesystems that were found."
17502 #: ../fish/guestfish.pod:294
17503 msgid "B<--listen>"
17504 msgstr "B<--listen>"
17507 #: ../fish/guestfish.pod:296
17509 "Fork into the background and listen for remote commands. See section L</"
17510 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17514 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17519 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17521 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17522 "ATTACHING TO RUNNING DAEMONS>)."
17526 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17527 msgid "B<-m dev[:mountpoint[:options]]>"
17531 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17532 msgid "B<--mount dev[:mountpoint[:options]]>"
17536 #: ../fish/guestfish.pod:308
17537 msgid "Mount the named partition or logical volume on the given mountpoint."
17541 #: ../fish/guestfish.pod:310
17542 msgid "If the mountpoint is omitted, it defaults to C</>."
17546 #: ../fish/guestfish.pod:312
17547 msgid "You have to mount something on C</> before most commands will work."
17551 #: ../fish/guestfish.pod:314
17553 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17558 #: ../fish/guestfish.pod:317
17560 "If you don't know what filesystems a disk image contains, you can either run "
17561 "guestfish without this option, then list the partitions, filesystems and LVs "
17562 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17563 "commands), or you can use the L<virt-filesystems(1)> program."
17567 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17569 "The third (and rarely used) part of the mount parameter is the list of mount "
17570 "options used to mount the underlying filesystem. If this is not given, then "
17571 "the mount options are either the empty string or C<ro> (the latter if the "
17572 "I<--ro> flag is used). By specifying the mount options, you override this "
17573 "default choice. Probably the only time you would use this is to enable ACLs "
17574 "and/or extended attributes if the filesystem can support them:"
17578 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17581 " -m /dev/sda1:/:acl,user_xattr\n"
17586 #: ../fish/guestfish.pod:333
17587 msgid "Using this flag is equivalent to using the C<mount-options> command."
17591 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17592 #: ../resize/virt-resize.pod:358
17597 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17598 msgid "B<--no-sync>"
17599 msgstr "B<--no-sync>"
17602 #: ../fish/guestfish.pod:339
17604 "Disable autosync. This is enabled by default. See the discussion of "
17605 "autosync in the L<guestfs(3)> manpage."
17609 #: ../fish/guestfish.pod:342
17614 #: ../fish/guestfish.pod:344
17615 msgid "B<--new type>"
17616 msgstr "B<--new тип>"
17619 #: ../fish/guestfish.pod:346
17621 msgstr "B<-N help>"
17624 #: ../fish/guestfish.pod:348
17626 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
17627 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17628 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
17633 #: ../fish/guestfish.pod:353
17634 msgid "B<--progress-bars>"
17635 msgstr "B<--progress-bars>"
17638 #: ../fish/guestfish.pod:355
17639 msgid "Enable progress bars, even when guestfish is used non-interactively."
17643 #: ../fish/guestfish.pod:357
17645 "Progress bars are enabled by default when guestfish is used as an "
17646 "interactive shell."
17650 #: ../fish/guestfish.pod:360
17651 msgid "B<--no-progress-bars>"
17652 msgstr "B<--no-progress-bars>"
17655 #: ../fish/guestfish.pod:362
17656 msgid "Disable progress bars."
17660 #: ../fish/guestfish.pod:364
17661 msgid "B<--remote[=pid]>"
17662 msgstr "B<--remote[=pid]>"
17665 #: ../fish/guestfish.pod:366
17667 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
17668 "CONTROL GUESTFISH OVER A SOCKET> below."
17672 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17673 #: ../rescue/virt-rescue.pod:161
17678 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17679 #: ../rescue/virt-rescue.pod:163
17684 #: ../fish/guestfish.pod:373
17686 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17687 "mounts are done read-only."
17691 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17693 "The option must always be used if the disk image or virtual machine might be "
17694 "running, and is generally recommended in cases where you don't need write "
17695 "access to the disk."
17699 #: ../fish/guestfish.pod:380
17701 "Note that prepared disk images created with I<-N> are not affected by this "
17702 "option. Also commands like C<add> are not affected - you have to specify "
17703 "the C<readonly:true> option explicitly if you need it."
17707 #: ../fish/guestfish.pod:384
17708 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17712 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17713 #: ../rescue/virt-rescue.pod:173
17714 msgid "B<--selinux>"
17715 msgstr "B<--selinux>"
17718 #: ../fish/guestfish.pod:388
17719 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
17723 #: ../fish/guestfish.pod:394
17725 "Enable very verbose messages. This is particularly useful if you find a bug."
17729 #: ../fish/guestfish.pod:401
17730 msgid "Display the guestfish / libguestfs version number and exit."
17734 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17735 #: ../rescue/virt-rescue.pod:190
17740 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17741 #: ../rescue/virt-rescue.pod:192
17746 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17748 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17749 "mounts are done read-write."
17753 #: ../fish/guestfish.pod:410
17754 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17758 #: ../fish/guestfish.pod:414
17759 msgid "Echo each command before executing it."
17763 #: ../fish/guestfish.pod:418
17764 msgid "COMMANDS ON COMMAND LINE"
17768 #: ../fish/guestfish.pod:420
17770 "Any additional (non-option) arguments are treated as commands to execute."
17774 #: ../fish/guestfish.pod:423
17776 "Commands to execute should be separated by a colon (C<:>), where the colon "
17777 "is a separate parameter. Thus:"
17781 #: ../fish/guestfish.pod:426
17784 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17789 #: ../fish/guestfish.pod:428
17791 "If there are no additional arguments, then we enter a shell, either an "
17792 "interactive shell with a prompt (if the input is a terminal) or a non-"
17793 "interactive shell."
17797 #: ../fish/guestfish.pod:432
17799 "In either command line mode or non-interactive shell, the first command that "
17800 "gives an error causes the whole shell to exit. In interactive mode (with a "
17801 "prompt) if a command fails, you can continue to enter commands."
17805 #: ../fish/guestfish.pod:437
17806 msgid "USING launch (OR run)"
17810 #: ../fish/guestfish.pod:439
17812 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17813 "then launch it, then mount any disks you need, and finally issue actions/"
17814 "commands. So the general order of the day is:"
17818 #: ../fish/guestfish.pod:447
17819 msgid "add or -a/--add"
17823 #: ../fish/guestfish.pod:451
17824 msgid "launch (aka run)"
17828 #: ../fish/guestfish.pod:455
17829 msgid "mount or -m/--mount"
17833 #: ../fish/guestfish.pod:459
17834 msgid "any other commands"
17838 #: ../fish/guestfish.pod:463
17840 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
17841 "guest before mounting or performing any other commands."
17845 #: ../fish/guestfish.pod:466
17847 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17848 "I<--new> options were given then C<run> is done automatically, simply "
17849 "because guestfish can't perform the action you asked for without doing this."
17853 #: ../fish/guestfish.pod:471
17854 msgid "OPENING DISKS FOR READ AND WRITE"
17858 #: ../fish/guestfish.pod:473
17860 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17861 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17862 "I<-i> and I<-m> open disk images read-only or for writing."
17866 #: ../fish/guestfish.pod:478
17868 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17869 "opening disk images supplied on the command line for write. To open a disk "
17870 "image read-only you have to do I<-a image --ro>."
17874 #: ../fish/guestfish.pod:482
17876 "This matters: If you accidentally open a live VM disk image writable then "
17877 "you will cause irreversible disk corruption."
17881 #: ../fish/guestfish.pod:485
17883 "In a future libguestfs we intend to change the default the other way. Disk "
17884 "images will be opened read-only. You will have to either specify "
17885 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17886 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17887 "access for disk images specified by those other command line options."
17891 #: ../fish/guestfish.pod:492
17893 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17894 "which does nothing (it is already the default). However it is highly "
17895 "recommended that you use this option to indicate that you need write access, "
17896 "and prepare your scripts for the day when this option will be required for "
17901 #: ../fish/guestfish.pod:498
17903 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17904 "other libguestfs program apart from guestfish and guestmount."
17908 #: ../fish/guestfish.pod:501
17913 #: ../fish/guestfish.pod:503
17915 "You can quote ordinary parameters using either single or double quotes. For "
17920 #: ../fish/guestfish.pod:506
17923 " add \"file with a space.img\"\n"
17928 #: ../fish/guestfish.pod:508
17931 " rm '/file name'\n"
17936 #: ../fish/guestfish.pod:510
17944 #: ../fish/guestfish.pod:512
17946 "A few commands require a list of strings to be passed. For these, use a "
17947 "whitespace-separated list, enclosed in quotes. Strings containing "
17948 "whitespace to be passed through must be enclosed in single quotes. A "
17949 "literal single quote must be escaped with a backslash."
17953 #: ../fish/guestfish.pod:517
17956 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17957 " command \"/bin/echo 'foo bar'\"\n"
17958 " command \"/bin/echo \\'foo\\'\"\n"
17963 #: ../fish/guestfish.pod:521
17964 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17968 #: ../fish/guestfish.pod:523
17970 "In double-quoted arguments (only) use backslash to insert special characters:"
17974 #: ../fish/guestfish.pod:528
17979 #: ../fish/guestfish.pod:530
17980 msgid "Alert (bell) character."
17984 #: ../fish/guestfish.pod:532
17989 #: ../fish/guestfish.pod:534
17990 msgid "Backspace character."
17994 #: ../fish/guestfish.pod:536
17999 #: ../fish/guestfish.pod:538
18000 msgid "Form feed character."
18004 #: ../fish/guestfish.pod:540
18009 #: ../fish/guestfish.pod:542
18010 msgid "Newline character."
18014 #: ../fish/guestfish.pod:544
18019 #: ../fish/guestfish.pod:546
18020 msgid "Carriage return character."
18024 #: ../fish/guestfish.pod:548
18029 #: ../fish/guestfish.pod:550
18030 msgid "Horizontal tab character."
18034 #: ../fish/guestfish.pod:552
18039 #: ../fish/guestfish.pod:554
18040 msgid "Vertical tab character."
18044 #: ../fish/guestfish.pod:556
18049 #: ../fish/guestfish.pod:558
18050 msgid "A literal double quote character."
18054 #: ../fish/guestfish.pod:560
18059 #: ../fish/guestfish.pod:562
18061 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18066 #: ../fish/guestfish.pod:565
18071 #: ../fish/guestfish.pod:567
18073 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18077 #: ../fish/guestfish.pod:570
18079 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18084 #: ../fish/guestfish.pod:573
18089 #: ../fish/guestfish.pod:575
18090 msgid "A literal backslash character."
18094 #: ../fish/guestfish.pod:579
18095 msgid "OPTIONAL ARGUMENTS"
18099 #: ../fish/guestfish.pod:581
18101 "Some commands take optional arguments. These arguments appear in this "
18102 "documentation as C<[argname:..]>. You can use them as in these examples:"
18106 #: ../fish/guestfish.pod:585
18109 " add-drive-opts filename\n"
18114 #: ../fish/guestfish.pod:587
18117 " add-drive-opts filename readonly:true\n"
18122 #: ../fish/guestfish.pod:589
18125 " add-drive-opts filename format:qcow2 readonly:false\n"
18130 #: ../fish/guestfish.pod:591
18132 "Each optional argument can appear at most once. All optional arguments must "
18133 "appear after the required ones."
18137 #: ../fish/guestfish.pod:594
18142 #: ../fish/guestfish.pod:596
18144 "This section applies to all commands which can take integers as parameters."
18148 #: ../fish/guestfish.pod:599
18149 msgid "SIZE SUFFIX"
18153 #: ../fish/guestfish.pod:601
18155 "When the command takes a parameter measured in bytes, you can use one of the "
18156 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18160 #: ../fish/guestfish.pod:607
18161 msgid "B<k> or B<K> or B<KiB>"
18162 msgstr "B<k>, B<K> або B<KiB>"
18165 #: ../fish/guestfish.pod:609
18166 msgid "The size in kilobytes (multiplied by 1024)."
18170 #: ../fish/guestfish.pod:611
18175 #: ../fish/guestfish.pod:613
18176 msgid "The size in SI 1000 byte units."
18180 #: ../fish/guestfish.pod:615
18181 msgid "B<M> or B<MiB>"
18182 msgstr "B<M> або B<MiB>"
18185 #: ../fish/guestfish.pod:617
18186 msgid "The size in megabytes (multiplied by 1048576)."
18190 #: ../fish/guestfish.pod:619
18195 #: ../fish/guestfish.pod:621
18196 msgid "The size in SI 1000000 byte units."
18200 #: ../fish/guestfish.pod:623
18201 msgid "B<G> or B<GiB>"
18202 msgstr "B<G> або B<GiB>"
18205 #: ../fish/guestfish.pod:625
18206 msgid "The size in gigabytes (multiplied by 2**30)."
18207 msgstr "Розмір у гігабайтах (з множником 2**30)."
18210 #: ../fish/guestfish.pod:627
18215 #: ../fish/guestfish.pod:629
18216 msgid "The size in SI 10**9 byte units."
18217 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18220 #: ../fish/guestfish.pod:631
18221 msgid "B<T> or B<TiB>"
18222 msgstr "B<T> або B<TiB>"
18225 #: ../fish/guestfish.pod:633
18226 msgid "The size in terabytes (multiplied by 2**40)."
18227 msgstr "Розмір у терабайтах (з множником 2**40)."
18230 #: ../fish/guestfish.pod:635
18235 #: ../fish/guestfish.pod:637
18236 msgid "The size in SI 10**12 byte units."
18240 #: ../fish/guestfish.pod:639
18241 msgid "B<P> or B<PiB>"
18242 msgstr "B<P> або B<PiB>"
18245 #: ../fish/guestfish.pod:641
18246 msgid "The size in petabytes (multiplied by 2**50)."
18250 #: ../fish/guestfish.pod:643
18255 #: ../fish/guestfish.pod:645
18256 msgid "The size in SI 10**15 byte units."
18260 #: ../fish/guestfish.pod:647
18261 msgid "B<E> or B<EiB>"
18262 msgstr "B<E> або B<EiB>"
18265 #: ../fish/guestfish.pod:649
18266 msgid "The size in exabytes (multiplied by 2**60)."
18270 #: ../fish/guestfish.pod:651
18275 #: ../fish/guestfish.pod:653
18276 msgid "The size in SI 10**18 byte units."
18280 #: ../fish/guestfish.pod:655
18281 msgid "B<Z> or B<ZiB>"
18282 msgstr "B<Z> або B<ZiB>"
18285 #: ../fish/guestfish.pod:657
18286 msgid "The size in zettabytes (multiplied by 2**70)."
18290 #: ../fish/guestfish.pod:659
18295 #: ../fish/guestfish.pod:661
18296 msgid "The size in SI 10**21 byte units."
18300 #: ../fish/guestfish.pod:663
18301 msgid "B<Y> or B<YiB>"
18302 msgstr "B<Y> або B<YiB>"
18305 #: ../fish/guestfish.pod:665
18306 msgid "The size in yottabytes (multiplied by 2**80)."
18310 #: ../fish/guestfish.pod:667
18315 #: ../fish/guestfish.pod:669
18316 msgid "The size in SI 10**24 byte units."
18320 #: ../fish/guestfish.pod:675
18323 " truncate-size /file 1G\n"
18328 #: ../fish/guestfish.pod:677
18329 msgid "would truncate the file to 1 gigabyte."
18333 #: ../fish/guestfish.pod:679
18335 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18336 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18337 "suffix will probably not do what you expect."
18341 #: ../fish/guestfish.pod:683
18342 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18346 #: ../fish/guestfish.pod:685
18348 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18349 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18353 #: ../fish/guestfish.pod:688
18356 " 1234 decimal number 1234\n"
18357 " 02322 octal number, equivalent to decimal 1234\n"
18358 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18363 #: ../fish/guestfish.pod:692
18365 "When using the C<chmod> command, you almost always want to specify an octal "
18366 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18367 "L<chmod(1)> program):"
18371 #: ../fish/guestfish.pod:696
18374 " chmod 0777 /public # OK\n"
18375 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18380 #: ../fish/guestfish.pod:699
18382 "Commands that return numbers usually print them in decimal, but some "
18383 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18384 "octal, preceeded by C<0>)."
18388 #: ../fish/guestfish.pod:703
18389 msgid "WILDCARDS AND GLOBBING"
18393 #: ../fish/guestfish.pod:705
18395 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18396 "(globbing) by default. So for example the following will not do what you "
18401 #: ../fish/guestfish.pod:709
18409 #: ../fish/guestfish.pod:711
18411 "Assuming you don't have a directory called literally C</home/*> then the "
18412 "above command will return an error."
18416 #: ../fish/guestfish.pod:714
18417 msgid "To perform wildcard expansion, use the C<glob> command."
18421 #: ../fish/guestfish.pod:716
18424 " glob rm-rf /home/*\n"
18429 #: ../fish/guestfish.pod:718
18431 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18432 "many times), equivalent to:"
18436 #: ../fish/guestfish.pod:721
18439 " rm-rf /home/jim\n"
18440 " rm-rf /home/joe\n"
18441 " rm-rf /home/mary\n"
18446 #: ../fish/guestfish.pod:725
18447 msgid "C<glob> only works on simple guest paths and not on device names."
18451 #: ../fish/guestfish.pod:727
18453 "If you have several parameters, each containing a wildcard, then glob will "
18454 "perform a Cartesian product."
18458 #: ../fish/guestfish.pod:730
18463 #: ../fish/guestfish.pod:732
18465 "Any line which starts with a I<#> character is treated as a comment and "
18466 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18467 "a command. For example:"
18471 #: ../fish/guestfish.pod:736
18474 " # this is a comment\n"
18475 " # this is a comment\n"
18476 " foo # NOT a comment\n"
18481 #: ../fish/guestfish.pod:740
18482 msgid "Blank lines are also ignored."
18486 #: ../fish/guestfish.pod:742
18487 msgid "RUNNING COMMANDS LOCALLY"
18491 #: ../fish/guestfish.pod:744
18493 "Any line which starts with a I<!> character is treated as a command sent to "
18494 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18498 #: ../fish/guestfish.pod:748
18502 " tgz-out /remote local/remote-data.tar.gz\n"
18507 #: ../fish/guestfish.pod:751
18509 "will create a directory C<local> on the host, and then export the contents "
18510 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18511 "(See C<tgz-out>)."
18515 #: ../fish/guestfish.pod:755
18517 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18518 "effect, due to the way that subprocesses work in Unix."
18522 #: ../fish/guestfish.pod:758
18523 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18527 #: ../fish/guestfish.pod:760
18529 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18530 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18531 "and executed as guestfish commands."
18535 #: ../fish/guestfish.pod:764
18537 "Thus you can use shell script to construct arbitrary guestfish commands "
18538 "which are then parsed by guestfish."
18542 #: ../fish/guestfish.pod:767
18544 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18545 "through C</foo.100>) using guestfish commands alone. However this is simple "
18546 "if we use a shell script to create the guestfish commands for us:"
18550 #: ../fish/guestfish.pod:772
18553 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18558 #: ../fish/guestfish.pod:774
18559 msgid "or with names like C</foo.001>:"
18563 #: ../fish/guestfish.pod:776
18566 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18571 #: ../fish/guestfish.pod:778
18573 "When using guestfish interactively it can be helpful to just run the shell "
18574 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18575 "ordinary I<!> local command), see what guestfish commands it would run, and "
18576 "when you are happy with those prepend the C<E<lt>> character to run the "
18577 "guestfish commands for real."
18581 #: ../fish/guestfish.pod:784
18586 #: ../fish/guestfish.pod:786
18588 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18589 "command (a guestfish command) to the second command (any host command). For "
18594 #: ../fish/guestfish.pod:790
18597 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18602 #: ../fish/guestfish.pod:792
18604 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18605 "program). The above command would list all accounts in the guest filesystem "
18606 "which have UID 0, ie. root accounts including backdoors. Other examples:"
18610 #: ../fish/guestfish.pod:797
18613 " hexdump /bin/ls | head\n"
18614 " list-devices | tail -1\n"
18615 " tgz-out / - | tar ztf -\n"
18620 #: ../fish/guestfish.pod:801
18622 "The space before the pipe symbol is required, any space after the pipe "
18623 "symbol is optional. Everything after the pipe symbol is just passed "
18624 "straight to the host shell, so it can contain redirections, globs and "
18625 "anything else that makes sense on the host side."
18629 #: ../fish/guestfish.pod:806
18631 "To use a literal argument which begins with a pipe symbol, you have to quote "
18636 #: ../fish/guestfish.pod:809
18644 #: ../fish/guestfish.pod:811
18645 msgid "HOME DIRECTORIES"
18649 #: ../fish/guestfish.pod:813
18651 "If a parameter starts with the character C<~> then the tilde may be expanded "
18652 "as a home directory path (either C<~> for the current user's home directory, "
18653 "or C<~user> for another user)."
18657 #: ../fish/guestfish.pod:817
18659 "Note that home directory expansion happens for users known I<on the host>, "
18660 "not in the guest filesystem."
18664 #: ../fish/guestfish.pod:820
18666 "To use a literal argument which begins with a tilde, you have to quote it, "
18671 #: ../fish/guestfish.pod:823
18679 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18680 msgid "ENCRYPTED DISKS"
18681 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18684 #: ../fish/guestfish.pod:827
18686 "Libguestfs has some support for Linux guests encrypted according to the "
18687 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18688 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
18689 "LUKS is supported."
18693 #: ../fish/guestfish.pod:832
18694 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18698 #: ../fish/guestfish.pod:834
18701 " ><fs> vfs-type /dev/sda2\n"
18707 #: ../fish/guestfish.pod:837
18709 "Then open those devices using L</luks-open>. This creates a device-mapper "
18710 "device called C</dev/mapper/luksdev>."
18714 #: ../fish/guestfish.pod:840
18717 " ><fs> luks-open /dev/sda2 luksdev\n"
18718 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18723 #: ../fish/guestfish.pod:843
18725 "Finally you have to tell LVM to scan for volume groups on the newly created "
18730 #: ../fish/guestfish.pod:846
18734 " vg-activate-all true\n"
18739 #: ../fish/guestfish.pod:849
18740 msgid "The logical volume(s) can now be mounted in the usual way."
18744 #: ../fish/guestfish.pod:851
18746 "Before closing a LUKS device you must unmount any logical volumes on it and "
18747 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18748 "one. Then you can close the mapper device:"
18752 #: ../fish/guestfish.pod:855
18755 " vg-activate false /dev/VG\n"
18756 " luks-close /dev/mapper/luksdev\n"
18761 #: ../fish/guestfish.pod:860
18763 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18764 "letters and paths (with some limitations). The following commands are "
18769 #: ../fish/guestfish.pod:864
18772 " file /WINDOWS/system32/config/system.LOG\n"
18777 #: ../fish/guestfish.pod:866
18780 " file win:\\windows\\system32\\config\\system.log\n"
18785 #: ../fish/guestfish.pod:868
18788 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18793 #: ../fish/guestfish.pod:870
18795 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18796 "where the drive is mounted, prepending that to the path, changing all "
18797 "backslash characters to forward slash, then resolving the result using L</"
18798 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
18799 "the parameter might be rewritten like this:"
18803 #: ../fish/guestfish.pod:876
18806 " win:e:\\foo\\bar => /e/FOO/bar\n"
18811 #: ../fish/guestfish.pod:878
18812 msgid "This only works in argument positions that expect a path."
18816 #: ../fish/guestfish.pod:880
18817 msgid "UPLOADING AND DOWNLOADING FILES"
18821 #: ../fish/guestfish.pod:882
18823 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18824 "others which upload from or download to a local file, you can use the "
18825 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
18829 #: ../fish/guestfish.pod:886
18837 #: ../fish/guestfish.pod:888
18839 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18843 #: ../fish/guestfish.pod:891
18846 " tar-out /etc - | tar tf -\n"
18851 #: ../fish/guestfish.pod:893
18853 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18854 "command (see L</PIPES>)."
18858 #: ../fish/guestfish.pod:896
18860 "When using C<-> to read from stdin, the input is read up to the end of "
18861 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
18862 "some arbitrary end marker:"
18866 #: ../fish/guestfish.pod:900
18869 " upload -<<END /foo\n"
18878 #: ../fish/guestfish.pod:906
18880 "Any string of characters can be used instead of C<END>. The end marker must "
18881 "appear on a line of its own, without any preceeding or following characters "
18882 "(not even spaces)."
18886 #: ../fish/guestfish.pod:910
18888 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18889 "upload local files (so-called \"FileIn\" parameters in the generator)."
18893 #: ../fish/guestfish.pod:913
18894 msgid "EXIT ON ERROR BEHAVIOUR"
18898 #: ../fish/guestfish.pod:915
18900 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18901 "taking commands from a human over a tty), and will exit on the first error "
18902 "in non-interactive mode (scripts, commands given on the command line)."
18906 #: ../fish/guestfish.pod:920
18908 "If you prefix a command with a I<-> character, then that command will not "
18909 "cause guestfish to exit, even if that (one) command returns an error."
18913 #: ../fish/guestfish.pod:924
18914 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18918 #: ../fish/guestfish.pod:926
18920 "Guestfish can be remote-controlled over a socket. This is useful "
18921 "particularly in shell scripts where you want to make several different "
18922 "changes to a filesystem, but you don't want the overhead of starting up a "
18923 "guestfish process each time."
18927 #: ../fish/guestfish.pod:931
18928 msgid "Start a guestfish server process using:"
18932 #: ../fish/guestfish.pod:933
18935 " eval \"`guestfish --listen`\"\n"
18940 #: ../fish/guestfish.pod:935
18941 msgid "and then send it commands by doing:"
18945 #: ../fish/guestfish.pod:937
18948 " guestfish --remote cmd [...]\n"
18953 #: ../fish/guestfish.pod:939
18954 msgid "To cause the server to exit, send it the exit command:"
18958 #: ../fish/guestfish.pod:943
18960 "Note that the server will normally exit if there is an error in a command. "
18961 "You can change this in the usual way. See section L</EXIT ON ERROR "
18966 #: ../fish/guestfish.pod:947
18967 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18971 #: ../fish/guestfish.pod:949
18973 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18974 "is how the I<--remote> option knows where to send the commands. You can "
18975 "have several guestfish listener processes running using:"
18979 #: ../fish/guestfish.pod:953
18982 " eval \"`guestfish --listen`\"\n"
18983 " pid1=$GUESTFISH_PID\n"
18984 " eval \"`guestfish --listen`\"\n"
18985 " pid2=$GUESTFISH_PID\n"
18987 " guestfish --remote=$pid1 cmd\n"
18988 " guestfish --remote=$pid2 cmd\n"
18993 #: ../fish/guestfish.pod:961
18994 msgid "REMOTE CONTROL AND CSH"
18998 #: ../fish/guestfish.pod:963
19000 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19005 #: ../fish/guestfish.pod:966
19008 " eval \"`guestfish --listen --csh`\"\n"
19013 #: ../fish/guestfish.pod:968
19014 msgid "REMOTE CONTROL DETAILS"
19018 #: ../fish/guestfish.pod:970
19020 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19021 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19022 "and C<$PID> is the process ID of the server."
19026 #: ../fish/guestfish.pod:974
19027 msgid "Guestfish client and server versions must match exactly."
19031 #: ../fish/guestfish.pod:976
19032 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19036 #: ../fish/guestfish.pod:978
19038 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19039 "context hangs, ie. don't do (note the backquotes):"
19043 #: ../fish/guestfish.pod:981
19046 #| " guestfish --ro -d myguest -i\n"
19049 " a=`guestfish --remote run`\n"
19052 " guestfish --ro -d myguest -i\n"
19056 #: ../fish/guestfish.pod:983
19058 "Since the C<run> command produces no output on stdout, this is not useful "
19059 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19064 #: ../fish/guestfish.pod:987
19065 msgid "PREPARED DISK IMAGES"
19069 #: ../fish/guestfish.pod:989
19071 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19072 "preformatted disk images that guestfish can make for you to save typing. "
19073 "This is particularly useful for testing purposes. This option is used "
19074 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19075 "can be mixed with I<-a>)."
19079 #: ../fish/guestfish.pod:995
19081 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19082 "the second and so on. Existing files in the current directory are "
19087 #: ../fish/guestfish.pod:999
19089 "The type briefly describes how the disk should be sized, partitioned, how "
19090 "filesystem(s) should be created, and how content should be added. "
19091 "Optionally the type can be followed by extra parameters, separated by C<:> "
19092 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19093 "allocated disk, containing a single partition, with the partition formatted "
19094 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19099 #: ../fish/guestfish.pod:1007
19100 msgid "To list the available types and any extra parameters they take, run:"
19104 #: ../fish/guestfish.pod:1011
19106 "Note that the prepared filesystem is not mounted. You would usually have to "
19107 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19111 #: ../fish/guestfish.pod:1015
19113 "If any I<-N> or I<--new> options are given, the guest is automatically "
19118 #: ../fish/guestfish.pod:1020
19119 msgid "Create a 100MB disk with an ext4-formatted partition:"
19123 #: ../fish/guestfish.pod:1022
19126 " guestfish -N fs:ext4\n"
19131 #: ../fish/guestfish.pod:1024
19132 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19136 #: ../fish/guestfish.pod:1026
19139 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19144 #: ../fish/guestfish.pod:1028
19145 msgid "Create a blank 200MB disk:"
19149 #: ../fish/guestfish.pod:1030
19152 " guestfish -N disk:200M\n"
19157 #: ../fish/guestfish.pod:1032
19158 msgid "PROGRESS BARS"
19162 #: ../fish/guestfish.pod:1034
19164 "Some (not all) long-running commands send progress notification messages as "
19165 "they are running. Guestfish turns these messages into progress bars."
19169 #: ../fish/guestfish.pod:1038
19171 "When a command that supports progress bars takes longer than two seconds to "
19172 "run, and if progress bars are enabled, then you will see one appearing below "
19177 #: ../fish/guestfish.pod:1042
19180 " ><fs> copy-size /large-file /another-file 2048M\n"
19181 " / 10% [#####-----------------------------------------] 00:30\n"
19186 #: ../fish/guestfish.pod:1045
19188 "The spinner on the left hand side moves round once for every progress "
19189 "notification received from the backend. This is a (reasonably) golden "
19190 "assurance that the command is \"doing something\" even if the progress bar "
19191 "is not moving, because the command is able to send the progress "
19192 "notifications. When the bar reaches 100% and the command finishes, the "
19193 "spinner disappears."
19197 #: ../fish/guestfish.pod:1052
19199 "Progress bars are enabled by default when guestfish is used interactively. "
19200 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19201 "and you can disable them completely using I<--no-progress-bars>."
19205 #: ../fish/guestfish.pod:1057
19206 msgid "GUESTFISH COMMANDS"
19210 #: ../fish/guestfish.pod:1059
19212 "The commands in this section are guestfish convenience commands, in other "
19213 "words, they are not part of the L<guestfs(3)> API."
19217 #: ../fish/guestfish.pod:1062
19222 #: ../fish/guestfish.pod:1064
19234 #: ../fish/guestfish.pod:1067
19235 msgid "Without any parameter, this provides general help."
19236 msgstr "Без параметра показує загальну довідкову інформацію."
19239 #: ../fish/guestfish.pod:1069
19240 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19244 #: ../fish/guestfish.pod:1071
19245 msgid "quit | exit"
19249 #: ../fish/guestfish.pod:1073
19250 msgid "This exits guestfish. You can also use C<^D> key."
19254 #: ../fish/guestfish.pod:1075
19255 msgid "@FISH_COMMANDS@"
19259 #: ../fish/guestfish.pod:1077
19264 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
19269 #: ../fish/guestfish.pod:1083
19271 "guestfish returns 0 if the commands completed without error, or 1 if there "
19276 #: ../fish/guestfish.pod:1090
19281 #: ../fish/guestfish.pod:1092
19283 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19288 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2985
19289 msgid "FEBOOTSTRAP_KERNEL"
19293 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2987
19294 msgid "FEBOOTSTRAP_MODULES"
19298 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2989
19300 "These two environment variables allow the kernel that libguestfs uses in the "
19301 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19302 "most recent host kernel is chosen. For more information about kernel "
19303 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19304 "available in febootstrap E<ge> 3.8."
19308 #: ../fish/guestfish.pod:1105
19309 msgid "GUESTFISH_DISPLAY_IMAGE"
19313 #: ../fish/guestfish.pod:1107
19315 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19316 "If not set, it uses L<display(1)>."
19320 #: ../fish/guestfish.pod:1110
19321 msgid "GUESTFISH_PID"
19325 #: ../fish/guestfish.pod:1112
19327 "Used with the I<--remote> option to specify the remote guestfish process to "
19328 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19332 #: ../fish/guestfish.pod:1116
19337 #: ../fish/guestfish.pod:1118
19339 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19340 "not specified, the external L<hexedit(1)> program is used."
19344 #: ../fish/guestfish.pod:1122
19349 #: ../fish/guestfish.pod:1124
19351 "If compiled with GNU readline support, various files in the home directory "
19352 "can be used. See L</FILES>."
19356 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2995
19357 msgid "LIBGUESTFS_APPEND"
19361 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2997
19362 msgid "Pass additional options to the guest kernel."
19366 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2999
19367 msgid "LIBGUESTFS_DEBUG"
19368 msgstr "LIBGUESTFS_DEBUG"
19371 #: ../fish/guestfish.pod:1133
19373 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19374 "effect as using the B<-v> option."
19378 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3004
19379 msgid "LIBGUESTFS_MEMSIZE"
19380 msgstr "LIBGUESTFS_MEMSIZE"
19383 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3006
19385 "Set the memory allocated to the qemu process, in megabytes. For example:"
19389 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3009
19392 " LIBGUESTFS_MEMSIZE=700\n"
19395 " LIBGUESTFS_MEMSIZE=700\n"
19399 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3011
19400 msgid "LIBGUESTFS_PATH"
19404 #: ../fish/guestfish.pod:1145
19406 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19407 "the discussion of paths in L<guestfs(3)>."
19411 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3016
19412 msgid "LIBGUESTFS_QEMU"
19416 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3018
19418 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19419 "which was found at compile time by the configure script is used."
19423 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3024
19424 msgid "LIBGUESTFS_TRACE"
19428 #: ../fish/guestfish.pod:1156
19429 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19433 #: ../fish/guestfish.pod:1158
19435 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19438 #: ../fish/guestfish.pod:1160
19440 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19445 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3029
19450 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3031
19452 "Location of temporary directory, defaults to C</tmp> except for the cached "
19453 "supermin appliance which defaults to C</var/tmp>."
19457 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3034
19459 "If libguestfs was compiled to use the supermin appliance then the real "
19460 "appliance is cached in this directory, shared between all handles belonging "
19461 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19462 "use in case C</var/tmp> is not large enough."
19466 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19467 #: ../rescue/virt-rescue.pod:269
19472 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19473 #: ../rescue/virt-rescue.pod:273
19474 msgid "$HOME/.libguestfs-tools.rc"
19478 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19479 #: ../rescue/virt-rescue.pod:275
19480 msgid "/etc/libguestfs-tools.conf"
19484 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19485 #: ../rescue/virt-rescue.pod:277
19487 "This configuration file controls the default read-only or read-write mode "
19488 "(I<--ro> or I<--rw>)."
19492 #: ../fish/guestfish.pod:1187
19493 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19497 #: ../fish/guestfish.pod:1189
19498 msgid "$HOME/.guestfish"
19502 #: ../fish/guestfish.pod:1191
19504 "If compiled with GNU readline support, then the command history is saved in "
19509 #: ../fish/guestfish.pod:1194
19510 msgid "$HOME/.inputrc"
19514 #: ../fish/guestfish.pod:1196
19515 msgid "/etc/inputrc"
19519 #: ../fish/guestfish.pod:1198
19521 "If compiled with GNU readline support, then these files can be used to "
19522 "configure readline. For further information, please see L<readline(3)/"
19523 "INITIALIZATION FILE>."
19527 #: ../fish/guestfish.pod:1202
19528 msgid "To write rules which only apply to guestfish, use:"
19532 #: ../fish/guestfish.pod:1204
19542 #: ../fish/guestfish.pod:1208
19544 "Variables that you can set in inputrc that change the behaviour of guestfish "
19545 "in useful ways include:"
19549 #: ../fish/guestfish.pod:1213
19550 msgid "completion-ignore-case (default: on)"
19554 #: ../fish/guestfish.pod:1215
19556 "By default, guestfish will ignore case when tab-completing paths on the "
19561 #: ../fish/guestfish.pod:1218
19564 " set completion-ignore-case off\n"
19569 #: ../fish/guestfish.pod:1220
19570 msgid "to make guestfish case sensitive."
19574 #: ../fish/guestfish.pod:1224
19579 #: ../fish/guestfish.pod:1226
19580 msgid "test2.img (etc)"
19584 #: ../fish/guestfish.pod:1228
19586 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19587 "will be created in the file C<test1.img> in the current directory. The "
19588 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
19589 "the same name will be overwritten."
19593 #: ../fish/guestfish.pod:1237
19595 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19596 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19597 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19598 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19599 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19600 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19604 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3120
19605 #: ../test-tool/libguestfs-test-tool.pod:99
19606 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
19610 #: ../fish/virt-copy-in.pod:5
19612 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19616 #: ../fish/virt-copy-in.pod:9
19619 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19624 #: ../fish/virt-copy-in.pod:11
19627 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19632 #: ../fish/virt-copy-in.pod:15
19634 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19635 "causing disk corruption. The virtual machine must be shut down before you "
19636 "use this command."
19640 #: ../fish/virt-copy-in.pod:21
19642 "C<virt-copy-in> copies files and directories from the local disk into a "
19643 "virtual machine disk image or named libvirt domain."
19647 #: ../fish/virt-copy-in.pod:24
19649 "You can give one of more filenames and directories on the command line. "
19650 "Directories are copied in recursively. The final parameter must be the "
19651 "destination directory in the disk image which must be an absolute path "
19652 "starting with a C</> character."
19656 #: ../fish/virt-copy-in.pod:33
19659 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19664 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19665 msgid "Upload a home directory to a guest:"
19669 #: ../fish/virt-copy-in.pod:37
19672 " virt-copy-in -d MyGuest skel /home\n"
19677 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19678 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19679 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19683 #: ../fish/virt-copy-in.pod:41
19685 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19686 "> C<copy-in> command. For anything more complex than a trivial copy, you "
19687 "are probably better off using guestfish directly."
19691 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19692 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19694 "Since the shell script just passes options straight to guestfish, read "
19695 "L<guestfish(1)> to see the full list of options."
19699 #: ../fish/virt-copy-in.pod:52
19702 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19703 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19704 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19705 #| "libguestfs.org/>."
19707 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19708 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19710 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19711 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19712 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19716 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19717 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19719 #| msgid "Copyright (C) 2009 Red Hat Inc."
19720 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19721 msgstr "© Red Hat Inc., 2009"
19724 #: ../fish/virt-copy-out.pod:5
19726 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19731 #: ../fish/virt-copy-out.pod:9
19734 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19739 #: ../fish/virt-copy-out.pod:11
19742 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19747 #: ../fish/virt-copy-out.pod:15
19749 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19750 "image or named libvirt domain."
19754 #: ../fish/virt-copy-out.pod:18
19756 "You can give one of more filenames and directories on the command line. "
19757 "Directories are copied out recursively."
19761 #: ../fish/virt-copy-out.pod:23
19762 msgid "Download the home directories from a virtual machine:"
19766 #: ../fish/virt-copy-out.pod:25
19770 " virt-copy-out -d MyGuest /home homes\n"
19775 #: ../fish/virt-copy-out.pod:30
19777 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19778 "> C<copy-out> command. For anything more complex than a trivial copy, you "
19779 "are probably better off using guestfish directly."
19783 #: ../fish/virt-copy-out.pod:41
19786 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19787 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19788 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19789 #| "libguestfs.org/>."
19791 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19792 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19794 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19795 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19796 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19800 #: ../fish/virt-tar-in.pod:5
19801 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19805 #: ../fish/virt-tar-in.pod:9
19808 " virt-tar-in -a disk.img data.tar /destination\n"
19813 #: ../fish/virt-tar-in.pod:11
19816 " virt-tar-in -d domain data.tar /destination\n"
19821 #: ../fish/virt-tar-in.pod:13
19824 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19829 #: ../fish/virt-tar-in.pod:17
19831 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19832 "causing disk corruption. The virtual machine must be shut down before you "
19833 "use this command."
19837 #: ../fish/virt-tar-in.pod:23
19839 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19840 "image or named libvirt domain."
19844 #: ../fish/virt-tar-in.pod:26
19846 "The first parameter is the tar file. Use C<-> to read the tar file from "
19847 "standard input. The second parameter is the absolute target directory to "
19852 #: ../fish/virt-tar-in.pod:34
19855 " virt-tar-in -d MyGuest homes.tar /home\n"
19860 #: ../fish/virt-tar-in.pod:38
19862 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19863 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
19864 "probably better off using guestfish directly."
19868 #: ../fish/virt-tar-in.pod:49
19871 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19872 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19873 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19874 #| "libguestfs.org/>."
19876 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19877 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19880 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19881 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19882 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19886 #: ../fish/virt-tar-out.pod:5
19888 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19892 #: ../fish/virt-tar-out.pod:9
19895 " virt-tar-out -a disk.img /dir files.tar\n"
19900 #: ../fish/virt-tar-out.pod:11
19903 " virt-tar-out -d domain /dir files.tar\n"
19908 #: ../fish/virt-tar-out.pod:13
19911 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19916 #: ../fish/virt-tar-out.pod:17
19918 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19922 #: ../fish/virt-tar-out.pod:20
19924 "The first parameter is the absolute path of the virtual machine directory. "
19925 "The second parameter is the tar file to write. Use C<-> to write to "
19930 #: ../fish/virt-tar-out.pod:26
19931 msgid "Download the home directories from a guest:"
19935 #: ../fish/virt-tar-out.pod:28
19938 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19943 #: ../fish/virt-tar-out.pod:32
19945 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19946 "> C<tar-out> command. For anything more complex than a trivial copy, you "
19947 "are probably better off using guestfish directly."
19951 #: ../fish/virt-tar-out.pod:43
19954 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19955 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19956 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19957 #| "libguestfs.org/>."
19959 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19960 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19962 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19963 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19964 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19968 #: ../fuse/guestmount.pod:5
19970 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19974 #: ../fuse/guestmount.pod:9
19977 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19982 #: ../fuse/guestmount.pod:11
19985 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19990 #: ../fuse/guestmount.pod:13
19993 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19998 #: ../fuse/guestmount.pod:17
20000 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20001 "machines. If you do this, you risk disk corruption in the VM."
20005 #: ../fuse/guestmount.pod:22
20007 "The guestmount program can be used to mount virtual machine filesystems and "
20008 "other disk images on the host. It uses libguestfs for access to the guest "
20009 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20010 "a mountable device."
20014 #: ../fuse/guestmount.pod:27
20016 "Along with other options, you have to give at least one device (I<-a> "
20017 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20018 "option) or use the I<-i> inspection option. How this works is better "
20019 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20024 #: ../fuse/guestmount.pod:33
20026 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
20027 "by you, and the filesystem will not be visible to any other users unless you "
20028 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
20029 "the filesystem, use the C<fusermount -u> command."
20033 #: ../fuse/guestmount.pod:41
20035 "For a typical Windows guest which has its main filesystem on the first "
20040 #: ../fuse/guestmount.pod:44
20043 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20048 #: ../fuse/guestmount.pod:46
20050 "For a typical Linux guest which has a /boot filesystem on the first "
20051 "partition, and the root filesystem on a logical volume:"
20055 #: ../fuse/guestmount.pod:49
20058 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20063 #: ../fuse/guestmount.pod:51
20064 msgid "To get libguestfs to detect guest mountpoints for you:"
20068 #: ../fuse/guestmount.pod:53
20071 " guestmount -a guest.img -i --ro /mnt\n"
20076 #: ../fuse/guestmount.pod:55
20077 msgid "For a libvirt guest called \"Guest\" you could do:"
20081 #: ../fuse/guestmount.pod:57
20084 " guestmount -d Guest -i --ro /mnt\n"
20089 #: ../fuse/guestmount.pod:59
20091 "If you don't know what filesystems are contained in a guest or disk image, "
20092 "use L<virt-filesystems(1)> first:"
20096 #: ../fuse/guestmount.pod:62
20099 " virt-filesystems MyGuest\n"
20104 #: ../fuse/guestmount.pod:64
20106 "If you want to trace the libguestfs calls but without excessive debugging "
20107 "information, we recommend:"
20111 #: ../fuse/guestmount.pod:67
20114 " guestmount [...] --trace /mnt\n"
20119 #: ../fuse/guestmount.pod:69
20120 msgid "If you want to debug the program, we recommend:"
20124 #: ../fuse/guestmount.pod:71
20127 " guestmount [...] --trace --verbose /mnt\n"
20132 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20133 #: ../resize/virt-resize.pod:544
20138 #: ../fuse/guestmount.pod:75
20139 msgid "Other users cannot see the filesystem by default"
20143 #: ../fuse/guestmount.pod:77
20145 "If you mount a filesystem as one user (eg. root), then other users will not "
20146 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20147 "option when mounting:"
20151 #: ../fuse/guestmount.pod:81
20154 " sudo guestmount [...] -o allow_other /mnt\n"
20159 #: ../fuse/guestmount.pod:91
20160 msgid "Add a block device or virtual machine image."
20164 #: ../fuse/guestmount.pod:114
20165 msgid "B<--dir-cache-timeout N>"
20166 msgstr "B<--dir-cache-timeout N>"
20169 #: ../fuse/guestmount.pod:116
20171 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20172 "seconds. The readdir cache [actually, there are several semi-independent "
20173 "caches] is populated after a readdir(2) call with the stat and extended "
20174 "attributes of the files in the directory, in anticipation that they will be "
20175 "requested soon after."
20179 #: ../fuse/guestmount.pod:122
20181 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20182 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20183 "requests, only cache existing ones."
20187 #: ../fuse/guestmount.pod:142
20189 "If you have untrusted raw-format guest disk images, you should use this "
20190 "option to specify the disk format. This avoids a possible security problem "
20191 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20192 "guestfs_add_drive_opts>."
20196 #: ../fuse/guestmount.pod:147
20197 msgid "B<--fuse-help>"
20198 msgstr "B<--fuse-help>"
20201 #: ../fuse/guestmount.pod:149
20202 msgid "Display help on special FUSE options (see I<-o> below)."
20206 #: ../fuse/guestmount.pod:153
20207 msgid "Display brief help and exit."
20211 #: ../fuse/guestmount.pod:177
20213 "Mount the named partition or logical volume on the given mountpoint B<in the "
20214 "guest> (this has nothing to do with mountpoints in the host)."
20218 #: ../fuse/guestmount.pod:180
20220 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20221 "something on C</>."
20225 #: ../fuse/guestmount.pod:197
20227 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20228 "unmounted. If you specify this option, then we don't attempt to sync the "
20229 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20233 #: ../fuse/guestmount.pod:202
20235 #| msgid "B<--partition>"
20236 msgid "B<-o option>"
20237 msgstr "B<--partition>"
20240 #: ../fuse/guestmount.pod:204
20242 #| msgid "B<--partition>"
20243 msgid "B<--option option>"
20244 msgstr "B<--partition>"
20247 #: ../fuse/guestmount.pod:206
20248 msgid "Pass extra options to FUSE."
20252 #: ../fuse/guestmount.pod:208
20254 "To get a list of all the extra options supported by FUSE, use the command "
20255 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20256 "of them are a good idea."
20260 #: ../fuse/guestmount.pod:212
20263 " guestmount --fuse-help\n"
20268 #: ../fuse/guestmount.pod:214
20269 msgid "Some potentially useful FUSE options:"
20273 #: ../fuse/guestmount.pod:218
20274 msgid "B<-o allow_other>"
20278 #: ../fuse/guestmount.pod:220
20279 msgid "Allow other users to see the filesystem."
20283 #: ../fuse/guestmount.pod:222
20284 msgid "B<-o attr_timeout=N>"
20285 msgstr "B<-o attr_timeout=N>"
20288 #: ../fuse/guestmount.pod:224
20289 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20293 #: ../fuse/guestmount.pod:226
20294 msgid "B<-o kernel_cache>"
20298 #: ../fuse/guestmount.pod:228
20300 "Allow the kernel to cache files (reduces the number of reads that have to go "
20301 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20302 "afford the extra memory usage."
20306 #: ../fuse/guestmount.pod:232
20307 msgid "B<-o uid=N> B<-o gid=N>"
20311 #: ../fuse/guestmount.pod:234
20313 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20314 "the chosen values."
20318 #: ../fuse/guestmount.pod:243
20320 "Add devices and mount everything read-only. Also disallow writes and make "
20321 "the disk appear read-only to FUSE."
20325 #: ../fuse/guestmount.pod:246
20327 "This is highly recommended if you are not going to edit the guest disk. If "
20328 "the guest is running and this option is I<not> supplied, then there is a "
20329 "strong risk of disk corruption in the guest. We try to prevent this from "
20330 "happening, but it is not always possible."
20334 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20335 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20339 #: ../fuse/guestmount.pod:255
20340 msgid "Enable SELinux support for the guest."
20344 #: ../fuse/guestmount.pod:261
20345 msgid "Enable verbose messages from underlying libguestfs."
20349 #: ../fuse/guestmount.pod:267
20350 msgid "Display the program version and exit."
20354 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20355 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20356 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20360 #: ../fuse/guestmount.pod:280
20367 #: ../fuse/guestmount.pod:282
20368 msgid "Trace libguestfs calls and entry into each FUSE function."
20372 #: ../fuse/guestmount.pod:284
20373 msgid "This also stops the daemon from forking into the background."
20377 #: ../fuse/guestmount.pod:310
20379 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20380 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20385 #: ../fuse/guestmount.pod:325
20386 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20390 #: ../inspector/virt-inspector.pod:5
20392 "virt-inspector - Display operating system version and other information "
20393 "about a virtual machine"
20397 #: ../inspector/virt-inspector.pod:9
20400 #| " virt-list-partitions [--options] domname\n"
20403 " virt-inspector [--options] -d domname\n"
20406 " virt-list-partitions [--параметри] назва_домену\n"
20410 #: ../inspector/virt-inspector.pod:11
20413 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20416 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20419 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20423 #: ../inspector/virt-inspector.pod:15
20426 #| " virt-list-partitions [--options] domname\n"
20429 " virt-inspector domname\n"
20432 " virt-list-partitions [--параметри] назва_домену\n"
20436 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20439 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20442 " virt-inspector disk.img [disk.img ...]\n"
20445 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20449 #: ../inspector/virt-inspector.pod:21
20451 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20452 "determine the version of the operating system and other information about "
20453 "the virtual machine."
20457 #: ../inspector/virt-inspector.pod:25
20458 msgid "Virt-inspector produces XML output for feeding into other programs."
20462 #: ../inspector/virt-inspector.pod:27
20464 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20465 "the libvirt domain (see: C<virsh list --all>)."
20469 #: ../inspector/virt-inspector.pod:30
20471 "You can also run virt-inspector directly on disk images from a single "
20472 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20473 "has several block devices, in which case you should list several I<-a> "
20474 "options one after another, with the first corresponding to the guest's C</"
20475 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20479 #: ../inspector/virt-inspector.pod:37
20481 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20482 "keys and similar."
20486 #: ../inspector/virt-inspector.pod:40
20488 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20489 "inspect several virtual machines, you have to run virt-inspector several "
20490 "times (for example, from a shell script for-loop)."
20494 #: ../inspector/virt-inspector.pod:45
20496 "Because virt-inspector needs direct access to guest images, it won't "
20497 "normally work over remote libvirt connections."
20501 #: ../inspector/virt-inspector.pod:48
20503 "All of the information available from virt-inspector is also available "
20504 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20505 "The same information can also be fetched using guestfish or via libguestfs "
20506 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20507 "WITH OTHER PROGRAMMING LANGUAGES>)."
20511 #: ../inspector/virt-inspector.pod:81
20513 "Libvirt is only used if you specify a C<domname> on the command line. If "
20514 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20519 #: ../inspector/virt-inspector.pod:94
20521 "When prompting for keys and passphrases, virt-inspector normally turns "
20522 "echoing off so you cannot see what you are typing. If you are not worried "
20523 "about Tempest attacks and there is no one else in the room you can specify "
20524 "this flag to see what you are typing."
20528 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20529 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20530 #: ../tools/virt-win-reg.pl:144
20532 "Specify the format of disk images given on the command line. If this is "
20533 "omitted then the format is autodetected from the content of the disk image."
20537 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20538 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20539 #: ../tools/virt-win-reg.pl:148
20541 "If disk images are requested from libvirt, then this program asks libvirt "
20542 "for this information. In this case, the value of the format parameter is "
20547 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20548 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20549 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20550 #: ../tools/virt-win-reg.pl:152
20552 "If working with untrusted raw-format guest disk images, you should ensure "
20553 "the format is always specified."
20557 #: ../inspector/virt-inspector.pod:139
20558 msgid "Previous versions of virt-inspector allowed you to write either:"
20562 #: ../inspector/virt-inspector.pod:145
20565 #| " inspect-get-hostname root\n"
20568 " virt-inspector guestname\n"
20571 " inspect-get-hostname корінь\n"
20575 #: ../inspector/virt-inspector.pod:153
20580 #: ../inspector/virt-inspector.pod:155
20582 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20583 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20584 "just an overview."
20588 #: ../inspector/virt-inspector.pod:159
20590 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20591 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
20592 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20593 "which is vanishingly rare in real world VMs."
20597 #: ../inspector/virt-inspector.pod:164
20598 msgid "E<lt>operatingsystemE<gt>"
20602 #: ../inspector/virt-inspector.pod:166
20604 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20605 "describe the operating system, its architecture, the descriptive \"product "
20606 "name\" string, the type of OS and so on, as in this example:"
20610 #: ../inspector/virt-inspector.pod:170
20613 " <operatingsystems>\n"
20614 " <operatingsystem>\n"
20615 " <root>/dev/sda2</root>\n"
20616 " <name>windows</name>\n"
20617 " <arch>i386</arch>\n"
20618 " <distro>windows</distro>\n"
20619 " <product_name>Windows 7 Enterprise</product_name>\n"
20620 " <product_variant>Client</product_variant>\n"
20621 " <major_version>6</major_version>\n"
20622 " <minor_version>1</minor_version>\n"
20623 " <windows_systemroot>/Windows</windows_systemroot>\n"
20624 " <format>installed</format>\n"
20629 #: ../inspector/virt-inspector.pod:183
20631 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20632 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20633 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20634 "architecture. The other fields are fairly self-explanatory, but because "
20635 "these fields are taken directly from the libguestfs inspection API you can "
20636 "find precise information from L<guestfs(3)/INSPECTION>."
20640 #: ../inspector/virt-inspector.pod:191
20642 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20643 "of view of libguestfs (block devices may have completely different names "
20644 "inside the VM itself)."
20648 #: ../inspector/virt-inspector.pod:195
20650 #| msgid "mountpoints"
20651 msgid "E<lt>mountpointsE<gt>"
20652 msgstr "mountpoints"
20655 #: ../inspector/virt-inspector.pod:197
20657 "Un*x-like guests typically have multiple filesystems which are mounted at "
20658 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20659 "element which looks like this:"
20663 #: ../inspector/virt-inspector.pod:201
20666 " <operatingsystems>\n"
20667 " <operatingsystem>\n"
20670 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20671 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20672 " </mountpoints>\n"
20677 #: ../inspector/virt-inspector.pod:209
20679 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20680 "and may have completely different names inside the guest. Only mountable "
20681 "filesystems appear in this list, not things like swap devices."
20685 #: ../inspector/virt-inspector.pod:214
20687 #| msgid "list-filesystems"
20688 msgid "E<lt>filesystemsE<gt>"
20689 msgstr "list-filesystems"
20692 #: ../inspector/virt-inspector.pod:216
20694 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20695 "filesystems belonging to the guest, including swap and empty partitions. "
20696 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20697 "this OS or shared with this OS and other OSes)."
20701 #: ../inspector/virt-inspector.pod:222
20702 msgid "You might see something like this:"
20706 #: ../inspector/virt-inspector.pod:224
20709 " <operatingsystems>\n"
20710 " <operatingsystem>\n"
20713 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20714 " <type>ext4</type>\n"
20715 " <label>Fedora-13-x86_64</label>\n"
20716 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20722 #: ../inspector/virt-inspector.pod:234
20724 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20725 "the label, and the UUID."
20729 #: ../inspector/virt-inspector.pod:237
20730 msgid "E<lt>applicationsE<gt>"
20734 #: ../inspector/virt-inspector.pod:239
20736 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20737 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20742 #: ../inspector/virt-inspector.pod:243
20744 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
20745 "Typical values would be C<rpm> and C<deb>."
20749 #: ../inspector/virt-inspector.pod:246
20751 "E<lt>package_managementE<gt>, if present, describes the package manager. "
20752 "Typical values include C<yum>, C<up2date> and C<apt>"
20756 #: ../inspector/virt-inspector.pod:249
20757 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20761 #: ../inspector/virt-inspector.pod:252
20764 " <operatingsystems>\n"
20765 " <operatingsystem>\n"
20767 " <applications>\n"
20769 " <name>coreutils</name>\n"
20770 " <version>8.5</version>\n"
20771 " <release>1</release>\n"
20772 " </application>\n"
20777 #: ../inspector/virt-inspector.pod:262
20779 "The version and release fields may not be available for some types guests. "
20780 "Other fields are possible, see L<guestfs(3)/"
20781 "guestfs_inspect_list_applications>."
20785 #: ../inspector/virt-inspector.pod:266
20786 msgid "E<lt>drive_mappingsE<gt>"
20790 #: ../inspector/virt-inspector.pod:268
20792 "For operating systems like Windows which use drive letters, virt-inspector "
20793 "is able to find out how drive letters map to filesystems."
20797 #: ../inspector/virt-inspector.pod:272
20800 " <operatingsystems>\n"
20801 " <operatingsystem>\n"
20803 " <drive_mappings>\n"
20804 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20805 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20806 " </drive_mappings>\n"
20811 #: ../inspector/virt-inspector.pod:280
20813 "In the example above, drive C maps to the filesystem on the second partition "
20814 "on the first disk, and drive E maps to the filesystem on the first partition "
20815 "on the second disk."
20819 #: ../inspector/virt-inspector.pod:284
20821 "Note that this only covers permanent local filesystem mappings, not things "
20822 "like network shares. Furthermore NTFS volume mount points may not be listed "
20827 #: ../inspector/virt-inspector.pod:288
20829 #| msgid "B<-s E<lt>NE<gt>>"
20830 msgid "E<lt>iconE<gt>"
20831 msgstr "B<-s E<lt>NE<gt>>"
20834 #: ../inspector/virt-inspector.pod:290
20836 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
20837 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
20838 "very large and high quality."
20842 #: ../inspector/virt-inspector.pod:294
20845 " <operatingsystems>\n"
20846 " <operatingsystem>\n"
20849 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20850 " [... many lines of base64 data ...]\n"
20856 #: ../inspector/virt-inspector.pod:302
20858 "To display the icon, you have to extract it and convert the base64 data back "
20859 "to a binary file. Use an XPath query or simply an editor to extract the "
20860 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20865 #: ../inspector/virt-inspector.pod:307
20868 " base64 -i -d < icon.data > icon.png\n"
20873 #: ../inspector/virt-inspector.pod:309
20874 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20878 #: ../inspector/virt-inspector.pod:311
20880 "Virt-inspector can detect some operating system installers on install disks, "
20881 "live CDs, bootable USB keys and more."
20885 #: ../inspector/virt-inspector.pod:314
20887 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20888 "fields may be present to indicate a live CD, network installer, or one part "
20889 "of a multipart CD. For example:"
20893 #: ../inspector/virt-inspector.pod:318
20896 " <operatingsystems>\n"
20897 " <operatingsystem>\n"
20898 " <root>/dev/sda</root>\n"
20899 " <name>linux</name>\n"
20900 " <arch>i386</arch>\n"
20901 " <distro>ubuntu</distro>\n"
20902 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
20903 " <major_version>10</major_version>\n"
20904 " <minor_version>10</minor_version>\n"
20905 " <format>installer</format>\n"
20911 #: ../inspector/virt-inspector.pod:330
20912 msgid "USING XPATH"
20916 #: ../inspector/virt-inspector.pod:332
20918 "You can use the XPath query language to select parts of the XML. We "
20919 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20923 #: ../inspector/virt-inspector.pod:338
20926 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20928 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20929 " <type>ext4</type>\n"
20935 #: ../inspector/virt-inspector.pod:344
20938 " $ virt-inspector -d Guest | \\\n"
20939 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20945 #: ../inspector/virt-inspector.pod:348
20948 " $ virt-inspector -d Guest | \\\n"
20949 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20950 " [displays the guest icon, if there is one]\n"
20955 #: ../inspector/virt-inspector.pod:359
20956 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20960 #: ../inspector/virt-inspector.pod:361
20962 "Early versions of libguestfs shipped with a different virt-inspector program "
20963 "written in Perl (the current version is written in C). The XML output of "
20964 "the Perl virt-inspector was different and it could also output in other "
20965 "formats like text."
20969 #: ../inspector/virt-inspector.pod:366
20971 "The old virt-inspector is no longer supported or shipped with libguestfs."
20975 #: ../inspector/virt-inspector.pod:369
20977 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20978 "versions of virt-inspector with different names:"
20982 #: ../inspector/virt-inspector.pod:372
20985 " virt-inspector Old Perl version.\n"
20986 " virt-inspector2 New C version.\n"
20991 #: ../inspector/virt-inspector.pod:382
20994 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20995 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
20996 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20998 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20999 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21001 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21002 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21003 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21006 #: ../inspector/virt-inspector.pod:399
21007 msgid "Matthew Booth L<mbooth@redhat.com>"
21011 #: ../java/examples/guestfs-java.pod:5
21012 msgid "guestfs-java - How to use libguestfs from Java"
21016 #: ../java/examples/guestfs-java.pod:9
21019 " import com.redhat.et.libguestfs.*;\n"
21024 #: ../java/examples/guestfs-java.pod:11
21027 " GuestFS g = new GuestFS ();\n"
21028 " g.add_drive_opts (\"disk.img\", null);\n"
21034 #: ../java/examples/guestfs-java.pod:17
21036 "This manual page documents how to call libguestfs from the Java programming "
21037 "language. This page just documents the differences from the C API and gives "
21038 "some examples. If you are not familiar with using libguestfs, you also need "
21039 "to read L<guestfs(3)>."
21043 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21044 msgid "CLOSING THE HANDLE"
21048 #: ../java/examples/guestfs-java.pod:24
21050 "The handle is closed when it is reaped by the garbage collector. Because "
21051 "libguestfs handles include a lot of state, it is also possible to close (and "
21052 "hence free) them explicitly by calling the C<close> method."
21056 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21057 #: ../python/examples/guestfs-python.pod:21
21058 #: ../ruby/examples/guestfs-ruby.pod:22
21065 #: ../java/examples/guestfs-java.pod:31
21067 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21068 "exception. This has a single parameter which is the error message (a "
21073 #: ../java/examples/guestfs-java.pod:35
21074 msgid "Calling any method on a closed handle raises the same exception."
21078 #: ../java/examples/guestfs-java.pod:47
21081 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21082 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21083 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21085 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21086 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21087 "libguestfs.org/>, L<http://caml.inria.fr/>."
21089 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21090 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21091 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21094 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21096 #| msgid "Copyright (C) 2009 Red Hat Inc."
21097 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21098 msgstr "© Red Hat Inc., 2009"
21101 #: ../ocaml/examples/guestfs-ocaml.pod:5
21102 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21106 #: ../ocaml/examples/guestfs-ocaml.pod:9
21107 msgid "Module style:"
21111 #: ../ocaml/examples/guestfs-ocaml.pod:11
21114 " let g = Guestfs.create () in\n"
21115 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21116 " Guestfs.launch g;\n"
21121 #: ../ocaml/examples/guestfs-ocaml.pod:15
21122 msgid "Object-oriented style:"
21126 #: ../ocaml/examples/guestfs-ocaml.pod:17
21129 " let g = new Guestfs.guestfs () in\n"
21130 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21136 #: ../ocaml/examples/guestfs-ocaml.pod:21
21139 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21141 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21146 #: ../ocaml/examples/guestfs-ocaml.pod:27
21148 "This manual page documents how to call libguestfs from the OCaml programming "
21149 "language. This page just documents the differences from the C API and gives "
21150 "some examples. If you are not familiar with using libguestfs, you also need "
21151 "to read L<guestfs(3)>."
21155 #: ../ocaml/examples/guestfs-ocaml.pod:32
21156 msgid "PROGRAMMING STYLES"
21160 #: ../ocaml/examples/guestfs-ocaml.pod:34
21162 "There are two different programming styles supported by the OCaml bindings. "
21163 "You can use a module style, with each C function mapped to an OCaml function:"
21167 #: ../ocaml/examples/guestfs-ocaml.pod:38
21170 #| " int guestfs_last_errno (guestfs_h *g);\n"
21173 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21176 " int guestfs_last_errno (guestfs_h *g);\n"
21180 #: ../ocaml/examples/guestfs-ocaml.pod:40
21185 #: ../ocaml/examples/guestfs-ocaml.pod:42
21188 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21193 #: ../ocaml/examples/guestfs-ocaml.pod:44
21195 "Alternately you can use an object-oriented style, calling methods on the "
21196 "class C<Guestfs.guestfs>:"
21200 #: ../ocaml/examples/guestfs-ocaml.pod:47
21203 " method set_verbose : bool -> unit\n"
21208 #: ../ocaml/examples/guestfs-ocaml.pod:49
21210 "The object-oriented style is usually briefer, and the minor performance "
21211 "penalty isn't noticable in the general overhead of performing libguestfs "
21216 #: ../ocaml/examples/guestfs-ocaml.pod:55
21218 "The handle is closed when it is reaped by the garbage collector. Because "
21219 "libguestfs handles include a lot of state, it is also possible to close (and "
21220 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21225 #: ../ocaml/examples/guestfs-ocaml.pod:62
21227 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21228 "exception. This has a single parameter which is the error message (a "
21233 #: ../ocaml/examples/guestfs-ocaml.pod:66
21235 "Calling any function/method on a closed handle raises C<Guestfs."
21236 "Handle_closed>. The single parameter is the name of the function that you "
21241 #: ../ocaml/examples/guestfs-ocaml.pod:80
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-perl(3)"
21249 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21250 "libguestfs.org/>, L<http://caml.inria.fr/>."
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 #: ../perl/examples/guestfs-perl.pod:5
21258 msgid "guestfs-perl - How to use libguestfs from Perl"
21262 #: ../perl/examples/guestfs-perl.pod:9
21265 " use Sys::Guestfs;\n"
21270 #: ../perl/examples/guestfs-perl.pod:11
21273 " my $h = Sys::Guestfs->new ();\n"
21274 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21275 " $h->launch ();\n"
21276 " $h->mount_options ('', '/dev/sda1', '/');\n"
21277 " $h->touch ('/hello');\n"
21283 #: ../perl/examples/guestfs-perl.pod:20
21285 "This manual page documents how to call libguestfs from the Perl programming "
21286 "language. This page just documents the differences from the C API and gives "
21287 "some examples. If you are not familiar with using libguestfs, you also need "
21288 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21292 #: ../perl/examples/guestfs-perl.pod:26
21297 #: ../perl/examples/guestfs-perl.pod:28
21299 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21304 #: ../perl/examples/guestfs-perl.pod:41
21307 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21308 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21309 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21311 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21312 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21313 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21315 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21316 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21317 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21320 #: ../python/examples/guestfs-python.pod:5
21321 msgid "guestfs-python - How to use libguestfs from Python"
21325 #: ../python/examples/guestfs-python.pod:9
21328 " import guestfs\n"
21329 " g = guestfs.GuestFS ()\n"
21330 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21336 #: ../python/examples/guestfs-python.pod:16
21338 "This manual page documents how to call libguestfs from the Python "
21339 "programming language. This page just documents the differences from the C "
21340 "API and gives some examples. If you are not familiar with using libguestfs, "
21341 "you also need to read L<guestfs(3)>."
21345 #: ../python/examples/guestfs-python.pod:23
21347 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21348 "single string argument which is the error message."
21352 #: ../python/examples/guestfs-python.pod:26
21353 msgid "MORE DOCUMENTATION"
21357 #: ../python/examples/guestfs-python.pod:28
21362 #: ../python/examples/guestfs-python.pod:30
21366 " >>> import guestfs\n"
21367 " >>> help (guestfs)\n"
21372 #: ../python/examples/guestfs-python.pod:44
21375 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21376 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21377 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21379 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21380 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21381 "libguestfs.org/>."
21383 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21384 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21385 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21388 #: ../rescue/virt-rescue.pod:5
21389 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21393 #: ../rescue/virt-rescue.pod:9
21396 #| " virt-list-partitions [--options] domname\n"
21399 " virt-rescue [--options] -d domname\n"
21402 " virt-list-partitions [--параметри] назва_домену\n"
21406 #: ../rescue/virt-rescue.pod:11
21409 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21412 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21415 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21419 #: ../rescue/virt-rescue.pod:15
21422 #| " virt-list-partitions [--options] domname\n"
21425 " virt-rescue [--options] domname\n"
21428 " virt-list-partitions [--параметри] назва_домену\n"
21432 #: ../rescue/virt-rescue.pod:17
21435 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21438 " virt-rescue [--options] disk.img [disk.img ...]\n"
21441 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21445 #: ../rescue/virt-rescue.pod:21
21447 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21448 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21449 "you from doing this, but doesn't catch all cases."
21453 #: ../rescue/virt-rescue.pod:25
21455 "However if you use the I<--ro> (read only) option, then you can attach a "
21456 "shell to a live virtual machine. The results might be strange or "
21457 "inconsistent at times but you won't get disk corruption."
21461 #: ../rescue/virt-rescue.pod:31
21463 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21464 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21465 "recovery tools which you can use to examine or rescue a virtual machine or "
21470 #: ../rescue/virt-rescue.pod:36
21472 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21473 "on disk image(s):"
21477 #: ../rescue/virt-rescue.pod:39
21480 " virt-rescue -d GuestName\n"
21485 #: ../rescue/virt-rescue.pod:41
21488 " virt-rescue --ro -a /path/to/disk.img\n"
21493 #: ../rescue/virt-rescue.pod:43
21496 " virt-rescue -a /dev/sdc\n"
21501 #: ../rescue/virt-rescue.pod:45
21502 msgid "For live VMs you I<must> use the --ro option."
21506 #: ../rescue/virt-rescue.pod:47
21508 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21509 "in an interactive bash shell where you can use many ordinary Linux "
21510 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21511 "appliance. You must mount the virtual machine's filesystems by hand. There "
21512 "is an empty directory called C</sysroot> where you can mount filesystems."
21516 #: ../rescue/virt-rescue.pod:54
21518 "In the example below, we list logical volumes, then choose one to mount "
21519 "under C</sysroot>:"
21523 #: ../rescue/virt-rescue.pod:57
21527 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21528 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21529 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21530 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21531 " ><rescue> ls /sysroot\n"
21536 #: ../rescue/virt-rescue.pod:64
21538 "If you don't know what filesystems are available on the virtual machine then "
21539 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21543 #: ../rescue/virt-rescue.pod:70
21545 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21546 "virtual machine. For example you can use it on a blank file if you want to "
21547 "partition that file (although we would recommend using L<guestfish(1)> "
21548 "instead as it is more suitable for this purpose). You can even use virt-"
21549 "rescue on things like SD cards."
21553 #: ../rescue/virt-rescue.pod:76
21555 "Virt-rescue does not require root. You only need to run it as root if you "
21556 "need root to open the disk image."
21560 #: ../rescue/virt-rescue.pod:79
21562 "This tool is just designed for quick interactive hacking on a virtual "
21563 "machine. For more structured access to a virtual machine disk image, you "
21564 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21565 "make scripted changes to guests, use L<guestfish(1)>."
21569 #: ../rescue/virt-rescue.pod:103
21570 msgid "B<--append kernelopts>"
21574 #: ../rescue/virt-rescue.pod:105
21575 msgid "Pass additional options to the rescue kernel."
21579 #: ../rescue/virt-rescue.pod:135
21582 #| " guestfish --format=raw -a disk.img\n"
21585 " virt-rescue --format=raw -a disk.img\n"
21588 " guestfish --format=raw -a disk.img\n"
21592 #: ../rescue/virt-rescue.pod:139
21595 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21598 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21601 " guestfish --format=raw -a disk.img --format -a another.img\n"
21605 #: ../rescue/virt-rescue.pod:148
21610 #: ../rescue/virt-rescue.pod:150
21612 #| msgid "B<--merge>"
21613 msgid "B<--memsize MB>"
21614 msgstr "B<--merge>"
21617 #: ../rescue/virt-rescue.pod:152
21619 "Change the amount of memory allocated to the rescue system. The default is "
21620 "set by libguestfs and is small but adequate for running system tools. The "
21621 "occasional program might need more memory. The parameter is specified in "
21626 #: ../rescue/virt-rescue.pod:157
21628 #| msgid "B<--inspector>"
21629 msgid "B<--network>"
21630 msgstr "B<--inspector>"
21633 #: ../rescue/virt-rescue.pod:159
21634 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
21638 #: ../rescue/virt-rescue.pod:165
21639 msgid "Open the image read-only."
21643 #: ../rescue/virt-rescue.pod:175
21645 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
21646 "SELINUX> before using this option."
21650 #: ../rescue/virt-rescue.pod:194
21652 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21653 "are done read-write."
21657 #: ../rescue/virt-rescue.pod:207
21658 msgid "Previous versions of virt-rescue allowed you to write either:"
21662 #: ../rescue/virt-rescue.pod:209
21665 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21668 " virt-rescue disk.img [disk.img ...]\n"
21671 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21675 #: ../rescue/virt-rescue.pod:213
21678 #| " file-architecture filename\n"
21681 " virt-rescue guestname\n"
21684 " file-architecture назва_файла\n"
21688 #: ../rescue/virt-rescue.pod:221
21693 #: ../rescue/virt-rescue.pod:223
21695 "Adding the I<--network> option enables QEMU user networking in the rescue "
21696 "appliance. There are some differences between user networking and ordinary "
21701 #: ../rescue/virt-rescue.pod:229
21702 msgid "ping does not work"
21706 #: ../rescue/virt-rescue.pod:231
21708 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21709 "send the ping packets, and because virt-rescue must be able to run as non-"
21710 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
21711 "The ping command will appear to resolve addresses but will not be able to "
21712 "send or receive any packets. This does not mean that the network is not "
21717 #: ../rescue/virt-rescue.pod:238
21718 msgid "cannot receive connections"
21722 #: ../rescue/virt-rescue.pod:240
21723 msgid "QEMU user networking cannot receive incoming connections."
21727 #: ../rescue/virt-rescue.pod:242
21728 msgid "making TCP connections"
21732 #: ../rescue/virt-rescue.pod:244
21734 "The virt-rescue appliance needs to be small and so does not include many "
21735 "network tools. In particular there is no L<telnet(1)> command. You can "
21736 "make TCP connections from the shell using the magical C</dev/tcp/"
21737 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21741 #: ../rescue/virt-rescue.pod:249
21744 " exec 3<>/dev/tcp/redhat.com/80\n"
21745 " echo \"GET /\" >&3\n"
21751 #: ../rescue/virt-rescue.pod:253
21752 msgid "See L<bash(1)> for more details."
21756 #: ../rescue/virt-rescue.pod:259
21758 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
21759 "ENVIRONMENT VARIABLES> for the complete list."
21763 #: ../rescue/virt-rescue.pod:286
21766 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21767 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21768 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21770 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21771 "libguestfs.org/>."
21773 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21774 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21775 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21778 #: ../resize/virt-resize.pod:5
21779 msgid "virt-resize - Resize a virtual machine disk"
21783 #: ../resize/virt-resize.pod:9
21786 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21787 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21788 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21793 #: ../resize/virt-resize.pod:15
21795 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21796 "larger or smaller overall, and resizing or deleting any partitions contained "
21801 #: ../resize/virt-resize.pod:19
21803 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
21804 "not> be used on live virtual machines - for consistent results, shut the "
21805 "virtual machine down before resizing it."
21809 #: ../resize/virt-resize.pod:23
21811 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21812 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21816 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
21817 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1396
21818 #: ../src/guestfs.pod:2481
21823 #: ../resize/virt-resize.pod:33
21825 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21826 "fill the extra 5GB of space."
21830 #: ../resize/virt-resize.pod:36
21833 " virt-filesystems --long -h --all -a olddisk\n"
21838 #: ../resize/virt-resize.pod:38
21841 " truncate -r olddisk newdisk\n"
21842 " truncate -s +5G newdisk\n"
21847 #: ../resize/virt-resize.pod:41
21850 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21851 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21856 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
21857 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400
21858 #: ../src/guestfs.pod:2506
21863 #: ../resize/virt-resize.pod:46
21865 "As above, but make the /boot partition 200MB bigger, while giving the "
21866 "remaining space to /dev/sda2:"
21870 #: ../resize/virt-resize.pod:49
21873 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21874 " olddisk newdisk\n"
21879 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
21880 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1406
21885 #: ../resize/virt-resize.pod:54
21887 "As in the first example, but expand a logical volume as the final step. "
21888 "This is what you would typically use for Linux guests that use LVM:"
21892 #: ../resize/virt-resize.pod:58
21895 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21896 " olddisk newdisk\n"
21901 #: ../resize/virt-resize.pod:61
21906 #: ../resize/virt-resize.pod:63
21908 "As in the first example, but the output format will be qcow2 instead of a "
21913 #: ../resize/virt-resize.pod:66
21916 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21917 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21922 #: ../resize/virt-resize.pod:71
21923 msgid "DETAILED USAGE"
21927 #: ../resize/virt-resize.pod:73
21928 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21932 #: ../resize/virt-resize.pod:77
21933 msgid "1. Shut down the virtual machine"
21937 #: ../resize/virt-resize.pod:79
21938 msgid "2. Locate input disk image"
21942 #: ../resize/virt-resize.pod:81
21944 "Locate the input disk image (ie. the file or device on the host containing "
21945 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
21946 "dumpxml> like this to find the disk image name:"
21950 #: ../resize/virt-resize.pod:85
21953 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21954 " Found 1 nodes:\n"
21956 " <source dev=\"/dev/vg/lv_guest\" />\n"
21961 #: ../resize/virt-resize.pod:90
21962 msgid "3. Look at current sizing"
21966 #: ../resize/virt-resize.pod:92
21967 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21971 #: ../resize/virt-resize.pod:95
21974 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21975 " Name Type Size Parent\n"
21976 " /dev/sda1 partition 101M /dev/sda\n"
21977 " /dev/sda2 partition 7.9G /dev/sda\n"
21978 " /dev/sda device 8.0G -\n"
21983 #: ../resize/virt-resize.pod:101
21985 "(This example is a virtual machine with an 8 GB disk which we would like to "
21986 "expand up to 10 GB)."
21990 #: ../resize/virt-resize.pod:104
21991 msgid "4. Create output disk"
21995 #: ../resize/virt-resize.pod:106
21997 "Virt-resize cannot do in-place disk modifications. You have to have space "
21998 "to store the resized output disk."
22002 #: ../resize/virt-resize.pod:109
22004 "To store the resized disk image in a file, create a file of a suitable size:"
22008 #: ../resize/virt-resize.pod:112
22011 " # rm -f outdisk\n"
22012 " # truncate -s 10G outdisk\n"
22017 #: ../resize/virt-resize.pod:115
22018 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22022 #: ../resize/virt-resize.pod:117
22025 " # lvcreate -L 10G -n lv_name vg_name\n"
22030 #: ../resize/virt-resize.pod:119
22031 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22035 #: ../resize/virt-resize.pod:121
22038 " # virsh pool-list\n"
22039 " # virsh vol-create-as poolname newvol 10G\n"
22044 #: ../resize/virt-resize.pod:124
22049 #: ../resize/virt-resize.pod:126
22051 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22052 "file) and the output disk. The output disk is the one created in the "
22057 #: ../resize/virt-resize.pod:130
22060 " # virt-resize indisk outdisk\n"
22065 #: ../resize/virt-resize.pod:132
22067 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22068 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22069 "larger, then an extra, empty partition is created at the end of the disk "
22070 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22075 #: ../resize/virt-resize.pod:138
22077 "More realistically you'd want to expand existing partitions in the disk "
22078 "image by passing extra options (for the full list see the L</OPTIONS> "
22083 #: ../resize/virt-resize.pod:142
22085 "L</--expand> is the most useful option. It expands the named partition "
22086 "within the disk to fill any extra space:"
22090 #: ../resize/virt-resize.pod:145
22093 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22098 #: ../resize/virt-resize.pod:147
22100 "(In this case, an extra partition is I<not> created at the end of the disk, "
22101 "because there will be no unused space)."
22105 #: ../resize/virt-resize.pod:150
22107 "L</--resize> is the other commonly used option. The following would "
22108 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22109 "rest of the available space:"
22113 #: ../resize/virt-resize.pod:154
22116 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22117 " indisk outdisk\n"
22122 #: ../resize/virt-resize.pod:157
22124 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22125 "if virt-resize knows how, it will resize the contents, the equivalent of "
22126 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22127 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22128 "filesystems, so you would have to online resize them after booting the guest."
22132 #: ../resize/virt-resize.pod:164
22133 msgid "Other options are covered below."
22137 #: ../resize/virt-resize.pod:166
22142 #: ../resize/virt-resize.pod:168
22143 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22147 #: ../resize/virt-resize.pod:170
22148 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22152 #: ../resize/virt-resize.pod:172
22155 #| " edit filename\n"
22158 " # virsh edit guestname\n"
22161 " edit назва_файла\n"
22165 #: ../resize/virt-resize.pod:174
22167 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22168 "html#elementsDisks>"
22172 #: ../resize/virt-resize.pod:177
22173 msgid "Then start up the domain with the new, resized disk:"
22177 #: ../resize/virt-resize.pod:179
22180 #| " ln-s target linkname\n"
22183 " # virsh start guestname\n"
22186 " ln-s призначення назва_посилання\n"
22190 #: ../resize/virt-resize.pod:181
22192 "and check that it still works. See also the L</NOTES> section below for "
22193 "additional information."
22197 #: ../resize/virt-resize.pod:184
22198 msgid "7. Resize LVs etc inside the guest"
22202 #: ../resize/virt-resize.pod:186
22203 msgid "(This can also be done offline using L<guestfish(1)>)"
22207 #: ../resize/virt-resize.pod:188
22209 "Once the guest has booted you should see the new space available, at least "
22210 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22211 "may need to resize LVs inside PVs, and also resize filesystem types that "
22212 "virt-resize does not know how to expand."
22216 #: ../resize/virt-resize.pod:195
22217 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22221 #: ../resize/virt-resize.pod:197
22223 "Shrinking is somewhat more complex than expanding, and only an overview is "
22228 #: ../resize/virt-resize.pod:200
22230 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22231 "filesystems). The user has to shrink content before passing the disk image "
22232 "to virt-resize, and virt-resize will check that the content has been shrunk "
22237 #: ../resize/virt-resize.pod:205
22238 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22242 #: ../resize/virt-resize.pod:207
22244 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22245 "steps 3 and 4 above to allocate a new disk image."
22249 #: ../resize/virt-resize.pod:210
22251 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22255 #: ../resize/virt-resize.pod:213
22256 msgid "IGNORING OR DELETING PARTITIONS"
22260 #: ../resize/virt-resize.pod:215
22262 "virt-resize also gives a convenient way to ignore or delete partitions when "
22263 "copying from the input disk to the output disk. Ignoring a partition speeds "
22264 "up the copy where you don't care about the existing contents of a "
22265 "partition. Deleting a partition removes it completely, but note that it "
22266 "also renumbers any partitions after the one which is deleted, which can "
22267 "leave some guests unbootable."
22271 #: ../resize/virt-resize.pod:222
22272 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22276 #: ../resize/virt-resize.pod:224
22278 "If the input disk is in qcow2 format, then you may prefer that the output is "
22279 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22280 "the fly. The output format is simply determined by the format of the empty "
22281 "output container that you provide. Thus to create qcow2 output, use:"
22285 #: ../resize/virt-resize.pod:230
22288 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22293 #: ../resize/virt-resize.pod:232
22294 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22298 #: ../resize/virt-resize.pod:234
22299 msgid "Similarly, to get non-sparse raw output use:"
22303 #: ../resize/virt-resize.pod:236
22306 #| " fallocate path len\n"
22309 " fallocate -l size outdisk\n"
22312 " fallocate шлях довжина\n"
22316 #: ../resize/virt-resize.pod:238
22318 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22319 "dev/zero of=outdisk bs=1M count=..>)"
22323 #: ../resize/virt-resize.pod:247
22324 msgid "Display help."
22328 #: ../resize/virt-resize.pod:249
22333 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22334 #: ../tools/virt-win-reg.pl:120
22336 msgstr "B<--debug>"
22339 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22340 msgid "Enable debugging messages."
22344 #: ../resize/virt-resize.pod:255
22346 #| msgid "B<--no-dest-paths>"
22347 msgid "B<--delete part>"
22348 msgstr "B<--no-dest-paths>"
22351 #: ../resize/virt-resize.pod:257
22353 "Delete the named partition. It would be more accurate to describe this as "
22354 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22355 "the original disk image is left intact."
22359 #: ../resize/virt-resize.pod:261
22361 "Note that when you delete a partition, then anything contained in the "
22362 "partition is also deleted. Furthermore, this causes any partitions that "
22363 "come after to be I<renumbered>, which can easily make your guest unbootable."
22367 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22368 #: ../resize/virt-resize.pod:454
22369 msgid "You can give this option multiple times."
22373 #: ../resize/virt-resize.pod:268
22375 #| msgid "B<--partition>"
22376 msgid "B<--expand part>"
22377 msgstr "B<--partition>"
22380 #: ../resize/virt-resize.pod:270
22382 "Expand the named partition so it uses up all extra space (space left over "
22383 "after any other resize changes that you request have been done)."
22387 #: ../resize/virt-resize.pod:273
22389 "If virt-resize knows how, it will expand the direct content of the "
22390 "partition. For example, if the partition is an LVM PV, it will expand the "
22391 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22392 "content it doesn't know about alone."
22396 #: ../resize/virt-resize.pod:278
22397 msgid "Currently virt-resize can resize:"
22401 #: ../resize/virt-resize.pod:284
22402 msgid "ext2, ext3 and ext4 filesystems."
22406 #: ../resize/virt-resize.pod:288
22407 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22411 #: ../resize/virt-resize.pod:290
22413 "The filesystem must have been shut down consistently last time it was used. "
22414 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22415 "consistency check, so at the first boot after resizing Windows will check "
22420 #: ../resize/virt-resize.pod:297
22422 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22423 "inside the PV, but see the I<--LV-expand> option. The user could also "
22424 "resize LVs as desired after boot."
22428 #: ../resize/virt-resize.pod:303
22429 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22433 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22434 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22438 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22439 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22440 #: ../tools/virt-win-reg.pl:142
22441 msgid "B<--format> raw"
22445 #: ../resize/virt-resize.pod:311
22447 "Specify the format of the input disk image. If this flag is not given then "
22448 "it is auto-detected from the image itself."
22452 #: ../resize/virt-resize.pod:317
22454 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22455 "AND NON-SPARSE RAW FORMATS>."
22459 #: ../resize/virt-resize.pod:320
22461 #| msgid "B<--format>"
22462 msgid "B<--ignore part>"
22463 msgstr "B<--format>"
22466 #: ../resize/virt-resize.pod:322
22468 "Ignore the named partition. Effectively this means the partition is "
22469 "allocated on the destination disk, but the content is not copied across from "
22470 "the source disk. The content of the partition will be blank (all zero "
22475 #: ../resize/virt-resize.pod:329
22476 msgid "B<--LV-expand logvol>"
22480 #: ../resize/virt-resize.pod:331
22482 "This takes the logical volume and, as a final step, expands it to fill all "
22483 "the space available in its volume group. A typical usage, assuming a Linux "
22484 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22485 "lv_root> would be:"
22489 #: ../resize/virt-resize.pod:336
22492 " virt-resize indisk outdisk \\\n"
22493 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22498 #: ../resize/virt-resize.pod:339
22500 "This would first expand the partition (and PV), and then expand the root "
22501 "device to fill the extra space in the PV."
22505 #: ../resize/virt-resize.pod:342
22507 "The contents of the LV are also resized if virt-resize knows how to do "
22508 "that. You can stop virt-resize from trying to expand the content by using "
22509 "the option I<--no-expand-content>."
22513 #: ../resize/virt-resize.pod:346
22514 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22518 #: ../resize/virt-resize.pod:348
22520 "You can give this option multiple times, I<but> it doesn't make sense to do "
22521 "this unless the logical volumes you specify are all in different volume "
22526 #: ../resize/virt-resize.pod:352
22528 #| msgid "B<-h> | B<--human-readable>"
22529 msgid "B<--machine-readable>"
22530 msgstr "B<-h> | B<--human-readable>"
22533 #: ../resize/virt-resize.pod:354
22535 "This option is used to make the output more machine friendly when being "
22536 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
22540 #: ../resize/virt-resize.pod:360
22542 #| msgid "B<--debug>"
22543 msgid "B<--dryrun>"
22544 msgstr "B<--debug>"
22547 #: ../resize/virt-resize.pod:362
22548 msgid "Print a summary of what would be done, but don't do anything."
22552 #: ../resize/virt-resize.pod:364
22553 msgid "B<--no-copy-boot-loader>"
22557 #: ../resize/virt-resize.pod:366
22559 "By default, virt-resize copies over some sectors at the start of the disk "
22560 "(up to the beginning of the first partition). Commonly these sectors "
22561 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22562 "in order for the guest to boot correctly."
22566 #: ../resize/virt-resize.pod:371
22568 "If you specify this flag, then this initial copy is not done. You may need "
22569 "to reinstall the boot loader in this case."
22573 #: ../resize/virt-resize.pod:374
22575 #| msgid "B<--partition>"
22576 msgid "B<--no-extra-partition>"
22577 msgstr "B<--partition>"
22580 #: ../resize/virt-resize.pod:376
22582 "By default, virt-resize creates an extra partition if there is any extra, "
22583 "unused space after all resizing has happened. Use this option to prevent "
22584 "the extra partition from being created. If you do this then the extra space "
22585 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22586 "tool in the guest."
22590 #: ../resize/virt-resize.pod:382
22592 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22597 #: ../resize/virt-resize.pod:385
22599 #| msgid "B<--no-dest-paths>"
22600 msgid "B<--no-expand-content>"
22601 msgstr "B<--no-dest-paths>"
22604 #: ../resize/virt-resize.pod:387
22606 "By default, virt-resize will try to expand the direct contents of "
22607 "partitions, if it knows how (see I<--expand> option above)."
22611 #: ../resize/virt-resize.pod:390
22613 "If you give the I<--no-expand-content> option then virt-resize will not "
22618 #: ../resize/virt-resize.pod:393
22620 #| msgid "ntfsresize-size"
22621 msgid "B<--ntfsresize-force>"
22622 msgstr "ntfsresize-size"
22625 #: ../resize/virt-resize.pod:395
22627 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22628 "the NTFS disk is marked as needing a consistency check. You have to use "
22629 "this option if you want to resize a Windows guest multiple times without "
22630 "booting into Windows between each resize."
22634 #: ../resize/virt-resize.pod:401
22636 #| msgid "B<--format>"
22637 msgid "B<--output-format> raw"
22638 msgstr "B<--format>"
22641 #: ../resize/virt-resize.pod:403
22643 "Specify the format of the output disk image. If this flag is not given then "
22644 "it is auto-detected from the image itself."
22648 #: ../resize/virt-resize.pod:409
22650 "Note that this option I<does not create> the output format. This option "
22651 "just tells libguestfs what it is so it doesn't try to guess it. You still "
22652 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
22653 "SPARSE RAW FORMATS>."
22657 #: ../resize/virt-resize.pod:414
22662 #: ../resize/virt-resize.pod:416
22664 #| msgid "B<--live>"
22669 #: ../resize/virt-resize.pod:418
22670 msgid "Don't print the summary."
22674 #: ../resize/virt-resize.pod:420
22676 #| msgid "B<part_size>"
22677 msgid "B<--resize part=size>"
22678 msgstr "B<part_size>"
22681 #: ../resize/virt-resize.pod:422
22683 "Resize the named partition (expanding or shrinking it) so that it has the "
22688 #: ../resize/virt-resize.pod:425
22690 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22691 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22692 "size; or as a relative number or percentage. For example:"
22696 #: ../resize/virt-resize.pod:431
22699 #| " hexedit /dev/sda 1M\n"
22702 " --resize /dev/sda2=10G\n"
22705 " hexedit /dev/sda 1M\n"
22709 #: ../resize/virt-resize.pod:433
22712 #| " pvresize device\n"
22715 " --resize /dev/sda4=90%\n"
22718 " pvresize пристрій\n"
22722 #: ../resize/virt-resize.pod:435
22725 #| " hexedit /dev/sda 1M\n"
22728 " --resize /dev/sda2=+1G\n"
22731 " hexedit /dev/sda 1M\n"
22735 #: ../resize/virt-resize.pod:437
22738 #| " hexedit /dev/sda 1M\n"
22741 " --resize /dev/sda2=-200M\n"
22744 " hexedit /dev/sda 1M\n"
22748 #: ../resize/virt-resize.pod:439
22751 #| " hexedit /dev/sda 1M\n"
22754 " --resize /dev/sda1=+128K\n"
22757 " hexedit /dev/sda 1M\n"
22761 #: ../resize/virt-resize.pod:441
22764 #| " hexedit /dev/sda 1M\n"
22767 " --resize /dev/sda1=+10%\n"
22770 " hexedit /dev/sda 1M\n"
22774 #: ../resize/virt-resize.pod:443
22777 #| " hexedit /dev/sda 1M\n"
22780 " --resize /dev/sda1=-10%\n"
22783 " hexedit /dev/sda 1M\n"
22787 #: ../resize/virt-resize.pod:445
22789 "You can increase the size of any partition. Virt-resize will expand the "
22790 "direct content of the partition if it knows how (see I<--expand> below)."
22794 #: ../resize/virt-resize.pod:449
22796 "You can only I<decrease> the size of partitions that contain filesystems or "
22797 "PVs which have already been shrunk. Virt-resize will check this has been "
22798 "done before proceeding, or else will print an error (see also I<--resize-"
22803 #: ../resize/virt-resize.pod:456
22804 msgid "B<--resize-force part=size>"
22808 #: ../resize/virt-resize.pod:458
22810 "This is the same as I<--resize> except that it will let you decrease the "
22811 "size of any partition. Generally this means you will lose any data which "
22812 "was at the end of the partition you shrink, but you may not care about that "
22813 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22814 "as a swap partition)."
22818 #: ../resize/virt-resize.pod:464
22819 msgid "See also the I<--ignore> option."
22823 #: ../resize/virt-resize.pod:466
22825 #| msgid "B<--partition>"
22826 msgid "B<--shrink part>"
22827 msgstr "B<--partition>"
22830 #: ../resize/virt-resize.pod:468
22832 "Shrink the named partition until the overall disk image fits in the "
22833 "destination. The named partition B<must> contain a filesystem or PV which "
22834 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22835 "online tools). Virt-resize will check this and give an error if it has not "
22840 #: ../resize/virt-resize.pod:474
22842 "The amount by which the overall disk must be shrunk (after carrying out all "
22843 "other operations requested by the user) is called the \"deficit\". For "
22844 "example, a straight copy (assume no other operations) from a 5GB disk image "
22845 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
22846 "would give an error unless the user specified a partition to shrink and that "
22847 "partition had more than a gigabyte of free space."
22851 #: ../resize/virt-resize.pod:492
22852 msgid "MACHINE READABLE OUTPUT"
22856 #: ../resize/virt-resize.pod:494
22858 "The I<--machine-readable> option can be used to make the output more machine "
22859 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22864 #: ../resize/virt-resize.pod:498
22865 msgid "There are two ways to use this option."
22869 #: ../resize/virt-resize.pod:500
22871 "Firstly use the option on its own to query the capabilities of the virt-"
22872 "resize binary. Typical output looks like this:"
22876 #: ../resize/virt-resize.pod:503
22879 " $ virt-resize --machine-readable\n"
22881 " ntfsresize-force\n"
22889 #: ../resize/virt-resize.pod:510
22891 "A list of features is printed, one per line, and the program exits with "
22896 #: ../resize/virt-resize.pod:513
22898 "Secondly use the option in conjunction with other options to make the "
22899 "regular program output more machine friendly."
22903 #: ../resize/virt-resize.pod:516
22904 msgid "At the moment this means:"
22908 #: ../resize/virt-resize.pod:522
22910 "Progress bar messages can be parsed from stdout by looking for this regular "
22915 #: ../resize/virt-resize.pod:525
22918 " ^[0-9]+/[0-9]+$\n"
22923 #: ../resize/virt-resize.pod:529
22925 "The calling program should treat messages sent to stdout (except for "
22926 "progress bar messages) as status messages. They can be logged and/or "
22927 "displayed to the user."
22931 #: ../resize/virt-resize.pod:535
22933 "The calling program should treat messages sent to stderr as error messages. "
22934 "In addition, virt-resize exits with a non-zero status code if there was a "
22939 #: ../resize/virt-resize.pod:541
22941 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
22942 "readable> option and will return an error."
22946 #: ../resize/virt-resize.pod:546
22947 msgid "\"Partition 1 does not end on cylinder boundary.\""
22951 #: ../resize/virt-resize.pod:548
22953 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
22954 "means the partitions will not be aligned to the ancient CHS geometry. "
22955 "However CHS geometry is meaningless for disks manufactured since the early "
22956 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
22957 "cylinders is not required by any modern operating system."
22961 #: ../resize/virt-resize.pod:555
22962 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22966 #: ../resize/virt-resize.pod:557
22968 "In Windows Vista and later versions, Microsoft switched to using a separate "
22969 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
22970 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
22971 "the boot partition. Doing so seems to break the guest completely. However "
22972 "expanding the second partition (ie. C: drive) should work."
22976 #: ../resize/virt-resize.pod:564
22978 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22979 "NTFS partitions have been expanded. This is just a safety check and (unless "
22980 "it find errors) is nothing to worry about."
22984 #: ../resize/virt-resize.pod:568
22985 msgid "GUEST BOOT STUCK AT \"GRUB\""
22989 #: ../resize/virt-resize.pod:570
22991 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22992 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
22993 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22994 "although we think is to do with partition alignment."
22998 #: ../resize/virt-resize.pod:575
23001 " guestfish -i -a newdisk\n"
23002 " ><fs> cat /boot/grub/device.map\n"
23003 " # check the contents of this file are sensible or\n"
23004 " # edit the file if necessary\n"
23005 " ><fs> grub-install / /dev/vda\n"
23011 #: ../resize/virt-resize.pod:582
23013 "For more flexible guest reconfiguration, including if you need to specify "
23014 "other parameters to grub-install, use L<virt-rescue(1)>."
23018 #: ../resize/virt-resize.pod:585
23019 msgid "ALTERNATIVE TOOLS"
23023 #: ../resize/virt-resize.pod:587
23025 "There are several proprietary tools for resizing partitions. We won't "
23026 "mention any here."
23030 #: ../resize/virt-resize.pod:590
23032 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23033 "operations on disk images. They can resize and move partitions, but I don't "
23034 "think they can do anything with the contents, and they certainly don't "
23039 #: ../resize/virt-resize.pod:595
23041 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23042 "but at a much lower level. You will probably end up hand-calculating sector "
23043 "offsets, which is something that virt-resize was designed to avoid. If you "
23044 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23049 #: ../resize/virt-resize.pod:615
23051 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23052 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23053 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23054 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23058 #: ../ruby/examples/guestfs-ruby.pod:5
23059 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23063 #: ../ruby/examples/guestfs-ruby.pod:9
23066 " require 'guestfs'\n"
23067 " g = Guestfs::Guestfs.new()\n"
23068 " g.add_drive_opts(\"disk.img\",\n"
23069 " :readonly => 1, :format => \"raw\")\n"
23075 #: ../ruby/examples/guestfs-ruby.pod:17
23077 "This manual page documents how to call libguestfs from the Ruby programming "
23078 "language. This page just documents the differences from the C API and gives "
23079 "some examples. If you are not familiar with using libguestfs, you also need "
23080 "to read L<guestfs(3)>."
23084 #: ../ruby/examples/guestfs-ruby.pod:24
23086 "Errors from libguestfs functions are mapped into the C<Error> exception. "
23087 "This has a single parameter which is the error message (a string)."
23091 #: ../ruby/examples/guestfs-ruby.pod:38
23094 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23095 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23096 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23098 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
23099 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
23100 "libguestfs.org/>."
23102 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23103 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23104 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23107 #: ../src/guestfs-actions.pod:1
23108 msgid "guestfs_add_cdrom"
23112 #: ../src/guestfs-actions.pod:3
23116 " guestfs_add_cdrom (guestfs_h *g,\n"
23117 " const char *filename);\n"
23122 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23123 #: ../src/guestfs-actions.pod:270
23125 "I<This function is deprecated.> In new code, use the L</"
23126 "guestfs_add_drive_opts> call instead."
23130 #: ../src/guestfs-actions.pod:24
23132 "This call checks for the existence of C<filename>. This stops you from "
23133 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23134 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
23139 #: ../src/guestfs-actions.pod:31
23141 "If you just want to add an ISO file (often you use this as an efficient way "
23142 "to transfer large files into the guest), then you should probably use "
23143 "C<guestfs_add_drive_ro> instead."
23147 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23148 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23149 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23150 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23151 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23152 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23153 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23154 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23155 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23156 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23157 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23158 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23159 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23160 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23161 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23162 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23163 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23164 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
23165 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23166 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23167 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
23168 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
23169 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
23170 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
23171 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
23172 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
23173 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
23174 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
23175 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
23176 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
23177 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
23178 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
23179 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
23180 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
23181 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
23182 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
23183 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
23184 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
23185 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
23186 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635
23187 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
23188 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
23189 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
23190 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
23191 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
23192 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980
23193 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
23194 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
23195 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172
23196 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262
23197 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
23198 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
23199 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
23200 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
23201 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
23202 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
23203 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
23204 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
23205 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
23206 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
23207 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
23208 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
23209 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
23210 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
23211 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
23212 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
23213 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
23214 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
23215 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
23216 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
23217 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578
23218 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726
23219 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
23220 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
23221 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
23222 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23223 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
23224 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
23225 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
23226 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
23227 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
23228 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
23229 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
23230 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
23231 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
23232 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
23233 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609
23234 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
23235 #: ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782
23236 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
23237 msgid "This function returns 0 on success or -1 on error."
23241 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23242 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23243 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23244 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
23245 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
23246 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
23247 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
23248 #: ../src/guestfs-actions.pod:7611
23249 msgid "(Added in 0.3)"
23253 #: ../src/guestfs-actions.pod:41
23254 msgid "guestfs_add_domain"
23258 #: ../src/guestfs-actions.pod:43
23262 " guestfs_add_domain (guestfs_h *g,\n"
23263 " const char *dom,\n"
23269 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23270 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
23271 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
23272 #: ../src/guestfs-actions.pod:5183
23274 "You may supply a list of optional arguments to this call. Use zero or more "
23275 "of the following pairs of parameters, and terminate the list with C<-1> on "
23276 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23280 #: ../src/guestfs-actions.pod:53
23283 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23284 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23285 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23286 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23287 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23292 #: ../src/guestfs-actions.pod:59
23294 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23295 "It works by connecting to libvirt, requesting the domain and domain XML from "
23296 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23301 #: ../src/guestfs-actions.pod:94
23303 "The other optional parameters are passed directly through to "
23304 "C<guestfs_add_drive_opts>."
23308 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23309 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23310 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23311 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23312 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23313 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23314 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23315 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
23316 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
23317 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
23318 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
23319 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
23320 #: ../src/guestfs-actions.pod:7648
23321 msgid "On error this function returns -1."
23325 #: ../src/guestfs-actions.pod:99
23326 msgid "(Added in 1.7.4)"
23330 #: ../src/guestfs-actions.pod:101
23331 msgid "guestfs_add_domain_va"
23335 #: ../src/guestfs-actions.pod:103
23339 " guestfs_add_domain_va (guestfs_h *g,\n"
23340 " const char *dom,\n"
23341 " va_list args);\n"
23346 #: ../src/guestfs-actions.pod:108
23347 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23351 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23352 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23353 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23354 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
23355 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
23356 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
23357 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
23358 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23359 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23362 #: ../src/guestfs-actions.pod:112
23363 msgid "guestfs_add_domain_argv"
23364 msgstr "guestfs_add_domain_argv"
23367 #: ../src/guestfs-actions.pod:114
23371 " guestfs_add_domain_argv (guestfs_h *g,\n"
23372 " const char *dom,\n"
23373 " const struct guestfs_add_domain_argv *optargs);\n"
23378 #: ../src/guestfs-actions.pod:119
23379 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23383 #: ../src/guestfs-actions.pod:123
23384 msgid "guestfs_add_drive"
23388 #: ../src/guestfs-actions.pod:125
23392 " guestfs_add_drive (guestfs_h *g,\n"
23393 " const char *filename);\n"
23398 #: ../src/guestfs-actions.pod:129
23400 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23401 "optional parameters, so the disk is added writable, with the format being "
23402 "detected automatically."
23406 #: ../src/guestfs-actions.pod:133
23408 "Automatic detection of the format opens you up to a potential security hole "
23409 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23410 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23411 "you should think about replacing calls to this function with calls to "
23412 "C<guestfs_add_drive_opts>, and specifying the format."
23416 #: ../src/guestfs-actions.pod:144
23417 msgid "guestfs_add_drive_opts"
23421 #: ../src/guestfs-actions.pod:146
23425 " guestfs_add_drive_opts (guestfs_h *g,\n"
23426 " const char *filename,\n"
23432 #: ../src/guestfs-actions.pod:156
23435 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23436 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23437 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23442 #: ../src/guestfs-actions.pod:185
23444 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23445 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23446 "Possible formats include C<raw> and C<qcow2>."
23450 #: ../src/guestfs-actions.pod:196
23452 "This rarely-used option lets you emulate the behaviour of the deprecated "
23453 "C<guestfs_add_drive_with_if> call (q.v.)"
23457 #: ../src/guestfs-actions.pod:203
23458 msgid "(Added in 1.5.23)"
23462 #: ../src/guestfs-actions.pod:205
23463 msgid "guestfs_add_drive_opts_va"
23467 #: ../src/guestfs-actions.pod:207
23471 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23472 " const char *filename,\n"
23473 " va_list args);\n"
23478 #: ../src/guestfs-actions.pod:212
23479 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23483 #: ../src/guestfs-actions.pod:216
23484 msgid "guestfs_add_drive_opts_argv"
23488 #: ../src/guestfs-actions.pod:218
23492 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23493 " const char *filename,\n"
23494 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23499 #: ../src/guestfs-actions.pod:223
23500 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23504 #: ../src/guestfs-actions.pod:227
23505 msgid "guestfs_add_drive_ro"
23509 #: ../src/guestfs-actions.pod:229
23513 " guestfs_add_drive_ro (guestfs_h *g,\n"
23514 " const char *filename);\n"
23519 #: ../src/guestfs-actions.pod:233
23521 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23522 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23523 "disk is added read-only, with the format being detected automatically."
23527 #: ../src/guestfs-actions.pod:240
23528 msgid "(Added in 1.0.38)"
23532 #: ../src/guestfs-actions.pod:242
23533 msgid "guestfs_add_drive_ro_with_if"
23537 #: ../src/guestfs-actions.pod:244
23541 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23542 " const char *filename,\n"
23543 " const char *iface);\n"
23548 #: ../src/guestfs-actions.pod:256
23550 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23551 "QEMU interface emulation to use at run time."
23555 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23556 #: ../src/guestfs-actions.pod:2436
23557 msgid "(Added in 1.0.84)"
23561 #: ../src/guestfs-actions.pod:263
23562 msgid "guestfs_add_drive_with_if"
23566 #: ../src/guestfs-actions.pod:265
23570 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23571 " const char *filename,\n"
23572 " const char *iface);\n"
23577 #: ../src/guestfs-actions.pod:277
23579 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23580 "QEMU interface emulation to use at run time."
23584 #: ../src/guestfs-actions.pod:284
23585 msgid "guestfs_aug_clear"
23589 #: ../src/guestfs-actions.pod:286
23593 " guestfs_aug_clear (guestfs_h *g,\n"
23594 " const char *augpath);\n"
23599 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23600 msgid "(Added in 1.3.4)"
23604 #: ../src/guestfs-actions.pod:297
23605 msgid "guestfs_aug_close"
23609 #: ../src/guestfs-actions.pod:299
23613 " guestfs_aug_close (guestfs_h *g);\n"
23618 #: ../src/guestfs-actions.pod:302
23620 "Close the current Augeas handle and free up any resources used by it. After "
23621 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23622 "any other Augeas functions."
23626 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23627 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23628 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23629 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23630 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23631 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23632 #: ../src/guestfs-actions.pod:5851
23633 msgid "(Added in 0.7)"
23637 #: ../src/guestfs-actions.pod:311
23638 msgid "guestfs_aug_defnode"
23642 #: ../src/guestfs-actions.pod:313
23645 " struct guestfs_int_bool *\n"
23646 " guestfs_aug_defnode (guestfs_h *g,\n"
23647 " const char *name,\n"
23648 " const char *expr,\n"
23649 " const char *val);\n"
23654 #: ../src/guestfs-actions.pod:322
23656 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23657 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
23658 "containing that single node."
23662 #: ../src/guestfs-actions.pod:330
23664 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23665 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
23669 #: ../src/guestfs-actions.pod:336
23670 msgid "guestfs_aug_defvar"
23674 #: ../src/guestfs-actions.pod:338
23678 " guestfs_aug_defvar (guestfs_h *g,\n"
23679 " const char *name,\n"
23680 " const char *expr);\n"
23685 #: ../src/guestfs-actions.pod:354
23686 msgid "guestfs_aug_get"
23690 #: ../src/guestfs-actions.pod:356
23694 " guestfs_aug_get (guestfs_h *g,\n"
23695 " const char *augpath);\n"
23700 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23701 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23702 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23703 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23704 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23705 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23706 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23707 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
23708 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
23709 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
23710 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
23711 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
23712 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
23713 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
23714 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
23715 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
23716 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
23717 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
23718 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
23719 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
23720 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672
23721 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
23722 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
23723 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
23725 "This function returns a string, or NULL on error. I<The caller must free "
23726 "the returned string after use>."
23730 #: ../src/guestfs-actions.pod:368
23731 msgid "guestfs_aug_init"
23735 #: ../src/guestfs-actions.pod:370
23739 " guestfs_aug_init (guestfs_h *g,\n"
23740 " const char *root,\n"
23746 #: ../src/guestfs-actions.pod:379
23747 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23751 #: ../src/guestfs-actions.pod:404
23753 "This option is only useful when debugging Augeas lenses. Use of this option "
23754 "may require additional memory for the libguestfs appliance. You may need to "
23755 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23756 "C<guestfs_set_memsize>."
23760 #: ../src/guestfs-actions.pod:419
23761 msgid "Do not load the tree in C<guestfs_aug_init>."
23765 #: ../src/guestfs-actions.pod:423
23766 msgid "To close the handle, you can call C<guestfs_aug_close>."
23770 #: ../src/guestfs-actions.pod:431
23771 msgid "guestfs_aug_insert"
23775 #: ../src/guestfs-actions.pod:433
23779 " guestfs_aug_insert (guestfs_h *g,\n"
23780 " const char *augpath,\n"
23781 " const char *label,\n"
23787 #: ../src/guestfs-actions.pod:451
23788 msgid "guestfs_aug_load"
23792 #: ../src/guestfs-actions.pod:453
23796 " guestfs_aug_load (guestfs_h *g);\n"
23801 #: ../src/guestfs-actions.pod:465
23802 msgid "guestfs_aug_ls"
23806 #: ../src/guestfs-actions.pod:467
23810 " guestfs_aug_ls (guestfs_h *g,\n"
23811 " const char *augpath);\n"
23816 #: ../src/guestfs-actions.pod:471
23818 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23819 "sorting the resulting nodes into alphabetical order."
23823 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23824 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23825 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23826 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23827 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23828 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23829 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
23830 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
23831 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
23832 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
23833 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
23834 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
23835 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
23836 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
23837 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
23838 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
23839 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
23840 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
23841 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
23842 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
23843 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
23844 #: ../src/guestfs-actions.pod:7932
23846 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23847 ">), or NULL if there was an error. I<The caller must free the strings and "
23848 "the array after use>."
23852 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23853 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23854 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
23855 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
23856 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
23857 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
23858 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
23859 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
23860 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
23861 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
23862 #: ../src/guestfs-actions.pod:7723
23863 msgid "(Added in 0.8)"
23867 #: ../src/guestfs-actions.pod:480
23868 msgid "guestfs_aug_match"
23872 #: ../src/guestfs-actions.pod:482
23876 " guestfs_aug_match (guestfs_h *g,\n"
23877 " const char *augpath);\n"
23882 #: ../src/guestfs-actions.pod:496
23883 msgid "guestfs_aug_mv"
23887 #: ../src/guestfs-actions.pod:498
23891 " guestfs_aug_mv (guestfs_h *g,\n"
23892 " const char *src,\n"
23893 " const char *dest);\n"
23898 #: ../src/guestfs-actions.pod:510
23899 msgid "guestfs_aug_rm"
23903 #: ../src/guestfs-actions.pod:512
23907 " guestfs_aug_rm (guestfs_h *g,\n"
23908 " const char *augpath);\n"
23913 #: ../src/guestfs-actions.pod:524
23914 msgid "guestfs_aug_save"
23918 #: ../src/guestfs-actions.pod:526
23922 " guestfs_aug_save (guestfs_h *g);\n"
23927 #: ../src/guestfs-actions.pod:531
23929 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23934 #: ../src/guestfs-actions.pod:538
23935 msgid "guestfs_aug_set"
23939 #: ../src/guestfs-actions.pod:540
23943 " guestfs_aug_set (guestfs_h *g,\n"
23944 " const char *augpath,\n"
23945 " const char *val);\n"
23950 #: ../src/guestfs-actions.pod:547
23952 "In the Augeas API, it is possible to clear a node by setting the value to "
23953 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
23954 "this call. Instead you must use the C<guestfs_aug_clear> call."
23958 #: ../src/guestfs-actions.pod:556
23959 msgid "guestfs_available"
23963 #: ../src/guestfs-actions.pod:558
23967 " guestfs_available (guestfs_h *g,\n"
23968 " char *const *groups);\n"
23973 #: ../src/guestfs-actions.pod:566
23975 "The libguestfs groups, and the functions that those groups correspond to, "
23976 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
23977 "runtime by calling C<guestfs_available_all_groups>."
23981 #: ../src/guestfs-actions.pod:590
23982 msgid "You must call C<guestfs_launch> before calling this function."
23986 #: ../src/guestfs-actions.pod:612
23988 "This call was added in version C<1.0.80>. In previous versions of "
23989 "libguestfs all you could do would be to speculatively execute a command to "
23990 "find out if the daemon implemented it. See also C<guestfs_version>."
23994 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23995 msgid "(Added in 1.0.80)"
23999 #: ../src/guestfs-actions.pod:623
24000 msgid "guestfs_available_all_groups"
24004 #: ../src/guestfs-actions.pod:625
24008 " guestfs_available_all_groups (guestfs_h *g);\n"
24013 #: ../src/guestfs-actions.pod:628
24015 "This command returns a list of all optional groups that this daemon knows "
24016 "about. Note this returns both supported and unsupported groups. To find "
24017 "out which ones the daemon can actually support you have to call "
24018 "C<guestfs_available> on each member of the returned list."
24022 #: ../src/guestfs-actions.pod:634
24023 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24027 #: ../src/guestfs-actions.pod:640
24028 msgid "(Added in 1.3.15)"
24032 #: ../src/guestfs-actions.pod:642
24033 msgid "guestfs_base64_in"
24037 #: ../src/guestfs-actions.pod:644
24041 " guestfs_base64_in (guestfs_h *g,\n"
24042 " const char *base64file,\n"
24043 " const char *filename);\n"
24048 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24049 msgid "(Added in 1.3.5)"
24053 #: ../src/guestfs-actions.pod:656
24054 msgid "guestfs_base64_out"
24058 #: ../src/guestfs-actions.pod:658
24062 " guestfs_base64_out (guestfs_h *g,\n"
24063 " const char *filename,\n"
24064 " const char *base64file);\n"
24069 #: ../src/guestfs-actions.pod:670
24070 msgid "guestfs_blockdev_flushbufs"
24074 #: ../src/guestfs-actions.pod:672
24078 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24079 " const char *device);\n"
24084 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24085 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24086 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24087 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24088 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24089 msgid "(Added in 0.9.3)"
24093 #: ../src/guestfs-actions.pod:685
24094 msgid "guestfs_blockdev_getbsz"
24098 #: ../src/guestfs-actions.pod:687
24102 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24103 " const char *device);\n"
24108 #: ../src/guestfs-actions.pod:702
24109 msgid "guestfs_blockdev_getro"
24113 #: ../src/guestfs-actions.pod:704
24117 " guestfs_blockdev_getro (guestfs_h *g,\n"
24118 " const char *device);\n"
24123 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24124 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24125 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24126 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24127 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24128 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
24129 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
24130 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
24131 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
24132 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
24133 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
24134 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
24135 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
24136 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
24137 #: ../src/guestfs-actions.pod:5344
24138 msgid "This function returns a C truth value on success or -1 on error."
24142 #: ../src/guestfs-actions.pod:717
24143 msgid "guestfs_blockdev_getsize64"
24147 #: ../src/guestfs-actions.pod:719
24151 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24152 " const char *device);\n"
24157 #: ../src/guestfs-actions.pod:725
24158 msgid "See also C<guestfs_blockdev_getsz>."
24162 #: ../src/guestfs-actions.pod:733
24163 msgid "guestfs_blockdev_getss"
24167 #: ../src/guestfs-actions.pod:735
24171 " guestfs_blockdev_getss (guestfs_h *g,\n"
24172 " const char *device);\n"
24177 #: ../src/guestfs-actions.pod:742
24179 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24184 #: ../src/guestfs-actions.pod:751
24185 msgid "guestfs_blockdev_getsz"
24189 #: ../src/guestfs-actions.pod:753
24193 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24194 " const char *device);\n"
24199 #: ../src/guestfs-actions.pod:760
24201 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24202 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24206 #: ../src/guestfs-actions.pod:770
24207 msgid "guestfs_blockdev_rereadpt"
24211 #: ../src/guestfs-actions.pod:772
24215 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24216 " const char *device);\n"
24221 #: ../src/guestfs-actions.pod:784
24222 msgid "guestfs_blockdev_setbsz"
24226 #: ../src/guestfs-actions.pod:786
24230 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24231 " const char *device,\n"
24232 " int blocksize);\n"
24237 #: ../src/guestfs-actions.pod:802
24238 msgid "guestfs_blockdev_setro"
24242 #: ../src/guestfs-actions.pod:804
24246 " guestfs_blockdev_setro (guestfs_h *g,\n"
24247 " const char *device);\n"
24252 #: ../src/guestfs-actions.pod:816
24253 msgid "guestfs_blockdev_setrw"
24257 #: ../src/guestfs-actions.pod:818
24261 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24262 " const char *device);\n"
24267 #: ../src/guestfs-actions.pod:830
24268 msgid "guestfs_btrfs_filesystem_resize"
24272 #: ../src/guestfs-actions.pod:832
24276 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24277 " const char *mountpoint,\n"
24283 #: ../src/guestfs-actions.pod:842
24286 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24291 #: ../src/guestfs-actions.pod:865
24292 msgid "(Added in 1.11.17)"
24296 #: ../src/guestfs-actions.pod:867
24297 msgid "guestfs_btrfs_filesystem_resize_va"
24301 #: ../src/guestfs-actions.pod:869
24305 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24306 " const char *mountpoint,\n"
24307 " va_list args);\n"
24312 #: ../src/guestfs-actions.pod:874
24313 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24317 #: ../src/guestfs-actions.pod:878
24318 msgid "guestfs_btrfs_filesystem_resize_argv"
24322 #: ../src/guestfs-actions.pod:880
24326 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24327 " const char *mountpoint,\n"
24328 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24333 #: ../src/guestfs-actions.pod:885
24334 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24338 #: ../src/guestfs-actions.pod:889
24339 msgid "guestfs_case_sensitive_path"
24343 #: ../src/guestfs-actions.pod:891
24347 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24348 " const char *path);\n"
24353 #: ../src/guestfs-actions.pod:917
24355 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24356 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24357 "how the directories were originally created under Windows)."
24361 #: ../src/guestfs-actions.pod:925
24362 msgid "See also C<guestfs_realpath>."
24366 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
24367 msgid "(Added in 1.0.75)"
24371 #: ../src/guestfs-actions.pod:932
24372 msgid "guestfs_cat"
24376 #: ../src/guestfs-actions.pod:934
24380 " guestfs_cat (guestfs_h *g,\n"
24381 " const char *path);\n"
24386 #: ../src/guestfs-actions.pod:940
24388 "Note that this function cannot correctly handle binary files (specifically, "
24389 "files containing C<\\0> character which is treated as end of string). For "
24390 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24391 "functions which have a more complex interface."
24395 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
24396 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
24397 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
24398 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
24399 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
24400 #: ../src/guestfs-actions.pod:7559
24401 msgid "(Added in 0.4)"
24405 #: ../src/guestfs-actions.pod:953
24406 msgid "guestfs_checksum"
24410 #: ../src/guestfs-actions.pod:955
24414 " guestfs_checksum (guestfs_h *g,\n"
24415 " const char *csumtype,\n"
24416 " const char *path);\n"
24421 #: ../src/guestfs-actions.pod:1001
24422 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24426 #: ../src/guestfs-actions.pod:1003
24427 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24431 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24432 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
24433 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
24434 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
24435 msgid "(Added in 1.0.2)"
24439 #: ../src/guestfs-actions.pod:1010
24440 msgid "guestfs_checksum_device"
24444 #: ../src/guestfs-actions.pod:1012
24448 " guestfs_checksum_device (guestfs_h *g,\n"
24449 " const char *csumtype,\n"
24450 " const char *device);\n"
24455 #: ../src/guestfs-actions.pod:1017
24457 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24458 "device named C<device>. For the types of checksums supported see the "
24459 "C<guestfs_checksum> command."
24463 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
24464 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
24465 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
24466 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
24467 #: ../src/guestfs-actions.pod:7571
24468 msgid "(Added in 1.3.2)"
24472 #: ../src/guestfs-actions.pod:1026
24473 msgid "guestfs_checksums_out"
24477 #: ../src/guestfs-actions.pod:1028
24481 " guestfs_checksums_out (guestfs_h *g,\n"
24482 " const char *csumtype,\n"
24483 " const char *directory,\n"
24484 " const char *sumsfile);\n"
24489 #: ../src/guestfs-actions.pod:1048
24490 msgid "(Added in 1.3.7)"
24494 #: ../src/guestfs-actions.pod:1050
24495 msgid "guestfs_chmod"
24499 #: ../src/guestfs-actions.pod:1052
24503 " guestfs_chmod (guestfs_h *g,\n"
24505 " const char *path);\n"
24510 #: ../src/guestfs-actions.pod:1070
24511 msgid "guestfs_chown"
24515 #: ../src/guestfs-actions.pod:1072
24519 " guestfs_chown (guestfs_h *g,\n"
24522 " const char *path);\n"
24527 #: ../src/guestfs-actions.pod:1088
24528 msgid "guestfs_command"
24532 #: ../src/guestfs-actions.pod:1090
24536 " guestfs_command (guestfs_h *g,\n"
24537 " char *const *arguments);\n"
24542 #: ../src/guestfs-actions.pod:1099
24544 "The single parameter is an argv-style list of arguments. The first element "
24545 "is the name of the program to run. Subsequent elements are parameters. The "
24546 "list must be non-empty (ie. must contain a program name). Note that the "
24547 "command runs directly, and is I<not> invoked via the shell (see "
24552 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24553 #: ../src/guestfs-actions.pod:1615
24554 msgid "(Added in 0.9.1)"
24558 #: ../src/guestfs-actions.pod:1132
24559 msgid "guestfs_command_lines"
24563 #: ../src/guestfs-actions.pod:1134
24567 " guestfs_command_lines (guestfs_h *g,\n"
24568 " char *const *arguments);\n"
24573 #: ../src/guestfs-actions.pod:1138
24575 "This is the same as C<guestfs_command>, but splits the result into a list of "
24580 #: ../src/guestfs-actions.pod:1141
24581 msgid "See also: C<guestfs_sh_lines>"
24585 #: ../src/guestfs-actions.pod:1152
24586 msgid "guestfs_config"
24590 #: ../src/guestfs-actions.pod:1154
24594 " guestfs_config (guestfs_h *g,\n"
24595 " const char *qemuparam,\n"
24596 " const char *qemuvalue);\n"
24601 #: ../src/guestfs-actions.pod:1172
24602 msgid "guestfs_copy_size"
24606 #: ../src/guestfs-actions.pod:1174
24610 " guestfs_copy_size (guestfs_h *g,\n"
24611 " const char *src,\n"
24612 " const char *dest,\n"
24613 " int64_t size);\n"
24618 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24619 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24620 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24621 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
24622 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
24623 #: ../src/guestfs-actions.pod:7807
24625 "This long-running command can generate progress notification messages so "
24626 "that the caller can display a progress bar or indicator. To receive these "
24627 "messages, the caller must register a progress event callback. See L<guestfs"
24628 "(3)/GUESTFS_EVENT_PROGRESS>."
24632 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
24633 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
24634 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
24635 msgid "(Added in 1.0.87)"
24639 #: ../src/guestfs-actions.pod:1195
24644 #: ../src/guestfs-actions.pod:1197
24648 " guestfs_cp (guestfs_h *g,\n"
24649 " const char *src,\n"
24650 " const char *dest);\n"
24655 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24656 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24657 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
24658 #: ../src/guestfs-actions.pod:5596
24659 msgid "(Added in 1.0.18)"
24663 #: ../src/guestfs-actions.pod:1209
24664 msgid "guestfs_cp_a"
24668 #: ../src/guestfs-actions.pod:1211
24672 " guestfs_cp_a (guestfs_h *g,\n"
24673 " const char *src,\n"
24674 " const char *dest);\n"
24679 #: ../src/guestfs-actions.pod:1223
24684 #: ../src/guestfs-actions.pod:1225
24688 " guestfs_dd (guestfs_h *g,\n"
24689 " const char *src,\n"
24690 " const char *dest);\n"
24695 #: ../src/guestfs-actions.pod:1235
24697 "If the destination is a device, it must be as large or larger than the "
24698 "source file or device, otherwise the copy will fail. This command cannot do "
24699 "partial copies (see C<guestfs_copy_size>)."
24703 #: ../src/guestfs-actions.pod:1243
24708 #: ../src/guestfs-actions.pod:1245
24712 " guestfs_df (guestfs_h *g);\n"
24717 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24719 "This command is mostly useful for interactive sessions. It is I<not> "
24720 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
24725 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24726 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
24727 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
24728 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
24729 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
24730 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
24731 #: ../src/guestfs-actions.pod:7650
24732 msgid "(Added in 1.0.54)"
24736 #: ../src/guestfs-actions.pod:1259
24737 msgid "guestfs_df_h"
24741 #: ../src/guestfs-actions.pod:1261
24745 " guestfs_df_h (guestfs_h *g);\n"
24750 #: ../src/guestfs-actions.pod:1276
24751 msgid "guestfs_dmesg"
24755 #: ../src/guestfs-actions.pod:1278
24759 " guestfs_dmesg (guestfs_h *g);\n"
24764 #: ../src/guestfs-actions.pod:1285
24766 "Another way to get the same information is to enable verbose messages with "
24767 "C<guestfs_set_verbose> or by setting the environment variable "
24768 "C<LIBGUESTFS_DEBUG=1> before running the program."
24772 #: ../src/guestfs-actions.pod:1295
24773 msgid "guestfs_download"
24777 #: ../src/guestfs-actions.pod:1297
24781 " guestfs_download (guestfs_h *g,\n"
24782 " const char *remotefilename,\n"
24783 " const char *filename);\n"
24788 #: ../src/guestfs-actions.pod:1307
24789 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24793 #: ../src/guestfs-actions.pod:1318
24794 msgid "guestfs_download_offset"
24798 #: ../src/guestfs-actions.pod:1320
24802 " guestfs_download_offset (guestfs_h *g,\n"
24803 " const char *remotefilename,\n"
24804 " const char *filename,\n"
24805 " int64_t offset,\n"
24806 " int64_t size);\n"
24811 #: ../src/guestfs-actions.pod:1333
24813 "Note that there is no limit on the amount of data that can be downloaded "
24814 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24815 "full amount unless an error occurs."
24819 #: ../src/guestfs-actions.pod:1338
24820 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24824 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
24825 msgid "(Added in 1.5.17)"
24829 #: ../src/guestfs-actions.pod:1349
24830 msgid "guestfs_drop_caches"
24834 #: ../src/guestfs-actions.pod:1351
24838 " guestfs_drop_caches (guestfs_h *g,\n"
24839 " int whattodrop);\n"
24844 #: ../src/guestfs-actions.pod:1369
24849 #: ../src/guestfs-actions.pod:1371
24853 " guestfs_du (guestfs_h *g,\n"
24854 " const char *path);\n"
24859 #: ../src/guestfs-actions.pod:1394
24860 msgid "guestfs_e2fsck_f"
24864 #: ../src/guestfs-actions.pod:1396
24868 " guestfs_e2fsck_f (guestfs_h *g,\n"
24869 " const char *device);\n"
24874 #: ../src/guestfs-actions.pod:1404
24876 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
24877 "Normally you should use C<guestfs_fsck>."
24881 #: ../src/guestfs-actions.pod:1409
24882 msgid "(Added in 1.0.29)"
24886 #: ../src/guestfs-actions.pod:1411
24887 msgid "guestfs_echo_daemon"
24891 #: ../src/guestfs-actions.pod:1413
24895 " guestfs_echo_daemon (guestfs_h *g,\n"
24896 " char *const *words);\n"
24901 #: ../src/guestfs-actions.pod:1422
24902 msgid "See also C<guestfs_ping_daemon>."
24906 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24907 #: ../src/guestfs-actions.pod:6453
24908 msgid "(Added in 1.0.69)"
24912 #: ../src/guestfs-actions.pod:1429
24913 msgid "guestfs_egrep"
24917 #: ../src/guestfs-actions.pod:1431
24921 " guestfs_egrep (guestfs_h *g,\n"
24922 " const char *regex,\n"
24923 " const char *path);\n"
24928 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24929 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24930 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24931 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
24932 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
24933 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
24934 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
24935 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
24936 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
24937 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
24938 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
24939 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
24940 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
24941 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
24942 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
24943 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
24944 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
24945 msgid "(Added in 1.0.66)"
24949 #: ../src/guestfs-actions.pod:1448
24950 msgid "guestfs_egrepi"
24954 #: ../src/guestfs-actions.pod:1450
24958 " guestfs_egrepi (guestfs_h *g,\n"
24959 " const char *regex,\n"
24960 " const char *path);\n"
24965 #: ../src/guestfs-actions.pod:1467
24966 msgid "guestfs_equal"
24970 #: ../src/guestfs-actions.pod:1469
24974 " guestfs_equal (guestfs_h *g,\n"
24975 " const char *file1,\n"
24976 " const char *file2);\n"
24981 #: ../src/guestfs-actions.pod:1483
24982 msgid "guestfs_exists"
24986 #: ../src/guestfs-actions.pod:1485
24990 " guestfs_exists (guestfs_h *g,\n"
24991 " const char *path);\n"
24996 #: ../src/guestfs-actions.pod:1492
24997 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25001 #: ../src/guestfs-actions.pod:1498
25002 msgid "guestfs_fallocate"
25006 #: ../src/guestfs-actions.pod:1500
25010 " guestfs_fallocate (guestfs_h *g,\n"
25011 " const char *path,\n"
25017 #: ../src/guestfs-actions.pod:1505
25019 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25024 #: ../src/guestfs-actions.pod:1524
25025 msgid "guestfs_fallocate64"
25029 #: ../src/guestfs-actions.pod:1526
25033 " guestfs_fallocate64 (guestfs_h *g,\n"
25034 " const char *path,\n"
25040 #: ../src/guestfs-actions.pod:1535
25042 "Note that this call allocates disk blocks for the file. To create a sparse "
25043 "file use C<guestfs_truncate_size> instead."
25047 #: ../src/guestfs-actions.pod:1538
25049 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25050 "oversight it only allowed 30 bit lengths to be specified, effectively "
25051 "limiting the maximum size of files created through that call to 1GB."
25055 #: ../src/guestfs-actions.pod:1549
25056 msgid "(Added in 1.3.17)"
25060 #: ../src/guestfs-actions.pod:1551
25061 msgid "guestfs_fgrep"
25065 #: ../src/guestfs-actions.pod:1553
25069 " guestfs_fgrep (guestfs_h *g,\n"
25070 " const char *pattern,\n"
25071 " const char *path);\n"
25076 #: ../src/guestfs-actions.pod:1570
25077 msgid "guestfs_fgrepi"
25081 #: ../src/guestfs-actions.pod:1572
25085 " guestfs_fgrepi (guestfs_h *g,\n"
25086 " const char *pattern,\n"
25087 " const char *path);\n"
25092 #: ../src/guestfs-actions.pod:1589
25093 msgid "guestfs_file"
25097 #: ../src/guestfs-actions.pod:1591
25101 " guestfs_file (guestfs_h *g,\n"
25102 " const char *path);\n"
25107 #: ../src/guestfs-actions.pod:1609
25109 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25110 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25114 #: ../src/guestfs-actions.pod:1617
25115 msgid "guestfs_file_architecture"
25119 #: ../src/guestfs-actions.pod:1619
25123 " guestfs_file_architecture (guestfs_h *g,\n"
25124 " const char *filename);\n"
25129 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25130 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
25131 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
25132 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
25133 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
25134 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
25135 #: ../src/guestfs-actions.pod:3546
25136 msgid "(Added in 1.5.3)"
25140 #: ../src/guestfs-actions.pod:1729
25141 msgid "guestfs_filesize"
25145 #: ../src/guestfs-actions.pod:1731
25149 " guestfs_filesize (guestfs_h *g,\n"
25150 " const char *file);\n"
25155 #: ../src/guestfs-actions.pod:1737
25157 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25158 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
25159 "devices, use C<guestfs_blockdev_getsize64>."
25163 #: ../src/guestfs-actions.pod:1743
25164 msgid "(Added in 1.0.82)"
25168 #: ../src/guestfs-actions.pod:1745
25169 msgid "guestfs_fill"
25173 #: ../src/guestfs-actions.pod:1747
25177 " guestfs_fill (guestfs_h *g,\n"
25180 " const char *path);\n"
25185 #: ../src/guestfs-actions.pod:1757
25187 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25188 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
25189 "bytes use C<guestfs_fill_pattern>."
25193 #: ../src/guestfs-actions.pod:1769
25194 msgid "(Added in 1.0.79)"
25198 #: ../src/guestfs-actions.pod:1771
25199 msgid "guestfs_fill_pattern"
25203 #: ../src/guestfs-actions.pod:1773
25207 " guestfs_fill_pattern (guestfs_h *g,\n"
25208 " const char *pattern,\n"
25210 " const char *path);\n"
25215 #: ../src/guestfs-actions.pod:1779
25217 "This function is like C<guestfs_fill> except that it creates a new file of "
25218 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
25219 "pattern is truncated if necessary to ensure the length of the file is "
25220 "exactly C<len> bytes."
25224 #: ../src/guestfs-actions.pod:1791
25225 msgid "(Added in 1.3.12)"
25229 #: ../src/guestfs-actions.pod:1793
25230 msgid "guestfs_find"
25234 #: ../src/guestfs-actions.pod:1795
25238 " guestfs_find (guestfs_h *g,\n"
25239 " const char *directory);\n"
25244 #: ../src/guestfs-actions.pod:1811
25246 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25250 #: ../src/guestfs-actions.pod:1824
25251 msgid "See also C<guestfs_find0>."
25255 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
25256 #: ../src/guestfs-actions.pod:6014
25257 msgid "(Added in 1.0.27)"
25261 #: ../src/guestfs-actions.pod:1835
25262 msgid "guestfs_find0"
25266 #: ../src/guestfs-actions.pod:1837
25270 " guestfs_find0 (guestfs_h *g,\n"
25271 " const char *directory,\n"
25272 " const char *files);\n"
25277 #: ../src/guestfs-actions.pod:1846
25279 "This command works the same way as C<guestfs_find> with the following "
25284 #: ../src/guestfs-actions.pod:1873
25285 msgid "(Added in 1.0.74)"
25289 #: ../src/guestfs-actions.pod:1875
25290 msgid "guestfs_findfs_label"
25294 #: ../src/guestfs-actions.pod:1877
25298 " guestfs_findfs_label (guestfs_h *g,\n"
25299 " const char *label);\n"
25304 #: ../src/guestfs-actions.pod:1885
25305 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25309 #: ../src/guestfs-actions.pod:1892
25310 msgid "guestfs_findfs_uuid"
25314 #: ../src/guestfs-actions.pod:1894
25318 " guestfs_findfs_uuid (guestfs_h *g,\n"
25319 " const char *uuid);\n"
25324 #: ../src/guestfs-actions.pod:1902
25325 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25329 #: ../src/guestfs-actions.pod:1909
25330 msgid "guestfs_fsck"
25334 #: ../src/guestfs-actions.pod:1911
25338 " guestfs_fsck (guestfs_h *g,\n"
25339 " const char *fstype,\n"
25340 " const char *device);\n"
25345 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
25346 msgid "(Added in 1.0.16)"
25350 #: ../src/guestfs-actions.pod:1948
25351 msgid "guestfs_get_append"
25355 #: ../src/guestfs-actions.pod:1950
25359 " guestfs_get_append (guestfs_h *g);\n"
25364 #: ../src/guestfs-actions.pod:1958
25366 "This function returns a string which may be NULL. There is no way to return "
25367 "an error from this function. The string is owned by the guest handle and "
25368 "must I<not> be freed."
25372 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
25373 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
25374 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
25375 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
25376 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
25377 msgid "(Added in 1.0.26)"
25381 #: ../src/guestfs-actions.pod:1964
25382 msgid "guestfs_get_attach_method"
25386 #: ../src/guestfs-actions.pod:1966
25390 " guestfs_get_attach_method (guestfs_h *g);\n"
25395 #: ../src/guestfs-actions.pod:1969
25396 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
25400 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
25401 msgid "(Added in 1.9.8)"
25405 #: ../src/guestfs-actions.pod:1976
25406 msgid "guestfs_get_autosync"
25410 #: ../src/guestfs-actions.pod:1978
25414 " guestfs_get_autosync (guestfs_h *g);\n"
25419 #: ../src/guestfs-actions.pod:1987
25420 msgid "guestfs_get_direct"
25424 #: ../src/guestfs-actions.pod:1989
25428 " guestfs_get_direct (guestfs_h *g);\n"
25433 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
25434 msgid "(Added in 1.0.72)"
25438 #: ../src/guestfs-actions.pod:1998
25439 msgid "guestfs_get_e2label"
25443 #: ../src/guestfs-actions.pod:2000
25447 " guestfs_get_e2label (guestfs_h *g,\n"
25448 " const char *device);\n"
25453 #: ../src/guestfs-actions.pod:2004
25455 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25460 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25461 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
25462 msgid "(Added in 1.0.15)"
25466 #: ../src/guestfs-actions.pod:2019
25467 msgid "guestfs_get_e2uuid"
25471 #: ../src/guestfs-actions.pod:2021
25475 " guestfs_get_e2uuid (guestfs_h *g,\n"
25476 " const char *device);\n"
25481 #: ../src/guestfs-actions.pod:2025
25483 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25488 #: ../src/guestfs-actions.pod:2040
25489 msgid "guestfs_get_memsize"
25493 #: ../src/guestfs-actions.pod:2042
25497 " guestfs_get_memsize (guestfs_h *g);\n"
25502 #: ../src/guestfs-actions.pod:2048
25504 "If C<guestfs_set_memsize> was not called on this handle, and if "
25505 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25506 "value for memsize."
25510 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
25511 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
25512 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
25513 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
25514 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
25515 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
25516 msgid "(Added in 1.0.55)"
25520 #: ../src/guestfs-actions.pod:2059
25521 msgid "guestfs_get_network"
25525 #: ../src/guestfs-actions.pod:2061
25529 " guestfs_get_network (guestfs_h *g);\n"
25534 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
25535 msgid "(Added in 1.5.4)"
25539 #: ../src/guestfs-actions.pod:2070
25540 msgid "guestfs_get_path"
25544 #: ../src/guestfs-actions.pod:2072
25548 " guestfs_get_path (guestfs_h *g);\n"
25553 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25555 "This function returns a string, or NULL on error. The string is owned by "
25556 "the guest handle and must I<not> be freed."
25560 #: ../src/guestfs-actions.pod:2085
25561 msgid "guestfs_get_pgroup"
25565 #: ../src/guestfs-actions.pod:2087
25569 " guestfs_get_pgroup (guestfs_h *g);\n"
25574 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
25575 #: ../src/guestfs-actions.pod:7690
25577 #| msgid "(Added in 1.5.1)"
25578 msgid "(Added in 1.11.18)"
25579 msgstr "(Додано у 1.5.1)"
25582 #: ../src/guestfs-actions.pod:2096
25583 msgid "guestfs_get_pid"
25587 #: ../src/guestfs-actions.pod:2098
25591 " guestfs_get_pid (guestfs_h *g);\n"
25596 #: ../src/guestfs-actions.pod:2108
25597 msgid "(Added in 1.0.56)"
25601 #: ../src/guestfs-actions.pod:2110
25602 msgid "guestfs_get_qemu"
25606 #: ../src/guestfs-actions.pod:2112
25610 " guestfs_get_qemu (guestfs_h *g);\n"
25615 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
25616 msgid "(Added in 1.0.6)"
25620 #: ../src/guestfs-actions.pod:2125
25621 msgid "guestfs_get_recovery_proc"
25625 #: ../src/guestfs-actions.pod:2127
25629 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25634 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
25635 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
25636 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
25637 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
25638 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
25639 #: ../src/guestfs-actions.pod:7313
25640 msgid "(Added in 1.0.77)"
25644 #: ../src/guestfs-actions.pod:2136
25645 msgid "guestfs_get_selinux"
25649 #: ../src/guestfs-actions.pod:2138
25653 " guestfs_get_selinux (guestfs_h *g);\n"
25658 #: ../src/guestfs-actions.pod:2141
25660 "This returns the current setting of the selinux flag which is passed to the "
25661 "appliance at boot time. See C<guestfs_set_selinux>."
25665 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25666 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
25667 msgid "(Added in 1.0.67)"
25671 #: ../src/guestfs-actions.pod:2151
25672 msgid "guestfs_get_state"
25676 #: ../src/guestfs-actions.pod:2153
25680 " guestfs_get_state (guestfs_h *g);\n"
25685 #: ../src/guestfs-actions.pod:2165
25686 msgid "guestfs_get_trace"
25690 #: ../src/guestfs-actions.pod:2167
25694 " guestfs_get_trace (guestfs_h *g);\n"
25699 #: ../src/guestfs-actions.pod:2176
25700 msgid "guestfs_get_umask"
25704 #: ../src/guestfs-actions.pod:2178
25708 " guestfs_get_umask (guestfs_h *g);\n"
25713 #: ../src/guestfs-actions.pod:2181
25715 "Return the current umask. By default the umask is C<022> unless it has been "
25716 "set by calling C<guestfs_umask>."
25720 #: ../src/guestfs-actions.pod:2188
25721 msgid "guestfs_get_verbose"
25725 #: ../src/guestfs-actions.pod:2190
25729 " guestfs_get_verbose (guestfs_h *g);\n"
25734 #: ../src/guestfs-actions.pod:2199
25735 msgid "guestfs_getcon"
25739 #: ../src/guestfs-actions.pod:2201
25743 " guestfs_getcon (guestfs_h *g);\n"
25748 #: ../src/guestfs-actions.pod:2206
25750 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25754 #: ../src/guestfs-actions.pod:2214
25755 msgid "guestfs_getxattr"
25759 #: ../src/guestfs-actions.pod:2216
25763 " guestfs_getxattr (guestfs_h *g,\n"
25764 " const char *path,\n"
25765 " const char *name,\n"
25766 " size_t *size_r);\n"
25771 #: ../src/guestfs-actions.pod:2222
25773 "Get a single extended attribute from file C<path> named C<name>. This call "
25774 "follows symlinks. If you want to lookup an extended attribute for the "
25775 "symlink itself, use C<guestfs_lgetxattr>."
25779 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
25781 "Normally it is better to get all extended attributes from a file in one go "
25782 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
25783 "implementations are buggy and do not provide a way to list out attributes. "
25784 "For these filesystems (notably ntfs-3g) you have to know the names of the "
25785 "extended attributes you want in advance and call this function."
25789 #: ../src/guestfs-actions.pod:2236
25790 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25794 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
25795 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
25796 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
25797 #: ../src/guestfs-actions.pod:5822
25799 "This function returns a buffer, or NULL on error. The size of the returned "
25800 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
25805 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
25806 msgid "(Added in 1.7.24)"
25810 #: ../src/guestfs-actions.pod:2244
25811 msgid "guestfs_getxattrs"
25815 #: ../src/guestfs-actions.pod:2246
25818 " struct guestfs_xattr_list *\n"
25819 " guestfs_getxattrs (guestfs_h *g,\n"
25820 " const char *path);\n"
25825 #: ../src/guestfs-actions.pod:2256
25826 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25830 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
25831 #: ../src/guestfs-actions.pod:4398
25833 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25834 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
25838 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
25839 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
25840 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
25841 #: ../src/guestfs-actions.pod:7901
25842 msgid "(Added in 1.0.59)"
25846 #: ../src/guestfs-actions.pod:2264
25847 msgid "guestfs_glob_expand"
25851 #: ../src/guestfs-actions.pod:2266
25855 " guestfs_glob_expand (guestfs_h *g,\n"
25856 " const char *pattern);\n"
25861 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
25862 #: ../src/guestfs-actions.pod:6716
25863 msgid "(Added in 1.0.50)"
25867 #: ../src/guestfs-actions.pod:2287
25868 msgid "guestfs_grep"
25872 #: ../src/guestfs-actions.pod:2289
25876 " guestfs_grep (guestfs_h *g,\n"
25877 " const char *regex,\n"
25878 " const char *path);\n"
25883 #: ../src/guestfs-actions.pod:2306
25884 msgid "guestfs_grepi"
25888 #: ../src/guestfs-actions.pod:2308
25892 " guestfs_grepi (guestfs_h *g,\n"
25893 " const char *regex,\n"
25894 " const char *path);\n"
25899 #: ../src/guestfs-actions.pod:2325
25900 msgid "guestfs_grub_install"
25904 #: ../src/guestfs-actions.pod:2327
25908 " guestfs_grub_install (guestfs_h *g,\n"
25909 " const char *root,\n"
25910 " const char *device);\n"
25915 #: ../src/guestfs-actions.pod:2348
25916 msgid "(Added in 1.0.17)"
25920 #: ../src/guestfs-actions.pod:2350
25921 msgid "guestfs_head"
25925 #: ../src/guestfs-actions.pod:2352
25929 " guestfs_head (guestfs_h *g,\n"
25930 " const char *path);\n"
25935 #: ../src/guestfs-actions.pod:2368
25936 msgid "guestfs_head_n"
25940 #: ../src/guestfs-actions.pod:2370
25944 " guestfs_head_n (guestfs_h *g,\n"
25946 " const char *path);\n"
25951 #: ../src/guestfs-actions.pod:2392
25952 msgid "guestfs_hexdump"
25956 #: ../src/guestfs-actions.pod:2394
25960 " guestfs_hexdump (guestfs_h *g,\n"
25961 " const char *path);\n"
25966 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
25967 #: ../src/guestfs-actions.pod:6835
25968 msgid "(Added in 1.0.22)"
25972 #: ../src/guestfs-actions.pod:2409
25973 msgid "guestfs_initrd_cat"
25977 #: ../src/guestfs-actions.pod:2411
25981 " guestfs_initrd_cat (guestfs_h *g,\n"
25982 " const char *initrdpath,\n"
25983 " const char *filename,\n"
25984 " size_t *size_r);\n"
25989 #: ../src/guestfs-actions.pod:2427
25990 msgid "See also C<guestfs_initrd_list>."
25994 #: ../src/guestfs-actions.pod:2438
25995 msgid "guestfs_initrd_list"
25999 #: ../src/guestfs-actions.pod:2440
26003 " guestfs_initrd_list (guestfs_h *g,\n"
26004 " const char *path);\n"
26009 #: ../src/guestfs-actions.pod:2460
26010 msgid "guestfs_inotify_add_watch"
26014 #: ../src/guestfs-actions.pod:2462
26018 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26019 " const char *path,\n"
26025 #: ../src/guestfs-actions.pod:2481
26026 msgid "guestfs_inotify_close"
26030 #: ../src/guestfs-actions.pod:2483
26034 " guestfs_inotify_close (guestfs_h *g);\n"
26039 #: ../src/guestfs-actions.pod:2494
26040 msgid "guestfs_inotify_files"
26044 #: ../src/guestfs-actions.pod:2496
26048 " guestfs_inotify_files (guestfs_h *g);\n"
26053 #: ../src/guestfs-actions.pod:2499
26055 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26056 "returns a list of pathnames of objects that were touched. The returned "
26057 "pathnames are sorted and deduplicated."
26061 #: ../src/guestfs-actions.pod:2509
26062 msgid "guestfs_inotify_init"
26066 #: ../src/guestfs-actions.pod:2511
26070 " guestfs_inotify_init (guestfs_h *g,\n"
26071 " int maxevents);\n"
26076 #: ../src/guestfs-actions.pod:2519
26078 "C<maxevents> is the maximum number of events which will be queued up between "
26079 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
26080 "passed as C<0>, then the kernel (or previously set) default is used. For "
26081 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
26082 "throws away events, but records the fact that it threw them away by setting "
26083 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26084 "C<guestfs_inotify_read>)."
26088 #: ../src/guestfs-actions.pod:2529
26090 "Before any events are generated, you have to add some watches to the "
26091 "internal watch list. See: C<guestfs_inotify_add_watch>, "
26092 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26096 #: ../src/guestfs-actions.pod:2535
26098 "Queued up events should be read periodically by calling "
26099 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26100 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
26101 "often enough then you risk the internal queue overflowing."
26105 #: ../src/guestfs-actions.pod:2542
26107 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
26108 "This also removes any watches automatically."
26112 #: ../src/guestfs-actions.pod:2555
26113 msgid "guestfs_inotify_read"
26117 #: ../src/guestfs-actions.pod:2557
26120 " struct guestfs_inotify_event_list *\n"
26121 " guestfs_inotify_read (guestfs_h *g);\n"
26126 #: ../src/guestfs-actions.pod:2571
26128 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26129 "there was an error. I<The caller must call "
26130 "C<guestfs_free_inotify_event_list> after use>."
26134 #: ../src/guestfs-actions.pod:2577
26135 msgid "guestfs_inotify_rm_watch"
26139 #: ../src/guestfs-actions.pod:2579
26143 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26149 #: ../src/guestfs-actions.pod:2583
26151 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
26155 #: ../src/guestfs-actions.pod:2590
26156 msgid "guestfs_inspect_get_arch"
26160 #: ../src/guestfs-actions.pod:2592
26164 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26165 " const char *root);\n"
26170 #: ../src/guestfs-actions.pod:2596
26172 "This returns the architecture of the inspected operating system. The "
26173 "possible return values are listed under C<guestfs_file_architecture>."
26177 #: ../src/guestfs-actions.pod:2610
26178 msgid "guestfs_inspect_get_distro"
26182 #: ../src/guestfs-actions.pod:2612
26186 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26187 " const char *root);\n"
26192 #: ../src/guestfs-actions.pod:2700
26193 msgid "guestfs_inspect_get_drive_mappings"
26197 #: ../src/guestfs-actions.pod:2702
26201 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26202 " const char *root);\n"
26207 #: ../src/guestfs-actions.pod:2731
26209 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26210 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26214 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
26215 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
26216 #: ../src/guestfs-actions.pod:7137
26218 "This function returns a NULL-terminated array of strings, or NULL if there "
26219 "was an error. The array of strings will always have length C<2n+1>, where "
26220 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
26221 "caller must free the strings and the array after use>."
26225 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
26226 msgid "(Added in 1.9.17)"
26230 #: ../src/guestfs-actions.pod:2743
26231 msgid "guestfs_inspect_get_filesystems"
26235 #: ../src/guestfs-actions.pod:2745
26239 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26240 " const char *root);\n"
26245 #: ../src/guestfs-actions.pod:2757
26247 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26248 "C<guestfs_inspect_get_mountpoints>."
26252 #: ../src/guestfs-actions.pod:2766
26253 msgid "guestfs_inspect_get_format"
26257 #: ../src/guestfs-actions.pod:2768
26261 " guestfs_inspect_get_format (guestfs_h *g,\n"
26262 " const char *root);\n"
26267 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
26268 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
26269 #: ../src/guestfs-actions.pod:6033
26270 msgid "(Added in 1.9.4)"
26274 #: ../src/guestfs-actions.pod:2804
26275 msgid "guestfs_inspect_get_hostname"
26279 #: ../src/guestfs-actions.pod:2806
26283 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26284 " const char *root);\n"
26289 #: ../src/guestfs-actions.pod:2821
26290 msgid "(Added in 1.7.9)"
26294 #: ../src/guestfs-actions.pod:2823
26295 msgid "guestfs_inspect_get_icon"
26299 #: ../src/guestfs-actions.pod:2825
26303 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26304 " const char *root,\n"
26305 " size_t *size_r,\n"
26311 #: ../src/guestfs-actions.pod:2836
26314 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26315 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26320 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
26321 #: ../src/guestfs-actions.pod:4982
26322 msgid "(Added in 1.11.12)"
26326 #: ../src/guestfs-actions.pod:2905
26327 msgid "guestfs_inspect_get_icon_va"
26331 #: ../src/guestfs-actions.pod:2907
26335 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26336 " const char *root,\n"
26337 " size_t *size_r,\n"
26338 " va_list args);\n"
26343 #: ../src/guestfs-actions.pod:2913
26344 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26348 #: ../src/guestfs-actions.pod:2917
26349 msgid "guestfs_inspect_get_icon_argv"
26353 #: ../src/guestfs-actions.pod:2919
26357 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26358 " const char *root,\n"
26359 " size_t *size_r,\n"
26360 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
26365 #: ../src/guestfs-actions.pod:2925
26366 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26370 #: ../src/guestfs-actions.pod:2929
26371 msgid "guestfs_inspect_get_major_version"
26375 #: ../src/guestfs-actions.pod:2931
26379 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26380 " const char *root);\n"
26385 #: ../src/guestfs-actions.pod:2953
26386 msgid "guestfs_inspect_get_minor_version"
26390 #: ../src/guestfs-actions.pod:2955
26394 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26395 " const char *root);\n"
26400 #: ../src/guestfs-actions.pod:2964
26402 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26403 "C<guestfs_inspect_get_major_version>."
26407 #: ../src/guestfs-actions.pod:2971
26408 msgid "guestfs_inspect_get_mountpoints"
26412 #: ../src/guestfs-actions.pod:2973
26416 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26417 " const char *root);\n"
26422 #: ../src/guestfs-actions.pod:2994
26424 "For operating systems like Windows which still use drive letters, this call "
26425 "will only return an entry for the first drive \"mounted on\" C</>. For "
26426 "information about the mapping of drive letters to partitions, see "
26427 "C<guestfs_inspect_get_drive_mappings>."
26431 #: ../src/guestfs-actions.pod:3000
26433 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26434 "C<guestfs_inspect_get_filesystems>."
26438 #: ../src/guestfs-actions.pod:3011
26439 msgid "guestfs_inspect_get_package_format"
26443 #: ../src/guestfs-actions.pod:3013
26447 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26448 " const char *root);\n"
26453 #: ../src/guestfs-actions.pod:3017
26455 "This function and C<guestfs_inspect_get_package_management> return the "
26456 "package format and package management tool used by the inspected operating "
26457 "system. For example for Fedora these functions would return C<rpm> (package "
26458 "format) and C<yum> (package management)."
26462 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
26463 msgid "(Added in 1.7.5)"
26467 #: ../src/guestfs-actions.pod:3037
26468 msgid "guestfs_inspect_get_package_management"
26472 #: ../src/guestfs-actions.pod:3039
26476 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26477 " const char *root);\n"
26482 #: ../src/guestfs-actions.pod:3043
26484 "C<guestfs_inspect_get_package_format> and this function return the package "
26485 "format and package management tool used by the inspected operating system. "
26486 "For example for Fedora these functions would return C<rpm> (package format) "
26487 "and C<yum> (package management)."
26491 #: ../src/guestfs-actions.pod:3065
26492 msgid "guestfs_inspect_get_product_name"
26496 #: ../src/guestfs-actions.pod:3067
26500 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26501 " const char *root);\n"
26506 #: ../src/guestfs-actions.pod:3086
26507 msgid "guestfs_inspect_get_product_variant"
26511 #: ../src/guestfs-actions.pod:3088
26515 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26516 " const char *root);\n"
26521 #: ../src/guestfs-actions.pod:3111
26523 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26524 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26528 #: ../src/guestfs-actions.pod:3118
26529 msgid "(Added in 1.9.13)"
26533 #: ../src/guestfs-actions.pod:3120
26534 msgid "guestfs_inspect_get_roots"
26538 #: ../src/guestfs-actions.pod:3122
26542 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26547 #: ../src/guestfs-actions.pod:3125
26549 "This function is a convenient way to get the list of root devices, as "
26550 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26551 "the whole inspection process."
26555 #: ../src/guestfs-actions.pod:3129
26557 "This returns an empty list if either no root devices were found or the "
26558 "caller has not called C<guestfs_inspect_os>."
26562 #: ../src/guestfs-actions.pod:3138
26563 msgid "(Added in 1.7.3)"
26567 #: ../src/guestfs-actions.pod:3140
26568 msgid "guestfs_inspect_get_type"
26572 #: ../src/guestfs-actions.pod:3142
26576 " guestfs_inspect_get_type (guestfs_h *g,\n"
26577 " const char *root);\n"
26582 #: ../src/guestfs-actions.pod:3179
26583 msgid "guestfs_inspect_get_windows_current_control_set"
26587 #: ../src/guestfs-actions.pod:3181
26591 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26592 " const char *root);\n"
26597 #: ../src/guestfs-actions.pod:3199
26598 msgid "guestfs_inspect_get_windows_systemroot"
26602 #: ../src/guestfs-actions.pod:3201
26606 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26607 " const char *root);\n"
26612 #: ../src/guestfs-actions.pod:3217
26613 msgid "(Added in 1.5.25)"
26617 #: ../src/guestfs-actions.pod:3219
26618 msgid "guestfs_inspect_is_live"
26622 #: ../src/guestfs-actions.pod:3221
26626 " guestfs_inspect_is_live (guestfs_h *g,\n"
26627 " const char *root);\n"
26632 #: ../src/guestfs-actions.pod:3225
26634 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26635 "disk), then this returns true if a live image was detected on the disk."
26639 #: ../src/guestfs-actions.pod:3235
26640 msgid "guestfs_inspect_is_multipart"
26644 #: ../src/guestfs-actions.pod:3237
26648 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26649 " const char *root);\n"
26654 #: ../src/guestfs-actions.pod:3241
26656 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26657 "disk), then this returns true if the disk is part of a set."
26661 #: ../src/guestfs-actions.pod:3251
26662 msgid "guestfs_inspect_is_netinst"
26666 #: ../src/guestfs-actions.pod:3253
26670 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26671 " const char *root);\n"
26676 #: ../src/guestfs-actions.pod:3257
26678 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26679 "disk), then this returns true if the disk is a network installer, ie. not a "
26680 "self-contained install CD but one which is likely to require network access "
26681 "to complete the install."
26685 #: ../src/guestfs-actions.pod:3269
26686 msgid "guestfs_inspect_list_applications"
26690 #: ../src/guestfs-actions.pod:3271
26693 " struct guestfs_application_list *\n"
26694 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26695 " const char *root);\n"
26700 #: ../src/guestfs-actions.pod:3277
26702 "I<Note:> This call works differently from other parts of the inspection "
26703 "API. You have to call C<guestfs_inspect_os>, then "
26704 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26705 "this. Listing applications is a significantly more difficult operation "
26706 "which requires access to the full filesystem. Also note that unlike the "
26707 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26708 "the libguestfs handle, this call actually reads parts of the mounted "
26709 "filesystems during the call."
26713 #: ../src/guestfs-actions.pod:3367
26715 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26716 "there was an error. I<The caller must call C<guestfs_free_application_list> "
26721 #: ../src/guestfs-actions.pod:3371
26722 msgid "(Added in 1.7.8)"
26726 #: ../src/guestfs-actions.pod:3373
26727 msgid "guestfs_inspect_os"
26731 #: ../src/guestfs-actions.pod:3375
26735 " guestfs_inspect_os (guestfs_h *g);\n"
26740 #: ../src/guestfs-actions.pod:3391
26742 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26743 "functions in order to query further information about each operating system, "
26744 "such as the name and version."
26748 #: ../src/guestfs-actions.pod:3396
26750 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26751 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26752 "the contents. This should be called with no disks currently mounted. The "
26753 "function may also use Augeas, so any existing Augeas handle will be closed."
26757 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
26758 #: ../src/guestfs-actions.pod:3821
26759 msgid "See also C<guestfs_list_filesystems>."
26763 #: ../src/guestfs-actions.pod:3416
26764 msgid "guestfs_is_blockdev"
26768 #: ../src/guestfs-actions.pod:3418
26772 " guestfs_is_blockdev (guestfs_h *g,\n"
26773 " const char *path);\n"
26778 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
26779 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
26780 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
26781 #: ../src/guestfs-actions.pod:3586
26782 msgid "See also C<guestfs_stat>."
26786 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
26787 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
26788 #: ../src/guestfs-actions.pod:3590
26789 msgid "(Added in 1.5.10)"
26793 #: ../src/guestfs-actions.pod:3431
26794 msgid "guestfs_is_busy"
26798 #: ../src/guestfs-actions.pod:3433
26802 " guestfs_is_busy (guestfs_h *g);\n"
26807 #: ../src/guestfs-actions.pod:3445
26808 msgid "guestfs_is_chardev"
26812 #: ../src/guestfs-actions.pod:3447
26816 " guestfs_is_chardev (guestfs_h *g,\n"
26817 " const char *path);\n"
26822 #: ../src/guestfs-actions.pod:3460
26823 msgid "guestfs_is_config"
26827 #: ../src/guestfs-actions.pod:3462
26831 " guestfs_is_config (guestfs_h *g);\n"
26836 #: ../src/guestfs-actions.pod:3474
26837 msgid "guestfs_is_dir"
26841 #: ../src/guestfs-actions.pod:3476
26845 " guestfs_is_dir (guestfs_h *g,\n"
26846 " const char *path);\n"
26851 #: ../src/guestfs-actions.pod:3490
26852 msgid "guestfs_is_fifo"
26856 #: ../src/guestfs-actions.pod:3492
26860 " guestfs_is_fifo (guestfs_h *g,\n"
26861 " const char *path);\n"
26866 #: ../src/guestfs-actions.pod:3505
26867 msgid "guestfs_is_file"
26871 #: ../src/guestfs-actions.pod:3507
26875 " guestfs_is_file (guestfs_h *g,\n"
26876 " const char *path);\n"
26881 #: ../src/guestfs-actions.pod:3521
26882 msgid "guestfs_is_launching"
26886 #: ../src/guestfs-actions.pod:3523
26890 " guestfs_is_launching (guestfs_h *g);\n"
26895 #: ../src/guestfs-actions.pod:3535
26896 msgid "guestfs_is_lv"
26900 #: ../src/guestfs-actions.pod:3537
26904 " guestfs_is_lv (guestfs_h *g,\n"
26905 " const char *device);\n"
26910 #: ../src/guestfs-actions.pod:3548
26911 msgid "guestfs_is_ready"
26915 #: ../src/guestfs-actions.pod:3550
26919 " guestfs_is_ready (guestfs_h *g);\n"
26924 #: ../src/guestfs-actions.pod:3562
26925 msgid "guestfs_is_socket"
26929 #: ../src/guestfs-actions.pod:3564
26933 " guestfs_is_socket (guestfs_h *g,\n"
26934 " const char *path);\n"
26939 #: ../src/guestfs-actions.pod:3577
26940 msgid "guestfs_is_symlink"
26944 #: ../src/guestfs-actions.pod:3579
26948 " guestfs_is_symlink (guestfs_h *g,\n"
26949 " const char *path);\n"
26954 #: ../src/guestfs-actions.pod:3592
26955 msgid "guestfs_is_zero"
26959 #: ../src/guestfs-actions.pod:3594
26963 " guestfs_is_zero (guestfs_h *g,\n"
26964 " const char *path);\n"
26969 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
26970 msgid "(Added in 1.11.8)"
26974 #: ../src/guestfs-actions.pod:3605
26975 msgid "guestfs_is_zero_device"
26979 #: ../src/guestfs-actions.pod:3607
26983 " guestfs_is_zero_device (guestfs_h *g,\n"
26984 " const char *device);\n"
26989 #: ../src/guestfs-actions.pod:3619
26990 msgid "guestfs_kill_subprocess"
26994 #: ../src/guestfs-actions.pod:3621
26998 " guestfs_kill_subprocess (guestfs_h *g);\n"
27003 #: ../src/guestfs-actions.pod:3630
27004 msgid "guestfs_launch"
27008 #: ../src/guestfs-actions.pod:3632
27012 " guestfs_launch (guestfs_h *g);\n"
27017 #: ../src/guestfs-actions.pod:3650
27018 msgid "guestfs_lchown"
27022 #: ../src/guestfs-actions.pod:3652
27026 " guestfs_lchown (guestfs_h *g,\n"
27029 " const char *path);\n"
27034 #: ../src/guestfs-actions.pod:3658
27036 "Change the file owner to C<owner> and group to C<group>. This is like "
27037 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27038 "changed, not the target."
27042 #: ../src/guestfs-actions.pod:3670
27043 msgid "guestfs_lgetxattr"
27047 #: ../src/guestfs-actions.pod:3672
27051 " guestfs_lgetxattr (guestfs_h *g,\n"
27052 " const char *path,\n"
27053 " const char *name,\n"
27054 " size_t *size_r);\n"
27059 #: ../src/guestfs-actions.pod:3692
27060 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27064 #: ../src/guestfs-actions.pod:3700
27065 msgid "guestfs_lgetxattrs"
27069 #: ../src/guestfs-actions.pod:3702
27072 " struct guestfs_xattr_list *\n"
27073 " guestfs_lgetxattrs (guestfs_h *g,\n"
27074 " const char *path);\n"
27079 #: ../src/guestfs-actions.pod:3706
27081 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27082 "then it returns the extended attributes of the link itself."
27086 #: ../src/guestfs-actions.pod:3716
27087 msgid "guestfs_list_9p"
27091 #: ../src/guestfs-actions.pod:3718
27095 " guestfs_list_9p (guestfs_h *g);\n"
27100 #: ../src/guestfs-actions.pod:3730
27101 msgid "guestfs_list_devices"
27105 #: ../src/guestfs-actions.pod:3732
27109 " guestfs_list_devices (guestfs_h *g);\n"
27114 #: ../src/guestfs-actions.pod:3747
27115 msgid "guestfs_list_dm_devices"
27119 #: ../src/guestfs-actions.pod:3749
27123 " guestfs_list_dm_devices (guestfs_h *g);\n"
27128 #: ../src/guestfs-actions.pod:3754
27130 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27131 "previous call to C<guestfs_luks_open>."
27135 #: ../src/guestfs-actions.pod:3757
27137 "Device mapper devices which correspond to logical volumes are I<not> "
27138 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
27143 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
27144 msgid "(Added in 1.11.15)"
27148 #: ../src/guestfs-actions.pod:3767
27149 msgid "guestfs_list_filesystems"
27153 #: ../src/guestfs-actions.pod:3769
27157 " guestfs_list_filesystems (guestfs_h *g);\n"
27162 #: ../src/guestfs-actions.pod:3789
27164 "This command runs other libguestfs commands, which might include "
27165 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27166 "soon after launch and only when nothing is mounted."
27170 #: ../src/guestfs-actions.pod:3793
27172 "Not all of the filesystems returned will be mountable. In particular, swap "
27173 "partitions are returned in the list. Also this command does not check that "
27174 "each filesystem found is valid and mountable, and some filesystems might be "
27175 "mountable but require special options. Filesystems may not all belong to a "
27176 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27180 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
27181 msgid "(Added in 1.5.15)"
27185 #: ../src/guestfs-actions.pod:3809
27186 msgid "guestfs_list_partitions"
27187 msgstr "guestfs_list_partitions"
27190 #: ../src/guestfs-actions.pod:3811
27194 " guestfs_list_partitions (guestfs_h *g);\n"
27198 " guestfs_list_partitions (guestfs_h *g);\n"
27202 #: ../src/guestfs-actions.pod:3818
27204 "This does not return logical volumes. For that you will need to call "
27209 #: ../src/guestfs-actions.pod:3829
27211 msgstr "guestfs_ll"
27214 #: ../src/guestfs-actions.pod:3831
27218 " guestfs_ll (guestfs_h *g,\n"
27219 " const char *directory);\n"
27223 " guestfs_ll (guestfs_h *g,\n"
27224 " const char *directory);\n"
27228 #: ../src/guestfs-actions.pod:3846
27230 msgstr "guestfs_ln"
27233 #: ../src/guestfs-actions.pod:3848
27237 " guestfs_ln (guestfs_h *g,\n"
27238 " const char *target,\n"
27239 " const char *linkname);\n"
27243 " guestfs_ln (guestfs_h *g,\n"
27244 " const char *target,\n"
27245 " const char *linkname);\n"
27249 #: ../src/guestfs-actions.pod:3859
27250 msgid "guestfs_ln_f"
27251 msgstr "guestfs_ln_f"
27254 #: ../src/guestfs-actions.pod:3861
27258 " guestfs_ln_f (guestfs_h *g,\n"
27259 " const char *target,\n"
27260 " const char *linkname);\n"
27264 " guestfs_ln_f (guestfs_h *g,\n"
27265 " const char *target,\n"
27266 " const char *linkname);\n"
27270 #: ../src/guestfs-actions.pod:3873
27271 msgid "guestfs_ln_s"
27272 msgstr "guestfs_ln_s"
27275 #: ../src/guestfs-actions.pod:3875
27279 " guestfs_ln_s (guestfs_h *g,\n"
27280 " const char *target,\n"
27281 " const char *linkname);\n"
27285 " guestfs_ln_s (guestfs_h *g,\n"
27286 " const char *target,\n"
27287 " const char *linkname);\n"
27291 #: ../src/guestfs-actions.pod:3886
27292 msgid "guestfs_ln_sf"
27293 msgstr "guestfs_ln_sf"
27296 #: ../src/guestfs-actions.pod:3888
27300 " guestfs_ln_sf (guestfs_h *g,\n"
27301 " const char *target,\n"
27302 " const char *linkname);\n"
27306 " guestfs_ln_sf (guestfs_h *g,\n"
27307 " const char *target,\n"
27308 " const char *linkname);\n"
27312 #: ../src/guestfs-actions.pod:3900
27313 msgid "guestfs_lremovexattr"
27314 msgstr "guestfs_lremovexattr"
27317 #: ../src/guestfs-actions.pod:3902
27321 " guestfs_lremovexattr (guestfs_h *g,\n"
27322 " const char *xattr,\n"
27323 " const char *path);\n"
27327 " guestfs_lremovexattr (guestfs_h *g,\n"
27328 " const char *xattr,\n"
27329 " const char *path);\n"
27333 #: ../src/guestfs-actions.pod:3907
27335 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27336 "link, then it removes an extended attribute of the link itself."
27340 #: ../src/guestfs-actions.pod:3915
27342 msgstr "guestfs_ls"
27345 #: ../src/guestfs-actions.pod:3917
27349 " guestfs_ls (guestfs_h *g,\n"
27350 " const char *directory);\n"
27354 " guestfs_ls (guestfs_h *g,\n"
27355 " const char *directory);\n"
27359 #: ../src/guestfs-actions.pod:3925
27361 "This command is mostly useful for interactive sessions. Programs should "
27362 "probably use C<guestfs_readdir> instead."
27366 #: ../src/guestfs-actions.pod:3934
27367 msgid "guestfs_lsetxattr"
27368 msgstr "guestfs_lsetxattr"
27371 #: ../src/guestfs-actions.pod:3936
27375 " guestfs_lsetxattr (guestfs_h *g,\n"
27376 " const char *xattr,\n"
27377 " const char *val,\n"
27379 " const char *path);\n"
27383 " guestfs_lsetxattr (guestfs_h *g,\n"
27384 " const char *xattr,\n"
27385 " const char *val,\n"
27387 " const char *path);\n"
27391 #: ../src/guestfs-actions.pod:3943
27393 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27394 "then it sets an extended attribute of the link itself."
27398 #: ../src/guestfs-actions.pod:3951
27399 msgid "guestfs_lstat"
27400 msgstr "guestfs_lstat"
27403 #: ../src/guestfs-actions.pod:3953
27406 " struct guestfs_stat *\n"
27407 " guestfs_lstat (guestfs_h *g,\n"
27408 " const char *path);\n"
27411 " struct guestfs_stat *\n"
27412 " guestfs_lstat (guestfs_h *g,\n"
27413 " const char *path);\n"
27417 #: ../src/guestfs-actions.pod:3959
27419 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27420 "link, then the link is stat-ed, not the file it refers to."
27424 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
27426 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27427 "error. I<The caller must call C<guestfs_free_stat> after use>."
27431 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
27432 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
27433 msgid "(Added in 0.9.2)"
27434 msgstr "(Додано у 0.9.2)"
27437 #: ../src/guestfs-actions.pod:3971
27438 msgid "guestfs_lstatlist"
27439 msgstr "guestfs_lstatlist"
27442 #: ../src/guestfs-actions.pod:3973
27445 " struct guestfs_stat_list *\n"
27446 " guestfs_lstatlist (guestfs_h *g,\n"
27447 " const char *path,\n"
27448 " char *const *names);\n"
27451 " struct guestfs_stat_list *\n"
27452 " guestfs_lstatlist (guestfs_h *g,\n"
27453 " const char *path,\n"
27454 " char *const *names);\n"
27458 #: ../src/guestfs-actions.pod:3978
27460 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27461 "files, where all files are in the directory C<path>. C<names> is the list "
27462 "of files from this directory."
27466 #: ../src/guestfs-actions.pod:3987
27468 "This call is intended for programs that want to efficiently list a directory "
27469 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
27470 "for a similarly efficient call for getting extended attributes. Very long "
27471 "directory listings might cause the protocol message size to be exceeded, "
27472 "causing this call to fail. The caller must split up such requests into "
27473 "smaller groups of names."
27477 #: ../src/guestfs-actions.pod:3995
27479 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27480 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
27484 #: ../src/guestfs-actions.pod:4001
27485 msgid "guestfs_luks_add_key"
27486 msgstr "guestfs_luks_add_key"
27489 #: ../src/guestfs-actions.pod:4003
27493 " guestfs_luks_add_key (guestfs_h *g,\n"
27494 " const char *device,\n"
27495 " const char *key,\n"
27496 " const char *newkey,\n"
27501 " guestfs_luks_add_key (guestfs_h *g,\n"
27502 " const char *device,\n"
27503 " const char *key,\n"
27504 " const char *newkey,\n"
27509 #: ../src/guestfs-actions.pod:4015
27511 "Note that if C<keyslot> already contains a key, then this command will "
27512 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
27516 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
27517 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
27518 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
27520 "This function takes a key or passphrase parameter which could contain "
27521 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
27526 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
27527 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
27528 msgid "(Added in 1.5.2)"
27529 msgstr "(Додано у 1.5.2)"
27532 #: ../src/guestfs-actions.pod:4027
27533 msgid "guestfs_luks_close"
27534 msgstr "guestfs_luks_close"
27537 #: ../src/guestfs-actions.pod:4029
27541 " guestfs_luks_close (guestfs_h *g,\n"
27542 " const char *device);\n"
27546 " guestfs_luks_close (guestfs_h *g,\n"
27547 " const char *device);\n"
27551 #: ../src/guestfs-actions.pod:4033
27553 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27554 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
27555 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27556 "underlying block device."
27560 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
27561 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
27562 #: ../src/guestfs-actions.pod:4260
27563 msgid "(Added in 1.5.1)"
27564 msgstr "(Додано у 1.5.1)"
27567 #: ../src/guestfs-actions.pod:4043
27568 msgid "guestfs_luks_format"
27569 msgstr "guestfs_luks_format"
27572 #: ../src/guestfs-actions.pod:4045
27576 " guestfs_luks_format (guestfs_h *g,\n"
27577 " const char *device,\n"
27578 " const char *key,\n"
27583 " guestfs_luks_format (guestfs_h *g,\n"
27584 " const char *device,\n"
27585 " const char *key,\n"
27590 #: ../src/guestfs-actions.pod:4067
27591 msgid "guestfs_luks_format_cipher"
27592 msgstr "guestfs_luks_format_cipher"
27595 #: ../src/guestfs-actions.pod:4069
27599 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27600 " const char *device,\n"
27601 " const char *key,\n"
27603 " const char *cipher);\n"
27607 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27608 " const char *device,\n"
27609 " const char *key,\n"
27611 " const char *cipher);\n"
27615 #: ../src/guestfs-actions.pod:4076
27617 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27618 "set the C<cipher> used."
27622 #: ../src/guestfs-actions.pod:4090
27623 msgid "guestfs_luks_kill_slot"
27624 msgstr "guestfs_luks_kill_slot"
27627 #: ../src/guestfs-actions.pod:4092
27631 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27632 " const char *device,\n"
27633 " const char *key,\n"
27638 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27639 " const char *device,\n"
27640 " const char *key,\n"
27645 #: ../src/guestfs-actions.pod:4110
27646 msgid "guestfs_luks_open"
27647 msgstr "guestfs_luks_open"
27650 #: ../src/guestfs-actions.pod:4112
27654 " guestfs_luks_open (guestfs_h *g,\n"
27655 " const char *device,\n"
27656 " const char *key,\n"
27657 " const char *mapname);\n"
27661 " guestfs_luks_open (guestfs_h *g,\n"
27662 " const char *device,\n"
27663 " const char *key,\n"
27664 " const char *mapname);\n"
27668 #: ../src/guestfs-actions.pod:4130
27670 "If this block device contains LVM volume groups, then calling "
27671 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27676 #: ../src/guestfs-actions.pod:4134
27677 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27681 #: ../src/guestfs-actions.pod:4145
27682 msgid "guestfs_luks_open_ro"
27683 msgstr "guestfs_luks_open_ro"
27686 #: ../src/guestfs-actions.pod:4147
27690 " guestfs_luks_open_ro (guestfs_h *g,\n"
27691 " const char *device,\n"
27692 " const char *key,\n"
27693 " const char *mapname);\n"
27697 " guestfs_luks_open_ro (guestfs_h *g,\n"
27698 " const char *device,\n"
27699 " const char *key,\n"
27700 " const char *mapname);\n"
27704 #: ../src/guestfs-actions.pod:4153
27706 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27711 #: ../src/guestfs-actions.pod:4164
27712 msgid "guestfs_lvcreate"
27713 msgstr "guestfs_lvcreate"
27716 #: ../src/guestfs-actions.pod:4166
27720 " guestfs_lvcreate (guestfs_h *g,\n"
27721 " const char *logvol,\n"
27722 " const char *volgroup,\n"
27727 " guestfs_lvcreate (guestfs_h *g,\n"
27728 " const char *logvol,\n"
27729 " const char *volgroup,\n"
27734 #: ../src/guestfs-actions.pod:4179
27735 msgid "guestfs_lvm_canonical_lv_name"
27736 msgstr "guestfs_lvm_canonical_lv_name"
27739 #: ../src/guestfs-actions.pod:4181
27743 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27744 " const char *lvname);\n"
27748 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27749 " const char *lvname);\n"
27753 #: ../src/guestfs-actions.pod:4192
27754 msgid "See also C<guestfs_is_lv>."
27758 #: ../src/guestfs-actions.pod:4197
27759 msgid "(Added in 1.5.24)"
27760 msgstr "(Додано у 1.5.24)"
27763 #: ../src/guestfs-actions.pod:4199
27764 msgid "guestfs_lvm_clear_filter"
27765 msgstr "guestfs_lvm_clear_filter"
27768 #: ../src/guestfs-actions.pod:4201
27772 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27776 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27780 #: ../src/guestfs-actions.pod:4204
27782 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
27783 "see every block device."
27787 #: ../src/guestfs-actions.pod:4214
27788 msgid "guestfs_lvm_remove_all"
27789 msgstr "guestfs_lvm_remove_all"
27792 #: ../src/guestfs-actions.pod:4216
27796 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27800 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27804 #: ../src/guestfs-actions.pod:4229
27805 msgid "guestfs_lvm_set_filter"
27806 msgstr "guestfs_lvm_set_filter"
27809 #: ../src/guestfs-actions.pod:4231
27813 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27814 " char *const *devices);\n"
27818 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27819 " char *const *devices);\n"
27823 #: ../src/guestfs-actions.pod:4262
27824 msgid "guestfs_lvremove"
27825 msgstr "guestfs_lvremove"
27828 #: ../src/guestfs-actions.pod:4264
27832 " guestfs_lvremove (guestfs_h *g,\n"
27833 " const char *device);\n"
27837 " guestfs_lvremove (guestfs_h *g,\n"
27838 " const char *device);\n"
27842 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
27843 #: ../src/guestfs-actions.pod:7513
27844 msgid "(Added in 1.0.13)"
27845 msgstr "(Додано у 1.0.13)"
27848 #: ../src/guestfs-actions.pod:4278
27849 msgid "guestfs_lvrename"
27850 msgstr "guestfs_lvrename"
27853 #: ../src/guestfs-actions.pod:4280
27857 " guestfs_lvrename (guestfs_h *g,\n"
27858 " const char *logvol,\n"
27859 " const char *newlogvol);\n"
27863 " guestfs_lvrename (guestfs_h *g,\n"
27864 " const char *logvol,\n"
27865 " const char *newlogvol);\n"
27869 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
27870 msgid "(Added in 1.0.83)"
27871 msgstr "(Додано у 1.0.83)"
27874 #: ../src/guestfs-actions.pod:4291
27875 msgid "guestfs_lvresize"
27876 msgstr "guestfs_lvresize"
27879 #: ../src/guestfs-actions.pod:4293
27883 " guestfs_lvresize (guestfs_h *g,\n"
27884 " const char *device,\n"
27889 " guestfs_lvresize (guestfs_h *g,\n"
27890 " const char *device,\n"
27895 #: ../src/guestfs-actions.pod:4306
27896 msgid "guestfs_lvresize_free"
27897 msgstr "guestfs_lvresize_free"
27900 #: ../src/guestfs-actions.pod:4308
27904 " guestfs_lvresize_free (guestfs_h *g,\n"
27905 " const char *lv,\n"
27910 " guestfs_lvresize_free (guestfs_h *g,\n"
27911 " const char *lv,\n"
27916 #: ../src/guestfs-actions.pod:4321
27917 msgid "(Added in 1.3.3)"
27918 msgstr "(Додано у 1.3.3)"
27921 #: ../src/guestfs-actions.pod:4323
27922 msgid "guestfs_lvs"
27923 msgstr "guestfs_lvs"
27926 #: ../src/guestfs-actions.pod:4325
27930 " guestfs_lvs (guestfs_h *g);\n"
27934 " guestfs_lvs (guestfs_h *g);\n"
27938 #: ../src/guestfs-actions.pod:4334
27939 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27943 #: ../src/guestfs-actions.pod:4342
27944 msgid "guestfs_lvs_full"
27945 msgstr "guestfs_lvs_full"
27948 #: ../src/guestfs-actions.pod:4344
27951 " struct guestfs_lvm_lv_list *\n"
27952 " guestfs_lvs_full (guestfs_h *g);\n"
27955 " struct guestfs_lvm_lv_list *\n"
27956 " guestfs_lvs_full (guestfs_h *g);\n"
27960 #: ../src/guestfs-actions.pod:4350
27962 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27963 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27967 #: ../src/guestfs-actions.pod:4356
27968 msgid "guestfs_lvuuid"
27969 msgstr "guestfs_lvuuid"
27972 #: ../src/guestfs-actions.pod:4358
27976 " guestfs_lvuuid (guestfs_h *g,\n"
27977 " const char *device);\n"
27981 " guestfs_lvuuid (guestfs_h *g,\n"
27982 " const char *device);\n"
27986 #: ../src/guestfs-actions.pod:4369
27987 msgid "guestfs_lxattrlist"
27988 msgstr "guestfs_lxattrlist"
27991 #: ../src/guestfs-actions.pod:4371
27994 " struct guestfs_xattr_list *\n"
27995 " guestfs_lxattrlist (guestfs_h *g,\n"
27996 " const char *path,\n"
27997 " char *const *names);\n"
28000 " struct guestfs_xattr_list *\n"
28001 " guestfs_lxattrlist (guestfs_h *g,\n"
28002 " const char *path,\n"
28003 " char *const *names);\n"
28007 #: ../src/guestfs-actions.pod:4390
28009 "This call is intended for programs that want to efficiently list a directory "
28010 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
28011 "a similarly efficient call for getting standard stats. Very long directory "
28012 "listings might cause the protocol message size to be exceeded, causing this "
28013 "call to fail. The caller must split up such requests into smaller groups of "
28018 #: ../src/guestfs-actions.pod:4404
28019 msgid "guestfs_mkdir"
28020 msgstr "guestfs_mkdir"
28023 #: ../src/guestfs-actions.pod:4406
28027 " guestfs_mkdir (guestfs_h *g,\n"
28028 " const char *path);\n"
28032 " guestfs_mkdir (guestfs_h *g,\n"
28033 " const char *path);\n"
28037 #: ../src/guestfs-actions.pod:4416
28038 msgid "guestfs_mkdir_mode"
28039 msgstr "guestfs_mkdir_mode"
28042 #: ../src/guestfs-actions.pod:4418
28046 " guestfs_mkdir_mode (guestfs_h *g,\n"
28047 " const char *path,\n"
28052 " guestfs_mkdir_mode (guestfs_h *g,\n"
28053 " const char *path,\n"
28058 #: ../src/guestfs-actions.pod:4430
28059 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28063 #: ../src/guestfs-actions.pod:4436
28064 msgid "guestfs_mkdir_p"
28065 msgstr "guestfs_mkdir_p"
28068 #: ../src/guestfs-actions.pod:4438
28072 " guestfs_mkdir_p (guestfs_h *g,\n"
28073 " const char *path);\n"
28077 " guestfs_mkdir_p (guestfs_h *g,\n"
28078 " const char *path);\n"
28082 #: ../src/guestfs-actions.pod:4449
28083 msgid "guestfs_mkdtemp"
28084 msgstr "guestfs_mkdtemp"
28087 #: ../src/guestfs-actions.pod:4451
28091 " guestfs_mkdtemp (guestfs_h *g,\n"
28092 " const char *template);\n"
28096 " guestfs_mkdtemp (guestfs_h *g,\n"
28097 " const char *template);\n"
28101 #: ../src/guestfs-actions.pod:4479
28102 msgid "guestfs_mke2fs_J"
28103 msgstr "guestfs_mke2fs_J"
28106 #: ../src/guestfs-actions.pod:4481
28110 " guestfs_mke2fs_J (guestfs_h *g,\n"
28111 " const char *fstype,\n"
28112 " int blocksize,\n"
28113 " const char *device,\n"
28114 " const char *journal);\n"
28118 " guestfs_mke2fs_J (guestfs_h *g,\n"
28119 " const char *fstype,\n"
28120 " int blocksize,\n"
28121 " const char *device,\n"
28122 " const char *journal);\n"
28126 #: ../src/guestfs-actions.pod:4494
28127 msgid "See also C<guestfs_mke2journal>."
28131 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
28132 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
28133 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
28134 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
28135 msgid "(Added in 1.0.68)"
28136 msgstr "(Додано у 1.0.68)"
28139 #: ../src/guestfs-actions.pod:4500
28140 msgid "guestfs_mke2fs_JL"
28141 msgstr "guestfs_mke2fs_JL"
28144 #: ../src/guestfs-actions.pod:4502
28148 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28149 " const char *fstype,\n"
28150 " int blocksize,\n"
28151 " const char *device,\n"
28152 " const char *label);\n"
28156 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28157 " const char *fstype,\n"
28158 " int blocksize,\n"
28159 " const char *device,\n"
28160 " const char *label);\n"
28164 #: ../src/guestfs-actions.pod:4512
28165 msgid "See also C<guestfs_mke2journal_L>."
28169 #: ../src/guestfs-actions.pod:4518
28170 msgid "guestfs_mke2fs_JU"
28171 msgstr "guestfs_mke2fs_JU"
28174 #: ../src/guestfs-actions.pod:4520
28178 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28179 " const char *fstype,\n"
28180 " int blocksize,\n"
28181 " const char *device,\n"
28182 " const char *uuid);\n"
28186 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28187 " const char *fstype,\n"
28188 " int blocksize,\n"
28189 " const char *device,\n"
28190 " const char *uuid);\n"
28194 #: ../src/guestfs-actions.pod:4530
28195 msgid "See also C<guestfs_mke2journal_U>."
28199 #: ../src/guestfs-actions.pod:4536
28200 msgid "guestfs_mke2journal"
28201 msgstr "guestfs_mke2journal"
28204 #: ../src/guestfs-actions.pod:4538
28208 " guestfs_mke2journal (guestfs_h *g,\n"
28209 " int blocksize,\n"
28210 " const char *device);\n"
28214 " guestfs_mke2journal (guestfs_h *g,\n"
28215 " int blocksize,\n"
28216 " const char *device);\n"
28220 #: ../src/guestfs-actions.pod:4552
28221 msgid "guestfs_mke2journal_L"
28222 msgstr "guestfs_mke2journal_L"
28225 #: ../src/guestfs-actions.pod:4554
28229 " guestfs_mke2journal_L (guestfs_h *g,\n"
28230 " int blocksize,\n"
28231 " const char *label,\n"
28232 " const char *device);\n"
28236 " guestfs_mke2journal_L (guestfs_h *g,\n"
28237 " int blocksize,\n"
28238 " const char *label,\n"
28239 " const char *device);\n"
28243 #: ../src/guestfs-actions.pod:4566
28244 msgid "guestfs_mke2journal_U"
28245 msgstr "guestfs_mke2journal_U"
28248 #: ../src/guestfs-actions.pod:4568
28252 " guestfs_mke2journal_U (guestfs_h *g,\n"
28253 " int blocksize,\n"
28254 " const char *uuid,\n"
28255 " const char *device);\n"
28259 " guestfs_mke2journal_U (guestfs_h *g,\n"
28260 " int blocksize,\n"
28261 " const char *uuid,\n"
28262 " const char *device);\n"
28266 #: ../src/guestfs-actions.pod:4580
28267 msgid "guestfs_mkfifo"
28268 msgstr "guestfs_mkfifo"
28271 #: ../src/guestfs-actions.pod:4582
28275 " guestfs_mkfifo (guestfs_h *g,\n"
28277 " const char *path);\n"
28281 " guestfs_mkfifo (guestfs_h *g,\n"
28283 " const char *path);\n"
28287 #: ../src/guestfs-actions.pod:4587
28289 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28290 "is just a convenient wrapper around C<guestfs_mknod>."
28294 #: ../src/guestfs-actions.pod:4597
28295 msgid "guestfs_mkfs"
28296 msgstr "guestfs_mkfs"
28299 #: ../src/guestfs-actions.pod:4599
28303 " guestfs_mkfs (guestfs_h *g,\n"
28304 " const char *fstype,\n"
28305 " const char *device);\n"
28309 " guestfs_mkfs (guestfs_h *g,\n"
28310 " const char *fstype,\n"
28311 " const char *device);\n"
28315 #: ../src/guestfs-actions.pod:4612
28316 msgid "guestfs_mkfs_b"
28317 msgstr "guestfs_mkfs_b"
28320 #: ../src/guestfs-actions.pod:4614
28324 " guestfs_mkfs_b (guestfs_h *g,\n"
28325 " const char *fstype,\n"
28326 " int blocksize,\n"
28327 " const char *device);\n"
28331 " guestfs_mkfs_b (guestfs_h *g,\n"
28332 " const char *fstype,\n"
28333 " int blocksize,\n"
28334 " const char *device);\n"
28338 #: ../src/guestfs-actions.pod:4620
28340 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28345 #: ../src/guestfs-actions.pod:4627
28347 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28348 "block size of the resulting filesystem. Supported block sizes depend on the "
28349 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28353 #: ../src/guestfs-actions.pod:4639
28354 msgid "guestfs_mkfs_opts"
28355 msgstr "guestfs_mkfs_opts"
28358 #: ../src/guestfs-actions.pod:4641
28362 " guestfs_mkfs_opts (guestfs_h *g,\n"
28363 " const char *fstype,\n"
28364 " const char *device,\n"
28369 " guestfs_mkfs_opts (guestfs_h *g,\n"
28370 " const char *fstype,\n"
28371 " const char *device,\n"
28376 #: ../src/guestfs-actions.pod:4652
28379 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28380 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28381 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28382 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28387 #: ../src/guestfs-actions.pod:4700
28388 msgid "(Added in 1.7.19)"
28389 msgstr "(Додано у 1.7.19)"
28392 #: ../src/guestfs-actions.pod:4702
28393 msgid "guestfs_mkfs_opts_va"
28394 msgstr "guestfs_mkfs_opts_va"
28397 #: ../src/guestfs-actions.pod:4704
28401 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28402 " const char *fstype,\n"
28403 " const char *device,\n"
28404 " va_list args);\n"
28408 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28409 " const char *fstype,\n"
28410 " const char *device,\n"
28411 " va_list args);\n"
28415 #: ../src/guestfs-actions.pod:4710
28416 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28420 #: ../src/guestfs-actions.pod:4714
28421 msgid "guestfs_mkfs_opts_argv"
28422 msgstr "guestfs_mkfs_opts_argv"
28425 #: ../src/guestfs-actions.pod:4716
28429 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28430 " const char *fstype,\n"
28431 " const char *device,\n"
28432 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28436 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28437 " const char *fstype,\n"
28438 " const char *device,\n"
28439 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28443 #: ../src/guestfs-actions.pod:4722
28444 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28448 #: ../src/guestfs-actions.pod:4726
28449 msgid "guestfs_mkmountpoint"
28450 msgstr "guestfs_mkmountpoint"
28453 #: ../src/guestfs-actions.pod:4728
28457 " guestfs_mkmountpoint (guestfs_h *g,\n"
28458 " const char *exemptpath);\n"
28462 " guestfs_mkmountpoint (guestfs_h *g,\n"
28463 " const char *exemptpath);\n"
28467 #: ../src/guestfs-actions.pod:4732
28469 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28470 "that can be used to create extra mountpoints before mounting the first "
28475 #: ../src/guestfs-actions.pod:4756
28477 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
28478 "may get unexpected errors if you try to mix these calls. It is safest to "
28479 "manually unmount filesystems and remove mountpoints after use."
28483 #: ../src/guestfs-actions.pod:4760
28485 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28486 "first, so for this to work for manual mountpoints, you must ensure that the "
28487 "innermost mountpoints have the longest pathnames, as in the example code "
28492 #: ../src/guestfs-actions.pod:4767
28494 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28495 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28496 "can also trigger these issues."
28500 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
28501 #: ../src/guestfs-actions.pod:6099
28502 msgid "(Added in 1.0.62)"
28503 msgstr "(Додано у 1.0.62)"
28506 #: ../src/guestfs-actions.pod:4775
28507 msgid "guestfs_mknod"
28511 #: ../src/guestfs-actions.pod:4777
28515 " guestfs_mknod (guestfs_h *g,\n"
28519 " const char *path);\n"
28524 #: ../src/guestfs-actions.pod:4792
28526 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28527 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28528 "regular file). These constants are available in the standard Linux header "
28529 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28530 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28531 "the appropriate constant for you."
28535 #: ../src/guestfs-actions.pod:4806
28536 msgid "guestfs_mknod_b"
28540 #: ../src/guestfs-actions.pod:4808
28544 " guestfs_mknod_b (guestfs_h *g,\n"
28548 " const char *path);\n"
28553 #: ../src/guestfs-actions.pod:4815
28555 "This call creates a block device node called C<path> with mode C<mode> and "
28556 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28557 "wrapper around C<guestfs_mknod>."
28561 #: ../src/guestfs-actions.pod:4825
28562 msgid "guestfs_mknod_c"
28566 #: ../src/guestfs-actions.pod:4827
28570 " guestfs_mknod_c (guestfs_h *g,\n"
28574 " const char *path);\n"
28579 #: ../src/guestfs-actions.pod:4834
28581 "This call creates a char device node called C<path> with mode C<mode> and "
28582 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28583 "wrapper around C<guestfs_mknod>."
28587 #: ../src/guestfs-actions.pod:4844
28588 msgid "guestfs_mkswap"
28592 #: ../src/guestfs-actions.pod:4846
28596 " guestfs_mkswap (guestfs_h *g,\n"
28597 " const char *device);\n"
28602 #: ../src/guestfs-actions.pod:4856
28603 msgid "guestfs_mkswap_L"
28607 #: ../src/guestfs-actions.pod:4858
28611 " guestfs_mkswap_L (guestfs_h *g,\n"
28612 " const char *label,\n"
28613 " const char *device);\n"
28618 #: ../src/guestfs-actions.pod:4873
28619 msgid "guestfs_mkswap_U"
28623 #: ../src/guestfs-actions.pod:4875
28627 " guestfs_mkswap_U (guestfs_h *g,\n"
28628 " const char *uuid,\n"
28629 " const char *device);\n"
28634 #: ../src/guestfs-actions.pod:4886
28635 msgid "guestfs_mkswap_file"
28639 #: ../src/guestfs-actions.pod:4888
28643 " guestfs_mkswap_file (guestfs_h *g,\n"
28644 " const char *path);\n"
28649 #: ../src/guestfs-actions.pod:4894
28651 "This command just writes a swap file signature to an existing file. To "
28652 "create the file itself, use something like C<guestfs_fallocate>."
28656 #: ../src/guestfs-actions.pod:4901
28657 msgid "guestfs_modprobe"
28661 #: ../src/guestfs-actions.pod:4903
28665 " guestfs_modprobe (guestfs_h *g,\n"
28666 " const char *modulename);\n"
28671 #: ../src/guestfs-actions.pod:4916
28672 msgid "guestfs_mount"
28676 #: ../src/guestfs-actions.pod:4918
28680 " guestfs_mount (guestfs_h *g,\n"
28681 " const char *device,\n"
28682 " const char *mountpoint);\n"
28687 #: ../src/guestfs-actions.pod:4923
28689 "I<This function is deprecated.> In new code, use the L</"
28690 "guestfs_mount_options> call instead."
28694 #: ../src/guestfs-actions.pod:4944
28696 "B<Important note:> When you use this call, the filesystem options C<sync> "
28697 "and C<noatime> are set implicitly. This was originally done because we "
28698 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28699 "very large negative performance impact and negligible effect on "
28700 "reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
28701 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28702 "(use an empty string for the first parameter if you don't want any options)."
28706 #: ../src/guestfs-actions.pod:4958
28707 msgid "guestfs_mount_9p"
28711 #: ../src/guestfs-actions.pod:4960
28715 " guestfs_mount_9p (guestfs_h *g,\n"
28716 " const char *mounttag,\n"
28717 " const char *mountpoint,\n"
28723 #: ../src/guestfs-actions.pod:4971
28726 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28731 #: ../src/guestfs-actions.pod:4984
28732 msgid "guestfs_mount_9p_va"
28736 #: ../src/guestfs-actions.pod:4986
28740 " guestfs_mount_9p_va (guestfs_h *g,\n"
28741 " const char *mounttag,\n"
28742 " const char *mountpoint,\n"
28743 " va_list args);\n"
28748 #: ../src/guestfs-actions.pod:4992
28749 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28753 #: ../src/guestfs-actions.pod:4996
28754 msgid "guestfs_mount_9p_argv"
28758 #: ../src/guestfs-actions.pod:4998
28762 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28763 " const char *mounttag,\n"
28764 " const char *mountpoint,\n"
28765 " const struct guestfs_mount_9p_argv *optargs);\n"
28770 #: ../src/guestfs-actions.pod:5004
28771 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28775 #: ../src/guestfs-actions.pod:5008
28776 msgid "guestfs_mount_loop"
28780 #: ../src/guestfs-actions.pod:5010
28784 " guestfs_mount_loop (guestfs_h *g,\n"
28785 " const char *file,\n"
28786 " const char *mountpoint);\n"
28791 #: ../src/guestfs-actions.pod:5023
28792 msgid "guestfs_mount_options"
28796 #: ../src/guestfs-actions.pod:5025
28800 " guestfs_mount_options (guestfs_h *g,\n"
28801 " const char *options,\n"
28802 " const char *device,\n"
28803 " const char *mountpoint);\n"
28808 #: ../src/guestfs-actions.pod:5031
28810 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28811 "the mount options as for the L<mount(8)> I<-o> flag."
28815 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
28816 #: ../src/guestfs-actions.pod:5072
28817 msgid "(Added in 1.0.10)"
28821 #: ../src/guestfs-actions.pod:5043
28822 msgid "guestfs_mount_ro"
28826 #: ../src/guestfs-actions.pod:5045
28830 " guestfs_mount_ro (guestfs_h *g,\n"
28831 " const char *device,\n"
28832 " const char *mountpoint);\n"
28837 #: ../src/guestfs-actions.pod:5050
28839 "This is the same as the C<guestfs_mount> command, but it mounts the "
28840 "filesystem with the read-only (I<-o ro>) flag."
28844 #: ../src/guestfs-actions.pod:5057
28845 msgid "guestfs_mount_vfs"
28849 #: ../src/guestfs-actions.pod:5059
28853 " guestfs_mount_vfs (guestfs_h *g,\n"
28854 " const char *options,\n"
28855 " const char *vfstype,\n"
28856 " const char *device,\n"
28857 " const char *mountpoint);\n"
28862 #: ../src/guestfs-actions.pod:5066
28864 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28865 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28870 #: ../src/guestfs-actions.pod:5074
28871 msgid "guestfs_mountpoints"
28875 #: ../src/guestfs-actions.pod:5076
28879 " guestfs_mountpoints (guestfs_h *g);\n"
28884 #: ../src/guestfs-actions.pod:5079
28886 "This call is similar to C<guestfs_mounts>. That call returns a list of "
28887 "devices. This one returns a hash table (map) of device name to directory "
28888 "where the device is mounted."
28892 #: ../src/guestfs-actions.pod:5091
28893 msgid "guestfs_mounts"
28897 #: ../src/guestfs-actions.pod:5093
28901 " guestfs_mounts (guestfs_h *g);\n"
28906 #: ../src/guestfs-actions.pod:5101
28907 msgid "See also: C<guestfs_mountpoints>"
28911 #: ../src/guestfs-actions.pod:5109
28916 #: ../src/guestfs-actions.pod:5111
28920 " guestfs_mv (guestfs_h *g,\n"
28921 " const char *src,\n"
28922 " const char *dest);\n"
28927 #: ../src/guestfs-actions.pod:5123
28928 msgid "guestfs_ntfs_3g_probe"
28932 #: ../src/guestfs-actions.pod:5125
28936 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28938 " const char *device);\n"
28943 #: ../src/guestfs-actions.pod:5144
28944 msgid "(Added in 1.0.43)"
28948 #: ../src/guestfs-actions.pod:5146
28949 msgid "guestfs_ntfsresize"
28953 #: ../src/guestfs-actions.pod:5148
28957 " guestfs_ntfsresize (guestfs_h *g,\n"
28958 " const char *device);\n"
28963 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
28965 "I<This function is deprecated.> In new code, use the L</"
28966 "guestfs_ntfsresize_opts> call instead."
28970 #: ../src/guestfs-actions.pod:5176
28971 msgid "guestfs_ntfsresize_opts"
28975 #: ../src/guestfs-actions.pod:5178
28979 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28980 " const char *device,\n"
28986 #: ../src/guestfs-actions.pod:5188
28989 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28990 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28995 #: ../src/guestfs-actions.pod:5208
28997 "After the resize operation, the filesystem is always marked as requiring a "
28998 "consistency check (for safety). You have to boot into Windows to perform "
28999 "this check and clear this condition. If you I<don't> set the C<force> "
29000 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29001 "times on a single filesystem without booting into Windows between each "
29006 #: ../src/guestfs-actions.pod:5223
29007 msgid "guestfs_ntfsresize_opts_va"
29011 #: ../src/guestfs-actions.pod:5225
29015 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29016 " const char *device,\n"
29017 " va_list args);\n"
29022 #: ../src/guestfs-actions.pod:5230
29023 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29027 #: ../src/guestfs-actions.pod:5234
29028 msgid "guestfs_ntfsresize_opts_argv"
29032 #: ../src/guestfs-actions.pod:5236
29036 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29037 " const char *device,\n"
29038 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29043 #: ../src/guestfs-actions.pod:5241
29044 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29048 #: ../src/guestfs-actions.pod:5245
29049 msgid "guestfs_ntfsresize_size"
29053 #: ../src/guestfs-actions.pod:5247
29057 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29058 " const char *device,\n"
29059 " int64_t size);\n"
29064 #: ../src/guestfs-actions.pod:5259
29066 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29067 "to specify the new size (in bytes) explicitly."
29071 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
29072 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
29073 #: ../src/guestfs-actions.pod:7670
29074 msgid "(Added in 1.3.14)"
29078 #: ../src/guestfs-actions.pod:5266
29079 msgid "guestfs_part_add"
29083 #: ../src/guestfs-actions.pod:5268
29087 " guestfs_part_add (guestfs_h *g,\n"
29088 " const char *device,\n"
29089 " const char *prlogex,\n"
29090 " int64_t startsect,\n"
29091 " int64_t endsect);\n"
29096 #: ../src/guestfs-actions.pod:5275
29098 "This command adds a partition to C<device>. If there is no partition table "
29099 "on the device, call C<guestfs_part_init> first."
29103 #: ../src/guestfs-actions.pod:5287
29105 "Creating a partition which covers the whole disk is not so easy. Use "
29106 "C<guestfs_part_disk> to do that."
29110 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
29111 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
29112 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
29113 #: ../src/guestfs-actions.pod:5564
29114 msgid "(Added in 1.0.78)"
29118 #: ../src/guestfs-actions.pod:5294
29119 msgid "guestfs_part_del"
29123 #: ../src/guestfs-actions.pod:5296
29127 " guestfs_part_del (guestfs_h *g,\n"
29128 " const char *device,\n"
29134 #: ../src/guestfs-actions.pod:5311
29135 msgid "guestfs_part_disk"
29139 #: ../src/guestfs-actions.pod:5313
29143 " guestfs_part_disk (guestfs_h *g,\n"
29144 " const char *device,\n"
29145 " const char *parttype);\n"
29150 #: ../src/guestfs-actions.pod:5318
29152 "This command is simply a combination of C<guestfs_part_init> followed by "
29153 "C<guestfs_part_add> to create a single primary partition covering the whole "
29158 #: ../src/guestfs-actions.pod:5322
29160 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29161 "possible values are described in C<guestfs_part_init>."
29165 #: ../src/guestfs-actions.pod:5332
29166 msgid "guestfs_part_get_bootable"
29170 #: ../src/guestfs-actions.pod:5334
29174 " guestfs_part_get_bootable (guestfs_h *g,\n"
29175 " const char *device,\n"
29181 #: ../src/guestfs-actions.pod:5342
29182 msgid "See also C<guestfs_part_set_bootable>."
29186 #: ../src/guestfs-actions.pod:5348
29187 msgid "guestfs_part_get_mbr_id"
29191 #: ../src/guestfs-actions.pod:5350
29195 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29196 " const char *device,\n"
29202 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
29204 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
29205 "undefined results for other partition table types (see "
29206 "C<guestfs_part_get_parttype>)."
29210 #: ../src/guestfs-actions.pod:5366
29211 msgid "guestfs_part_get_parttype"
29215 #: ../src/guestfs-actions.pod:5368
29219 " guestfs_part_get_parttype (guestfs_h *g,\n"
29220 " const char *device);\n"
29225 #: ../src/guestfs-actions.pod:5375
29227 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29228 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
29229 "possible, although unusual. See C<guestfs_part_init> for a full list."
29233 #: ../src/guestfs-actions.pod:5385
29234 msgid "guestfs_part_init"
29238 #: ../src/guestfs-actions.pod:5387
29242 " guestfs_part_init (guestfs_h *g,\n"
29243 " const char *device,\n"
29244 " const char *parttype);\n"
29249 #: ../src/guestfs-actions.pod:5396
29251 "Initially there are no partitions. Following this, you should call "
29252 "C<guestfs_part_add> for each partition required."
29256 #: ../src/guestfs-actions.pod:5469
29257 msgid "guestfs_part_list"
29258 msgstr "guestfs_part_list"
29261 #: ../src/guestfs-actions.pod:5471
29264 " struct guestfs_partition_list *\n"
29265 " guestfs_part_list (guestfs_h *g,\n"
29266 " const char *device);\n"
29269 " struct guestfs_partition_list *\n"
29270 " guestfs_part_list (guestfs_h *g,\n"
29271 " const char *device);\n"
29275 #: ../src/guestfs-actions.pod:5488
29277 "Start of the partition I<in bytes>. To get sectors you have to divide by "
29278 "the device's sector size, see C<guestfs_blockdev_getss>."
29282 #: ../src/guestfs-actions.pod:5501
29284 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29285 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
29290 #: ../src/guestfs-actions.pod:5507
29291 msgid "guestfs_part_set_bootable"
29295 #: ../src/guestfs-actions.pod:5509
29299 " guestfs_part_set_bootable (guestfs_h *g,\n"
29300 " const char *device,\n"
29302 " int bootable);\n"
29307 #: ../src/guestfs-actions.pod:5526
29308 msgid "guestfs_part_set_mbr_id"
29312 #: ../src/guestfs-actions.pod:5528
29316 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29317 " const char *device,\n"
29324 #: ../src/guestfs-actions.pod:5548
29325 msgid "guestfs_part_set_name"
29329 #: ../src/guestfs-actions.pod:5550
29333 " guestfs_part_set_name (guestfs_h *g,\n"
29334 " const char *device,\n"
29336 " const char *name);\n"
29341 #: ../src/guestfs-actions.pod:5566
29342 msgid "guestfs_part_to_dev"
29346 #: ../src/guestfs-actions.pod:5568
29350 " guestfs_part_to_dev (guestfs_h *g,\n"
29351 " const char *partition);\n"
29356 #: ../src/guestfs-actions.pod:5576
29358 "The named partition must exist, for example as a string returned from "
29359 "C<guestfs_list_partitions>."
29363 #: ../src/guestfs-actions.pod:5584
29364 msgid "guestfs_ping_daemon"
29368 #: ../src/guestfs-actions.pod:5586
29372 " guestfs_ping_daemon (guestfs_h *g);\n"
29377 #: ../src/guestfs-actions.pod:5598
29378 msgid "guestfs_pread"
29382 #: ../src/guestfs-actions.pod:5600
29386 " guestfs_pread (guestfs_h *g,\n"
29387 " const char *path,\n"
29389 " int64_t offset,\n"
29390 " size_t *size_r);\n"
29395 #: ../src/guestfs-actions.pod:5613
29396 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29400 #: ../src/guestfs-actions.pod:5624
29401 msgid "guestfs_pread_device"
29405 #: ../src/guestfs-actions.pod:5626
29409 " guestfs_pread_device (guestfs_h *g,\n"
29410 " const char *device,\n"
29412 " int64_t offset,\n"
29413 " size_t *size_r);\n"
29418 #: ../src/guestfs-actions.pod:5639
29419 msgid "See also C<guestfs_pread>."
29423 #: ../src/guestfs-actions.pod:5648
29424 msgid "(Added in 1.5.21)"
29428 #: ../src/guestfs-actions.pod:5650
29429 msgid "guestfs_pvcreate"
29433 #: ../src/guestfs-actions.pod:5652
29437 " guestfs_pvcreate (guestfs_h *g,\n"
29438 " const char *device);\n"
29443 #: ../src/guestfs-actions.pod:5664
29444 msgid "guestfs_pvremove"
29448 #: ../src/guestfs-actions.pod:5666
29452 " guestfs_pvremove (guestfs_h *g,\n"
29453 " const char *device);\n"
29458 #: ../src/guestfs-actions.pod:5681
29459 msgid "guestfs_pvresize"
29463 #: ../src/guestfs-actions.pod:5683
29467 " guestfs_pvresize (guestfs_h *g,\n"
29468 " const char *device);\n"
29473 #: ../src/guestfs-actions.pod:5694
29474 msgid "guestfs_pvresize_size"
29478 #: ../src/guestfs-actions.pod:5696
29482 " guestfs_pvresize_size (guestfs_h *g,\n"
29483 " const char *device,\n"
29484 " int64_t size);\n"
29489 #: ../src/guestfs-actions.pod:5701
29491 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29492 "specify the new size (in bytes) explicitly."
29496 #: ../src/guestfs-actions.pod:5708
29497 msgid "guestfs_pvs"
29501 #: ../src/guestfs-actions.pod:5710
29505 " guestfs_pvs (guestfs_h *g);\n"
29510 #: ../src/guestfs-actions.pod:5719
29511 msgid "See also C<guestfs_pvs_full>."
29515 #: ../src/guestfs-actions.pod:5727
29516 msgid "guestfs_pvs_full"
29520 #: ../src/guestfs-actions.pod:5729
29523 " struct guestfs_lvm_pv_list *\n"
29524 " guestfs_pvs_full (guestfs_h *g);\n"
29529 #: ../src/guestfs-actions.pod:5735
29531 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29532 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29536 #: ../src/guestfs-actions.pod:5741
29537 msgid "guestfs_pvuuid"
29541 #: ../src/guestfs-actions.pod:5743
29545 " guestfs_pvuuid (guestfs_h *g,\n"
29546 " const char *device);\n"
29551 #: ../src/guestfs-actions.pod:5754
29552 msgid "guestfs_pwrite"
29556 #: ../src/guestfs-actions.pod:5756
29560 " guestfs_pwrite (guestfs_h *g,\n"
29561 " const char *path,\n"
29562 " const char *content,\n"
29563 " size_t content_size,\n"
29564 " int64_t offset);\n"
29569 #: ../src/guestfs-actions.pod:5772
29570 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29574 #: ../src/guestfs-actions.pod:5781
29575 msgid "guestfs_pwrite_device"
29579 #: ../src/guestfs-actions.pod:5783
29583 " guestfs_pwrite_device (guestfs_h *g,\n"
29584 " const char *device,\n"
29585 " const char *content,\n"
29586 " size_t content_size,\n"
29587 " int64_t offset);\n"
29592 #: ../src/guestfs-actions.pod:5798
29593 msgid "See also C<guestfs_pwrite>."
29597 #: ../src/guestfs-actions.pod:5805
29598 msgid "(Added in 1.5.20)"
29602 #: ../src/guestfs-actions.pod:5807
29603 msgid "guestfs_read_file"
29607 #: ../src/guestfs-actions.pod:5809
29611 " guestfs_read_file (guestfs_h *g,\n"
29612 " const char *path,\n"
29613 " size_t *size_r);\n"
29618 #: ../src/guestfs-actions.pod:5817
29620 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29621 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
29622 "function is limited in the total size of file that can be handled."
29626 #: ../src/guestfs-actions.pod:5829
29627 msgid "(Added in 1.0.63)"
29631 #: ../src/guestfs-actions.pod:5831
29632 msgid "guestfs_read_lines"
29636 #: ../src/guestfs-actions.pod:5833
29640 " guestfs_read_lines (guestfs_h *g,\n"
29641 " const char *path);\n"
29646 #: ../src/guestfs-actions.pod:5842
29648 "Note that this function cannot correctly handle binary files (specifically, "
29649 "files containing C<\\0> character which is treated as end of line). For "
29650 "those you need to use the C<guestfs_read_file> function which has a more "
29651 "complex interface."
29655 #: ../src/guestfs-actions.pod:5853
29656 msgid "guestfs_readdir"
29660 #: ../src/guestfs-actions.pod:5855
29663 " struct guestfs_dirent_list *\n"
29664 " guestfs_readdir (guestfs_h *g,\n"
29665 " const char *dir);\n"
29670 #: ../src/guestfs-actions.pod:5909
29672 "This function is primarily intended for use by programs. To get a simple "
29673 "list of names, use C<guestfs_ls>. To get a printable directory for human "
29674 "consumption, use C<guestfs_ll>."
29678 #: ../src/guestfs-actions.pod:5913
29680 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29681 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
29685 #: ../src/guestfs-actions.pod:5919
29686 msgid "guestfs_readlink"
29690 #: ../src/guestfs-actions.pod:5921
29694 " guestfs_readlink (guestfs_h *g,\n"
29695 " const char *path);\n"
29700 #: ../src/guestfs-actions.pod:5932
29701 msgid "guestfs_readlinklist"
29705 #: ../src/guestfs-actions.pod:5934
29709 " guestfs_readlinklist (guestfs_h *g,\n"
29710 " const char *path,\n"
29711 " char *const *names);\n"
29716 #: ../src/guestfs-actions.pod:5967
29717 msgid "guestfs_realpath"
29721 #: ../src/guestfs-actions.pod:5969
29725 " guestfs_realpath (guestfs_h *g,\n"
29726 " const char *path);\n"
29731 #: ../src/guestfs-actions.pod:5981
29732 msgid "guestfs_removexattr"
29736 #: ../src/guestfs-actions.pod:5983
29740 " guestfs_removexattr (guestfs_h *g,\n"
29741 " const char *xattr,\n"
29742 " const char *path);\n"
29747 #: ../src/guestfs-actions.pod:5991
29748 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29752 #: ../src/guestfs-actions.pod:5997
29753 msgid "guestfs_resize2fs"
29757 #: ../src/guestfs-actions.pod:5999
29761 " guestfs_resize2fs (guestfs_h *g,\n"
29762 " const char *device);\n"
29767 #: ../src/guestfs-actions.pod:6006
29769 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29770 "C<device> before calling this command. For unknown reasons C<resize2fs> "
29771 "sometimes gives an error about this and sometimes not. In any case, it is "
29772 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29776 #: ../src/guestfs-actions.pod:6016
29777 msgid "guestfs_resize2fs_M"
29781 #: ../src/guestfs-actions.pod:6018
29785 " guestfs_resize2fs_M (guestfs_h *g,\n"
29786 " const char *device);\n"
29791 #: ../src/guestfs-actions.pod:6022
29793 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29794 "resized to its minimum size. This works like the I<-M> option to the "
29795 "C<resize2fs> command."
29799 #: ../src/guestfs-actions.pod:6026
29801 "To get the resulting size of the filesystem you should call "
29802 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
29803 "These two numbers, multiplied together, give the resulting size of the "
29804 "minimal filesystem in bytes."
29808 #: ../src/guestfs-actions.pod:6035
29809 msgid "guestfs_resize2fs_size"
29813 #: ../src/guestfs-actions.pod:6037
29817 " guestfs_resize2fs_size (guestfs_h *g,\n"
29818 " const char *device,\n"
29819 " int64_t size);\n"
29824 #: ../src/guestfs-actions.pod:6042
29826 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29827 "to specify the new size (in bytes) explicitly."
29831 #: ../src/guestfs-actions.pod:6049
29836 #: ../src/guestfs-actions.pod:6051
29840 " guestfs_rm (guestfs_h *g,\n"
29841 " const char *path);\n"
29846 #: ../src/guestfs-actions.pod:6061
29847 msgid "guestfs_rm_rf"
29851 #: ../src/guestfs-actions.pod:6063
29855 " guestfs_rm_rf (guestfs_h *g,\n"
29856 " const char *path);\n"
29861 #: ../src/guestfs-actions.pod:6075
29862 msgid "guestfs_rmdir"
29866 #: ../src/guestfs-actions.pod:6077
29870 " guestfs_rmdir (guestfs_h *g,\n"
29871 " const char *path);\n"
29876 #: ../src/guestfs-actions.pod:6087
29877 msgid "guestfs_rmmountpoint"
29881 #: ../src/guestfs-actions.pod:6089
29885 " guestfs_rmmountpoint (guestfs_h *g,\n"
29886 " const char *exemptpath);\n"
29891 #: ../src/guestfs-actions.pod:6093
29893 "This calls removes a mountpoint that was previously created with "
29894 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
29898 #: ../src/guestfs-actions.pod:6101
29899 msgid "guestfs_scrub_device"
29903 #: ../src/guestfs-actions.pod:6103
29907 " guestfs_scrub_device (guestfs_h *g,\n"
29908 " const char *device);\n"
29913 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
29914 #: ../src/guestfs-actions.pod:6155
29915 msgid "(Added in 1.0.52)"
29919 #: ../src/guestfs-actions.pod:6120
29920 msgid "guestfs_scrub_file"
29924 #: ../src/guestfs-actions.pod:6122
29928 " guestfs_scrub_file (guestfs_h *g,\n"
29929 " const char *file);\n"
29934 #: ../src/guestfs-actions.pod:6138
29935 msgid "guestfs_scrub_freespace"
29939 #: ../src/guestfs-actions.pod:6140
29943 " guestfs_scrub_freespace (guestfs_h *g,\n"
29944 " const char *dir);\n"
29949 #: ../src/guestfs-actions.pod:6144
29951 "This command creates the directory C<dir> and then fills it with files until "
29952 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29953 "and deletes them. The intention is to scrub any free space on the partition "
29954 "containing C<dir>."
29958 #: ../src/guestfs-actions.pod:6157
29959 msgid "guestfs_set_append"
29963 #: ../src/guestfs-actions.pod:6159
29967 " guestfs_set_append (guestfs_h *g,\n"
29968 " const char *append);\n"
29973 #: ../src/guestfs-actions.pod:6176
29974 msgid "guestfs_set_attach_method"
29978 #: ../src/guestfs-actions.pod:6178
29982 " guestfs_set_attach_method (guestfs_h *g,\n"
29983 " const char *attachmethod);\n"
29988 #: ../src/guestfs-actions.pod:6206
29989 msgid "guestfs_set_autosync"
29993 #: ../src/guestfs-actions.pod:6208
29997 " guestfs_set_autosync (guestfs_h *g,\n"
29998 " int autosync);\n"
30003 #: ../src/guestfs-actions.pod:6224
30004 msgid "guestfs_set_direct"
30008 #: ../src/guestfs-actions.pod:6226
30012 " guestfs_set_direct (guestfs_h *g,\n"
30018 #: ../src/guestfs-actions.pod:6234
30020 "One consequence of this is that log messages aren't caught by the library "
30021 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30026 #: ../src/guestfs-actions.pod:6247
30027 msgid "guestfs_set_e2label"
30031 #: ../src/guestfs-actions.pod:6249
30035 " guestfs_set_e2label (guestfs_h *g,\n"
30036 " const char *device,\n"
30037 " const char *label);\n"
30042 #: ../src/guestfs-actions.pod:6258
30044 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30045 "the existing label on a filesystem."
30049 #: ../src/guestfs-actions.pod:6265
30050 msgid "guestfs_set_e2uuid"
30054 #: ../src/guestfs-actions.pod:6267
30058 " guestfs_set_e2uuid (guestfs_h *g,\n"
30059 " const char *device,\n"
30060 " const char *uuid);\n"
30065 #: ../src/guestfs-actions.pod:6277
30067 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30068 "the existing UUID of a filesystem."
30072 #: ../src/guestfs-actions.pod:6284
30073 msgid "guestfs_set_memsize"
30077 #: ../src/guestfs-actions.pod:6286
30081 " guestfs_set_memsize (guestfs_h *g,\n"
30087 #: ../src/guestfs-actions.pod:6290
30089 "This sets the memory size in megabytes allocated to the qemu subprocess. "
30090 "This only has any effect if called before C<guestfs_launch>."
30094 #: ../src/guestfs-actions.pod:6305
30095 msgid "guestfs_set_network"
30099 #: ../src/guestfs-actions.pod:6307
30103 " guestfs_set_network (guestfs_h *g,\n"
30109 #: ../src/guestfs-actions.pod:6317
30111 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30116 #: ../src/guestfs-actions.pod:6324
30117 msgid "guestfs_set_path"
30121 #: ../src/guestfs-actions.pod:6326
30125 " guestfs_set_path (guestfs_h *g,\n"
30126 " const char *searchpath);\n"
30131 #: ../src/guestfs-actions.pod:6341
30132 msgid "guestfs_set_pgroup"
30136 #: ../src/guestfs-actions.pod:6343
30140 " guestfs_set_pgroup (guestfs_h *g,\n"
30146 #: ../src/guestfs-actions.pod:6360
30147 msgid "guestfs_set_qemu"
30151 #: ../src/guestfs-actions.pod:6362
30155 " guestfs_set_qemu (guestfs_h *g,\n"
30156 " const char *qemu);\n"
30161 #: ../src/guestfs-actions.pod:6388
30162 msgid "guestfs_set_recovery_proc"
30166 #: ../src/guestfs-actions.pod:6390
30170 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30171 " int recoveryproc);\n"
30176 #: ../src/guestfs-actions.pod:6394
30178 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30179 "not create a recovery process. The purpose of the recovery process is to "
30180 "stop runaway qemu processes in the case where the main program aborts "
30185 #: ../src/guestfs-actions.pod:6399
30187 "This only has any effect if called before C<guestfs_launch>, and the default "
30192 #: ../src/guestfs-actions.pod:6412
30193 msgid "guestfs_set_selinux"
30197 #: ../src/guestfs-actions.pod:6414
30201 " guestfs_set_selinux (guestfs_h *g,\n"
30207 #: ../src/guestfs-actions.pod:6431
30208 msgid "guestfs_set_trace"
30212 #: ../src/guestfs-actions.pod:6433
30216 " guestfs_set_trace (guestfs_h *g,\n"
30222 #: ../src/guestfs-actions.pod:6447
30224 "Trace messages are normally sent to C<stderr>, unless you register a "
30225 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30229 #: ../src/guestfs-actions.pod:6455
30230 msgid "guestfs_set_verbose"
30234 #: ../src/guestfs-actions.pod:6457
30238 " guestfs_set_verbose (guestfs_h *g,\n"
30244 #: ../src/guestfs-actions.pod:6466
30246 "Verbose messages are normally sent to C<stderr>, unless you register a "
30247 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30251 #: ../src/guestfs-actions.pod:6474
30252 msgid "guestfs_setcon"
30256 #: ../src/guestfs-actions.pod:6476
30260 " guestfs_setcon (guestfs_h *g,\n"
30261 " const char *context);\n"
30266 #: ../src/guestfs-actions.pod:6489
30267 msgid "guestfs_setxattr"
30271 #: ../src/guestfs-actions.pod:6491
30275 " guestfs_setxattr (guestfs_h *g,\n"
30276 " const char *xattr,\n"
30277 " const char *val,\n"
30279 " const char *path);\n"
30284 #: ../src/guestfs-actions.pod:6502
30285 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30289 #: ../src/guestfs-actions.pod:6508
30290 msgid "guestfs_sfdisk"
30294 #: ../src/guestfs-actions.pod:6510
30298 " guestfs_sfdisk (guestfs_h *g,\n"
30299 " const char *device,\n"
30303 " char *const *lines);\n"
30308 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562
30309 #: ../src/guestfs-actions.pod:6596
30311 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30316 #: ../src/guestfs-actions.pod:6545
30318 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30322 #: ../src/guestfs-actions.pod:6555
30323 msgid "guestfs_sfdiskM"
30327 #: ../src/guestfs-actions.pod:6557
30331 " guestfs_sfdiskM (guestfs_h *g,\n"
30332 " const char *device,\n"
30333 " char *const *lines);\n"
30338 #: ../src/guestfs-actions.pod:6569
30340 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30341 "partition sizes are specified in megabytes only (rounded to the nearest "
30342 "cylinder) and you don't need to specify the cyls, heads and sectors "
30343 "parameters which were rarely if ever used anyway."
30347 #: ../src/guestfs-actions.pod:6575
30349 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30350 "C<guestfs_part_disk>"
30354 #: ../src/guestfs-actions.pod:6585
30355 msgid "guestfs_sfdisk_N"
30359 #: ../src/guestfs-actions.pod:6587
30363 " guestfs_sfdisk_N (guestfs_h *g,\n"
30364 " const char *device,\n"
30369 " const char *line);\n"
30374 #: ../src/guestfs-actions.pod:6606
30376 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
30377 "for the cyls/heads/sectors parameters."
30381 #: ../src/guestfs-actions.pod:6609
30382 msgid "See also: C<guestfs_part_add>"
30386 #: ../src/guestfs-actions.pod:6618
30387 msgid "guestfs_sfdisk_disk_geometry"
30391 #: ../src/guestfs-actions.pod:6620
30395 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30396 " const char *device);\n"
30401 #: ../src/guestfs-actions.pod:6624
30403 "This displays the disk geometry of C<device> read from the partition table. "
30404 "Especially in the case where the underlying block device has been resized, "
30405 "this can be different from the kernel's idea of the geometry (see "
30406 "C<guestfs_sfdisk_kernel_geometry>)."
30410 #: ../src/guestfs-actions.pod:6637
30411 msgid "guestfs_sfdisk_kernel_geometry"
30415 #: ../src/guestfs-actions.pod:6639
30419 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30420 " const char *device);\n"
30425 #: ../src/guestfs-actions.pod:6653
30426 msgid "guestfs_sfdisk_l"
30430 #: ../src/guestfs-actions.pod:6655
30434 " guestfs_sfdisk_l (guestfs_h *g,\n"
30435 " const char *device);\n"
30440 #: ../src/guestfs-actions.pod:6659
30442 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30447 #: ../src/guestfs-actions.pod:6670
30448 msgid "See also: C<guestfs_part_list>"
30452 #: ../src/guestfs-actions.pod:6677
30457 #: ../src/guestfs-actions.pod:6679
30461 " guestfs_sh (guestfs_h *g,\n"
30462 " const char *command);\n"
30467 #: ../src/guestfs-actions.pod:6686
30468 msgid "This is like C<guestfs_command>, but passes the command to:"
30472 #: ../src/guestfs-actions.pod:6694
30473 msgid "All the provisos about C<guestfs_command> apply to this call."
30477 #: ../src/guestfs-actions.pod:6701
30478 msgid "guestfs_sh_lines"
30482 #: ../src/guestfs-actions.pod:6703
30486 " guestfs_sh_lines (guestfs_h *g,\n"
30487 " const char *command);\n"
30492 #: ../src/guestfs-actions.pod:6707
30494 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30499 #: ../src/guestfs-actions.pod:6710
30500 msgid "See also: C<guestfs_command_lines>"
30504 #: ../src/guestfs-actions.pod:6718
30505 msgid "guestfs_sleep"
30509 #: ../src/guestfs-actions.pod:6720
30513 " guestfs_sleep (guestfs_h *g,\n"
30519 #: ../src/guestfs-actions.pod:6728
30520 msgid "(Added in 1.0.41)"
30524 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
30525 msgid "guestfs_stat"
30529 #: ../src/guestfs-actions.pod:6732
30532 " struct guestfs_stat *\n"
30533 " guestfs_stat (guestfs_h *g,\n"
30534 " const char *path);\n"
30539 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
30540 msgid "guestfs_statvfs"
30544 #: ../src/guestfs-actions.pod:6748
30547 " struct guestfs_statvfs *\n"
30548 " guestfs_statvfs (guestfs_h *g,\n"
30549 " const char *path);\n"
30554 #: ../src/guestfs-actions.pod:6758
30556 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30557 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
30561 #: ../src/guestfs-actions.pod:6764
30562 msgid "guestfs_strings"
30566 #: ../src/guestfs-actions.pod:6766
30570 " guestfs_strings (guestfs_h *g,\n"
30571 " const char *path);\n"
30576 #: ../src/guestfs-actions.pod:6782
30577 msgid "guestfs_strings_e"
30581 #: ../src/guestfs-actions.pod:6784
30585 " guestfs_strings_e (guestfs_h *g,\n"
30586 " const char *encoding,\n"
30587 " const char *path);\n"
30592 #: ../src/guestfs-actions.pod:6789
30594 "This is like the C<guestfs_strings> command, but allows you to specify the "
30595 "encoding of strings that are looked for in the source file C<path>."
30599 #: ../src/guestfs-actions.pod:6799
30601 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30602 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30606 #: ../src/guestfs-actions.pod:6837
30607 msgid "guestfs_swapoff_device"
30611 #: ../src/guestfs-actions.pod:6839
30615 " guestfs_swapoff_device (guestfs_h *g,\n"
30616 " const char *device);\n"
30621 #: ../src/guestfs-actions.pod:6843
30623 "This command disables the libguestfs appliance swap device or partition "
30624 "named C<device>. See C<guestfs_swapon_device>."
30628 #: ../src/guestfs-actions.pod:6851
30629 msgid "guestfs_swapoff_file"
30633 #: ../src/guestfs-actions.pod:6853
30637 " guestfs_swapoff_file (guestfs_h *g,\n"
30638 " const char *file);\n"
30643 #: ../src/guestfs-actions.pod:6863
30644 msgid "guestfs_swapoff_label"
30648 #: ../src/guestfs-actions.pod:6865
30652 " guestfs_swapoff_label (guestfs_h *g,\n"
30653 " const char *label);\n"
30658 #: ../src/guestfs-actions.pod:6876
30659 msgid "guestfs_swapoff_uuid"
30663 #: ../src/guestfs-actions.pod:6878
30667 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30668 " const char *uuid);\n"
30673 #: ../src/guestfs-actions.pod:6889
30674 msgid "guestfs_swapon_device"
30678 #: ../src/guestfs-actions.pod:6891
30682 " guestfs_swapon_device (guestfs_h *g,\n"
30683 " const char *device);\n"
30688 #: ../src/guestfs-actions.pod:6895
30690 "This command enables the libguestfs appliance to use the swap device or "
30691 "partition named C<device>. The increased memory is made available for all "
30692 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30696 #: ../src/guestfs-actions.pod:6911
30697 msgid "guestfs_swapon_file"
30701 #: ../src/guestfs-actions.pod:6913
30705 " guestfs_swapon_file (guestfs_h *g,\n"
30706 " const char *file);\n"
30711 #: ../src/guestfs-actions.pod:6917
30713 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
30718 #: ../src/guestfs-actions.pod:6924
30719 msgid "guestfs_swapon_label"
30723 #: ../src/guestfs-actions.pod:6926
30727 " guestfs_swapon_label (guestfs_h *g,\n"
30728 " const char *label);\n"
30733 #: ../src/guestfs-actions.pod:6930
30735 "This command enables swap to a labeled swap partition. See "
30736 "C<guestfs_swapon_device> for other notes."
30740 #: ../src/guestfs-actions.pod:6937
30741 msgid "guestfs_swapon_uuid"
30745 #: ../src/guestfs-actions.pod:6939
30749 " guestfs_swapon_uuid (guestfs_h *g,\n"
30750 " const char *uuid);\n"
30755 #: ../src/guestfs-actions.pod:6943
30757 "This command enables swap to a swap partition with the given UUID. See "
30758 "C<guestfs_swapon_device> for other notes."
30762 #: ../src/guestfs-actions.pod:6950
30763 msgid "guestfs_sync"
30767 #: ../src/guestfs-actions.pod:6952
30771 " guestfs_sync (guestfs_h *g);\n"
30776 #: ../src/guestfs-actions.pod:6965
30777 msgid "guestfs_tail"
30781 #: ../src/guestfs-actions.pod:6967
30785 " guestfs_tail (guestfs_h *g,\n"
30786 " const char *path);\n"
30791 #: ../src/guestfs-actions.pod:6983
30792 msgid "guestfs_tail_n"
30796 #: ../src/guestfs-actions.pod:6985
30800 " guestfs_tail_n (guestfs_h *g,\n"
30802 " const char *path);\n"
30807 #: ../src/guestfs-actions.pod:7007
30808 msgid "guestfs_tar_in"
30812 #: ../src/guestfs-actions.pod:7009
30816 " guestfs_tar_in (guestfs_h *g,\n"
30817 " const char *tarfile,\n"
30818 " const char *directory);\n"
30823 #: ../src/guestfs-actions.pod:7017
30825 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30829 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
30830 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
30831 msgid "(Added in 1.0.3)"
30835 #: ../src/guestfs-actions.pod:7024
30836 msgid "guestfs_tar_out"
30840 #: ../src/guestfs-actions.pod:7026
30844 " guestfs_tar_out (guestfs_h *g,\n"
30845 " const char *directory,\n"
30846 " const char *tarfile);\n"
30851 #: ../src/guestfs-actions.pod:7034
30853 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30854 "C<guestfs_txz_out>."
30858 #: ../src/guestfs-actions.pod:7041
30859 msgid "guestfs_tgz_in"
30863 #: ../src/guestfs-actions.pod:7043
30867 " guestfs_tgz_in (guestfs_h *g,\n"
30868 " const char *tarball,\n"
30869 " const char *directory);\n"
30874 #: ../src/guestfs-actions.pod:7051
30875 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30879 #: ../src/guestfs-actions.pod:7057
30880 msgid "guestfs_tgz_out"
30884 #: ../src/guestfs-actions.pod:7059
30888 " guestfs_tgz_out (guestfs_h *g,\n"
30889 " const char *directory,\n"
30890 " const char *tarball);\n"
30895 #: ../src/guestfs-actions.pod:7067
30896 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30900 #: ../src/guestfs-actions.pod:7073
30901 msgid "guestfs_touch"
30905 #: ../src/guestfs-actions.pod:7075
30909 " guestfs_touch (guestfs_h *g,\n"
30910 " const char *path);\n"
30915 #: ../src/guestfs-actions.pod:7090
30916 msgid "guestfs_truncate"
30920 #: ../src/guestfs-actions.pod:7092
30924 " guestfs_truncate (guestfs_h *g,\n"
30925 " const char *path);\n"
30930 #: ../src/guestfs-actions.pod:7103
30931 msgid "guestfs_truncate_size"
30935 #: ../src/guestfs-actions.pod:7105
30939 " guestfs_truncate_size (guestfs_h *g,\n"
30940 " const char *path,\n"
30941 " int64_t size);\n"
30946 #: ../src/guestfs-actions.pod:7113
30948 "If the current file size is less than C<size> then the file is extended to "
30949 "the required size with zero bytes. This creates a sparse file (ie. disk "
30950 "blocks are not allocated for the file until you write to it). To create a "
30951 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30955 #: ../src/guestfs-actions.pod:7123
30956 msgid "guestfs_tune2fs_l"
30960 #: ../src/guestfs-actions.pod:7125
30964 " guestfs_tune2fs_l (guestfs_h *g,\n"
30965 " const char *device);\n"
30970 #: ../src/guestfs-actions.pod:7145
30971 msgid "guestfs_txz_in"
30975 #: ../src/guestfs-actions.pod:7147
30979 " guestfs_txz_in (guestfs_h *g,\n"
30980 " const char *tarball,\n"
30981 " const char *directory);\n"
30986 #: ../src/guestfs-actions.pod:7159
30987 msgid "guestfs_txz_out"
30991 #: ../src/guestfs-actions.pod:7161
30995 " guestfs_txz_out (guestfs_h *g,\n"
30996 " const char *directory,\n"
30997 " const char *tarball);\n"
31002 #: ../src/guestfs-actions.pod:7173
31003 msgid "guestfs_umask"
31007 #: ../src/guestfs-actions.pod:7175
31011 " guestfs_umask (guestfs_h *g,\n"
31017 #: ../src/guestfs-actions.pod:7191
31019 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31020 "C<guestfs_mkdir>."
31024 #: ../src/guestfs-actions.pod:7200
31025 msgid "guestfs_umount"
31029 #: ../src/guestfs-actions.pod:7202
31033 " guestfs_umount (guestfs_h *g,\n"
31034 " const char *pathordevice);\n"
31039 #: ../src/guestfs-actions.pod:7214
31040 msgid "guestfs_umount_all"
31044 #: ../src/guestfs-actions.pod:7216
31048 " guestfs_umount_all (guestfs_h *g);\n"
31053 #: ../src/guestfs-actions.pod:7227
31054 msgid "guestfs_upload"
31058 #: ../src/guestfs-actions.pod:7229
31062 " guestfs_upload (guestfs_h *g,\n"
31063 " const char *filename,\n"
31064 " const char *remotefilename);\n"
31069 #: ../src/guestfs-actions.pod:7239
31070 msgid "See also C<guestfs_download>."
31074 #: ../src/guestfs-actions.pod:7250
31075 msgid "guestfs_upload_offset"
31079 #: ../src/guestfs-actions.pod:7252
31083 " guestfs_upload_offset (guestfs_h *g,\n"
31084 " const char *filename,\n"
31085 " const char *remotefilename,\n"
31086 " int64_t offset);\n"
31091 #: ../src/guestfs-actions.pod:7268
31093 "Note that there is no limit on the amount of data that can be uploaded with "
31094 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31095 "full amount unless an error occurs."
31099 #: ../src/guestfs-actions.pod:7273
31100 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31104 #: ../src/guestfs-actions.pod:7284
31105 msgid "guestfs_utimens"
31109 #: ../src/guestfs-actions.pod:7286
31113 " guestfs_utimens (guestfs_h *g,\n"
31114 " const char *path,\n"
31115 " int64_t atsecs,\n"
31116 " int64_t atnsecs,\n"
31117 " int64_t mtsecs,\n"
31118 " int64_t mtnsecs);\n"
31123 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
31124 msgid "guestfs_version"
31128 #: ../src/guestfs-actions.pod:7317
31131 " struct guestfs_version *\n"
31132 " guestfs_version (guestfs_h *g);\n"
31137 #: ../src/guestfs-actions.pod:7345
31139 "I<Note:> Don't use this call to test for availability of features. In "
31140 "enterprise distributions we backport features from later versions into "
31141 "earlier versions, making this an unreliable way to test for features. Use "
31142 "C<guestfs_available> instead."
31146 #: ../src/guestfs-actions.pod:7351
31148 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31149 "error. I<The caller must call C<guestfs_free_version> after use>."
31153 #: ../src/guestfs-actions.pod:7355
31154 msgid "(Added in 1.0.58)"
31158 #: ../src/guestfs-actions.pod:7357
31159 msgid "guestfs_vfs_label"
31163 #: ../src/guestfs-actions.pod:7359
31167 " guestfs_vfs_label (guestfs_h *g,\n"
31168 " const char *device);\n"
31173 #: ../src/guestfs-actions.pod:7368
31174 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31178 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
31179 msgid "(Added in 1.3.18)"
31183 #: ../src/guestfs-actions.pod:7375
31184 msgid "guestfs_vfs_type"
31188 #: ../src/guestfs-actions.pod:7377
31192 " guestfs_vfs_type (guestfs_h *g,\n"
31193 " const char *device);\n"
31198 #: ../src/guestfs-actions.pod:7394
31199 msgid "guestfs_vfs_uuid"
31203 #: ../src/guestfs-actions.pod:7396
31207 " guestfs_vfs_uuid (guestfs_h *g,\n"
31208 " const char *device);\n"
31213 #: ../src/guestfs-actions.pod:7405
31214 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31218 #: ../src/guestfs-actions.pod:7412
31219 msgid "guestfs_vg_activate"
31223 #: ../src/guestfs-actions.pod:7414
31227 " guestfs_vg_activate (guestfs_h *g,\n"
31229 " char *const *volgroups);\n"
31234 #: ../src/guestfs-actions.pod:7431
31235 msgid "guestfs_vg_activate_all"
31239 #: ../src/guestfs-actions.pod:7433
31243 " guestfs_vg_activate_all (guestfs_h *g,\n"
31244 " int activate);\n"
31249 #: ../src/guestfs-actions.pod:7446
31250 msgid "guestfs_vgcreate"
31254 #: ../src/guestfs-actions.pod:7448
31258 " guestfs_vgcreate (guestfs_h *g,\n"
31259 " const char *volgroup,\n"
31260 " char *const *physvols);\n"
31265 #: ../src/guestfs-actions.pod:7460
31266 msgid "guestfs_vglvuuids"
31270 #: ../src/guestfs-actions.pod:7462
31274 " guestfs_vglvuuids (guestfs_h *g,\n"
31275 " const char *vgname);\n"
31280 #: ../src/guestfs-actions.pod:7469
31282 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31283 "associate logical volumes and volume groups."
31287 #: ../src/guestfs-actions.pod:7472
31288 msgid "See also C<guestfs_vgpvuuids>."
31292 #: ../src/guestfs-actions.pod:7480
31293 msgid "guestfs_vgpvuuids"
31297 #: ../src/guestfs-actions.pod:7482
31301 " guestfs_vgpvuuids (guestfs_h *g,\n"
31302 " const char *vgname);\n"
31307 #: ../src/guestfs-actions.pod:7489
31309 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31310 "associate physical volumes and volume groups."
31314 #: ../src/guestfs-actions.pod:7492
31315 msgid "See also C<guestfs_vglvuuids>."
31319 #: ../src/guestfs-actions.pod:7500
31320 msgid "guestfs_vgremove"
31324 #: ../src/guestfs-actions.pod:7502
31328 " guestfs_vgremove (guestfs_h *g,\n"
31329 " const char *vgname);\n"
31334 #: ../src/guestfs-actions.pod:7515
31335 msgid "guestfs_vgrename"
31339 #: ../src/guestfs-actions.pod:7517
31343 " guestfs_vgrename (guestfs_h *g,\n"
31344 " const char *volgroup,\n"
31345 " const char *newvolgroup);\n"
31350 #: ../src/guestfs-actions.pod:7528
31351 msgid "guestfs_vgs"
31355 #: ../src/guestfs-actions.pod:7530
31359 " guestfs_vgs (guestfs_h *g);\n"
31364 #: ../src/guestfs-actions.pod:7539
31365 msgid "See also C<guestfs_vgs_full>."
31369 #: ../src/guestfs-actions.pod:7547
31370 msgid "guestfs_vgs_full"
31374 #: ../src/guestfs-actions.pod:7549
31377 " struct guestfs_lvm_vg_list *\n"
31378 " guestfs_vgs_full (guestfs_h *g);\n"
31383 #: ../src/guestfs-actions.pod:7555
31385 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31386 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31390 #: ../src/guestfs-actions.pod:7561
31391 msgid "guestfs_vgscan"
31395 #: ../src/guestfs-actions.pod:7563
31399 " guestfs_vgscan (guestfs_h *g);\n"
31404 #: ../src/guestfs-actions.pod:7573
31405 msgid "guestfs_vguuid"
31409 #: ../src/guestfs-actions.pod:7575
31413 " guestfs_vguuid (guestfs_h *g,\n"
31414 " const char *vgname);\n"
31419 #: ../src/guestfs-actions.pod:7586
31420 msgid "guestfs_wait_ready"
31424 #: ../src/guestfs-actions.pod:7588
31428 " guestfs_wait_ready (guestfs_h *g);\n"
31433 #: ../src/guestfs-actions.pod:7591
31435 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31440 #: ../src/guestfs-actions.pod:7598
31441 msgid "This function is a no op."
31445 #: ../src/guestfs-actions.pod:7600
31447 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31448 "calling C<guestfs_launch> to wait for the launch to complete. However this "
31449 "is no longer necessary because C<guestfs_launch> now does the waiting."
31453 #: ../src/guestfs-actions.pod:7605
31455 "If you see any calls to this function in code then you can just remove them, "
31456 "unless you want to retain compatibility with older versions of the API."
31460 #: ../src/guestfs-actions.pod:7613
31461 msgid "guestfs_wc_c"
31465 #: ../src/guestfs-actions.pod:7615
31469 " guestfs_wc_c (guestfs_h *g,\n"
31470 " const char *path);\n"
31475 #: ../src/guestfs-actions.pod:7626
31476 msgid "guestfs_wc_l"
31480 #: ../src/guestfs-actions.pod:7628
31484 " guestfs_wc_l (guestfs_h *g,\n"
31485 " const char *path);\n"
31490 #: ../src/guestfs-actions.pod:7639
31491 msgid "guestfs_wc_w"
31495 #: ../src/guestfs-actions.pod:7641
31499 " guestfs_wc_w (guestfs_h *g,\n"
31500 " const char *path);\n"
31505 #: ../src/guestfs-actions.pod:7652
31506 msgid "guestfs_write"
31510 #: ../src/guestfs-actions.pod:7654
31514 " guestfs_write (guestfs_h *g,\n"
31515 " const char *path,\n"
31516 " const char *content,\n"
31517 " size_t content_size);\n"
31522 #: ../src/guestfs-actions.pod:7663
31523 msgid "See also C<guestfs_write_append>."
31527 #: ../src/guestfs-actions.pod:7672
31528 msgid "guestfs_write_append"
31532 #: ../src/guestfs-actions.pod:7674
31536 " guestfs_write_append (guestfs_h *g,\n"
31537 " const char *path,\n"
31538 " const char *content,\n"
31539 " size_t content_size);\n"
31544 #: ../src/guestfs-actions.pod:7683
31545 msgid "See also C<guestfs_write>."
31549 #: ../src/guestfs-actions.pod:7692
31550 msgid "guestfs_write_file"
31551 msgstr "guestfs_write_file"
31554 #: ../src/guestfs-actions.pod:7694
31558 " guestfs_write_file (guestfs_h *g,\n"
31559 " const char *path,\n"
31560 " const char *content,\n"
31565 " guestfs_write_file (guestfs_h *g,\n"
31566 " const char *path,\n"
31567 " const char *content,\n"
31572 #: ../src/guestfs-actions.pod:7700
31574 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31579 #: ../src/guestfs-actions.pod:7725
31580 msgid "guestfs_zegrep"
31581 msgstr "guestfs_zegrep"
31584 #: ../src/guestfs-actions.pod:7727
31588 " guestfs_zegrep (guestfs_h *g,\n"
31589 " const char *regex,\n"
31590 " const char *path);\n"
31594 " guestfs_zegrep (guestfs_h *g,\n"
31595 " const char *regex,\n"
31596 " const char *path);\n"
31600 #: ../src/guestfs-actions.pod:7744
31601 msgid "guestfs_zegrepi"
31602 msgstr "guestfs_zegrepi"
31605 #: ../src/guestfs-actions.pod:7746
31609 " guestfs_zegrepi (guestfs_h *g,\n"
31610 " const char *regex,\n"
31611 " const char *path);\n"
31615 " guestfs_zegrepi (guestfs_h *g,\n"
31616 " const char *regex,\n"
31617 " const char *path);\n"
31621 #: ../src/guestfs-actions.pod:7763
31622 msgid "guestfs_zero"
31623 msgstr "guestfs_zero"
31626 #: ../src/guestfs-actions.pod:7765
31630 " guestfs_zero (guestfs_h *g,\n"
31631 " const char *device);\n"
31635 " guestfs_zero (guestfs_h *g,\n"
31636 " const char *device);\n"
31640 #: ../src/guestfs-actions.pod:7779
31642 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31643 "C<guestfs_is_zero_device>"
31647 #: ../src/guestfs-actions.pod:7791
31648 msgid "guestfs_zero_device"
31649 msgstr "guestfs_zero_device"
31652 #: ../src/guestfs-actions.pod:7793
31656 " guestfs_zero_device (guestfs_h *g,\n"
31657 " const char *device);\n"
31661 " guestfs_zero_device (guestfs_h *g,\n"
31662 " const char *device);\n"
31666 #: ../src/guestfs-actions.pod:7797
31668 "This command writes zeroes over the entire C<device>. Compare with "
31669 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31673 #: ../src/guestfs-actions.pod:7815
31674 msgid "(Added in 1.3.1)"
31675 msgstr "(Додано у 1.3.1)"
31678 #: ../src/guestfs-actions.pod:7817
31679 msgid "guestfs_zerofree"
31680 msgstr "guestfs_zerofree"
31683 #: ../src/guestfs-actions.pod:7819
31687 " guestfs_zerofree (guestfs_h *g,\n"
31688 " const char *device);\n"
31692 " guestfs_zerofree (guestfs_h *g,\n"
31693 " const char *device);\n"
31697 #: ../src/guestfs-actions.pod:7838
31698 msgid "guestfs_zfgrep"
31699 msgstr "guestfs_zfgrep"
31702 #: ../src/guestfs-actions.pod:7840
31706 " guestfs_zfgrep (guestfs_h *g,\n"
31707 " const char *pattern,\n"
31708 " const char *path);\n"
31712 " guestfs_zfgrep (guestfs_h *g,\n"
31713 " const char *pattern,\n"
31714 " const char *path);\n"
31718 #: ../src/guestfs-actions.pod:7857
31719 msgid "guestfs_zfgrepi"
31720 msgstr "guestfs_zfgrepi"
31723 #: ../src/guestfs-actions.pod:7859
31727 " guestfs_zfgrepi (guestfs_h *g,\n"
31728 " const char *pattern,\n"
31729 " const char *path);\n"
31733 " guestfs_zfgrepi (guestfs_h *g,\n"
31734 " const char *pattern,\n"
31735 " const char *path);\n"
31739 #: ../src/guestfs-actions.pod:7876
31740 msgid "guestfs_zfile"
31741 msgstr "guestfs_zfile"
31744 #: ../src/guestfs-actions.pod:7878
31748 " guestfs_zfile (guestfs_h *g,\n"
31749 " const char *meth,\n"
31750 " const char *path);\n"
31754 " guestfs_zfile (guestfs_h *g,\n"
31755 " const char *meth,\n"
31756 " const char *path);\n"
31760 #: ../src/guestfs-actions.pod:7883
31762 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31767 #: ../src/guestfs-actions.pod:7895
31769 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31774 #: ../src/guestfs-actions.pod:7903
31775 msgid "guestfs_zgrep"
31776 msgstr "guestfs_zgrep"
31779 #: ../src/guestfs-actions.pod:7905
31783 " guestfs_zgrep (guestfs_h *g,\n"
31784 " const char *regex,\n"
31785 " const char *path);\n"
31789 " guestfs_zgrep (guestfs_h *g,\n"
31790 " const char *regex,\n"
31791 " const char *path);\n"
31795 #: ../src/guestfs-actions.pod:7922
31796 msgid "guestfs_zgrepi"
31797 msgstr "guestfs_zgrepi"
31800 #: ../src/guestfs-actions.pod:7924
31804 " guestfs_zgrepi (guestfs_h *g,\n"
31805 " const char *regex,\n"
31806 " const char *path);\n"
31810 " guestfs_zgrepi (guestfs_h *g,\n"
31811 " const char *regex,\n"
31812 " const char *path);\n"
31816 #: ../src/guestfs-availability.pod:3
31821 #: ../src/guestfs-availability.pod:5
31823 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31824 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31825 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31826 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31827 "L</guestfs_aug_save> L</guestfs_aug_set>"
31831 #: ../src/guestfs-availability.pod:21
31836 #: ../src/guestfs-availability.pod:23
31837 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31841 #: ../src/guestfs-availability.pod:26
31843 msgstr "B<inotify>"
31846 #: ../src/guestfs-availability.pod:28
31848 "The following functions: L</guestfs_inotify_add_watch> L</"
31849 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31850 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31854 #: ../src/guestfs-availability.pod:36
31855 msgid "B<linuxfsuuid>"
31856 msgstr "B<linuxfsuuid>"
31859 #: ../src/guestfs-availability.pod:38
31861 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31862 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31866 #: ../src/guestfs-availability.pod:45
31867 msgid "B<linuxmodules>"
31868 msgstr "B<linuxmodules>"
31871 #: ../src/guestfs-availability.pod:47
31872 msgid "The following functions: L</guestfs_modprobe>"
31876 #: ../src/guestfs-availability.pod:50
31877 msgid "B<linuxxattrs>"
31878 msgstr "B<linuxxattrs>"
31881 #: ../src/guestfs-availability.pod:52
31883 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31884 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31885 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31886 "guestfs_setxattr>"
31890 #: ../src/guestfs-availability.pod:63
31895 #: ../src/guestfs-availability.pod:65
31897 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31898 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31899 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31903 #: ../src/guestfs-availability.pod:74
31908 #: ../src/guestfs-availability.pod:76
31910 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31911 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31912 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31913 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31914 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31915 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31916 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31920 #: ../src/guestfs-availability.pod:99
31925 #: ../src/guestfs-availability.pod:101
31927 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31928 "guestfs_mknod_b> L</guestfs_mknod_c>"
31932 #: ../src/guestfs-availability.pod:107
31937 #: ../src/guestfs-availability.pod:109
31938 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31942 #: ../src/guestfs-availability.pod:112
31943 msgid "B<ntfsprogs>"
31944 msgstr "B<ntfsprogs>"
31947 #: ../src/guestfs-availability.pod:114
31949 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31950 "L</guestfs_ntfsresize_size>"
31954 #: ../src/guestfs-availability.pod:119
31955 msgid "B<realpath>"
31956 msgstr "B<realpath>"
31959 #: ../src/guestfs-availability.pod:121
31960 msgid "The following functions: L</guestfs_realpath>"
31964 #: ../src/guestfs-availability.pod:124
31969 #: ../src/guestfs-availability.pod:126
31971 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31972 "guestfs_scrub_freespace>"
31976 #: ../src/guestfs-availability.pod:131
31978 msgstr "B<selinux>"
31981 #: ../src/guestfs-availability.pod:133
31982 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31986 #: ../src/guestfs-availability.pod:137
31991 #: ../src/guestfs-availability.pod:139
31992 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31996 #: ../src/guestfs-availability.pod:143
31997 msgid "B<zerofree>"
31998 msgstr "B<zerofree>"
32001 #: ../src/guestfs-availability.pod:145
32002 msgid "The following functions: L</guestfs_zerofree>"
32006 #: ../src/guestfs-structs.pod:1
32007 msgid "guestfs_int_bool"
32011 #: ../src/guestfs-structs.pod:3
32014 " struct guestfs_int_bool {\n"
32022 #: ../src/guestfs-structs.pod:8
32025 " struct guestfs_int_bool_list {\n"
32026 " uint32_t len; /* Number of elements in list. */\n"
32027 " struct guestfs_int_bool *val; /* Elements. */\n"
32033 #: ../src/guestfs-structs.pod:13
32036 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32037 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32042 #: ../src/guestfs-structs.pod:16
32043 msgid "guestfs_lvm_pv"
32047 #: ../src/guestfs-structs.pod:18
32050 " struct guestfs_lvm_pv {\n"
32051 " char *pv_name;\n"
32052 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32053 " char pv_uuid[32];\n"
32055 " uint64_t pv_size;\n"
32056 " uint64_t dev_size;\n"
32057 " uint64_t pv_free;\n"
32058 " uint64_t pv_used;\n"
32059 " char *pv_attr;\n"
32060 " int64_t pv_pe_count;\n"
32061 " int64_t pv_pe_alloc_count;\n"
32062 " char *pv_tags;\n"
32063 " uint64_t pe_start;\n"
32064 " int64_t pv_mda_count;\n"
32065 " uint64_t pv_mda_free;\n"
32071 #: ../src/guestfs-structs.pod:36
32074 " struct guestfs_lvm_pv_list {\n"
32075 " uint32_t len; /* Number of elements in list. */\n"
32076 " struct guestfs_lvm_pv *val; /* Elements. */\n"
32082 #: ../src/guestfs-structs.pod:41
32085 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32086 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32091 #: ../src/guestfs-structs.pod:44
32092 msgid "guestfs_lvm_vg"
32096 #: ../src/guestfs-structs.pod:46
32099 " struct guestfs_lvm_vg {\n"
32100 " char *vg_name;\n"
32101 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32102 " char vg_uuid[32];\n"
32104 " char *vg_attr;\n"
32105 " uint64_t vg_size;\n"
32106 " uint64_t vg_free;\n"
32107 " char *vg_sysid;\n"
32108 " uint64_t vg_extent_size;\n"
32109 " int64_t vg_extent_count;\n"
32110 " int64_t vg_free_count;\n"
32111 " int64_t max_lv;\n"
32112 " int64_t max_pv;\n"
32113 " int64_t pv_count;\n"
32114 " int64_t lv_count;\n"
32115 " int64_t snap_count;\n"
32116 " int64_t vg_seqno;\n"
32117 " char *vg_tags;\n"
32118 " int64_t vg_mda_count;\n"
32119 " uint64_t vg_mda_free;\n"
32125 #: ../src/guestfs-structs.pod:69
32128 " struct guestfs_lvm_vg_list {\n"
32129 " uint32_t len; /* Number of elements in list. */\n"
32130 " struct guestfs_lvm_vg *val; /* Elements. */\n"
32136 #: ../src/guestfs-structs.pod:74
32139 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32140 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32145 #: ../src/guestfs-structs.pod:77
32146 msgid "guestfs_lvm_lv"
32150 #: ../src/guestfs-structs.pod:79
32153 " struct guestfs_lvm_lv {\n"
32154 " char *lv_name;\n"
32155 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32156 " char lv_uuid[32];\n"
32157 " char *lv_attr;\n"
32158 " int64_t lv_major;\n"
32159 " int64_t lv_minor;\n"
32160 " int64_t lv_kernel_major;\n"
32161 " int64_t lv_kernel_minor;\n"
32162 " uint64_t lv_size;\n"
32163 " int64_t seg_count;\n"
32165 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32166 " float snap_percent;\n"
32167 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32168 " float copy_percent;\n"
32169 " char *move_pv;\n"
32170 " char *lv_tags;\n"
32171 " char *mirror_log;\n"
32172 " char *modules;\n"
32178 #: ../src/guestfs-structs.pod:101
32181 " struct guestfs_lvm_lv_list {\n"
32182 " uint32_t len; /* Number of elements in list. */\n"
32183 " struct guestfs_lvm_lv *val; /* Elements. */\n"
32189 #: ../src/guestfs-structs.pod:106
32192 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32193 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32198 #: ../src/guestfs-structs.pod:111
32201 " struct guestfs_stat {\n"
32205 " int64_t nlink;\n"
32210 " int64_t blksize;\n"
32211 " int64_t blocks;\n"
32212 " int64_t atime;\n"
32213 " int64_t mtime;\n"
32214 " int64_t ctime;\n"
32220 #: ../src/guestfs-structs.pod:127
32223 " struct guestfs_stat_list {\n"
32224 " uint32_t len; /* Number of elements in list. */\n"
32225 " struct guestfs_stat *val; /* Elements. */\n"
32231 #: ../src/guestfs-structs.pod:132
32234 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32235 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32240 #: ../src/guestfs-structs.pod:137
32243 " struct guestfs_statvfs {\n"
32244 " int64_t bsize;\n"
32245 " int64_t frsize;\n"
32246 " int64_t blocks;\n"
32247 " int64_t bfree;\n"
32248 " int64_t bavail;\n"
32249 " int64_t files;\n"
32250 " int64_t ffree;\n"
32251 " int64_t favail;\n"
32254 " int64_t namemax;\n"
32260 #: ../src/guestfs-structs.pod:151
32263 " struct guestfs_statvfs_list {\n"
32264 " uint32_t len; /* Number of elements in list. */\n"
32265 " struct guestfs_statvfs *val; /* Elements. */\n"
32271 #: ../src/guestfs-structs.pod:156
32274 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32275 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32280 #: ../src/guestfs-structs.pod:159
32281 msgid "guestfs_dirent"
32285 #: ../src/guestfs-structs.pod:161
32288 " struct guestfs_dirent {\n"
32297 #: ../src/guestfs-structs.pod:167
32300 " struct guestfs_dirent_list {\n"
32301 " uint32_t len; /* Number of elements in list. */\n"
32302 " struct guestfs_dirent *val; /* Elements. */\n"
32308 #: ../src/guestfs-structs.pod:172
32311 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32312 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32317 #: ../src/guestfs-structs.pod:177
32320 " struct guestfs_version {\n"
32321 " int64_t major;\n"
32322 " int64_t minor;\n"
32323 " int64_t release;\n"
32330 #: ../src/guestfs-structs.pod:184
32333 " struct guestfs_version_list {\n"
32334 " uint32_t len; /* Number of elements in list. */\n"
32335 " struct guestfs_version *val; /* Elements. */\n"
32341 #: ../src/guestfs-structs.pod:189
32344 " void guestfs_free_version (struct guestfs_free_version *);\n"
32345 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32350 #: ../src/guestfs-structs.pod:192
32351 msgid "guestfs_xattr"
32355 #: ../src/guestfs-structs.pod:194
32358 " struct guestfs_xattr {\n"
32359 " char *attrname;\n"
32360 " /* The next two fields describe a byte array. */\n"
32361 " uint32_t attrval_len;\n"
32362 " char *attrval;\n"
32368 #: ../src/guestfs-structs.pod:201
32371 " struct guestfs_xattr_list {\n"
32372 " uint32_t len; /* Number of elements in list. */\n"
32373 " struct guestfs_xattr *val; /* Elements. */\n"
32379 #: ../src/guestfs-structs.pod:206
32382 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32383 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32388 #: ../src/guestfs-structs.pod:209
32389 msgid "guestfs_inotify_event"
32393 #: ../src/guestfs-structs.pod:211
32396 " struct guestfs_inotify_event {\n"
32397 " int64_t in_wd;\n"
32398 " uint32_t in_mask;\n"
32399 " uint32_t in_cookie;\n"
32400 " char *in_name;\n"
32406 #: ../src/guestfs-structs.pod:218
32409 " struct guestfs_inotify_event_list {\n"
32410 " uint32_t len; /* Number of elements in list. */\n"
32411 " struct guestfs_inotify_event *val; /* Elements. */\n"
32417 #: ../src/guestfs-structs.pod:223
32420 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32421 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32426 #: ../src/guestfs-structs.pod:226
32427 msgid "guestfs_partition"
32431 #: ../src/guestfs-structs.pod:228
32434 " struct guestfs_partition {\n"
32435 " int32_t part_num;\n"
32436 " uint64_t part_start;\n"
32437 " uint64_t part_end;\n"
32438 " uint64_t part_size;\n"
32444 #: ../src/guestfs-structs.pod:235
32447 " struct guestfs_partition_list {\n"
32448 " uint32_t len; /* Number of elements in list. */\n"
32449 " struct guestfs_partition *val; /* Elements. */\n"
32455 #: ../src/guestfs-structs.pod:240
32458 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32459 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32464 #: ../src/guestfs-structs.pod:243
32465 msgid "guestfs_application"
32469 #: ../src/guestfs-structs.pod:245
32472 " struct guestfs_application {\n"
32473 " char *app_name;\n"
32474 " char *app_display_name;\n"
32475 " int32_t app_epoch;\n"
32476 " char *app_version;\n"
32477 " char *app_release;\n"
32478 " char *app_install_path;\n"
32479 " char *app_trans_path;\n"
32480 " char *app_publisher;\n"
32481 " char *app_url;\n"
32482 " char *app_source_package;\n"
32483 " char *app_summary;\n"
32484 " char *app_description;\n"
32490 #: ../src/guestfs-structs.pod:260
32493 " struct guestfs_application_list {\n"
32494 " uint32_t len; /* Number of elements in list. */\n"
32495 " struct guestfs_application *val; /* Elements. */\n"
32501 #: ../src/guestfs-structs.pod:265
32504 " void guestfs_free_application (struct guestfs_free_application *);\n"
32505 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32510 #: ../src/guestfs.pod:5
32511 msgid "guestfs - Library for accessing and modifying virtual machine images"
32513 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32517 #: ../src/guestfs.pod:11
32520 " guestfs_h *g = guestfs_create ();\n"
32521 " guestfs_add_drive (g, \"guest.img\");\n"
32522 " guestfs_launch (g);\n"
32523 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32524 " guestfs_touch (g, \"/hello\");\n"
32525 " guestfs_umount (g, \"/\");\n"
32526 " guestfs_close (g);\n"
32529 " guestfs_h *g = guestfs_create ();\n"
32530 " guestfs_add_drive (g, \"guest.img\");\n"
32531 " guestfs_launch (g);\n"
32532 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32533 " guestfs_touch (g, \"/hello\");\n"
32534 " guestfs_umount (g, \"/\");\n"
32535 " guestfs_close (g);\n"
32539 #: ../src/guestfs.pod:25
32541 "Libguestfs is a library for accessing and modifying guest disk images. "
32542 "Amongst the things this is good for: making batch configuration changes to "
32543 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32544 "between virtualization systems (see also: virt-p2v), performing partial "
32545 "backups, performing partial guest clones, cloning guests and changing "
32546 "registry/UUID/hostname info, and much else besides."
32550 #: ../src/guestfs.pod:33
32552 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32553 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32554 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32559 #: ../src/guestfs.pod:38
32561 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32562 "what filesystem is in each LV, etc.). It can also run commands in the "
32563 "context of the guest. Also you can access filesystems over FUSE."
32567 #: ../src/guestfs.pod:43
32569 "Libguestfs is a library that can be linked with C and C++ management "
32570 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32571 "PHP, Haskell or C#). You can also use it from shell scripts or the command "
32576 #: ../src/guestfs.pod:48
32578 "You don't need to be root to use libguestfs, although obviously you do need "
32579 "enough permissions to access the disk images."
32583 #: ../src/guestfs.pod:51
32585 "Libguestfs is a large API because it can do many things. For a gentle "
32586 "introduction, please read the L</API OVERVIEW> section next."
32590 #: ../src/guestfs.pod:54
32592 "There are also some example programs in the L<guestfs-examples(3)> manual "
32597 #: ../src/guestfs.pod:57
32598 msgid "API OVERVIEW"
32602 #: ../src/guestfs.pod:59
32604 "This section provides a gentler overview of the libguestfs API. We also try "
32605 "to group API calls together, where that may not be obvious from reading "
32606 "about the individual calls in the main section of this manual."
32610 #: ../src/guestfs.pod:64
32615 #: ../src/guestfs.pod:66
32617 "Before you can use libguestfs calls, you have to create a handle. Then you "
32618 "must add at least one disk image to the handle, followed by launching the "
32619 "handle, then performing whatever operations you want, and finally closing "
32620 "the handle. By convention we use the single letter C<g> for the name of the "
32621 "handle variable, although of course you can use any name you want."
32625 #: ../src/guestfs.pod:73
32626 msgid "The general structure of all libguestfs-using programs looks like this:"
32630 #: ../src/guestfs.pod:76
32633 " guestfs_h *g = guestfs_create ();\n"
32636 " guestfs_h *g = guestfs_create ();\n"
32640 #: ../src/guestfs.pod:78
32643 " /* Call guestfs_add_drive additional times if there are\n"
32644 " * multiple disk images.\n"
32646 " guestfs_add_drive (g, \"guest.img\");\n"
32651 #: ../src/guestfs.pod:83
32654 " /* Most manipulation calls won't work until you've launched\n"
32655 " * the handle 'g'. You have to do this _after_ adding drives\n"
32656 " * and _before_ other commands.\n"
32658 " guestfs_launch (g);\n"
32663 #: ../src/guestfs.pod:89
32666 " /* Now you can examine what partitions, LVs etc are available.\n"
32668 " char **partitions = guestfs_list_partitions (g);\n"
32669 " char **logvols = guestfs_lvs (g);\n"
32672 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32674 " char **partitions = guestfs_list_partitions (g);\n"
32675 " char **logvols = guestfs_lvs (g);\n"
32679 #: ../src/guestfs.pod:94
32682 " /* To access a filesystem in the image, you must mount it.\n"
32684 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32687 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32689 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32693 #: ../src/guestfs.pod:98
32696 " /* Now you can perform filesystem actions on the guest\n"
32699 " guestfs_touch (g, \"/hello\");\n"
32704 #: ../src/guestfs.pod:103
32707 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
32708 " * it is done automatically when you close the handle. See\n"
32709 " * discussion of autosync in this page.\n"
32711 " guestfs_sync (g);\n"
32716 #: ../src/guestfs.pod:109
32719 " /* Close the handle 'g'. */\n"
32720 " guestfs_close (g);\n"
32723 " /* Закрити дескриптор 'g'. */\n"
32724 " guestfs_close (g);\n"
32728 #: ../src/guestfs.pod:112
32730 "The code above doesn't include any error checking. In real code you should "
32731 "check return values carefully for errors. In general all functions that "
32732 "return integers return C<-1> on error, and all functions that return "
32733 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
32734 "how to handle errors, and consult the documentation for each function call "
32735 "below to see precisely how they return error indications. See L<guestfs-"
32736 "examples(3)> for fully worked examples."
32740 #: ../src/guestfs.pod:121
32741 msgid "DISK IMAGES"
32742 msgstr "ОБРАЗИ ДИСКІВ"
32745 #: ../src/guestfs.pod:123
32747 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32748 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32749 "actual block device, or simply an empty file of zeroes that you have created "
32750 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
32755 #: ../src/guestfs.pod:129
32757 "The call you should use in modern code for adding drives is L</"
32758 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
32759 "specifying that the format is raw, do:"
32763 #: ../src/guestfs.pod:133
32766 " guestfs_add_drive_opts (g, filename,\n"
32767 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32771 " guestfs_add_drive_opts (g, filename,\n"
32772 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32777 #: ../src/guestfs.pod:137
32778 msgid "You can add a disk read-only using:"
32779 msgstr "Ви можете додати диск у режимі лише читання:"
32782 #: ../src/guestfs.pod:139
32785 " guestfs_add_drive_opts (g, filename,\n"
32786 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32787 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32791 " guestfs_add_drive_opts (g, filename,\n"
32792 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32793 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32798 #: ../src/guestfs.pod:144
32800 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
32801 "libguestfs won't modify the file."
32805 #: ../src/guestfs.pod:147
32807 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32808 "by a virtual machine. Adding it read-write will almost certainly cause disk "
32809 "corruption, but adding it read-only is safe."
32813 #: ../src/guestfs.pod:151
32815 "You must add at least one disk image, and you may add multiple disk images. "
32816 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32817 "first one you added), C</dev/sdb> (for the second one you added), etc."
32821 #: ../src/guestfs.pod:156
32823 "Once L</guestfs_launch> has been called you cannot add any more images. You "
32824 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32825 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
32829 #: ../src/guestfs.pod:161
32831 msgstr "МОНТУВАННЯ"
32834 #: ../src/guestfs.pod:163
32836 "Before you can read or write files, create directories and so on in a disk "
32837 "image that contains filesystems, you have to mount those filesystems using "
32838 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
32839 "a disk image contains (for example) one partition with a filesystem on that "
32840 "partition, then you can mount it directly:"
32844 #: ../src/guestfs.pod:170
32847 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32850 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32854 #: ../src/guestfs.pod:172
32856 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32857 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
32858 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
32859 "that these are libguestfs virtual devices, and are nothing to do with host "
32864 #: ../src/guestfs.pod:178
32866 "If you are given a disk image and you don't know what it contains then you "
32867 "have to find out. Libguestfs can do that too: use L</"
32868 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32869 "LVs, and either try mounting each to see what is mountable, or else examine "
32870 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
32871 "filesystems, use L</guestfs_list_filesystems>."
32875 #: ../src/guestfs.pod:186
32877 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32878 "L</INSPECTION> below). But you might find it easier to look at higher level "
32879 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32883 #: ../src/guestfs.pod:191
32885 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
32886 "several other variations of the C<guestfs_mount_*> call."
32890 #: ../src/guestfs.pod:194
32891 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32892 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32895 #: ../src/guestfs.pod:196
32897 "The majority of the libguestfs API consists of fairly low-level calls for "
32898 "accessing and modifying the files, directories, symlinks etc on mounted "
32899 "filesystems. There are over a hundred such calls which you can find listed "
32900 "in detail below in this man page, and we don't even pretend to cover them "
32901 "all in this overview."
32905 #: ../src/guestfs.pod:202
32907 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32910 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32911 "точкою монтування."
32914 #: ../src/guestfs.pod:205
32916 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32917 "the file called C<\"etc/passwd\"> then you could do:"
32919 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32920 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32924 #: ../src/guestfs.pod:208
32927 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32930 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32934 #: ../src/guestfs.pod:210
32936 "This would return C<data> as a newly allocated buffer containing the full "
32937 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32938 "or C<NULL> if there was an error."
32942 #: ../src/guestfs.pod:214
32944 "As another example, to create a top-level directory on that filesystem "
32945 "called C<\"var\"> you would do:"
32949 #: ../src/guestfs.pod:217
32952 " guestfs_mkdir (g, \"/var\");\n"
32955 " guestfs_mkdir (g, \"/var\");\n"
32959 #: ../src/guestfs.pod:219
32960 msgid "To create a symlink you could do:"
32961 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32964 #: ../src/guestfs.pod:221
32967 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32968 " \"/etc/rc3.d/S30portmap\");\n"
32971 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32972 " \"/etc/rc3.d/S30portmap\");\n"
32976 #: ../src/guestfs.pod:224
32978 "Libguestfs will reject attempts to use relative paths and there is no "
32979 "concept of a current working directory."
32983 #: ../src/guestfs.pod:227
32985 "Libguestfs can return errors in many situations: for example if the "
32986 "filesystem isn't writable, or if a file or directory that you requested "
32987 "doesn't exist. If you are using the C API (documented here) you have to "
32988 "check for those error conditions after each call. (Other language bindings "
32989 "turn these errors into exceptions)."
32993 #: ../src/guestfs.pod:233
32995 "File writes are affected by the per-handle umask, set by calling L</"
32996 "guestfs_umask> and defaulting to 022. See L</UMASK>."
33000 #: ../src/guestfs.pod:236
33001 msgid "PARTITIONING"
33002 msgstr "ПОДІЛ НА РОЗДІЛИ"
33005 #: ../src/guestfs.pod:238
33007 "Libguestfs contains API calls to read, create and modify partition tables on "
33012 #: ../src/guestfs.pod:241
33014 "In the common case where you want to create a single partition covering the "
33015 "whole disk, you should use the L</guestfs_part_disk> call:"
33019 #: ../src/guestfs.pod:245
33022 " const char *parttype = \"mbr\";\n"
33023 " if (disk_is_larger_than_2TB)\n"
33024 " parttype = \"gpt\";\n"
33025 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33028 " const char *parttype = \"mbr\";\n"
33029 " if (disk_is_larger_than_2TB)\n"
33030 " parttype = \"gpt\";\n"
33031 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33035 #: ../src/guestfs.pod:250
33037 "Obviously this effectively wipes anything that was on that disk image before."
33041 #: ../src/guestfs.pod:253
33046 #: ../src/guestfs.pod:255
33048 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33049 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
33050 "you familiarize yourself with the concepts of physical volumes, volume "
33051 "groups and logical volumes."
33055 #: ../src/guestfs.pod:260
33057 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33058 "tldp.org/HOWTO/LVM-HOWTO/>."
33062 #: ../src/guestfs.pod:263
33063 msgid "DOWNLOADING"
33064 msgstr "ОТРИМАННЯ ДАНИХ"
33067 #: ../src/guestfs.pod:265
33069 "Use L</guestfs_cat> to download small, text only files. This call is "
33070 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33071 "NUL (C<\\0>) characters. However the API is very simple to use."
33075 #: ../src/guestfs.pod:269
33077 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33078 "bit data, since it returns a (pointer, size) pair. However it is still "
33079 "limited to \"small\" files, less than 2 MB."
33083 #: ../src/guestfs.pod:273
33085 "L</guestfs_download> can be used to download any file, with no limits on "
33086 "content or size (even files larger than 4 GB)."
33090 #: ../src/guestfs.pod:276
33092 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33096 #: ../src/guestfs.pod:279
33098 msgstr "ВИВАНТАЖЕННЯ"
33101 #: ../src/guestfs.pod:281
33103 "It's often the case that you want to write a file or files to the disk image."
33107 #: ../src/guestfs.pod:284
33109 "To write a small file with fixed content, use L</guestfs_write>. To create "
33110 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33111 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
33112 "of other functions for creating test files, for example L</guestfs_fill> and "
33113 "L</guestfs_fill_pattern>."
33117 #: ../src/guestfs.pod:290
33119 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
33120 "file content or size (even files larger than 4 GB)."
33124 #: ../src/guestfs.pod:293
33126 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33130 #: ../src/guestfs.pod:295
33132 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33133 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33134 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
33135 "in a predictable way (eg. adding it last after all other drives) then you "
33136 "can get the device name from L</guestfs_list_devices> and mount it directly "
33137 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
33138 "portable between kernel versions, and they don't support labels or UUIDs. "
33139 "If you want to pre-build an image or you need to mount it using a label or "
33140 "UUID, use an ISO image instead."
33144 #: ../src/guestfs.pod:306
33146 msgstr "КОПІЮВАННЯ"
33149 #: ../src/guestfs.pod:308
33151 "There are various different commands for copying between files and devices "
33152 "and in and out of the guest filesystem. These are summarised in the table "
33157 #: ../src/guestfs.pod:314
33158 msgid "B<file> to B<file>"
33159 msgstr "B<файл> у B<файл>"
33162 #: ../src/guestfs.pod:316
33164 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33165 "directories recursively."
33169 #: ../src/guestfs.pod:319
33170 msgid "B<file or device> to B<file or device>"
33171 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33174 #: ../src/guestfs.pod:321
33176 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33177 "devices in the guest."
33181 #: ../src/guestfs.pod:324
33182 msgid "Example: duplicate the contents of an LV:"
33186 #: ../src/guestfs.pod:326
33189 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33192 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33196 #: ../src/guestfs.pod:328
33198 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33199 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
33200 "guestfs_copy_size>."
33204 #: ../src/guestfs.pod:332
33205 msgid "B<file on the host> to B<file or device>"
33209 #: ../src/guestfs.pod:334
33210 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
33214 #: ../src/guestfs.pod:336
33215 msgid "B<file or device> to B<file on the host>"
33219 #: ../src/guestfs.pod:338
33220 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
33224 #: ../src/guestfs.pod:342
33225 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33229 #: ../src/guestfs.pod:344
33231 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33232 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33233 "appears you can only upload and download to files. However many Un*x-like "
33234 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33235 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33236 "and arbitrary file descriptor N."
33240 #: ../src/guestfs.pod:352
33241 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33245 #: ../src/guestfs.pod:355
33248 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33251 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33255 #: ../src/guestfs.pod:357
33256 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33260 #: ../src/guestfs.pod:359
33263 " char devfd[64];\n"
33264 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33265 " guestfs_tar_out (g, \"/\", devfd);\n"
33268 " char devfd[64];\n"
33269 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33270 " guestfs_tar_out (g, \"/\", devfd);\n"
33274 #: ../src/guestfs.pod:363
33275 msgid "LISTING FILES"
33276 msgstr "СПИСКИ ФАЙЛІВ"
33279 #: ../src/guestfs.pod:365
33281 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33282 "L<guestfish(1)>-equivalent command C<ll>)."
33286 #: ../src/guestfs.pod:368
33288 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33289 "programs, as a flat list of strings."
33293 #: ../src/guestfs.pod:371
33295 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33296 "directory, plus additional information about each one. It is more "
33297 "equivalent to using the L<readdir(3)> call on a local filesystem."
33301 #: ../src/guestfs.pod:375
33303 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33307 #: ../src/guestfs.pod:378
33308 msgid "RUNNING COMMANDS"
33309 msgstr "ВИКОНАННЯ КОМАНД"
33312 #: ../src/guestfs.pod:380
33314 "Although libguestfs is primarily an API for manipulating files inside guest "
33315 "images, we also provide some limited facilities for running commands inside "
33320 #: ../src/guestfs.pod:384
33321 msgid "There are many limitations to this:"
33325 #: ../src/guestfs.pod:390
33327 "The kernel version that the command runs under will be different from what "
33332 #: ../src/guestfs.pod:395
33334 "If the command needs to communicate with daemons, then most likely they "
33335 "won't be running."
33339 #: ../src/guestfs.pod:400
33340 msgid "The command will be running in limited memory."
33344 #: ../src/guestfs.pod:404
33346 "The network may not be available unless you enable it (see L</"
33347 "guestfs_set_network>)."
33351 #: ../src/guestfs.pod:409
33352 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33356 #: ../src/guestfs.pod:413
33358 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33362 #: ../src/guestfs.pod:418
33364 "For SELinux guests, you may need to enable SELinux and load policy first. "
33365 "See L</SELINUX> in this manpage."
33369 #: ../src/guestfs.pod:423
33371 "I<Security:> It is not safe to run commands from untrusted, possibly "
33372 "malicious guests. These commands may attempt to exploit your program by "
33373 "sending unexpected output. They could also try to exploit the Linux kernel "
33374 "or qemu provided by the libguestfs appliance. They could use the network "
33375 "provided by the libguestfs appliance to bypass ordinary network partitions "
33376 "and firewalls. They could use the elevated privileges or different SELinux "
33377 "context of your program to their advantage."
33381 #: ../src/guestfs.pod:432
33383 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33384 "(a script which runs when the guest next boots normally), and to have this "
33385 "script run the commands you want in the normal context of the running guest, "
33386 "network security and so on. For information about other security issues, "
33387 "see L</SECURITY>."
33391 #: ../src/guestfs.pod:440
33393 "The two main API calls to run commands are L</guestfs_command> and L</"
33394 "guestfs_sh> (there are also variations)."
33398 #: ../src/guestfs.pod:443
33400 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33401 "shell globs, redirections, etc will work."
33405 #: ../src/guestfs.pod:446
33406 msgid "CONFIGURATION FILES"
33407 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33410 #: ../src/guestfs.pod:448
33412 "To read and write configuration files in Linux guest filesystems, we "
33413 "strongly recommend using Augeas. For example, Augeas understands how to "
33414 "read and write, say, a Linux shadow password file or X.org configuration "
33415 "file, and so avoids you having to write that code."
33419 #: ../src/guestfs.pod:453
33421 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
33422 "document Augeas itself here because there is excellent documentation on the "
33423 "L<http://augeas.net/> website."
33427 #: ../src/guestfs.pod:457
33429 "If you don't want to use Augeas (you fool!) then try calling L</"
33430 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33435 #: ../src/guestfs.pod:461
33440 #: ../src/guestfs.pod:463
33442 "We support SELinux guests. To ensure that labeling happens correctly in "
33443 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33447 #: ../src/guestfs.pod:471
33448 msgid "Before launching, do:"
33452 #: ../src/guestfs.pod:473
33455 " guestfs_set_selinux (g, 1);\n"
33458 " guestfs_set_selinux (g, 1);\n"
33462 #: ../src/guestfs.pod:477
33464 "After mounting the guest's filesystem(s), load the policy. This is best "
33465 "done by running the L<load_policy(8)> command in the guest itself:"
33469 #: ../src/guestfs.pod:481
33472 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33475 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33479 #: ../src/guestfs.pod:483
33481 "(Older versions of C<load_policy> require you to specify the name of the "
33486 #: ../src/guestfs.pod:488
33488 "Optionally, set the security context for the API. The correct security "
33489 "context to use can only be known by inspecting the guest. As an example:"
33493 #: ../src/guestfs.pod:492
33496 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33499 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33503 #: ../src/guestfs.pod:496
33504 msgid "This will work for running commands and editing existing files."
33508 #: ../src/guestfs.pod:498
33510 "When new files are created, you may need to label them explicitly, for "
33511 "example by running the external command C<restorecon pathname>."
33515 #: ../src/guestfs.pod:502
33520 #: ../src/guestfs.pod:504
33522 "Certain calls are affected by the current file mode creation mask (the "
33523 "\"umask\"). In particular ones which create files or directories, such as "
33524 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
33525 "either the default mode that the file is created with or modifies the mode "
33530 #: ../src/guestfs.pod:510
33532 "The default umask is C<022>, so files are created with modes such as C<0644> "
33533 "and directories with C<0755>."
33537 #: ../src/guestfs.pod:513
33539 "There are two ways to avoid being affected by umask. Either set umask to 0 "
33540 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
33541 "guestfs_chmod> after creating each file or directory."
33545 #: ../src/guestfs.pod:517
33546 msgid "For more information about umask, see L<umask(2)>."
33550 #: ../src/guestfs.pod:521
33552 "Libguestfs allows you to access Linux guests which have been encrypted using "
33553 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33554 "standard. This includes nearly all whole disk encryption systems used by "
33555 "modern Linux guests."
33559 #: ../src/guestfs.pod:527
33561 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33562 "returns the string C<crypto_LUKS>)."
33566 #: ../src/guestfs.pod:530
33568 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
33569 "will require the passphrase!"
33573 #: ../src/guestfs.pod:533
33575 "Opening a LUKS device creates a new device mapper device called C</dev/"
33576 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33577 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
33578 "from and encrypted to the underlying block device respectively."
33582 #: ../src/guestfs.pod:539
33584 "LVM volume groups on the device can be made visible by calling L</"
33585 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
33586 "(s) can now be mounted in the usual way."
33590 #: ../src/guestfs.pod:543
33592 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
33593 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33594 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
33595 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33596 "underlying encrypted block device)."
33600 #: ../src/guestfs.pod:550
33605 #: ../src/guestfs.pod:552
33607 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33608 "contains operating systems, an install CD or a live CD. (These APIs used to "
33609 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33610 "version 1.5.3 the most frequently used part of this library has been "
33611 "rewritten in C and moved into the core code)."
33615 #: ../src/guestfs.pod:559
33617 "Add all disks belonging to the unknown virtual machine and call L</"
33618 "guestfs_launch> in the usual way."
33622 #: ../src/guestfs.pod:562
33624 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
33625 "and certain heuristics, and returns a list of operating systems that were "
33626 "found. An empty list means none were found. A single element is the root "
33627 "filesystem of the operating system. For dual- or multi-boot guests, "
33628 "multiple roots can be returned, each one corresponding to a separate "
33629 "operating system. (Multi-boot virtual machines are extremely rare in the "
33630 "world of virtualization, but since this scenario can happen, we have built "
33631 "libguestfs to deal with it.)"
33635 #: ../src/guestfs.pod:571
33637 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33638 "to get additional details about that operating system. For example, call L</"
33639 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33640 "Windows and Linux-based operating systems respectively."
33644 #: ../src/guestfs.pod:577
33646 "Un*x-like and Linux-based operating systems usually consist of several "
33647 "filesystems which are mounted at boot time (for example, a separate boot "
33648 "partition mounted on C</boot>). The inspection rules are able to detect how "
33649 "filesystems correspond to mount points. Call "
33650 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
33651 "hash table like this example:"
33655 #: ../src/guestfs.pod:584
33658 " /boot => /dev/sda1\n"
33659 " / => /dev/vg_guest/lv_root\n"
33660 " /usr => /dev/vg_guest/lv_usr\n"
33663 " /boot => /dev/sda1\n"
33664 " / => /dev/vg_guest/lv_root\n"
33665 " /usr => /dev/vg_guest/lv_usr\n"
33669 #: ../src/guestfs.pod:588
33671 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33672 "filesystems as suggested."
33676 #: ../src/guestfs.pod:591
33678 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33679 "usr>). Sorting the keys of the hash by length, shortest first, should work."
33683 #: ../src/guestfs.pod:595
33685 "Inspection currently only works for some common operating systems. "
33686 "Contributors are welcome to send patches for other operating systems that we "
33687 "currently cannot detect."
33691 #: ../src/guestfs.pod:599
33693 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
33694 "for more details. The L</guestfs_inspect_os> function just ignores any "
33695 "encrypted devices."
33699 #: ../src/guestfs.pod:603
33701 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33702 "inspection and caches the results in the guest handle. Subsequent calls to "
33703 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33704 "read the disks. If you change the content of the guest disks, you can redo "
33705 "inspection by calling L</guestfs_inspect_os> again. (L</"
33706 "guestfs_inspect_list_applications> works a little differently from the other "
33707 "calls and does read the disks. See documentation for that function for "
33712 #: ../src/guestfs.pod:612
33713 msgid "INSPECTING INSTALL DISKS"
33717 #: ../src/guestfs.pod:614
33719 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33724 #: ../src/guestfs.pod:617
33726 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33727 "system, which currently can be C<installed> (a regular operating system) or "
33728 "C<installer> (some sort of install disk)."
33732 #: ../src/guestfs.pod:621
33734 "Further information is available about the operating system that can be "
33735 "installed using the regular inspection APIs like L</"
33736 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33740 #: ../src/guestfs.pod:626
33742 "Some additional information specific to installer disks is also available "
33743 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33744 "guestfs_inspect_is_multipart> calls."
33748 #: ../src/guestfs.pod:631
33749 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33753 #: ../src/guestfs.pod:633
33755 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
33756 "ntfs-3g.org/> driver."
33760 #: ../src/guestfs.pod:636
33761 msgid "DRIVE LETTERS AND PATHS"
33762 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33765 #: ../src/guestfs.pod:638
33767 "DOS and Windows still use drive letters, and the filesystems are always "
33768 "treated as case insensitive by Windows itself, and therefore you might find "
33769 "a Windows configuration file referring to a path like C<c:\\windows"
33770 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
33771 "might be referred to as C</WINDOWS/System32>."
33775 #: ../src/guestfs.pod:644
33777 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33778 "L</guestfs_inspect_get_drive_mappings>)"
33782 #: ../src/guestfs.pod:647
33784 "Dealing with separator characters (backslash vs forward slash) is outside "
33785 "the scope of libguestfs, but usually a simple character replacement will "
33790 #: ../src/guestfs.pod:651
33792 "To resolve the case insensitivity of paths, call L</"
33793 "guestfs_case_sensitive_path>."
33797 #: ../src/guestfs.pod:654
33798 msgid "ACCESSING THE WINDOWS REGISTRY"
33799 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33802 #: ../src/guestfs.pod:656
33804 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33805 "files, through the library C<hivex> which is part of the libguestfs project "
33806 "although ships as a separate tarball. You have to locate and download the "
33807 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
33808 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33809 "reg(1)> for more help on this issue."
33813 #: ../src/guestfs.pod:664
33814 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33815 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33818 #: ../src/guestfs.pod:666
33820 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33821 "provide something which looks like a Linux symlink. The way it tries to do "
33822 "the rewriting is described here:"
33826 #: ../src/guestfs.pod:670
33828 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33831 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33835 #: ../src/guestfs.pod:672
33837 "The essential problem is that ntfs-3g simply does not have enough "
33838 "information to do a correct job. NTFS links can contain drive letters and "
33839 "references to external device GUIDs that ntfs-3g has no way of resolving. "
33840 "It is almost certainly the case that libguestfs callers should ignore what "
33841 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33845 #: ../src/guestfs.pod:679
33847 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33848 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33849 "attribute, and read the raw reparse data from that (you can find the format "
33850 "documented in various places around the web)."
33854 #: ../src/guestfs.pod:684
33855 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33859 #: ../src/guestfs.pod:686
33861 "There are other useful extended attributes that can be read from ntfs-3g "
33862 "filesystems (using L</guestfs_getxattr>). See:"
33866 #: ../src/guestfs.pod:689
33868 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33870 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33873 #: ../src/guestfs.pod:691
33874 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33875 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33878 #: ../src/guestfs.pod:693
33880 "Although we don't want to discourage you from using the C API, we will "
33881 "mention here that the same API is also available in other languages."
33885 #: ../src/guestfs.pod:696
33887 "The API is broadly identical in all supported languages. This means that "
33888 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33889 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33890 "OCaml. In other words, a straightforward, predictable isomorphism between "
33895 #: ../src/guestfs.pod:702
33897 "Error messages are automatically transformed into exceptions if the language "
33902 #: ../src/guestfs.pod:705
33904 "We don't try to \"object orientify\" parts of the API in OO languages, "
33905 "although contributors are welcome to write higher level APIs above what we "
33906 "provide in their favourite languages if they wish."
33910 #: ../src/guestfs.pod:711
33915 #: ../src/guestfs.pod:713
33917 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
33918 "identical to the C API. C++ classes and exceptions are not used."
33922 #: ../src/guestfs.pod:717
33927 #: ../src/guestfs.pod:719
33929 "The C# bindings are highly experimental. Please read the warnings at the "
33930 "top of C<csharp/Libguestfs.cs>."
33934 #: ../src/guestfs.pod:722
33936 msgstr "B<Haskell>"
33939 #: ../src/guestfs.pod:724
33941 "This is the only language binding that is working but incomplete. Only "
33942 "calls which return simple integers have been bound in Haskell, and we are "
33943 "looking for help to complete this binding."
33947 #: ../src/guestfs.pod:728
33952 #: ../src/guestfs.pod:730
33954 "Full documentation is contained in the Javadoc which is distributed with "
33955 "libguestfs. For examples, see L<guestfs-java(3)>."
33959 #: ../src/guestfs.pod:733
33964 #: ../src/guestfs.pod:735
33965 msgid "See L<guestfs-ocaml(3)>."
33966 msgstr "Див. L<guestfs-ocaml(3)>."
33969 #: ../src/guestfs.pod:737
33974 #: ../src/guestfs.pod:739
33975 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33976 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33979 #: ../src/guestfs.pod:741
33984 #: ../src/guestfs.pod:743
33986 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33987 "the php-libguestfs package for your distribution."
33991 #: ../src/guestfs.pod:746
33992 msgid "The PHP binding only works correctly on 64 bit machines."
33996 #: ../src/guestfs.pod:748
34001 #: ../src/guestfs.pod:750
34002 msgid "See L<guestfs-python(3)>."
34003 msgstr "Див. L<guestfs-python(3)>."
34006 #: ../src/guestfs.pod:752
34011 #: ../src/guestfs.pod:754
34012 msgid "See L<guestfs-ruby(3)>."
34013 msgstr "Див. L<guestfs-ruby(3)>."
34016 #: ../src/guestfs.pod:756
34017 msgid "B<shell scripts>"
34018 msgstr "B<скрипти оболонки>"
34021 #: ../src/guestfs.pod:758
34022 msgid "See L<guestfish(1)>."
34023 msgstr "Див. L<guestfish(1)>."
34026 #: ../src/guestfs.pod:762
34027 msgid "LIBGUESTFS GOTCHAS"
34031 #: ../src/guestfs.pod:764
34033 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34034 "system [...] that works in the way it is documented but is counterintuitive "
34035 "and almost invites mistakes.\""
34039 #: ../src/guestfs.pod:768
34041 "Since we developed libguestfs and the associated tools, there are several "
34042 "things we would have designed differently, but are now stuck with for "
34043 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
34044 "release, you can expect these to change. Beware of them."
34048 #: ../src/guestfs.pod:776
34049 msgid "Autosync / forgetting to sync."
34053 #: ../src/guestfs.pod:778
34055 "I<Update:> Autosync is enabled by default for all API users starting from "
34056 "libguestfs 1.5.24. This section only applies to older versions."
34060 #: ../src/guestfs.pod:781
34062 "When modifying a filesystem from C or another language, you B<must> unmount "
34063 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34064 "libguestfs handle. You can also call:"
34068 #: ../src/guestfs.pod:785
34071 " guestfs_set_autosync (g, 1);\n"
34074 " guestfs_set_autosync (g, 1);\n"
34078 #: ../src/guestfs.pod:787
34080 "to have the unmount/sync done automatically for you when the handle 'g' is "
34081 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34085 #: ../src/guestfs.pod:791
34087 "If you forget to do this, then it is entirely possible that your changes "
34088 "won't be written out, or will be partially written, or (very rarely) that "
34089 "you'll get disk corruption."
34093 #: ../src/guestfs.pod:795
34095 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
34096 "guestfish scripts that forget to sync will work just fine, which can make "
34097 "this very puzzling if you are trying to debug a problem."
34101 #: ../src/guestfs.pod:799
34102 msgid "Mount option C<-o sync> should not be the default."
34106 #: ../src/guestfs.pod:801
34108 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
34109 "However C<-o sync> does not add any reliability benefit, but does have a "
34110 "very large performance impact."
34114 #: ../src/guestfs.pod:805
34116 "The work around is to use L</guestfs_mount_options> and set the mount "
34117 "options that you actually want to use."
34121 #: ../src/guestfs.pod:808
34122 msgid "Read-only should be the default."
34126 #: ../src/guestfs.pod:810
34128 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34129 "specify I<--rw> if you want to make changes to the image."
34133 #: ../src/guestfs.pod:813
34134 msgid "This would reduce the potential to corrupt live VM images."
34138 #: ../src/guestfs.pod:815
34140 "Note that many filesystems change the disk when you just mount and unmount, "
34141 "even if you didn't perform any writes. You need to use L</"
34142 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34146 #: ../src/guestfs.pod:819
34147 msgid "guestfish command line is hard to use."
34151 #: ../src/guestfs.pod:821
34153 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34154 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
34155 "exist, so it fails. In earlier versions of guestfish the error message was "
34156 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
34157 "we should have used C<guestfish -c command> to run commands."
34161 #: ../src/guestfs.pod:828
34162 msgid "guestfish megabyte modifiers don't work right on all commands"
34166 #: ../src/guestfs.pod:830
34168 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34169 "other modifiers). What guestfish actually does is to multiply the number "
34170 "part by the modifier part and pass the result to the C API. However this "
34171 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34172 "expecting some other unit (eg. megabytes)."
34176 #: ../src/guestfs.pod:837
34177 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
34181 #: ../src/guestfs.pod:839
34184 " lvcreate LV VG 100M\n"
34187 " lvcreate LV VG 100M\n"
34191 #: ../src/guestfs.pod:841
34193 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
34194 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34195 "megabytes * megabytes) logical volume. The error message you get from this "
34196 "is also a little obscure."
34200 #: ../src/guestfs.pod:846
34202 "This could be fixed in the generator by specially marking parameters and "
34203 "return values which take bytes or other units."
34207 #: ../src/guestfs.pod:849
34208 msgid "Ambiguity between devices and paths"
34212 #: ../src/guestfs.pod:851
34214 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34215 "sdb2>) and a similar pathname. A file might just happen to be called "
34216 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34220 #: ../src/guestfs.pod:856
34222 "In the current API we usually resolve this ambiguity by having two separate "
34223 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
34224 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34225 "detecting if the path supplied begins with C</dev/>."
34229 #: ../src/guestfs.pod:862
34231 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34232 "make paths/devices into structured names. One way to do this would be to "
34233 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34234 "aspect of grub. Another way would be to use a structured type, equivalent "
34235 "to this OCaml type:"
34239 #: ../src/guestfs.pod:868
34242 " type path = Path of string | Device of int | Partition of int * int\n"
34247 #: ../src/guestfs.pod:870
34248 msgid "which would allow you to pass arguments like:"
34252 #: ../src/guestfs.pod:872
34255 " Path \"/foo/bar\"\n"
34256 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
34257 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34258 " Path \"/dev/sdb2\" (* not a device *)\n"
34263 #: ../src/guestfs.pod:877
34265 "As you can see there are still problems to resolve even with this "
34266 "representation. Also consider how it might work in guestfish."
34270 #: ../src/guestfs.pod:882
34271 msgid "KEYS AND PASSPHRASES"
34272 msgstr "КЛЮЧІ І ПАРОЛІ"
34275 #: ../src/guestfs.pod:884
34277 "Certain libguestfs calls take a parameter that contains sensitive key "
34278 "material, passed in as a C string."
34282 #: ../src/guestfs.pod:887
34284 "In the future we would hope to change the libguestfs implementation so that "
34285 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34286 "swap. However this is I<not> done at the moment, because of the complexity "
34287 "of such an implementation."
34291 #: ../src/guestfs.pod:892
34293 "Therefore you should be aware that any key parameter you pass to libguestfs "
34294 "might end up being written out to the swap partition. If this is a concern, "
34295 "scrub the swap partition or don't use libguestfs on encrypted devices."
34299 #: ../src/guestfs.pod:897
34300 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34304 #: ../src/guestfs.pod:899
34306 "All high-level libguestfs actions are synchronous. If you want to use "
34307 "libguestfs asynchronously then you must create a thread."
34311 #: ../src/guestfs.pod:902
34313 "Only use the handle from a single thread. Either use the handle exclusively "
34314 "from one thread, or provide your own mutex so that two threads cannot issue "
34315 "calls on the same handle at the same time."
34319 #: ../src/guestfs.pod:906
34321 "See the graphical program guestfs-browser for one possible architecture for "
34322 "multithreaded programs using libvirt and libguestfs."
34326 #: ../src/guestfs.pod:909
34331 #: ../src/guestfs.pod:911
34333 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34338 #: ../src/guestfs.pod:914
34340 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34341 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34345 #: ../src/guestfs.pod:917
34347 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34348 "to change the directories that libguestfs will search in. The value is a "
34349 "colon-separated list of paths. The current directory is I<not> searched "
34350 "unless the path contains an empty element or C<.>. For example "
34351 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34352 "then C</usr/lib/guestfs>."
34356 #: ../src/guestfs.pod:924
34357 msgid "QEMU WRAPPERS"
34361 #: ../src/guestfs.pod:926
34363 "If you want to compile your own qemu, run qemu from a non-standard location, "
34364 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34369 #: ../src/guestfs.pod:930
34371 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34372 "last command in the shell script (so that qemu replaces the shell and "
34373 "becomes the direct child of the libguestfs-using program). If you don't do "
34374 "this, then the qemu process won't be cleaned up correctly."
34378 #: ../src/guestfs.pod:935
34380 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34385 #: ../src/guestfs.pod:938
34389 " qemudir=/home/rjones/d/qemu\n"
34390 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34394 " qemudir=/home/rjones/d/qemu\n"
34395 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34399 #: ../src/guestfs.pod:942
34401 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34402 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
34407 #: ../src/guestfs.pod:946
34410 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34413 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34417 #: ../src/guestfs.pod:948
34419 "Note that libguestfs also calls qemu with the -help and -version options in "
34420 "order to determine features."
34424 #: ../src/guestfs.pod:951
34425 msgid "ATTACHING TO RUNNING DAEMONS"
34426 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34429 #: ../src/guestfs.pod:953
34431 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34432 "babies. Use with caution."
34436 #: ../src/guestfs.pod:956
34438 "I<Note (2):> This section explains how to attach to a running daemon from a "
34439 "low level perspective. For most users, simply using virt tools such as "
34440 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34444 #: ../src/guestfs.pod:960
34445 msgid "Using guestfs_set_attach_method"
34446 msgstr "За допомогою guestfs_set_attach_method"
34449 #: ../src/guestfs.pod:962
34451 "By calling L</guestfs_set_attach_method> you can change how the library "
34452 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34453 "ARCHITECTURE> for some background)."
34457 #: ../src/guestfs.pod:966
34459 "The normal attach method is C<appliance>, where a small appliance is created "
34460 "containing the daemon, and then the library connects to this."
34464 #: ../src/guestfs.pod:969
34466 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34467 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34468 "daemon over the Unix domain socket."
34472 #: ../src/guestfs.pod:973
34474 "The normal use for this is to connect to a running virtual machine that "
34475 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34476 "files inside the live virtual machine."
34480 #: ../src/guestfs.pod:977
34481 msgid "Using guestfs_add_domain with live flag"
34482 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34485 #: ../src/guestfs.pod:979
34487 "L</guestfs_add_domain> provides some help for getting the correct attach "
34488 "method. If you pass the C<live> option to this function, then (if the "
34489 "virtual machine is running) it will examine the libvirt XML looking for a "
34490 "virtio-serial channel to connect to:"
34494 #: ../src/guestfs.pod:985
34501 " <channel type='unix'>\n"
34502 " <source mode='bind' path='/path/to/socket'/>\n"
34503 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34514 " <channel type='unix'>\n"
34515 " <source mode='bind' path='/path/to/socket'/>\n"
34516 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34524 #: ../src/guestfs.pod:997
34526 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34527 "method to C<unix:/path/to/socket>."
34531 #: ../src/guestfs.pod:1000
34533 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34534 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34535 "to attach to and modify live virtual machines."
34539 #: ../src/guestfs.pod:1004
34541 "The virtual machine needs to have been set up beforehand so that it has the "
34542 "virtio-serial channel and so that guestfsd is running inside it."
34546 #: ../src/guestfs.pod:1008
34547 msgid "ABI GUARANTEE"
34548 msgstr "ГАРАНТІЯ ЩОДО ABI"
34551 #: ../src/guestfs.pod:1010
34553 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34554 "actions as outlined in this section. Although we will deprecate some "
34555 "actions, for example if they get replaced by newer calls, we will keep the "
34556 "old actions forever. This allows you the developer to program in confidence "
34557 "against the libguestfs API."
34561 #: ../src/guestfs.pod:1016
34562 msgid "BLOCK DEVICE NAMING"
34563 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34566 #: ../src/guestfs.pod:1018
34568 "In the kernel there is now quite a profusion of schemata for naming block "
34569 "devices (in this context, by I<block device> I mean a physical or virtual "
34570 "hard drive). The original Linux IDE driver used names starting with C</dev/"
34571 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
34572 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
34573 "for the old IDE driver (particularly for SATA devices) those devices also "
34574 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
34575 "paravirtualized drivers. This has created several different naming systems, "
34576 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34580 #: ../src/guestfs.pod:1030
34582 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34583 "Linux kernel to access block devices. We can run a variety of appliances "
34584 "based on a variety of Linux kernels."
34588 #: ../src/guestfs.pod:1034
34590 "This causes a problem for libguestfs because many API calls use device or "
34591 "partition names. Working scripts and the recipe (example) scripts that we "
34592 "make available over the internet could fail if the naming scheme changes."
34596 #: ../src/guestfs.pod:1039
34598 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
34599 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34600 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34601 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34605 #: ../src/guestfs.pod:1045
34607 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
34608 "L</guestfs_list_partitions> and similar calls return the true names of the "
34609 "devices and partitions as known to the appliance."
34613 #: ../src/guestfs.pod:1050
34614 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34618 #: ../src/guestfs.pod:1052
34620 "Usually this translation is transparent. However in some (very rare) cases "
34621 "you may need to know the exact algorithm. Such cases include where you use "
34622 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34623 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34627 #: ../src/guestfs.pod:1058
34629 "The algorithm is applied only to I<parameters> which are known to be either "
34630 "device or partition names. Return values from functions such as L</"
34631 "guestfs_list_devices> are never changed."
34635 #: ../src/guestfs.pod:1066
34636 msgid "Is the string a parameter which is a device or partition name?"
34640 #: ../src/guestfs.pod:1070
34641 msgid "Does the string begin with C</dev/sd>?"
34642 msgstr "Чи починається рядок з C</dev/sd>?"
34645 #: ../src/guestfs.pod:1074
34647 "Does the named device exist? If so, we use that device. However if I<not> "
34648 "then we continue with this algorithm."
34652 #: ../src/guestfs.pod:1079
34653 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34657 #: ../src/guestfs.pod:1081
34658 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34662 #: ../src/guestfs.pod:1083
34663 msgid "If that named device exists, use it. If not, continue."
34667 #: ../src/guestfs.pod:1087
34668 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34672 #: ../src/guestfs.pod:1089
34673 msgid "If that named device exists, use it. If not, return an error."
34677 #: ../src/guestfs.pod:1093
34678 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34682 #: ../src/guestfs.pod:1095
34684 "Although the standard naming scheme and automatic translation is useful for "
34685 "simple programs and guestfish scripts, for larger programs it is best not to "
34686 "rely on this mechanism."
34690 #: ../src/guestfs.pod:1099
34692 "Where possible for maximum future portability programs using libguestfs "
34693 "should use these future-proof techniques:"
34697 #: ../src/guestfs.pod:1106
34699 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34700 "device names, and then use those names directly."
34704 #: ../src/guestfs.pod:1109
34706 "Since those device names exist by definition, they will never be translated."
34710 #: ../src/guestfs.pod:1114
34712 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34713 "filesystem labels."
34717 #: ../src/guestfs.pod:1119
34722 #: ../src/guestfs.pod:1121
34724 "This section discusses security implications of using libguestfs, "
34725 "particularly with untrusted or malicious guests or disk images."
34729 #: ../src/guestfs.pod:1124
34730 msgid "GENERAL SECURITY CONSIDERATIONS"
34731 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34734 #: ../src/guestfs.pod:1126
34736 "Be careful with any files or data that you download from a guest (by "
34737 "\"download\" we mean not just the L</guestfs_download> command but any "
34738 "command that reads files, filenames, directories or anything else from a "
34739 "disk image). An attacker could manipulate the data to fool your program "
34740 "into doing the wrong thing. Consider cases such as:"
34744 #: ../src/guestfs.pod:1136
34745 msgid "the data (file etc) not being present"
34749 #: ../src/guestfs.pod:1140
34750 msgid "being present but empty"
34754 #: ../src/guestfs.pod:1144
34755 msgid "being much larger than normal"
34759 #: ../src/guestfs.pod:1148
34760 msgid "containing arbitrary 8 bit data"
34764 #: ../src/guestfs.pod:1152
34765 msgid "being in an unexpected character encoding"
34769 #: ../src/guestfs.pod:1156
34770 msgid "containing homoglyphs."
34774 #: ../src/guestfs.pod:1160
34775 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34776 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34779 #: ../src/guestfs.pod:1162
34781 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34782 "(VFS) module can sometimes be escalated into exploits by deliberately "
34783 "creating a malicious, malformed filesystem. These exploits are very severe "
34784 "for two reasons. Firstly there are very many filesystem drivers in the "
34785 "kernel, and many of them are infrequently used and not much developer "
34786 "attention has been paid to the code. Linux userspace helps potential "
34787 "crackers by detecting the filesystem type and automatically choosing the "
34788 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34789 "the administrator. Secondly, a kernel-level exploit is like a local root "
34790 "exploit (worse in some ways), giving immediate and total access to the "
34791 "system right down to the hardware level."
34795 #: ../src/guestfs.pod:1175
34797 "That explains why you should never mount a filesystem from an untrusted "
34798 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
34799 "inside a qemu virtual machine, usually running as a non-root user. The "
34800 "attacker would need to write a filesystem which first exploited the kernel, "
34801 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34802 "the libguestfs protocol, and finally to be as serious as the host kernel "
34803 "exploit it would need to escalate its privileges to root. This multi-step "
34804 "escalation, performed by a static piece of data, is thought to be extremely "
34805 "hard to do, although we never say 'never' about security issues."
34809 #: ../src/guestfs.pod:1186
34811 "In any case callers can reduce the attack surface by forcing the filesystem "
34812 "type when mounting (use L</guestfs_mount_vfs>)."
34816 #: ../src/guestfs.pod:1189
34817 msgid "PROTOCOL SECURITY"
34818 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34821 #: ../src/guestfs.pod:1191
34823 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
34824 "defined upper message size. However a program that uses libguestfs must "
34825 "also take care - for example you can write a program that downloads a binary "
34826 "from a disk image and executes it locally, and no amount of protocol "
34827 "security will save you from the consequences."
34831 #: ../src/guestfs.pod:1197
34832 msgid "INSPECTION SECURITY"
34836 #: ../src/guestfs.pod:1199
34838 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34839 "directly from the guest, and these could contain any 8 bit data. Callers "
34840 "should be careful to escape these before printing them to a structured file "
34841 "(for example, use HTML escaping if creating a web page)."
34845 #: ../src/guestfs.pod:1205
34847 "Guest configuration may be altered in unusual ways by the administrator of "
34848 "the virtual machine, and may not reflect reality (particularly for untrusted "
34849 "or actively malicious guests). For example we parse the hostname from "
34850 "configuration files like C</etc/sysconfig/network> that we find in the "
34851 "guest, but the guest administrator can easily manipulate these files to "
34852 "provide the wrong hostname."
34856 #: ../src/guestfs.pod:1213
34858 "The inspection API parses guest configuration using two external libraries: "
34859 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
34860 "designed to be robust in the face of malicious data, although denial of "
34861 "service attacks are still possible, for example with oversized configuration "
34866 #: ../src/guestfs.pod:1219
34867 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34868 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34871 #: ../src/guestfs.pod:1221
34873 "Be very cautious about running commands from the guest. By running a "
34874 "command in the guest, you are giving CPU time to a binary that you do not "
34875 "control, under the same user account as the library, albeit wrapped in qemu "
34876 "virtualization. More information and alternatives can be found in the "
34877 "section L</RUNNING COMMANDS>."
34881 #: ../src/guestfs.pod:1227
34882 msgid "CVE-2010-3851"
34883 msgstr "CVE-2010-3851"
34886 #: ../src/guestfs.pod:1229
34887 msgid "https://bugzilla.redhat.com/642934"
34888 msgstr "https://bugzilla.redhat.com/642934"
34891 #: ../src/guestfs.pod:1231
34893 "This security bug concerns the automatic disk format detection that qemu "
34894 "does on disk images."
34898 #: ../src/guestfs.pod:1234
34900 "A raw disk image is just the raw bytes, there is no header. Other disk "
34901 "images like qcow2 contain a special header. Qemu deals with this by looking "
34902 "for one of the known headers, and if none is found then assuming the disk "
34903 "image must be raw."
34907 #: ../src/guestfs.pod:1239
34909 "This allows a guest which has been given a raw disk image to write some "
34910 "other header. At next boot (or when the disk image is accessed by "
34911 "libguestfs) qemu would do autodetection and think the disk image format was, "
34912 "say, qcow2 based on the header written by the guest."
34916 #: ../src/guestfs.pod:1244
34918 "This in itself would not be a problem, but qcow2 offers many features, one "
34919 "of which is to allow a disk image to refer to another image (called the "
34920 "\"backing disk\"). It does this by placing the path to the backing disk "
34921 "into the qcow2 header. This path is not validated and could point to any "
34922 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
34923 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34924 "control of the attacker."
34928 #: ../src/guestfs.pod:1252
34930 "In libguestfs this is rather hard to exploit except under two circumstances:"
34934 #: ../src/guestfs.pod:1259
34935 msgid "You have enabled the network or have opened the disk in write mode."
34939 #: ../src/guestfs.pod:1263
34941 "You are also running untrusted code from the guest (see L</RUNNING "
34946 #: ../src/guestfs.pod:1268
34948 "The way to avoid this is to specify the expected disk format when adding "
34949 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
34950 "should always do this if the disk is raw format, and it's a good idea for "
34955 #: ../src/guestfs.pod:1273
34957 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34958 "format is fetched from libvirt and passed through."
34962 #: ../src/guestfs.pod:1276
34964 "For libguestfs tools, use the I<--format> command line parameter as "
34969 #: ../src/guestfs.pod:1279
34970 msgid "CONNECTION MANAGEMENT"
34971 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34974 #: ../src/guestfs.pod:1281
34975 msgid "guestfs_h *"
34976 msgstr "guestfs_h *"
34979 #: ../src/guestfs.pod:1283
34981 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
34982 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
34983 "handle and release all resources used."
34987 #: ../src/guestfs.pod:1287
34989 "For information on using multiple handles and threads, see the section L</"
34990 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34994 #: ../src/guestfs.pod:1290
34995 msgid "guestfs_create"
34996 msgstr "guestfs_create"
34999 #: ../src/guestfs.pod:1292
35002 " guestfs_h *guestfs_create (void);\n"
35005 " guestfs_h *guestfs_create (void);\n"
35009 #: ../src/guestfs.pod:1294
35010 msgid "Create a connection handle."
35011 msgstr "Створити дескриптор з’єднання."
35014 #: ../src/guestfs.pod:1296
35016 "On success this returns a non-NULL pointer to a handle. On error it returns "
35021 #: ../src/guestfs.pod:1299
35023 "You have to \"configure\" the handle after creating it. This includes "
35024 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35025 "handle at least once."
35029 #: ../src/guestfs.pod:1303
35030 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35034 #: ../src/guestfs.pod:1305
35036 "You may also want to configure error handling for the handle. See the L</"
35037 "ERROR HANDLING> section below."
35041 #: ../src/guestfs.pod:1308
35042 msgid "guestfs_close"
35043 msgstr "guestfs_close"
35046 #: ../src/guestfs.pod:1310
35049 " void guestfs_close (guestfs_h *g);\n"
35052 " void guestfs_close (guestfs_h *g);\n"
35056 #: ../src/guestfs.pod:1312
35057 msgid "This closes the connection handle and frees up all resources used."
35061 #: ../src/guestfs.pod:1314
35063 "If autosync was set on the handle and the handle was launched, then this "
35064 "implicitly calls various functions to unmount filesystems and sync the "
35065 "disk. See L</guestfs_set_autosync> for more details."
35069 #: ../src/guestfs.pod:1318
35070 msgid "If a close callback was set on the handle, then it is called."
35074 #: ../src/guestfs.pod:1320
35075 msgid "ERROR HANDLING"
35076 msgstr "ОБРОБКА ПОМИЛОК"
35079 #: ../src/guestfs.pod:1322
35081 "API functions can return errors. For example, almost all functions that "
35082 "return C<int> will return C<-1> to indicate an error."
35086 #: ../src/guestfs.pod:1325
35088 "Additional information is available for errors: an error message string and "
35089 "optionally an error number (errno) if the thing that failed was a system "
35094 #: ../src/guestfs.pod:1329
35096 "You can get at the additional information about the last error on the handle "
35097 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35098 "up an error handler with L</guestfs_set_error_handler>."
35102 #: ../src/guestfs.pod:1334
35104 "When the handle is created, a default error handler is installed which "
35105 "prints the error message string to C<stderr>. For small short-running "
35106 "command line programs it is sufficient to do:"
35110 #: ../src/guestfs.pod:1338
35113 " if (guestfs_launch (g) == -1)\n"
35114 " exit (EXIT_FAILURE);\n"
35117 " if (guestfs_launch (g) == -1)\n"
35118 " exit (EXIT_FAILURE);\n"
35122 #: ../src/guestfs.pod:1341
35124 "since the default error handler will ensure that an error message has been "
35125 "printed to C<stderr> before the program exits."
35129 #: ../src/guestfs.pod:1344
35131 "For other programs the caller will almost certainly want to install an "
35132 "alternate error handler or do error handling in-line like this:"
35136 #: ../src/guestfs.pod:1347
35139 " /* This disables the default behaviour of printing errors\n"
35141 " guestfs_set_error_handler (g, NULL, NULL);\n"
35146 #: ../src/guestfs.pod:1351
35149 #| " if (guestfs_launch (g) == -1) {\n"
35150 #| " /* Examine the error message and print it etc. */\n"
35151 #| " char *msg = guestfs_last_error (g);\n"
35152 #| " int errnum = guestfs_last_errno (g);\n"
35153 #| " fprintf (stderr, \"%s\\n\", msg);\n"
35158 " if (guestfs_launch (g) == -1) {\n"
35159 " /* Examine the error message and print it etc. */\n"
35160 " char *msg = guestfs_last_error (g);\n"
35161 " int errnum = guestfs_last_errno (g);\n"
35162 " fprintf (stderr, \"%s\", msg);\n"
35163 " if (errnum != 0)\n"
35164 " fprintf (stderr, \": %s\", strerror (errnum));\n"
35165 " fprintf (stderr, \"\\n\");\n"
35170 " if (guestfs_launch (g) == -1) {\n"
35171 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35172 " char *msg = guestfs_last_error (g);\n"
35173 " int errnum = guestfs_last_errno (g);\n"
35174 " fprintf (stderr, \"%s\\n\", msg);\n"
35180 #: ../src/guestfs.pod:1362
35182 "Out of memory errors are handled differently. The default action is to call "
35183 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
35184 "guestfs_set_out_of_memory_handler>."
35188 #: ../src/guestfs.pod:1366
35190 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35191 "because there is no handle if this happens there is no way to get additional "
35192 "error information. However L</guestfs_create> is supposed to be a "
35193 "lightweight operation which can only fail because of insufficient memory (it "
35194 "returns NULL in this case)."
35198 #: ../src/guestfs.pod:1372
35199 msgid "guestfs_last_error"
35200 msgstr "guestfs_last_error"
35203 #: ../src/guestfs.pod:1374
35206 " const char *guestfs_last_error (guestfs_h *g);\n"
35209 " const char *guestfs_last_error (guestfs_h *g);\n"
35213 #: ../src/guestfs.pod:1376
35215 "This returns the last error message that happened on C<g>. If there has not "
35216 "been an error since the handle was created, then this returns C<NULL>."
35220 #: ../src/guestfs.pod:1380
35222 "The lifetime of the returned string is until the next error occurs, or L</"
35223 "guestfs_close> is called."
35227 #: ../src/guestfs.pod:1383
35228 msgid "guestfs_last_errno"
35229 msgstr "guestfs_last_errno"
35232 #: ../src/guestfs.pod:1385
35235 " int guestfs_last_errno (guestfs_h *g);\n"
35238 " int guestfs_last_errno (guestfs_h *g);\n"
35242 #: ../src/guestfs.pod:1387
35243 msgid "This returns the last error number (errno) that happened on C<g>."
35247 #: ../src/guestfs.pod:1389
35248 msgid "If successful, an errno integer not equal to zero is returned."
35252 #: ../src/guestfs.pod:1391
35254 "If no error, this returns 0. This call can return 0 in three situations:"
35258 #: ../src/guestfs.pod:1398
35259 msgid "There has not been any error on the handle."
35263 #: ../src/guestfs.pod:1402
35265 "There has been an error but the errno was meaningless. This corresponds to "
35266 "the case where the error did not come from a failed system call, but for "
35267 "some other reason."
35271 #: ../src/guestfs.pod:1408
35273 "There was an error from a failed system call, but for some reason the errno "
35274 "was not captured and returned. This usually indicates a bug in libguestfs."
35278 #: ../src/guestfs.pod:1414
35280 "Libguestfs tries to convert the errno from inside the applicance into a "
35281 "corresponding errno for the caller (not entirely trivial: the appliance "
35282 "might be running a completely different operating system from the library "
35283 "and error numbers are not standardized across Un*xen). If this could not be "
35284 "done, then the error is translated to C<EINVAL>. In practice this should "
35285 "only happen in very rare circumstances."
35289 #: ../src/guestfs.pod:1422
35290 msgid "guestfs_set_error_handler"
35291 msgstr "guestfs_set_error_handler"
35294 #: ../src/guestfs.pod:1424
35297 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35299 " const char *msg);\n"
35300 " void guestfs_set_error_handler (guestfs_h *g,\n"
35301 " guestfs_error_handler_cb cb,\n"
35302 " void *opaque);\n"
35305 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35307 " const char *msg);\n"
35308 " void guestfs_set_error_handler (guestfs_h *g,\n"
35309 " guestfs_error_handler_cb cb,\n"
35310 " void *opaque);\n"
35314 #: ../src/guestfs.pod:1431
35316 "The callback C<cb> will be called if there is an error. The parameters "
35317 "passed to the callback are an opaque data pointer and the error message "
35322 #: ../src/guestfs.pod:1435
35324 "C<errno> is not passed to the callback. To get that the callback must call "
35325 "L</guestfs_last_errno>."
35329 #: ../src/guestfs.pod:1438
35331 "Note that the message string C<msg> is freed as soon as the callback "
35332 "function returns, so if you want to stash it somewhere you must make your "
35337 #: ../src/guestfs.pod:1442
35338 msgid "The default handler prints messages on C<stderr>."
35342 #: ../src/guestfs.pod:1444
35343 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35347 #: ../src/guestfs.pod:1446
35348 msgid "guestfs_get_error_handler"
35349 msgstr "guestfs_get_error_handler"
35352 #: ../src/guestfs.pod:1448
35355 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35356 " void **opaque_rtn);\n"
35359 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35360 " void **opaque_rtn);\n"
35364 #: ../src/guestfs.pod:1451
35365 msgid "Returns the current error handler callback."
35369 #: ../src/guestfs.pod:1453
35370 msgid "guestfs_set_out_of_memory_handler"
35371 msgstr "guestfs_set_out_of_memory_handler"
35374 #: ../src/guestfs.pod:1455
35377 #| " typedef void (*guestfs_abort_cb) (void);\n"
35378 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35379 #| " guestfs_abort_cb);\n"
35382 " typedef void (*guestfs_abort_cb) (void);\n"
35383 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35384 " guestfs_abort_cb);\n"
35387 " typedef void (*guestfs_abort_cb) (void);\n"
35388 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35389 " guestfs_abort_cb);\n"
35393 #: ../src/guestfs.pod:1459
35395 "The callback C<cb> will be called if there is an out of memory situation. "
35396 "I<Note this callback must not return>."
35400 #: ../src/guestfs.pod:1462
35401 msgid "The default is to call L<abort(3)>."
35405 #: ../src/guestfs.pod:1464
35407 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
35411 #: ../src/guestfs.pod:1467
35412 msgid "guestfs_get_out_of_memory_handler"
35413 msgstr "guestfs_get_out_of_memory_handler"
35416 #: ../src/guestfs.pod:1469
35419 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35422 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35426 #: ../src/guestfs.pod:1471
35427 msgid "This returns the current out of memory handler."
35431 #: ../src/guestfs.pod:1473
35433 msgstr "ВИКЛИКИ API"
35436 #: ../src/guestfs.pod:1477
35441 #: ../src/guestfs.pod:1479
35446 #: ../src/guestfs.pod:1481
35447 msgid "AVAILABILITY"
35448 msgstr "ДОСТУПНІСТЬ"
35451 #: ../src/guestfs.pod:1483
35452 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35453 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35456 #: ../src/guestfs.pod:1485
35458 "Using L</guestfs_available> you can test availability of the following "
35459 "groups of functions. This test queries the appliance to see if the "
35460 "appliance you are currently using supports the functionality."
35464 #: ../src/guestfs.pod:1490
35465 msgid "@AVAILABILITY@"
35466 msgstr "@AVAILABILITY@"
35469 #: ../src/guestfs.pod:1492
35470 msgid "GUESTFISH supported COMMAND"
35474 #: ../src/guestfs.pod:1494
35476 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35477 "prints out the available groups and whether they are supported by this build "
35478 "of libguestfs. Note however that you have to do C<run> first."
35482 #: ../src/guestfs.pod:1499
35483 msgid "SINGLE CALLS AT COMPILE TIME"
35487 #: ../src/guestfs.pod:1501
35489 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35490 "function, such as:"
35494 #: ../src/guestfs.pod:1504
35497 " #define LIBGUESTFS_HAVE_DD 1\n"
35500 " #define LIBGUESTFS_HAVE_DD 1\n"
35504 #: ../src/guestfs.pod:1506
35505 msgid "if L</guestfs_dd> is available."
35509 #: ../src/guestfs.pod:1508
35511 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35512 "function is available at compile time, we recommended using build tools such "
35513 "as autoconf or cmake. For example in autotools you could use:"
35517 #: ../src/guestfs.pod:1513
35520 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35521 " AC_CHECK_FUNCS([guestfs_dd])\n"
35524 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35525 " AC_CHECK_FUNCS([guestfs_dd])\n"
35529 #: ../src/guestfs.pod:1516
35531 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35536 #: ../src/guestfs.pod:1519
35537 msgid "SINGLE CALLS AT RUN TIME"
35541 #: ../src/guestfs.pod:1521
35543 "Testing at compile time doesn't guarantee that a function really exists in "
35544 "the library. The reason is that you might be dynamically linked against a "
35545 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
35546 "This situation unfortunately results in a segmentation fault, which is a "
35547 "shortcoming of the C dynamic linking system itself."
35551 #: ../src/guestfs.pod:1528
35553 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35554 "in this example program (note that you still need the compile time check as "
35559 #: ../src/guestfs.pod:1532
35562 " #include <stdio.h>\n"
35563 " #include <stdlib.h>\n"
35564 " #include <unistd.h>\n"
35565 " #include <dlfcn.h>\n"
35566 " #include <guestfs.h>\n"
35569 " #include <stdio.h>\n"
35570 " #include <stdlib.h>\n"
35571 " #include <unistd.h>\n"
35572 " #include <dlfcn.h>\n"
35573 " #include <guestfs.h>\n"
35577 #: ../src/guestfs.pod:1538
35582 " #ifdef LIBGUESTFS_HAVE_DD\n"
35584 " int has_function;\n"
35589 " #ifdef LIBGUESTFS_HAVE_DD\n"
35591 " int has_function;\n"
35595 #: ../src/guestfs.pod:1544
35598 " /* Test if the function guestfs_dd is really available. */\n"
35599 " dl = dlopen (NULL, RTLD_LAZY);\n"
35601 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35602 " exit (EXIT_FAILURE);\n"
35604 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35610 #: ../src/guestfs.pod:1553
35613 " if (!has_function)\n"
35614 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35616 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35617 " /* Now it's safe to call\n"
35618 " guestfs_dd (g, \"foo\", \"bar\");\n"
35622 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35629 #: ../src/guestfs.pod:1566
35631 "You may think the above is an awful lot of hassle, and it is. There are "
35632 "other ways outside of the C linking system to ensure that this kind of "
35633 "incompatibility never arises, such as using package versioning:"
35637 #: ../src/guestfs.pod:1571
35640 " Requires: libguestfs >= 1.0.80\n"
35645 #: ../src/guestfs.pod:1573
35646 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35650 #: ../src/guestfs.pod:1575
35652 "A recent feature of the API is the introduction of calls which take optional "
35653 "arguments. In C these are declared 3 ways. The main way is as a call which "
35654 "takes variable arguments (ie. C<...>), as in this example:"
35658 #: ../src/guestfs.pod:1580
35661 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35664 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35668 #: ../src/guestfs.pod:1582
35670 "Call this with a list of optional arguments, terminated by C<-1>. So to "
35671 "call with no optional arguments specified:"
35675 #: ../src/guestfs.pod:1585
35678 " guestfs_add_drive_opts (g, filename, -1);\n"
35681 " guestfs_add_drive_opts (g, filename, -1);\n"
35685 #: ../src/guestfs.pod:1587
35686 msgid "With a single optional argument:"
35690 #: ../src/guestfs.pod:1589
35693 " guestfs_add_drive_opts (g, filename,\n"
35694 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35698 " guestfs_add_drive_opts (g, filename,\n"
35699 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35704 #: ../src/guestfs.pod:1593
35709 #: ../src/guestfs.pod:1595
35712 " guestfs_add_drive_opts (g, filename,\n"
35713 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35714 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35718 " guestfs_add_drive_opts (g, filename,\n"
35719 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35720 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35725 #: ../src/guestfs.pod:1600
35727 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
35732 #: ../src/guestfs.pod:1603
35733 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35737 #: ../src/guestfs.pod:1605
35739 "The second variant has the same name with the suffix C<_va>, which works the "
35740 "same way but takes a C<va_list>. See the C manual for details. For the "
35741 "example function, this is declared:"
35745 #: ../src/guestfs.pod:1609
35748 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35749 " va_list args);\n"
35752 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35753 " va_list args);\n"
35757 #: ../src/guestfs.pod:1612
35758 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35762 #: ../src/guestfs.pod:1614
35764 "The third variant is useful where you need to construct these calls. You "
35765 "pass in a structure where you fill in the optional fields. The structure "
35766 "has a bitmask as the first element which you must set to indicate which "
35767 "fields you have filled in. For our example function the structure and call "
35772 #: ../src/guestfs.pod:1620
35775 " struct guestfs_add_drive_opts_argv {\n"
35776 " uint64_t bitmask;\n"
35778 " const char *format;\n"
35781 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35782 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35785 " struct guestfs_add_drive_opts_argv {\n"
35786 " uint64_t bitmask;\n"
35788 " const char *format;\n"
35791 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35792 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35796 #: ../src/guestfs.pod:1629
35797 msgid "You could call it like this:"
35801 #: ../src/guestfs.pod:1631
35804 " struct guestfs_add_drive_opts_argv optargs = {\n"
35805 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35806 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35807 " .readonly = 1,\n"
35808 " .format = \"qcow2\"\n"
35812 " struct guestfs_add_drive_opts_argv optargs = {\n"
35813 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35814 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35815 " .readonly = 1,\n"
35816 " .format = \"qcow2\"\n"
35821 #: ../src/guestfs.pod:1638
35824 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35827 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35831 #: ../src/guestfs.pod:1646
35832 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35836 #: ../src/guestfs.pod:1651
35837 msgid "You do not need to fill in all fields of the structure."
35841 #: ../src/guestfs.pod:1655
35843 "There must be a one-to-one correspondence between fields of the structure "
35844 "that are filled in, and bits set in the bitmask."
35848 #: ../src/guestfs.pod:1660
35849 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35853 #: ../src/guestfs.pod:1662
35855 "In other languages, optional arguments are expressed in the way that is "
35856 "natural for that language. We refer you to the language-specific "
35857 "documentation for more details on that."
35861 #: ../src/guestfs.pod:1666
35862 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35866 #: ../src/guestfs.pod:1668
35867 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35871 #: ../src/guestfs.pod:1670
35873 "B<Note:> This section documents the generic event mechanism introduced in "
35874 "libguestfs 1.10, which you should use in new code if possible. The old "
35875 "functions C<guestfs_set_log_message_callback>, "
35876 "C<guestfs_set_subprocess_quit_callback>, "
35877 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35878 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35879 "page. Because of the ABI guarantee, the old functions continue to work."
35883 #: ../src/guestfs.pod:1679
35885 "Handles generate events when certain things happen, such as log messages "
35886 "being generated, progress messages during long-running operations, or the "
35887 "handle being closed. The API calls described below let you register a "
35888 "callback to be called when events happen. You can register multiple "
35889 "callbacks (for the same, different or overlapping sets of events), and "
35890 "individually remove callbacks. If callbacks are not removed, then they "
35891 "remain in force until the handle is closed."
35895 #: ../src/guestfs.pod:1687
35897 "In the current implementation, events are only generated synchronously: that "
35898 "means that events (and hence callbacks) can only happen while you are in the "
35899 "middle of making another libguestfs call. The callback is called in the "
35904 #: ../src/guestfs.pod:1692
35906 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35907 "unsigned integers, or a message buffer. Payloads are discussed later on."
35911 #: ../src/guestfs.pod:1696
35912 msgid "CLASSES OF EVENTS"
35916 #: ../src/guestfs.pod:1700
35917 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35921 #: ../src/guestfs.pod:1703
35923 "The callback function will be called while the handle is being closed "
35924 "(synchronously from L</guestfs_close>)."
35928 #: ../src/guestfs.pod:1706
35930 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35931 "handles that are open when the program exits. This means that this callback "
35932 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35933 "problems in higher-level languages (eg. if your HLL interpreter has already "
35934 "been cleaned up by the time this is called, and if your callback then jumps "
35935 "into some HLL function)."
35939 #: ../src/guestfs.pod:1713
35941 "If no callback is registered: the handle is closed without any callback "
35946 #: ../src/guestfs.pod:1716
35947 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35951 #: ../src/guestfs.pod:1719
35953 "The callback function will be called when the child process quits, either "
35954 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
35955 "corresponds to a transition from any state to the CONFIG state)."
35959 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732 ../src/guestfs.pod:1849
35960 msgid "If no callback is registered: the event is ignored."
35964 #: ../src/guestfs.pod:1725
35965 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35969 #: ../src/guestfs.pod:1728
35971 "The callback function will be called when the child process becomes ready "
35972 "first time after it has been launched. (This corresponds to a transition "
35973 "from LAUNCHING to the READY state)."
35977 #: ../src/guestfs.pod:1734
35978 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35982 #: ../src/guestfs.pod:1737
35984 "Some long-running operations can generate progress messages. If this "
35985 "callback is registered, then it will be called each time a progress message "
35986 "is generated (usually two seconds after the operation started, and three "
35987 "times per second thereafter until it completes, although the frequency may "
35988 "change in future versions)."
35992 #: ../src/guestfs.pod:1743
35994 "The callback receives in the payload four unsigned 64 bit numbers which are "
35995 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35999 #: ../src/guestfs.pod:1746
36001 "The units of C<total> are not defined, although for some operations C<total> "
36002 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36003 "or megabytes), and C<position> may be the portion which has been transferred."
36007 #: ../src/guestfs.pod:1751
36008 msgid "The only defined and stable parts of the API are:"
36012 #: ../src/guestfs.pod:1757
36014 "The callback can display to the user some type of progress bar or indicator "
36015 "which shows the ratio of C<position>:C<total>."
36019 #: ../src/guestfs.pod:1762
36020 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36024 #: ../src/guestfs.pod:1766
36026 "If any progress notification is sent during a call, then a final progress "
36027 "notification is always sent when C<position> = C<total> (I<unless> the call "
36028 "fails with an error)."
36032 #: ../src/guestfs.pod:1770
36034 "This is to simplify caller code, so callers can easily set the progress "
36035 "indicator to \"100%\" at the end of the operation, without requiring special "
36036 "code to detect this case."
36040 #: ../src/guestfs.pod:1776
36042 "For some calls we are unable to estimate the progress of the call, but we "
36043 "can still generate progress messages to indicate activity. This is known as "
36044 "\"pulse mode\", and is directly supported by certain progress bar "
36045 "implementations (eg. GtkProgressBar)."
36049 #: ../src/guestfs.pod:1781
36051 "For these calls, zero or more progress messages are generated with "
36052 "C<position = 0> and C<total = 1>, followed by a final message with "
36053 "C<position = total = 1>."
36057 #: ../src/guestfs.pod:1785
36059 "As noted above, if the call fails with an error then the final message may "
36060 "not be generated."
36064 #: ../src/guestfs.pod:1790
36066 "The callback also receives the procedure number (C<proc_nr>) and serial "
36067 "number (C<serial>) of the call. These are only useful for debugging "
36068 "protocol issues, and the callback can normally ignore them. The callback "
36069 "may want to print these numbers in error messages or debugging messages."
36073 #: ../src/guestfs.pod:1796
36074 msgid "If no callback is registered: progress messages are discarded."
36078 #: ../src/guestfs.pod:1798
36079 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36083 #: ../src/guestfs.pod:1801
36085 "The callback function is called whenever a log message is generated by qemu, "
36086 "the appliance kernel, guestfsd (daemon), or utility programs."
36090 #: ../src/guestfs.pod:1804
36092 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36093 "guestfs_launch>) then additional debug messages are generated."
36097 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
36099 "If no callback is registered: the messages are discarded unless the verbose "
36100 "flag is set in which case they are sent to stderr. You can override the "
36101 "printing of verbose messages to stderr by setting up a callback."
36105 #: ../src/guestfs.pod:1812
36106 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36110 #: ../src/guestfs.pod:1815
36112 "The callback function is called whenever a log message is generated by the "
36113 "library part of libguestfs."
36117 #: ../src/guestfs.pod:1818
36119 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36120 "messages are generated."
36124 #: ../src/guestfs.pod:1826
36125 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36129 #: ../src/guestfs.pod:1829
36131 "The callback function is called whenever a trace message is generated. This "
36132 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36136 #: ../src/guestfs.pod:1832
36138 "If no callback is registered: the messages are sent to stderr. You can "
36139 "override the printing of trace messages to stderr by setting up a callback."
36143 #: ../src/guestfs.pod:1836
36144 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36148 #: ../src/guestfs.pod:1839
36150 "The callback function is called whenever a libguestfs function is entered."
36154 #: ../src/guestfs.pod:1842
36156 "The payload is a string which contains the name of the function that we are "
36157 "entering (not including C<guestfs_> prefix)."
36161 #: ../src/guestfs.pod:1845
36163 "Note that libguestfs functions can call themselves, so you may see many "
36164 "events from a single call. A few libguestfs functions do not generate this "
36169 #: ../src/guestfs.pod:1853
36170 msgid "guestfs_set_event_callback"
36174 #: ../src/guestfs.pod:1855
36177 " int guestfs_set_event_callback (guestfs_h *g,\n"
36178 " guestfs_event_callback cb,\n"
36179 " uint64_t event_bitmask,\n"
36181 " void *opaque);\n"
36186 #: ../src/guestfs.pod:1861
36188 "This function registers a callback (C<cb>) for all event classes in the "
36189 "C<event_bitmask>."
36193 #: ../src/guestfs.pod:1864
36195 "For example, to register for all log message events, you could call this "
36196 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
36197 "To register a single callback for all possible classes of events, use "
36198 "C<GUESTFS_EVENT_ALL>."
36202 #: ../src/guestfs.pod:1870
36203 msgid "C<flags> should always be passed as 0."
36207 #: ../src/guestfs.pod:1872
36209 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
36210 "it for any purpose."
36214 #: ../src/guestfs.pod:1875
36216 "The return value is the event handle (an integer) which you can use to "
36217 "delete the callback (see below)."
36221 #: ../src/guestfs.pod:1878
36223 "If there is an error, this function returns C<-1>, and sets the error in the "
36224 "handle in the usual way (see L</guestfs_last_error> etc.)"
36228 #: ../src/guestfs.pod:1881
36230 "Callbacks remain in effect until they are deleted, or until the handle is "
36235 #: ../src/guestfs.pod:1884
36237 "In the case where multiple callbacks are registered for a particular event "
36238 "class, all of the callbacks are called. The order in which multiple "
36239 "callbacks are called is not defined."
36243 #: ../src/guestfs.pod:1888
36244 msgid "guestfs_delete_event_callback"
36248 #: ../src/guestfs.pod:1890
36251 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36256 #: ../src/guestfs.pod:1892
36258 "Delete a callback that was previously registered. C<event_handle> should be "
36259 "the integer that was returned by a previous call to "
36260 "C<guestfs_set_event_callback> on the same handle."
36264 #: ../src/guestfs.pod:1896
36265 msgid "guestfs_event_callback"
36269 #: ../src/guestfs.pod:1898
36272 " typedef void (*guestfs_event_callback) (\n"
36275 " uint64_t event,\n"
36276 " int event_handle,\n"
36278 " const char *buf, size_t buf_len,\n"
36279 " const uint64_t *array, size_t array_len);\n"
36284 #: ../src/guestfs.pod:1907
36286 "This is the type of the event callback function that you have to provide."
36290 #: ../src/guestfs.pod:1910
36292 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36293 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36294 "handle, and C<flags> which in the current API you should ignore."
36298 #: ../src/guestfs.pod:1914
36300 "The remaining parameters contain the event payload (if any). Each event may "
36301 "contain a payload, which usually relates to the event class, but for future "
36302 "proofing your code should be written to handle any payload for any event "
36307 #: ../src/guestfs.pod:1919
36309 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36310 "there is no message buffer). Note that this message buffer can contain "
36311 "arbitrary 8 bit data, including NUL bytes."
36315 #: ../src/guestfs.pod:1923
36317 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
36318 "moment this is only used for progress messages."
36322 #: ../src/guestfs.pod:1926
36323 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36327 #: ../src/guestfs.pod:1928
36329 "One motivation for the generic event API was to allow GUI programs to "
36330 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
36331 "unconditionally to C<stderr>."
36335 #: ../src/guestfs.pod:1932
36337 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36338 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
36339 "messages are not events; you must capture error messages separately)."
36343 #: ../src/guestfs.pod:1937
36345 "Programs have to set up a callback to capture the classes of events of "
36350 #: ../src/guestfs.pod:1940
36354 " guestfs_set_event_callback\n"
36355 " (g, message_callback,\n"
36356 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36357 " GUESTFS_EVENT_TRACE,\n"
36358 " 0, NULL) == -1)\n"
36359 " if (eh == -1) {\n"
36360 " // handle error in the usual way\n"
36366 #: ../src/guestfs.pod:1950
36368 "The callback can then direct messages to the appropriate place. In this "
36369 "example, messages are directed to syslog:"
36373 #: ../src/guestfs.pod:1953
36377 " message_callback (\n"
36380 " uint64_t event,\n"
36381 " int event_handle,\n"
36383 " const char *buf, size_t buf_len,\n"
36384 " const uint64_t *array, size_t array_len)\n"
36386 " const int priority = LOG_USER|LOG_INFO;\n"
36387 " if (buf_len > 0)\n"
36388 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36394 #: ../src/guestfs.pod:1968
36395 msgid "CANCELLING LONG TRANSFERS"
36399 #: ../src/guestfs.pod:1970
36401 "Some operations can be cancelled by the caller while they are in progress. "
36402 "Currently only operations that involve uploading or downloading data can be "
36403 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36404 "parameters in the generator)."
36408 #: ../src/guestfs.pod:1975
36409 msgid "guestfs_user_cancel"
36413 #: ../src/guestfs.pod:1977
36416 " void guestfs_user_cancel (guestfs_h *g);\n"
36421 #: ../src/guestfs.pod:1979
36423 "C<guestfs_user_cancel> cancels the current upload or download operation."
36427 #: ../src/guestfs.pod:1982
36429 "Unlike most other libguestfs calls, this function is signal safe and thread "
36430 "safe. You can call it from a signal handler or from another thread, without "
36431 "needing to do any locking."
36435 #: ../src/guestfs.pod:1986
36437 "The transfer that was in progress (if there is one) will stop shortly "
36438 "afterwards, and will return an error. The errno (see L</"
36439 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36440 "out if the operation was cancelled or failed because of another error."
36444 #: ../src/guestfs.pod:1992
36446 "No cleanup is performed: for example, if a file was being uploaded then "
36447 "after cancellation there may be a partially uploaded file. It is the "
36448 "caller's responsibility to clean up if necessary."
36452 #: ../src/guestfs.pod:1996
36453 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36457 #: ../src/guestfs.pod:1998
36459 "In an interactive text-based program, you might call it from a C<SIGINT> "
36460 "signal handler so that pressing C<^C> cancels the current operation. (You "
36461 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36462 "receive the C<^C> signal)."
36466 #: ../src/guestfs.pod:2003
36468 "In a graphical program, when the main thread is displaying a progress bar "
36469 "with a cancel button, wire up the cancel button to call this function."
36473 #: ../src/guestfs.pod:2007
36474 msgid "PRIVATE DATA AREA"
36478 #: ../src/guestfs.pod:2009
36480 "You can attach named pieces of private data to the libguestfs handle, fetch "
36481 "them by name, and walk over them, for the lifetime of the handle. This is "
36482 "called the private data area and is only available from the C API."
36486 #: ../src/guestfs.pod:2014
36487 msgid "To attach a named piece of data, use the following call:"
36491 #: ../src/guestfs.pod:2016
36494 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36497 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36501 #: ../src/guestfs.pod:2018
36503 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36504 "pointer (which can be C<NULL>). Any previous item with the same key is "
36509 #: ../src/guestfs.pod:2022
36511 "You can use any C<key> you want, but your key should I<not> start with an "
36512 "underscore character. Keys beginning with an underscore character are "
36513 "reserved for internal libguestfs purposes (eg. for implementing language "
36514 "bindings). It is recommended that you prefix the key with some unique "
36515 "string to avoid collisions with other users."
36519 #: ../src/guestfs.pod:2028
36520 msgid "To retrieve the pointer, use:"
36524 #: ../src/guestfs.pod:2030
36527 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36530 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36534 #: ../src/guestfs.pod:2032
36536 "This function returns C<NULL> if either no data is found associated with "
36537 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36542 #: ../src/guestfs.pod:2036
36544 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36545 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
36546 "all. In particular, libguestfs does I<not> try to free the data when the "
36547 "handle is closed. If the data must be freed, then the caller must either "
36548 "free it before calling L</guestfs_close> or must set up a close callback to "
36549 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36553 #: ../src/guestfs.pod:2043
36554 msgid "To walk over all entries, use these two functions:"
36558 #: ../src/guestfs.pod:2045
36561 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36566 #: ../src/guestfs.pod:2047
36569 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36574 #: ../src/guestfs.pod:2049
36576 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36577 "not have any particular meaning -- keys are not returned in any defined "
36578 "order). A pointer to the key is returned in C<*key_rtn> and the "
36579 "corresponding data pointer is returned from the function. C<NULL> is "
36580 "returned if there are no keys stored in the handle."
36584 #: ../src/guestfs.pod:2055
36586 "C<guestfs_next_private> returns the next key, pointer pair. The return "
36587 "value of this function is also C<NULL> is there are no further entries to "
36592 #: ../src/guestfs.pod:2059
36593 msgid "Notes about walking over entries:"
36597 #: ../src/guestfs.pod:2065
36599 "You must not call C<guestfs_set_private> while walking over the entries."
36603 #: ../src/guestfs.pod:2070
36605 "The handle maintains an internal iterator which is reset when you call "
36606 "C<guestfs_first_private>. This internal iterator is invalidated when you "
36607 "call C<guestfs_set_private>."
36611 #: ../src/guestfs.pod:2076
36612 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36616 #: ../src/guestfs.pod:2078
36619 " guestfs_set_private (g, key, NULL);\n"
36624 #: ../src/guestfs.pod:2080
36625 msgid "then that C<key> is not returned when walking."
36629 #: ../src/guestfs.pod:2084
36631 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36632 "C<guestfs_next_private> or C<guestfs_set_private>."
36636 #: ../src/guestfs.pod:2090
36638 "The following example code shows how to print all keys and data pointers "
36639 "that are associated with the handle C<g>:"
36643 #: ../src/guestfs.pod:2093
36646 " const char *key;\n"
36647 " void *data = guestfs_first_private (g, &key);\n"
36648 " while (data != NULL)\n"
36650 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36651 " data = guestfs_next_private (g, &key);\n"
36657 #: ../src/guestfs.pod:2101
36659 "More commonly you are only interested in keys that begin with an application-"
36660 "specific prefix C<foo_>. Modify the loop like so:"
36664 #: ../src/guestfs.pod:2104
36667 " const char *key;\n"
36668 " void *data = guestfs_first_private (g, &key);\n"
36669 " while (data != NULL)\n"
36671 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36672 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36673 " data = guestfs_next_private (g, &key);\n"
36679 #: ../src/guestfs.pod:2113
36681 "If you need to modify keys while walking, then you have to jump back to the "
36682 "beginning of the loop. For example, to delete all keys prefixed with "
36687 #: ../src/guestfs.pod:2117
36690 " const char *key;\n"
36693 " data = guestfs_first_private (g, &key);\n"
36694 " while (data != NULL)\n"
36696 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36698 " guestfs_set_private (g, key, NULL);\n"
36699 " /* note that 'key' pointer is now invalid, and so is\n"
36700 " the internal iterator */\n"
36703 " data = guestfs_next_private (g, &key);\n"
36709 #: ../src/guestfs.pod:2133
36711 "Note that the above loop is guaranteed to terminate because the keys are "
36712 "being deleted, but other manipulations of keys within the loop might not "
36713 "terminate unless you also maintain an indication of which keys have been "
36718 #: ../src/guestfs.pod:2138 ../src/guestfs.pod:2143
36723 #: ../src/guestfs.pod:2140
36725 "<!-- old anchor for the next section --> <a name="
36726 "\"state_machine_and_low_level_event_api\"/>"
36728 "<!-- old anchor for the next section --> <a name="
36729 "\"state_machine_and_low_level_event_api\"/>"
36732 #: ../src/guestfs.pod:2145
36733 msgid "ARCHITECTURE"
36734 msgstr "АРХІТЕКТУРА"
36737 #: ../src/guestfs.pod:2147
36739 "Internally, libguestfs is implemented by running an appliance (a special "
36740 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
36741 "process of the main program."
36745 #: ../src/guestfs.pod:2151
36748 " ___________________\n"
36750 " | main program |\n"
36752 " | | child process / appliance\n"
36753 " | | __________________________\n"
36755 " +-------------------+ RPC | +-----------------+ |\n"
36756 " | libguestfs <--------------------> guestfsd | |\n"
36757 " | | | +-----------------+ |\n"
36758 " \\___________________/ | | Linux kernel | |\n"
36759 " | +--^--------------+ |\n"
36760 " \\_________|________________/\n"
36762 " _______v______\n"
36765 " | disk image |\n"
36766 " \\______________/\n"
36771 #: ../src/guestfs.pod:2171
36773 "The library, linked to the main program, creates the child process and hence "
36774 "the appliance in the L</guestfs_launch> function."
36778 #: ../src/guestfs.pod:2174
36780 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36781 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36782 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
36783 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
36784 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
36785 "attached to the qemu process which translates device access by the "
36786 "appliance's Linux kernel into accesses to the image."
36790 #: ../src/guestfs.pod:2183
36792 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
36793 "Although the disk image you are attached to might also be used by some "
36794 "virtual machine, libguestfs doesn't know or care about this. (But you will "
36795 "care if both libguestfs's qemu process and your virtual machine are trying "
36796 "to update the disk image at the same time, since these usually results in "
36797 "massive disk corruption)."
36801 #: ../src/guestfs.pod:2190
36802 msgid "STATE MACHINE"
36803 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36806 #: ../src/guestfs.pod:2192
36807 msgid "libguestfs uses a state machine to model the child process:"
36811 #: ../src/guestfs.pod:2194
36815 " guestfs_create\n"
36823 " / | \\ \\ guestfs_launch\n"
36824 " / | _\\__V______\n"
36826 " / | | LAUNCHING |\n"
36827 " / | \\___________/\n"
36829 " / | guestfs_launch\n"
36831 " ______ / __|____V\n"
36832 " / \\ ------> / \\\n"
36833 " | BUSY | | READY |\n"
36834 " \\______/ <------ \\________/\n"
36839 #: ../src/guestfs.pod:2216
36841 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36842 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36843 "(3) alternating between READY and BUSY as commands are issued to, and "
36844 "carried out by, the child process."
36848 #: ../src/guestfs.pod:2221
36850 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36851 "asynchronously at any time (eg. due to some internal error), and that causes "
36852 "the state to transition back to CONFIG."
36856 #: ../src/guestfs.pod:2225
36858 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36859 "issued when in the CONFIG state."
36863 #: ../src/guestfs.pod:2228
36865 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
36866 "L</guestfs_launch> blocks until the child process is READY to accept "
36867 "commands (or until some failure or timeout). L</guestfs_launch> internally "
36868 "moves the state from CONFIG to LAUNCHING while it is running."
36872 #: ../src/guestfs.pod:2234
36874 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36875 "state. These API calls block waiting for the command to be carried out (ie. "
36876 "the state to transition to BUSY and then back to READY). There are no non-"
36877 "blocking versions, and no way to issue more than one command per handle at "
36882 #: ../src/guestfs.pod:2240
36884 "Finally, the child process sends asynchronous messages back to the main "
36885 "program, such as kernel log messages. You can register a callback to "
36886 "receive these messages."
36890 #: ../src/guestfs.pod:2244
36895 #: ../src/guestfs.pod:2246
36896 msgid "COMMUNICATION PROTOCOL"
36900 #: ../src/guestfs.pod:2248
36902 "Don't rely on using this protocol directly. This section documents how it "
36903 "currently works, but it may change at any time."
36907 #: ../src/guestfs.pod:2251
36909 "The protocol used to talk between the library and the daemon running inside "
36910 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36911 "1014, RFC 1832, RFC 4506)."
36915 #: ../src/guestfs.pod:2255
36917 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36918 "this file is automatically generated)."
36922 #: ../src/guestfs.pod:2258
36924 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36925 "and C<FileOut> parameters, which are handled with very simple request/reply "
36926 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
36927 "parameters, which use the same request and reply messages, but they may also "
36928 "be followed by files sent using a chunked encoding."
36932 #: ../src/guestfs.pod:2265
36933 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36937 #: ../src/guestfs.pod:2267
36938 msgid "For ordinary functions, the request message is:"
36942 #: ../src/guestfs.pod:2269
36945 " total length (header + arguments,\n"
36946 " but not including the length word itself)\n"
36947 " struct guestfs_message_header (encoded as XDR)\n"
36948 " struct guestfs_<foo>_args (encoded as XDR)\n"
36953 #: ../src/guestfs.pod:2274
36955 "The total length field allows the daemon to allocate a fixed size buffer "
36956 "into which it slurps the rest of the message. As a result, the total length "
36957 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36958 "effective size of any request is limited to somewhere under this size."
36962 #: ../src/guestfs.pod:2280
36964 "Note also that many functions don't take any arguments, in which case the "
36965 "C<guestfs_I<foo>_args> is completely omitted."
36969 #: ../src/guestfs.pod:2283
36971 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36972 "receiver knows what type of args structure to expect, or none at all."
36976 #: ../src/guestfs.pod:2287
36978 "For functions that take optional arguments, the optional arguments are "
36979 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36980 "arguments. A bitmask in the header indicates which optional arguments are "
36981 "meaningful. The bitmask is also checked to see if it contains bits set "
36982 "which the daemon does not know about (eg. if more optional arguments were "
36983 "added in a later version of the library), and this causes the call to be "
36988 #: ../src/guestfs.pod:2295
36989 msgid "The reply message for ordinary functions is:"
36993 #: ../src/guestfs.pod:2297
36996 " total length (header + ret,\n"
36997 " but not including the length word itself)\n"
36998 " struct guestfs_message_header (encoded as XDR)\n"
36999 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37004 #: ../src/guestfs.pod:2302
37006 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37007 "functions that return no formal return values."
37011 #: ../src/guestfs.pod:2305
37013 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37017 #: ../src/guestfs.pod:2308
37019 "In the case of an error, a flag is set in the header, and the reply message "
37020 "is slightly changed:"
37024 #: ../src/guestfs.pod:2311
37027 " total length (header + error,\n"
37028 " but not including the length word itself)\n"
37029 " struct guestfs_message_header (encoded as XDR)\n"
37030 " struct guestfs_message_error (encoded as XDR)\n"
37035 #: ../src/guestfs.pod:2316
37037 "The C<guestfs_message_error> structure contains the error message as a "
37042 #: ../src/guestfs.pod:2319
37043 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37047 #: ../src/guestfs.pod:2321
37049 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
37050 "The normal request message is sent (see above). However this is followed by "
37051 "a sequence of file chunks."
37055 #: ../src/guestfs.pod:2325
37058 " total length (header + arguments,\n"
37059 " but not including the length word itself,\n"
37060 " and not including the chunks)\n"
37061 " struct guestfs_message_header (encoded as XDR)\n"
37062 " struct guestfs_<foo>_args (encoded as XDR)\n"
37063 " sequence of chunks for FileIn param #0\n"
37064 " sequence of chunks for FileIn param #1 etc.\n"
37069 #: ../src/guestfs.pod:2333
37070 msgid "The \"sequence of chunks\" is:"
37074 #: ../src/guestfs.pod:2335
37077 " length of chunk (not including length word itself)\n"
37078 " struct guestfs_chunk (encoded as XDR)\n"
37079 " length of chunk\n"
37080 " struct guestfs_chunk (encoded as XDR)\n"
37082 " length of chunk\n"
37083 " struct guestfs_chunk (with data.data_len == 0)\n"
37088 #: ../src/guestfs.pod:2343
37090 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
37091 "is set in the final chunk to indicate either successful completion or early "
37096 #: ../src/guestfs.pod:2347
37098 "At time of writing there are no functions that have more than one FileIn "
37099 "parameter. However this is (theoretically) supported, by sending the "
37100 "sequence of chunks for each FileIn parameter one after another (from left to "
37105 #: ../src/guestfs.pod:2352
37107 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37108 "transfer. The library does this by sending a chunk with a special flag set "
37109 "to indicate cancellation. When the daemon sees this, it cancels the whole "
37110 "RPC, does I<not> send any reply, and goes back to reading the next request."
37114 #: ../src/guestfs.pod:2358
37116 "The daemon may also cancel. It does this by writing a special word "
37117 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
37118 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37119 "cancel chunk). The special word is chosen so that even if cancellation "
37120 "happens right at the end of the transfer (after the library has finished "
37121 "writing and has started listening for the reply), the \"spurious\" cancel "
37122 "flag will not be confused with the reply message."
37126 #: ../src/guestfs.pod:2367
37128 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37129 "limit), and also files where the size is not known in advance (eg. from "
37130 "pipes or sockets). However the chunks are rather small "
37131 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37132 "to keep much in memory."
37136 #: ../src/guestfs.pod:2373
37137 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37141 #: ../src/guestfs.pod:2375
37143 "The protocol for FileOut parameters is exactly the same as for FileIn "
37144 "parameters, but with the roles of daemon and library reversed."
37148 #: ../src/guestfs.pod:2378
37151 " total length (header + ret,\n"
37152 " but not including the length word itself,\n"
37153 " and not including the chunks)\n"
37154 " struct guestfs_message_header (encoded as XDR)\n"
37155 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37156 " sequence of chunks for FileOut param #0\n"
37157 " sequence of chunks for FileOut param #1 etc.\n"
37162 #: ../src/guestfs.pod:2386
37163 msgid "INITIAL MESSAGE"
37167 #: ../src/guestfs.pod:2388
37169 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37170 "which indicates that the guest and daemon is alive. This is what L</"
37171 "guestfs_launch> waits for."
37175 #: ../src/guestfs.pod:2392
37176 msgid "PROGRESS NOTIFICATION MESSAGES"
37180 #: ../src/guestfs.pod:2394
37182 "The daemon may send progress notification messages at any time. These are "
37183 "distinguished by the normal length word being replaced by "
37184 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37188 #: ../src/guestfs.pod:2398
37190 "The library turns them into progress callbacks (see L</"
37191 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37196 #: ../src/guestfs.pod:2402
37198 "The daemon self-limits the frequency of progress messages it sends (see "
37199 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
37204 #: ../src/guestfs.pod:2406
37205 msgid "LIBGUESTFS VERSION NUMBERS"
37209 #: ../src/guestfs.pod:2408
37211 "Since April 2010, libguestfs has started to make separate development and "
37212 "stable releases, along with corresponding branches in our git repository. "
37213 "These separate releases can be identified by version number:"
37217 #: ../src/guestfs.pod:2413
37220 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
37221 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37227 " | `-------- sub-version\n"
37229 " `------ always '1' because we don't change the ABI\n"
37234 #: ../src/guestfs.pod:2424
37235 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37239 #: ../src/guestfs.pod:2426
37241 "As time passes we cherry pick fixes from the development branch and backport "
37242 "those into the stable branch, the effect being that the stable branch should "
37243 "get more stable and less buggy over time. So the stable releases are ideal "
37244 "for people who don't need new features but would just like the software to "
37249 #: ../src/guestfs.pod:2432
37250 msgid "Our criteria for backporting changes are:"
37254 #: ../src/guestfs.pod:2438
37256 "Documentation changes which don't affect any code are backported unless the "
37257 "documentation refers to a future feature which is not in stable."
37261 #: ../src/guestfs.pod:2444
37263 "Bug fixes which are not controversial, fix obvious problems, and have been "
37264 "well tested are backported."
37268 #: ../src/guestfs.pod:2449
37270 "Simple rearrangements of code which shouldn't affect how it works get "
37271 "backported. This is so that the code in the two branches doesn't get too "
37272 "far out of step, allowing us to backport future fixes more easily."
37276 #: ../src/guestfs.pod:2455
37278 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37279 "exceptional case: the new feature is required in order to implement an "
37280 "important bug fix."
37284 #: ../src/guestfs.pod:2461
37286 "A new stable branch starts when we think the new features in development are "
37287 "substantial and compelling enough over the current stable branch to warrant "
37288 "it. When that happens we create new stable and development versions 1.N.0 "
37289 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
37290 "stable at this point, but by backporting fixes from development, that branch "
37291 "will stabilize over time."
37295 #: ../src/guestfs.pod:2469
37296 msgid "EXTENDING LIBGUESTFS"
37300 #: ../src/guestfs.pod:2471
37301 msgid "ADDING A NEW API ACTION"
37305 #: ../src/guestfs.pod:2473
37307 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37308 "documentation) are generated, and this makes it easy to extend the "
37313 #: ../src/guestfs.pod:2477
37314 msgid "To add a new API action there are two changes:"
37318 #: ../src/guestfs.pod:2483
37320 "You need to add a description of the call (name, parameters, return type, "
37321 "tests, documentation) to C<generator/generator_actions.ml>."
37325 #: ../src/guestfs.pod:2486
37327 "There are two sorts of API action, depending on whether the call goes "
37328 "through to the daemon in the appliance, or is serviced entirely by the "
37329 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
37330 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
37331 "an example of the latter, since a trace flag is maintained in the handle and "
37332 "all tracing is done on the library side."
37336 #: ../src/guestfs.pod:2494
37338 "Most new actions are of the first type, and get added to the "
37339 "C<daemon_functions> list. Each function has a unique procedure number used "
37340 "in the RPC protocol which is assigned to that action when we publish "
37341 "libguestfs and cannot be reused. Take the latest procedure number and "
37346 #: ../src/guestfs.pod:2500
37348 "For library-only actions of the second type, add to the "
37349 "C<non_daemon_functions> list. Since these functions are serviced by the "
37350 "library and do not travel over the RPC mechanism to the daemon, these "
37351 "functions do not need a procedure number, and so the procedure number is set "
37356 #: ../src/guestfs.pod:2508
37357 msgid "Implement the action (in C):"
37361 #: ../src/guestfs.pod:2510
37363 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37364 "C<daemon/> directory."
37368 #: ../src/guestfs.pod:2513
37370 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37371 "(note: double underscore) in the C<src/> directory."
37375 #: ../src/guestfs.pod:2516
37376 msgid "In either case, use another function as an example of what to do."
37380 #: ../src/guestfs.pod:2520
37381 msgid "After making these changes, use C<make> to compile."
37385 #: ../src/guestfs.pod:2522
37387 "Note that you don't need to implement the RPC, language bindings, manual "
37388 "pages or anything else. It's all automatically generated from the OCaml "
37393 #: ../src/guestfs.pod:2526
37394 msgid "ADDING TESTS FOR AN API ACTION"
37398 #: ../src/guestfs.pod:2528
37400 "You can supply zero or as many tests as you want per API call. The tests "
37401 "can either be added as part of the API description (C<generator/"
37402 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37403 "into C<regressions/>. Note that adding a script to C<regressions/> is "
37404 "slower, so if possible use the first method."
37408 #: ../src/guestfs.pod:2534
37410 "The following describes the test environment used when you add an API test "
37411 "in C<generator_actions.ml>."
37415 #: ../src/guestfs.pod:2537
37416 msgid "The test environment has 4 block devices:"
37420 #: ../src/guestfs.pod:2541
37421 msgid "C</dev/sda> 500MB"
37422 msgstr "C</dev/sda> 500 МБ"
37425 #: ../src/guestfs.pod:2543
37426 msgid "General block device for testing."
37430 #: ../src/guestfs.pod:2545
37431 msgid "C</dev/sdb> 50MB"
37432 msgstr "C</dev/sdb> 50 МБ"
37435 #: ../src/guestfs.pod:2547
37437 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37442 #: ../src/guestfs.pod:2550
37443 msgid "C</dev/sdc> 10MB"
37444 msgstr "C</dev/sdc> 10 МБ"
37447 #: ../src/guestfs.pod:2552
37448 msgid "Used in a few tests where two block devices are needed."
37452 #: ../src/guestfs.pod:2554
37453 msgid "C</dev/sdd>"
37454 msgstr "C</dev/sdd>"
37457 #: ../src/guestfs.pod:2556
37458 msgid "ISO with fixed content (see C<images/test.iso>)."
37462 #: ../src/guestfs.pod:2560
37464 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37465 "appliance and block devices are reused between tests. So don't try testing "
37466 "L</guestfs_kill_subprocess> :-x"
37470 #: ../src/guestfs.pod:2564
37472 "Each test starts with an initial scenario, selected using one of the "
37473 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
37474 "initialize the disks mentioned above in a particular way as documented in "
37475 "C<generator_types.ml>. You should not assume anything about the previous "
37476 "contents of other disks that are not initialized."
37480 #: ../src/guestfs.pod:2570
37482 "You can add a prerequisite clause to any individual test. This is a run-"
37483 "time check, which, if it fails, causes the test to be skipped. Useful if "
37484 "testing a command which might not work on all variations of libguestfs "
37485 "builds. A test that has prerequisite of C<Always> means to run "
37490 #: ../src/guestfs.pod:2576
37492 "In addition, packagers can skip individual tests by setting environment "
37493 "variables before running C<make check>."
37497 #: ../src/guestfs.pod:2579
37500 " SKIP_TEST_<CMD>_<NUM>=1\n"
37505 #: ../src/guestfs.pod:2581
37506 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37510 #: ../src/guestfs.pod:2583
37515 #: ../src/guestfs.pod:2585
37518 " SKIP_TEST_<CMD>=1\n"
37523 #: ../src/guestfs.pod:2587
37524 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37528 #: ../src/guestfs.pod:2589
37529 msgid "Packagers can run only certain tests by setting for example:"
37533 #: ../src/guestfs.pod:2591
37536 " TEST_ONLY=\"vfs_type zerofree\"\n"
37541 #: ../src/guestfs.pod:2593
37543 "See C<capitests/tests.c> for more details of how these environment variables "
37548 #: ../src/guestfs.pod:2596
37549 msgid "DEBUGGING NEW API ACTIONS"
37553 #: ../src/guestfs.pod:2598
37554 msgid "Test new actions work before submitting them."
37558 #: ../src/guestfs.pod:2600
37559 msgid "You can use guestfish to try out new commands."
37563 #: ../src/guestfs.pod:2602
37565 "Debugging the daemon is a problem because it runs inside a minimal "
37566 "environment. However you can fprintf messages in the daemon to stderr, and "
37567 "they will show up if you use C<guestfish -v>."
37571 #: ../src/guestfs.pod:2606
37572 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37576 #: ../src/guestfs.pod:2608
37578 "Our C source code generally adheres to some basic code-formatting "
37579 "conventions. The existing code base is not totally consistent on this "
37580 "front, but we do prefer that contributed code be formatted similarly. In "
37581 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37582 "indentation level, and other than that, follow the K&R style."
37586 #: ../src/guestfs.pod:2614
37588 "If you use Emacs, add the following to one of one of your start-up files (e."
37589 "g., ~/.emacs), to help ensure that you get indentation right:"
37593 #: ../src/guestfs.pod:2617
37596 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37597 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37598 " (add-hook 'find-file-hook\n"
37599 " '(lambda () (if (and buffer-file-name\n"
37600 " (string-match \"/libguestfs\\\\>\"\n"
37601 " (buffer-file-name))\n"
37602 " (not (string-equal mode-name \"Change Log\"))\n"
37603 " (not (string-equal mode-name \"Makefile\")))\n"
37604 " (setq indent-tabs-mode nil))))\n"
37609 #: ../src/guestfs.pod:2627
37612 " ;;; When editing C sources in libguestfs, use this style.\n"
37613 " (defun libguestfs-c-mode ()\n"
37614 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
37616 " (c-set-style \"K&R\")\n"
37617 " (setq c-indent-level 2)\n"
37618 " (setq c-basic-offset 2))\n"
37619 " (add-hook 'c-mode-hook\n"
37620 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37621 " (buffer-file-name))\n"
37622 " (libguestfs-c-mode))))\n"
37627 #: ../src/guestfs.pod:2639
37628 msgid "Enable warnings when compiling (and fix any problems this finds):"
37632 #: ../src/guestfs.pod:2642
37635 " ./configure --enable-gcc-warnings\n"
37638 " ./configure --enable-gcc-warnings\n"
37642 #: ../src/guestfs.pod:2644
37643 msgid "Useful targets are:"
37647 #: ../src/guestfs.pod:2646
37650 " make syntax-check # checks the syntax of the C code\n"
37651 " make check # runs the test suite\n"
37656 #: ../src/guestfs.pod:2649
37657 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37661 #: ../src/guestfs.pod:2651
37663 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37664 "which are used to do shell quoting."
37668 #: ../src/guestfs.pod:2656
37673 #: ../src/guestfs.pod:2658
37675 "Simple shell quoted string. Any spaces or other shell characters are "
37680 #: ../src/guestfs.pod:2661
37685 #: ../src/guestfs.pod:2663
37687 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37692 #: ../src/guestfs.pod:2670
37695 " asprintf (&cmd, \"cat %R\", path);\n"
37700 #: ../src/guestfs.pod:2672
37701 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37705 #: ../src/guestfs.pod:2674
37707 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37708 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
37709 "they are not passed via the shell (instead, straight to exec). You probably "
37710 "want to use the C<sysroot_path()> function however."
37714 #: ../src/guestfs.pod:2680
37715 msgid "SUBMITTING YOUR NEW API ACTIONS"
37719 #: ../src/guestfs.pod:2682
37721 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37722 "libguestfs> and CC to L<rjones@redhat.com>."
37726 #: ../src/guestfs.pod:2686
37727 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37731 #: ../src/guestfs.pod:2688
37732 msgid "We support i18n (gettext anyhow) in the library."
37736 #: ../src/guestfs.pod:2690
37738 "However many messages come from the daemon, and we don't translate those at "
37739 "the moment. One reason is that the appliance generally has all locale files "
37740 "removed from it, because they take up a lot of space. So we'd have to readd "
37741 "some of those, as well as copying our PO files into the appliance."
37745 #: ../src/guestfs.pod:2696
37747 "Debugging messages are never translated, since they are intended for the "
37752 #: ../src/guestfs.pod:2699
37753 msgid "SOURCE CODE SUBDIRECTORIES"
37757 #: ../src/guestfs.pod:2705
37758 msgid "The libguestfs appliance, build scripts and so on."
37762 #: ../src/guestfs.pod:2707
37763 msgid "C<capitests>"
37764 msgstr "C<capitests>"
37767 #: ../src/guestfs.pod:2709
37768 msgid "Automated tests of the C API."
37772 #: ../src/guestfs.pod:2711
37777 #: ../src/guestfs.pod:2713
37779 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37784 #: ../src/guestfs.pod:2716
37789 #: ../src/guestfs.pod:2718
37791 "Safety and liveness tests of components that libguestfs depends upon (not of "
37792 "libguestfs itself). Mainly this is for qemu and the kernel."
37796 #: ../src/guestfs.pod:2721
37798 msgstr "C<contrib>"
37801 #: ../src/guestfs.pod:2723
37802 msgid "Outside contributions, experimental parts."
37806 #: ../src/guestfs.pod:2725
37811 #: ../src/guestfs.pod:2727
37813 "The daemon that runs inside the libguestfs appliance and carries out actions."
37817 #: ../src/guestfs.pod:2730
37822 #: ../src/guestfs.pod:2732
37823 msgid "L<virt-df(1)> command and documentation."
37827 #: ../src/guestfs.pod:2734
37832 #: ../src/guestfs.pod:2736
37833 msgid "L<virt-edit(1)> command and documentation."
37837 #: ../src/guestfs.pod:2738
37838 msgid "C<examples>"
37839 msgstr "C<examples>"
37842 #: ../src/guestfs.pod:2740
37843 msgid "C API example code."
37844 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37847 #: ../src/guestfs.pod:2742
37852 #: ../src/guestfs.pod:2744
37854 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37855 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37856 "L<virt-tar-out(1)>."
37860 #: ../src/guestfs.pod:2748
37865 #: ../src/guestfs.pod:2750
37867 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37871 #: ../src/guestfs.pod:2752
37872 msgid "C<generator>"
37873 msgstr "C<generator>"
37876 #: ../src/guestfs.pod:2754
37878 "The crucially important generator, used to automatically generate large "
37879 "amounts of boilerplate C code for things like RPC and bindings."
37883 #: ../src/guestfs.pod:2757
37888 #: ../src/guestfs.pod:2759
37889 msgid "Files used by the test suite."
37893 #: ../src/guestfs.pod:2761
37894 msgid "Some \"phony\" guest images which we test against."
37898 #: ../src/guestfs.pod:2763
37899 msgid "C<inspector>"
37900 msgstr "C<inspector>"
37903 #: ../src/guestfs.pod:2765
37904 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37908 #: ../src/guestfs.pod:2767
37913 #: ../src/guestfs.pod:2769
37914 msgid "Logo used on the website. The fish is called Arthur by the way."
37918 #: ../src/guestfs.pod:2771
37923 #: ../src/guestfs.pod:2773
37924 msgid "M4 macros used by autoconf."
37928 #: ../src/guestfs.pod:2775
37933 #: ../src/guestfs.pod:2777
37934 msgid "Translations of simple gettext strings."
37935 msgstr "Переклади простих рядків gettext."
37938 #: ../src/guestfs.pod:2779
37940 msgstr "C<po-docs>"
37943 #: ../src/guestfs.pod:2781
37945 "The build infrastructure and PO files for translations of manpages and POD "
37946 "files. Eventually this will be combined with the C<po> directory, but that "
37947 "is rather complicated."
37951 #: ../src/guestfs.pod:2785
37952 msgid "C<regressions>"
37953 msgstr "C<regressions>"
37956 #: ../src/guestfs.pod:2787
37957 msgid "Regression tests."
37958 msgstr "Тести на регресії."
37961 #: ../src/guestfs.pod:2789
37966 #: ../src/guestfs.pod:2791
37967 msgid "L<virt-rescue(1)> command and documentation."
37971 #: ../src/guestfs.pod:2793
37976 #: ../src/guestfs.pod:2795
37977 msgid "Source code to the C library."
37981 #: ../src/guestfs.pod:2797
37986 #: ../src/guestfs.pod:2799
37987 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37991 #: ../src/guestfs.pod:2801
37992 msgid "C<test-tool>"
37993 msgstr "C<test-tool>"
37996 #: ../src/guestfs.pod:2803
37998 "Test tool for end users to test if their qemu/kernel combination will work "
38003 #: ../src/guestfs.pod:2806
38008 #: ../src/guestfs.pod:2808
38010 msgstr "C<haskell>"
38013 #: ../src/guestfs.pod:2810
38018 #: ../src/guestfs.pod:2812
38023 #: ../src/guestfs.pod:2814
38028 #: ../src/guestfs.pod:2816
38033 #: ../src/guestfs.pod:2818
38038 #: ../src/guestfs.pod:2820
38043 #: ../src/guestfs.pod:2822
38044 msgid "Language bindings."
38045 msgstr "Прив’язки до мов програмування."
38048 #: ../src/guestfs.pod:2826
38049 msgid "MAKING A STABLE RELEASE"
38053 #: ../src/guestfs.pod:2828
38055 "When we make a stable release, there are several steps documented here. See "
38056 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38061 #: ../src/guestfs.pod:2836
38063 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38067 #: ../src/guestfs.pod:2841
38068 msgid "Finalize RELEASE-NOTES."
38072 #: ../src/guestfs.pod:2845
38073 msgid "Update ROADMAP."
38077 #: ../src/guestfs.pod:2849
38078 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38082 #: ../src/guestfs.pod:2853
38083 msgid "Push and pull from Transifex."
38087 #: ../src/guestfs.pod:2855
38092 #: ../src/guestfs.pod:2857
38100 #: ../src/guestfs.pod:2859
38101 msgid "to push the latest POT files to Transifex. Then run:"
38105 #: ../src/guestfs.pod:2861
38113 #: ../src/guestfs.pod:2863
38114 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38118 #: ../src/guestfs.pod:2867
38120 "Create new stable and development directories under L<http://libguestfs.org/"
38125 #: ../src/guestfs.pod:2872
38126 msgid "Create the branch in git:"
38130 #: ../src/guestfs.pod:2874
38133 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38134 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38135 " git branch stable-1.XX\n"
38136 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38141 #: ../src/guestfs.pod:2881
38146 #: ../src/guestfs.pod:2883
38147 msgid "PROTOCOL LIMITS"
38148 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38151 #: ../src/guestfs.pod:2885
38153 "Internally libguestfs uses a message-based protocol to pass API calls and "
38154 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38155 "plenty more detail about this). The maximum message size used by the "
38156 "protocol is slightly less than 4 MB. For some API calls you may need to be "
38157 "aware of this limit. The API calls which may be affected are individually "
38158 "documented, with a link back to this section of the documentation."
38162 #: ../src/guestfs.pod:2893
38164 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38165 "a simple string. Because this string is at some point internally encoded as "
38166 "a message, the maximum size that it can return is slightly under 4 MB. If "
38167 "the requested file is larger than this then you will get an error."
38171 #: ../src/guestfs.pod:2899
38173 "In order to transfer large files into and out of the guest filesystem, you "
38174 "need to use particular calls that support this. The sections L</UPLOADING> "
38175 "and L</DOWNLOADING> document how to do this."
38179 #: ../src/guestfs.pod:2903
38181 "You might also consider mounting the disk image using our FUSE filesystem "
38182 "support (L<guestmount(1)>)."
38186 #: ../src/guestfs.pod:2906
38187 msgid "MAXIMUM NUMBER OF DISKS"
38191 #: ../src/guestfs.pod:2908
38192 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38196 #: ../src/guestfs.pod:2911
38198 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38199 "slots. However febootstrap only understands disks with names C</dev/vda> "
38200 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38205 #: ../src/guestfs.pod:2916
38207 "We are working to substantially raise this limit in future versions but it "
38208 "requires complex changes to qemu."
38212 #: ../src/guestfs.pod:2919
38214 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38215 "disks (add and remove disks after calling L</guestfs_launch>). This also "
38216 "requires changes to qemu."
38220 #: ../src/guestfs.pod:2923
38221 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38225 #: ../src/guestfs.pod:2925
38226 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38230 #: ../src/guestfs.pod:2927
38232 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38233 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38237 #: ../src/guestfs.pod:2930
38239 "If you attach a disk with more than 15 partitions, the extra partitions are "
38240 "ignored by libguestfs."
38244 #: ../src/guestfs.pod:2933
38245 msgid "MAXIMUM SIZE OF A DISK"
38249 #: ../src/guestfs.pod:2935
38250 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38254 #: ../src/guestfs.pod:2937
38256 "We have tested block devices up to 1 exabyte (2**60 or "
38257 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38262 #: ../src/guestfs.pod:2941
38264 "Although libguestfs probably does not impose any limit, the underlying host "
38265 "storage will. If you store disk images on a host ext4 filesystem, then the "
38266 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38267 "TB). If you store disk images as host logical volumes then you are limited "
38268 "by the maximum size of an LV."
38272 #: ../src/guestfs.pod:2947
38274 "For the hugest disk image files, we recommend using XFS on the host for "
38279 #: ../src/guestfs.pod:2950
38280 msgid "MAXIMUM SIZE OF A PARTITION"
38284 #: ../src/guestfs.pod:2952
38286 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38287 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
38288 "address a partition located beyond 2 TB on the disk."
38292 #: ../src/guestfs.pod:2956
38294 "It is recommended that you use GPT partitions on disks which are larger than "
38295 "this size. GPT uses 64 bit sector numbers and so can address partitions "
38296 "which are theoretically larger than the largest disk we could support."
38300 #: ../src/guestfs.pod:2961
38301 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38305 #: ../src/guestfs.pod:2963
38307 "This depends on the filesystem type. libguestfs itself does not impose any "
38308 "known limit. Consult Wikipedia or the filesystem documentation to find out "
38309 "what these limits are."
38313 #: ../src/guestfs.pod:2967
38314 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38318 #: ../src/guestfs.pod:2969
38320 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38321 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38322 "uploads and downloads."
38326 #: ../src/guestfs.pod:2973
38327 msgid "INSPECTION LIMITS"
38331 #: ../src/guestfs.pod:2975
38333 "The inspection code has several arbitrary limits on things like the size of "
38334 "Windows Registry hive it will read, and the length of product name. These "
38335 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38336 "memory and disk space on the host, and should not be reached in practice. "
38337 "See the source code for more information."
38341 #: ../src/guestfs.pod:3001
38343 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
38344 "effect as calling C<guestfs_set_verbose (g, 1)>."
38348 #: ../src/guestfs.pod:3013
38350 "Set the path that libguestfs uses to search for a supermin appliance. See "
38351 "the discussion of paths in section L</PATH> above."
38355 #: ../src/guestfs.pod:3022
38356 msgid "See also L</QEMU WRAPPERS> above."
38360 #: ../src/guestfs.pod:3026
38362 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
38363 "effect as calling C<guestfs_set_trace (g, 1)>."
38367 #: ../src/guestfs.pod:3044
38369 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38370 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38371 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38372 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38373 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38374 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38375 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38376 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38380 #: ../src/guestfs.pod:3074
38382 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38383 "(8)>, L<disktype(1)>."
38387 #: ../src/guestfs.pod:3081 ../tools/virt-make-fs.pl:553
38388 #: ../tools/virt-win-reg.pl:761
38393 #: ../src/guestfs.pod:3083
38394 msgid "To get a list of bugs against libguestfs use this link:"
38396 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38400 #: ../src/guestfs.pod:3085
38402 "L<https://bugzilla.redhat.com/buglist.cgi?"
38403 "component=libguestfs&product=Virtualization+Tools>"
38405 "L<https://bugzilla.redhat.com/buglist.cgi?"
38406 "component=libguestfs&product=Virtualization+Tools>"
38409 #: ../src/guestfs.pod:3087
38410 msgid "To report a new bug against libguestfs use this link:"
38411 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38414 #: ../src/guestfs.pod:3089
38416 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38417 "component=libguestfs&product=Virtualization+Tools>"
38419 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38420 "component=libguestfs&product=Virtualization+Tools>"
38423 #: ../src/guestfs.pod:3091
38424 msgid "When reporting a bug, please check:"
38428 #: ../src/guestfs.pod:3097
38429 msgid "That the bug hasn't been reported already."
38433 #: ../src/guestfs.pod:3101
38434 msgid "That you are testing a recent version."
38438 #: ../src/guestfs.pod:3105
38439 msgid "Describe the bug accurately, and give a way to reproduce it."
38443 #: ../src/guestfs.pod:3109
38445 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38450 #: ../test-tool/libguestfs-test-tool.pod:5
38451 msgid "libguestfs-test-tool - End user tests for libguestfs"
38455 #: ../test-tool/libguestfs-test-tool.pod:9
38458 " libguestfs-test-tool [--options]\n"
38463 #: ../test-tool/libguestfs-test-tool.pod:13
38465 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38466 "and developers, to allow them to check basic libguestfs functionality is "
38467 "working. This is needed because libguestfs occasionally breaks for reasons "
38468 "beyond our control: usually because of changes in the underlying qemu or "
38469 "kernel packages, or the host environment."
38473 #: ../test-tool/libguestfs-test-tool.pod:20
38474 msgid "If you suspect a problem in libguestfs, then just run:"
38478 #: ../test-tool/libguestfs-test-tool.pod:22
38481 " libguestfs-test-tool\n"
38486 #: ../test-tool/libguestfs-test-tool.pod:24
38487 msgid "It will print lots of diagnostic messages."
38491 #: ../test-tool/libguestfs-test-tool.pod:26
38492 msgid "If it runs to completion successfully, you will see this near the end:"
38496 #: ../test-tool/libguestfs-test-tool.pod:28
38499 " ===== TEST FINISHED OK =====\n"
38504 #: ../test-tool/libguestfs-test-tool.pod:30
38505 msgid "and the test tool will exit with code 0."
38509 #: ../test-tool/libguestfs-test-tool.pod:32
38511 "If it fails (and/or exits with non-zero error code), please paste the "
38512 "B<complete, unedited> output of the test tool into a bug report. More "
38513 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38518 #: ../test-tool/libguestfs-test-tool.pod:41
38523 #: ../test-tool/libguestfs-test-tool.pod:43
38524 msgid "Display short usage information and exit."
38528 #: ../test-tool/libguestfs-test-tool.pod:45
38529 msgid "I<--qemu qemu_binary>"
38530 msgstr "I<--qemu виконуваний_файл_qemu>"
38533 #: ../test-tool/libguestfs-test-tool.pod:47
38535 "If you have downloaded another qemu binary, point this option at the full "
38536 "path of the binary to try it."
38540 #: ../test-tool/libguestfs-test-tool.pod:50
38541 msgid "I<--qemudir qemu_source_dir>"
38545 #: ../test-tool/libguestfs-test-tool.pod:52
38547 "If you have compiled qemu from source, point this option at the source "
38548 "directory to try it."
38552 #: ../test-tool/libguestfs-test-tool.pod:55
38553 msgid "I<--timeout N>"
38554 msgstr "I<--timeout N>"
38557 #: ../test-tool/libguestfs-test-tool.pod:57
38559 "Set the launch timeout to C<N> seconds. The default is 120 seconds which "
38560 "does not usually need to be adjusted unless your machine is very slow."
38564 #: ../test-tool/libguestfs-test-tool.pod:63
38565 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38569 #: ../test-tool/libguestfs-test-tool.pod:65
38571 "If you have compiled another version of qemu from source and would like to "
38572 "try that, then you can use the I<--qemudir> option to point to the qemu "
38573 "source directory."
38577 #: ../test-tool/libguestfs-test-tool.pod:69
38579 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38580 "option to point to the binary."
38584 #: ../test-tool/libguestfs-test-tool.pod:72
38586 "When using an alternate qemu with libguestfs, usually you would need to "
38587 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38588 ">). libguestfs-test-tool writes a temporary qemu wrapper script when you "
38589 "use either of the I<--qemudir> or I<--qemu> options."
38593 #: ../test-tool/libguestfs-test-tool.pod:79
38595 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38596 "I<1> if there was an error."
38600 #: ../test-tool/libguestfs-test-tool.pod:84
38602 "For the full list of environment variables which may affect libguestfs, "
38603 "please see the L<guestfs(3)> manual page."
38607 #: ../test-tool/libguestfs-test-tool.pod:89
38608 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38612 #: ../tools/virt-list-filesystems.pl:32
38614 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38618 #: ../tools/virt-list-filesystems.pl:36
38621 " virt-list-filesystems [--options] domname\n"
38626 #: ../tools/virt-list-filesystems.pl:38
38629 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38634 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38636 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
38641 #: ../tools/virt-list-filesystems.pl:45
38643 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38644 "are contained in a virtual machine or disk image."
38648 #: ../tools/virt-list-filesystems.pl:49
38650 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38651 "functionality. For more complex cases you should look at the L<guestfish(1)"
38656 #: ../tools/virt-list-filesystems.pl:112
38658 "With this option, C<virt-list-filesystems> displays the type of each "
38659 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38663 #: ../tools/virt-list-filesystems.pl:119
38665 #| msgid "B<-a image>"
38667 msgstr "B<-a образ>"
38670 #: ../tools/virt-list-filesystems.pl:123
38672 "Normally we only show mountable filesystems. If this option is given then "
38673 "swap devices are shown too."
38677 #: ../tools/virt-list-filesystems.pl:197
38679 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38680 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38681 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38683 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38684 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38685 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38688 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38689 msgid "Copyright (C) 2009 Red Hat Inc."
38690 msgstr "© Red Hat Inc., 2009"
38693 #: ../tools/virt-list-partitions.pl:32
38695 "virt-list-partitions - List partitions in a virtual machine or disk image"
38699 #: ../tools/virt-list-partitions.pl:36
38702 " virt-list-partitions [--options] domname\n"
38705 " virt-list-partitions [--параметри] назва_домену\n"
38709 #: ../tools/virt-list-partitions.pl:38
38712 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38715 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38719 #: ../tools/virt-list-partitions.pl:45
38721 "C<virt-list-partitions> is a command line tool to list the partitions that "
38722 "are contained in a virtual machine or disk image. It is mainly useful as a "
38723 "first step to using L<virt-resize(1)>."
38727 #: ../tools/virt-list-partitions.pl:50
38729 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38730 "functionality. For more complex cases you should look at the L<guestfish(1)"
38735 #: ../tools/virt-list-partitions.pl:113
38736 msgid "Show sizes in human-readable form (eg. \"1G\")."
38740 #: ../tools/virt-list-partitions.pl:123
38742 "With this option, C<virt-list-partitions> displays the type and size of each "
38743 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38747 #: ../tools/virt-list-partitions.pl:130
38752 #: ../tools/virt-list-partitions.pl:132
38754 #| msgid "B<-t> | B<--total>"
38756 msgstr "B<-t> | B<--total>"
38759 #: ../tools/virt-list-partitions.pl:134
38761 "Display the total size of each block device (as a separate row or rows)."
38765 #: ../tools/virt-list-partitions.pl:267
38767 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38768 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38769 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38771 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38772 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38773 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38776 #: ../tools/virt-list-partitions.pl:283
38777 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38778 msgstr "© Red Hat Inc., 2009–2010"
38781 #: ../tools/virt-make-fs.pl:37
38782 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38786 #: ../tools/virt-make-fs.pl:41
38789 " virt-make-fs [--options] input.tar output.img\n"
38794 #: ../tools/virt-make-fs.pl:43
38797 " virt-make-fs [--options] input.tar.gz output.img\n"
38802 #: ../tools/virt-make-fs.pl:45
38805 " virt-make-fs [--options] directory output.img\n"
38810 #: ../tools/virt-make-fs.pl:49
38812 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38813 "archive or some files in a directory. It is similar to tools like L<mkisofs"
38814 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
38815 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38816 "you want to attach these filesystems to existing virtual machines (eg. to "
38817 "import large amounts of read-only data to a VM)."
38821 #: ../tools/virt-make-fs.pl:57
38822 msgid "Basic usage is:"
38826 #: ../tools/virt-make-fs.pl:59
38829 " virt-make-fs input output\n"
38834 #: ../tools/virt-make-fs.pl:61
38836 "where C<input> is either a directory containing files that you want to add, "
38837 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38838 "C<output> is a disk image. The input type is detected automatically. The "
38839 "output disk image defaults to a raw ext2 image unless you specify extra "
38840 "flags (see L</OPTIONS> below)."
38844 #: ../tools/virt-make-fs.pl:67
38845 msgid "EXTRA SPACE"
38849 #: ../tools/virt-make-fs.pl:69
38851 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38852 "the files that it contains, but might have extra space. Depending on how "
38853 "you are going to use the output, you might think this extra space is wasted "
38854 "and want to minimize it, or you might want to leave space so that more files "
38855 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
38856 "but you can use the I<--size> flag to leave space in the filesystem if you "
38861 #: ../tools/virt-make-fs.pl:77
38863 "An alternative way to leave extra space but not make the output image any "
38864 "bigger is to use an alternative disk image format (instead of the default "
38865 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38866 "image format (check your hypervisor supports this before using it). This "
38867 "allows you to choose a large I<--size> but the extra space won't actually be "
38868 "allocated in the image until you try to store something in it."
38872 #: ../tools/virt-make-fs.pl:85
38874 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38875 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38876 "to build another image from scratch."
38880 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38881 #: ../tools/virt-make-fs.pl:142
38886 #: ../tools/virt-make-fs.pl:91
38889 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38892 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38896 #: ../tools/virt-make-fs.pl:93
38897 msgid "FILESYSTEM TYPE"
38898 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38901 #: ../tools/virt-make-fs.pl:95
38903 "The default filesystem type is C<ext2>. Just about any filesystem type that "
38904 "libguestfs supports can be used (but I<not> read-only formats like "
38905 "ISO9660). Here are some of the more common choices:"
38909 #: ../tools/virt-make-fs.pl:101
38914 #: ../tools/virt-make-fs.pl:103
38916 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
38917 "you are not going to use the filesystem in a way that requires the journal, "
38918 "then this is just wasted overhead."
38922 #: ../tools/virt-make-fs.pl:107
38923 msgid "I<ntfs> or I<vfat>"
38924 msgstr "I<ntfs> або I<vfat>"
38927 #: ../tools/virt-make-fs.pl:109
38928 msgid "Useful if exporting data to a Windows guest."
38932 #: ../tools/virt-make-fs.pl:111
38934 "I<Note for vfat>: The tar archive or local directory must only contain files "
38935 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
38936 "program running within libguestfs is unable to change the ownership of non-"
38937 "root files, since vfat itself does not support this."
38941 #: ../tools/virt-make-fs.pl:116
38946 #: ../tools/virt-make-fs.pl:118
38948 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38949 "total filesystem size."
38953 #: ../tools/virt-make-fs.pl:125
38956 " virt-make-fs --type=minix input minixfs.img\n"
38961 #: ../tools/virt-make-fs.pl:127
38962 msgid "TO PARTITION OR NOT TO PARTITION"
38966 #: ../tools/virt-make-fs.pl:129
38967 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38971 #: ../tools/virt-make-fs.pl:131
38973 "Adding a partition can make the disk image more compatible with certain "
38974 "virtualized operating systems which don't expect to see a filesystem "
38975 "directly located on a block device (Linux doesn't care and will happily "
38976 "handle both types)."
38980 #: ../tools/virt-make-fs.pl:136
38982 "On the other hand, if you have a partition table then the output image is no "
38983 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
38984 "directly on a partitioned disk image. (However libguestfs tools such as "
38985 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38989 #: ../tools/virt-make-fs.pl:144
38990 msgid "Add an MBR partition:"
38994 #: ../tools/virt-make-fs.pl:146
38997 " virt-make-fs --partition -- input disk.img\n"
39002 #: ../tools/virt-make-fs.pl:148
39004 "If the output disk image could be terabyte-sized or larger, it's better to "
39005 "use an EFI/GPT-compatible partition table:"
39009 #: ../tools/virt-make-fs.pl:151
39012 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39017 #: ../tools/virt-make-fs.pl:179
39018 msgid "Enable debugging information."
39019 msgstr "Увімкнути виведення діагностичних даних."
39022 #: ../tools/virt-make-fs.pl:185
39023 msgid "B<--size=E<lt>NE<gt>>"
39024 msgstr "B<--size=E<lt>NE<gt>>"
39027 #: ../tools/virt-make-fs.pl:187
39028 msgid "B<--size=+E<lt>NE<gt>>"
39029 msgstr "B<--size=+E<lt>NE<gt>>"
39032 #: ../tools/virt-make-fs.pl:189
39033 msgid "B<-s E<lt>NE<gt>>"
39034 msgstr "B<-s E<lt>NE<gt>>"
39037 #: ../tools/virt-make-fs.pl:191
39038 msgid "B<-s +E<lt>NE<gt>>"
39039 msgstr "B<-s +E<lt>NE<gt>>"
39042 #: ../tools/virt-make-fs.pl:193
39044 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39048 #: ../tools/virt-make-fs.pl:196
39050 "If this option is I<not> given, then the output image will be just large "
39051 "enough to contain all the files, with not much wasted space."
39055 #: ../tools/virt-make-fs.pl:199
39057 "To choose a fixed size output disk, specify an absolute number followed by b/"
39058 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39059 "Petabytes or Exabytes. This must be large enough to contain all the input "
39060 "files, else you will get an error."
39064 #: ../tools/virt-make-fs.pl:204
39066 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39067 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39068 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
39069 "the input files, and (approximately) an extra 200 MB free space."
39073 #: ../tools/virt-make-fs.pl:210
39075 "Note that virt-make-fs estimates free space, and therefore will not produce "
39076 "filesystems containing precisely the free space requested. (It is much more "
39077 "expensive and time-consuming to produce a filesystem which has precisely the "
39078 "desired free space)."
39082 #: ../tools/virt-make-fs.pl:219
39083 msgid "B<--format=E<lt>fmtE<gt>>"
39087 #: ../tools/virt-make-fs.pl:221
39088 msgid "B<-F E<lt>fmtE<gt>>"
39092 #: ../tools/virt-make-fs.pl:223
39093 msgid "Choose the output disk image format."
39097 #: ../tools/virt-make-fs.pl:225
39098 msgid "The default is C<raw> (raw disk image)."
39102 #: ../tools/virt-make-fs.pl:227
39104 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
39105 "that would really make sense here is C<qcow2>."
39109 #: ../tools/virt-make-fs.pl:234
39110 msgid "B<--type=E<lt>fsE<gt>>"
39114 #: ../tools/virt-make-fs.pl:236
39115 msgid "B<-t E<lt>fsE<gt>>"
39119 #: ../tools/virt-make-fs.pl:238
39120 msgid "Choose the output filesystem type."
39124 #: ../tools/virt-make-fs.pl:240
39125 msgid "The default is C<ext2>."
39126 msgstr "Типовим значенням є C<ext2>."
39129 #: ../tools/virt-make-fs.pl:242
39131 "Any filesystem which is supported read-write by libguestfs can be used here."
39135 #: ../tools/virt-make-fs.pl:249
39136 msgid "B<--partition>"
39137 msgstr "B<--partition>"
39140 #: ../tools/virt-make-fs.pl:251
39141 msgid "B<--partition=E<lt>parttypeE<gt>>"
39145 #: ../tools/virt-make-fs.pl:253
39147 "If specified, this flag adds an MBR partition table to the output disk image."
39151 #: ../tools/virt-make-fs.pl:256
39153 "You can change the partition table type, eg. I<--partition=gpt> for large "
39158 #: ../tools/virt-make-fs.pl:259
39160 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39161 "might consider the next parameter to be the partition type. For example:"
39165 #: ../tools/virt-make-fs.pl:263
39168 " virt-make-fs --partition input.tar ...\n"
39173 #: ../tools/virt-make-fs.pl:265
39175 "would cause virt-make-fs to think you wanted to use a partition type of "
39176 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
39177 "dash) between options and the input file argument:"
39181 #: ../tools/virt-make-fs.pl:269
39184 " virt-make-fs --partition -- input.tar ...\n"
39187 " virt-make-fs --partition -- input.tar ...\n"
39191 #: ../tools/virt-make-fs.pl:541
39193 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39194 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39195 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39197 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39198 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39199 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39202 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39204 "When reporting bugs, please enable debugging and capture the I<complete> "
39209 #: ../tools/virt-make-fs.pl:558
39212 " export LIBGUESTFS_DEBUG=1\n"
39213 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39216 " export LIBGUESTFS_DEBUG=1\n"
39217 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39221 #: ../tools/virt-make-fs.pl:561
39223 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39228 #: ../tools/virt-tar.pl:33
39229 msgid "virt-tar - Extract or upload files to a virtual machine"
39233 #: ../tools/virt-tar.pl:37
39236 " virt-tar [--options] -x domname directory tarball\n"
39241 #: ../tools/virt-tar.pl:39
39244 " virt-tar [--options] -u domname tarball directory\n"
39249 #: ../tools/virt-tar.pl:41
39252 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39257 #: ../tools/virt-tar.pl:43
39260 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39265 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39270 #: ../tools/virt-tar.pl:47
39272 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39273 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39277 #: ../tools/virt-tar.pl:52
39278 msgid "Download C</home> from the VM into a local tarball:"
39282 #: ../tools/virt-tar.pl:54
39285 " virt-tar -x domname /home home.tar\n"
39290 #: ../tools/virt-tar.pl:56
39293 " virt-tar -zx domname /home home.tar.gz\n"
39298 #: ../tools/virt-tar.pl:58
39299 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39303 #: ../tools/virt-tar.pl:60
39306 " virt-tar -u domname uploadstuff.tar /tmp\n"
39311 #: ../tools/virt-tar.pl:62
39314 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39319 #: ../tools/virt-tar.pl:66
39321 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39322 "virtual machines. If you do this, you risk disk corruption in the VM. "
39323 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39327 #: ../tools/virt-tar.pl:71
39329 "You can use I<-x> (extract) on live virtual machines, but you might get "
39330 "inconsistent results or errors if there is filesystem activity inside the "
39331 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
39332 "work, but the only way to guarantee consistent results is if the virtual "
39333 "machine is shut down."
39337 #: ../tools/virt-tar.pl:79
39339 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39340 "parts of a guest filesystem. There are many possibilities: making backups, "
39341 "uploading data files, snooping on guest activity, fixing or customizing "
39346 #: ../tools/virt-tar.pl:84
39348 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
39349 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
39350 "should look at the L<guestfish(1)> tool."
39354 #: ../tools/virt-tar.pl:88
39356 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39357 "its contents (recursively) from the virtual machine into a local tarball. "
39358 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39359 "virtual machine. You cannot use these two options together."
39363 #: ../tools/virt-tar.pl:94
39365 "In addition, you may need to use the I<-z> (gZip) option to enable "
39366 "compression. When uploading, you have to specify I<-z> if the upload file "
39367 "is compressed because virt-tar won't detect this on its own."
39371 #: ../tools/virt-tar.pl:98
39373 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
39374 "example it cannot do PKZip files or bzip2 compression. If you want that "
39375 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
39376 "the L<libguestfs(3)> API)."
39380 #: ../tools/virt-tar.pl:160
39382 #| msgid "B<--format>"
39383 msgid "B<--extract>"
39384 msgstr "B<--format>"
39387 #: ../tools/virt-tar.pl:162
39389 #| msgid "download"
39390 msgid "B<--download>"
39394 #: ../tools/virt-tar.pl:164
39399 #: ../tools/virt-tar.pl:166
39401 #| msgid "B<-u> | B<--upload>"
39402 msgid "B<--upload>"
39403 msgstr "B<-u> | B<--upload>"
39406 #: ../tools/virt-tar.pl:168
39408 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39413 #: ../tools/virt-tar.pl:171
39415 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
39416 "Please read the L</WARNING> section above before using this option."
39420 #: ../tools/virt-tar.pl:175
39421 msgid "You must specify exactly one of these options."
39425 #: ../tools/virt-tar.pl:181
39430 #: ../tools/virt-tar.pl:183
39432 #| msgid "B<-z> | B<--gzip>"
39434 msgstr "B<-z> | B<--gzip>"
39437 #: ../tools/virt-tar.pl:185
39438 msgid "Specify that the input or output tarball is gzip-compressed."
39442 #: ../tools/virt-tar.pl:298
39444 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39445 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39446 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39449 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39450 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39451 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39455 #: ../tools/virt-win-reg.pl:37
39457 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39461 #: ../tools/virt-win-reg.pl:41
39464 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39469 #: ../tools/virt-win-reg.pl:43
39472 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39477 #: ../tools/virt-win-reg.pl:45
39480 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39485 #: ../tools/virt-win-reg.pl:47
39488 " virt-win-reg --merge domname [input.reg ...]\n"
39493 #: ../tools/virt-win-reg.pl:49
39496 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39501 #: ../tools/virt-win-reg.pl:53
39503 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39504 "virtual machines. If you do this, you I<will> get irreversible disk "
39505 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
39506 "but doesn't catch all cases."
39510 #: ../tools/virt-win-reg.pl:58
39512 "Modifying the Windows Registry is an inherently risky operation. The format "
39513 "is deliberately obscure and undocumented, and Registry changes can leave the "
39514 "system unbootable. Therefore when using the I<--merge> option, make sure "
39515 "you have a reliable backup first."
39519 #: ../tools/virt-win-reg.pl:65
39521 "This program can export and merge Windows Registry entries from a Windows "
39526 #: ../tools/virt-win-reg.pl:68
39528 "The first parameter is the libvirt guest name or the raw disk image of a "
39533 #: ../tools/virt-win-reg.pl:71
39535 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39536 "exported (recursively). For example:"
39540 #: ../tools/virt-win-reg.pl:74
39543 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39548 #: ../tools/virt-win-reg.pl:76
39550 "You can also display single values from within registry keys, for example:"
39554 #: ../tools/virt-win-reg.pl:79
39557 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39558 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39559 " Windows 7 Enterprise\n"
39564 #: ../tools/virt-win-reg.pl:83
39566 "With I<--merge>, you can merge a textual regedit file into the Windows "
39571 #: ../tools/virt-win-reg.pl:86
39574 " $ virt-win-reg --merge Windows7 changes.reg\n"
39579 #: ../tools/virt-win-reg.pl:90
39581 "This program is only meant for simple access to the registry. If you want "
39582 "to do complicated things with the registry, we suggest you download the "
39583 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39584 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39585 "L<hivexregedit(1)>."
39589 #: ../tools/virt-win-reg.pl:159
39591 msgstr "B<--merge>"
39594 #: ../tools/virt-win-reg.pl:161
39596 "In merge mode, this merges a textual regedit file into the Windows Registry "
39597 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
39598 "displays or exports Registry entries instead."
39602 #: ../tools/virt-win-reg.pl:165
39604 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39605 "result in disk corruption. However exporting (without this flag) is always "
39610 #: ../tools/virt-win-reg.pl:173
39611 msgid "B<--encoding> UTF-16LE|ASCII"
39615 #: ../tools/virt-win-reg.pl:175
39617 "When merging (only), you may need to specify the encoding for strings to be "
39618 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
39619 "(3)/ENCODING STRINGS>."
39623 #: ../tools/virt-win-reg.pl:179
39625 "The default is to use UTF-16LE, which should work with recent versions of "
39630 #: ../tools/virt-win-reg.pl:186
39631 msgid "B<--unsafe-printable-strings>"
39635 #: ../tools/virt-win-reg.pl:188
39637 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39638 "instead of hex sequences. Remove the final zero codepoint from strings if "
39643 #: ../tools/virt-win-reg.pl:192
39645 "This is unsafe and does not preserve the fidelity of strings in the original "
39646 "Registry for various reasons:"
39650 #: ../tools/virt-win-reg.pl:199
39652 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
39653 "other encodings will be corrupted by this transformation."
39657 #: ../tools/virt-win-reg.pl:204
39659 "Assumes that everything which has type 1 or 2 is really a string and that "
39660 "everything else is not a string, but the type field in real Registries is "
39665 #: ../tools/virt-win-reg.pl:210
39667 "Loses information about whether a zero codepoint followed the string in the "
39672 #: ../tools/virt-win-reg.pl:215
39674 "This all happens because the Registry itself contains no information about "
39675 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39679 #: ../tools/virt-win-reg.pl:219
39681 "You should only use this option for quick hacking and debugging of the "
39682 "Registry contents, and I<never> use it if the output is going to be passed "
39683 "into another program or stored in another Registry."
39687 #: ../tools/virt-win-reg.pl:556
39688 msgid "SUPPORTED SYSTEMS"
39692 #: ../tools/virt-win-reg.pl:558
39694 "The program currently supports Windows NT-derived guests starting with "
39695 "Windows XP through to at least Windows 7."
39699 #: ../tools/virt-win-reg.pl:561
39700 msgid "The following Registry keys are supported:"
39704 #: ../tools/virt-win-reg.pl:565
39705 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39709 #: ../tools/virt-win-reg.pl:567
39710 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39714 #: ../tools/virt-win-reg.pl:569
39715 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39719 #: ../tools/virt-win-reg.pl:571
39720 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39724 #: ../tools/virt-win-reg.pl:573
39725 msgid "C<HKEY_USERS\\.DEFAULT>"
39729 #: ../tools/virt-win-reg.pl:575
39730 msgid "C<HKEY_USERS\\I<SID>>"
39734 #: ../tools/virt-win-reg.pl:577
39735 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39739 #: ../tools/virt-win-reg.pl:579
39740 msgid "C<HKEY_USERS\\I<username>>"
39744 #: ../tools/virt-win-reg.pl:581
39746 "where I<username> is a local user name (this is a libguestfs extension)."
39750 #: ../tools/virt-win-reg.pl:585
39752 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39757 #: ../tools/virt-win-reg.pl:588
39759 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39760 "supported (there is no \"current user\")."
39764 #: ../tools/virt-win-reg.pl:591
39769 #: ../tools/virt-win-reg.pl:593
39771 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39772 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
39773 "style line endings. Since Windows regedit files are often in UTF-16LE with "
39774 "Windows-style line endings, you may need to reencode the whole file before "
39775 "or after processing."
39779 #: ../tools/virt-win-reg.pl:599
39781 "To reencode a file from Windows format to Linux (before processing it with "
39782 "the I<--merge> option), you would do something like this:"
39786 #: ../tools/virt-win-reg.pl:602
39789 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39794 #: ../tools/virt-win-reg.pl:604
39796 "To go in the opposite direction, after exporting and before sending the file "
39797 "to a Windows user, do something like this:"
39801 #: ../tools/virt-win-reg.pl:607
39804 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39809 #: ../tools/virt-win-reg.pl:609
39810 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39814 #: ../tools/virt-win-reg.pl:611
39816 "If you are unsure about the current encoding, use the L<file(1)> command. "
39817 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39818 "style (CRLF) line endings, like this:"
39822 #: ../tools/virt-win-reg.pl:615
39825 " $ file software.reg\n"
39826 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39827 " with CRLF line terminators\n"
39832 #: ../tools/virt-win-reg.pl:619
39833 msgid "This file would need conversion before you could I<--merge> it."
39837 #: ../tools/virt-win-reg.pl:621
39838 msgid "CurrentControlSet etc."
39842 #: ../tools/virt-win-reg.pl:623
39844 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39845 "Registry at the level of the hive file, and therefore you cannot modify "
39850 #: ../tools/virt-win-reg.pl:627
39852 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
39853 "circumstances it might refer to another control set. The way to find out is "
39854 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39858 #: ../tools/virt-win-reg.pl:631
39861 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39862 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39863 " \"Current\"=dword:00000001\n"
39864 " \"Default\"=dword:00000001\n"
39865 " \"Failed\"=dword:00000000\n"
39866 " \"LastKnownGood\"=dword:00000002\n"
39871 #: ../tools/virt-win-reg.pl:638
39872 msgid "\"Current\" is the one which Windows will choose when it boots."
39876 #: ../tools/virt-win-reg.pl:640
39878 "Similarly, other C<Current...> keys in the path may need to be replaced."
39882 #: ../tools/virt-win-reg.pl:643
39883 msgid "WINDOWS TIPS"
39887 #: ../tools/virt-win-reg.pl:645
39889 "Note that some of these tips modify the guest disk image. The guest I<must> "
39890 "be shut off, else you will get disk corruption."
39894 #: ../tools/virt-win-reg.pl:648
39895 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39899 #: ../tools/virt-win-reg.pl:650
39901 "Prepare a DOS batch script, VBScript or executable. Upload this using "
39902 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
39903 "is uploaded into C<C:\\>:"
39907 #: ../tools/virt-win-reg.pl:654
39910 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39915 #: ../tools/virt-win-reg.pl:656
39916 msgid "Prepare a regedit file containing the registry change:"
39920 #: ../tools/virt-win-reg.pl:658
39923 " cat > test.reg <<'EOF'\n"
39924 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39925 " \"Test\"=\"c:\\\\test.bat\"\n"
39931 #: ../tools/virt-win-reg.pl:663
39933 "In this example we use the key C<RunOnce> which means that the script will "
39934 "run precisely once when the first user logs in. If you want it to run every "
39935 "time a user logs in, replace C<RunOnce> with C<Run>."
39939 #: ../tools/virt-win-reg.pl:667
39940 msgid "Now update the registry:"
39944 #: ../tools/virt-win-reg.pl:669
39947 " virt-win-reg --merge WindowsGuest test.reg\n"
39952 #: ../tools/virt-win-reg.pl:671
39953 msgid "INSTALLING A SERVICE"
39957 #: ../tools/virt-win-reg.pl:673
39959 "This section assumes you are familiar with Windows services, and you either "
39960 "have a program which handles the Windows Service Control Protocol directly "
39961 "or you want to run any program using a service wrapper like SrvAny or the "
39966 #: ../tools/virt-win-reg.pl:678
39968 "First upload the program and optionally the service wrapper. In this case "
39969 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39973 #: ../tools/virt-win-reg.pl:682
39976 " guestfish -i -d WindowsGuest <<EOF\n"
39977 " upload rhsrvany.exe /rhsrvany.exe\n"
39978 " upload test.exe /test.exe\n"
39984 #: ../tools/virt-win-reg.pl:687
39986 "Prepare a regedit file containing the registry changes. In this example, "
39987 "the first registry change is needed for the service itself or the service "
39988 "wrapper (if used). The second registry change is only needed because I am "
39989 "using the RHSrvAny service wrapper."
39993 #: ../tools/virt-win-reg.pl:692
39996 " cat > service.reg <<'EOF'\n"
39997 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39998 " \"Type\"=dword:00000010\n"
39999 " \"Start\"=dword:00000002\n"
40000 " \"ErrorControl\"=dword:00000001\n"
40001 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40002 " \"DisplayName\"=\"RHSrvAny\"\n"
40003 " \"ObjectName\"=\"NetworkService\"\n"
40008 #: ../tools/virt-win-reg.pl:701
40011 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40012 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40013 " \"PWD\"=\"c:\\\\Temp\"\n"
40019 #: ../tools/virt-win-reg.pl:712
40021 "For use of C<ControlSet001> see the section above in this manual page. You "
40022 "may need to adjust this according to the control set that is in use by the "
40027 #: ../tools/virt-win-reg.pl:718
40029 "C<\"ObjectName\"> controls the privileges that the service will have. An "
40030 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40031 "privileged account."
40035 #: ../tools/virt-win-reg.pl:724
40037 "For the meaning of the magic numbers, see this Microsoft KB article: "
40038 "L<http://support.microsoft.com/kb/103000>."
40042 #: ../tools/virt-win-reg.pl:729
40043 msgid "Update the registry:"
40047 #: ../tools/virt-win-reg.pl:731
40050 " virt-win-reg --merge WindowsGuest service.reg\n"
40055 #: ../tools/virt-win-reg.pl:735
40057 "Be careful when passing parameters containing C<\\> (backslash) in the "
40058 "shell. Usually you will have to use 'single quotes' or double backslashes "
40059 "(but not both) to protect them from the shell."
40063 #: ../tools/virt-win-reg.pl:739
40064 msgid "Paths and value names are case-insensitive."
40068 #: ../tools/virt-win-reg.pl:748
40070 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40071 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40072 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40076 #: ../tools/virt-win-reg.pl:766
40079 " export LIBGUESTFS_DEBUG=1\n"
40080 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40085 #: ../tools/virt-win-reg.pl:769
40087 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40091 #~ msgid "EXIT CODE"
40092 #~ msgstr "КОД ВИХОДУ"
40095 #~ " g = guestfs_create ();\n"
40098 #~ " g = guestfs_create ();\n"
40101 #~ msgid "B<-a> | B<--all>"
40102 #~ msgstr "B<-a> | B<--all>"
40104 #~ msgid "B<-x> | B<--extract> | B<--download>"
40105 #~ msgstr "B<-x> | B<--extract> | B<--download>"