1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-09-14 18:20+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:36
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 ../test-tool/libguestfs-test-tool.pod:40
263 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
264 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
265 #: ../tools/virt-win-reg.pl:104
270 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
271 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
272 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
273 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
274 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
275 #: ../tools/virt-win-reg.pl:106
276 msgid "Display brief help."
280 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
281 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
282 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
284 #| msgid "B<-f file>"
289 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
290 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
291 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
293 #| msgid "B<--add image>"
294 msgid "B<--add> file"
295 msgstr "B<--add образ>"
298 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
299 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
300 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
302 "Add I<file> which should be a disk image from a virtual machine. If the "
303 "virtual machine has multiple block devices, you must supply all of them with "
304 "separate I<-a> options."
308 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
309 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
310 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
311 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
313 "The format of the disk image is auto-detected. To override this and force a "
314 "particular format use the I<--format=..> option."
318 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
319 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
323 msgstr "B<-c адреса>"
326 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
327 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
329 #| msgid "B<--connect URI>"
330 msgid "B<--connect> URI"
331 msgstr "B<--connect адреса>"
334 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
335 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
336 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
337 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
338 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
340 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
341 "to the default libvirt hypervisor."
345 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
346 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
348 "If you specify guest block devices directly (I<-a>), then libvirt is not "
353 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
354 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
355 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
360 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
361 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
362 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
363 msgid "B<--domain> guest"
367 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
368 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
369 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
371 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
376 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
377 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
378 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
379 msgid "B<--echo-keys>"
380 msgstr "B<--echo-keys>"
383 #: ../cat/virt-cat.pod:100
385 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
386 "so you cannot see what you are typing. If you are not worried about Tempest "
387 "attacks and there is no one else in the room you can specify this flag to "
388 "see what you are typing."
392 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
393 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
394 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
395 #: ../rescue/virt-rescue.pod:124
396 msgid "B<--format=raw|qcow2|..>"
397 msgstr "B<--format=raw|qcow2|..>"
400 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
401 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
402 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
403 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
408 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
409 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
410 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
411 #: ../rescue/virt-rescue.pod:128
413 "The default for the I<-a> option is to auto-detect the format of the disk "
414 "image. Using this forces the disk format for I<-a> options which follow on "
415 "the command line. Using I<--format> with no argument switches back to auto-"
416 "detection for subsequent I<-a> options."
420 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
421 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
422 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
423 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
424 #: ../src/guestfs.pod:2761
429 #: ../cat/virt-cat.pod:116
432 #| " guestfish --format=raw -a disk.img\n"
435 " virt-cat --format=raw -a disk.img file\n"
438 " guestfish --format=raw -a disk.img\n"
442 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
443 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
444 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
445 msgid "forces raw format (no auto-detection) for C<disk.img>."
449 #: ../cat/virt-cat.pod:120
452 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
455 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
458 " guestfish --format=raw -a disk.img --format -a another.img\n"
462 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
463 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
464 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
466 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
467 "detection for C<another.img>."
471 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
472 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
473 #: ../rescue/virt-rescue.pod:144
475 "If you have untrusted raw-format guest disk images, you should use this "
476 "option to specify the disk format. This avoids a possible security problem "
477 "with malicious guests (CVE-2010-3851)."
481 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
482 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
483 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
484 msgid "B<--keys-from-stdin>"
485 msgstr "B<--keys-from-stdin>"
488 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
489 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
490 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
492 "Read key or passphrase parameters from stdin. The default is to try to read "
493 "passphrases from the user by opening C</dev/tty>."
497 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
498 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
499 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
500 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
505 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
506 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
507 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
508 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
510 msgstr "B<--verbose>"
513 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
514 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
515 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
516 msgid "Enable verbose messages for debugging."
520 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
521 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
522 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
523 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
524 #: ../resize/virt-resize.pod:484
529 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
530 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
531 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
532 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
533 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
534 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
535 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
537 msgstr "B<--version>"
540 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
541 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
542 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
543 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
544 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
545 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
546 msgid "Display version number and exit."
547 msgstr "Показати дані щодо версії і завершити роботу."
550 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
551 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
552 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
553 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
554 #: ../tools/virt-tar.pl:158
559 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
560 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
561 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
562 msgid "Enable tracing of libguestfs API calls."
566 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
567 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
568 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
572 #: ../cat/virt-cat.pod:154
573 msgid "Previous versions of virt-cat allowed you to write either:"
577 #: ../cat/virt-cat.pod:156
580 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
583 " virt-cat disk.img [disk.img ...] file\n"
586 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
590 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
591 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
598 #: ../cat/virt-cat.pod:160
601 " virt-cat guestname file\n"
606 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
607 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
609 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
610 "the confusing case where a disk image might have the same name as a guest."
614 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
615 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
616 msgid "For compatibility the old style is still supported."
620 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
621 msgid "USING GUESTFISH"
625 #: ../cat/virt-cat.pod:170
627 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
628 "C<virt-cat> doesn't work."
632 #: ../cat/virt-cat.pod:173
633 msgid "Using C<virt-cat> is approximately equivalent to doing:"
637 #: ../cat/virt-cat.pod:175
640 #| " guestfish --ro -d myguest -i\n"
643 " guestfish --ro -i -d domname download file -\n"
646 " guestfish --ro -d myguest -i\n"
650 #: ../cat/virt-cat.pod:177
652 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
653 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
657 #: ../cat/virt-cat.pod:181
659 "The command above uses libguestfs's guest inspection feature and so does not "
660 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
661 "disk images that don't contain guests. To display a file from a disk image "
666 #: ../cat/virt-cat.pod:186
669 #| " guestfish [--ro] -i disk.img\n"
672 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
675 " guestfish [--ro] -i disk.img\n"
679 #: ../cat/virt-cat.pod:188
681 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
682 "the disk image, and C<file> is the full path to the file."
686 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
687 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
688 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:262
689 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
690 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
691 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
692 msgid "SHELL QUOTING"
696 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
697 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
698 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:264
699 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
700 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
701 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
703 "Libvirt guest names can contain arbitrary characters, some of which have "
704 "meaning to the shell such as C<#> and space. You may need to quote or "
705 "escape these characters on the command line. See the shell manual page L<sh"
710 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
711 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
712 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
713 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
714 #: ../test-tool/libguestfs-test-tool.pod:90
719 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
720 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
721 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
722 #: ../resize/virt-resize.pod:610
724 "This program returns 0 if successful, or non-zero if there was an error."
728 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
729 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
730 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
731 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
732 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
733 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
734 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
735 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
736 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
737 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
738 #: ../src/guestfs.pod:3135 ../test-tool/libguestfs-test-tool.pod:100
739 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
740 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
741 #: ../tools/virt-win-reg.pl:746
743 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
746 #: ../cat/virt-cat.pod:205
749 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
750 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
751 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
753 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
754 "tar-out(1)>, L<http://libguestfs.org/>."
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
757 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
758 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
761 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
762 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
763 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:634
764 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
765 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
766 #: ../tools/virt-win-reg.pl:772
771 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
772 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
773 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294
774 #: ../resize/virt-resize.pod:636 ../tools/virt-list-filesystems.pl:210
775 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
776 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
777 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
778 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
781 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
782 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
783 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
784 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
785 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
786 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
787 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61
788 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
789 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
790 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:51
791 #: ../src/guestfs.pod:3211 ../test-tool/libguestfs-test-tool.pod:110
792 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
793 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
794 #: ../tools/virt-win-reg.pl:776
796 msgstr "АВТОРСЬКІ ПРАВА"
799 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
800 #: ../resize/virt-resize.pod:640
802 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
803 msgid "Copyright (C) 2010-2011 Red Hat Inc."
804 msgstr "© Red Hat Inc., 2009–2010"
807 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
808 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
809 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
810 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
811 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
812 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300
813 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:115
814 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
815 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
816 #: ../tools/virt-win-reg.pl:780
818 "This program is free software; you can redistribute it and/or modify it "
819 "under the terms of the GNU General Public License as published by the Free "
820 "Software Foundation; either version 2 of the License, or (at your option) "
825 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
826 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
827 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
828 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
829 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
830 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305
831 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:120
832 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
833 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
834 #: ../tools/virt-win-reg.pl:785
836 "This program is distributed in the hope that it will be useful, but WITHOUT "
837 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
838 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
841 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
842 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
843 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
844 "дізнатися з GNU General Public License."
847 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
848 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
849 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
850 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
851 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
852 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310
853 #: ../resize/virt-resize.pod:652 ../test-tool/libguestfs-test-tool.pod:125
854 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
855 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
856 #: ../tools/virt-win-reg.pl:790
858 "You should have received a copy of the GNU General Public License along with "
859 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
860 "Ave, Cambridge, MA 02139, USA."
864 #: ../cat/virt-filesystems.pod:5
866 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
867 "virtual machine or disk image"
871 #: ../cat/virt-filesystems.pod:9
874 #| " virt-list-partitions [--options] domname\n"
877 " virt-filesystems [--options] -d domname\n"
880 " virt-list-partitions [--параметри] назва_домену\n"
884 #: ../cat/virt-filesystems.pod:11
887 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
890 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
893 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
897 #: ../cat/virt-filesystems.pod:15
899 "This tool allows you to discover filesystems, partitions, logical volumes, "
900 "and their sizes in a disk image or virtual machine. It is a replacement for "
901 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
905 #: ../cat/virt-filesystems.pod:20
907 "One use for this tool is from shell scripts to iterate over all filesystems "
912 #: ../cat/virt-filesystems.pod:23
915 " for fs in $(virt-filesystems -a disk.img); do\n"
922 #: ../cat/virt-filesystems.pod:27
924 "Another use is to list partitions before using another tool to modify those "
925 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
926 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
930 #: ../cat/virt-filesystems.pod:32
932 "Various command line options control what this program displays. You need "
933 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
934 "guest respectively. If you just specify that then the program shows "
935 "filesystems found, one per line, like this:"
939 #: ../cat/virt-filesystems.pod:37
942 " $ virt-filesystems -a disk.img\n"
944 " /dev/vg_guest/lv_root\n"
949 #: ../cat/virt-filesystems.pod:41
951 "If you add I<-l> or I<--long> then the output includes extra information:"
955 #: ../cat/virt-filesystems.pod:44
958 " $ virt-filesystems -a disk.img -l\n"
959 " Name Type VFS Label Size\n"
960 " /dev/sda1 filesystem ext4 boot 524288000\n"
961 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
966 #: ../cat/virt-filesystems.pod:49
968 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
973 #: ../cat/virt-filesystems.pod:52
976 " $ virt-filesystems -a disk.img --extra\n"
978 " /dev/vg_guest/lv_root\n"
979 " /dev/vg_guest/lv_swap\n"
980 " /dev/vg_guest/lv_data\n"
985 #: ../cat/virt-filesystems.pod:58
987 "If you add I<--partitions> then partitions are shown instead of filesystems:"
991 #: ../cat/virt-filesystems.pod:60
994 " $ virt-filesystems -a disk.img --partitions\n"
1001 #: ../cat/virt-filesystems.pod:64
1003 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1004 "volumes>, I<--block-devices> to list those items."
1008 #: ../cat/virt-filesystems.pod:67
1010 "You can use these options in combination as well (if you want a combination "
1011 "including filesystems, you have to add I<--filesystems>). Notice that some "
1012 "items fall into several categories (eg. C</dev/sda1> might be both a "
1013 "partition and a filesystem). These items are listed several times. To get "
1014 "a list which includes absolutely everything that virt-filesystems knows "
1015 "about, use the I<--all> option."
1019 #: ../cat/virt-filesystems.pod:74
1021 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1022 "uuid> option to display device and filesystem UUIDs in the long output."
1026 #: ../cat/virt-filesystems.pod:78
1028 "I<--all --long --uuid> is a useful combination to display all possible "
1029 "information about everything."
1033 #: ../cat/virt-filesystems.pod:81
1036 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1037 " Name Type VFS Label Size Parent UUID\n"
1038 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1039 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1040 " /dev/sda1 partition - - 100M /dev/sda -\n"
1041 " /dev/sda2 partition - - 20G /dev/sda -\n"
1042 " /dev/sda device - - 20G - -\n"
1047 #: ../cat/virt-filesystems.pod:89
1049 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1053 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1055 #| msgid "B<--help>"
1060 #: ../cat/virt-filesystems.pod:112
1062 "Display everything. This is currently the same as specifying these options: "
1063 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1064 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1065 "added to this list in future)."
1069 #: ../cat/virt-filesystems.pod:117
1071 #| msgid "See also L</is-lv>."
1072 msgid "See also I<--long>."
1073 msgstr "Див. також L</is-lv>."
1076 #: ../cat/virt-filesystems.pod:119
1078 #| msgid "B<--live>"
1079 msgid "B<--blkdevs>"
1083 #: ../cat/virt-filesystems.pod:121
1085 #| msgid "is-blockdev"
1086 msgid "B<--block-devices>"
1087 msgstr "is-blockdev"
1090 #: ../cat/virt-filesystems.pod:123
1092 #| msgid "is-blockdev"
1093 msgid "Display block devices."
1094 msgstr "is-blockdev"
1097 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1104 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1106 "Write out the results in CSV format (comma-separated values). This format "
1107 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1108 "ABOUT CSV FORMAT> below."
1112 #: ../cat/virt-filesystems.pod:150
1114 "When prompting for keys and passphrases, virt-filesystems normally turns "
1115 "echoing off so you cannot see what you are typing. If you are not worried "
1116 "about Tempest attacks and there is no one else in the room you can specify "
1117 "this flag to see what you are typing."
1121 #: ../cat/virt-filesystems.pod:155
1128 #: ../cat/virt-filesystems.pod:157
1130 "This causes filesystems that are not ordinary, mountable filesystems to be "
1131 "displayed. This category includes swapspace, and filesystems that are empty "
1132 "or contain unknown data."
1136 #: ../cat/virt-filesystems.pod:161
1137 msgid "This option implies I<--filesystems>."
1141 #: ../cat/virt-filesystems.pod:163
1143 #| msgid "list-filesystems"
1144 msgid "B<--filesystems>"
1145 msgstr "list-filesystems"
1148 #: ../cat/virt-filesystems.pod:165
1150 "Display mountable filesystems. If no display option was selected then this "
1151 "option is implied."
1155 #: ../cat/virt-filesystems.pod:168
1156 msgid "With I<--extra>, non-mountable filesystems are shown too."
1160 #: ../cat/virt-filesystems.pod:181
1163 #| " guestfish --format=raw -a disk.img\n"
1166 " virt-filesystems --format=raw -a disk.img\n"
1169 " guestfish --format=raw -a disk.img\n"
1173 #: ../cat/virt-filesystems.pod:185
1176 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1179 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1182 " guestfish --format=raw -a disk.img --format -a another.img\n"
1186 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1187 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1188 #: ../tools/virt-list-partitions.pl:109
1193 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1194 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1196 #| msgid "B<-h> | B<--human-readable>"
1197 msgid "B<--human-readable>"
1198 msgstr "B<-h> | B<--human-readable>"
1201 #: ../cat/virt-filesystems.pod:198
1202 msgid "In I<--long> mode, display sizes in human-readable format."
1206 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1207 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1212 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1213 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1220 #: ../cat/virt-filesystems.pod:209
1221 msgid "Display extra columns of data (\"long format\")."
1225 #: ../cat/virt-filesystems.pod:211
1226 msgid "A title row is added unless you also specify I<--no-title>."
1230 #: ../cat/virt-filesystems.pod:213
1232 "The extra columns displayed depend on what output you select, and the "
1233 "ordering of columns may change in future versions. Use the title row, I<--"
1234 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1239 #: ../cat/virt-filesystems.pod:218
1241 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1242 "default is to show raw numbers of I<bytes>."
1246 #: ../cat/virt-filesystems.pod:221
1247 msgid "Use I<--uuid> to display UUIDs too."
1251 #: ../cat/virt-filesystems.pod:223
1253 #| msgid "B<--live>"
1258 #: ../cat/virt-filesystems.pod:225
1260 #| msgid "B<--live>"
1261 msgid "B<--logvols>"
1265 #: ../cat/virt-filesystems.pod:227
1267 #| msgid "B<--live>"
1268 msgid "B<--logical-volumes>"
1272 #: ../cat/virt-filesystems.pod:229
1274 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1275 "of whether the LVs contain filesystems."
1279 #: ../cat/virt-filesystems.pod:232
1281 #| msgid "B<--listen>"
1282 msgid "B<--no-title>"
1283 msgstr "B<--listen>"
1286 #: ../cat/virt-filesystems.pod:234
1287 msgid "In I<--long> mode, don't add a title row."
1291 #: ../cat/virt-filesystems.pod:236
1293 "Note that the order of the columns is not fixed, and may change in future "
1294 "versions of virt-filesystems, so using this option may give you unexpected "
1299 #: ../cat/virt-filesystems.pod:240
1301 #| msgid "B<--partition>"
1303 msgstr "B<--partition>"
1306 #: ../cat/virt-filesystems.pod:242
1308 #| msgid "B<--partition>"
1309 msgid "B<--partitions>"
1310 msgstr "B<--partition>"
1313 #: ../cat/virt-filesystems.pod:244
1315 "Display partitions. In this mode, these are displayed irrespective of "
1316 "whether the partitions contain filesystems."
1320 #: ../cat/virt-filesystems.pod:247
1327 #: ../cat/virt-filesystems.pod:249
1329 #| msgid "B<--verbose>"
1330 msgid "B<--physvols>"
1331 msgstr "B<--verbose>"
1334 #: ../cat/virt-filesystems.pod:251
1335 msgid "B<--physical-volumes>"
1339 #: ../cat/virt-filesystems.pod:253
1340 msgid "Display LVM physical volumes."
1344 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1346 #| msgid "B<--live>"
1351 #: ../cat/virt-filesystems.pod:257
1358 #: ../cat/virt-filesystems.pod:259
1359 msgid "In I<--long> mode, display UUIDs as well."
1363 #: ../cat/virt-filesystems.pod:273
1370 #: ../cat/virt-filesystems.pod:275
1372 #| msgid "B<--verbose>"
1373 msgid "B<--volgroups>"
1374 msgstr "B<--verbose>"
1377 #: ../cat/virt-filesystems.pod:277
1379 #| msgid "B<--verbose>"
1380 msgid "B<--volume-groups>"
1381 msgstr "B<--verbose>"
1384 #: ../cat/virt-filesystems.pod:279
1385 msgid "Display LVM volume groups."
1389 #: ../cat/virt-filesystems.pod:287
1394 #: ../cat/virt-filesystems.pod:289
1396 "Note that columns in the output are subject to reordering and change in "
1397 "future versions of this tool."
1401 #: ../cat/virt-filesystems.pod:294
1406 #: ../cat/virt-filesystems.pod:296
1407 msgid "The filesystem, partition, block device or LVM name."
1411 #: ../cat/virt-filesystems.pod:298
1413 "For device and partition names these are displayed as canonical libguestfs "
1414 "names, so that for example C</dev/sda2> is the second partition on the first "
1419 #: ../cat/virt-filesystems.pod:302
1421 "If the I<--long> option is B<not> specified, then only the name column is "
1422 "shown in the output."
1426 #: ../cat/virt-filesystems.pod:305
1428 #| msgid "B<-N type>"
1433 #: ../cat/virt-filesystems.pod:307
1434 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1438 #: ../cat/virt-filesystems.pod:309
1443 #: ../cat/virt-filesystems.pod:311
1445 "If there is a filesystem, then this column displays the filesystem type if "
1446 "one could be detected, eg. C<ext4>."
1450 #: ../cat/virt-filesystems.pod:314
1455 #: ../cat/virt-filesystems.pod:316
1457 "If the object has a label (used for identifying and mounting filesystems) "
1458 "then this column contains the label."
1462 #: ../cat/virt-filesystems.pod:319
1464 #| msgid "B<part_size>"
1466 msgstr "B<part_size>"
1469 #: ../cat/virt-filesystems.pod:321
1471 "The size of the object in bytes. If the I<--human> option is used then the "
1472 "size is displayed in a human-readable form."
1476 #: ../cat/virt-filesystems.pod:324
1481 #: ../cat/virt-filesystems.pod:326
1483 "The parent column records the parent relationship between objects. For "
1484 "example, if the object is a partition, then this column contains the name of "
1485 "the containing device. If the object is a logical volume, then this column "
1486 "is the name of the volume group."
1490 #: ../cat/virt-filesystems.pod:331
1495 #: ../cat/virt-filesystems.pod:333
1497 "If the object has a UUID (used for identifying and mounting filesystems and "
1498 "block devices) then this column contains the UUID as a string."
1502 #: ../cat/virt-filesystems.pod:337
1503 msgid "The UUID is only displayed if the I<--uuid> option is given."
1507 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1508 #: ../df/virt-df.pod:191
1509 msgid "NOTE ABOUT CSV FORMAT"
1513 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1514 #: ../df/virt-df.pod:193
1516 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
1517 "should be easy to parse, but it is definitely not easy to parse."
1521 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1522 #: ../df/virt-df.pod:196
1524 "Myth: Just split fields at commas. Reality: This does I<not> work "
1525 "reliably. This example has two columns:"
1529 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1530 #: ../df/virt-df.pod:199
1533 " \"foo,bar\",baz\n"
1538 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1539 #: ../df/virt-df.pod:201
1541 "Myth: Read the file one line at a time. Reality: This does I<not> work "
1542 "reliably. This example has one row:"
1546 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1547 #: ../df/virt-df.pod:204
1556 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1557 #: ../df/virt-df.pod:207
1559 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1560 "packaged in major Linux distributions)."
1564 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1565 #: ../df/virt-df.pod:210
1567 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1568 "or Python's built-in csv library)."
1572 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1573 #: ../df/virt-df.pod:213
1574 msgid "Most spreadsheets and databases can import CSV directly."
1578 #: ../cat/virt-filesystems.pod:379
1581 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1582 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1583 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1585 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1586 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1590 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1591 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1594 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1595 #: ../tools/virt-win-reg.pl:778
1596 msgid "Copyright (C) 2010 Red Hat Inc."
1600 #: ../cat/virt-ls.pod:5
1601 msgid "virt-ls - List files in a virtual machine"
1605 #: ../cat/virt-ls.pod:9
1608 " virt-ls [--options] -d domname directory [directory ...]\n"
1613 #: ../cat/virt-ls.pod:11
1616 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1619 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1622 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1626 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1631 #: ../cat/virt-ls.pod:15
1634 #| " virt-list-partitions [--options] domname\n"
1637 " virt-ls [--options] domname directory\n"
1640 " virt-list-partitions [--параметри] назва_домену\n"
1644 #: ../cat/virt-ls.pod:17
1647 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1650 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1653 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1657 #: ../cat/virt-ls.pod:21
1659 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1660 "more from a virtual machine or disk image."
1664 #: ../cat/virt-ls.pod:24
1666 "Multiple directory names can be given, in which case the output from each is "
1671 #: ../cat/virt-ls.pod:27
1673 "To list directories from a libvirt guest use the I<-d> option to specify the "
1674 "name of the guest. For a disk image, use the I<-a> option."
1678 #: ../cat/virt-ls.pod:31
1680 "C<virt-ls> can do many simple file listings. For more complicated cases you "
1681 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1686 #: ../cat/virt-ls.pod:37
1687 msgid "Get a list of all files and directories in a virtual machine:"
1691 #: ../cat/virt-ls.pod:39
1694 #| " guestfish --ro -d myguest -i\n"
1697 " virt-ls -R -d guest /\n"
1700 " guestfish --ro -d myguest -i\n"
1704 #: ../cat/virt-ls.pod:41
1705 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1709 #: ../cat/virt-ls.pod:43
1712 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1717 #: ../cat/virt-ls.pod:45
1718 msgid "List all public-writable directories in a Linux virtual machine:"
1722 #: ../cat/virt-ls.pod:47
1725 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1730 #: ../cat/virt-ls.pod:49
1731 msgid "List all Unix domain sockets in a Linux virtual machine:"
1735 #: ../cat/virt-ls.pod:51
1738 " virt-ls -lR -d guest / | grep '^s'\n"
1743 #: ../cat/virt-ls.pod:53
1744 msgid "List all regular files with filenames ending in '.png':"
1748 #: ../cat/virt-ls.pod:55
1751 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1756 #: ../cat/virt-ls.pod:57
1757 msgid "To display files larger than 10MB in home directories:"
1761 #: ../cat/virt-ls.pod:59
1764 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1769 #: ../cat/virt-ls.pod:61
1770 msgid "Find everything modified in the last 7 days:"
1774 #: ../cat/virt-ls.pod:63
1777 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1782 #: ../cat/virt-ls.pod:65
1783 msgid "Find regular files modified in the last 24 hours:"
1787 #: ../cat/virt-ls.pod:67
1790 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1795 #: ../cat/virt-ls.pod:69
1796 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1800 #: ../cat/virt-ls.pod:71
1802 "Find the differences between files in a guest and an earlier snapshot of the "
1807 #: ../cat/virt-ls.pod:74
1810 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1811 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1812 " diff -u old new | less\n"
1817 #: ../cat/virt-ls.pod:78
1819 "The commands above won't find files where the content has changed but the "
1820 "metadata (eg. file size and modification date) is the same. To do that, you "
1821 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
1822 "checksum> can be quite slow since it has to read and compute a checksum of "
1823 "every regular file in the virtual machine."
1827 #: ../cat/virt-ls.pod:84
1828 msgid "OUTPUT MODES"
1832 #: ../cat/virt-ls.pod:86
1834 "C<virt-ls> has four output modes, controlled by different combinations of "
1835 "the I<-l> and I<-R> options."
1839 #: ../cat/virt-ls.pod:89
1840 msgid "SIMPLE LISTING"
1844 #: ../cat/virt-ls.pod:91
1845 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1849 #: ../cat/virt-ls.pod:93
1852 " $ virt-ls -d guest /\n"
1860 #: ../cat/virt-ls.pod:98
1863 msgid "LONG LISTING"
1867 #: ../cat/virt-ls.pod:100
1869 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1870 "(more specifically, like the C<guestfs_ll> function)."
1874 #: ../cat/virt-ls.pod:103
1877 " $ virt-ls -l -d guest /\n"
1879 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
1880 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
1886 #: ../cat/virt-ls.pod:109
1888 "Note that while this is useful for displaying a directory, do not try "
1889 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
1894 #: ../cat/virt-ls.pod:113
1895 msgid "RECURSIVE LISTING"
1899 #: ../cat/virt-ls.pod:115
1901 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1902 "and directories recursively:"
1906 #: ../cat/virt-ls.pod:118
1909 " $ virt-ls -R -d guest /tmp\n"
1917 #: ../cat/virt-ls.pod:123
1919 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1920 "converts C<\\0> characters to C<\\n>."
1924 #: ../cat/virt-ls.pod:126
1925 msgid "RECURSIVE LONG LISTING"
1929 #: ../cat/virt-ls.pod:128
1931 "Using I<-lR> options together changes the output to display directories "
1932 "recursively, with file stats, and optionally other features such as "
1933 "checksums and extended attributes."
1937 #: ../cat/virt-ls.pod:132
1939 "Most of the interesting features of C<virt-ls> are only available when using "
1944 #: ../cat/virt-ls.pod:135
1946 "The fields are normally space-separated. Filenames are B<not> quoted, so "
1947 "you cannot use the output in another program (because filenames can contain "
1948 "spaces and other unsafe characters). If the guest was untrusted and someone "
1949 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1950 "on you by creating filenames with embedded newline characters. To B<safely> "
1951 "parse the output in another program, use the I<--csv> (Comma-Separated "
1956 #: ../cat/virt-ls.pod:143
1958 "Note that this output format is completely unrelated to the C<ls -lR> "
1963 #: ../cat/virt-ls.pod:146
1966 " $ virt-ls -lR -d guest /bin\n"
1967 " d 0555 4096 /bin\n"
1968 " - 0755 123 /bin/alsaunmute\n"
1969 " - 0755 28328 /bin/arch\n"
1970 " l 0777 4 /bin/awk -> gawk\n"
1971 " - 0755 27216 /bin/basename\n"
1972 " - 0755 943360 /bin/bash\n"
1978 #: ../cat/virt-ls.pod:155
1979 msgid "These basic fields are always shown:"
1983 #: ../cat/virt-ls.pod:159
1990 #: ../cat/virt-ls.pod:161
1992 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1993 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1994 "link), C<s> (socket) or C<u> (unknown)."
1998 #: ../cat/virt-ls.pod:171
2005 #: ../cat/virt-ls.pod:173
2006 msgid "The Unix permissions, displayed as a 4 digit octal number."
2010 #: ../cat/virt-ls.pod:175
2017 #: ../cat/virt-ls.pod:177
2019 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2020 "readable> option is given, in which case this is shown as a human-readable "
2025 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
2030 #: ../cat/virt-ls.pod:183
2031 msgid "The full path of the file or directory."
2035 #: ../cat/virt-ls.pod:185
2042 #: ../cat/virt-ls.pod:187
2043 msgid "For symbolic links only, the link target."
2047 #: ../cat/virt-ls.pod:191
2049 "In I<-lR> mode, additional command line options enable the display of more "
2054 #: ../cat/virt-ls.pod:194
2056 "With the I<--uids> flag, these additional fields are displayed before the "
2061 #: ../cat/virt-ls.pod:199
2068 #: ../cat/virt-ls.pod:201
2075 #: ../cat/virt-ls.pod:203
2077 "The UID and GID of the owner of the file (displayed numerically). Note "
2078 "these only make sense in the context of a Unix-like guest."
2082 #: ../cat/virt-ls.pod:208
2083 msgid "With the I<--times> flag, these additional fields are displayed:"
2087 #: ../cat/virt-ls.pod:212
2094 #: ../cat/virt-ls.pod:214
2095 msgid "The time of last access."
2099 #: ../cat/virt-ls.pod:216
2106 #: ../cat/virt-ls.pod:218
2107 msgid "The time of last modification."
2111 #: ../cat/virt-ls.pod:220
2118 #: ../cat/virt-ls.pod:222
2119 msgid "The time of last status change."
2123 #: ../cat/virt-ls.pod:226
2125 "The time fields are displayed as string dates and times, unless one of the "
2126 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2130 #: ../cat/virt-ls.pod:229
2131 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2135 #: ../cat/virt-ls.pod:233
2137 #| msgid "zero-device"
2139 msgstr "zero-device"
2142 #: ../cat/virt-ls.pod:235
2144 "The device containing the file (displayed as major:minor). This may not "
2145 "match devices as known to the guest."
2149 #: ../cat/virt-ls.pod:238
2154 #: ../cat/virt-ls.pod:240
2155 msgid "The inode number."
2159 #: ../cat/virt-ls.pod:242
2166 #: ../cat/virt-ls.pod:244
2167 msgid "The number of hard links."
2171 #: ../cat/virt-ls.pod:246
2176 #: ../cat/virt-ls.pod:248
2178 "For block and char special files, the device (displayed as major:minor)."
2182 #: ../cat/virt-ls.pod:251
2184 #| msgid "C<blocksize>"
2186 msgstr "C<blocksize>"
2189 #: ../cat/virt-ls.pod:253
2190 msgid "The number of 512 byte blocks allocated to the file."
2194 #: ../cat/virt-ls.pod:257
2196 "With the I<--checksum> flag, the checksum of the file contents is shown "
2197 "(only for regular files). Computing file checksums can take a considerable "
2202 #: ../cat/virt-ls.pod:280
2205 msgid "B<--checksum>"
2209 #: ../cat/virt-ls.pod:282
2210 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2214 #: ../cat/virt-ls.pod:284
2216 "Display checksum over file contents for regular files. With no argument, "
2217 "this defaults to using I<md5>. Using an argument, you can select the "
2218 "checksum type to use."
2222 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2223 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2224 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2226 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2231 #: ../cat/virt-ls.pod:316
2233 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2234 "so you cannot see what you are typing. If you are not worried about Tempest "
2235 "attacks and there is no one else in the room you can specify this flag to "
2236 "see what you are typing."
2240 #: ../cat/virt-ls.pod:321
2242 #| msgid "B<--no-dest-paths>"
2243 msgid "B<--extra-stats>"
2244 msgstr "B<--no-dest-paths>"
2247 #: ../cat/virt-ls.pod:323
2248 msgid "Display extra stats."
2252 #: ../cat/virt-ls.pod:339
2255 #| " guestfish --format=raw -a disk.img\n"
2258 " virt-ls --format=raw -a disk.img /dir\n"
2261 " guestfish --format=raw -a disk.img\n"
2265 #: ../cat/virt-ls.pod:343
2268 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2271 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2274 " guestfish --format=raw -a disk.img --format -a another.img\n"
2278 #: ../cat/virt-ls.pod:356
2279 msgid "Display file sizes in human-readable format."
2283 #: ../cat/virt-ls.pod:370
2288 #: ../cat/virt-ls.pod:372
2290 #| msgid "B<--live>"
2291 msgid "B<--recursive>"
2295 #: ../cat/virt-ls.pod:374
2297 "Select the mode. With neither of these options, C<virt-ls> produces a "
2298 "simple, flat list of the files in the named directory. See L</SIMPLE "
2303 #: ../cat/virt-ls.pod:378
2305 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2310 #: ../cat/virt-ls.pod:381
2312 "C<virt-ls -R> produces a recursive list of files starting at the named "
2313 "directory. See L</RECURSIVE LISTING>."
2317 #: ../cat/virt-ls.pod:384
2319 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2320 "parsed. See L</RECURSIVE LONG LISTING>."
2324 #: ../cat/virt-ls.pod:387
2326 #| msgid "B<--live>"
2331 #: ../cat/virt-ls.pod:389
2332 msgid "Display time fields."
2336 #: ../cat/virt-ls.pod:394
2338 #| msgid "B<--echo-keys>"
2339 msgid "B<--time-days>"
2340 msgstr "B<--echo-keys>"
2343 #: ../cat/virt-ls.pod:396
2344 msgid "Display time fields as days before now (negative if in the future)."
2348 #: ../cat/virt-ls.pod:398
2350 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2351 "of the file is between 0 and 86399 seconds."
2355 #: ../cat/virt-ls.pod:404
2357 #| msgid "B<--live>"
2358 msgid "B<--time-relative>"
2362 #: ../cat/virt-ls.pod:406
2363 msgid "Display time fields as seconds before now (negative if in the future)."
2367 #: ../cat/virt-ls.pod:411
2369 #| msgid "I<--timeout N>"
2371 msgstr "I<--timeout N>"
2374 #: ../cat/virt-ls.pod:413
2375 msgid "Display time fields as seconds since the Unix epoch."
2379 #: ../cat/virt-ls.pod:418
2386 #: ../cat/virt-ls.pod:420
2387 msgid "Display UID and GID fields."
2391 #: ../cat/virt-ls.pod:445
2392 msgid "Previous versions of virt-ls allowed you to write either:"
2396 #: ../cat/virt-ls.pod:447
2399 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2402 " virt-ls disk.img [disk.img ...] /dir\n"
2405 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2409 #: ../cat/virt-ls.pod:451
2412 #| " inspect-get-hostname root\n"
2415 " virt-ls guestname /dir\n"
2418 " inspect-get-hostname корінь\n"
2422 #: ../cat/virt-ls.pod:497
2425 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2426 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2427 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2429 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2430 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2431 "L<http://libguestfs.org/>."
2433 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2434 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2435 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2438 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2439 #: ../rescue/virt-rescue.pod:298
2441 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2442 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2443 msgstr "© Red Hat Inc., 2009–2010"
2446 #: ../df/virt-df.pod:5
2447 msgid "virt-df - Display free space on virtual filesystems"
2451 #: ../df/virt-df.pod:9
2454 #| " virt-list-partitions [--options] domname\n"
2457 " virt-df [--options]\n"
2460 " virt-list-partitions [--параметри] назва_домену\n"
2464 #: ../df/virt-df.pod:11
2467 #| " virt-list-partitions [--options] domname\n"
2470 " virt-df [--options] -d domname\n"
2473 " virt-list-partitions [--параметри] назва_домену\n"
2477 #: ../df/virt-df.pod:13
2480 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2483 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2486 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2490 #: ../df/virt-df.pod:17
2493 #| " virt-list-partitions [--options] domname\n"
2496 " virt-df [--options] domname\n"
2499 " virt-list-partitions [--параметри] назва_домену\n"
2503 #: ../df/virt-df.pod:19
2506 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2509 " virt-df [--options] disk.img [disk.img ...]\n"
2512 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2516 #: ../df/virt-df.pod:23
2518 "C<virt-df> is a command line tool to display free space on virtual machine "
2519 "filesystems. Unlike other tools, it doesn't just display the size of disk "
2520 "allocated to a virtual machine, but can look inside disk images to see how "
2521 "much space is really being used."
2525 #: ../df/virt-df.pod:28
2527 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2528 "to get a list of all active and inactive guests, and performs a C<df>-type "
2529 "operation on each one in turn, printing out the results."
2533 #: ../df/virt-df.pod:32
2535 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2536 "type operation on either the single named libvirt domain, or on the disk "
2537 "image(s) listed on the command line (which must all belong to a single VM). "
2538 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2539 "guest>. If you want to run on multiple guests, then you have to invoke "
2540 "C<virt-df> multiple times."
2544 #: ../df/virt-df.pod:39
2546 "Use the I<--csv> option to get a format which can be easily parsed by other "
2547 "programs. Other options are similar to the standard L<df(1)> command."
2551 #: ../df/virt-df.pod:45
2553 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
2554 "output human-readable:"
2558 #: ../df/virt-df.pod:48
2561 " # virt-df -d F14x64 -h\n"
2562 " Filesystem Size Used Available Use%\n"
2563 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
2564 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
2569 #: ../df/virt-df.pod:53
2570 msgid "Show disk usage for a disk image file called C<test.img>:"
2574 #: ../df/virt-df.pod:55
2577 " $ virt-df -a test1.img\n"
2578 " Filesystem 1K-blocks Used Available Use%\n"
2579 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
2584 #: ../df/virt-df.pod:112
2587 #| " guestfish --format=raw -a disk.img\n"
2590 " virt-df --format=raw -a disk.img\n"
2593 " guestfish --format=raw -a disk.img\n"
2597 #: ../df/virt-df.pod:116
2600 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2603 " virt-df --format=raw -a disk.img --format -a another.img\n"
2606 " guestfish --format=raw -a disk.img --format -a another.img\n"
2610 #: ../df/virt-df.pod:129
2611 msgid "Print sizes in human-readable format."
2615 #: ../df/virt-df.pod:131
2616 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2620 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2625 #: ../df/virt-df.pod:135
2627 #| msgid "B<--live>"
2632 #: ../df/virt-df.pod:137
2633 msgid "Print inodes instead of blocks."
2637 #: ../df/virt-df.pod:139
2639 #| msgid "B<--merge>"
2640 msgid "B<--one-per-guest>"
2644 #: ../df/virt-df.pod:141
2646 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
2647 "disks from several guests to a single libguestfs appliance."
2651 #: ../df/virt-df.pod:144
2652 msgid "You might use this option in the following circumstances:"
2656 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2657 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2658 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2659 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2660 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2661 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2662 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2663 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2664 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2665 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2666 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2667 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2668 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2669 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2670 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2671 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2672 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2673 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2674 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2675 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2676 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2677 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2678 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2679 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2680 #: ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397
2681 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2682 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2683 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2684 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2685 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2686 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2687 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2688 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2689 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2690 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2691 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2692 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2693 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2694 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2695 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2696 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2697 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2698 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2699 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2700 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2701 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2702 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2703 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2704 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2705 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2706 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2063 ../src/guestfs.pod:2068
2707 #: ../src/guestfs.pod:2074 ../src/guestfs.pod:2082 ../src/guestfs.pod:2529
2708 #: ../src/guestfs.pod:2535 ../src/guestfs.pod:2540 ../src/guestfs.pod:2546
2709 #: ../src/guestfs.pod:2927 ../src/guestfs.pod:2932 ../src/guestfs.pod:2936
2710 #: ../src/guestfs.pod:2940 ../src/guestfs.pod:2944 ../src/guestfs.pod:2958
2711 #: ../src/guestfs.pod:2963 ../src/guestfs.pod:3188 ../src/guestfs.pod:3192
2712 #: ../src/guestfs.pod:3196 ../src/guestfs.pod:3200
2713 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2714 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2715 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2720 #: ../df/virt-df.pod:150
2722 "If you think an untrusted guest might actively try to exploit the libguestfs "
2723 "appliance kernel, then this prevents one guest from interfering with the "
2724 "stats printed for another guest."
2728 #: ../df/virt-df.pod:156
2730 "If the kernel has a bug which stops it from accessing a filesystem in one "
2731 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2732 "and report stats for further guests."
2736 #: ../df/virt-df.pod:165
2738 "Print UUIDs instead of names. This is useful for following a guest even "
2739 "when the guest is migrated or renamed, or when two guests happen to have the "
2744 #: ../df/virt-df.pod:169
2746 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
2747 "images, we still print the disk image name even when this option is "
2752 #: ../df/virt-df.pod:229
2754 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2759 #: ../edit/virt-edit.pod:5
2760 msgid "virt-edit - Edit a file in a virtual machine"
2764 #: ../edit/virt-edit.pod:9
2767 #| " virt-list-partitions [--options] domname\n"
2770 " virt-edit [--options] -d domname file [file ...]\n"
2773 " virt-list-partitions [--параметри] назва_домену\n"
2777 #: ../edit/virt-edit.pod:11
2780 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2783 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2786 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2790 #: ../edit/virt-edit.pod:13
2793 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2798 #: ../edit/virt-edit.pod:17
2801 " virt-edit domname file\n"
2806 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2809 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2812 " virt-edit disk.img [disk.img ...] file\n"
2815 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2819 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2820 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2821 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2822 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2824 msgstr "ПОПЕРЕДЖЕННЯ"
2827 #: ../edit/virt-edit.pod:23
2829 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
2830 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
2831 "doing this, but doesn't catch all cases."
2835 #: ../edit/virt-edit.pod:29
2837 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2838 "exists in the named virtual machine (or disk image)."
2842 #: ../edit/virt-edit.pod:32
2844 "Multiple filenames can be given, in which case they are each edited in "
2845 "turn. Each filename must be a full path, starting at the root directory "
2846 "(starting with '/')."
2850 #: ../edit/virt-edit.pod:36
2851 msgid "If you want to just view a file, use L<virt-cat(1)>."
2855 #: ../edit/virt-edit.pod:38
2857 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2858 "USING GUESTFISH> below)."
2862 #: ../edit/virt-edit.pod:41
2864 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
2865 "that and much more."
2869 #: ../edit/virt-edit.pod:46
2870 msgid "Edit the named files interactively:"
2874 #: ../edit/virt-edit.pod:48
2877 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2882 #: ../edit/virt-edit.pod:50
2885 " virt-edit -d mydomain /etc/passwd\n"
2890 #: ../edit/virt-edit.pod:52
2891 msgid "For Windows guests, some Windows paths are understood:"
2895 #: ../edit/virt-edit.pod:54
2898 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2903 #: ../edit/virt-edit.pod:56
2905 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2906 "INTERACTIVE EDITING> below). To change the init default level to 5:"
2910 #: ../edit/virt-edit.pod:60
2913 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2918 #: ../edit/virt-edit.pod:81
2919 msgid "B<-b> extension"
2923 #: ../edit/virt-edit.pod:83
2924 msgid "B<--backup> extension"
2928 #: ../edit/virt-edit.pod:85
2930 "Create a backup of the original file I<in the guest disk image>. The backup "
2931 "has the original filename with C<extension> added."
2935 #: ../edit/virt-edit.pod:88
2937 "Usually the first character of C<extension> would be a dot C<.> so you would "
2942 #: ../edit/virt-edit.pod:91
2945 " virt-edit -b .orig [etc]\n"
2950 #: ../edit/virt-edit.pod:93
2951 msgid "By default, no backup file is made."
2955 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2956 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2957 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2958 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2960 msgstr "B<-c адреса>"
2963 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2964 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2965 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2966 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2967 msgid "B<--connect URI>"
2968 msgstr "B<--connect адреса>"
2971 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2972 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2973 #: ../tools/virt-win-reg.pl:135
2975 "If you specify guest block devices directly, then libvirt is not used at all."
2979 #: ../edit/virt-edit.pod:114
2981 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2982 "off so you cannot see what you are typing. If you are not worried about "
2983 "Tempest attacks and there is no one else in the room you can specify this "
2984 "flag to see what you are typing."
2988 #: ../edit/virt-edit.pod:119
2993 #: ../edit/virt-edit.pod:121
2995 #| msgid "B<--help>"
2996 msgid "B<--expr> EXPR"
3000 #: ../edit/virt-edit.pod:123
3002 "Instead of launching the external editor, non-interactively apply the Perl "
3003 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
3008 #: ../edit/virt-edit.pod:127
3010 "Be careful to properly quote the expression to prevent it from being altered "
3015 #: ../edit/virt-edit.pod:130
3016 msgid "Note that this option is only available when Perl 5 is installed."
3020 #: ../edit/virt-edit.pod:132
3022 #| msgid "B<--format=raw|qcow2|..>"
3023 msgid "B<--format> raw|qcow2|..."
3024 msgstr "B<--format=raw|qcow2|..>"
3027 #: ../edit/virt-edit.pod:143
3030 #| " guestfish --format=raw -a disk.img\n"
3033 " virt-edit --format=raw -a disk.img file\n"
3036 " guestfish --format=raw -a disk.img\n"
3040 #: ../edit/virt-edit.pod:147
3043 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3046 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3049 " guestfish --format=raw -a disk.img --format -a another.img\n"
3053 #: ../edit/virt-edit.pod:181
3054 msgid "Previous versions of virt-edit allowed you to write either:"
3058 #: ../edit/virt-edit.pod:187
3061 #| " edit filename\n"
3064 " virt-edit guestname file\n"
3067 " edit назва_файла\n"
3071 #: ../edit/virt-edit.pod:195
3072 msgid "NON-INTERACTIVE EDITING"
3076 #: ../edit/virt-edit.pod:197
3078 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3079 "administrator can interactively edit the file."
3083 #: ../edit/virt-edit.pod:200
3085 "There are two ways also to use C<virt-edit> from scripts in order to make "
3086 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
3087 "like this, it's less error-prone to write scripts directly using the "
3088 "libguestfs API and Augeas for configuration file editing.)"
3092 #: ../edit/virt-edit.pod:206
3094 "The first method is to temporarily set C<$EDITOR> to any script or program "
3095 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
3096 "update C<tmpfile> in place however it likes."
3100 #: ../edit/virt-edit.pod:210
3102 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3103 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
3104 "instances of C<foo> with C<bar> in a file:"
3108 #: ../edit/virt-edit.pod:214
3111 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3116 #: ../edit/virt-edit.pod:216
3118 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
3119 "For example to delete root's password you could do:"
3123 #: ../edit/virt-edit.pod:219
3126 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3131 #: ../edit/virt-edit.pod:221
3133 "What really happens is that the snippet is evaluated as a Perl expression "
3134 "for each line of the file. The line, including the final C<\\n>, is passed "
3135 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3139 #: ../edit/virt-edit.pod:226
3141 "To delete a line, set C<$_> to the empty string. For example, to delete the "
3142 "C<apache> user account from the password file you can do:"
3146 #: ../edit/virt-edit.pod:229
3149 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3154 #: ../edit/virt-edit.pod:231
3156 "To insert a line, prepend or append it to C<$_>. However appending lines to "
3157 "the end of the file is rather difficult this way since there is no concept "
3158 "of \"last line of the file\" - your expression just doesn't get called "
3159 "again. You might want to use the first method (setting C<$EDITOR>) if you "
3164 #: ../edit/virt-edit.pod:237
3166 "The variable C<$lineno> contains the current line number. As is "
3167 "traditional, the first line in the file is number C<1>."
3171 #: ../edit/virt-edit.pod:240
3173 "The return value from the expression is ignored, but the expression may call "
3174 "C<die> in order to abort the whole program, leaving the original file "
3179 #: ../edit/virt-edit.pod:244
3181 "Remember when matching the end of a line that C<$_> may contain the final C<"
3182 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3183 "newline then neither of these. Thus to match or substitute some text at the "
3184 "end of a line, use this regular expression:"
3188 #: ../edit/virt-edit.pod:249
3191 " /some text(\\r?\\n)?$/\n"
3196 #: ../edit/virt-edit.pod:251
3198 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3199 "$_> itself (since that would remove all newlines from the file):"
3203 #: ../edit/virt-edit.pod:255
3206 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3211 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3212 msgid "WINDOWS PATHS"
3216 #: ../edit/virt-edit.pod:259
3218 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3219 "paths (eg. C<E:\\foo\\bar.txt>)."
3223 #: ../edit/virt-edit.pod:262
3224 msgid "If and only if the guest is running Windows then:"
3228 #: ../edit/virt-edit.pod:268
3230 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3231 "to the correct filesystem."
3235 #: ../edit/virt-edit.pod:273
3237 "Any backslash (C<\\>) characters in the path are replaced with forward "
3238 "slashes so that libguestfs can process it."
3242 #: ../edit/virt-edit.pod:278
3244 "The path is resolved case insensitively to locate the file that should be "
3249 #: ../edit/virt-edit.pod:283
3250 msgid "There are some known shortcomings:"
3254 #: ../edit/virt-edit.pod:289
3255 msgid "Some NTFS symbolic links may not be followed correctly."
3259 #: ../edit/virt-edit.pod:293
3260 msgid "NTFS junction points that cross filesystems are not followed."
3264 #: ../edit/virt-edit.pod:299
3266 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3267 "C<virt-edit> doesn't work."
3271 #: ../edit/virt-edit.pod:302
3272 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3276 #: ../edit/virt-edit.pod:304
3279 #| " guestfish --ro -d myguest -i\n"
3282 " guestfish --rw -i -d domname edit /file\n"
3285 " guestfish --ro -d myguest -i\n"
3289 #: ../edit/virt-edit.pod:306
3291 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3296 #: ../edit/virt-edit.pod:309
3298 "The command above uses libguestfs's guest inspection feature and so does not "
3299 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3300 "disk images that don't contain guests. To edit a file on a disk image "
3305 #: ../edit/virt-edit.pod:314
3308 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3311 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3314 " guestfish --format=raw -a disk.img --format -a another.img\n"
3318 #: ../edit/virt-edit.pod:316
3320 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3321 "the disk image to edit, and C</file> is the full path to the file."
3325 #: ../edit/virt-edit.pod:320
3327 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3328 "C<write> or C<upload> instead:"
3332 #: ../edit/virt-edit.pod:323
3335 #| " guestfish --ro -d myguest -i\n"
3338 " guestfish --rw -i -d domname touch /newfile\n"
3341 " guestfish --ro -d myguest -i\n"
3345 #: ../edit/virt-edit.pod:325
3348 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3353 #: ../edit/virt-edit.pod:327
3356 " guestfish --rw -i -d domname upload localfile /newfile\n"
3361 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3362 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:3074
3363 #: ../test-tool/libguestfs-test-tool.pod:95
3364 msgid "ENVIRONMENT VARIABLES"
3365 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3368 #: ../edit/virt-edit.pod:333
3375 #: ../edit/virt-edit.pod:335
3377 "If set, this string is used as the editor. It may contain arguments, eg. C<"
3382 #: ../edit/virt-edit.pod:338
3383 msgid "If not set, C<vi> is used."
3387 #: ../edit/virt-edit.pod:356
3390 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3391 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3392 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3394 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3395 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3396 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3398 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3399 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3400 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3403 #: ../examples/guestfs-examples.pod:5
3404 msgid "guestfs-examples - Examples of using libguestfs from C"
3408 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3411 " #include <guestfs.h>\n"
3414 " #include <guestfs.h>\n"
3418 #: ../examples/guestfs-examples.pod:11
3421 " guestfs_h *g = guestfs_create ();\n"
3422 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3423 " guestfs_launch (g);\n"
3428 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3431 " cc prog.c -o prog -lguestfs\n"
3433 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3436 " cc prog.c -o prog -lguestfs\n"
3438 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3442 #: ../examples/guestfs-examples.pod:21
3444 "This manual page contains examples of calling libguestfs from the C "
3445 "programming language. If you are not familiar with using libguestfs, you "
3446 "also need to read L<guestfs(3)>."
3450 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3451 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3452 #: ../python/examples/guestfs-python.pod:34
3453 #: ../ruby/examples/guestfs-ruby.pod:28
3454 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3458 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3459 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3460 #: ../python/examples/guestfs-python.pod:36
3461 #: ../ruby/examples/guestfs-ruby.pod:30
3468 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3469 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3470 #: ../python/examples/guestfs-python.pod:38
3471 #: ../ruby/examples/guestfs-ruby.pod:32
3472 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3476 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3477 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3478 #: ../python/examples/guestfs-python.pod:40
3479 #: ../ruby/examples/guestfs-ruby.pod:34
3486 #: ../examples/guestfs-examples.pod:35
3489 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3490 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3491 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3493 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3494 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3497 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3498 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3499 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3502 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3503 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3504 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3505 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3506 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3507 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3508 #: ../python/examples/guestfs-python.pod:53
3509 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3207
3510 #: ../test-tool/libguestfs-test-tool.pod:106
3515 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3516 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3517 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3518 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3519 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3520 #: ../perl/examples/guestfs-perl.pod:53
3521 #: ../python/examples/guestfs-python.pod:55
3522 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3209
3523 #: ../test-tool/libguestfs-test-tool.pod:108
3524 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3528 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3529 #: ../python/examples/guestfs-python.pod:59
3530 #: ../ruby/examples/guestfs-ruby.pod:53
3532 #| msgid "Copyright (C) 2009 Red Hat Inc."
3533 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3534 msgstr "© Red Hat Inc., 2009"
3537 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3538 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3539 #: ../perl/examples/guestfs-perl.pod:59
3540 #: ../python/examples/guestfs-python.pod:61
3541 #: ../ruby/examples/guestfs-ruby.pod:55
3543 "The examples in this manual page may be freely copied, modified and "
3544 "distributed without any restrictions."
3548 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3549 #: ../java/examples/guestfs-java.pod:68
3550 #: ../ocaml/examples/guestfs-ocaml.pod:101
3551 #: ../perl/examples/guestfs-perl.pod:62
3552 #: ../python/examples/guestfs-python.pod:64
3553 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3216
3555 "This library is free software; you can redistribute it and/or modify it "
3556 "under the terms of the GNU Lesser General Public License as published by the "
3557 "Free Software Foundation; either version 2 of the License, or (at your "
3558 "option) any later version."
3562 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3563 #: ../java/examples/guestfs-java.pod:73
3564 #: ../ocaml/examples/guestfs-ocaml.pod:106
3565 #: ../perl/examples/guestfs-perl.pod:67
3566 #: ../python/examples/guestfs-python.pod:69
3567 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3221
3569 "This library is distributed in the hope that it will be useful, but WITHOUT "
3570 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3571 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
3576 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3577 #: ../java/examples/guestfs-java.pod:78
3578 #: ../ocaml/examples/guestfs-ocaml.pod:111
3579 #: ../perl/examples/guestfs-perl.pod:72
3580 #: ../python/examples/guestfs-python.pod:74
3581 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3226
3583 "You should have received a copy of the GNU Lesser General Public License "
3584 "along with this library; if not, write to the Free Software Foundation, "
3585 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3589 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3594 #: ../examples/guestfs-recipes.pod:5
3596 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3597 "here. The only way which works for both sorts of output is to just write "
3598 "the URL directly. Do NOT use L<...> for URLs."
3602 #: ../examples/guestfs-recipes.pod:9
3604 "We break with tradition here and don't use ALL CAPS for the section "
3605 "headings, as this makes them much easier to read."
3609 #: ../examples/guestfs-recipes.pod:16
3610 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3614 #: ../examples/guestfs-recipes.pod:20
3616 "This page contains recipes for and links to things you can do using "
3617 "libguestfs, L<guestfish(1)> and the virt tools."
3621 #: ../examples/guestfs-recipes.pod:23
3622 msgid "Audit a virtual machine for setuid files"
3626 #: ../examples/guestfs-recipes.pod:25
3628 "The link below contains a small program which can be used to audit a Linux "
3629 "virtual machine to see what setuid and setgid files it contains."
3633 #: ../examples/guestfs-recipes.pod:28
3635 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3640 #: ../examples/guestfs-recipes.pod:30
3641 msgid "Change the background image in a Windows XP VM"
3645 #: ../examples/guestfs-recipes.pod:32
3647 "The links below explain how to use L<guestfish(1)> to change the background "
3648 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
3649 "be substantially different for each version of Windows."
3653 #: ../examples/guestfs-recipes.pod:37
3655 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3656 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3660 #: ../examples/guestfs-recipes.pod:40
3661 msgid "Cloning a virtual machine (Linux)"
3665 #: ../examples/guestfs-recipes.pod:42
3667 "The guestfish technique described in the link below works well for most "
3668 "Linux VMs. Depending on the Linux distro you may need to change the paths "
3673 #: ../examples/guestfs-recipes.pod:46
3675 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3680 #: ../examples/guestfs-recipes.pod:48
3682 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
3687 #: ../examples/guestfs-recipes.pod:51
3688 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3692 #: ../examples/guestfs-recipes.pod:53
3693 msgid "Cloning a virtual machine (Windows)"
3697 #: ../examples/guestfs-recipes.pod:55
3699 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3700 "straightforward. Currently there is code in the Aeolus Oz project which "
3701 "does this (using libguestfs). As part of our review of the virt-clone tool, "
3702 "we may add sysprepping ability."
3706 #: ../examples/guestfs-recipes.pod:60
3708 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3709 "list/2011-May/msg00019.html"
3713 #: ../examples/guestfs-recipes.pod:63
3714 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3718 #: ../examples/guestfs-recipes.pod:65
3719 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3723 #: ../examples/guestfs-recipes.pod:67
3726 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3731 #: ../examples/guestfs-recipes.pod:69
3732 msgid "To export just a subdirectory, eg. C</files>, do:"
3736 #: ../examples/guestfs-recipes.pod:71
3739 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3744 #: ../examples/guestfs-recipes.pod:73
3745 msgid "Create empty disk images"
3749 #: ../examples/guestfs-recipes.pod:75
3751 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
3752 "The useful guide below explains the options available."
3756 #: ../examples/guestfs-recipes.pod:78
3758 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3763 #: ../examples/guestfs-recipes.pod:80
3764 msgid "Dump raw filesystem content from inside a disk image or VM"
3768 #: ../examples/guestfs-recipes.pod:82
3770 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3771 "filesystem content from any filesystem in a disk image or a VM (even one "
3772 "which is encrypted or buried inside an LV):"
3776 #: ../examples/guestfs-recipes.pod:86
3779 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3782 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3785 " guestfish --format=raw -a disk.img --format -a another.img\n"
3789 #: ../examples/guestfs-recipes.pod:88
3792 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3797 #: ../examples/guestfs-recipes.pod:90
3798 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3802 #: ../examples/guestfs-recipes.pod:92
3803 msgid "Edit grub configuration in a VM"
3807 #: ../examples/guestfs-recipes.pod:94
3808 msgid "You can use this to:"
3812 #: ../examples/guestfs-recipes.pod:100
3813 msgid "Fix a virtual machine that does not boot."
3817 #: ../examples/guestfs-recipes.pod:104
3818 msgid "Change which kernel is used to boot the VM."
3822 #: ../examples/guestfs-recipes.pod:108
3823 msgid "Change kernel command line options."
3827 #: ../examples/guestfs-recipes.pod:112
3828 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3832 #: ../examples/guestfs-recipes.pod:114
3835 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3840 #: ../examples/guestfs-recipes.pod:116
3842 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3847 #: ../examples/guestfs-recipes.pod:119
3850 " virt-rescue -d BrokenGuest\n"
3855 #: ../examples/guestfs-recipes.pod:121
3856 msgid "Export any directory from a VM"
3860 #: ../examples/guestfs-recipes.pod:123
3862 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3866 #: ../examples/guestfs-recipes.pod:126
3869 #| " copy-out /home .\n"
3872 " virt-copy-out -d Guest /home .\n"
3875 " copy-out /home .\n"
3879 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3880 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3881 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922
3882 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640
3883 #: ../tools/virt-win-reg.pl:706
3888 #: ../examples/guestfs-recipes.pod:134
3890 "The final dot of the command is not a printing error. It means we want to "
3891 "copy out to the current directory."
3895 #: ../examples/guestfs-recipes.pod:139
3896 msgid "This creates a directory called C<home> under the current directory."
3900 #: ../examples/guestfs-recipes.pod:143
3902 "If the guest is a Windows guest then you can use drive letters and "
3903 "backslashes, but you must prefix the path with C<win:> and quote it to "
3904 "protect it from the shell, like this:"
3908 #: ../examples/guestfs-recipes.pod:147
3911 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3916 #: ../examples/guestfs-recipes.pod:149
3917 msgid "To get the output as a compressed tarball, do:"
3921 #: ../examples/guestfs-recipes.pod:151
3924 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3929 #: ../examples/guestfs-recipes.pod:153
3931 "Although it sounds tempting, this is usually not a reliable way to get a "
3932 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
3933 "org/FAQ.html#backup"
3937 #: ../examples/guestfs-recipes.pod:157
3938 msgid "Find out which user is using the most space"
3942 #: ../examples/guestfs-recipes.pod:159
3944 "This simple script examines a Linux guest to find out which user is using "
3945 "the most space in their home directory:"
3949 #: ../examples/guestfs-recipes.pod:162
3952 #| " #!/usr/bin/guestfish -f\n"
3958 " #!/usr/bin/guestfish -f\n"
3962 #: ../examples/guestfs-recipes.pod:164
3965 #| " set-qemu qemu\n"
3975 #: ../examples/guestfs-recipes.pod:166
3984 #: ../examples/guestfs-recipes.pod:169
3987 #| " guestfish --ro -d myguest -i\n"
3990 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3993 " guestfish --ro -d myguest -i\n"
3997 #: ../examples/guestfs-recipes.pod:171
4000 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4001 " echo -n \"$dir/$d\"\n"
4003 " guestfish --remote du \"$dir/$d\";\n"
4004 " done | sort -nr -k 2\n"
4009 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4012 " guestfish --remote exit\n"
4017 #: ../examples/guestfs-recipes.pod:179
4018 msgid "Get DHCP address from a VM"
4022 #: ../examples/guestfs-recipes.pod:181
4024 "The link below explains the many different possible techniques for getting "
4025 "the last assigned DHCP address of a virtual machine."
4029 #: ../examples/guestfs-recipes.pod:184
4031 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4032 "a-virtual-machine-disk-image/#content"
4036 #: ../examples/guestfs-recipes.pod:186
4038 "In the libguestfs source examples directory you will find the latest version "
4039 "of the C<virt-dhcp-address.c> program."
4043 #: ../examples/guestfs-recipes.pod:189
4044 msgid "Get the operating system product name string"
4048 #: ../examples/guestfs-recipes.pod:191
4049 msgid "Save the following script into a file called C<product-name.sh>:"
4053 #: ../examples/guestfs-recipes.pod:193
4056 #| " eval \"`guestfish --listen`\"\n"
4057 #| " guestfish --remote add-ro disk.img\n"
4058 #| " guestfish --remote run\n"
4059 #| " guestfish --remote lvs\n"
4064 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4065 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4066 " guestfish --remote inspect-get-product-name \"$root\"\n"
4067 " guestfish --remote exit\n"
4070 " eval \"`guestfish --listen`\"\n"
4071 " guestfish --remote add-ro disk.img\n"
4072 " guestfish --remote run\n"
4073 " guestfish --remote lvs\n"
4077 #: ../examples/guestfs-recipes.pod:200
4078 msgid "Make the script executable and run it on a named guest:"
4082 #: ../examples/guestfs-recipes.pod:202
4085 " # product-name.sh RHEL60x64\n"
4086 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4091 #: ../examples/guestfs-recipes.pod:205
4093 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4094 "C<xpath> command line tool or from your favourite programming language:"
4098 #: ../examples/guestfs-recipes.pod:209
4101 " # virt-inspector RHEL60x64 > xml\n"
4102 " # xpath '//product_name' < xml\n"
4105 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4110 #: ../examples/guestfs-recipes.pod:215
4111 msgid "Get the default boot kernel for a Linux VM"
4115 #: ../examples/guestfs-recipes.pod:217
4117 "The link below contains a program to print the default boot kernel for a "
4122 #: ../examples/guestfs-recipes.pod:220
4124 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4125 "kernel-for-a-vm/#content"
4129 #: ../examples/guestfs-recipes.pod:222
4131 "It uses Augeas, and the technique is generally applicable for many different "
4136 #: ../examples/guestfs-recipes.pod:229
4137 msgid "listing the user accounts in the guest"
4141 #: ../examples/guestfs-recipes.pod:233
4142 msgid "what repositories is it configured to use"
4146 #: ../examples/guestfs-recipes.pod:237
4147 msgid "what NTP servers does it connect to"
4151 #: ../examples/guestfs-recipes.pod:241
4152 msgid "what were the boot messages last time it booted"
4156 #: ../examples/guestfs-recipes.pod:245
4157 msgid "listing who was logged in recently"
4161 #: ../examples/guestfs-recipes.pod:249
4162 msgid "http://augeas.net/"
4166 #: ../examples/guestfs-recipes.pod:251
4167 msgid "Install RPMs in a guest"
4171 #: ../examples/guestfs-recipes.pod:253
4173 "The link below contains a method to install RPMs in a guest. In fact the "
4174 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4175 "installs them next time the guest is booted. You could use this technique "
4176 "to install vital security updates in an offline guest."
4180 #: ../examples/guestfs-recipes.pod:259
4182 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4186 #: ../examples/guestfs-recipes.pod:261
4187 msgid "List applications installed in a VM"
4191 #: ../examples/guestfs-recipes.pod:263
4192 msgid "Save the following to a file C<list-apps.sh>:"
4196 #: ../examples/guestfs-recipes.pod:265
4199 #| " eval \"`guestfish --listen`\"\n"
4200 #| " guestfish --remote add-ro disk.img\n"
4201 #| " guestfish --remote run\n"
4202 #| " guestfish --remote lvs\n"
4207 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4208 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4209 " guestfish --remote inspect-list-applications \"$root\"\n"
4210 " guestfish --remote exit\n"
4213 " eval \"`guestfish --listen`\"\n"
4214 " guestfish --remote add-ro disk.img\n"
4215 " guestfish --remote run\n"
4216 " guestfish --remote lvs\n"
4220 #: ../examples/guestfs-recipes.pod:272
4222 "Make the file executable and then you can run it on any named virtual "
4227 #: ../examples/guestfs-recipes.pod:275
4230 " # list-apps.sh WinGuest\n"
4232 " app_name: Mozilla Firefox (3.6.12)\n"
4233 " app_display_name: Mozilla Firefox (3.6.12)\n"
4235 " app_version: 3.6.12 (en-GB)\n"
4237 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4238 " app_trans_path:\n"
4239 " app_publisher: Mozilla\n"
4240 " app_url: http://www.mozilla.com/en-GB/\n"
4241 " app_source_package:\n"
4243 " app_description: Mozilla Firefox\n"
4246 " app_name: VLC media player\n"
4247 " app_display_name: VLC media player 1.1.5\n"
4249 " app_version: 1.1.5\n"
4251 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4252 " app_trans_path:\n"
4253 " app_publisher: VideoLAN\n"
4254 " app_url: http://www.videolan.org/\n"
4255 " app_source_package:\n"
4257 " app_description:\n"
4263 #: ../examples/guestfs-recipes.pod:305
4265 "If you want to run the script on disk images (instead of libvirt virtual "
4266 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4271 #: ../examples/guestfs-recipes.pod:309
4272 msgid "List files and directories in a VM"
4276 #: ../examples/guestfs-recipes.pod:311
4277 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4281 #: ../examples/guestfs-recipes.pod:313
4284 #| " guestfish --ro -d myguest -i\n"
4287 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4290 " guestfish --ro -d myguest -i\n"
4294 #: ../examples/guestfs-recipes.pod:315
4295 msgid "List services in a Windows VM"
4299 #: ../examples/guestfs-recipes.pod:317
4301 "The link below contains a script that can be used to list out the services "
4302 "from a Windows VM, and whether those services run at boot time or are loaded "
4307 #: ../examples/guestfs-recipes.pod:321
4309 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4314 #: ../examples/guestfs-recipes.pod:323
4315 msgid "Make a disk image sparse"
4319 #: ../examples/guestfs-recipes.pod:325
4321 "The link below contains some guides for making a disk image sparse (or "
4322 "reintroducing sparseness)."
4326 #: ../examples/guestfs-recipes.pod:328
4328 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4332 #: ../examples/guestfs-recipes.pod:330
4333 msgid "Monitor disk usage over time"
4337 #: ../examples/guestfs-recipes.pod:332
4339 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4340 "The link below contains a guide."
4344 #: ../examples/guestfs-recipes.pod:335
4345 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4349 #: ../examples/guestfs-recipes.pod:337
4350 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4354 #: ../examples/guestfs-recipes.pod:339
4356 "L<guestfish(1)> plus the tools described in the link below can be used to "
4357 "read out the Windows Event Log from any virtual machine running Windows "
4358 "Vista or a later version."
4362 #: ../examples/guestfs-recipes.pod:343
4364 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4365 "guestfish/#content"
4369 #: ../examples/guestfs-recipes.pod:345
4370 msgid "Remove root password (Linux)"
4374 #: ../examples/guestfs-recipes.pod:347
4376 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4377 "files. One use is to remove the root password from a Linux guest:"
4381 #: ../examples/guestfs-recipes.pod:350
4384 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4389 #: ../examples/guestfs-recipes.pod:352
4390 msgid "Remove Administrator password (Windows)"
4394 #: ../examples/guestfs-recipes.pod:354
4396 "The link below contains one technique for removing the Administrator "
4397 "password from a Windows VM, or to be more precise, it gives you a command "
4398 "prompt the next time you log in which you can use to bypass any security:"
4402 #: ../examples/guestfs-recipes.pod:359
4404 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4405 "administrator-password-with-guestfish/"
4409 #: ../examples/guestfs-recipes.pod:361
4410 msgid "Unpack a live CD"
4414 #: ../examples/guestfs-recipes.pod:363
4416 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4417 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
4418 "layers, as outlined in the guide below."
4422 #: ../examples/guestfs-recipes.pod:367
4424 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4429 #: ../examples/guestfs-recipes.pod:369
4430 msgid "Uploading and downloading files"
4434 #: ../examples/guestfs-recipes.pod:371
4436 "The link below contains general tips on uploading (copying in) and "
4437 "downloading (copying out) files from VMs."
4441 #: ../examples/guestfs-recipes.pod:374
4443 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4447 #: ../examples/guestfs-recipes.pod:376
4448 msgid "Use libguestfs tools on VMware ESX guests"
4452 #: ../examples/guestfs-recipes.pod:378
4454 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4455 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4459 #: ../examples/guestfs-recipes.pod:382
4461 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4466 #: ../examples/guestfs-recipes.pod:386
4469 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4470 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4471 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4473 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4474 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4475 "(3)>, L<http://libguestfs.org/>."
4477 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4478 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4479 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4482 #: ../examples/guestfs-recipes.pod:402
4484 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4485 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4486 msgstr "© Red Hat Inc., 2009–2010"
4489 #: ../fish/guestfish-actions.pod:1
4494 #: ../fish/guestfish-actions.pod:3
4497 " add-cdrom filename\n"
4502 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4503 msgid "This function adds a virtual CD-ROM disk image to the guest."
4507 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4508 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4512 #: ../fish/guestfish-actions.pod:15
4514 "This call checks for the existence of C<filename>. This stops you from "
4515 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4516 "and C<http:> URLs. To specify those, use the general L</config> call "
4521 #: ../fish/guestfish-actions.pod:22
4523 "If you just want to add an ISO file (often you use this as an efficient way "
4524 "to transfer large files into the guest), then you should probably use L</add-"
4525 "drive-ro> instead."
4529 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4530 #: ../fish/guestfish-actions.pod:177
4532 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4537 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4538 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4539 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4540 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4541 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4542 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4543 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4544 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4545 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4546 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4547 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4548 #: ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926
4549 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255
4550 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565
4551 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662
4552 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703
4553 #: ../src/guestfs-actions.pod:7886
4555 "Deprecated functions will not be removed from the API, but the fact that "
4556 "they are deprecated indicates that there are problems with correct use of "
4561 #: ../fish/guestfish-actions.pod:35
4566 #: ../fish/guestfish-actions.pod:37
4571 #: ../fish/guestfish-actions.pod:39
4574 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4579 #: ../fish/guestfish-actions.pod:41
4581 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4582 "It works by connecting to libvirt, requesting the domain and domain XML from "
4583 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4587 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4589 "The number of disks added is returned. This operation is atomic: if an "
4590 "error is returned, then no disks are added."
4594 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4596 "This function does some minimal checks to make sure the libvirt domain is "
4597 "not running (unless C<readonly> is true). In a future version we will try "
4598 "to acquire the libvirt lock on each disk."
4602 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4604 "Disks must be accessible locally. This often means that adding disks from a "
4605 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4606 "unless those disks are accessible via the same device path locally too."
4610 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4612 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4613 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4614 "libvirt URI (or one set through an environment variable, see the libvirt "
4615 "documentation for full details)."
4619 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4621 "The optional C<live> flag controls whether this call will try to connect to "
4622 "a running virtual machine C<guestfsd> process if it sees a suitable "
4623 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4624 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4625 "DAEMONS> for more information."
4629 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4631 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4632 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4633 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4638 #: ../fish/guestfish-actions.pod:76
4640 "The other optional parameters are passed directly through to L</add-drive-"
4645 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4646 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4647 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4648 #: ../fish/guestfish-actions.pod:3447
4650 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4654 #: ../fish/guestfish-actions.pod:81
4659 #: ../fish/guestfish-actions.pod:83
4662 " add-drive filename\n"
4665 " add-drive назва_файла\n"
4669 #: ../fish/guestfish-actions.pod:85
4671 "This function is the equivalent of calling L</add-drive-opts> with no "
4672 "optional parameters, so the disk is added writable, with the format being "
4673 "detected automatically."
4677 #: ../fish/guestfish-actions.pod:89
4679 "Automatic detection of the format opens you up to a potential security hole "
4680 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4681 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4682 "you should think about replacing calls to this function with calls to L</add-"
4683 "drive-opts>, and specifying the format."
4687 #: ../fish/guestfish-actions.pod:96
4688 msgid "add-drive-opts"
4689 msgstr "add-drive-opts"
4692 #: ../fish/guestfish-actions.pod:98
4697 #: ../fish/guestfish-actions.pod:100
4700 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4705 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4707 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4708 "The first time you call this function, the disk appears as C</dev/sda>, the "
4709 "second time as C</dev/sdb>, and so on."
4713 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4715 "You don't necessarily need to be root when using libguestfs. However you "
4716 "obviously do need sufficient permissions to access the filename for whatever "
4717 "operations you want to perform (ie. read access if you just want to read the "
4718 "image or write access if you want to modify the image)."
4722 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4723 msgid "This call checks that C<filename> exists."
4727 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4728 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4729 msgid "The optional arguments are:"
4733 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4735 msgstr "C<readonly>"
4738 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4740 "If true then the image is treated as read-only. Writes are still allowed, "
4741 "but they are stored in a temporary snapshot overlay which is discarded at "
4742 "the end. The disk that you add is not modified."
4746 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4751 #: ../fish/guestfish-actions.pod:127
4753 "This forces the image format. If you omit this (or use L</add-drive> or L</"
4754 "add-drive-ro>) then the format is automatically detected. Possible formats "
4755 "include C<raw> and C<qcow2>."
4759 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4761 "Automatic detection of the format opens you up to a potential security hole "
4762 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4763 "RHBZ#642934. Specifying the format closes this security hole."
4767 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4772 #: ../fish/guestfish-actions.pod:138
4774 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4775 "add-drive-with-if> call (q.v.)"
4779 #: ../fish/guestfish-actions.pod:145
4780 msgid "add-drive-ro"
4781 msgstr "add-drive-ro"
4784 #: ../fish/guestfish-actions.pod:147
4789 #: ../fish/guestfish-actions.pod:149
4792 " add-drive-ro filename\n"
4797 #: ../fish/guestfish-actions.pod:151
4799 "This function is the equivalent of calling L</add-drive-opts> with the "
4800 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4801 "is added read-only, with the format being detected automatically."
4805 #: ../fish/guestfish-actions.pod:156
4806 msgid "add-drive-ro-with-if"
4810 #: ../fish/guestfish-actions.pod:158
4813 " add-drive-ro-with-if filename iface\n"
4818 #: ../fish/guestfish-actions.pod:160
4820 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4821 "interface emulation to use at run time."
4825 #: ../fish/guestfish-actions.pod:170
4826 msgid "add-drive-with-if"
4830 #: ../fish/guestfish-actions.pod:172
4833 " add-drive-with-if filename iface\n"
4838 #: ../fish/guestfish-actions.pod:174
4840 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4841 "interface emulation to use at run time."
4845 #: ../fish/guestfish-actions.pod:184
4850 #: ../fish/guestfish-actions.pod:186
4853 " aug-clear augpath\n"
4858 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4860 "Set the value associated with C<path> to C<NULL>. This is the same as the "
4861 "L<augtool(1)> C<clear> command."
4865 #: ../fish/guestfish-actions.pod:191
4870 #: ../fish/guestfish-actions.pod:193
4878 #: ../fish/guestfish-actions.pod:195
4880 "Close the current Augeas handle and free up any resources used by it. After "
4881 "calling this, you have to call L</aug-init> again before you can use any "
4882 "other Augeas functions."
4886 #: ../fish/guestfish-actions.pod:200
4891 #: ../fish/guestfish-actions.pod:202
4894 " aug-defnode name expr val\n"
4899 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4901 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4905 #: ../fish/guestfish-actions.pod:207
4907 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4908 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
4909 "containing that single node."
4913 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4915 "On success this returns a pair containing the number of nodes in the "
4916 "nodeset, and a boolean flag if a node was created."
4920 #: ../fish/guestfish-actions.pod:215
4925 #: ../fish/guestfish-actions.pod:217
4928 " aug-defvar name expr\n"
4933 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4935 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4936 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
4940 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4942 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4943 "evaluates to something which is not a nodeset."
4947 #: ../fish/guestfish-actions.pod:226
4952 #: ../fish/guestfish-actions.pod:228
4955 " aug-get augpath\n"
4960 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4962 "Look up the value associated with C<path>. If C<path> matches exactly one "
4963 "node, the C<value> is returned."
4967 #: ../fish/guestfish-actions.pod:233
4972 #: ../fish/guestfish-actions.pod:235
4975 " aug-init root flags\n"
4980 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4982 "Create a new Augeas handle for editing configuration files. If there was "
4983 "any previous Augeas handle associated with this guestfs session, then it is "
4988 #: ../fish/guestfish-actions.pod:241
4989 msgid "You must call this before using any other L</aug-*> commands."
4993 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4995 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
4999 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5001 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5002 "logical I<or> of the following integers:"
5006 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5007 msgid "C<AUG_SAVE_BACKUP> = 1"
5008 msgstr "C<AUG_SAVE_BACKUP> = 1"
5011 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5012 msgid "Keep the original file with a C<.augsave> extension."
5016 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5017 msgid "C<AUG_SAVE_NEWFILE> = 2"
5018 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5021 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5023 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5024 "original. Overrides C<AUG_SAVE_BACKUP>."
5028 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5029 msgid "C<AUG_TYPE_CHECK> = 4"
5030 msgstr "C<AUG_TYPE_CHECK> = 4"
5033 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5034 msgid "Typecheck lenses."
5038 #: ../fish/guestfish-actions.pod:266
5040 "This option is only useful when debugging Augeas lenses. Use of this option "
5041 "may require additional memory for the libguestfs appliance. You may need to "
5042 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5046 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5047 msgid "C<AUG_NO_STDINC> = 8"
5048 msgstr "C<AUG_NO_STDINC> = 8"
5051 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5052 msgid "Do not use standard load path for modules."
5056 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5057 msgid "C<AUG_SAVE_NOOP> = 16"
5058 msgstr "C<AUG_SAVE_NOOP> = 16"
5061 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5062 msgid "Make save a no-op, just record what would have been changed."
5066 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5067 msgid "C<AUG_NO_LOAD> = 32"
5068 msgstr "C<AUG_NO_LOAD> = 32"
5071 #: ../fish/guestfish-actions.pod:281
5072 msgid "Do not load the tree in L</aug-init>."
5076 #: ../fish/guestfish-actions.pod:285
5077 msgid "To close the handle, you can call L</aug-close>."
5081 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5082 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5086 #: ../fish/guestfish-actions.pod:289
5091 #: ../fish/guestfish-actions.pod:291
5094 " aug-insert augpath label true|false\n"
5099 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5101 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5102 "or after C<path> (depending on the boolean flag C<before>)."
5106 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5108 "C<path> must match exactly one existing node in the tree, and C<label> must "
5109 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5113 #: ../fish/guestfish-actions.pod:301
5118 #: ../fish/guestfish-actions.pod:303
5126 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5127 msgid "Load files into the tree."
5128 msgstr "Завантажити файли до ієрархії."
5131 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5132 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5136 #: ../fish/guestfish-actions.pod:310
5141 #: ../fish/guestfish-actions.pod:312
5149 #: ../fish/guestfish-actions.pod:314
5151 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5152 "resulting nodes into alphabetical order."
5156 #: ../fish/guestfish-actions.pod:317
5161 #: ../fish/guestfish-actions.pod:319
5164 " aug-match augpath\n"
5169 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5171 "Returns a list of paths which match the path expression C<path>. The "
5172 "returned paths are sufficiently qualified so that they match exactly one "
5173 "node in the current tree."
5177 #: ../fish/guestfish-actions.pod:325
5182 #: ../fish/guestfish-actions.pod:327
5185 " aug-mv src dest\n"
5190 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5192 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5193 "C<dest> is overwritten if it exists."
5197 #: ../fish/guestfish-actions.pod:332
5202 #: ../fish/guestfish-actions.pod:334
5210 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5211 msgid "Remove C<path> and all of its children."
5215 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5216 msgid "On success this returns the number of entries which were removed."
5220 #: ../fish/guestfish-actions.pod:340
5225 #: ../fish/guestfish-actions.pod:342
5233 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5234 msgid "This writes all pending changes to disk."
5238 #: ../fish/guestfish-actions.pod:346
5240 "The flags which were passed to L</aug-init> affect exactly how files are "
5245 #: ../fish/guestfish-actions.pod:349
5250 #: ../fish/guestfish-actions.pod:351
5253 " aug-set augpath val\n"
5258 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5259 msgid "Set the value associated with C<path> to C<val>."
5263 #: ../fish/guestfish-actions.pod:355
5265 "In the Augeas API, it is possible to clear a node by setting the value to "
5266 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5267 "this call. Instead you must use the L</aug-clear> call."
5271 #: ../fish/guestfish-actions.pod:360
5276 #: ../fish/guestfish-actions.pod:362
5279 " available 'groups ...'\n"
5284 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5286 "This command is used to check the availability of some groups of "
5287 "functionality in the appliance, which not all builds of the libguestfs "
5288 "appliance will be able to provide."
5292 #: ../fish/guestfish-actions.pod:368
5294 "The libguestfs groups, and the functions that those groups correspond to, "
5295 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5296 "runtime by calling L</available-all-groups>."
5300 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5302 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5303 "\"]> would check for the availability of the Linux inotify functions and "
5304 "Augeas (configuration file editing) functions."
5308 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5309 msgid "The command returns no error if I<all> requested groups are available."
5313 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5315 "It fails with an error if one or more of the requested groups is unavailable "
5320 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5322 "If an unknown group name is included in the list of groups then an error is "
5327 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5329 msgstr "I<Нотатки:>"
5332 #: ../fish/guestfish-actions.pod:392
5333 msgid "You must call L</launch> before calling this function."
5337 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5339 "The reason is because we don't know what groups are supported by the "
5340 "appliance/daemon until it is running and can be queried."
5344 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5346 "If a group of functions is available, this does not necessarily mean that "
5347 "they will work. You still have to check for errors when calling individual "
5348 "API functions even if they are available."
5352 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5354 "It is usually the job of distro packagers to build complete functionality "
5355 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5356 "with all requirements satisfied, will support everything."
5360 #: ../fish/guestfish-actions.pod:414
5362 "This call was added in version C<1.0.80>. In previous versions of "
5363 "libguestfs all you could do would be to speculatively execute a command to "
5364 "find out if the daemon implemented it. See also L</version>."
5368 #: ../fish/guestfish-actions.pod:421
5369 msgid "available-all-groups"
5373 #: ../fish/guestfish-actions.pod:423
5376 " available-all-groups\n"
5381 #: ../fish/guestfish-actions.pod:425
5383 "This command returns a list of all optional groups that this daemon knows "
5384 "about. Note this returns both supported and unsupported groups. To find "
5385 "out which ones the daemon can actually support you have to call L</"
5386 "available> on each member of the returned list."
5390 #: ../fish/guestfish-actions.pod:431
5391 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5395 #: ../fish/guestfish-actions.pod:433
5400 #: ../fish/guestfish-actions.pod:435
5403 " base64-in (base64file|-) filename\n"
5408 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5410 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5414 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5415 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5416 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5417 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5418 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5419 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5420 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5421 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5425 #: ../fish/guestfish-actions.pod:442
5430 #: ../fish/guestfish-actions.pod:444
5433 " base64-out filename (base64file|-)\n"
5438 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5440 "This command downloads the contents of C<filename>, writing it out to local "
5441 "file C<base64file> encoded as base64."
5445 #: ../fish/guestfish-actions.pod:451
5446 msgid "blockdev-flushbufs"
5450 #: ../fish/guestfish-actions.pod:453
5453 " blockdev-flushbufs device\n"
5458 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5460 "This tells the kernel to flush internal buffers associated with C<device>."
5464 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5465 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5466 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5467 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5468 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5469 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5470 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5471 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5472 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5473 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5474 msgid "This uses the L<blockdev(8)> command."
5478 #: ../fish/guestfish-actions.pod:460
5479 msgid "blockdev-getbsz"
5483 #: ../fish/guestfish-actions.pod:462
5486 " blockdev-getbsz device\n"
5491 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5492 msgid "This returns the block size of a device."
5496 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5497 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5499 "(Note this is different from both I<size in blocks> and I<filesystem block "
5504 #: ../fish/guestfish-actions.pod:471
5505 msgid "blockdev-getro"
5509 #: ../fish/guestfish-actions.pod:473
5512 " blockdev-getro device\n"
5517 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5519 "Returns a boolean indicating if the block device is read-only (true if read-"
5520 "only, false if not)."
5524 #: ../fish/guestfish-actions.pod:480
5525 msgid "blockdev-getsize64"
5529 #: ../fish/guestfish-actions.pod:482
5532 " blockdev-getsize64 device\n"
5537 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5538 msgid "This returns the size of the device in bytes."
5542 #: ../fish/guestfish-actions.pod:486
5543 msgid "See also L</blockdev-getsz>."
5547 #: ../fish/guestfish-actions.pod:490
5548 msgid "blockdev-getss"
5552 #: ../fish/guestfish-actions.pod:492
5555 " blockdev-getss device\n"
5560 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5562 "This returns the size of sectors on a block device. Usually 512, but can be "
5563 "larger for modern devices."
5567 #: ../fish/guestfish-actions.pod:497
5569 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5573 #: ../fish/guestfish-actions.pod:502
5574 msgid "blockdev-getsz"
5578 #: ../fish/guestfish-actions.pod:504
5581 " blockdev-getsz device\n"
5586 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5588 "This returns the size of the device in units of 512-byte sectors (even if "
5589 "the sectorsize isn't 512 bytes ... weird)."
5593 #: ../fish/guestfish-actions.pod:509
5595 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5596 "blockdev-getsize64> for the more useful I<size in bytes>."
5600 #: ../fish/guestfish-actions.pod:515
5601 msgid "blockdev-rereadpt"
5605 #: ../fish/guestfish-actions.pod:517
5608 " blockdev-rereadpt device\n"
5613 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5614 msgid "Reread the partition table on C<device>."
5618 #: ../fish/guestfish-actions.pod:523
5619 msgid "blockdev-setbsz"
5623 #: ../fish/guestfish-actions.pod:525
5626 " blockdev-setbsz device blocksize\n"
5631 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5632 msgid "This sets the block size of a device."
5636 #: ../fish/guestfish-actions.pod:534
5637 msgid "blockdev-setro"
5641 #: ../fish/guestfish-actions.pod:536
5644 " blockdev-setro device\n"
5649 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5650 msgid "Sets the block device named C<device> to read-only."
5654 #: ../fish/guestfish-actions.pod:542
5655 msgid "blockdev-setrw"
5659 #: ../fish/guestfish-actions.pod:544
5662 " blockdev-setrw device\n"
5667 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5668 msgid "Sets the block device named C<device> to read-write."
5672 #: ../fish/guestfish-actions.pod:550
5673 msgid "btrfs-filesystem-resize"
5677 #: ../fish/guestfish-actions.pod:552
5680 " btrfs-filesystem-resize mountpoint [size:..]\n"
5685 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5686 msgid "This command resizes a btrfs filesystem."
5690 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5692 "Note that unlike other resize calls, the filesystem has to be mounted and "
5693 "the parameter is the mountpoint not the device (this is a requirement of "
5698 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5699 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5700 msgid "The optional parameters are:"
5704 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5705 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5710 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5712 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5713 "resized to the maximum size."
5717 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5718 msgid "See also L<btrfs(8)>."
5722 #: ../fish/guestfish-actions.pod:575
5723 msgid "case-sensitive-path"
5727 #: ../fish/guestfish-actions.pod:577
5730 " case-sensitive-path path\n"
5735 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5737 "This can be used to resolve case insensitive paths on a filesystem which is "
5738 "case sensitive. The use case is to resolve paths which you have read from "
5739 "Windows configuration files or the Windows Registry, to the true path."
5743 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5745 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5746 "(and probably others), which is that although the underlying filesystem is "
5747 "case-insensitive, the driver exports the filesystem to Linux as case-"
5752 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5754 "One consequence of this is that special directories such as C<c:\\windows> "
5755 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5756 "precise details of how they were created. In Windows itself this would not "
5761 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5763 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5768 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5770 "This function resolves the true case of each element in the path and returns "
5771 "the case-sensitive path."
5775 #: ../fish/guestfish-actions.pod:601
5777 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
5778 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5779 "the directories were originally created under Windows)."
5783 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5784 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5788 #: ../fish/guestfish-actions.pod:609
5789 msgid "See also L</realpath>."
5793 #: ../fish/guestfish-actions.pod:611
5798 #: ../fish/guestfish-actions.pod:613
5808 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5809 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5810 msgid "Return the contents of the file named C<path>."
5814 #: ../fish/guestfish-actions.pod:617
5816 "Note that this function cannot correctly handle binary files (specifically, "
5817 "files containing C<\\0> character which is treated as end of string). For "
5818 "those you need to use the L</read-file> or L</download> functions which have "
5819 "a more complex interface."
5823 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5824 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5825 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5826 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5827 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5828 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5829 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5830 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5831 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5832 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5833 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5834 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5835 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5836 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5837 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5838 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5839 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5840 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5841 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5842 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5843 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5844 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5845 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5846 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5847 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5848 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5849 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5850 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5851 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720
5852 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5853 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5854 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5856 "Because of the message protocol, there is a transfer limit of somewhere "
5857 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
5861 #: ../fish/guestfish-actions.pod:625
5866 #: ../fish/guestfish-actions.pod:627
5869 " checksum csumtype path\n"
5874 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5876 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5880 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5882 "The type of checksum to compute is given by the C<csumtype> parameter which "
5883 "must have one of the following values:"
5887 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5892 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5894 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5899 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5904 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5905 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5909 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5914 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5915 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5919 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5924 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5925 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5929 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5934 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5935 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5939 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5944 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5945 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5949 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5954 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5955 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5959 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5960 msgid "The checksum is returned as a printable string."
5964 #: ../fish/guestfish-actions.pod:670
5965 msgid "To get the checksum for a device, use L</checksum-device>."
5969 #: ../fish/guestfish-actions.pod:672
5970 msgid "To get the checksums for many files, use L</checksums-out>."
5974 #: ../fish/guestfish-actions.pod:674
5975 msgid "checksum-device"
5976 msgstr "checksum-device"
5979 #: ../fish/guestfish-actions.pod:676
5982 " checksum-device csumtype device\n"
5987 #: ../fish/guestfish-actions.pod:678
5989 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5990 "device named C<device>. For the types of checksums supported see the L</"
5991 "checksum> command."
5995 #: ../fish/guestfish-actions.pod:682
5996 msgid "checksums-out"
6000 #: ../fish/guestfish-actions.pod:684
6003 " checksums-out csumtype directory (sumsfile|-)\n"
6008 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6010 "This command computes the checksums of all regular files in C<directory> and "
6011 "then emits a list of those checksums to the local output file C<sumsfile>."
6015 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6017 "This can be used for verifying the integrity of a virtual machine. However "
6018 "to be properly secure you should pay attention to the output of the checksum "
6019 "command (it uses the ones from GNU coreutils). In particular when the "
6020 "filename is not printable, coreutils uses a special backslash syntax. For "
6021 "more information, see the GNU coreutils info file."
6025 #: ../fish/guestfish-actions.pod:700
6030 #: ../fish/guestfish-actions.pod:702
6033 " chmod mode path\n"
6038 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6040 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6045 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6047 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6048 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6053 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
6054 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
6055 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
6056 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
6057 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
6058 msgid "The mode actually set is affected by the umask."
6062 #: ../fish/guestfish-actions.pod:713
6067 #: ../fish/guestfish-actions.pod:715
6070 " chown owner group path\n"
6075 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6076 msgid "Change the file owner to C<owner> and group to C<group>."
6080 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
6081 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
6083 "Only numeric uid and gid are supported. If you want to use names, you will "
6084 "need to locate and parse the password file yourself (Augeas support makes "
6085 "this relatively easy)."
6089 #: ../fish/guestfish-actions.pod:723
6094 #: ../fish/guestfish-actions.pod:725
6097 " command 'arguments ...'\n"
6102 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6104 "This call runs a command from the guest filesystem. The filesystem must be "
6105 "mounted, and must contain a compatible operating system (ie. something "
6106 "Linux, with the same or compatible processor architecture)."
6110 #: ../fish/guestfish-actions.pod:732
6112 "The single parameter is an argv-style list of arguments. The first element "
6113 "is the name of the program to run. Subsequent elements are parameters. The "
6114 "list must be non-empty (ie. must contain a program name). Note that the "
6115 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6119 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6120 msgid "The return value is anything printed to I<stdout> by the command."
6124 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6126 "If the command returns a non-zero exit status, then this function returns an "
6127 "error message. The error message string is the content of I<stderr> from "
6132 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6134 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6135 "bin>. If you require a program from another location, you should provide "
6136 "the full path in the first parameter."
6140 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6142 "Shared libraries and data files required by the program must be available on "
6143 "filesystems which are mounted in the correct places. It is the caller's "
6144 "responsibility to ensure all filesystems that are needed are mounted at the "
6149 #: ../fish/guestfish-actions.pod:760
6150 msgid "command-lines"
6154 #: ../fish/guestfish-actions.pod:762
6157 " command-lines 'arguments ...'\n"
6162 #: ../fish/guestfish-actions.pod:764
6164 "This is the same as L</command>, but splits the result into a list of lines."
6168 #: ../fish/guestfish-actions.pod:767
6169 msgid "See also: L</sh-lines>"
6173 #: ../fish/guestfish-actions.pod:772
6178 #: ../fish/guestfish-actions.pod:774
6181 " config qemuparam qemuvalue\n"
6186 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6188 "This can be used to add arbitrary qemu command line parameters of the form "
6189 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6190 "setting some parameters which would interfere with parameters that we use."
6194 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6195 msgid "The first character of C<param> string must be a C<-> (dash)."
6199 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6200 msgid "C<value> can be NULL."
6204 #: ../fish/guestfish-actions.pod:785
6209 #: ../fish/guestfish-actions.pod:787
6212 " copy-size src dest size\n"
6217 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6219 "This command copies exactly C<size> bytes from one source device or file "
6220 "C<src> to another destination device or file C<dest>."
6224 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6226 "Note this will fail if the source is too short or if the destination is not "
6231 #: ../fish/guestfish-actions.pod:795
6236 #: ../fish/guestfish-actions.pod:797
6244 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6246 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6247 "destination filename or destination directory."
6251 #: ../fish/guestfish-actions.pod:802
6256 #: ../fish/guestfish-actions.pod:804
6264 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6266 "This copies a file or directory from C<src> to C<dest> recursively using the "
6271 #: ../fish/guestfish-actions.pod:809
6276 #: ../fish/guestfish-actions.pod:811
6284 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6286 "This command copies from one source device or file C<src> to another "
6287 "destination device or file C<dest>. Normally you would use this to copy to "
6288 "or from a device or partition, for example to duplicate a filesystem."
6292 #: ../fish/guestfish-actions.pod:818
6294 "If the destination is a device, it must be as large or larger than the "
6295 "source file or device, otherwise the copy will fail. This command cannot do "
6296 "partial copies (see L</copy-size>)."
6300 #: ../fish/guestfish-actions.pod:822
6305 #: ../fish/guestfish-actions.pod:824
6315 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6316 msgid "This command runs the C<df> command to report disk space used."
6320 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6322 "This command is mostly useful for interactive sessions. It is I<not> "
6323 "intended that you try to parse the output string. Use L</statvfs> from "
6328 #: ../fish/guestfish-actions.pod:832
6333 #: ../fish/guestfish-actions.pod:834
6343 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6345 "This command runs the C<df -h> command to report disk space used in human-"
6350 #: ../fish/guestfish-actions.pod:843
6355 #: ../fish/guestfish-actions.pod:845
6365 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6367 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6368 "This is sometimes useful for extended debugging of problems."
6372 #: ../fish/guestfish-actions.pod:851
6374 "Another way to get the same information is to enable verbose messages with "
6375 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6376 "before running the program."
6380 #: ../fish/guestfish-actions.pod:856
6385 #: ../fish/guestfish-actions.pod:858
6388 " download remotefilename (filename|-)\n"
6393 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6394 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6396 "Download file C<remotefilename> and save it as C<filename> on the local "
6401 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
6402 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
6403 msgid "C<filename> can also be a named pipe."
6407 #: ../fish/guestfish-actions.pod:865
6408 msgid "See also L</upload>, L</cat>."
6412 #: ../fish/guestfish-actions.pod:869
6413 msgid "download-offset"
6414 msgstr "download-offset"
6417 #: ../fish/guestfish-actions.pod:871
6420 " download-offset remotefilename (filename|-) offset size\n"
6425 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6427 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6428 "region must be within the file or device)."
6432 #: ../fish/guestfish-actions.pod:879
6434 "Note that there is no limit on the amount of data that can be downloaded "
6435 "with this call, unlike with L</pread>, and this call always reads the full "
6436 "amount unless an error occurs."
6440 #: ../fish/guestfish-actions.pod:884
6441 msgid "See also L</download>, L</pread>."
6445 #: ../fish/guestfish-actions.pod:888
6450 #: ../fish/guestfish-actions.pod:890
6453 " drop-caches whattodrop\n"
6458 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6460 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6461 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6462 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6466 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6467 msgid "Setting C<whattodrop> to 3 should drop everything."
6471 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6473 "This automatically calls L<sync(2)> before the operation, so that the "
6474 "maximum guest memory is freed."
6478 #: ../fish/guestfish-actions.pod:902
6483 #: ../fish/guestfish-actions.pod:904
6493 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6495 "This command runs the C<du -s> command to estimate file space usage for "
6500 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6502 "C<path> can be a file or a directory. If C<path> is a directory then the "
6503 "estimate includes the contents of the directory and all subdirectories "
6508 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6510 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6514 #: ../fish/guestfish-actions.pod:916
6519 #: ../fish/guestfish-actions.pod:918
6522 " e2fsck-f device\n"
6527 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6529 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6530 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6535 #: ../fish/guestfish-actions.pod:924
6537 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6538 "should use L</fsck>."
6542 #: ../fish/guestfish-actions.pod:927
6547 #: ../fish/guestfish-actions.pod:929
6550 " echo-daemon 'words ...'\n"
6555 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6557 "This command concatenates the list of C<words> passed with single spaces "
6558 "between them and returns the resulting string."
6562 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6563 msgid "You can use this command to test the connection through to the daemon."
6567 #: ../fish/guestfish-actions.pod:936
6568 msgid "See also L</ping-daemon>."
6572 #: ../fish/guestfish-actions.pod:938
6577 #: ../fish/guestfish-actions.pod:940
6580 " egrep regex path\n"
6585 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6587 "This calls the external C<egrep> program and returns the matching lines."
6591 #: ../fish/guestfish-actions.pod:948
6596 #: ../fish/guestfish-actions.pod:950
6599 " egrepi regex path\n"
6604 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6606 "This calls the external C<egrep -i> program and returns the matching lines."
6610 #: ../fish/guestfish-actions.pod:958
6615 #: ../fish/guestfish-actions.pod:960
6618 " equal file1 file2\n"
6621 " equal файл1 файл2\n"
6625 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6627 "This compares the two files C<file1> and C<file2> and returns true if their "
6628 "content is exactly equal, or false otherwise."
6632 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6633 msgid "The external L<cmp(1)> program is used for the comparison."
6637 #: ../fish/guestfish-actions.pod:967
6642 #: ../fish/guestfish-actions.pod:969
6652 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6654 "This returns C<true> if and only if there is a file, directory (or anything) "
6655 "with the given C<path> name."
6659 #: ../fish/guestfish-actions.pod:974
6660 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6661 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6664 #: ../fish/guestfish-actions.pod:976
6669 #: ../fish/guestfish-actions.pod:978
6672 " fallocate path len\n"
6675 " fallocate шлях довжина\n"
6679 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6680 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6682 "This command preallocates a file (containing zero bytes) named C<path> of "
6683 "size C<len> bytes. If the file exists already, it is overwritten."
6687 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6689 "Do not confuse this with the guestfish-specific C<alloc> command which "
6690 "allocates a file in the host and attaches it as a device."
6694 #: ../fish/guestfish-actions.pod:988
6696 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6701 #: ../fish/guestfish-actions.pod:995
6703 msgstr "fallocate64"
6706 #: ../fish/guestfish-actions.pod:997
6709 " fallocate64 path len\n"
6712 " fallocate64 шлях довжина\n"
6716 #: ../fish/guestfish-actions.pod:1003
6718 "Note that this call allocates disk blocks for the file. To create a sparse "
6719 "file use L</truncate-size> instead."
6723 #: ../fish/guestfish-actions.pod:1006
6725 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6726 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6727 "maximum size of files created through that call to 1GB."
6731 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6733 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6734 "commands which create a file in the host and attach it as a device."
6738 #: ../fish/guestfish-actions.pod:1015
6743 #: ../fish/guestfish-actions.pod:1017
6746 " fgrep pattern path\n"
6749 " fgrep шаблон шлях\n"
6753 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6755 "This calls the external C<fgrep> program and returns the matching lines."
6759 #: ../fish/guestfish-actions.pod:1025
6764 #: ../fish/guestfish-actions.pod:1027
6767 " fgrepi pattern path\n"
6770 " fgrepi шаблон шлях\n"
6774 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6776 "This calls the external C<fgrep -i> program and returns the matching lines."
6780 #: ../fish/guestfish-actions.pod:1035
6785 #: ../fish/guestfish-actions.pod:1037
6795 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6797 "This call uses the standard L<file(1)> command to determine the type or "
6798 "contents of the file."
6802 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6804 "This call will also transparently look inside various types of compressed "
6809 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6811 "The exact command which runs is C<file -zb path>. Note in particular that "
6812 "the filename is not prepended to the output (the I<-b> option)."
6816 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6818 "The output depends on the output of the underlying L<file(1)> command and it "
6819 "can change in future in ways beyond our control. In other words, the output "
6820 "is not guaranteed by the ABI."
6824 #: ../fish/guestfish-actions.pod:1053
6826 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6827 "(etc), L</is-zero>."
6831 #: ../fish/guestfish-actions.pod:1056
6832 msgid "file-architecture"
6833 msgstr "file-architecture"
6836 #: ../fish/guestfish-actions.pod:1058
6839 " file-architecture filename\n"
6842 " file-architecture назва_файла\n"
6846 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6848 "This detects the architecture of the binary C<filename>, and returns it if "
6853 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6854 msgid "Currently defined architectures are:"
6858 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6863 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6865 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6866 "irrespective of the precise processor requirements of the binary."
6870 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6875 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6876 msgid "64 bit x86-64."
6880 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6885 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6886 msgid "32 bit SPARC."
6890 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6895 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6896 msgid "64 bit SPARC V9 and above."
6900 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6905 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6906 msgid "Intel Itanium."
6907 msgstr "Intel Itanium."
6910 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6915 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6916 msgid "32 bit Power PC."
6920 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6925 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6926 msgid "64 bit Power PC."
6930 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6931 msgid "Libguestfs may return other architecture strings in future."
6935 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6936 msgid "The function works on at least the following types of files:"
6940 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6941 msgid "many types of Un*x and Linux binary"
6945 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6946 msgid "many types of Un*x and Linux shared library"
6950 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6951 msgid "Windows Win32 and Win64 binaries"
6955 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6956 msgid "Windows Win32 and Win64 DLLs"
6960 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6961 msgid "Win32 binaries and DLLs return C<i386>."
6965 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6966 msgid "Win64 binaries and DLLs return C<x86_64>."
6970 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6971 msgid "Linux kernel modules"
6975 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6976 msgid "Linux new-style initrd images"
6980 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6981 msgid "some non-x86 Linux vmlinuz kernels"
6985 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6986 msgid "What it can't do currently:"
6990 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6991 msgid "static libraries (libfoo.a)"
6995 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6996 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7000 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
7001 msgid "x86 Linux vmlinuz kernels"
7005 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
7007 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7008 "compressed code, and are horribly hard to unpack. If you want to find the "
7009 "architecture of a kernel, use the architecture of the associated initrd or "
7010 "kernel module(s) instead."
7014 #: ../fish/guestfish-actions.pod:1161
7019 #: ../fish/guestfish-actions.pod:1163
7029 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7030 msgid "This command returns the size of C<file> in bytes."
7034 #: ../fish/guestfish-actions.pod:1167
7036 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7037 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7041 #: ../fish/guestfish-actions.pod:1171
7046 #: ../fish/guestfish-actions.pod:1173
7049 " fill c len path\n"
7054 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7056 "This command creates a new file called C<path>. The initial content of the "
7057 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7062 #: ../fish/guestfish-actions.pod:1179
7064 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7065 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7070 #: ../fish/guestfish-actions.pod:1184
7071 msgid "fill-pattern"
7072 msgstr "fill-pattern"
7075 #: ../fish/guestfish-actions.pod:1186
7078 " fill-pattern pattern len path\n"
7083 #: ../fish/guestfish-actions.pod:1188
7085 "This function is like L</fill> except that it creates a new file of length "
7086 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7087 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7092 #: ../fish/guestfish-actions.pod:1193
7097 #: ../fish/guestfish-actions.pod:1195
7107 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7109 "This command lists out all files and directories, recursively, starting at "
7110 "C<directory>. It is essentially equivalent to running the shell command "
7111 "C<find directory -print> but some post-processing happens on the output, "
7116 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7118 "This returns a list of strings I<without any prefix>. Thus if the directory "
7123 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7133 #: ../fish/guestfish-actions.pod:1209
7134 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7138 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7149 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7150 msgid "If C<directory> is not a directory, then this command returns an error."
7154 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7155 msgid "The returned list is sorted."
7159 #: ../fish/guestfish-actions.pod:1222
7160 msgid "See also L</find0>."
7161 msgstr "Див. також L</find0>."
7164 #: ../fish/guestfish-actions.pod:1227
7169 #: ../fish/guestfish-actions.pod:1229
7172 " find0 directory (files|-)\n"
7175 " find0 каталог (файли|-)\n"
7179 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7181 "This command lists out all files and directories, recursively, starting at "
7182 "C<directory>, placing the resulting list in the external file called "
7187 #: ../fish/guestfish-actions.pod:1235
7189 "This command works the same way as L</find> with the following exceptions:"
7193 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7194 msgid "The resulting list is written to an external file."
7198 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7200 "Items (filenames) in the result are separated by C<\\0> characters. See "
7201 "L<find(1)> option I<-print0>."
7205 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7206 msgid "This command is not limited in the number of names that it can return."
7210 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7211 msgid "The result list is not sorted."
7215 #: ../fish/guestfish-actions.pod:1262
7216 msgid "findfs-label"
7217 msgstr "findfs-label"
7220 #: ../fish/guestfish-actions.pod:1264
7223 " findfs-label label\n"
7226 " findfs-label мітка\n"
7230 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7232 "This command searches the filesystems and returns the one which has the "
7233 "given label. An error is returned if no such filesystem can be found."
7237 #: ../fish/guestfish-actions.pod:1270
7238 msgid "To find the label of a filesystem, use L</vfs-label>."
7239 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7242 #: ../fish/guestfish-actions.pod:1272
7244 msgstr "findfs-uuid"
7247 #: ../fish/guestfish-actions.pod:1274
7250 " findfs-uuid uuid\n"
7253 " findfs-uuid uuid\n"
7257 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7259 "This command searches the filesystems and returns the one which has the "
7260 "given UUID. An error is returned if no such filesystem can be found."
7264 #: ../fish/guestfish-actions.pod:1280
7265 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7266 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7269 #: ../fish/guestfish-actions.pod:1282
7274 #: ../fish/guestfish-actions.pod:1284
7277 " fsck fstype device\n"
7280 " fsck тип_файлової_системи пристрій\n"
7284 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7286 "This runs the filesystem checker (fsck) on C<device> which should have "
7287 "filesystem type C<fstype>."
7291 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7293 "The returned integer is the status. See L<fsck(8)> for the list of status "
7294 "codes from C<fsck>."
7298 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7299 msgid "Multiple status codes can be summed together."
7303 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7305 "A non-zero return code can mean \"success\", for example if errors have been "
7306 "corrected on the filesystem."
7310 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7311 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7315 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7317 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7321 #: ../fish/guestfish-actions.pod:1314
7326 #: ../fish/guestfish-actions.pod:1316
7336 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7338 "Return the additional kernel options which are added to the guest kernel "
7343 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7344 msgid "If C<NULL> then no options are added."
7348 #: ../fish/guestfish-actions.pod:1323
7349 msgid "get-attach-method"
7350 msgstr "get-attach-method"
7353 #: ../fish/guestfish-actions.pod:1325
7356 " get-attach-method\n"
7359 " get-attach-method\n"
7363 #: ../fish/guestfish-actions.pod:1327
7364 msgid "Return the current attach method. See L</set-attach-method>."
7368 #: ../fish/guestfish-actions.pod:1329
7369 msgid "get-autosync"
7370 msgstr "get-autosync"
7373 #: ../fish/guestfish-actions.pod:1331
7383 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7384 msgid "Get the autosync flag."
7388 #: ../fish/guestfish-actions.pod:1335
7393 #: ../fish/guestfish-actions.pod:1337
7403 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7404 msgid "Return the direct appliance mode flag."
7408 #: ../fish/guestfish-actions.pod:1341
7410 msgstr "get-e2label"
7413 #: ../fish/guestfish-actions.pod:1343
7416 " get-e2label device\n"
7419 " get-e2label пристрій\n"
7423 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
7425 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7429 #: ../fish/guestfish-actions.pod:1348
7431 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7436 #: ../fish/guestfish-actions.pod:1355
7441 #: ../fish/guestfish-actions.pod:1357
7444 " get-e2uuid device\n"
7447 " get-e2uuid пристрій\n"
7451 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
7453 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7457 #: ../fish/guestfish-actions.pod:1362
7459 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7464 #: ../fish/guestfish-actions.pod:1369
7466 msgstr "get-memsize"
7469 #: ../fish/guestfish-actions.pod:1371
7479 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7481 "This gets the memory size in megabytes allocated to the qemu subprocess."
7485 #: ../fish/guestfish-actions.pod:1376
7487 "If L</set-memsize> was not called on this handle, and if "
7488 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7489 "value for memsize."
7493 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7494 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7495 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7496 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7498 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7502 #: ../fish/guestfish-actions.pod:1383
7504 msgstr "get-network"
7507 #: ../fish/guestfish-actions.pod:1385
7517 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7518 msgid "This returns the enable network flag."
7522 #: ../fish/guestfish-actions.pod:1389
7527 #: ../fish/guestfish-actions.pod:1391
7537 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7538 msgid "Return the current search path."
7542 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7544 "This is always non-NULL. If it wasn't set already, then this will return "
7549 #: ../fish/guestfish-actions.pod:1398
7554 #: ../fish/guestfish-actions.pod:1400
7562 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7563 msgid "This returns the process group flag."
7567 #: ../fish/guestfish-actions.pod:1404
7572 #: ../fish/guestfish-actions.pod:1406
7577 #: ../fish/guestfish-actions.pod:1408
7587 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7589 "Return the process ID of the qemu subprocess. If there is no qemu "
7590 "subprocess, then this will return an error."
7594 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7595 msgid "This is an internal call used for debugging and testing."
7599 #: ../fish/guestfish-actions.pod:1415
7604 #: ../fish/guestfish-actions.pod:1417
7614 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7615 msgid "Return the current qemu binary."
7619 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7621 "This is always non-NULL. If it wasn't set already, then this will return "
7622 "the default qemu binary name."
7626 #: ../fish/guestfish-actions.pod:1424
7627 msgid "get-recovery-proc"
7628 msgstr "get-recovery-proc"
7631 #: ../fish/guestfish-actions.pod:1426
7634 " get-recovery-proc\n"
7637 " get-recovery-proc\n"
7641 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7642 msgid "Return the recovery process enabled flag."
7646 #: ../fish/guestfish-actions.pod:1430
7648 msgstr "get-selinux"
7651 #: ../fish/guestfish-actions.pod:1432
7661 #: ../fish/guestfish-actions.pod:1434
7663 "This returns the current setting of the selinux flag which is passed to the "
7664 "appliance at boot time. See L</set-selinux>."
7668 #: ../fish/guestfish-actions.pod:1440
7673 #: ../fish/guestfish-actions.pod:1442
7683 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7685 "This returns the current state as an opaque integer. This is only useful "
7686 "for printing debug and internal error messages."
7690 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7691 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7692 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7693 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7694 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7695 msgid "For more information on states, see L<guestfs(3)>."
7699 #: ../fish/guestfish-actions.pod:1449
7704 #: ../fish/guestfish-actions.pod:1451
7714 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7715 msgid "Return the command trace flag."
7719 #: ../fish/guestfish-actions.pod:1455
7724 #: ../fish/guestfish-actions.pod:1457
7734 #: ../fish/guestfish-actions.pod:1459
7736 "Return the current umask. By default the umask is C<022> unless it has been "
7737 "set by calling L</umask>."
7741 #: ../fish/guestfish-actions.pod:1462
7743 msgstr "get-verbose"
7746 #: ../fish/guestfish-actions.pod:1464
7756 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7757 msgid "This returns the verbose messages flag."
7761 #: ../fish/guestfish-actions.pod:1468
7766 #: ../fish/guestfish-actions.pod:1470
7776 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7777 msgid "This gets the SELinux security context of the daemon."
7781 #: ../fish/guestfish-actions.pod:1474
7782 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7786 #: ../fish/guestfish-actions.pod:1477
7791 #: ../fish/guestfish-actions.pod:1479
7794 " getxattr path name\n"
7797 " getxattr шлях назва\n"
7801 #: ../fish/guestfish-actions.pod:1481
7803 "Get a single extended attribute from file C<path> named C<name>. This call "
7804 "follows symlinks. If you want to lookup an extended attribute for the "
7805 "symlink itself, use L</lgetxattr>."
7809 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7811 "Normally it is better to get all extended attributes from a file in one go "
7812 "by calling L</getxattrs>. However some Linux filesystem implementations are "
7813 "buggy and do not provide a way to list out attributes. For these "
7814 "filesystems (notably ntfs-3g) you have to know the names of the extended "
7815 "attributes you want in advance and call this function."
7819 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7820 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7822 "Extended attribute values are blobs of binary data. If there is no extended "
7823 "attribute named C<name>, this returns an error."
7827 #: ../fish/guestfish-actions.pod:1495
7828 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7829 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7832 #: ../fish/guestfish-actions.pod:1497
7837 #: ../fish/guestfish-actions.pod:1499
7847 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7849 "This call lists the extended attributes of the file or directory C<path>."
7853 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7855 "At the system call level, this is a combination of the L<listxattr(2)> and "
7856 "L<getxattr(2)> calls."
7860 #: ../fish/guestfish-actions.pod:1507
7861 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7862 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7865 #: ../fish/guestfish-actions.pod:1509
7867 msgstr "glob-expand"
7870 #: ../fish/guestfish-actions.pod:1511
7873 " glob-expand pattern\n"
7876 " glob-expand шаблон\n"
7880 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7882 "This command searches for all the pathnames matching C<pattern> according to "
7883 "the wildcard expansion rules used by the shell."
7887 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7889 "If no paths match, then this returns an empty list (note: not an error)."
7893 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7895 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7896 "GLOB_BRACE>. See that manual page for more details."
7900 #: ../fish/guestfish-actions.pod:1524
7905 #: ../fish/guestfish-actions.pod:1526
7908 " grep regex path\n"
7911 " grepi формальний_вираз шлях\n"
7915 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7916 msgid "This calls the external C<grep> program and returns the matching lines."
7920 #: ../fish/guestfish-actions.pod:1534
7925 #: ../fish/guestfish-actions.pod:1536
7928 " grepi regex path\n"
7931 " grepi формальний_вираз шлях\n"
7935 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7937 "This calls the external C<grep -i> program and returns the matching lines."
7941 #: ../fish/guestfish-actions.pod:1544
7942 msgid "grub-install"
7943 msgstr "grub-install"
7946 #: ../fish/guestfish-actions.pod:1546
7949 " grub-install root device\n"
7952 " grub-install кореневий пристрій\n"
7956 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7958 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7959 "the root directory being C<root>."
7963 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7965 "Note: If grub-install reports the error \"No suitable drive was found in the "
7966 "generated device map.\" it may be that you need to create a C</boot/grub/"
7967 "device.map> file first that contains the mapping between grub device names "
7968 "and Linux device names. It is usually sufficient to create a file "
7973 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7981 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7982 msgid "replacing C</dev/vda> with the name of the installation device."
7986 #: ../fish/guestfish-actions.pod:1562
7991 #: ../fish/guestfish-actions.pod:1564
8001 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
8003 "This command returns up to the first 10 lines of a file as a list of strings."
8007 #: ../fish/guestfish-actions.pod:1572
8012 #: ../fish/guestfish-actions.pod:1574
8015 " head-n nrlines path\n"
8020 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
8022 "If the parameter C<nrlines> is a positive number, this returns the first "
8023 "C<nrlines> lines of the file C<path>."
8027 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
8029 "If the parameter C<nrlines> is a negative number, this returns lines from "
8030 "the file C<path>, excluding the last C<nrlines> lines."
8034 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
8035 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
8036 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8040 #: ../fish/guestfish-actions.pod:1587
8045 #: ../fish/guestfish-actions.pod:1589
8055 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
8057 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8058 "readable, canonical hex dump of the file."
8062 #: ../fish/guestfish-actions.pod:1597
8067 #: ../fish/guestfish-actions.pod:1599
8070 " initrd-cat initrdpath filename\n"
8073 " initrd-cat шлях_initrd назва_файла\n"
8077 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
8079 "This command unpacks the file C<filename> from the initrd file called "
8080 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8085 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
8087 "For example, in guestfish you could use the following command to examine the "
8088 "boot script (usually called C</init>) contained in a Linux initrd or "
8093 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
8096 " initrd-cat /boot/initrd-<version>.img init\n"
8101 #: ../fish/guestfish-actions.pod:1611
8102 msgid "See also L</initrd-list>."
8103 msgstr "Див. також L</initrd-list>."
8106 #: ../fish/guestfish-actions.pod:1616
8108 msgstr "initrd-list"
8111 #: ../fish/guestfish-actions.pod:1618
8114 " initrd-list path\n"
8117 " initrd-list шлях\n"
8121 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
8122 msgid "This command lists out files contained in an initrd."
8126 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
8128 "The files are listed without any initial C</> character. The files are "
8129 "listed in the order they appear (not necessarily alphabetical). Directory "
8130 "names are listed as separate items."
8134 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
8136 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8137 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8142 #: ../fish/guestfish-actions.pod:1630
8143 msgid "inotify-add-watch"
8144 msgstr "inotify-add-watch"
8147 #: ../fish/guestfish-actions.pod:1632
8150 " inotify-add-watch path mask\n"
8153 " inotify-add-watch шлях маска\n"
8157 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
8158 msgid "Watch C<path> for the events listed in C<mask>."
8162 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
8164 "Note that if C<path> is a directory then events within that directory are "
8165 "watched, but this does I<not> happen recursively (in subdirectories)."
8169 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
8171 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8172 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8176 #: ../fish/guestfish-actions.pod:1644
8177 msgid "inotify-close"
8178 msgstr "inotify-close"
8181 #: ../fish/guestfish-actions.pod:1646
8191 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
8193 "This closes the inotify handle which was previously opened by inotify_init. "
8194 "It removes all watches, throws away any pending events, and deallocates all "
8199 #: ../fish/guestfish-actions.pod:1652
8200 msgid "inotify-files"
8201 msgstr "inotify-files"
8204 #: ../fish/guestfish-actions.pod:1654
8214 #: ../fish/guestfish-actions.pod:1656
8216 "This function is a helpful wrapper around L</inotify-read> which just "
8217 "returns a list of pathnames of objects that were touched. The returned "
8218 "pathnames are sorted and deduplicated."
8222 #: ../fish/guestfish-actions.pod:1660
8223 msgid "inotify-init"
8224 msgstr "inotify-init"
8227 #: ../fish/guestfish-actions.pod:1662
8230 " inotify-init maxevents\n"
8235 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
8237 "This command creates a new inotify handle. The inotify subsystem can be "
8238 "used to notify events which happen to objects in the guest filesystem."
8242 #: ../fish/guestfish-actions.pod:1668
8244 "C<maxevents> is the maximum number of events which will be queued up between "
8245 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8246 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8247 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8248 "but records the fact that it threw them away by setting a flag "
8249 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8253 #: ../fish/guestfish-actions.pod:1678
8255 "Before any events are generated, you have to add some watches to the "
8256 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8257 "L</inotify-watch-all>."
8261 #: ../fish/guestfish-actions.pod:1684
8263 "Queued up events should be read periodically by calling L</inotify-read> (or "
8264 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8265 "If you don't read the events out often enough then you risk the internal "
8266 "queue overflowing."
8270 #: ../fish/guestfish-actions.pod:1691
8272 "The handle should be closed after use by calling L</inotify-close>. This "
8273 "also removes any watches automatically."
8277 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
8279 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8280 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8281 "that there is one global inotify handle per libguestfs instance."
8285 #: ../fish/guestfish-actions.pod:1700
8286 msgid "inotify-read"
8287 msgstr "inotify-read"
8290 #: ../fish/guestfish-actions.pod:1702
8300 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8302 "Return the complete queue of events that have happened since the previous "
8307 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
8308 msgid "If no events have happened, this returns an empty list."
8312 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
8314 "I<Note>: In order to make sure that all events have been read, you must call "
8315 "this function repeatedly until it returns an empty list. The reason is that "
8316 "the call will read events up to the maximum appliance-to-host message size "
8317 "and leave remaining events in the queue."
8321 #: ../fish/guestfish-actions.pod:1715
8322 msgid "inotify-rm-watch"
8323 msgstr "inotify-rm-watch"
8326 #: ../fish/guestfish-actions.pod:1717
8329 " inotify-rm-watch wd\n"
8334 #: ../fish/guestfish-actions.pod:1719
8335 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8339 #: ../fish/guestfish-actions.pod:1722
8340 msgid "inspect-get-arch"
8341 msgstr "inspect-get-arch"
8344 #: ../fish/guestfish-actions.pod:1724
8347 " inspect-get-arch root\n"
8350 " inspect-get-arch корінь\n"
8354 #: ../fish/guestfish-actions.pod:1726
8356 "This returns the architecture of the inspected operating system. The "
8357 "possible return values are listed under L</file-architecture>."
8361 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
8363 "If the architecture could not be determined, then the string C<unknown> is "
8368 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
8369 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
8370 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
8371 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
8372 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
8373 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
8374 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
8375 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
8376 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
8377 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
8378 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
8379 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
8380 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
8381 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
8382 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
8383 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
8384 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
8385 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8389 #: ../fish/guestfish-actions.pod:1735
8390 msgid "inspect-get-distro"
8391 msgstr "inspect-get-distro"
8394 #: ../fish/guestfish-actions.pod:1737
8397 " inspect-get-distro root\n"
8400 " inspect-get-distro корінь\n"
8404 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
8406 "This returns the distro (distribution) of the inspected operating system."
8410 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
8411 msgid "Currently defined distros are:"
8415 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
8416 msgid "\"archlinux\""
8417 msgstr "\"archlinux\""
8420 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
8422 msgstr "Arch Linux."
8425 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
8430 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
8435 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
8440 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
8445 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
8450 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
8455 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
8460 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8465 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
8466 msgid "\"linuxmint\""
8467 msgstr "\"linuxmint\""
8470 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8472 msgstr "Linux Mint."
8475 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8476 msgid "\"mandriva\""
8477 msgstr "\"mandriva\""
8480 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8485 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8490 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8495 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8500 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8505 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8506 msgid "\"redhat-based\""
8507 msgstr "\"redhat-based\""
8510 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8511 msgid "Some Red Hat-derived distro."
8512 msgstr "Дистрибутив, що походить від Red Hat."
8515 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8520 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8521 msgid "Red Hat Enterprise Linux."
8525 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8526 msgid "\"scientificlinux\""
8530 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8531 msgid "Scientific Linux."
8535 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8536 msgid "\"slackware\""
8540 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8545 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8550 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8555 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8556 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8557 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8559 msgstr "\"unknown\""
8562 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8563 msgid "The distro could not be determined."
8564 msgstr "Дистрибутив, тип якого не вдалося визначити."
8567 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8568 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8570 msgstr "\"windows\""
8573 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8575 "Windows does not have distributions. This string is returned if the OS type "
8580 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8581 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8582 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8584 "Future versions of libguestfs may return other strings here. The caller "
8585 "should be prepared to handle any string."
8589 #: ../fish/guestfish-actions.pod:1818
8590 msgid "inspect-get-drive-mappings"
8594 #: ../fish/guestfish-actions.pod:1820
8597 " inspect-get-drive-mappings root\n"
8602 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8604 "This call is useful for Windows which uses a primitive system of assigning "
8605 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8606 "Windows Registry to find out how disks/partitions are mapped to drive "
8607 "letters, and returns a hash table as in the example below:"
8611 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8621 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8623 "Note that keys are drive letters. For Windows, the key is case insensitive "
8624 "and just contains the drive letter, without the customary colon separator "
8629 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8631 "In future we may support other operating systems that also used drive "
8632 "letters, but the keys for those might not be case insensitive and might be "
8633 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
8638 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8640 "For Windows guests, currently only hard drive mappings are returned. "
8641 "Removable disks (eg. DVD-ROMs) are ignored."
8645 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8647 "For guests that do not use drive mappings, or if the drive mappings could "
8648 "not be determined, this returns an empty hash table."
8652 #: ../fish/guestfish-actions.pod:1847
8654 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8655 "get-mountpoints>, L</inspect-get-filesystems>."
8659 #: ../fish/guestfish-actions.pod:1851
8660 msgid "inspect-get-filesystems"
8661 msgstr "inspect-get-filesystems"
8664 #: ../fish/guestfish-actions.pod:1853
8667 " inspect-get-filesystems root\n"
8670 " inspect-get-filesystems корінь\n"
8674 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8676 "This returns a list of all the filesystems that we think are associated with "
8677 "this operating system. This includes the root filesystem, other ordinary "
8678 "filesystems, and non-mounted devices like swap partitions."
8682 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8684 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8685 "to be shared between operating systems."
8689 #: ../fish/guestfish-actions.pod:1863
8691 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8696 #: ../fish/guestfish-actions.pod:1866
8697 msgid "inspect-get-format"
8698 msgstr "inspect-get-format"
8701 #: ../fish/guestfish-actions.pod:1868
8704 " inspect-get-format root\n"
8707 " inspect-get-format корінь\n"
8711 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8713 "This returns the format of the inspected operating system. You can use it "
8714 "to detect install images, live CDs and similar."
8718 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8719 msgid "Currently defined formats are:"
8723 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8724 msgid "\"installed\""
8725 msgstr "\"installed\""
8728 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8729 msgid "This is an installed operating system."
8730 msgstr "Це встановлена операційна система."
8733 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8734 msgid "\"installer\""
8738 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8740 "The disk image being inspected is not an installed operating system, but a "
8741 "I<bootable> install disk, live CD, or similar."
8745 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8746 msgid "The format of this disk image is not known."
8750 #: ../fish/guestfish-actions.pod:1897
8751 msgid "inspect-get-hostname"
8752 msgstr "inspect-get-hostname"
8755 #: ../fish/guestfish-actions.pod:1899
8758 " inspect-get-hostname root\n"
8761 " inspect-get-hostname корінь\n"
8765 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8767 "This function returns the hostname of the operating system as found by "
8768 "inspection of the guest's configuration files."
8772 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8774 "If the hostname could not be determined, then the string C<unknown> is "
8779 #: ../fish/guestfish-actions.pod:1909
8780 msgid "inspect-get-icon"
8784 #: ../fish/guestfish-actions.pod:1911
8787 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8792 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8794 "This function returns an icon corresponding to the inspected operating "
8795 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
8796 "to PNG if necessary)."
8800 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8802 "If it was not possible to get an icon this function returns a zero-length "
8803 "(non-NULL) buffer. I<Callers must check for this case>."
8807 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8809 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8810 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8811 "this file will be returned. You can disable favicons by passing the "
8812 "optional C<favicon> boolean as false (default is true)."
8816 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8818 "If finding the favicon fails, then we look in other places in the guest for "
8823 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8825 "If the optional C<highquality> boolean is true then only high quality icons "
8826 "are returned, which means only icons of high resolution with an alpha "
8827 "channel. The default (false) is to return any icon we can, even if it is of "
8828 "substandard quality."
8832 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8834 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8835 "before you call this, since it needs to read information from the guest "
8836 "filesystem during the call."
8840 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8842 "B<Security:> The icon data comes from the untrusted guest, and should be "
8843 "treated with caution. PNG files have been known to contain exploits. "
8844 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8845 "trying to process or display the icon."
8849 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8851 "The PNG image returned can be any size. It might not be square. Libguestfs "
8852 "tries to return the largest, highest quality icon available. The "
8853 "application must scale the icon to the required size."
8857 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8859 "Extracting icons from Windows guests requires the external C<wrestool> "
8860 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8861 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
8862 "installed separately."
8866 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8868 "Operating system icons are usually trademarks. Seek legal advice before "
8869 "using trademarks in applications."
8873 #: ../fish/guestfish-actions.pod:1975
8874 msgid "inspect-get-major-version"
8875 msgstr "inspect-get-major-version"
8878 #: ../fish/guestfish-actions.pod:1977
8881 " inspect-get-major-version root\n"
8884 " inspect-get-major-version корінь\n"
8888 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8890 "This returns the major version number of the inspected operating system."
8894 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8896 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8897 "popular public names used by the operating system. Notably the operating "
8898 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8899 "1). You can find out the real versions corresponding to releases of Windows "
8900 "by consulting Wikipedia or MSDN."
8904 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8905 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8906 msgid "If the version could not be determined, then C<0> is returned."
8910 #: ../fish/guestfish-actions.pod:1993
8911 msgid "inspect-get-minor-version"
8912 msgstr "inspect-get-minor-version"
8915 #: ../fish/guestfish-actions.pod:1995
8918 " inspect-get-minor-version root\n"
8921 " inspect-get-minor-version корінь\n"
8925 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8927 "This returns the minor version number of the inspected operating system."
8931 #: ../fish/guestfish-actions.pod:2002
8933 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8934 "get-major-version>."
8938 #: ../fish/guestfish-actions.pod:2005
8939 msgid "inspect-get-mountpoints"
8940 msgstr "inspect-get-mountpoints"
8943 #: ../fish/guestfish-actions.pod:2007
8946 " inspect-get-mountpoints root\n"
8949 " inspect-get-mountpoints корінь\n"
8953 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8955 "This returns a hash of where we think the filesystems associated with this "
8956 "operating system should be mounted. Callers should note that this is at "
8957 "best an educated guess made by reading configuration files such as C</etc/"
8958 "fstab>. I<In particular note> that this may return filesystems which are "
8959 "non-existent or not mountable and callers should be prepared to handle or "
8960 "ignore failures if they try to mount them."
8964 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8966 "Each element in the returned hashtable has a key which is the path of the "
8967 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8968 "mounted there (eg. C</dev/sda1>)."
8972 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8974 "Non-mounted devices such as swap devices are I<not> returned in this list."
8978 #: ../fish/guestfish-actions.pod:2026
8980 "For operating systems like Windows which still use drive letters, this call "
8981 "will only return an entry for the first drive \"mounted on\" C</>. For "
8982 "information about the mapping of drive letters to partitions, see L</inspect-"
8983 "get-drive-mappings>."
8987 #: ../fish/guestfish-actions.pod:2032
8989 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8994 #: ../fish/guestfish-actions.pod:2035
8995 msgid "inspect-get-package-format"
8996 msgstr "inspect-get-package-format"
8999 #: ../fish/guestfish-actions.pod:2037
9002 " inspect-get-package-format root\n"
9005 " inspect-get-package-format корінь\n"
9009 #: ../fish/guestfish-actions.pod:2039
9011 "This function and L</inspect-get-package-management> return the package "
9012 "format and package management tool used by the inspected operating system. "
9013 "For example for Fedora these functions would return C<rpm> (package format) "
9014 "and C<yum> (package management)."
9018 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
9020 "This returns the string C<unknown> if we could not determine the package "
9021 "format I<or> if the operating system does not have a real packaging system "
9026 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
9028 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9029 "Future versions of libguestfs may return other strings."
9033 #: ../fish/guestfish-actions.pod:2054
9034 msgid "inspect-get-package-management"
9035 msgstr "inspect-get-package-management"
9038 #: ../fish/guestfish-actions.pod:2056
9041 " inspect-get-package-management root\n"
9044 " inspect-get-package-management корінь\n"
9048 #: ../fish/guestfish-actions.pod:2058
9050 "L</inspect-get-package-format> and this function return the package format "
9051 "and package management tool used by the inspected operating system. For "
9052 "example for Fedora these functions would return C<rpm> (package format) and "
9053 "C<yum> (package management)."
9057 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
9059 "This returns the string C<unknown> if we could not determine the package "
9060 "management tool I<or> if the operating system does not have a real packaging "
9061 "system (eg. Windows)."
9065 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
9067 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9068 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9069 "libguestfs may return other strings."
9073 #: ../fish/guestfish-actions.pod:2075
9074 msgid "inspect-get-product-name"
9075 msgstr "inspect-get-product-name"
9078 #: ../fish/guestfish-actions.pod:2077
9081 " inspect-get-product-name root\n"
9084 " inspect-get-product-name корінь\n"
9088 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9090 "This returns the product name of the inspected operating system. The "
9091 "product name is generally some freeform string which can be displayed to the "
9092 "user, but should not be parsed by programs."
9096 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
9098 "If the product name could not be determined, then the string C<unknown> is "
9103 #: ../fish/guestfish-actions.pod:2089
9104 msgid "inspect-get-product-variant"
9108 #: ../fish/guestfish-actions.pod:2091
9111 " inspect-get-product-variant root\n"
9116 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
9117 msgid "This returns the product variant of the inspected operating system."
9121 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
9123 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9124 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9125 "is usually a string such as C<Client> or C<Server> (other values are "
9126 "possible). This can be used to distinguish consumer and enterprise versions "
9127 "of Windows that have the same version number (for example, Windows 7 and "
9128 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9129 "the latter is C<Server>)."
9133 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
9135 "For enterprise Linux guests, in future we intend this to return the product "
9136 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9137 "implemented at present."
9141 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
9143 "If the product variant could not be determined, then the string C<unknown> "
9148 #: ../fish/guestfish-actions.pod:2112
9150 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9151 "get-product-name>, L</inspect-get-major-version>."
9155 #: ../fish/guestfish-actions.pod:2116
9156 msgid "inspect-get-roots"
9157 msgstr "inspect-get-roots"
9160 #: ../fish/guestfish-actions.pod:2118
9163 " inspect-get-roots\n"
9166 " inspect-get-roots\n"
9170 #: ../fish/guestfish-actions.pod:2120
9172 "This function is a convenient way to get the list of root devices, as "
9173 "returned from a previous call to L</inspect-os>, but without redoing the "
9174 "whole inspection process."
9178 #: ../fish/guestfish-actions.pod:2124
9180 "This returns an empty list if either no root devices were found or the "
9181 "caller has not called L</inspect-os>."
9185 #: ../fish/guestfish-actions.pod:2129
9186 msgid "inspect-get-type"
9187 msgstr "inspect-get-type"
9190 #: ../fish/guestfish-actions.pod:2131
9193 " inspect-get-type root\n"
9196 " inspect-get-type корінь\n"
9200 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9202 "This returns the type of the inspected operating system. Currently defined "
9207 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
9212 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
9213 msgid "Any Linux-based operating system."
9217 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
9218 msgid "Any Microsoft Windows operating system."
9222 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
9224 msgstr "\"freebsd\""
9227 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
9232 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
9233 msgid "The operating system type could not be determined."
9237 #: ../fish/guestfish-actions.pod:2161
9238 msgid "inspect-get-windows-current-control-set"
9242 #: ../fish/guestfish-actions.pod:2163
9245 " inspect-get-windows-current-control-set root\n"
9250 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
9252 "This returns the Windows CurrentControlSet of the inspected guest. The "
9253 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9257 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
9259 "This call assumes that the guest is Windows and that the Registry could be "
9260 "examined by inspection. If this is not the case then an error is returned."
9264 #: ../fish/guestfish-actions.pod:2174
9265 msgid "inspect-get-windows-systemroot"
9266 msgstr "inspect-get-windows-systemroot"
9269 #: ../fish/guestfish-actions.pod:2176
9272 " inspect-get-windows-systemroot root\n"
9275 " inspect-get-windows-systemroot корінь\n"
9279 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
9281 "This returns the Windows systemroot of the inspected guest. The systemroot "
9282 "is a directory path such as C</WINDOWS>."
9286 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
9288 "This call assumes that the guest is Windows and that the systemroot could be "
9289 "determined by inspection. If this is not the case then an error is returned."
9293 #: ../fish/guestfish-actions.pod:2187
9294 msgid "inspect-is-live"
9295 msgstr "inspect-is-live"
9298 #: ../fish/guestfish-actions.pod:2189
9301 " inspect-is-live root\n"
9304 " inspect-is-live корінь\n"
9308 #: ../fish/guestfish-actions.pod:2191
9310 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9311 "then this returns true if a live image was detected on the disk."
9315 #: ../fish/guestfish-actions.pod:2197
9316 msgid "inspect-is-multipart"
9317 msgstr "inspect-is-multipart"
9320 #: ../fish/guestfish-actions.pod:2199
9323 " inspect-is-multipart root\n"
9326 " inspect-is-multipart корінь\n"
9330 #: ../fish/guestfish-actions.pod:2201
9332 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9333 "then this returns true if the disk is part of a set."
9337 #: ../fish/guestfish-actions.pod:2207
9338 msgid "inspect-is-netinst"
9339 msgstr "inspect-is-netinst"
9342 #: ../fish/guestfish-actions.pod:2209
9345 " inspect-is-netinst root\n"
9348 " inspect-is-netinst корінь\n"
9352 #: ../fish/guestfish-actions.pod:2211
9354 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9355 "then this returns true if the disk is a network installer, ie. not a self-"
9356 "contained install CD but one which is likely to require network access to "
9357 "complete the install."
9361 #: ../fish/guestfish-actions.pod:2219
9362 msgid "inspect-list-applications"
9363 msgstr "inspect-list-applications"
9366 #: ../fish/guestfish-actions.pod:2221
9369 " inspect-list-applications root\n"
9372 " inspect-list-applications кореневий_каталог\n"
9376 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
9377 msgid "Return the list of applications installed in the operating system."
9381 #: ../fish/guestfish-actions.pod:2225
9383 "I<Note:> This call works differently from other parts of the inspection "
9384 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9385 "then mount up the disks, before calling this. Listing applications is a "
9386 "significantly more difficult operation which requires access to the full "
9387 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9388 "are just returning data cached in the libguestfs handle, this call actually "
9389 "reads parts of the mounted filesystems during the call."
9393 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
9395 "This returns an empty list if the inspection code was not able to determine "
9396 "the list of applications."
9400 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
9401 msgid "The application structure contains the following fields:"
9405 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9407 msgstr "C<app_name>"
9410 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9412 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9413 "guests, this is the package name."
9417 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9418 msgid "C<app_display_name>"
9419 msgstr "C<app_display_name>"
9422 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9424 "The display name of the application, sometimes localized to the install "
9425 "language of the guest operating system."
9429 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9431 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9432 "to display something can use C<app_name> instead."
9436 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9437 msgid "C<app_epoch>"
9438 msgstr "C<app_epoch>"
9441 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9443 "For package managers which use epochs, this contains the epoch of the "
9444 "package (an integer). If unavailable, this is returned as C<0>."
9448 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9449 msgid "C<app_version>"
9450 msgstr "C<app_version>"
9453 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9455 "The version string of the application or package. If unavailable this is "
9456 "returned as an empty string C<\"\">."
9460 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
9461 msgid "C<app_release>"
9462 msgstr "C<app_release>"
9465 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
9467 "The release string of the application or package, for package managers that "
9468 "use this. If unavailable this is returned as an empty string C<\"\">."
9472 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9473 msgid "C<app_install_path>"
9474 msgstr "C<app_install_path>"
9477 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9479 "The installation path of the application (on operating systems such as "
9480 "Windows which use installation paths). This path is in the format used by "
9481 "the guest operating system, it is not a libguestfs path."
9485 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9486 msgid "If unavailable this is returned as an empty string C<\"\">."
9490 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9491 msgid "C<app_trans_path>"
9492 msgstr "C<app_trans_path>"
9495 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9497 "The install path translated into a libguestfs path. If unavailable this is "
9498 "returned as an empty string C<\"\">."
9502 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
9503 msgid "C<app_publisher>"
9504 msgstr "C<app_publisher>"
9507 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9509 "The name of the publisher of the application, for package managers that use "
9510 "this. If unavailable this is returned as an empty string C<\"\">."
9514 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9519 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9521 "The URL (eg. upstream URL) of the application. If unavailable this is "
9522 "returned as an empty string C<\"\">."
9526 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9527 msgid "C<app_source_package>"
9528 msgstr "C<app_source_package>"
9531 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9533 "For packaging systems which support this, the name of the source package. "
9534 "If unavailable this is returned as an empty string C<\"\">."
9538 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9539 msgid "C<app_summary>"
9540 msgstr "C<app_summary>"
9543 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9545 "A short (usually one line) description of the application or package. If "
9546 "unavailable this is returned as an empty string C<\"\">."
9550 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9551 msgid "C<app_description>"
9552 msgstr "C<app_description>"
9555 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9557 "A longer description of the application or package. If unavailable this is "
9558 "returned as an empty string C<\"\">."
9562 #: ../fish/guestfish-actions.pod:2315
9567 #: ../fish/guestfish-actions.pod:2317
9577 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9579 "This function uses other libguestfs functions and certain heuristics to "
9580 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9581 "for operating systems."
9585 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9586 msgid "The list returned is empty if no operating systems were found."
9590 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9592 "If one operating system was found, then this returns a list with a single "
9593 "element, which is the name of the root filesystem of this operating system. "
9594 "It is also possible for this function to return a list containing more than "
9595 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9596 "element being the root filesystem of one of the operating systems."
9600 #: ../fish/guestfish-actions.pod:2332
9602 "You can pass the root string(s) returned to other L</inspect-get-*> "
9603 "functions in order to query further information about each operating system, "
9604 "such as the name and version."
9608 #: ../fish/guestfish-actions.pod:2337
9610 "This function uses other libguestfs features such as L</mount-ro> and L</"
9611 "umount-all> in order to mount and unmount filesystems and look at the "
9612 "contents. This should be called with no disks currently mounted. The "
9613 "function may also use Augeas, so any existing Augeas handle will be closed."
9617 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9619 "This function cannot decrypt encrypted disks. The caller must do that first "
9620 "(supplying the necessary keys) if the disk is encrypted."
9624 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9625 #: ../fish/guestfish-actions.pod:2606
9626 msgid "See also L</list-filesystems>."
9627 msgstr "Див. також L</list-filesystems>."
9630 #: ../fish/guestfish-actions.pod:2351
9632 msgstr "is-blockdev"
9635 #: ../fish/guestfish-actions.pod:2353
9638 " is-blockdev path\n"
9641 " is-blockdev шлях\n"
9645 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9647 "This returns C<true> if and only if there is a block device with the given "
9652 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9653 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9654 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9655 #: ../fish/guestfish-actions.pod:2457
9656 msgid "See also L</stat>."
9657 msgstr "Див. також L</stat>."
9660 #: ../fish/guestfish-actions.pod:2360
9665 #: ../fish/guestfish-actions.pod:2362
9675 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9677 "This returns true iff this handle is busy processing a command (in the "
9682 #: ../fish/guestfish-actions.pod:2369
9687 #: ../fish/guestfish-actions.pod:2371
9690 " is-chardev path\n"
9693 " is-chardev шлях\n"
9697 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9699 "This returns C<true> if and only if there is a character device with the "
9700 "given C<path> name."
9704 #: ../fish/guestfish-actions.pod:2378
9709 #: ../fish/guestfish-actions.pod:2380
9719 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9721 "This returns true iff this handle is being configured (in the C<CONFIG> "
9726 #: ../fish/guestfish-actions.pod:2387
9731 #: ../fish/guestfish-actions.pod:2389
9741 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9743 "This returns C<true> if and only if there is a directory with the given "
9744 "C<path> name. Note that it returns false for other objects like files."
9748 #: ../fish/guestfish-actions.pod:2397
9753 #: ../fish/guestfish-actions.pod:2399
9763 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9765 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
9766 "given C<path> name."
9770 #: ../fish/guestfish-actions.pod:2406
9775 #: ../fish/guestfish-actions.pod:2408
9785 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9787 "This returns C<true> if and only if there is a regular file with the given "
9788 "C<path> name. Note that it returns false for other objects like directories."
9792 #: ../fish/guestfish-actions.pod:2416
9793 msgid "is-launching"
9794 msgstr "is-launching"
9797 #: ../fish/guestfish-actions.pod:2418
9807 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9809 "This returns true iff this handle is launching the subprocess (in the "
9810 "C<LAUNCHING> state)."
9814 #: ../fish/guestfish-actions.pod:2425
9819 #: ../fish/guestfish-actions.pod:2427
9829 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9831 "This command tests whether C<device> is a logical volume, and returns true "
9832 "iff this is the case."
9836 #: ../fish/guestfish-actions.pod:2432
9841 #: ../fish/guestfish-actions.pod:2434
9851 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9853 "This returns true iff this handle is ready to accept commands (in the "
9858 #: ../fish/guestfish-actions.pod:2441
9863 #: ../fish/guestfish-actions.pod:2443
9873 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9875 "This returns C<true> if and only if there is a Unix domain socket with the "
9876 "given C<path> name."
9880 #: ../fish/guestfish-actions.pod:2450
9885 #: ../fish/guestfish-actions.pod:2452
9888 " is-symlink path\n"
9891 " is-symlink шлях\n"
9895 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9897 "This returns C<true> if and only if there is a symbolic link with the given "
9902 #: ../fish/guestfish-actions.pod:2459
9907 #: ../fish/guestfish-actions.pod:2461
9915 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9917 "This returns true iff the file exists and the file is empty or it contains "
9922 #: ../fish/guestfish-actions.pod:2466
9923 msgid "is-zero-device"
9927 #: ../fish/guestfish-actions.pod:2468
9930 " is-zero-device device\n"
9935 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9936 msgid "This returns true iff the device exists and contains all zero bytes."
9940 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9941 msgid "Note that for large devices this can take a long time to run."
9945 #: ../fish/guestfish-actions.pod:2474
9946 msgid "kill-subprocess"
9947 msgstr "kill-subprocess"
9950 #: ../fish/guestfish-actions.pod:2476
9953 " kill-subprocess\n"
9956 " kill-subprocess\n"
9960 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9961 msgid "This kills the qemu subprocess. You should never need to call this."
9965 #: ../fish/guestfish-actions.pod:2480
9970 #: ../fish/guestfish-actions.pod:2482
9975 #: ../fish/guestfish-actions.pod:2484
9985 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9987 "Internally libguestfs is implemented by running a virtual machine using "
9992 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9994 "You should call this after configuring the handle (eg. adding drives) but "
9995 "before performing any actions."
9999 #: ../fish/guestfish-actions.pod:2492
10004 #: ../fish/guestfish-actions.pod:2494
10007 " lchown owner group path\n"
10010 " lchown власник група шлях\n"
10014 #: ../fish/guestfish-actions.pod:2496
10016 "Change the file owner to C<owner> and group to C<group>. This is like L</"
10017 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10022 #: ../fish/guestfish-actions.pod:2504
10027 #: ../fish/guestfish-actions.pod:2506
10030 " lgetxattr path name\n"
10033 " lgetxattr шлях назва\n"
10037 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
10039 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10040 "is a symlink, then this call returns an extended attribute from the symlink."
10044 #: ../fish/guestfish-actions.pod:2522
10045 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10046 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10049 #: ../fish/guestfish-actions.pod:2524
10051 msgstr "lgetxattrs"
10054 #: ../fish/guestfish-actions.pod:2526
10057 " lgetxattrs path\n"
10060 " lgetxattrs шлях\n"
10064 #: ../fish/guestfish-actions.pod:2528
10066 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10067 "it returns the extended attributes of the link itself."
10071 #: ../fish/guestfish-actions.pod:2532
10076 #: ../fish/guestfish-actions.pod:2534
10084 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
10086 "List all 9p filesystems attached to the guest. A list of mount tags is "
10091 #: ../fish/guestfish-actions.pod:2539
10092 msgid "list-devices"
10093 msgstr "list-devices"
10096 #: ../fish/guestfish-actions.pod:2541
10106 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
10107 msgid "List all the block devices."
10111 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
10112 msgid "The full block device names are returned, eg. C</dev/sda>."
10116 #: ../fish/guestfish-actions.pod:2549
10117 msgid "list-dm-devices"
10121 #: ../fish/guestfish-actions.pod:2551
10124 " list-dm-devices\n"
10129 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
10130 msgid "List all device mapper devices."
10134 #: ../fish/guestfish-actions.pod:2555
10136 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10137 "previous call to L</luks-open>."
10141 #: ../fish/guestfish-actions.pod:2558
10143 "Device mapper devices which correspond to logical volumes are I<not> "
10144 "returned in this list. Call L</lvs> if you want to list logical volumes."
10148 #: ../fish/guestfish-actions.pod:2562
10149 msgid "list-filesystems"
10150 msgstr "list-filesystems"
10153 #: ../fish/guestfish-actions.pod:2564
10156 " list-filesystems\n"
10159 " list-filesystems\n"
10163 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
10165 "This inspection command looks for filesystems on partitions, block devices "
10166 "and logical volumes, returning a list of devices containing filesystems and "
10171 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
10173 "The return value is a hash, where the keys are the devices containing "
10174 "filesystems, and the values are the filesystem types. For example:"
10178 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10181 " \"/dev/sda1\" => \"ntfs\"\n"
10182 " \"/dev/sda2\" => \"ext2\"\n"
10183 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10184 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10189 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
10191 "The value can have the special value \"unknown\", meaning the content of the "
10192 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10196 #: ../fish/guestfish-actions.pod:2583
10198 "This command runs other libguestfs commands, which might include L</mount> "
10199 "and L</umount>, and therefore you should use this soon after launch and only "
10200 "when nothing is mounted."
10204 #: ../fish/guestfish-actions.pod:2587
10206 "Not all of the filesystems returned will be mountable. In particular, swap "
10207 "partitions are returned in the list. Also this command does not check that "
10208 "each filesystem found is valid and mountable, and some filesystems might be "
10209 "mountable but require special options. Filesystems may not all belong to a "
10210 "single logical operating system (use L</inspect-os> to look for OSes)."
10214 #: ../fish/guestfish-actions.pod:2595
10215 msgid "list-partitions"
10216 msgstr "list-partitions"
10219 #: ../fish/guestfish-actions.pod:2597
10222 " list-partitions\n"
10225 " list-partitions\n"
10229 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
10230 msgid "List all the partitions detected on all block devices."
10234 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
10235 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10239 #: ../fish/guestfish-actions.pod:2603
10241 "This does not return logical volumes. For that you will need to call L</"
10246 #: ../fish/guestfish-actions.pod:2608
10251 #: ../fish/guestfish-actions.pod:2610
10261 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
10263 "List the files in C<directory> (relative to the root directory, there is no "
10264 "cwd) in the format of 'ls -la'."
10268 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
10270 "This command is mostly useful for interactive sessions. It is I<not> "
10271 "intended that you try to parse the output string."
10275 #: ../fish/guestfish-actions.pod:2618
10280 #: ../fish/guestfish-actions.pod:2620
10283 " ln target linkname\n"
10286 " ln призначення назва_посилання\n"
10290 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
10291 msgid "This command creates a hard link using the C<ln> command."
10295 #: ../fish/guestfish-actions.pod:2624
10300 #: ../fish/guestfish-actions.pod:2626
10303 " ln-f target linkname\n"
10306 " ln-f призначення назва_посилання\n"
10310 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
10312 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10313 "option removes the link (C<linkname>) if it exists already."
10317 #: ../fish/guestfish-actions.pod:2631
10322 #: ../fish/guestfish-actions.pod:2633
10325 " ln-s target linkname\n"
10328 " ln-s призначення назва_посилання\n"
10332 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
10333 msgid "This command creates a symbolic link using the C<ln -s> command."
10337 #: ../fish/guestfish-actions.pod:2637
10342 #: ../fish/guestfish-actions.pod:2639
10345 " ln-sf target linkname\n"
10348 " ln-sf призначення назва_посилання\n"
10352 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
10354 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10355 "option removes the link (C<linkname>) if it exists already."
10359 #: ../fish/guestfish-actions.pod:2644
10360 msgid "lremovexattr"
10361 msgstr "lremovexattr"
10364 #: ../fish/guestfish-actions.pod:2646
10367 " lremovexattr xattr path\n"
10372 #: ../fish/guestfish-actions.pod:2648
10374 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10375 "it removes an extended attribute of the link itself."
10379 #: ../fish/guestfish-actions.pod:2652
10384 #: ../fish/guestfish-actions.pod:2654
10394 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
10396 "List the files in C<directory> (relative to the root directory, there is no "
10397 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10401 #: ../fish/guestfish-actions.pod:2660
10403 "This command is mostly useful for interactive sessions. Programs should "
10404 "probably use L</readdir> instead."
10408 #: ../fish/guestfish-actions.pod:2663
10413 #: ../fish/guestfish-actions.pod:2665
10416 " lsetxattr xattr val vallen path\n"
10421 #: ../fish/guestfish-actions.pod:2667
10423 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10424 "sets an extended attribute of the link itself."
10428 #: ../fish/guestfish-actions.pod:2671
10433 #: ../fish/guestfish-actions.pod:2673
10443 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
10444 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
10445 msgid "Returns file information for the given C<path>."
10449 #: ../fish/guestfish-actions.pod:2677
10451 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10452 "the link is stat-ed, not the file it refers to."
10456 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
10457 msgid "This is the same as the C<lstat(2)> system call."
10461 #: ../fish/guestfish-actions.pod:2683
10466 #: ../fish/guestfish-actions.pod:2685
10469 " lstatlist path 'names ...'\n"
10474 #: ../fish/guestfish-actions.pod:2687
10476 "This call allows you to perform the L</lstat> operation on multiple files, "
10477 "where all files are in the directory C<path>. C<names> is the list of files "
10478 "from this directory."
10482 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
10484 "On return you get a list of stat structs, with a one-to-one correspondence "
10485 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10486 "then the C<ino> field of that structure is set to C<-1>."
10490 #: ../fish/guestfish-actions.pod:2696
10492 "This call is intended for programs that want to efficiently list a directory "
10493 "contents without making many round-trips. See also L</lxattrlist> for a "
10494 "similarly efficient call for getting extended attributes. Very long "
10495 "directory listings might cause the protocol message size to be exceeded, "
10496 "causing this call to fail. The caller must split up such requests into "
10497 "smaller groups of names."
10501 #: ../fish/guestfish-actions.pod:2704
10502 msgid "luks-add-key"
10503 msgstr "luks-add-key"
10506 #: ../fish/guestfish-actions.pod:2706
10509 " luks-add-key device keyslot\n"
10514 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
10516 "This command adds a new key on LUKS device C<device>. C<key> is any "
10517 "existing key, and is used to access the device. C<newkey> is the new key to "
10518 "add. C<keyslot> is the key slot that will be replaced."
10522 #: ../fish/guestfish-actions.pod:2713
10524 "Note that if C<keyslot> already contains a key, then this command will "
10525 "fail. You have to use L</luks-kill-slot> first to remove that key."
10529 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
10530 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
10531 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
10533 "This command has one or more key or passphrase parameters. Guestfish will "
10534 "prompt for these separately."
10538 #: ../fish/guestfish-actions.pod:2720
10540 msgstr "luks-close"
10543 #: ../fish/guestfish-actions.pod:2722
10546 " luks-close device\n"
10549 " luks-close пристрій\n"
10553 #: ../fish/guestfish-actions.pod:2724
10555 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10556 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10557 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10562 #: ../fish/guestfish-actions.pod:2730
10563 msgid "luks-format"
10564 msgstr "luks-format"
10567 #: ../fish/guestfish-actions.pod:2732
10570 " luks-format device keyslot\n"
10575 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
10577 "This command erases existing data on C<device> and formats the device as a "
10578 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10579 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10583 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
10584 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
10585 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
10586 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
10587 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
10588 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
10589 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
10590 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580
10591 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
10593 "B<This command is dangerous. Without careful use you can easily destroy all "
10598 #: ../fish/guestfish-actions.pod:2745
10599 msgid "luks-format-cipher"
10600 msgstr "luks-format-cipher"
10603 #: ../fish/guestfish-actions.pod:2747
10606 " luks-format-cipher device keyslot cipher\n"
10611 #: ../fish/guestfish-actions.pod:2749
10613 "This command is the same as L</luks-format> but it also allows you to set "
10614 "the C<cipher> used."
10618 #: ../fish/guestfish-actions.pod:2758
10619 msgid "luks-kill-slot"
10620 msgstr "luks-kill-slot"
10623 #: ../fish/guestfish-actions.pod:2760
10626 " luks-kill-slot device keyslot\n"
10631 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10633 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10634 "device C<device>. C<key> must be one of the I<other> keys."
10638 #: ../fish/guestfish-actions.pod:2769
10643 #: ../fish/guestfish-actions.pod:2771
10646 " luks-open device mapname\n"
10651 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10653 "This command opens a block device which has been encrypted according to the "
10654 "Linux Unified Key Setup (LUKS) standard."
10658 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10659 msgid "C<device> is the encrypted block device or partition."
10663 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10665 "The caller must supply one of the keys associated with the LUKS block "
10666 "device, in the C<key> parameter."
10670 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10672 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
10673 "writes to this block device are decrypted from and encrypted to the "
10674 "underlying C<device> respectively."
10678 #: ../fish/guestfish-actions.pod:2785
10680 "If this block device contains LVM volume groups, then calling L</vgscan> "
10681 "followed by L</vg-activate-all> will make them visible."
10685 #: ../fish/guestfish-actions.pod:2789
10686 msgid "Use L</list-dm-devices> to list all device mapper devices."
10690 #: ../fish/guestfish-actions.pod:2795
10691 msgid "luks-open-ro"
10692 msgstr "luks-open-ro"
10695 #: ../fish/guestfish-actions.pod:2797
10698 " luks-open-ro device mapname\n"
10703 #: ../fish/guestfish-actions.pod:2799
10705 "This is the same as L</luks-open> except that a read-only mapping is created."
10709 #: ../fish/guestfish-actions.pod:2805
10714 #: ../fish/guestfish-actions.pod:2807
10717 " lvcreate logvol volgroup mbytes\n"
10722 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10724 "This creates an LVM logical volume called C<logvol> on the volume group "
10725 "C<volgroup>, with C<size> megabytes."
10729 #: ../fish/guestfish-actions.pod:2812
10730 msgid "lvm-canonical-lv-name"
10731 msgstr "lvm-canonical-lv-name"
10734 #: ../fish/guestfish-actions.pod:2814
10737 " lvm-canonical-lv-name lvname\n"
10742 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10744 "This converts alternative naming schemes for LVs that you might find to the "
10745 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10750 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10752 "This command returns an error if the C<lvname> parameter does not refer to a "
10757 #: ../fish/guestfish-actions.pod:2823
10758 msgid "See also L</is-lv>."
10759 msgstr "Див. також L</is-lv>."
10762 #: ../fish/guestfish-actions.pod:2825
10763 msgid "lvm-clear-filter"
10764 msgstr "lvm-clear-filter"
10767 #: ../fish/guestfish-actions.pod:2827
10770 " lvm-clear-filter\n"
10773 " lvm-clear-filter\n"
10777 #: ../fish/guestfish-actions.pod:2829
10779 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
10784 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10785 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10787 "This command also clears the LVM cache and performs a volume group scan."
10791 #: ../fish/guestfish-actions.pod:2835
10792 msgid "lvm-remove-all"
10793 msgstr "lvm-remove-all"
10796 #: ../fish/guestfish-actions.pod:2837
10799 " lvm-remove-all\n"
10802 " lvm-remove-all\n"
10806 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10808 "This command removes all LVM logical volumes, volume groups and physical "
10813 #: ../fish/guestfish-actions.pod:2845
10814 msgid "lvm-set-filter"
10815 msgstr "lvm-set-filter"
10818 #: ../fish/guestfish-actions.pod:2847
10821 " lvm-set-filter 'devices ...'\n"
10824 " lvm-set-filter 'пристрої...'\n"
10828 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10830 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10831 "block devices in the list C<devices>, and will ignore all other attached "
10836 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10838 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10839 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
10840 "there are two types of duplication possible: either cloned PVs/VGs which "
10841 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10842 "same name. In normal operation you cannot create this situation, but you "
10843 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
10844 "inside the LVM metadata."
10848 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10849 msgid "You can filter whole block devices or individual partitions."
10853 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10855 "You cannot use this if any VG is currently in use (eg. contains a mounted "
10856 "filesystem), even if you are not filtering out that VG."
10860 #: ../fish/guestfish-actions.pod:2872
10865 #: ../fish/guestfish-actions.pod:2874
10868 " lvremove device\n"
10871 " lvremove пристрій\n"
10875 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10877 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10878 "LV, such as C</dev/VG/LV>."
10882 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10884 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10889 #: ../fish/guestfish-actions.pod:2882
10894 #: ../fish/guestfish-actions.pod:2884
10897 " lvrename logvol newlogvol\n"
10902 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10903 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10907 #: ../fish/guestfish-actions.pod:2888
10912 #: ../fish/guestfish-actions.pod:2890
10915 " lvresize device mbytes\n"
10920 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10922 "This resizes (expands or shrinks) an existing LVM logical volume to "
10923 "C<mbytes>. When reducing, data in the reduced part is lost."
10927 #: ../fish/guestfish-actions.pod:2896
10928 msgid "lvresize-free"
10929 msgstr "lvresize-free"
10932 #: ../fish/guestfish-actions.pod:2898
10935 " lvresize-free lv percent\n"
10940 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10942 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10943 "remaining free space in the volume group. Commonly you would call this with "
10944 "pc = 100 which expands the logical volume as much as possible, using all "
10945 "remaining free space in the volume group."
10949 #: ../fish/guestfish-actions.pod:2906
10954 #: ../fish/guestfish-actions.pod:2908
10964 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10966 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10971 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10973 "This returns a list of the logical volume device names (eg. C</dev/"
10974 "VolGroup00/LogVol00>)."
10978 #: ../fish/guestfish-actions.pod:2916
10979 msgid "See also L</lvs-full>, L</list-filesystems>."
10980 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10983 #: ../fish/guestfish-actions.pod:2918
10988 #: ../fish/guestfish-actions.pod:2920
10998 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
11000 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11001 "(8)> command. The \"full\" version includes all fields."
11005 #: ../fish/guestfish-actions.pod:2925
11010 #: ../fish/guestfish-actions.pod:2927
11016 " lvuuid пристрій\n"
11020 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
11021 msgid "This command returns the UUID of the LVM LV C<device>."
11025 #: ../fish/guestfish-actions.pod:2931
11027 msgstr "lxattrlist"
11030 #: ../fish/guestfish-actions.pod:2933
11033 " lxattrlist path 'names ...'\n"
11038 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
11040 "This call allows you to get the extended attributes of multiple files, where "
11041 "all files are in the directory C<path>. C<names> is the list of files from "
11046 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
11048 "On return you get a flat list of xattr structs which must be interpreted "
11049 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11050 "C<attrval> in this struct is zero-length to indicate there was an error "
11051 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11052 "number (the number of following attributes for this file, which could be C<"
11053 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11054 "for the first named file. This repeats for the second and subsequent files."
11058 #: ../fish/guestfish-actions.pod:2949
11060 "This call is intended for programs that want to efficiently list a directory "
11061 "contents without making many round-trips. See also L</lstatlist> for a "
11062 "similarly efficient call for getting standard stats. Very long directory "
11063 "listings might cause the protocol message size to be exceeded, causing this "
11064 "call to fail. The caller must split up such requests into smaller groups of "
11069 #: ../fish/guestfish-actions.pod:2957
11074 #: ../fish/guestfish-actions.pod:2959
11084 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
11085 msgid "Create a directory named C<path>."
11089 #: ../fish/guestfish-actions.pod:2963
11091 msgstr "mkdir-mode"
11094 #: ../fish/guestfish-actions.pod:2965
11097 " mkdir-mode path mode\n"
11100 " mkdir-mode шлях режим\n"
11104 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
11106 "This command creates a directory, setting the initial permissions of the "
11107 "directory to C<mode>."
11111 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
11113 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11114 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11119 #: ../fish/guestfish-actions.pod:2974
11120 msgid "See also L</mkdir>, L</umask>"
11121 msgstr "Див. також L</mkdir>, L</umask>"
11124 #: ../fish/guestfish-actions.pod:2976
11129 #: ../fish/guestfish-actions.pod:2978
11139 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
11141 "Create a directory named C<path>, creating any parent directories as "
11142 "necessary. This is like the C<mkdir -p> shell command."
11146 #: ../fish/guestfish-actions.pod:2983
11151 #: ../fish/guestfish-actions.pod:2985
11154 " mkdtemp template\n"
11157 " mkdtemp шаблон\n"
11161 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11163 "This command creates a temporary directory. The C<template> parameter "
11164 "should be a full pathname for the temporary directory name with the final "
11165 "six characters being \"XXXXXX\"."
11169 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
11171 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11172 "being suitable for Windows filesystems."
11176 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
11177 msgid "The name of the temporary directory that was created is returned."
11181 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
11182 msgid "The temporary directory is created with mode 0700 and is owned by root."
11186 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
11188 "The caller is responsible for deleting the temporary directory and its "
11189 "contents after use."
11193 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
11194 msgid "See also: L<mkdtemp(3)>"
11198 #: ../fish/guestfish-actions.pod:3006
11203 #: ../fish/guestfish-actions.pod:3008
11206 " mke2fs-J fstype blocksize device journal\n"
11211 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
11213 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11214 "C<journal>. It is equivalent to the command:"
11218 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
11221 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11224 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11228 #: ../fish/guestfish-actions.pod:3016
11229 msgid "See also L</mke2journal>."
11230 msgstr "Див. також L</mke2journal>."
11233 #: ../fish/guestfish-actions.pod:3018
11238 #: ../fish/guestfish-actions.pod:3020
11241 " mke2fs-JL fstype blocksize device label\n"
11246 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
11248 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11249 "the journal labeled C<label>."
11253 #: ../fish/guestfish-actions.pod:3025
11254 msgid "See also L</mke2journal-L>."
11255 msgstr "Див. також L</mke2journal-L>."
11258 #: ../fish/guestfish-actions.pod:3027
11263 #: ../fish/guestfish-actions.pod:3029
11266 " mke2fs-JU fstype blocksize device uuid\n"
11271 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
11273 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11274 "the journal with UUID C<uuid>."
11278 #: ../fish/guestfish-actions.pod:3034
11279 msgid "See also L</mke2journal-U>."
11280 msgstr "Див. також L</mke2journal-U>."
11283 #: ../fish/guestfish-actions.pod:3036
11284 msgid "mke2journal"
11285 msgstr "mke2journal"
11288 #: ../fish/guestfish-actions.pod:3038
11291 " mke2journal blocksize device\n"
11296 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
11298 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11303 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
11306 " mke2fs -O journal_dev -b blocksize device\n"
11311 #: ../fish/guestfish-actions.pod:3045
11312 msgid "mke2journal-L"
11313 msgstr "mke2journal-L"
11316 #: ../fish/guestfish-actions.pod:3047
11319 " mke2journal-L blocksize label device\n"
11324 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
11325 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11329 #: ../fish/guestfish-actions.pod:3051
11330 msgid "mke2journal-U"
11331 msgstr "mke2journal-U"
11334 #: ../fish/guestfish-actions.pod:3053
11337 " mke2journal-U blocksize uuid device\n"
11342 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
11343 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11347 #: ../fish/guestfish-actions.pod:3057
11352 #: ../fish/guestfish-actions.pod:3059
11355 " mkfifo mode path\n"
11358 " mkfifo режим шлях\n"
11362 #: ../fish/guestfish-actions.pod:3061
11364 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11365 "is just a convenient wrapper around L</mknod>."
11369 #: ../fish/guestfish-actions.pod:3067
11374 #: ../fish/guestfish-actions.pod:3069
11377 " mkfs fstype device\n"
11380 " mkfs тип_файлової_системи пристрій\n"
11384 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
11386 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11387 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11391 #: ../fish/guestfish-actions.pod:3075
11396 #: ../fish/guestfish-actions.pod:3077
11399 " mkfs-b fstype blocksize device\n"
11404 #: ../fish/guestfish-actions.pod:3079
11406 "This call is similar to L</mkfs>, but it allows you to control the block "
11407 "size of the resulting filesystem. Supported block sizes depend on the "
11408 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11412 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
11413 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
11415 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11420 #: ../fish/guestfish-actions.pod:3087
11422 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11427 #: ../fish/guestfish-actions.pod:3094
11432 #: ../fish/guestfish-actions.pod:3096
11435 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11440 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
11442 "This function creates a filesystem on C<device>. The filesystem type is "
11443 "C<fstype>, for example C<ext3>."
11447 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
11448 msgid "C<blocksize>"
11449 msgstr "C<blocksize>"
11452 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
11454 "The filesystem block size. Supported block sizes depend on the filesystem "
11455 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11460 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
11461 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11465 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
11466 msgid "C<features>"
11467 msgstr "C<features>"
11470 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
11471 msgid "This passes the I<-O> parameter to the external mkfs program."
11475 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11477 "For certain filesystem types, this allows extra filesystem features to be "
11478 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11482 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11484 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11489 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11494 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11496 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11497 "sets the inode size (only for ext2/3/4 filesystems at present)."
11501 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
11502 msgid "C<sectorsize>"
11506 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
11508 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11509 "sets sector size for ufs filesystem."
11513 #: ../fish/guestfish-actions.pod:3141
11514 msgid "mkmountpoint"
11515 msgstr "mkmountpoint"
11518 #: ../fish/guestfish-actions.pod:3143
11521 " mkmountpoint exemptpath\n"
11526 #: ../fish/guestfish-actions.pod:3145
11528 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11529 "to create extra mountpoints before mounting the first filesystem."
11533 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
11535 "These calls are I<only> necessary in some very limited circumstances, mainly "
11536 "the case where you want to mount a mix of unrelated and/or read-only "
11537 "filesystems together."
11541 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11543 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11544 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11545 "inside that. You can unpack this as follows in guestfish:"
11549 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
11552 " add-ro Fedora-11-i686-Live.iso\n"
11554 " mkmountpoint /cd\n"
11555 " mkmountpoint /sqsh\n"
11556 " mkmountpoint /ext3fs\n"
11557 " mount /dev/sda /cd\n"
11558 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11559 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11562 " add-ro Fedora-11-i686-Live.iso\n"
11564 " mkmountpoint /cd\n"
11565 " mkmountpoint /sqsh\n"
11566 " mkmountpoint /ext3fs\n"
11567 " mount /dev/sda /cd\n"
11568 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11569 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11573 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
11574 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11578 #: ../fish/guestfish-actions.pod:3169
11580 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11581 "unexpected errors if you try to mix these calls. It is safest to manually "
11582 "unmount filesystems and remove mountpoints after use."
11586 #: ../fish/guestfish-actions.pod:3173
11588 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11589 "for this to work for manual mountpoints, you must ensure that the innermost "
11590 "mountpoints have the longest pathnames, as in the example code above."
11594 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
11596 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11600 #: ../fish/guestfish-actions.pod:3180
11602 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11603 "L</umount-all> to be called when the handle is closed which can also trigger "
11608 #: ../fish/guestfish-actions.pod:3184
11613 #: ../fish/guestfish-actions.pod:3186
11616 " mknod mode devmajor devminor path\n"
11621 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
11623 "This call creates block or character special devices, or named pipes (FIFOs)."
11627 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
11629 "The C<mode> parameter should be the mode, using the standard constants. "
11630 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11631 "used when creating block and character special devices."
11635 #: ../fish/guestfish-actions.pod:3196
11637 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11638 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11639 "regular file). These constants are available in the standard Linux header "
11640 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11641 "wrappers around this command which bitwise OR in the appropriate constant "
11646 #: ../fish/guestfish-actions.pod:3206
11651 #: ../fish/guestfish-actions.pod:3208
11654 " mknod-b mode devmajor devminor path\n"
11659 #: ../fish/guestfish-actions.pod:3210
11661 "This call creates a block device node called C<path> with mode C<mode> and "
11662 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11663 "wrapper around L</mknod>."
11667 #: ../fish/guestfish-actions.pod:3216
11672 #: ../fish/guestfish-actions.pod:3218
11675 " mknod-c mode devmajor devminor path\n"
11680 #: ../fish/guestfish-actions.pod:3220
11682 "This call creates a char device node called C<path> with mode C<mode> and "
11683 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11684 "wrapper around L</mknod>."
11688 #: ../fish/guestfish-actions.pod:3226
11693 #: ../fish/guestfish-actions.pod:3228
11699 " mkswap пристрій\n"
11703 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11704 msgid "Create a swap partition on C<device>."
11708 #: ../fish/guestfish-actions.pod:3232
11713 #: ../fish/guestfish-actions.pod:3234
11716 " mkswap-L label device\n"
11719 " mkswap-L мітка пристрій\n"
11723 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11724 msgid "Create a swap partition on C<device> with label C<label>."
11728 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11730 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11731 "sda>), just to a partition. This appears to be a limitation of the kernel "
11736 #: ../fish/guestfish-actions.pod:3242
11741 #: ../fish/guestfish-actions.pod:3244
11744 " mkswap-U uuid device\n"
11747 " mkswap-U uuid пристрій\n"
11751 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11752 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11756 #: ../fish/guestfish-actions.pod:3248
11757 msgid "mkswap-file"
11758 msgstr "mkswap-file"
11761 #: ../fish/guestfish-actions.pod:3250
11764 " mkswap-file path\n"
11767 " mkswap-file шлях\n"
11771 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11772 msgid "Create a swap file."
11773 msgstr "Створити файл резервної пам’яті."
11776 #: ../fish/guestfish-actions.pod:3254
11778 "This command just writes a swap file signature to an existing file. To "
11779 "create the file itself, use something like L</fallocate>."
11783 #: ../fish/guestfish-actions.pod:3257
11788 #: ../fish/guestfish-actions.pod:3259
11791 " modprobe modulename\n"
11794 " modprobe назва_модуля\n"
11798 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11799 msgid "This loads a kernel module in the appliance."
11803 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11805 "The kernel module must have been whitelisted when libguestfs was built (see "
11806 "C<appliance/kmod.whitelist.in> in the source)."
11810 #: ../fish/guestfish-actions.pod:3266
11815 #: ../fish/guestfish-actions.pod:3268
11818 " mount device mountpoint\n"
11821 " mount пристрій точка_монтування\n"
11825 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
11827 "Mount a guest disk at a position in the filesystem. Block devices are named "
11828 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
11829 "those block devices contain partitions, they will have the usual names (eg. "
11830 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
11834 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11836 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11837 "mounted on C</> before others can be mounted. Other filesystems can only be "
11838 "mounted on directories which already exist."
11842 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
11844 "The mounted filesystem is writable, if we have sufficient permissions on the "
11845 "underlying device."
11849 #: ../fish/guestfish-actions.pod:3284
11851 "B<Important note:> When you use this call, the filesystem options C<sync> "
11852 "and C<noatime> are set implicitly. This was originally done because we "
11853 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11854 "very large negative performance impact and negligible effect on "
11855 "reliability. Therefore we recommend that you avoid using L</mount> in any "
11856 "code that needs performance, and instead use L</mount-options> (use an empty "
11857 "string for the first parameter if you don't want any options)."
11861 #: ../fish/guestfish-actions.pod:3294
11863 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11868 #: ../fish/guestfish-actions.pod:3301
11873 #: ../fish/guestfish-actions.pod:3303
11876 " mount-9p mounttag mountpoint [options:..]\n"
11881 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11883 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11888 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11890 "If required, C<trans=virtio> will be automatically added to the options. "
11891 "Any other options required can be passed in the optional C<options> "
11896 #: ../fish/guestfish-actions.pod:3314
11898 msgstr "mount-loop"
11901 #: ../fish/guestfish-actions.pod:3316
11904 " mount-loop file mountpoint\n"
11909 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11911 "This command lets you mount C<file> (a filesystem image in a file) on a "
11912 "mount point. It is entirely equivalent to the command C<mount -o loop file "
11917 #: ../fish/guestfish-actions.pod:3322
11918 msgid "mount-options"
11919 msgstr "mount-options"
11922 #: ../fish/guestfish-actions.pod:3324
11925 " mount-options options device mountpoint\n"
11930 #: ../fish/guestfish-actions.pod:3326
11932 "This is the same as the L</mount> command, but it allows you to set the "
11933 "mount options as for the L<mount(8)> I<-o> flag."
11937 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11939 "If the C<options> parameter is an empty string, then no options are passed "
11940 "(all options default to whatever the filesystem uses)."
11944 #: ../fish/guestfish-actions.pod:3334
11949 #: ../fish/guestfish-actions.pod:3336
11952 " mount-ro device mountpoint\n"
11955 " mount-ro пристрій точка_монтування\n"
11959 #: ../fish/guestfish-actions.pod:3338
11961 "This is the same as the L</mount> command, but it mounts the filesystem with "
11962 "the read-only (I<-o ro>) flag."
11966 #: ../fish/guestfish-actions.pod:3341
11971 #: ../fish/guestfish-actions.pod:3343
11974 " mount-vfs options vfstype device mountpoint\n"
11979 #: ../fish/guestfish-actions.pod:3345
11981 "This is the same as the L</mount> command, but it allows you to set both the "
11982 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11986 #: ../fish/guestfish-actions.pod:3349
11987 msgid "mountpoints"
11988 msgstr "mountpoints"
11991 #: ../fish/guestfish-actions.pod:3351
12001 #: ../fish/guestfish-actions.pod:3353
12003 "This call is similar to L</mounts>. That call returns a list of devices. "
12004 "This one returns a hash table (map) of device name to directory where the "
12005 "device is mounted."
12009 #: ../fish/guestfish-actions.pod:3357
12014 #: ../fish/guestfish-actions.pod:3359
12024 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12026 "This returns the list of currently mounted filesystems. It returns the list "
12027 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12031 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
12032 msgid "Some internal mounts are not shown."
12036 #: ../fish/guestfish-actions.pod:3366
12037 msgid "See also: L</mountpoints>"
12038 msgstr "Див. також L</mountpoints>"
12041 #: ../fish/guestfish-actions.pod:3368
12046 #: ../fish/guestfish-actions.pod:3370
12052 " mv джерело призначення\n"
12056 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
12058 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12059 "destination filename or destination directory."
12063 #: ../fish/guestfish-actions.pod:3375
12064 msgid "ntfs-3g-probe"
12065 msgstr "ntfs-3g-probe"
12068 #: ../fish/guestfish-actions.pod:3377
12071 " ntfs-3g-probe true|false device\n"
12076 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
12078 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12079 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12080 "write, and some cannot be mounted at all)."
12084 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
12086 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12087 "can be mounted read-write. Set it to false if you want to test if the "
12088 "volume can be mounted read-only."
12092 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
12094 "The return value is an integer which C<0> if the operation would succeed, or "
12095 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12099 #: ../fish/guestfish-actions.pod:3391
12101 msgstr "ntfsresize"
12104 #: ../fish/guestfish-actions.pod:3393
12107 " ntfsresize device\n"
12110 " ntfsresize пристрій\n"
12114 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
12115 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
12117 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12118 "size of the underlying device."
12122 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
12124 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12125 "consistency check (for safety). You have to boot into Windows to perform "
12126 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12127 "resize filesystems which have been marked in this way. So in effect it is "
12128 "not possible to call ntfsresize multiple times on a single filesystem "
12129 "without booting into Windows between each resize."
12133 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
12134 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
12135 msgid "See also L<ntfsresize(8)>."
12139 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
12141 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12146 #: ../fish/guestfish-actions.pod:3415
12147 msgid "ntfsresize-opts"
12151 #: ../fish/guestfish-actions.pod:3417
12154 " ntfsresize-opts device [size:..] [force:..]\n"
12159 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12161 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12162 "resized to fit the container (eg. partition)."
12166 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
12171 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
12173 "If this option is true, then force the resize of the filesystem even if the "
12174 "filesystem is marked as requiring a consistency check."
12178 #: ../fish/guestfish-actions.pod:3436
12180 "After the resize operation, the filesystem is always marked as requiring a "
12181 "consistency check (for safety). You have to boot into Windows to perform "
12182 "this check and clear this condition. If you I<don't> set the C<force> "
12183 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12184 "a single filesystem without booting into Windows between each resize."
12188 #: ../fish/guestfish-actions.pod:3449
12189 msgid "ntfsresize-size"
12190 msgstr "ntfsresize-size"
12193 #: ../fish/guestfish-actions.pod:3451
12196 " ntfsresize-size device size\n"
12201 #: ../fish/guestfish-actions.pod:3453
12203 "This command is the same as L</ntfsresize> except that it allows you to "
12204 "specify the new size (in bytes) explicitly."
12208 #: ../fish/guestfish-actions.pod:3463
12213 #: ../fish/guestfish-actions.pod:3465
12216 " part-add device prlogex startsect endsect\n"
12221 #: ../fish/guestfish-actions.pod:3467
12223 "This command adds a partition to C<device>. If there is no partition table "
12224 "on the device, call L</part-init> first."
12228 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12230 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12231 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12232 "C<logical>) and C<e> (or C<extended>) partition types."
12236 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
12238 "C<startsect> and C<endsect> are the start and end of the partition in "
12239 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12240 "from the end of the disk (C<-1> is the last sector)."
12244 #: ../fish/guestfish-actions.pod:3479
12246 "Creating a partition which covers the whole disk is not so easy. Use L</"
12247 "part-disk> to do that."
12251 #: ../fish/guestfish-actions.pod:3482
12256 #: ../fish/guestfish-actions.pod:3484
12259 " part-del device partnum\n"
12264 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
12265 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12269 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
12271 "Note that in the case of MBR partitioning, deleting an extended partition "
12272 "also deletes any logical partitions it contains."
12276 #: ../fish/guestfish-actions.pod:3492
12281 #: ../fish/guestfish-actions.pod:3494
12284 " part-disk device parttype\n"
12287 " part-disk пристрій тип_розділу\n"
12291 #: ../fish/guestfish-actions.pod:3496
12293 "This command is simply a combination of L</part-init> followed by L</part-"
12294 "add> to create a single primary partition covering the whole disk."
12298 #: ../fish/guestfish-actions.pod:3500
12300 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12301 "possible values are described in L</part-init>."
12305 #: ../fish/guestfish-actions.pod:3506
12306 msgid "part-get-bootable"
12307 msgstr "part-get-bootable"
12310 #: ../fish/guestfish-actions.pod:3508
12313 " part-get-bootable device partnum\n"
12318 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
12320 "This command returns true if the partition C<partnum> on C<device> has the "
12321 "bootable flag set."
12325 #: ../fish/guestfish-actions.pod:3513
12326 msgid "See also L</part-set-bootable>."
12327 msgstr "Див. також L</part-set-bootable>."
12330 #: ../fish/guestfish-actions.pod:3515
12331 msgid "part-get-mbr-id"
12332 msgstr "part-get-mbr-id"
12335 #: ../fish/guestfish-actions.pod:3517
12338 " part-get-mbr-id device partnum\n"
12343 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
12345 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12346 "partition C<partnum>."
12350 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
12352 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12353 "undefined results for other partition table types (see L</part-get-"
12358 #: ../fish/guestfish-actions.pod:3526
12359 msgid "part-get-parttype"
12360 msgstr "part-get-parttype"
12363 #: ../fish/guestfish-actions.pod:3528
12366 " part-get-parttype device\n"
12369 " part-get-parttype пристрій\n"
12373 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
12375 "This command examines the partition table on C<device> and returns the "
12376 "partition table type (format) being used."
12380 #: ../fish/guestfish-actions.pod:3533
12382 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12383 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12384 "possible, although unusual. See L</part-init> for a full list."
12388 #: ../fish/guestfish-actions.pod:3538
12393 #: ../fish/guestfish-actions.pod:3540
12396 " part-init device parttype\n"
12401 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
12403 "This creates an empty partition table on C<device> of one of the partition "
12404 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12405 "(for large disks)."
12409 #: ../fish/guestfish-actions.pod:3546
12411 "Initially there are no partitions. Following this, you should call L</part-"
12412 "add> for each partition required."
12416 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
12417 msgid "Possible values for C<parttype> are:"
12421 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
12426 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
12431 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
12432 msgid "Intel EFI / GPT partition table."
12436 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
12438 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12439 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12440 "the C<mbr> format."
12444 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
12449 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
12454 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
12456 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12457 "Windows. This partition type will B<only> work for device sizes up to 2 "
12458 "TB. For large disks we recommend using C<gpt>."
12462 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12464 "Other partition table types that may work but are not supported include:"
12468 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12473 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12474 msgid "AIX disk labels."
12475 msgstr "Мітки дисків AIX."
12478 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12480 #| msgid "B<amiga> | B<rdb>"
12482 msgstr "B<amiga> | B<rdb>"
12485 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12490 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12491 msgid "Amiga \"Rigid Disk Block\" format."
12492 msgstr "Формат \"Rigid Disk Block\" Amiga."
12495 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12500 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12501 msgid "BSD disk labels."
12502 msgstr "Мітки дисків BSD."
12505 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12510 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
12511 msgid "DASD, used on IBM mainframes."
12512 msgstr "DASD, використовувалися у мейнфреймах IBM."
12515 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
12520 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
12521 msgid "MIPS/SGI volumes."
12522 msgstr "Томи MIPS/SGI."
12525 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12530 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12531 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12532 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12535 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12540 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12541 msgid "NEC PC-98 format, common in Japan apparently."
12542 msgstr "Формат NEC PC-98, поширений у Японії."
12545 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12550 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12551 msgid "Sun disk labels."
12552 msgstr "Мітки дисків Sun."
12555 #: ../fish/guestfish-actions.pod:3615
12560 #: ../fish/guestfish-actions.pod:3617
12563 " part-list device\n"
12566 " part-list device\n"
12570 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
12572 "This command parses the partition table on C<device> and returns the list of "
12573 "partitions found."
12577 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
12578 msgid "The fields in the returned structure are:"
12582 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
12583 msgid "B<part_num>"
12584 msgstr "B<part_num>"
12587 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
12588 msgid "Partition number, counting from 1."
12592 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12593 msgid "B<part_start>"
12594 msgstr "B<part_start>"
12597 #: ../fish/guestfish-actions.pod:3632
12599 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12600 "the device's sector size, see L</blockdev-getss>."
12604 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
12605 msgid "B<part_end>"
12606 msgstr "B<part_end>"
12609 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
12610 msgid "End of the partition in bytes."
12614 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
12615 msgid "B<part_size>"
12616 msgstr "B<part_size>"
12619 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12620 msgid "Size of the partition in bytes."
12624 #: ../fish/guestfish-actions.pod:3645
12625 msgid "part-set-bootable"
12626 msgstr "part-set-bootable"
12629 #: ../fish/guestfish-actions.pod:3647
12632 " part-set-bootable device partnum true|false\n"
12637 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
12639 "This sets the bootable flag on partition numbered C<partnum> on device "
12640 "C<device>. Note that partitions are numbered from 1."
12644 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
12646 "The bootable flag is used by some operating systems (notably Windows) to "
12647 "determine which partition to boot from. It is by no means universally "
12652 #: ../fish/guestfish-actions.pod:3656
12653 msgid "part-set-mbr-id"
12654 msgstr "part-set-mbr-id"
12657 #: ../fish/guestfish-actions.pod:3658
12660 " part-set-mbr-id device partnum idbyte\n"
12665 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
12667 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12668 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
12669 "documentation are in fact hexadecimal numbers, but usually documented "
12670 "without any leading \"0x\" which might be confusing."
12674 #: ../fish/guestfish-actions.pod:3670
12675 msgid "part-set-name"
12676 msgstr "part-set-name"
12679 #: ../fish/guestfish-actions.pod:3672
12682 " part-set-name device partnum name\n"
12687 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12689 "This sets the partition name on partition numbered C<partnum> on device "
12690 "C<device>. Note that partitions are numbered from 1."
12694 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12696 "The partition name can only be set on certain types of partition table. "
12697 "This works on C<gpt> but not on C<mbr> partitions."
12701 #: ../fish/guestfish-actions.pod:3680
12702 msgid "part-to-dev"
12703 msgstr "part-to-dev"
12706 #: ../fish/guestfish-actions.pod:3682
12709 " part-to-dev partition\n"
12712 " part-to-dev розділ\n"
12716 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12718 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12719 "partition number, returning the device name (eg. \"/dev/sdb\")."
12723 #: ../fish/guestfish-actions.pod:3688
12725 "The named partition must exist, for example as a string returned from L</"
12726 "list-partitions>."
12730 #: ../fish/guestfish-actions.pod:3691
12731 msgid "ping-daemon"
12732 msgstr "ping-daemon"
12735 #: ../fish/guestfish-actions.pod:3693
12745 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12747 "This is a test probe into the guestfs daemon running inside the qemu "
12748 "subprocess. Calling this function checks that the daemon responds to the "
12749 "ping message, without affecting the daemon or attached block device(s) in "
12754 #: ../fish/guestfish-actions.pod:3700
12759 #: ../fish/guestfish-actions.pod:3702
12762 " pread path count offset\n"
12767 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12769 "This command lets you read part of a file. It reads C<count> bytes of the "
12770 "file, starting at C<offset>, from file C<path>."
12774 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12775 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12777 "This may read fewer bytes than requested. For further details see the "
12778 "L<pread(2)> system call."
12782 #: ../fish/guestfish-actions.pod:3710
12783 msgid "See also L</pwrite>, L</pread-device>."
12784 msgstr "Див. також L</pwrite>, L</pread-device>."
12787 #: ../fish/guestfish-actions.pod:3715
12788 msgid "pread-device"
12789 msgstr "pread-device"
12792 #: ../fish/guestfish-actions.pod:3717
12795 " pread-device device count offset\n"
12800 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12802 "This command lets you read part of a file. It reads C<count> bytes of "
12803 "C<device>, starting at C<offset>."
12807 #: ../fish/guestfish-actions.pod:3725
12808 msgid "See also L</pread>."
12809 msgstr "Див. також L</pread>."
12812 #: ../fish/guestfish-actions.pod:3730
12817 #: ../fish/guestfish-actions.pod:3732
12820 " pvcreate device\n"
12823 " pvcreate пристрій\n"
12827 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12829 "This creates an LVM physical volume on the named C<device>, where C<device> "
12830 "should usually be a partition name such as C</dev/sda1>."
12834 #: ../fish/guestfish-actions.pod:3738
12839 #: ../fish/guestfish-actions.pod:3740
12842 " pvremove device\n"
12845 " pvremove пристрій\n"
12849 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12851 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12856 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12858 "The implementation uses the C<pvremove> command which refuses to wipe "
12859 "physical volumes that contain any volume groups, so you have to remove those "
12864 #: ../fish/guestfish-actions.pod:3749
12869 #: ../fish/guestfish-actions.pod:3751
12872 " pvresize device\n"
12875 " pvresize пристрій\n"
12879 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12881 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12882 "the new size of the underlying device."
12886 #: ../fish/guestfish-actions.pod:3756
12887 msgid "pvresize-size"
12888 msgstr "pvresize-size"
12891 #: ../fish/guestfish-actions.pod:3758
12894 " pvresize-size device size\n"
12899 #: ../fish/guestfish-actions.pod:3760
12901 "This command is the same as L</pvresize> except that it allows you to "
12902 "specify the new size (in bytes) explicitly."
12906 #: ../fish/guestfish-actions.pod:3763
12911 #: ../fish/guestfish-actions.pod:3765
12921 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12923 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12928 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12930 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12935 #: ../fish/guestfish-actions.pod:3773
12936 msgid "See also L</pvs-full>."
12937 msgstr "Див. також L</pvs-full>."
12940 #: ../fish/guestfish-actions.pod:3775
12945 #: ../fish/guestfish-actions.pod:3777
12955 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12957 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12958 "(8)> command. The \"full\" version includes all fields."
12962 #: ../fish/guestfish-actions.pod:3782
12967 #: ../fish/guestfish-actions.pod:3784
12973 " pvuuid пристрій\n"
12977 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12978 msgid "This command returns the UUID of the LVM PV C<device>."
12982 #: ../fish/guestfish-actions.pod:3788
12987 #: ../fish/guestfish-actions.pod:3790
12990 " pwrite path content offset\n"
12995 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12997 "This command writes to part of a file. It writes the data buffer C<content> "
12998 "to the file C<path> starting at offset C<offset>."
13002 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
13004 "This command implements the L<pwrite(2)> system call, and like that system "
13005 "call it may not write the full data requested. The return value is the "
13006 "number of bytes that were actually written to the file. This could even be "
13007 "0, although short writes are unlikely for regular files in ordinary "
13012 #: ../fish/guestfish-actions.pod:3801
13013 msgid "See also L</pread>, L</pwrite-device>."
13014 msgstr "Див. також L</pread>, L</pwrite-device>."
13017 #: ../fish/guestfish-actions.pod:3806
13018 msgid "pwrite-device"
13019 msgstr "pwrite-device"
13022 #: ../fish/guestfish-actions.pod:3808
13025 " pwrite-device device content offset\n"
13030 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
13032 "This command writes to part of a device. It writes the data buffer "
13033 "C<content> to C<device> starting at offset C<offset>."
13037 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
13039 "This command implements the L<pwrite(2)> system call, and like that system "
13040 "call it may not write the full data requested (although short writes to disk "
13041 "devices and partitions are probably impossible with standard Linux kernels)."
13045 #: ../fish/guestfish-actions.pod:3818
13046 msgid "See also L</pwrite>."
13047 msgstr "Див. також L</pwrite>."
13050 #: ../fish/guestfish-actions.pod:3823
13055 #: ../fish/guestfish-actions.pod:3825
13058 " read-file path\n"
13061 " read-file шлях\n"
13065 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
13066 msgid "This calls returns the contents of the file C<path> as a buffer."
13070 #: ../fish/guestfish-actions.pod:3830
13072 "Unlike L</cat>, this function can correctly handle files that contain "
13073 "embedded ASCII NUL characters. However unlike L</download>, this function "
13074 "is limited in the total size of file that can be handled."
13078 #: ../fish/guestfish-actions.pod:3838
13080 msgstr "read-lines"
13083 #: ../fish/guestfish-actions.pod:3840
13086 " read-lines path\n"
13089 " read-lines шлях\n"
13093 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
13095 "The file contents are returned as a list of lines. Trailing C<LF> and "
13096 "C<CRLF> character sequences are I<not> returned."
13100 #: ../fish/guestfish-actions.pod:3847
13102 "Note that this function cannot correctly handle binary files (specifically, "
13103 "files containing C<\\0> character which is treated as end of line). For "
13104 "those you need to use the L</read-file> function which has a more complex "
13109 #: ../fish/guestfish-actions.pod:3852
13114 #: ../fish/guestfish-actions.pod:3854
13120 " readdir каталог\n"
13124 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
13125 msgid "This returns the list of directory entries in directory C<dir>."
13129 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
13131 "All entries in the directory are returned, including C<.> and C<..>. The "
13132 "entries are I<not> sorted, but returned in the same order as the underlying "
13137 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13139 "Also this call returns basic file type information about each file. The "
13140 "C<ftyp> field will contain one of the following characters:"
13144 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
13149 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
13150 msgid "Block special"
13151 msgstr "Блоковий особливий"
13154 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
13159 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
13160 msgid "Char special"
13161 msgstr "Символьний особливий"
13164 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
13169 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
13174 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
13179 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
13180 msgid "FIFO (named pipe)"
13181 msgstr "FIFO (іменований канал)"
13184 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
13189 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
13190 msgid "Symbolic link"
13191 msgstr "Символічне посилання"
13194 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
13199 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13200 msgid "Regular file"
13201 msgstr "Звичайний файл"
13204 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13209 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13214 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13219 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13220 msgid "Unknown file type"
13221 msgstr "Невідомий тип файла"
13224 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13229 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13231 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13235 #: ../fish/guestfish-actions.pod:3906
13237 "This function is primarily intended for use by programs. To get a simple "
13238 "list of names, use L</ls>. To get a printable directory for human "
13239 "consumption, use L</ll>."
13243 #: ../fish/guestfish-actions.pod:3910
13248 #: ../fish/guestfish-actions.pod:3912
13258 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
13259 msgid "This command reads the target of a symbolic link."
13263 #: ../fish/guestfish-actions.pod:3916
13264 msgid "readlinklist"
13265 msgstr "readlinklist"
13268 #: ../fish/guestfish-actions.pod:3918
13271 " readlinklist path 'names ...'\n"
13276 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
13278 "This call allows you to do a C<readlink> operation on multiple files, where "
13279 "all files are in the directory C<path>. C<names> is the list of files from "
13284 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
13286 "On return you get a list of strings, with a one-to-one correspondence to the "
13287 "C<names> list. Each string is the value of the symbolic link."
13291 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
13293 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13294 "result string is the empty string C<\"\">. However the whole operation is "
13295 "completed even if there were C<readlink(2)> errors, and so you can call this "
13296 "function with names where you don't know if they are symbolic links already "
13297 "(albeit slightly less efficient)."
13301 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
13303 "This call is intended for programs that want to efficiently list a directory "
13304 "contents without making many round-trips. Very long directory listings "
13305 "might cause the protocol message size to be exceeded, causing this call to "
13306 "fail. The caller must split up such requests into smaller groups of names."
13310 #: ../fish/guestfish-actions.pod:3942
13315 #: ../fish/guestfish-actions.pod:3944
13325 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
13327 "Return the canonicalized absolute pathname of C<path>. The returned path "
13328 "has no C<.>, C<..> or symbolic link path elements."
13332 #: ../fish/guestfish-actions.pod:3949
13333 msgid "removexattr"
13334 msgstr "removexattr"
13337 #: ../fish/guestfish-actions.pod:3951
13340 " removexattr xattr path\n"
13345 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
13347 "This call removes the extended attribute named C<xattr> of the file C<path>."
13351 #: ../fish/guestfish-actions.pod:3956
13352 msgid "See also: L</lremovexattr>, L<attr(5)>."
13353 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13356 #: ../fish/guestfish-actions.pod:3958
13361 #: ../fish/guestfish-actions.pod:3960
13364 " resize2fs device\n"
13367 " resize2fs пристрій\n"
13371 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
13373 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13374 "underlying device."
13378 #: ../fish/guestfish-actions.pod:3965
13380 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13381 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13382 "gives an error about this and sometimes not. In any case, it is always safe "
13383 "to call L</e2fsck-f> before calling this function."
13387 #: ../fish/guestfish-actions.pod:3971
13388 msgid "resize2fs-M"
13389 msgstr "resize2fs-M"
13392 #: ../fish/guestfish-actions.pod:3973
13395 " resize2fs-M device\n"
13398 " resize2fs-M пристрій\n"
13402 #: ../fish/guestfish-actions.pod:3975
13404 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13405 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13410 #: ../fish/guestfish-actions.pod:3979
13412 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13413 "and read the C<Block size> and C<Block count> values. These two numbers, "
13414 "multiplied together, give the resulting size of the minimal filesystem in "
13419 #: ../fish/guestfish-actions.pod:3984
13420 msgid "resize2fs-size"
13421 msgstr "resize2fs-size"
13424 #: ../fish/guestfish-actions.pod:3986
13427 " resize2fs-size device size\n"
13432 #: ../fish/guestfish-actions.pod:3988
13434 "This command is the same as L</resize2fs> except that it allows you to "
13435 "specify the new size (in bytes) explicitly."
13439 #: ../fish/guestfish-actions.pod:3991
13444 #: ../fish/guestfish-actions.pod:3993
13454 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
13455 msgid "Remove the single file C<path>."
13459 #: ../fish/guestfish-actions.pod:3997
13464 #: ../fish/guestfish-actions.pod:3999
13474 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
13476 "Remove the file or directory C<path>, recursively removing the contents if "
13477 "its a directory. This is like the C<rm -rf> shell command."
13481 #: ../fish/guestfish-actions.pod:4005
13486 #: ../fish/guestfish-actions.pod:4007
13496 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
13497 msgid "Remove the single directory C<path>."
13501 #: ../fish/guestfish-actions.pod:4011
13502 msgid "rmmountpoint"
13503 msgstr "rmmountpoint"
13506 #: ../fish/guestfish-actions.pod:4013
13509 " rmmountpoint exemptpath\n"
13514 #: ../fish/guestfish-actions.pod:4015
13516 "This calls removes a mountpoint that was previously created with L</"
13517 "mkmountpoint>. See L</mkmountpoint> for full details."
13521 #: ../fish/guestfish-actions.pod:4019
13522 msgid "scrub-device"
13523 msgstr "scrub-device"
13526 #: ../fish/guestfish-actions.pod:4021
13529 " scrub-device device\n"
13532 " scrub-device пристрій\n"
13536 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
13538 "This command writes patterns over C<device> to make data retrieval more "
13543 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
13544 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
13545 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
13547 "It is an interface to the L<scrub(1)> program. See that manual page for "
13552 #: ../fish/guestfish-actions.pod:4032
13554 msgstr "scrub-file"
13557 #: ../fish/guestfish-actions.pod:4034
13560 " scrub-file file\n"
13563 " scrub-file файл\n"
13567 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
13569 "This command writes patterns over a file to make data retrieval more "
13574 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
13575 msgid "The file is I<removed> after scrubbing."
13579 #: ../fish/guestfish-actions.pod:4044
13580 msgid "scrub-freespace"
13581 msgstr "scrub-freespace"
13584 #: ../fish/guestfish-actions.pod:4046
13587 " scrub-freespace dir\n"
13590 " scrub-freespace каталог\n"
13594 #: ../fish/guestfish-actions.pod:4048
13596 "This command creates the directory C<dir> and then fills it with files until "
13597 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13598 "deletes them. The intention is to scrub any free space on the partition "
13599 "containing C<dir>."
13603 #: ../fish/guestfish-actions.pod:4057
13605 msgstr "set-append"
13608 #: ../fish/guestfish-actions.pod:4059
13613 #: ../fish/guestfish-actions.pod:4061
13616 " set-append append\n"
13621 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
13623 "This function is used to add additional options to the guest kernel command "
13628 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
13630 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13631 "environment variable."
13635 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
13637 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13638 "(libguestfs always adds a few of its own)."
13642 #: ../fish/guestfish-actions.pod:4072
13643 msgid "set-attach-method"
13644 msgstr "set-attach-method"
13647 #: ../fish/guestfish-actions.pod:4074
13648 msgid "attach-method"
13652 #: ../fish/guestfish-actions.pod:4076
13655 " set-attach-method attachmethod\n"
13660 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13662 "Set the method that libguestfs uses to connect to the back end guestfsd "
13663 "daemon. Possible methods are:"
13667 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13668 #: ../src/guestfs.pod:2796
13669 msgid "C<appliance>"
13670 msgstr "C<appliance>"
13673 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13675 "Launch an appliance and connect to it. This is the ordinary method and the "
13680 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
13681 msgid "C<unix:I<path>>"
13682 msgstr "C<unix:I<шлях>>"
13685 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
13686 msgid "Connect to the Unix domain socket I<path>."
13687 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13690 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
13692 "This method lets you connect to an existing daemon or (using virtio-serial) "
13693 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
13694 "RUNNING DAEMONS>."
13698 #: ../fish/guestfish-actions.pod:4098
13699 msgid "set-autosync"
13700 msgstr "set-autosync"
13703 #: ../fish/guestfish-actions.pod:4100
13708 #: ../fish/guestfish-actions.pod:4102
13711 " set-autosync true|false\n"
13714 " set-autosync true|false\n"
13718 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13720 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
13721 "effort attempt to make filesystems consistent and synchronized when the "
13722 "handle is closed (also if the program exits without closing handles)."
13726 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13728 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13729 "disabled by default)."
13733 #: ../fish/guestfish-actions.pod:4112
13735 msgstr "set-direct"
13738 #: ../fish/guestfish-actions.pod:4114
13743 #: ../fish/guestfish-actions.pod:4116
13746 " set-direct true|false\n"
13749 " set-direct true|false\n"
13753 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13755 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13756 "passed directly through to the appliance once it is launched."
13760 #: ../fish/guestfish-actions.pod:4122
13762 "One consequence of this is that log messages aren't caught by the library "
13763 "and handled by L</set-log-message-callback>, but go straight to stdout."
13767 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13768 msgid "You probably don't want to use this unless you know what you are doing."
13772 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13773 msgid "The default is disabled."
13777 #: ../fish/guestfish-actions.pod:4131
13778 msgid "set-e2label"
13779 msgstr "set-e2label"
13782 #: ../fish/guestfish-actions.pod:4133
13785 " set-e2label device label\n"
13790 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13792 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13793 "C<label>. Filesystem labels are limited to 16 characters."
13797 #: ../fish/guestfish-actions.pod:4139
13799 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13800 "label on a filesystem."
13804 #: ../fish/guestfish-actions.pod:4142
13806 msgstr "set-e2uuid"
13809 #: ../fish/guestfish-actions.pod:4144
13812 " set-e2uuid device uuid\n"
13817 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13819 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13820 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
13821 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13825 #: ../fish/guestfish-actions.pod:4151
13827 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13828 "UUID of a filesystem."
13832 #: ../fish/guestfish-actions.pod:4154
13833 msgid "set-memsize"
13834 msgstr "set-memsize"
13837 #: ../fish/guestfish-actions.pod:4156
13842 #: ../fish/guestfish-actions.pod:4158
13845 " set-memsize memsize\n"
13850 #: ../fish/guestfish-actions.pod:4160
13852 "This sets the memory size in megabytes allocated to the qemu subprocess. "
13853 "This only has any effect if called before L</launch>."
13857 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13859 "You can also change this by setting the environment variable "
13860 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13864 #: ../fish/guestfish-actions.pod:4171
13865 msgid "set-network"
13866 msgstr "set-network"
13869 #: ../fish/guestfish-actions.pod:4173
13874 #: ../fish/guestfish-actions.pod:4175
13877 " set-network true|false\n"
13880 " set-network true|false\n"
13884 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13886 "If C<network> is true, then the network is enabled in the libguestfs "
13887 "appliance. The default is false."
13891 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13893 "This affects whether commands are able to access the network (see L<guestfs"
13894 "(3)/RUNNING COMMANDS>)."
13898 #: ../fish/guestfish-actions.pod:4183
13900 "You must call this before calling L</launch>, otherwise it has no effect."
13904 #: ../fish/guestfish-actions.pod:4186
13909 #: ../fish/guestfish-actions.pod:4190
13912 " set-path searchpath\n"
13917 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13918 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13922 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13924 "The default is C<$libdir/guestfs> unless overridden by setting "
13925 "C<LIBGUESTFS_PATH> environment variable."
13929 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13930 msgid "Setting C<path> to C<NULL> restores the default path."
13934 #: ../fish/guestfish-actions.pod:4199
13939 #: ../fish/guestfish-actions.pod:4201
13944 #: ../fish/guestfish-actions.pod:4203
13947 " set-pgroup true|false\n"
13952 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13954 "If C<pgroup> is true, child processes are placed into their own process "
13959 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13961 "The practical upshot of this is that signals like C<SIGINT> (from users "
13962 "pressing C<^C>) won't be received by the child process."
13966 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13968 "The default for this flag is false, because usually you want C<^C> to kill "
13973 #: ../fish/guestfish-actions.pod:4214
13978 #: ../fish/guestfish-actions.pod:4216
13983 #: ../fish/guestfish-actions.pod:4218
13993 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13994 msgid "Set the qemu binary that we will use."
13998 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
14000 "The default is chosen when the library was compiled by the configure script."
14004 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
14006 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14011 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
14012 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14016 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
14018 "Note that you should call this function as early as possible after creating "
14019 "the handle. This is because some pre-launch operations depend on testing "
14020 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14021 "don't retest features, and so you might see inconsistent results. Using the "
14022 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14023 "the qemu binary at the same time as the handle is created."
14027 #: ../fish/guestfish-actions.pod:4238
14028 msgid "set-recovery-proc"
14029 msgstr "set-recovery-proc"
14032 #: ../fish/guestfish-actions.pod:4240
14033 msgid "recovery-proc"
14034 msgstr "recovery-proc"
14037 #: ../fish/guestfish-actions.pod:4242
14040 " set-recovery-proc true|false\n"
14043 " set-recovery-proc true|false\n"
14047 #: ../fish/guestfish-actions.pod:4244
14049 "If this is called with the parameter C<false> then L</launch> does not "
14050 "create a recovery process. The purpose of the recovery process is to stop "
14051 "runaway qemu processes in the case where the main program aborts abruptly."
14055 #: ../fish/guestfish-actions.pod:4249
14057 "This only has any effect if called before L</launch>, and the default is "
14062 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
14064 "About the only time when you would want to disable this is if the main "
14065 "process will fork itself into the background (\"daemonize\" itself). In "
14066 "this case the recovery process thinks that the main program has disappeared "
14067 "and so kills qemu, which is not very helpful."
14071 #: ../fish/guestfish-actions.pod:4258
14072 msgid "set-selinux"
14073 msgstr "set-selinux"
14076 #: ../fish/guestfish-actions.pod:4260
14081 #: ../fish/guestfish-actions.pod:4262
14084 " set-selinux true|false\n"
14087 " set-selinux true|false\n"
14091 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
14093 "This sets the selinux flag that is passed to the appliance at boot time. "
14094 "The default is C<selinux=0> (disabled)."
14098 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
14100 "Note that if SELinux is enabled, it is always in Permissive mode "
14101 "(C<enforcing=0>)."
14105 #: ../fish/guestfish-actions.pod:4273
14110 #: ../fish/guestfish-actions.pod:4275
14115 #: ../fish/guestfish-actions.pod:4277
14118 " set-trace true|false\n"
14121 " set-trace true|false\n"
14125 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
14127 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14128 "return values are traced."
14132 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
14134 "If you want to trace C API calls into libguestfs (and other libraries) then "
14135 "possibly a better way is to use the external ltrace(1) command."
14139 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
14141 "Command traces are disabled unless the environment variable "
14142 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14146 #: ../fish/guestfish-actions.pod:4289
14148 "Trace messages are normally sent to C<stderr>, unless you register a "
14149 "callback to send them somewhere else (see L</set-event-callback>)."
14153 #: ../fish/guestfish-actions.pod:4293
14154 msgid "set-verbose"
14155 msgstr "set-verbose"
14158 #: ../fish/guestfish-actions.pod:4295
14163 #: ../fish/guestfish-actions.pod:4297
14166 " set-verbose true|false\n"
14169 " set-verbose true|false\n"
14173 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
14174 msgid "If C<verbose> is true, this turns on verbose messages."
14178 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
14180 "Verbose messages are disabled unless the environment variable "
14181 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14185 #: ../fish/guestfish-actions.pod:4304
14187 "Verbose messages are normally sent to C<stderr>, unless you register a "
14188 "callback to send them somewhere else (see L</set-event-callback>)."
14192 #: ../fish/guestfish-actions.pod:4308
14197 #: ../fish/guestfish-actions.pod:4310
14200 " setcon context\n"
14203 " setcon контекст\n"
14207 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
14209 "This sets the SELinux security context of the daemon to the string "
14214 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
14215 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14219 #: ../fish/guestfish-actions.pod:4317
14224 #: ../fish/guestfish-actions.pod:4319
14227 " setxattr xattr val vallen path\n"
14232 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
14234 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14235 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14239 #: ../fish/guestfish-actions.pod:4325
14240 msgid "See also: L</lsetxattr>, L<attr(5)>."
14241 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14244 #: ../fish/guestfish-actions.pod:4327
14249 #: ../fish/guestfish-actions.pod:4329
14252 " sfdisk device cyls heads sectors 'lines ...'\n"
14257 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
14259 "This is a direct interface to the L<sfdisk(8)> program for creating "
14260 "partitions on block devices."
14264 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
14265 msgid "C<device> should be a block device, for example C</dev/sda>."
14269 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
14271 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14272 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14273 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14274 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14275 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14276 "the kernel) cannot work out the right geometry and you will need to tell it."
14280 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
14282 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14283 "refer to the L<sfdisk(8)> manpage."
14287 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
14289 "To create a single partition occupying the whole disk, you would pass "
14290 "C<lines> as a single element list, when the single element being the string "
14295 #: ../fish/guestfish-actions.pod:4351
14296 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14297 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14300 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
14301 #: ../fish/guestfish-actions.pod:4402
14303 "I<This function is deprecated.> In new code, use the L</part_add> call "
14308 #: ../fish/guestfish-actions.pod:4364
14313 #: ../fish/guestfish-actions.pod:4366
14316 " sfdiskM device 'lines ...'\n"
14321 #: ../fish/guestfish-actions.pod:4368
14323 "This is a simplified interface to the L</sfdisk> command, where partition "
14324 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14325 "you don't need to specify the cyls, heads and sectors parameters which were "
14326 "rarely if ever used anyway."
14330 #: ../fish/guestfish-actions.pod:4374
14331 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14333 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14336 #: ../fish/guestfish-actions.pod:4387
14341 #: ../fish/guestfish-actions.pod:4389
14344 " sfdisk-N device partnum cyls heads sectors line\n"
14349 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
14351 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14352 "(note: C<n> counts from 1)."
14356 #: ../fish/guestfish-actions.pod:4394
14358 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14359 "cyls/heads/sectors parameters."
14363 #: ../fish/guestfish-actions.pod:4397
14364 msgid "See also: L</part-add>"
14365 msgstr "Див. також L</part-add>"
14368 #: ../fish/guestfish-actions.pod:4409
14369 msgid "sfdisk-disk-geometry"
14370 msgstr "sfdisk-disk-geometry"
14373 #: ../fish/guestfish-actions.pod:4411
14376 " sfdisk-disk-geometry device\n"
14379 " sfdisk-disk-geometry пристрій\n"
14383 #: ../fish/guestfish-actions.pod:4413
14385 "This displays the disk geometry of C<device> read from the partition table. "
14386 "Especially in the case where the underlying block device has been resized, "
14387 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14388 "kernel-geometry>)."
14392 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
14393 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
14394 msgid "The result is in human-readable format, and not designed to be parsed."
14398 #: ../fish/guestfish-actions.pod:4421
14399 msgid "sfdisk-kernel-geometry"
14400 msgstr "sfdisk-kernel-geometry"
14403 #: ../fish/guestfish-actions.pod:4423
14406 " sfdisk-kernel-geometry device\n"
14409 " sfdisk-kernel-geometry пристрій\n"
14413 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
14414 msgid "This displays the kernel's idea of the geometry of C<device>."
14418 #: ../fish/guestfish-actions.pod:4430
14423 #: ../fish/guestfish-actions.pod:4432
14426 " sfdisk-l device\n"
14429 " sfdisk-l пристрій\n"
14433 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
14435 "This displays the partition table on C<device>, in the human-readable output "
14436 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14440 #: ../fish/guestfish-actions.pod:4438
14441 msgid "See also: L</part-list>"
14442 msgstr "Див. також L</part-list>"
14445 #: ../fish/guestfish-actions.pod:4440
14447 "I<This function is deprecated.> In new code, use the L</part_list> call "
14452 #: ../fish/guestfish-actions.pod:4447
14457 #: ../fish/guestfish-actions.pod:4449
14467 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14469 "This call runs a command from the guest filesystem via the guest's C</bin/"
14474 #: ../fish/guestfish-actions.pod:4454
14475 msgid "This is like L</command>, but passes the command to:"
14479 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
14482 " /bin/sh -c \"command\"\n"
14487 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
14489 "Depending on the guest's shell, this usually results in wildcards being "
14490 "expanded, shell expressions being interpolated and so on."
14494 #: ../fish/guestfish-actions.pod:4462
14495 msgid "All the provisos about L</command> apply to this call."
14499 #: ../fish/guestfish-actions.pod:4464
14504 #: ../fish/guestfish-actions.pod:4466
14507 " sh-lines command\n"
14510 " sh-lines команда\n"
14514 #: ../fish/guestfish-actions.pod:4468
14515 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14519 #: ../fish/guestfish-actions.pod:4471
14520 msgid "See also: L</command-lines>"
14521 msgstr "Див. також L</command-lines>"
14524 #: ../fish/guestfish-actions.pod:4473
14529 #: ../fish/guestfish-actions.pod:4475
14535 " sleep час_у_секундах\n"
14539 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
14540 msgid "Sleep for C<secs> seconds."
14544 #: ../fish/guestfish-actions.pod:4479
14549 #: ../fish/guestfish-actions.pod:4481
14559 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
14560 msgid "This is the same as the C<stat(2)> system call."
14564 #: ../fish/guestfish-actions.pod:4487
14569 #: ../fish/guestfish-actions.pod:4489
14579 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
14581 "Returns file system statistics for any mounted file system. C<path> should "
14582 "be a file or directory in the mounted file system (typically it is the mount "
14583 "point itself, but it doesn't need to be)."
14587 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
14588 msgid "This is the same as the C<statvfs(2)> system call."
14592 #: ../fish/guestfish-actions.pod:4497
14597 #: ../fish/guestfish-actions.pod:4499
14607 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
14609 "This runs the L<strings(1)> command on a file and returns the list of "
14610 "printable strings found."
14614 #: ../fish/guestfish-actions.pod:4507
14619 #: ../fish/guestfish-actions.pod:4509
14622 " strings-e encoding path\n"
14625 " strings-e кодування шлях\n"
14629 #: ../fish/guestfish-actions.pod:4511
14631 "This is like the L</strings> command, but allows you to specify the encoding "
14632 "of strings that are looked for in the source file C<path>."
14636 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
14637 msgid "Allowed encodings are:"
14638 msgstr "Можливими кодуваннями є:"
14641 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14646 #: ../fish/guestfish-actions.pod:4521
14648 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14649 "ISO-8859-X (this is what L</strings> uses)."
14653 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
14658 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
14659 msgid "Single 8-bit-byte characters."
14660 msgstr "Окремі 8-бітові-байтові символи."
14663 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14668 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14669 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14673 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14674 msgid "l (lower case letter L)"
14678 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14680 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
14681 "examining binaries in Windows guests."
14685 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
14690 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
14691 msgid "32-bit big endian such as UCS-4BE."
14695 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
14700 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
14701 msgid "32-bit little endian such as UCS-4LE."
14705 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14706 msgid "The returned strings are transcoded to UTF-8."
14710 #: ../fish/guestfish-actions.pod:4553
14711 msgid "swapoff-device"
14712 msgstr "swapoff-device"
14715 #: ../fish/guestfish-actions.pod:4555
14718 " swapoff-device device\n"
14721 " swapoff-device пристрій\n"
14725 #: ../fish/guestfish-actions.pod:4557
14727 "This command disables the libguestfs appliance swap device or partition "
14728 "named C<device>. See L</swapon-device>."
14732 #: ../fish/guestfish-actions.pod:4561
14733 msgid "swapoff-file"
14734 msgstr "swapoff-file"
14737 #: ../fish/guestfish-actions.pod:4563
14740 " swapoff-file file\n"
14743 " swapoff-file файл\n"
14747 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
14748 msgid "This command disables the libguestfs appliance swap on file."
14752 #: ../fish/guestfish-actions.pod:4567
14753 msgid "swapoff-label"
14754 msgstr "swapoff-label"
14757 #: ../fish/guestfish-actions.pod:4569
14760 " swapoff-label label\n"
14763 " swapoff-label мітка\n"
14767 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14769 "This command disables the libguestfs appliance swap on labeled swap "
14774 #: ../fish/guestfish-actions.pod:4574
14775 msgid "swapoff-uuid"
14776 msgstr "swapoff-uuid"
14779 #: ../fish/guestfish-actions.pod:4576
14782 " swapoff-uuid uuid\n"
14785 " swapoff-uuid uuid\n"
14789 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14791 "This command disables the libguestfs appliance swap partition with the given "
14796 #: ../fish/guestfish-actions.pod:4581
14797 msgid "swapon-device"
14798 msgstr "swapon-device"
14801 #: ../fish/guestfish-actions.pod:4583
14804 " swapon-device device\n"
14807 " swapon-device пристрій\n"
14811 #: ../fish/guestfish-actions.pod:4585
14813 "This command enables the libguestfs appliance to use the swap device or "
14814 "partition named C<device>. The increased memory is made available for all "
14815 "commands, for example those run using L</command> or L</sh>."
14819 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14821 "Note that you should not swap to existing guest swap partitions unless you "
14822 "know what you are doing. They may contain hibernation information, or other "
14823 "information that the guest doesn't want you to trash. You also risk leaking "
14824 "information about the host to the guest this way. Instead, attach a new "
14825 "host device to the guest and swap on that."
14829 #: ../fish/guestfish-actions.pod:4597
14830 msgid "swapon-file"
14831 msgstr "swapon-file"
14834 #: ../fish/guestfish-actions.pod:4599
14837 " swapon-file file\n"
14840 " swapon-file файл\n"
14844 #: ../fish/guestfish-actions.pod:4601
14846 "This command enables swap to a file. See L</swapon-device> for other notes."
14850 #: ../fish/guestfish-actions.pod:4604
14851 msgid "swapon-label"
14852 msgstr "swapon-label"
14855 #: ../fish/guestfish-actions.pod:4606
14858 " swapon-label label\n"
14861 " swapon-label мітка\n"
14865 #: ../fish/guestfish-actions.pod:4608
14867 "This command enables swap to a labeled swap partition. See L</swapon-"
14868 "device> for other notes."
14872 #: ../fish/guestfish-actions.pod:4611
14873 msgid "swapon-uuid"
14874 msgstr "swapon-uuid"
14877 #: ../fish/guestfish-actions.pod:4613
14880 " swapon-uuid uuid\n"
14883 " swapon-uuid uuid\n"
14887 #: ../fish/guestfish-actions.pod:4615
14889 "This command enables swap to a swap partition with the given UUID. See L</"
14890 "swapon-device> for other notes."
14894 #: ../fish/guestfish-actions.pod:4618
14899 #: ../fish/guestfish-actions.pod:4620
14909 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14911 "This syncs the disk, so that any writes are flushed through to the "
14912 "underlying disk image."
14916 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14918 "You should always call this if you have modified a disk image, before "
14919 "closing the handle."
14923 #: ../fish/guestfish-actions.pod:4628
14928 #: ../fish/guestfish-actions.pod:4630
14938 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14940 "This command returns up to the last 10 lines of a file as a list of strings."
14944 #: ../fish/guestfish-actions.pod:4638
14949 #: ../fish/guestfish-actions.pod:4640
14952 " tail-n nrlines path\n"
14957 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14959 "If the parameter C<nrlines> is a positive number, this returns the last "
14960 "C<nrlines> lines of the file C<path>."
14964 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14966 "If the parameter C<nrlines> is a negative number, this returns lines from "
14967 "the file C<path>, starting with the C<-nrlines>th line."
14971 #: ../fish/guestfish-actions.pod:4653
14976 #: ../fish/guestfish-actions.pod:4655
14979 " tar-in (tarfile|-) directory\n"
14982 " tar-in (файл_tar|-) каталог\n"
14986 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14988 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14989 "tar file) into C<directory>."
14993 #: ../fish/guestfish-actions.pod:4660
14994 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14998 #: ../fish/guestfish-actions.pod:4665
15003 #: ../fish/guestfish-actions.pod:4667
15006 " tar-out directory (tarfile|-)\n"
15009 " tar-out каталог (файл tar|-)\n"
15013 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
15015 "This command packs the contents of C<directory> and downloads it to local "
15020 #: ../fish/guestfish-actions.pod:4672
15021 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15025 #: ../fish/guestfish-actions.pod:4677
15030 #: ../fish/guestfish-actions.pod:4679
15033 " tgz-in (tarball|-) directory\n"
15036 " tgz-in (архів tar|-) каталог\n"
15040 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
15042 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15043 "tar file) into C<directory>."
15047 #: ../fish/guestfish-actions.pod:4684
15048 msgid "To upload an uncompressed tarball, use L</tar-in>."
15052 #: ../fish/guestfish-actions.pod:4688
15057 #: ../fish/guestfish-actions.pod:4690
15060 " tgz-out directory (tarball|-)\n"
15063 " tgz-out каталог (архів tar|-)\n"
15067 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
15069 "This command packs the contents of C<directory> and downloads it to local "
15074 #: ../fish/guestfish-actions.pod:4695
15075 msgid "To download an uncompressed tarball, use L</tar-out>."
15079 #: ../fish/guestfish-actions.pod:4699
15084 #: ../fish/guestfish-actions.pod:4701
15094 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
15096 "Touch acts like the L<touch(1)> command. It can be used to update the "
15097 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15102 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
15104 "This command only works on regular files, and will fail on other file types "
15105 "such as directories, symbolic links, block special etc."
15109 #: ../fish/guestfish-actions.pod:4710
15114 #: ../fish/guestfish-actions.pod:4712
15124 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
15126 "This command truncates C<path> to a zero-length file. The file must exist "
15131 #: ../fish/guestfish-actions.pod:4717
15132 msgid "truncate-size"
15133 msgstr "truncate-size"
15136 #: ../fish/guestfish-actions.pod:4719
15139 " truncate-size path size\n"
15142 " truncate-size шлях розмір\n"
15146 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
15148 "This command truncates C<path> to size C<size> bytes. The file must exist "
15153 #: ../fish/guestfish-actions.pod:4724
15155 "If the current file size is less than C<size> then the file is extended to "
15156 "the required size with zero bytes. This creates a sparse file (ie. disk "
15157 "blocks are not allocated for the file until you write to it). To create a "
15158 "non-sparse file of zeroes, use L</fallocate64> instead."
15162 #: ../fish/guestfish-actions.pod:4730
15167 #: ../fish/guestfish-actions.pod:4732
15170 " tune2fs-l device\n"
15173 " tune2fs-l пристрій\n"
15177 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
15179 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15184 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
15186 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15187 "for more details. The list of fields returned isn't clearly defined, and "
15188 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15189 "and the filesystem itself."
15193 #: ../fish/guestfish-actions.pod:4742
15198 #: ../fish/guestfish-actions.pod:4744
15201 " txz-in (tarball|-) directory\n"
15204 " txz-in (архів tar|-) каталог\n"
15208 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
15210 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15211 "tar file) into C<directory>."
15215 #: ../fish/guestfish-actions.pod:4751
15220 #: ../fish/guestfish-actions.pod:4753
15223 " txz-out directory (tarball|-)\n"
15226 " txz-out каталог (архів tar|-)\n"
15230 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
15232 "This command packs the contents of C<directory> and downloads it to local "
15233 "file C<tarball> (as an xz compressed tar archive)."
15237 #: ../fish/guestfish-actions.pod:4760
15242 #: ../fish/guestfish-actions.pod:4762
15252 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
15254 "This function sets the mask used for creating new files and device nodes to "
15259 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15261 "Typical umask values would be C<022> which creates new files with "
15262 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15263 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15267 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
15269 "The default umask is C<022>. This is important because it means that "
15270 "directories and device nodes will be created with C<0644> or C<0755> mode "
15271 "even if you specify C<0777>."
15275 #: ../fish/guestfish-actions.pod:4776
15276 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15277 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15280 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
15281 msgid "This call returns the previous umask."
15285 #: ../fish/guestfish-actions.pod:4781
15290 #: ../fish/guestfish-actions.pod:4783
15295 #: ../fish/guestfish-actions.pod:4785
15298 " umount pathordevice\n"
15301 " umount шлях_або_пристрій\n"
15305 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
15307 "This unmounts the given filesystem. The filesystem may be specified either "
15308 "by its mountpoint (path) or the device which contains the filesystem."
15312 #: ../fish/guestfish-actions.pod:4791
15314 msgstr "umount-all"
15317 #: ../fish/guestfish-actions.pod:4793
15318 msgid "unmount-all"
15319 msgstr "unmount-all"
15322 #: ../fish/guestfish-actions.pod:4795
15332 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
15333 msgid "This unmounts all mounted filesystems."
15337 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
15338 msgid "Some internal mounts are not unmounted by this call."
15342 #: ../fish/guestfish-actions.pod:4801
15347 #: ../fish/guestfish-actions.pod:4803
15350 " upload (filename|-) remotefilename\n"
15353 " upload (назва_файла|-) назва_віддаленого_файла\n"
15357 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
15358 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
15359 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15363 #: ../fish/guestfish-actions.pod:4810
15364 msgid "See also L</download>."
15365 msgstr "Див. також L</download>."
15368 #: ../fish/guestfish-actions.pod:4814
15369 msgid "upload-offset"
15370 msgstr "upload-offset"
15373 #: ../fish/guestfish-actions.pod:4816
15376 " upload-offset (filename|-) remotefilename offset\n"
15379 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15383 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
15385 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15386 "The intention is to overwrite parts of existing files or devices, although "
15387 "if a non-existant file is specified then it is created with a \"hole\" "
15388 "before C<offset>. The size of the data written is implicit in the size of "
15389 "the source C<filename>."
15393 #: ../fish/guestfish-actions.pod:4828
15395 "Note that there is no limit on the amount of data that can be uploaded with "
15396 "this call, unlike with L</pwrite>, and this call always writes the full "
15397 "amount unless an error occurs."
15401 #: ../fish/guestfish-actions.pod:4833
15402 msgid "See also L</upload>, L</pwrite>."
15403 msgstr "Див. також L</upload>, L</pwrite>."
15406 #: ../fish/guestfish-actions.pod:4837
15411 #: ../fish/guestfish-actions.pod:4839
15414 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15419 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
15420 msgid "This command sets the timestamps of a file with nanosecond precision."
15424 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
15426 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15431 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
15433 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15434 "nanoseconds from the epoch."
15438 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
15440 "If the C<*nsecs> field contains the special value C<-1> then the "
15441 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15442 "ignored in this case)."
15446 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
15448 "If the C<*nsecs> field contains the special value C<-2> then the "
15449 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15454 #: ../fish/guestfish-actions.pod:4858
15459 #: ../fish/guestfish-actions.pod:4860
15469 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
15471 "Return the libguestfs version number that the program is linked against."
15475 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15477 "Note that because of dynamic linking this is not necessarily the version of "
15478 "libguestfs that you compiled against. You can compile the program, and then "
15479 "at runtime dynamically link against a completely different C<libguestfs.so> "
15484 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
15486 "This call was added in version C<1.0.58>. In previous versions of "
15487 "libguestfs there was no way to get the version number. From C code you can "
15488 "use dynamic linker functions to find out if this symbol exists (if it "
15489 "doesn't, then it's an earlier version)."
15493 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
15495 "The call returns a structure with four elements. The first three (C<major>, "
15496 "C<minor> and C<release>) are numbers and correspond to the usual version "
15497 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15498 "but may be used for distro-specific information."
15502 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
15504 "To construct the original version string: C<$major.$minor.$release$extra>"
15508 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
15509 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15513 #: ../fish/guestfish-actions.pod:4887
15515 "I<Note:> Don't use this call to test for availability of features. In "
15516 "enterprise distributions we backport features from later versions into "
15517 "earlier versions, making this an unreliable way to test for features. Use "
15518 "L</available> instead."
15522 #: ../fish/guestfish-actions.pod:4893
15527 #: ../fish/guestfish-actions.pod:4895
15530 " vfs-label device\n"
15533 " vfs-label пристрій\n"
15537 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
15538 msgid "This returns the filesystem label of the filesystem on C<device>."
15542 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
15543 msgid "If the filesystem is unlabeled, this returns the empty string."
15547 #: ../fish/guestfish-actions.pod:4902
15548 msgid "To find a filesystem from the label, use L</findfs-label>."
15552 #: ../fish/guestfish-actions.pod:4904
15557 #: ../fish/guestfish-actions.pod:4906
15560 " vfs-type device\n"
15563 " vfs-type пристрій\n"
15567 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
15569 "This command gets the filesystem type corresponding to the filesystem on "
15574 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
15576 "For most filesystems, the result is the name of the Linux VFS module which "
15577 "would be used to mount this filesystem if you mounted it without specifying "
15578 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15582 #: ../fish/guestfish-actions.pod:4916
15587 #: ../fish/guestfish-actions.pod:4918
15590 " vfs-uuid device\n"
15593 " vfs-uuid пристрій\n"
15597 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
15598 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15602 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
15603 msgid "If the filesystem does not have a UUID, this returns the empty string."
15607 #: ../fish/guestfish-actions.pod:4925
15608 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15612 #: ../fish/guestfish-actions.pod:4927
15613 msgid "vg-activate"
15614 msgstr "vg-activate"
15617 #: ../fish/guestfish-actions.pod:4929
15620 " vg-activate true|false 'volgroups ...'\n"
15625 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15627 "This command activates or (if C<activate> is false) deactivates all logical "
15628 "volumes in the listed volume groups C<volgroups>."
15632 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
15633 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15637 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
15639 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15640 "activated or deactivated."
15644 #: ../fish/guestfish-actions.pod:4939
15645 msgid "vg-activate-all"
15646 msgstr "vg-activate-all"
15649 #: ../fish/guestfish-actions.pod:4941
15652 " vg-activate-all true|false\n"
15655 " vg-activate-all true|false\n"
15659 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
15661 "This command activates or (if C<activate> is false) deactivates all logical "
15662 "volumes in all volume groups."
15666 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
15667 msgid "This command is the same as running C<vgchange -a y|n>"
15671 #: ../fish/guestfish-actions.pod:4948
15676 #: ../fish/guestfish-actions.pod:4950
15679 " vgcreate volgroup 'physvols ...'\n"
15684 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
15686 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15687 "of physical volumes C<physvols>."
15691 #: ../fish/guestfish-actions.pod:4955
15696 #: ../fish/guestfish-actions.pod:4957
15699 " vglvuuids vgname\n"
15704 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
15706 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15707 "volumes created in this volume group."
15711 #: ../fish/guestfish-actions.pod:4962
15713 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15714 "logical volumes and volume groups."
15718 #: ../fish/guestfish-actions.pod:4965
15719 msgid "See also L</vgpvuuids>."
15720 msgstr "Див. також L</vgpvuuids>."
15723 #: ../fish/guestfish-actions.pod:4967
15728 #: ../fish/guestfish-actions.pod:4969
15731 " vgpvuuids vgname\n"
15736 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
15738 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15739 "volumes that this volume group resides on."
15743 #: ../fish/guestfish-actions.pod:4974
15745 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15746 "physical volumes and volume groups."
15750 #: ../fish/guestfish-actions.pod:4977
15751 msgid "See also L</vglvuuids>."
15752 msgstr "Див. також L</vglvuuids>."
15755 #: ../fish/guestfish-actions.pod:4979
15760 #: ../fish/guestfish-actions.pod:4981
15763 " vgremove vgname\n"
15768 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
15769 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15773 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
15775 "This also forcibly removes all logical volumes in the volume group (if any)."
15779 #: ../fish/guestfish-actions.pod:4988
15784 #: ../fish/guestfish-actions.pod:4990
15787 " vgrename volgroup newvolgroup\n"
15792 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
15793 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15797 #: ../fish/guestfish-actions.pod:4994
15802 #: ../fish/guestfish-actions.pod:4996
15812 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
15814 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15819 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15821 "This returns a list of just the volume group names that were detected (eg. "
15826 #: ../fish/guestfish-actions.pod:5004
15827 msgid "See also L</vgs-full>."
15828 msgstr "Див. також L</vgs-full>."
15831 #: ../fish/guestfish-actions.pod:5006
15836 #: ../fish/guestfish-actions.pod:5008
15846 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15848 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15849 "> command. The \"full\" version includes all fields."
15853 #: ../fish/guestfish-actions.pod:5013
15858 #: ../fish/guestfish-actions.pod:5015
15868 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15870 "This rescans all block devices and rebuilds the list of LVM physical "
15871 "volumes, volume groups and logical volumes."
15875 #: ../fish/guestfish-actions.pod:5020
15880 #: ../fish/guestfish-actions.pod:5022
15888 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15889 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15893 #: ../fish/guestfish-actions.pod:5026
15898 #: ../fish/guestfish-actions.pod:5028
15908 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15910 "This command counts the characters in a file, using the C<wc -c> external "
15915 #: ../fish/guestfish-actions.pod:5033
15920 #: ../fish/guestfish-actions.pod:5035
15930 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15932 "This command counts the lines in a file, using the C<wc -l> external command."
15936 #: ../fish/guestfish-actions.pod:5040
15941 #: ../fish/guestfish-actions.pod:5042
15951 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15953 "This command counts the words in a file, using the C<wc -w> external command."
15957 #: ../fish/guestfish-actions.pod:5047
15962 #: ../fish/guestfish-actions.pod:5049
15965 " write path content\n"
15968 " write шлях дані\n"
15972 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15974 "This call creates a file called C<path>. The content of the file is the "
15975 "string C<content> (which can contain any 8 bit data)."
15979 #: ../fish/guestfish-actions.pod:5054
15980 msgid "See also L</write-append>."
15984 #: ../fish/guestfish-actions.pod:5059
15985 msgid "write-append"
15989 #: ../fish/guestfish-actions.pod:5061
15992 " write-append path content\n"
15997 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15999 "This call appends C<content> to the end of file C<path>. If C<path> does "
16000 "not exist, then a new file is created."
16004 #: ../fish/guestfish-actions.pod:5066
16005 msgid "See also L</write>."
16009 #: ../fish/guestfish-actions.pod:5071
16011 msgstr "write-file"
16014 #: ../fish/guestfish-actions.pod:5073
16017 " write-file path content size\n"
16022 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
16024 "This call creates a file called C<path>. The contents of the file is the "
16025 "string C<content> (which can contain any 8 bit data), with length C<size>."
16029 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
16031 "As a special case, if C<size> is C<0> then the length is calculated using "
16032 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16036 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
16038 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16039 "I<not> work, even if the length is specified."
16043 #: ../fish/guestfish-actions.pod:5089
16045 "I<This function is deprecated.> In new code, use the L</write> call instead."
16049 #: ../fish/guestfish-actions.pod:5096
16054 #: ../fish/guestfish-actions.pod:5098
16057 " zegrep regex path\n"
16060 " zegrep формальний_вираз шлях\n"
16064 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
16066 "This calls the external C<zegrep> program and returns the matching lines."
16070 #: ../fish/guestfish-actions.pod:5106
16075 #: ../fish/guestfish-actions.pod:5108
16078 " zegrepi regex path\n"
16083 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
16085 "This calls the external C<zegrep -i> program and returns the matching lines."
16089 #: ../fish/guestfish-actions.pod:5116
16094 #: ../fish/guestfish-actions.pod:5118
16104 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
16105 msgid "This command writes zeroes over the first few blocks of C<device>."
16109 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
16111 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16112 "securely wipe the device). It should be sufficient to remove any partition "
16113 "tables, filesystem superblocks and so on."
16117 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
16118 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
16120 "If blocks are already zero, then this command avoids writing zeroes. This "
16121 "prevents the underlying device from becoming non-sparse or growing "
16126 #: ../fish/guestfish-actions.pod:5130
16127 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16131 #: ../fish/guestfish-actions.pod:5133
16132 msgid "zero-device"
16133 msgstr "zero-device"
16136 #: ../fish/guestfish-actions.pod:5135
16139 " zero-device device\n"
16142 " zero-device пристрій\n"
16146 #: ../fish/guestfish-actions.pod:5137
16148 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16149 "which just zeroes the first few blocks of a device."
16153 #: ../fish/guestfish-actions.pod:5148
16158 #: ../fish/guestfish-actions.pod:5150
16161 " zerofree device\n"
16164 " zerofree пристрій\n"
16168 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
16170 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16171 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16172 "possible to compress the filesystem more effectively."
16176 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
16177 msgid "You should B<not> run this program if the filesystem is mounted."
16181 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
16183 "It is possible that using this program can damage the filesystem or data on "
16188 #: ../fish/guestfish-actions.pod:5163
16193 #: ../fish/guestfish-actions.pod:5165
16196 " zfgrep pattern path\n"
16199 " zfgrep шаблон шлях\n"
16203 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
16205 "This calls the external C<zfgrep> program and returns the matching lines."
16209 #: ../fish/guestfish-actions.pod:5173
16214 #: ../fish/guestfish-actions.pod:5175
16217 " zfgrepi pattern path\n"
16220 " zfgrepi шаблон шлях\n"
16224 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
16226 "This calls the external C<zfgrep -i> program and returns the matching lines."
16230 #: ../fish/guestfish-actions.pod:5183
16235 #: ../fish/guestfish-actions.pod:5185
16238 " zfile meth path\n"
16241 " zfile метод шлях\n"
16245 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
16247 "This command runs C<file> after first decompressing C<path> using C<method>."
16251 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
16252 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16256 #: ../fish/guestfish-actions.pod:5192
16258 "Since 1.0.63, use L</file> instead which can now process compressed files."
16262 #: ../fish/guestfish-actions.pod:5195
16264 "I<This function is deprecated.> In new code, use the L</file> call instead."
16268 #: ../fish/guestfish-actions.pod:5202
16273 #: ../fish/guestfish-actions.pod:5204
16276 " zgrep regex path\n"
16279 " zgrep формальний_вираз шлях\n"
16283 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
16285 "This calls the external C<zgrep> program and returns the matching lines."
16289 #: ../fish/guestfish-actions.pod:5212
16294 #: ../fish/guestfish-actions.pod:5214
16297 " zgrepi regex path\n"
16300 " zgrepi формальний_вираз шлях\n"
16304 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
16306 "This calls the external C<zgrep -i> program and returns the matching lines."
16310 #: ../fish/guestfish-commands.pod:1
16315 #: ../fish/guestfish-commands.pod:3
16320 #: ../fish/guestfish-commands.pod:5
16323 " alloc filename size\n"
16328 #: ../fish/guestfish-commands.pod:7
16330 "This creates an empty (zeroed) file of the given size, and then adds so it "
16331 "can be further examined."
16335 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16336 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16340 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16341 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16345 #: ../fish/guestfish-commands.pod:14
16347 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16348 "image, see L</PREPARED DISK IMAGES>."
16352 #: ../fish/guestfish-commands.pod:17
16357 #: ../fish/guestfish-commands.pod:19
16360 " copy-in local [local ...] /remotedir\n"
16365 #: ../fish/guestfish-commands.pod:21
16367 "C<copy-in> copies local files or directories recursively into the disk "
16368 "image, placing them in the directory called C</remotedir> (which must "
16369 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16370 "other commands as necessary."
16374 #: ../fish/guestfish-commands.pod:26
16376 "Multiple local files and directories can be specified, but the last "
16377 "parameter must always be a remote directory. Wildcards cannot be used."
16381 #: ../fish/guestfish-commands.pod:30
16386 #: ../fish/guestfish-commands.pod:32
16389 " copy-out remote [remote ...] localdir\n"
16394 #: ../fish/guestfish-commands.pod:34
16396 "C<copy-out> copies remote files or directories recursively out of the disk "
16397 "image, placing them on the host disk in a local directory called C<localdir> "
16398 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16399 "download>, L</tar-out> and other commands as necessary."
16403 #: ../fish/guestfish-commands.pod:40
16405 "Multiple remote files and directories can be specified, but the last "
16406 "parameter must always be a local directory. To download to the current "
16407 "directory, use C<.> as in:"
16411 #: ../fish/guestfish-commands.pod:44
16414 " copy-out /home .\n"
16417 " copy-out /home .\n"
16421 #: ../fish/guestfish-commands.pod:46
16423 "Wildcards cannot be used in the ordinary command, but you can use them with "
16424 "the help of L</glob> like this:"
16428 #: ../fish/guestfish-commands.pod:49
16431 " glob copy-out /home/* .\n"
16434 " glob copy-out /home/* .\n"
16438 #: ../fish/guestfish-commands.pod:51
16443 #: ../fish/guestfish-commands.pod:53
16446 " display filename\n"
16451 #: ../fish/guestfish-commands.pod:55
16453 "Use C<display> (a graphical display program) to display an image file. It "
16454 "downloads the file, and runs C<display> on it."
16458 #: ../fish/guestfish-commands.pod:58
16460 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16461 "environment variable. For example to use the GNOME display program:"
16465 #: ../fish/guestfish-commands.pod:61
16468 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16473 #: ../fish/guestfish-commands.pod:63
16474 msgid "See also L<display(1)>."
16478 #: ../fish/guestfish-commands.pod:65
16483 #: ../fish/guestfish-commands.pod:67
16486 " echo [params ...]\n"
16489 " echo [параметри...]\n"
16493 #: ../fish/guestfish-commands.pod:69
16494 msgid "This echos the parameters to the terminal."
16498 #: ../fish/guestfish-commands.pod:71
16503 #: ../fish/guestfish-commands.pod:73
16508 #: ../fish/guestfish-commands.pod:75
16513 #: ../fish/guestfish-commands.pod:77
16519 " edit назва_файла\n"
16523 #: ../fish/guestfish-commands.pod:79
16525 "This is used to edit a file. It downloads the file, edits it locally using "
16526 "your editor, then uploads the result."
16530 #: ../fish/guestfish-commands.pod:82
16532 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16533 "or C<emacs> you will get those corresponding editors."
16537 #: ../fish/guestfish-commands.pod:86
16542 #: ../fish/guestfish-commands.pod:88
16545 " glob command args...\n"
16548 " glob команда параметри...\n"
16552 #: ../fish/guestfish-commands.pod:90
16554 "Expand wildcards in any paths in the args list, and run C<command> "
16555 "repeatedly on each matching path."
16559 #: ../fish/guestfish-commands.pod:93
16560 msgid "See L</WILDCARDS AND GLOBBING>."
16561 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16564 #: ../fish/guestfish-commands.pod:95
16569 #: ../fish/guestfish-commands.pod:97
16572 " hexedit <filename|device>\n"
16573 " hexedit <filename|device> <max>\n"
16574 " hexedit <filename|device> <start> <max>\n"
16579 #: ../fish/guestfish-commands.pod:101
16581 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16586 #: ../fish/guestfish-commands.pod:104
16588 "This command works by downloading potentially the whole file or device, "
16589 "editing it locally, then uploading it. If the file or device is large, you "
16590 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16591 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
16592 "usual modifiers allowed such as C<1M> (1 megabyte)."
16596 #: ../fish/guestfish-commands.pod:111
16597 msgid "For example to edit the first few sectors of a disk you might do:"
16601 #: ../fish/guestfish-commands.pod:114
16604 " hexedit /dev/sda 1M\n"
16607 " hexedit /dev/sda 1M\n"
16611 #: ../fish/guestfish-commands.pod:116
16613 "which would allow you to edit anywhere within the first megabyte of the disk."
16617 #: ../fish/guestfish-commands.pod:119
16618 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16622 #: ../fish/guestfish-commands.pod:121
16625 " hexedit /dev/sda1 0x400 0x400\n"
16628 " hexedit /dev/sda1 0x400 0x400\n"
16632 #: ../fish/guestfish-commands.pod:123
16633 msgid "(assuming the superblock is in the standard location)."
16637 #: ../fish/guestfish-commands.pod:125
16639 "This command requires the external L<hexedit(1)> program. You can specify "
16640 "another program to use by setting the C<HEXEDITOR> environment variable."
16644 #: ../fish/guestfish-commands.pod:129
16645 msgid "See also L</hexdump>."
16646 msgstr "Див. також L</hexdump>."
16649 #: ../fish/guestfish-commands.pod:131
16654 #: ../fish/guestfish-commands.pod:133
16662 #: ../fish/guestfish-commands.pod:135
16664 "Change the local directory, ie. the current directory of guestfish itself."
16668 #: ../fish/guestfish-commands.pod:138
16669 msgid "Note that C<!cd> won't do what you might expect."
16673 #: ../fish/guestfish-commands.pod:140
16678 #: ../fish/guestfish-commands.pod:142
16683 #: ../fish/guestfish-commands.pod:144
16693 #: ../fish/guestfish-commands.pod:146
16694 msgid "Opens the manual page for guestfish."
16698 #: ../fish/guestfish-commands.pod:148
16703 #: ../fish/guestfish-commands.pod:150
16708 #: ../fish/guestfish-commands.pod:152
16716 #: ../fish/guestfish-commands.pod:154
16724 #: ../fish/guestfish-commands.pod:156
16725 msgid "This is used to view a file."
16729 #: ../fish/guestfish-commands.pod:158
16731 "The default viewer is C<$PAGER>. However if you use the alternate command "
16732 "C<less> you will get the C<less> command specifically."
16736 #: ../fish/guestfish-commands.pod:161
16741 #: ../fish/guestfish-commands.pod:163
16749 #: ../fish/guestfish-commands.pod:165
16751 "Close and reopen the libguestfs handle. It is not necessary to use this "
16752 "normally, because the handle is closed properly when guestfish exits. "
16753 "However this is occasionally useful for testing."
16757 #: ../fish/guestfish-commands.pod:169
16762 #: ../fish/guestfish-commands.pod:171
16765 " setenv VAR value\n"
16770 #: ../fish/guestfish-commands.pod:173
16771 msgid "Set the environment variable C<VAR> to the string C<value>."
16775 #: ../fish/guestfish-commands.pod:175
16777 "To print the value of an environment variable use a shell command such as:"
16781 #: ../fish/guestfish-commands.pod:178
16789 #: ../fish/guestfish-commands.pod:180
16794 #: ../fish/guestfish-commands.pod:182
16797 " sparse filename size\n"
16802 #: ../fish/guestfish-commands.pod:184
16804 "This creates an empty sparse file of the given size, and then adds so it can "
16805 "be further examined."
16809 #: ../fish/guestfish-commands.pod:187
16811 "In all respects it works the same as the L</alloc> command, except that the "
16812 "image file is allocated sparsely, which means that disk blocks are not "
16813 "assigned to the file until they are needed. Sparse disk files only use "
16814 "space when written to, but they are slower and there is a danger you could "
16815 "run out of real disk space during a write operation."
16819 #: ../fish/guestfish-commands.pod:197
16824 #: ../fish/guestfish-commands.pod:199
16834 #: ../fish/guestfish-commands.pod:201
16836 "This command returns a list of the optional groups known to the daemon, and "
16837 "indicates which ones are supported by this build of the libguestfs appliance."
16841 #: ../fish/guestfish-commands.pod:205
16842 msgid "See also L<guestfs(3)/AVAILABILITY>."
16846 #: ../fish/guestfish-commands.pod:207
16851 #: ../fish/guestfish-commands.pod:209
16854 " time command args...\n"
16859 #: ../fish/guestfish-commands.pod:211
16861 "Run the command as usual, but print the elapsed time afterwards. This can "
16862 "be useful for benchmarking operations."
16866 #: ../fish/guestfish-commands.pod:214
16871 #: ../fish/guestfish-commands.pod:216
16879 #: ../fish/guestfish-commands.pod:218
16880 msgid "Remove C<VAR> from the environment."
16884 #: ../fish/guestfish.pod:5
16885 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16889 #: ../fish/guestfish.pod:9
16892 " guestfish [--options] [commands]\n"
16897 #: ../fish/guestfish.pod:11
16905 #: ../fish/guestfish.pod:13
16908 " guestfish [--ro|--rw] -a disk.img\n"
16913 #: ../fish/guestfish.pod:15
16916 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16921 #: ../fish/guestfish.pod:17
16924 " guestfish -d libvirt-domain\n"
16929 #: ../fish/guestfish.pod:19
16932 " guestfish [--ro|--rw] -a disk.img -i\n"
16937 #: ../fish/guestfish.pod:21
16940 " guestfish -d libvirt-domain -i\n"
16945 #: ../fish/guestfish.pod:25
16947 "Using guestfish in read/write mode on live virtual machines can be "
16948 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
16949 "option to use guestfish safely if the disk image or virtual machine might be "
16954 #: ../fish/guestfish.pod:32
16956 "Guestfish is a shell and command-line tool for examining and modifying "
16957 "virtual machine filesystems. It uses libguestfs and exposes all of the "
16958 "functionality of the guestfs API, see L<guestfs(3)>."
16962 #: ../fish/guestfish.pod:36
16964 "Guestfish gives you structured access to the libguestfs API, from shell "
16965 "scripts or the command line or interactively. If you want to rescue a "
16966 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16971 #: ../fish/guestfish.pod:43
16972 msgid "As an interactive shell"
16976 #: ../fish/guestfish.pod:45
16984 #: ../fish/guestfish.pod:47
16987 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16988 " editing virtual machine filesystems.\n"
16993 #: ../fish/guestfish.pod:50
16996 " Type: 'help' for a list of commands\n"
16997 " 'man' to read the manual\n"
16998 " 'quit' to quit the shell\n"
17003 #: ../fish/guestfish.pod:54
17006 " ><fs> add-ro disk.img\n"
17008 " ><fs> list-filesystems\n"
17009 " /dev/sda1: ext4\n"
17010 " /dev/vg_guest/lv_root: ext4\n"
17011 " /dev/vg_guest/lv_swap: swap\n"
17012 " ><fs> mount /dev/vg_guest/lv_root /\n"
17013 " ><fs> cat /etc/fstab\n"
17015 " # Created by anaconda\n"
17022 #: ../fish/guestfish.pod:67
17023 msgid "From shell scripts"
17027 #: ../fish/guestfish.pod:69
17028 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17032 #: ../fish/guestfish.pod:71
17035 " guestfish <<_EOF_\n"
17038 " mount /dev/vg_guest/lv_root /\n"
17039 " write /etc/motd \"Welcome, new users\"\n"
17045 #: ../fish/guestfish.pod:78
17046 msgid "List the LVM logical volumes in a disk image:"
17050 #: ../fish/guestfish.pod:80
17053 " guestfish -a disk.img --ro <<_EOF_\n"
17061 #: ../fish/guestfish.pod:85
17062 msgid "List all the filesystems in a disk image:"
17066 #: ../fish/guestfish.pod:87
17069 " guestfish -a disk.img --ro <<_EOF_\n"
17071 " list-filesystems\n"
17077 #: ../fish/guestfish.pod:92
17078 msgid "On one command line"
17082 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17083 msgid "Update C</etc/resolv.conf> in a guest:"
17087 #: ../fish/guestfish.pod:96
17091 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17092 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17097 #: ../fish/guestfish.pod:100
17098 msgid "Edit C</boot/grub/grub.conf> interactively:"
17102 #: ../fish/guestfish.pod:102
17105 " guestfish --rw --add disk.img \\\n"
17106 " --mount /dev/vg_guest/lv_root \\\n"
17107 " --mount /dev/sda1:/boot \\\n"
17108 " edit /boot/grub/grub.conf\n"
17113 #: ../fish/guestfish.pod:107
17114 msgid "Mount disks automatically"
17118 #: ../fish/guestfish.pod:109
17120 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17124 #: ../fish/guestfish.pod:112
17127 " guestfish --ro -a disk.img -i cat /etc/group\n"
17132 #: ../fish/guestfish.pod:114
17135 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17140 #: ../fish/guestfish.pod:116
17141 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17145 #: ../fish/guestfish.pod:118
17148 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17153 #: ../fish/guestfish.pod:120
17154 msgid "As a script interpreter"
17158 #: ../fish/guestfish.pod:122
17159 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17163 #: ../fish/guestfish.pod:124
17166 " #!/usr/bin/guestfish -f\n"
17167 " sparse test1.img 100M\n"
17169 " part-disk /dev/sda mbr\n"
17170 " mkfs ext2 /dev/sda1\n"
17175 #: ../fish/guestfish.pod:130
17176 msgid "Start with a prepared disk"
17180 #: ../fish/guestfish.pod:132
17182 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17183 "single ext2-formatted partition:"
17187 #: ../fish/guestfish.pod:135
17190 " guestfish -N fs\n"
17195 #: ../fish/guestfish.pod:137
17196 msgid "To list what is available do:"
17200 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17203 " guestfish -N help | less\n"
17208 #: ../fish/guestfish.pod:141
17209 msgid "Remote control"
17210 msgstr "Дистанційне керування"
17213 #: ../fish/guestfish.pod:143
17216 " eval \"`guestfish --listen`\"\n"
17217 " guestfish --remote add-ro disk.img\n"
17218 " guestfish --remote run\n"
17219 " guestfish --remote lvs\n"
17222 " eval \"`guestfish --listen`\"\n"
17223 " guestfish --remote add-ro disk.img\n"
17224 " guestfish --remote run\n"
17225 " guestfish --remote lvs\n"
17229 #: ../fish/guestfish.pod:154
17230 msgid "Displays general help on options."
17234 #: ../fish/guestfish.pod:158
17235 msgid "B<--cmd-help>"
17236 msgstr "B<--cmd-help>"
17239 #: ../fish/guestfish.pod:160
17240 msgid "Lists all available guestfish commands."
17244 #: ../fish/guestfish.pod:162
17246 msgstr "B<-h команда>"
17249 #: ../fish/guestfish.pod:164
17250 msgid "B<--cmd-help cmd>"
17251 msgstr "B<--cmd-help команда>"
17254 #: ../fish/guestfish.pod:166
17255 msgid "Displays detailed help on a single command C<cmd>."
17259 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17260 msgid "B<-a image>"
17261 msgstr "B<-a образ>"
17264 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17265 msgid "B<--add image>"
17266 msgstr "B<--add образ>"
17269 #: ../fish/guestfish.pod:172
17270 msgid "Add a block device or virtual machine image to the shell."
17274 #: ../fish/guestfish.pod:177
17276 "Using this flag is mostly equivalent to using the C<add> command, with "
17277 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17278 "the I<--format=...> flag was given."
17282 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17284 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17285 "URI to use. The default is to use the default libvirt connection."
17289 #: ../fish/guestfish.pod:189
17294 #: ../fish/guestfish.pod:191
17296 "If using the I<--listen> option and a csh-like shell, use this option. See "
17297 "section L</REMOTE CONTROL AND CSH> below."
17301 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17302 msgid "B<-d libvirt-domain>"
17303 msgstr "B<-d домен-libvirt>"
17306 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17307 msgid "B<--domain libvirt-domain>"
17308 msgstr "B<--domain домен-libvirt>"
17311 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17313 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17314 "used, then any libvirt domain can be used. However in write mode, only "
17315 "libvirt domains which are shut down can be named here."
17319 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17320 msgid "Domain UUIDs can be used instead of names."
17324 #: ../fish/guestfish.pod:204
17326 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17327 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17328 "if the I<--format:...> flag was given."
17332 #: ../fish/guestfish.pod:208
17337 #: ../fish/guestfish.pod:210
17338 msgid "B<--no-dest-paths>"
17339 msgstr "B<--no-dest-paths>"
17342 #: ../fish/guestfish.pod:212
17344 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17345 "to hit the tab key to complete paths on the guest filesystem, but this "
17346 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17347 "allow this feature to be disabled."
17351 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17353 "When prompting for keys and passphrases, guestfish normally turns echoing "
17354 "off so you cannot see what you are typing. If you are not worried about "
17355 "Tempest attacks and there is no one else in the room you can specify this "
17356 "flag to see what you are typing."
17360 #: ../fish/guestfish.pod:224
17362 msgstr "B<-f файл>"
17365 #: ../fish/guestfish.pod:226
17366 msgid "B<--file file>"
17367 msgstr "B<--file файл>"
17370 #: ../fish/guestfish.pod:228
17371 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17375 #: ../fish/guestfish.pod:231
17378 " #!/usr/bin/guestfish -f\n"
17381 " #!/usr/bin/guestfish -f\n"
17385 #: ../fish/guestfish.pod:244
17388 " guestfish --format=raw -a disk.img\n"
17391 " guestfish --format=raw -a disk.img\n"
17395 #: ../fish/guestfish.pod:248
17398 " guestfish --format=raw -a disk.img --format -a another.img\n"
17401 " guestfish --format=raw -a disk.img --format -a another.img\n"
17405 #: ../fish/guestfish.pod:253
17407 "If you have untrusted raw-format guest disk images, you should use this "
17408 "option to specify the disk format. This avoids a possible security problem "
17409 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17413 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17414 msgid "B<--inspector>"
17415 msgstr "B<--inspector>"
17418 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17420 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17421 "system and mount filesystems as they would be mounted on the real virtual "
17426 #: ../fish/guestfish.pod:266
17427 msgid "Typical usage is either:"
17431 #: ../fish/guestfish.pod:268
17434 " guestfish -d myguest -i\n"
17437 " guestfish -d myguest -i\n"
17441 #: ../fish/guestfish.pod:270
17442 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17446 #: ../fish/guestfish.pod:272
17449 " guestfish --ro -d myguest -i\n"
17452 " guestfish --ro -d myguest -i\n"
17456 #: ../fish/guestfish.pod:274
17457 msgid "(for active domains, readonly), or specify the block device directly:"
17461 #: ../fish/guestfish.pod:276
17464 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17467 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17471 #: ../fish/guestfish.pod:278
17473 "Note that the command line syntax changed slightly over older versions of "
17474 "guestfish. You can still use the old syntax:"
17478 #: ../fish/guestfish.pod:281
17481 " guestfish [--ro] -i disk.img\n"
17484 " guestfish [--ro] -i disk.img\n"
17488 #: ../fish/guestfish.pod:283
17491 " guestfish [--ro] -i libvirt-domain\n"
17496 #: ../fish/guestfish.pod:285
17498 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17499 "then using other commands to mount the filesystems that were found."
17503 #: ../fish/guestfish.pod:294
17504 msgid "B<--listen>"
17505 msgstr "B<--listen>"
17508 #: ../fish/guestfish.pod:296
17510 "Fork into the background and listen for remote commands. See section L</"
17511 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17515 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17520 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17522 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17523 "ATTACHING TO RUNNING DAEMONS>)."
17527 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17528 msgid "B<-m dev[:mountpoint[:options]]>"
17532 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17533 msgid "B<--mount dev[:mountpoint[:options]]>"
17537 #: ../fish/guestfish.pod:308
17538 msgid "Mount the named partition or logical volume on the given mountpoint."
17542 #: ../fish/guestfish.pod:310
17543 msgid "If the mountpoint is omitted, it defaults to C</>."
17547 #: ../fish/guestfish.pod:312
17548 msgid "You have to mount something on C</> before most commands will work."
17552 #: ../fish/guestfish.pod:314
17554 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17559 #: ../fish/guestfish.pod:317
17561 "If you don't know what filesystems a disk image contains, you can either run "
17562 "guestfish without this option, then list the partitions, filesystems and LVs "
17563 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17564 "commands), or you can use the L<virt-filesystems(1)> program."
17568 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17570 "The third (and rarely used) part of the mount parameter is the list of mount "
17571 "options used to mount the underlying filesystem. If this is not given, then "
17572 "the mount options are either the empty string or C<ro> (the latter if the "
17573 "I<--ro> flag is used). By specifying the mount options, you override this "
17574 "default choice. Probably the only time you would use this is to enable ACLs "
17575 "and/or extended attributes if the filesystem can support them:"
17579 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17582 " -m /dev/sda1:/:acl,user_xattr\n"
17587 #: ../fish/guestfish.pod:333
17588 msgid "Using this flag is equivalent to using the C<mount-options> command."
17592 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17593 #: ../resize/virt-resize.pod:358
17598 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17599 msgid "B<--no-sync>"
17600 msgstr "B<--no-sync>"
17603 #: ../fish/guestfish.pod:339
17605 "Disable autosync. This is enabled by default. See the discussion of "
17606 "autosync in the L<guestfs(3)> manpage."
17610 #: ../fish/guestfish.pod:342
17615 #: ../fish/guestfish.pod:344
17616 msgid "B<--new type>"
17617 msgstr "B<--new тип>"
17620 #: ../fish/guestfish.pod:346
17622 msgstr "B<-N help>"
17625 #: ../fish/guestfish.pod:348
17627 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
17628 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17629 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
17634 #: ../fish/guestfish.pod:353
17635 msgid "B<--progress-bars>"
17636 msgstr "B<--progress-bars>"
17639 #: ../fish/guestfish.pod:355
17640 msgid "Enable progress bars, even when guestfish is used non-interactively."
17644 #: ../fish/guestfish.pod:357
17646 "Progress bars are enabled by default when guestfish is used as an "
17647 "interactive shell."
17651 #: ../fish/guestfish.pod:360
17652 msgid "B<--no-progress-bars>"
17653 msgstr "B<--no-progress-bars>"
17656 #: ../fish/guestfish.pod:362
17657 msgid "Disable progress bars."
17661 #: ../fish/guestfish.pod:364
17662 msgid "B<--remote[=pid]>"
17663 msgstr "B<--remote[=pid]>"
17666 #: ../fish/guestfish.pod:366
17668 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
17669 "CONTROL GUESTFISH OVER A SOCKET> below."
17673 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17674 #: ../rescue/virt-rescue.pod:161
17679 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17680 #: ../rescue/virt-rescue.pod:163
17685 #: ../fish/guestfish.pod:373
17687 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17688 "mounts are done read-only."
17692 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17694 "The option must always be used if the disk image or virtual machine might be "
17695 "running, and is generally recommended in cases where you don't need write "
17696 "access to the disk."
17700 #: ../fish/guestfish.pod:380
17702 "Note that prepared disk images created with I<-N> are not affected by this "
17703 "option. Also commands like C<add> are not affected - you have to specify "
17704 "the C<readonly:true> option explicitly if you need it."
17708 #: ../fish/guestfish.pod:384
17709 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17713 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17714 #: ../rescue/virt-rescue.pod:173
17715 msgid "B<--selinux>"
17716 msgstr "B<--selinux>"
17719 #: ../fish/guestfish.pod:388
17720 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
17724 #: ../fish/guestfish.pod:394
17726 "Enable very verbose messages. This is particularly useful if you find a bug."
17730 #: ../fish/guestfish.pod:401
17731 msgid "Display the guestfish / libguestfs version number and exit."
17735 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17736 #: ../rescue/virt-rescue.pod:190
17741 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17742 #: ../rescue/virt-rescue.pod:192
17747 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17749 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17750 "mounts are done read-write."
17754 #: ../fish/guestfish.pod:410
17755 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17759 #: ../fish/guestfish.pod:414
17760 msgid "Echo each command before executing it."
17764 #: ../fish/guestfish.pod:418
17765 msgid "COMMANDS ON COMMAND LINE"
17769 #: ../fish/guestfish.pod:420
17771 "Any additional (non-option) arguments are treated as commands to execute."
17775 #: ../fish/guestfish.pod:423
17777 "Commands to execute should be separated by a colon (C<:>), where the colon "
17778 "is a separate parameter. Thus:"
17782 #: ../fish/guestfish.pod:426
17785 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17790 #: ../fish/guestfish.pod:428
17792 "If there are no additional arguments, then we enter a shell, either an "
17793 "interactive shell with a prompt (if the input is a terminal) or a non-"
17794 "interactive shell."
17798 #: ../fish/guestfish.pod:432
17800 "In either command line mode or non-interactive shell, the first command that "
17801 "gives an error causes the whole shell to exit. In interactive mode (with a "
17802 "prompt) if a command fails, you can continue to enter commands."
17806 #: ../fish/guestfish.pod:437
17807 msgid "USING launch (OR run)"
17811 #: ../fish/guestfish.pod:439
17813 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17814 "then launch it, then mount any disks you need, and finally issue actions/"
17815 "commands. So the general order of the day is:"
17819 #: ../fish/guestfish.pod:447
17820 msgid "add or -a/--add"
17824 #: ../fish/guestfish.pod:451
17825 msgid "launch (aka run)"
17829 #: ../fish/guestfish.pod:455
17830 msgid "mount or -m/--mount"
17834 #: ../fish/guestfish.pod:459
17835 msgid "any other commands"
17839 #: ../fish/guestfish.pod:463
17841 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
17842 "guest before mounting or performing any other commands."
17846 #: ../fish/guestfish.pod:466
17848 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17849 "I<--new> options were given then C<run> is done automatically, simply "
17850 "because guestfish can't perform the action you asked for without doing this."
17854 #: ../fish/guestfish.pod:471
17855 msgid "OPENING DISKS FOR READ AND WRITE"
17859 #: ../fish/guestfish.pod:473
17861 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17862 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17863 "I<-i> and I<-m> open disk images read-only or for writing."
17867 #: ../fish/guestfish.pod:478
17869 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17870 "opening disk images supplied on the command line for write. To open a disk "
17871 "image read-only you have to do I<-a image --ro>."
17875 #: ../fish/guestfish.pod:482
17877 "This matters: If you accidentally open a live VM disk image writable then "
17878 "you will cause irreversible disk corruption."
17882 #: ../fish/guestfish.pod:485
17884 "In a future libguestfs we intend to change the default the other way. Disk "
17885 "images will be opened read-only. You will have to either specify "
17886 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17887 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17888 "access for disk images specified by those other command line options."
17892 #: ../fish/guestfish.pod:492
17894 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17895 "which does nothing (it is already the default). However it is highly "
17896 "recommended that you use this option to indicate that you need write access, "
17897 "and prepare your scripts for the day when this option will be required for "
17902 #: ../fish/guestfish.pod:498
17904 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17905 "other libguestfs program apart from guestfish and guestmount."
17909 #: ../fish/guestfish.pod:501
17914 #: ../fish/guestfish.pod:503
17916 "You can quote ordinary parameters using either single or double quotes. For "
17921 #: ../fish/guestfish.pod:506
17924 " add \"file with a space.img\"\n"
17929 #: ../fish/guestfish.pod:508
17932 " rm '/file name'\n"
17937 #: ../fish/guestfish.pod:510
17945 #: ../fish/guestfish.pod:512
17947 "A few commands require a list of strings to be passed. For these, use a "
17948 "whitespace-separated list, enclosed in quotes. Strings containing "
17949 "whitespace to be passed through must be enclosed in single quotes. A "
17950 "literal single quote must be escaped with a backslash."
17954 #: ../fish/guestfish.pod:517
17957 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17958 " command \"/bin/echo 'foo bar'\"\n"
17959 " command \"/bin/echo \\'foo\\'\"\n"
17964 #: ../fish/guestfish.pod:521
17965 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17969 #: ../fish/guestfish.pod:523
17971 "In double-quoted arguments (only) use backslash to insert special characters:"
17975 #: ../fish/guestfish.pod:528
17980 #: ../fish/guestfish.pod:530
17981 msgid "Alert (bell) character."
17985 #: ../fish/guestfish.pod:532
17990 #: ../fish/guestfish.pod:534
17991 msgid "Backspace character."
17995 #: ../fish/guestfish.pod:536
18000 #: ../fish/guestfish.pod:538
18001 msgid "Form feed character."
18005 #: ../fish/guestfish.pod:540
18010 #: ../fish/guestfish.pod:542
18011 msgid "Newline character."
18015 #: ../fish/guestfish.pod:544
18020 #: ../fish/guestfish.pod:546
18021 msgid "Carriage return character."
18025 #: ../fish/guestfish.pod:548
18030 #: ../fish/guestfish.pod:550
18031 msgid "Horizontal tab character."
18035 #: ../fish/guestfish.pod:552
18040 #: ../fish/guestfish.pod:554
18041 msgid "Vertical tab character."
18045 #: ../fish/guestfish.pod:556
18050 #: ../fish/guestfish.pod:558
18051 msgid "A literal double quote character."
18055 #: ../fish/guestfish.pod:560
18060 #: ../fish/guestfish.pod:562
18062 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18067 #: ../fish/guestfish.pod:565
18072 #: ../fish/guestfish.pod:567
18074 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18078 #: ../fish/guestfish.pod:570
18080 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18085 #: ../fish/guestfish.pod:573
18090 #: ../fish/guestfish.pod:575
18091 msgid "A literal backslash character."
18095 #: ../fish/guestfish.pod:579
18096 msgid "OPTIONAL ARGUMENTS"
18100 #: ../fish/guestfish.pod:581
18102 "Some commands take optional arguments. These arguments appear in this "
18103 "documentation as C<[argname:..]>. You can use them as in these examples:"
18107 #: ../fish/guestfish.pod:585
18110 " add-drive-opts filename\n"
18115 #: ../fish/guestfish.pod:587
18118 " add-drive-opts filename readonly:true\n"
18123 #: ../fish/guestfish.pod:589
18126 " add-drive-opts filename format:qcow2 readonly:false\n"
18131 #: ../fish/guestfish.pod:591
18133 "Each optional argument can appear at most once. All optional arguments must "
18134 "appear after the required ones."
18138 #: ../fish/guestfish.pod:594
18143 #: ../fish/guestfish.pod:596
18145 "This section applies to all commands which can take integers as parameters."
18149 #: ../fish/guestfish.pod:599
18150 msgid "SIZE SUFFIX"
18154 #: ../fish/guestfish.pod:601
18156 "When the command takes a parameter measured in bytes, you can use one of the "
18157 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18161 #: ../fish/guestfish.pod:607
18162 msgid "B<k> or B<K> or B<KiB>"
18163 msgstr "B<k>, B<K> або B<KiB>"
18166 #: ../fish/guestfish.pod:609
18167 msgid "The size in kilobytes (multiplied by 1024)."
18171 #: ../fish/guestfish.pod:611
18176 #: ../fish/guestfish.pod:613
18177 msgid "The size in SI 1000 byte units."
18181 #: ../fish/guestfish.pod:615
18182 msgid "B<M> or B<MiB>"
18183 msgstr "B<M> або B<MiB>"
18186 #: ../fish/guestfish.pod:617
18187 msgid "The size in megabytes (multiplied by 1048576)."
18191 #: ../fish/guestfish.pod:619
18196 #: ../fish/guestfish.pod:621
18197 msgid "The size in SI 1000000 byte units."
18201 #: ../fish/guestfish.pod:623
18202 msgid "B<G> or B<GiB>"
18203 msgstr "B<G> або B<GiB>"
18206 #: ../fish/guestfish.pod:625
18207 msgid "The size in gigabytes (multiplied by 2**30)."
18208 msgstr "Розмір у гігабайтах (з множником 2**30)."
18211 #: ../fish/guestfish.pod:627
18216 #: ../fish/guestfish.pod:629
18217 msgid "The size in SI 10**9 byte units."
18218 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18221 #: ../fish/guestfish.pod:631
18222 msgid "B<T> or B<TiB>"
18223 msgstr "B<T> або B<TiB>"
18226 #: ../fish/guestfish.pod:633
18227 msgid "The size in terabytes (multiplied by 2**40)."
18228 msgstr "Розмір у терабайтах (з множником 2**40)."
18231 #: ../fish/guestfish.pod:635
18236 #: ../fish/guestfish.pod:637
18237 msgid "The size in SI 10**12 byte units."
18241 #: ../fish/guestfish.pod:639
18242 msgid "B<P> or B<PiB>"
18243 msgstr "B<P> або B<PiB>"
18246 #: ../fish/guestfish.pod:641
18247 msgid "The size in petabytes (multiplied by 2**50)."
18251 #: ../fish/guestfish.pod:643
18256 #: ../fish/guestfish.pod:645
18257 msgid "The size in SI 10**15 byte units."
18261 #: ../fish/guestfish.pod:647
18262 msgid "B<E> or B<EiB>"
18263 msgstr "B<E> або B<EiB>"
18266 #: ../fish/guestfish.pod:649
18267 msgid "The size in exabytes (multiplied by 2**60)."
18271 #: ../fish/guestfish.pod:651
18276 #: ../fish/guestfish.pod:653
18277 msgid "The size in SI 10**18 byte units."
18281 #: ../fish/guestfish.pod:655
18282 msgid "B<Z> or B<ZiB>"
18283 msgstr "B<Z> або B<ZiB>"
18286 #: ../fish/guestfish.pod:657
18287 msgid "The size in zettabytes (multiplied by 2**70)."
18291 #: ../fish/guestfish.pod:659
18296 #: ../fish/guestfish.pod:661
18297 msgid "The size in SI 10**21 byte units."
18301 #: ../fish/guestfish.pod:663
18302 msgid "B<Y> or B<YiB>"
18303 msgstr "B<Y> або B<YiB>"
18306 #: ../fish/guestfish.pod:665
18307 msgid "The size in yottabytes (multiplied by 2**80)."
18311 #: ../fish/guestfish.pod:667
18316 #: ../fish/guestfish.pod:669
18317 msgid "The size in SI 10**24 byte units."
18321 #: ../fish/guestfish.pod:675
18324 " truncate-size /file 1G\n"
18329 #: ../fish/guestfish.pod:677
18330 msgid "would truncate the file to 1 gigabyte."
18334 #: ../fish/guestfish.pod:679
18336 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18337 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18338 "suffix will probably not do what you expect."
18342 #: ../fish/guestfish.pod:683
18343 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18347 #: ../fish/guestfish.pod:685
18349 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18350 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18354 #: ../fish/guestfish.pod:688
18357 " 1234 decimal number 1234\n"
18358 " 02322 octal number, equivalent to decimal 1234\n"
18359 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18364 #: ../fish/guestfish.pod:692
18366 "When using the C<chmod> command, you almost always want to specify an octal "
18367 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18368 "L<chmod(1)> program):"
18372 #: ../fish/guestfish.pod:696
18375 " chmod 0777 /public # OK\n"
18376 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18381 #: ../fish/guestfish.pod:699
18383 "Commands that return numbers usually print them in decimal, but some "
18384 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18385 "octal, preceeded by C<0>)."
18389 #: ../fish/guestfish.pod:703
18390 msgid "WILDCARDS AND GLOBBING"
18394 #: ../fish/guestfish.pod:705
18396 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18397 "(globbing) by default. So for example the following will not do what you "
18402 #: ../fish/guestfish.pod:709
18410 #: ../fish/guestfish.pod:711
18412 "Assuming you don't have a directory called literally C</home/*> then the "
18413 "above command will return an error."
18417 #: ../fish/guestfish.pod:714
18418 msgid "To perform wildcard expansion, use the C<glob> command."
18422 #: ../fish/guestfish.pod:716
18425 " glob rm-rf /home/*\n"
18430 #: ../fish/guestfish.pod:718
18432 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18433 "many times), equivalent to:"
18437 #: ../fish/guestfish.pod:721
18440 " rm-rf /home/jim\n"
18441 " rm-rf /home/joe\n"
18442 " rm-rf /home/mary\n"
18447 #: ../fish/guestfish.pod:725
18448 msgid "C<glob> only works on simple guest paths and not on device names."
18452 #: ../fish/guestfish.pod:727
18454 "If you have several parameters, each containing a wildcard, then glob will "
18455 "perform a Cartesian product."
18459 #: ../fish/guestfish.pod:730
18464 #: ../fish/guestfish.pod:732
18466 "Any line which starts with a I<#> character is treated as a comment and "
18467 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18468 "a command. For example:"
18472 #: ../fish/guestfish.pod:736
18475 " # this is a comment\n"
18476 " # this is a comment\n"
18477 " foo # NOT a comment\n"
18482 #: ../fish/guestfish.pod:740
18483 msgid "Blank lines are also ignored."
18487 #: ../fish/guestfish.pod:742
18488 msgid "RUNNING COMMANDS LOCALLY"
18492 #: ../fish/guestfish.pod:744
18494 "Any line which starts with a I<!> character is treated as a command sent to "
18495 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18499 #: ../fish/guestfish.pod:748
18503 " tgz-out /remote local/remote-data.tar.gz\n"
18508 #: ../fish/guestfish.pod:751
18510 "will create a directory C<local> on the host, and then export the contents "
18511 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18512 "(See C<tgz-out>)."
18516 #: ../fish/guestfish.pod:755
18518 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18519 "effect, due to the way that subprocesses work in Unix."
18523 #: ../fish/guestfish.pod:758
18524 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18528 #: ../fish/guestfish.pod:760
18530 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18531 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18532 "and executed as guestfish commands."
18536 #: ../fish/guestfish.pod:764
18538 "Thus you can use shell script to construct arbitrary guestfish commands "
18539 "which are then parsed by guestfish."
18543 #: ../fish/guestfish.pod:767
18545 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18546 "through C</foo.100>) using guestfish commands alone. However this is simple "
18547 "if we use a shell script to create the guestfish commands for us:"
18551 #: ../fish/guestfish.pod:772
18554 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18559 #: ../fish/guestfish.pod:774
18560 msgid "or with names like C</foo.001>:"
18564 #: ../fish/guestfish.pod:776
18567 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18572 #: ../fish/guestfish.pod:778
18574 "When using guestfish interactively it can be helpful to just run the shell "
18575 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18576 "ordinary I<!> local command), see what guestfish commands it would run, and "
18577 "when you are happy with those prepend the C<E<lt>> character to run the "
18578 "guestfish commands for real."
18582 #: ../fish/guestfish.pod:784
18587 #: ../fish/guestfish.pod:786
18589 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18590 "command (a guestfish command) to the second command (any host command). For "
18595 #: ../fish/guestfish.pod:790
18598 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18603 #: ../fish/guestfish.pod:792
18605 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18606 "program). The above command would list all accounts in the guest filesystem "
18607 "which have UID 0, ie. root accounts including backdoors. Other examples:"
18611 #: ../fish/guestfish.pod:797
18614 " hexdump /bin/ls | head\n"
18615 " list-devices | tail -1\n"
18616 " tgz-out / - | tar ztf -\n"
18621 #: ../fish/guestfish.pod:801
18623 "The space before the pipe symbol is required, any space after the pipe "
18624 "symbol is optional. Everything after the pipe symbol is just passed "
18625 "straight to the host shell, so it can contain redirections, globs and "
18626 "anything else that makes sense on the host side."
18630 #: ../fish/guestfish.pod:806
18632 "To use a literal argument which begins with a pipe symbol, you have to quote "
18637 #: ../fish/guestfish.pod:809
18645 #: ../fish/guestfish.pod:811
18646 msgid "HOME DIRECTORIES"
18650 #: ../fish/guestfish.pod:813
18652 "If a parameter starts with the character C<~> then the tilde may be expanded "
18653 "as a home directory path (either C<~> for the current user's home directory, "
18654 "or C<~user> for another user)."
18658 #: ../fish/guestfish.pod:817
18660 "Note that home directory expansion happens for users known I<on the host>, "
18661 "not in the guest filesystem."
18665 #: ../fish/guestfish.pod:820
18667 "To use a literal argument which begins with a tilde, you have to quote it, "
18672 #: ../fish/guestfish.pod:823
18680 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18681 msgid "ENCRYPTED DISKS"
18682 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18685 #: ../fish/guestfish.pod:827
18687 "Libguestfs has some support for Linux guests encrypted according to the "
18688 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18689 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
18690 "LUKS is supported."
18694 #: ../fish/guestfish.pod:832
18695 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18699 #: ../fish/guestfish.pod:834
18702 " ><fs> vfs-type /dev/sda2\n"
18708 #: ../fish/guestfish.pod:837
18710 "Then open those devices using L</luks-open>. This creates a device-mapper "
18711 "device called C</dev/mapper/luksdev>."
18715 #: ../fish/guestfish.pod:840
18718 " ><fs> luks-open /dev/sda2 luksdev\n"
18719 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18724 #: ../fish/guestfish.pod:843
18726 "Finally you have to tell LVM to scan for volume groups on the newly created "
18731 #: ../fish/guestfish.pod:846
18735 " vg-activate-all true\n"
18740 #: ../fish/guestfish.pod:849
18741 msgid "The logical volume(s) can now be mounted in the usual way."
18745 #: ../fish/guestfish.pod:851
18747 "Before closing a LUKS device you must unmount any logical volumes on it and "
18748 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18749 "one. Then you can close the mapper device:"
18753 #: ../fish/guestfish.pod:855
18756 " vg-activate false /dev/VG\n"
18757 " luks-close /dev/mapper/luksdev\n"
18762 #: ../fish/guestfish.pod:860
18764 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18765 "letters and paths (with some limitations). The following commands are "
18770 #: ../fish/guestfish.pod:864
18773 " file /WINDOWS/system32/config/system.LOG\n"
18778 #: ../fish/guestfish.pod:866
18781 " file win:\\windows\\system32\\config\\system.log\n"
18786 #: ../fish/guestfish.pod:868
18789 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18794 #: ../fish/guestfish.pod:870
18796 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18797 "where the drive is mounted, prepending that to the path, changing all "
18798 "backslash characters to forward slash, then resolving the result using L</"
18799 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
18800 "the parameter might be rewritten like this:"
18804 #: ../fish/guestfish.pod:876
18807 " win:e:\\foo\\bar => /e/FOO/bar\n"
18812 #: ../fish/guestfish.pod:878
18813 msgid "This only works in argument positions that expect a path."
18817 #: ../fish/guestfish.pod:880
18818 msgid "UPLOADING AND DOWNLOADING FILES"
18822 #: ../fish/guestfish.pod:882
18824 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18825 "others which upload from or download to a local file, you can use the "
18826 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
18830 #: ../fish/guestfish.pod:886
18838 #: ../fish/guestfish.pod:888
18840 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18844 #: ../fish/guestfish.pod:891
18847 " tar-out /etc - | tar tf -\n"
18852 #: ../fish/guestfish.pod:893
18854 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18855 "command (see L</PIPES>)."
18859 #: ../fish/guestfish.pod:896
18861 "When using C<-> to read from stdin, the input is read up to the end of "
18862 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
18863 "some arbitrary end marker:"
18867 #: ../fish/guestfish.pod:900
18870 " upload -<<END /foo\n"
18879 #: ../fish/guestfish.pod:906
18881 "Any string of characters can be used instead of C<END>. The end marker must "
18882 "appear on a line of its own, without any preceeding or following characters "
18883 "(not even spaces)."
18887 #: ../fish/guestfish.pod:910
18889 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18890 "upload local files (so-called \"FileIn\" parameters in the generator)."
18894 #: ../fish/guestfish.pod:913
18895 msgid "EXIT ON ERROR BEHAVIOUR"
18899 #: ../fish/guestfish.pod:915
18901 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18902 "taking commands from a human over a tty), and will exit on the first error "
18903 "in non-interactive mode (scripts, commands given on the command line)."
18907 #: ../fish/guestfish.pod:920
18909 "If you prefix a command with a I<-> character, then that command will not "
18910 "cause guestfish to exit, even if that (one) command returns an error."
18914 #: ../fish/guestfish.pod:924
18915 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18919 #: ../fish/guestfish.pod:926
18921 "Guestfish can be remote-controlled over a socket. This is useful "
18922 "particularly in shell scripts where you want to make several different "
18923 "changes to a filesystem, but you don't want the overhead of starting up a "
18924 "guestfish process each time."
18928 #: ../fish/guestfish.pod:931
18929 msgid "Start a guestfish server process using:"
18933 #: ../fish/guestfish.pod:933
18936 " eval \"`guestfish --listen`\"\n"
18941 #: ../fish/guestfish.pod:935
18942 msgid "and then send it commands by doing:"
18946 #: ../fish/guestfish.pod:937
18949 " guestfish --remote cmd [...]\n"
18954 #: ../fish/guestfish.pod:939
18955 msgid "To cause the server to exit, send it the exit command:"
18959 #: ../fish/guestfish.pod:943
18961 "Note that the server will normally exit if there is an error in a command. "
18962 "You can change this in the usual way. See section L</EXIT ON ERROR "
18967 #: ../fish/guestfish.pod:947
18968 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18972 #: ../fish/guestfish.pod:949
18974 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18975 "is how the I<--remote> option knows where to send the commands. You can "
18976 "have several guestfish listener processes running using:"
18980 #: ../fish/guestfish.pod:953
18983 " eval \"`guestfish --listen`\"\n"
18984 " pid1=$GUESTFISH_PID\n"
18985 " eval \"`guestfish --listen`\"\n"
18986 " pid2=$GUESTFISH_PID\n"
18988 " guestfish --remote=$pid1 cmd\n"
18989 " guestfish --remote=$pid2 cmd\n"
18994 #: ../fish/guestfish.pod:961
18995 msgid "REMOTE CONTROL AND CSH"
18999 #: ../fish/guestfish.pod:963
19001 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19006 #: ../fish/guestfish.pod:966
19009 " eval \"`guestfish --listen --csh`\"\n"
19014 #: ../fish/guestfish.pod:968
19015 msgid "REMOTE CONTROL DETAILS"
19019 #: ../fish/guestfish.pod:970
19021 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19022 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19023 "and C<$PID> is the process ID of the server."
19027 #: ../fish/guestfish.pod:974
19028 msgid "Guestfish client and server versions must match exactly."
19032 #: ../fish/guestfish.pod:976
19033 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19037 #: ../fish/guestfish.pod:978
19039 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19040 "context hangs, ie. don't do (note the backquotes):"
19044 #: ../fish/guestfish.pod:981
19047 #| " guestfish --ro -d myguest -i\n"
19050 " a=`guestfish --remote run`\n"
19053 " guestfish --ro -d myguest -i\n"
19057 #: ../fish/guestfish.pod:983
19059 "Since the C<run> command produces no output on stdout, this is not useful "
19060 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19065 #: ../fish/guestfish.pod:987
19066 msgid "PREPARED DISK IMAGES"
19070 #: ../fish/guestfish.pod:989
19072 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19073 "preformatted disk images that guestfish can make for you to save typing. "
19074 "This is particularly useful for testing purposes. This option is used "
19075 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19076 "can be mixed with I<-a>)."
19080 #: ../fish/guestfish.pod:995
19082 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19083 "the second and so on. Existing files in the current directory are "
19088 #: ../fish/guestfish.pod:999
19090 "The type briefly describes how the disk should be sized, partitioned, how "
19091 "filesystem(s) should be created, and how content should be added. "
19092 "Optionally the type can be followed by extra parameters, separated by C<:> "
19093 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19094 "allocated disk, containing a single partition, with the partition formatted "
19095 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19100 #: ../fish/guestfish.pod:1007
19101 msgid "To list the available types and any extra parameters they take, run:"
19105 #: ../fish/guestfish.pod:1011
19107 "Note that the prepared filesystem is not mounted. You would usually have to "
19108 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19112 #: ../fish/guestfish.pod:1015
19114 "If any I<-N> or I<--new> options are given, the guest is automatically "
19119 #: ../fish/guestfish.pod:1020
19120 msgid "Create a 100MB disk with an ext4-formatted partition:"
19124 #: ../fish/guestfish.pod:1022
19127 " guestfish -N fs:ext4\n"
19132 #: ../fish/guestfish.pod:1024
19133 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19137 #: ../fish/guestfish.pod:1026
19140 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19145 #: ../fish/guestfish.pod:1028
19146 msgid "Create a blank 200MB disk:"
19150 #: ../fish/guestfish.pod:1030
19153 " guestfish -N disk:200M\n"
19158 #: ../fish/guestfish.pod:1032
19159 msgid "PROGRESS BARS"
19163 #: ../fish/guestfish.pod:1034
19165 "Some (not all) long-running commands send progress notification messages as "
19166 "they are running. Guestfish turns these messages into progress bars."
19170 #: ../fish/guestfish.pod:1038
19172 "When a command that supports progress bars takes longer than two seconds to "
19173 "run, and if progress bars are enabled, then you will see one appearing below "
19178 #: ../fish/guestfish.pod:1042
19181 " ><fs> copy-size /large-file /another-file 2048M\n"
19182 " / 10% [#####-----------------------------------------] 00:30\n"
19187 #: ../fish/guestfish.pod:1045
19189 "The spinner on the left hand side moves round once for every progress "
19190 "notification received from the backend. This is a (reasonably) golden "
19191 "assurance that the command is \"doing something\" even if the progress bar "
19192 "is not moving, because the command is able to send the progress "
19193 "notifications. When the bar reaches 100% and the command finishes, the "
19194 "spinner disappears."
19198 #: ../fish/guestfish.pod:1052
19200 "Progress bars are enabled by default when guestfish is used interactively. "
19201 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19202 "and you can disable them completely using I<--no-progress-bars>."
19206 #: ../fish/guestfish.pod:1057
19207 msgid "GUESTFISH COMMANDS"
19211 #: ../fish/guestfish.pod:1059
19213 "The commands in this section are guestfish convenience commands, in other "
19214 "words, they are not part of the L<guestfs(3)> API."
19218 #: ../fish/guestfish.pod:1062
19223 #: ../fish/guestfish.pod:1064
19235 #: ../fish/guestfish.pod:1067
19236 msgid "Without any parameter, this provides general help."
19237 msgstr "Без параметра показує загальну довідкову інформацію."
19240 #: ../fish/guestfish.pod:1069
19241 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19245 #: ../fish/guestfish.pod:1071
19246 msgid "quit | exit"
19250 #: ../fish/guestfish.pod:1073
19251 msgid "This exits guestfish. You can also use C<^D> key."
19255 #: ../fish/guestfish.pod:1075
19256 msgid "@FISH_COMMANDS@"
19260 #: ../fish/guestfish.pod:1077
19265 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
19270 #: ../fish/guestfish.pod:1083
19272 "guestfish returns 0 if the commands completed without error, or 1 if there "
19277 #: ../fish/guestfish.pod:1090
19282 #: ../fish/guestfish.pod:1092
19284 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19289 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3078
19290 msgid "FEBOOTSTRAP_KERNEL"
19294 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3080
19295 msgid "FEBOOTSTRAP_MODULES"
19299 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3082
19301 "These two environment variables allow the kernel that libguestfs uses in the "
19302 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19303 "most recent host kernel is chosen. For more information about kernel "
19304 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19305 "available in febootstrap E<ge> 3.8."
19309 #: ../fish/guestfish.pod:1105
19310 msgid "GUESTFISH_DISPLAY_IMAGE"
19314 #: ../fish/guestfish.pod:1107
19316 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19317 "If not set, it uses L<display(1)>."
19321 #: ../fish/guestfish.pod:1110
19322 msgid "GUESTFISH_PID"
19326 #: ../fish/guestfish.pod:1112
19328 "Used with the I<--remote> option to specify the remote guestfish process to "
19329 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19333 #: ../fish/guestfish.pod:1116
19338 #: ../fish/guestfish.pod:1118
19340 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19341 "not specified, the external L<hexedit(1)> program is used."
19345 #: ../fish/guestfish.pod:1122
19350 #: ../fish/guestfish.pod:1124
19352 "If compiled with GNU readline support, various files in the home directory "
19353 "can be used. See L</FILES>."
19357 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3088
19358 msgid "LIBGUESTFS_APPEND"
19362 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3090
19363 msgid "Pass additional options to the guest kernel."
19367 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3092
19368 msgid "LIBGUESTFS_DEBUG"
19369 msgstr "LIBGUESTFS_DEBUG"
19372 #: ../fish/guestfish.pod:1133
19374 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19375 "effect as using the B<-v> option."
19379 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3097
19380 msgid "LIBGUESTFS_MEMSIZE"
19381 msgstr "LIBGUESTFS_MEMSIZE"
19384 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3099
19386 "Set the memory allocated to the qemu process, in megabytes. For example:"
19390 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3102
19393 " LIBGUESTFS_MEMSIZE=700\n"
19396 " LIBGUESTFS_MEMSIZE=700\n"
19400 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3104
19401 msgid "LIBGUESTFS_PATH"
19405 #: ../fish/guestfish.pod:1145
19407 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19408 "the discussion of paths in L<guestfs(3)>."
19412 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3109
19413 msgid "LIBGUESTFS_QEMU"
19417 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3111
19419 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19420 "which was found at compile time by the configure script is used."
19424 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3117
19425 msgid "LIBGUESTFS_TRACE"
19429 #: ../fish/guestfish.pod:1156
19430 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19434 #: ../fish/guestfish.pod:1158
19436 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19439 #: ../fish/guestfish.pod:1160
19441 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19446 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3122
19451 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3124
19453 "Location of temporary directory, defaults to C</tmp> except for the cached "
19454 "supermin appliance which defaults to C</var/tmp>."
19458 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3127
19460 "If libguestfs was compiled to use the supermin appliance then the real "
19461 "appliance is cached in this directory, shared between all handles belonging "
19462 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19463 "use in case C</var/tmp> is not large enough."
19467 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19468 #: ../rescue/virt-rescue.pod:269
19473 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19474 #: ../rescue/virt-rescue.pod:273
19475 msgid "$HOME/.libguestfs-tools.rc"
19479 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19480 #: ../rescue/virt-rescue.pod:275
19481 msgid "/etc/libguestfs-tools.conf"
19485 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19486 #: ../rescue/virt-rescue.pod:277
19488 "This configuration file controls the default read-only or read-write mode "
19489 "(I<--ro> or I<--rw>)."
19493 #: ../fish/guestfish.pod:1187
19494 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19498 #: ../fish/guestfish.pod:1189
19499 msgid "$HOME/.guestfish"
19503 #: ../fish/guestfish.pod:1191
19505 "If compiled with GNU readline support, then the command history is saved in "
19510 #: ../fish/guestfish.pod:1194
19511 msgid "$HOME/.inputrc"
19515 #: ../fish/guestfish.pod:1196
19516 msgid "/etc/inputrc"
19520 #: ../fish/guestfish.pod:1198
19522 "If compiled with GNU readline support, then these files can be used to "
19523 "configure readline. For further information, please see L<readline(3)/"
19524 "INITIALIZATION FILE>."
19528 #: ../fish/guestfish.pod:1202
19529 msgid "To write rules which only apply to guestfish, use:"
19533 #: ../fish/guestfish.pod:1204
19543 #: ../fish/guestfish.pod:1208
19545 "Variables that you can set in inputrc that change the behaviour of guestfish "
19546 "in useful ways include:"
19550 #: ../fish/guestfish.pod:1213
19551 msgid "completion-ignore-case (default: on)"
19555 #: ../fish/guestfish.pod:1215
19557 "By default, guestfish will ignore case when tab-completing paths on the "
19562 #: ../fish/guestfish.pod:1218
19565 " set completion-ignore-case off\n"
19570 #: ../fish/guestfish.pod:1220
19571 msgid "to make guestfish case sensitive."
19575 #: ../fish/guestfish.pod:1224
19580 #: ../fish/guestfish.pod:1226
19581 msgid "test2.img (etc)"
19585 #: ../fish/guestfish.pod:1228
19587 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19588 "will be created in the file C<test1.img> in the current directory. The "
19589 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
19590 "the same name will be overwritten."
19594 #: ../fish/guestfish.pod:1237
19596 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19597 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19598 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19599 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19600 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19601 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19605 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3213
19606 #: ../test-tool/libguestfs-test-tool.pod:112
19607 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
19611 #: ../fish/virt-copy-in.pod:5
19613 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19617 #: ../fish/virt-copy-in.pod:9
19620 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19625 #: ../fish/virt-copy-in.pod:11
19628 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19633 #: ../fish/virt-copy-in.pod:15
19635 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19636 "causing disk corruption. The virtual machine must be shut down before you "
19637 "use this command."
19641 #: ../fish/virt-copy-in.pod:21
19643 "C<virt-copy-in> copies files and directories from the local disk into a "
19644 "virtual machine disk image or named libvirt domain."
19648 #: ../fish/virt-copy-in.pod:24
19650 "You can give one of more filenames and directories on the command line. "
19651 "Directories are copied in recursively. The final parameter must be the "
19652 "destination directory in the disk image which must be an absolute path "
19653 "starting with a C</> character."
19657 #: ../fish/virt-copy-in.pod:33
19660 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19665 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19666 msgid "Upload a home directory to a guest:"
19670 #: ../fish/virt-copy-in.pod:37
19673 " virt-copy-in -d MyGuest skel /home\n"
19678 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19679 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19680 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19684 #: ../fish/virt-copy-in.pod:41
19686 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19687 "> C<copy-in> command. For anything more complex than a trivial copy, you "
19688 "are probably better off using guestfish directly."
19692 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19693 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19695 "Since the shell script just passes options straight to guestfish, read "
19696 "L<guestfish(1)> to see the full list of options."
19700 #: ../fish/virt-copy-in.pod:52
19703 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19704 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19705 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19706 #| "libguestfs.org/>."
19708 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19709 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19711 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19712 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19713 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19717 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19718 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19720 #| msgid "Copyright (C) 2009 Red Hat Inc."
19721 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19722 msgstr "© Red Hat Inc., 2009"
19725 #: ../fish/virt-copy-out.pod:5
19727 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19732 #: ../fish/virt-copy-out.pod:9
19735 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19740 #: ../fish/virt-copy-out.pod:11
19743 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19748 #: ../fish/virt-copy-out.pod:15
19750 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19751 "image or named libvirt domain."
19755 #: ../fish/virt-copy-out.pod:18
19757 "You can give one of more filenames and directories on the command line. "
19758 "Directories are copied out recursively."
19762 #: ../fish/virt-copy-out.pod:23
19763 msgid "Download the home directories from a virtual machine:"
19767 #: ../fish/virt-copy-out.pod:25
19771 " virt-copy-out -d MyGuest /home homes\n"
19776 #: ../fish/virt-copy-out.pod:30
19778 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19779 "> C<copy-out> command. For anything more complex than a trivial copy, you "
19780 "are probably better off using guestfish directly."
19784 #: ../fish/virt-copy-out.pod:41
19787 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19788 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19789 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19790 #| "libguestfs.org/>."
19792 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19793 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19795 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19796 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19797 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19801 #: ../fish/virt-tar-in.pod:5
19802 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19806 #: ../fish/virt-tar-in.pod:9
19809 " virt-tar-in -a disk.img data.tar /destination\n"
19814 #: ../fish/virt-tar-in.pod:11
19817 " virt-tar-in -d domain data.tar /destination\n"
19822 #: ../fish/virt-tar-in.pod:13
19825 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19830 #: ../fish/virt-tar-in.pod:17
19832 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19833 "causing disk corruption. The virtual machine must be shut down before you "
19834 "use this command."
19838 #: ../fish/virt-tar-in.pod:23
19840 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19841 "image or named libvirt domain."
19845 #: ../fish/virt-tar-in.pod:26
19847 "The first parameter is the tar file. Use C<-> to read the tar file from "
19848 "standard input. The second parameter is the absolute target directory to "
19853 #: ../fish/virt-tar-in.pod:34
19856 " virt-tar-in -d MyGuest homes.tar /home\n"
19861 #: ../fish/virt-tar-in.pod:38
19863 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19864 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
19865 "probably better off using guestfish directly."
19869 #: ../fish/virt-tar-in.pod:49
19872 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19873 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19874 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19875 #| "libguestfs.org/>."
19877 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19878 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19881 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19882 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19883 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19887 #: ../fish/virt-tar-out.pod:5
19889 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19893 #: ../fish/virt-tar-out.pod:9
19896 " virt-tar-out -a disk.img /dir files.tar\n"
19901 #: ../fish/virt-tar-out.pod:11
19904 " virt-tar-out -d domain /dir files.tar\n"
19909 #: ../fish/virt-tar-out.pod:13
19912 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19917 #: ../fish/virt-tar-out.pod:17
19919 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19923 #: ../fish/virt-tar-out.pod:20
19925 "The first parameter is the absolute path of the virtual machine directory. "
19926 "The second parameter is the tar file to write. Use C<-> to write to "
19931 #: ../fish/virt-tar-out.pod:26
19932 msgid "Download the home directories from a guest:"
19936 #: ../fish/virt-tar-out.pod:28
19939 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19944 #: ../fish/virt-tar-out.pod:32
19946 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19947 "> C<tar-out> command. For anything more complex than a trivial copy, you "
19948 "are probably better off using guestfish directly."
19952 #: ../fish/virt-tar-out.pod:43
19955 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19956 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19957 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19958 #| "libguestfs.org/>."
19960 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19961 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19963 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19964 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19965 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19969 #: ../fuse/guestmount.pod:5
19971 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19975 #: ../fuse/guestmount.pod:9
19978 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19983 #: ../fuse/guestmount.pod:11
19986 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19991 #: ../fuse/guestmount.pod:13
19994 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19999 #: ../fuse/guestmount.pod:17
20001 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20002 "machines. If you do this, you risk disk corruption in the VM."
20006 #: ../fuse/guestmount.pod:22
20008 "The guestmount program can be used to mount virtual machine filesystems and "
20009 "other disk images on the host. It uses libguestfs for access to the guest "
20010 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20011 "a mountable device."
20015 #: ../fuse/guestmount.pod:27
20017 "Along with other options, you have to give at least one device (I<-a> "
20018 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20019 "option) or use the I<-i> inspection option. How this works is better "
20020 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20025 #: ../fuse/guestmount.pod:33
20027 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
20028 "by you, and the filesystem will not be visible to any other users unless you "
20029 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
20030 "the filesystem, use the C<fusermount -u> command."
20034 #: ../fuse/guestmount.pod:41
20036 "For a typical Windows guest which has its main filesystem on the first "
20041 #: ../fuse/guestmount.pod:44
20044 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20049 #: ../fuse/guestmount.pod:46
20051 "For a typical Linux guest which has a /boot filesystem on the first "
20052 "partition, and the root filesystem on a logical volume:"
20056 #: ../fuse/guestmount.pod:49
20059 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20064 #: ../fuse/guestmount.pod:51
20065 msgid "To get libguestfs to detect guest mountpoints for you:"
20069 #: ../fuse/guestmount.pod:53
20072 " guestmount -a guest.img -i --ro /mnt\n"
20077 #: ../fuse/guestmount.pod:55
20078 msgid "For a libvirt guest called \"Guest\" you could do:"
20082 #: ../fuse/guestmount.pod:57
20085 " guestmount -d Guest -i --ro /mnt\n"
20090 #: ../fuse/guestmount.pod:59
20092 "If you don't know what filesystems are contained in a guest or disk image, "
20093 "use L<virt-filesystems(1)> first:"
20097 #: ../fuse/guestmount.pod:62
20100 " virt-filesystems MyGuest\n"
20105 #: ../fuse/guestmount.pod:64
20107 "If you want to trace the libguestfs calls but without excessive debugging "
20108 "information, we recommend:"
20112 #: ../fuse/guestmount.pod:67
20115 " guestmount [...] --trace /mnt\n"
20120 #: ../fuse/guestmount.pod:69
20121 msgid "If you want to debug the program, we recommend:"
20125 #: ../fuse/guestmount.pod:71
20128 " guestmount [...] --trace --verbose /mnt\n"
20133 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20134 #: ../resize/virt-resize.pod:544
20139 #: ../fuse/guestmount.pod:75
20140 msgid "Other users cannot see the filesystem by default"
20144 #: ../fuse/guestmount.pod:77
20146 "If you mount a filesystem as one user (eg. root), then other users will not "
20147 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20148 "option when mounting:"
20152 #: ../fuse/guestmount.pod:81
20155 " sudo guestmount [...] -o allow_other /mnt\n"
20160 #: ../fuse/guestmount.pod:91
20161 msgid "Add a block device or virtual machine image."
20165 #: ../fuse/guestmount.pod:114
20166 msgid "B<--dir-cache-timeout N>"
20167 msgstr "B<--dir-cache-timeout N>"
20170 #: ../fuse/guestmount.pod:116
20172 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20173 "seconds. The readdir cache [actually, there are several semi-independent "
20174 "caches] is populated after a readdir(2) call with the stat and extended "
20175 "attributes of the files in the directory, in anticipation that they will be "
20176 "requested soon after."
20180 #: ../fuse/guestmount.pod:122
20182 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20183 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20184 "requests, only cache existing ones."
20188 #: ../fuse/guestmount.pod:142
20190 "If you have untrusted raw-format guest disk images, you should use this "
20191 "option to specify the disk format. This avoids a possible security problem "
20192 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20193 "guestfs_add_drive_opts>."
20197 #: ../fuse/guestmount.pod:147
20198 msgid "B<--fuse-help>"
20199 msgstr "B<--fuse-help>"
20202 #: ../fuse/guestmount.pod:149
20203 msgid "Display help on special FUSE options (see I<-o> below)."
20207 #: ../fuse/guestmount.pod:153
20208 msgid "Display brief help and exit."
20212 #: ../fuse/guestmount.pod:177
20214 "Mount the named partition or logical volume on the given mountpoint B<in the "
20215 "guest> (this has nothing to do with mountpoints in the host)."
20219 #: ../fuse/guestmount.pod:180
20221 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20222 "something on C</>."
20226 #: ../fuse/guestmount.pod:197
20228 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20229 "unmounted. If you specify this option, then we don't attempt to sync the "
20230 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20234 #: ../fuse/guestmount.pod:202
20236 #| msgid "B<--partition>"
20237 msgid "B<-o option>"
20238 msgstr "B<--partition>"
20241 #: ../fuse/guestmount.pod:204
20243 #| msgid "B<--partition>"
20244 msgid "B<--option option>"
20245 msgstr "B<--partition>"
20248 #: ../fuse/guestmount.pod:206
20249 msgid "Pass extra options to FUSE."
20253 #: ../fuse/guestmount.pod:208
20255 "To get a list of all the extra options supported by FUSE, use the command "
20256 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20257 "of them are a good idea."
20261 #: ../fuse/guestmount.pod:212
20264 " guestmount --fuse-help\n"
20269 #: ../fuse/guestmount.pod:214
20270 msgid "Some potentially useful FUSE options:"
20274 #: ../fuse/guestmount.pod:218
20275 msgid "B<-o allow_other>"
20279 #: ../fuse/guestmount.pod:220
20280 msgid "Allow other users to see the filesystem."
20284 #: ../fuse/guestmount.pod:222
20285 msgid "B<-o attr_timeout=N>"
20286 msgstr "B<-o attr_timeout=N>"
20289 #: ../fuse/guestmount.pod:224
20290 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20294 #: ../fuse/guestmount.pod:226
20295 msgid "B<-o kernel_cache>"
20299 #: ../fuse/guestmount.pod:228
20301 "Allow the kernel to cache files (reduces the number of reads that have to go "
20302 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20303 "afford the extra memory usage."
20307 #: ../fuse/guestmount.pod:232
20308 msgid "B<-o uid=N> B<-o gid=N>"
20312 #: ../fuse/guestmount.pod:234
20314 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20315 "the chosen values."
20319 #: ../fuse/guestmount.pod:243
20321 "Add devices and mount everything read-only. Also disallow writes and make "
20322 "the disk appear read-only to FUSE."
20326 #: ../fuse/guestmount.pod:246
20328 "This is highly recommended if you are not going to edit the guest disk. If "
20329 "the guest is running and this option is I<not> supplied, then there is a "
20330 "strong risk of disk corruption in the guest. We try to prevent this from "
20331 "happening, but it is not always possible."
20335 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20336 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20340 #: ../fuse/guestmount.pod:255
20341 msgid "Enable SELinux support for the guest."
20345 #: ../fuse/guestmount.pod:261
20346 msgid "Enable verbose messages from underlying libguestfs."
20350 #: ../fuse/guestmount.pod:267
20351 msgid "Display the program version and exit."
20355 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20356 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20357 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20361 #: ../fuse/guestmount.pod:280
20368 #: ../fuse/guestmount.pod:282
20369 msgid "Trace libguestfs calls and entry into each FUSE function."
20373 #: ../fuse/guestmount.pod:284
20374 msgid "This also stops the daemon from forking into the background."
20378 #: ../fuse/guestmount.pod:310
20380 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20381 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20386 #: ../fuse/guestmount.pod:325
20387 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20391 #: ../inspector/virt-inspector.pod:5
20393 "virt-inspector - Display operating system version and other information "
20394 "about a virtual machine"
20398 #: ../inspector/virt-inspector.pod:9
20401 #| " virt-list-partitions [--options] domname\n"
20404 " virt-inspector [--options] -d domname\n"
20407 " virt-list-partitions [--параметри] назва_домену\n"
20411 #: ../inspector/virt-inspector.pod:11
20414 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20417 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20420 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20424 #: ../inspector/virt-inspector.pod:15
20427 #| " virt-list-partitions [--options] domname\n"
20430 " virt-inspector domname\n"
20433 " virt-list-partitions [--параметри] назва_домену\n"
20437 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20440 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20443 " virt-inspector disk.img [disk.img ...]\n"
20446 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20450 #: ../inspector/virt-inspector.pod:21
20452 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20453 "determine the version of the operating system and other information about "
20454 "the virtual machine."
20458 #: ../inspector/virt-inspector.pod:25
20459 msgid "Virt-inspector produces XML output for feeding into other programs."
20463 #: ../inspector/virt-inspector.pod:27
20465 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20466 "the libvirt domain (see: C<virsh list --all>)."
20470 #: ../inspector/virt-inspector.pod:30
20472 "You can also run virt-inspector directly on disk images from a single "
20473 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20474 "has several block devices, in which case you should list several I<-a> "
20475 "options one after another, with the first corresponding to the guest's C</"
20476 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20480 #: ../inspector/virt-inspector.pod:37
20482 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20483 "keys and similar."
20487 #: ../inspector/virt-inspector.pod:40
20489 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20490 "inspect several virtual machines, you have to run virt-inspector several "
20491 "times (for example, from a shell script for-loop)."
20495 #: ../inspector/virt-inspector.pod:45
20497 "Because virt-inspector needs direct access to guest images, it won't "
20498 "normally work over remote libvirt connections."
20502 #: ../inspector/virt-inspector.pod:48
20504 "All of the information available from virt-inspector is also available "
20505 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20506 "The same information can also be fetched using guestfish or via libguestfs "
20507 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20508 "WITH OTHER PROGRAMMING LANGUAGES>)."
20512 #: ../inspector/virt-inspector.pod:81
20514 "Libvirt is only used if you specify a C<domname> on the command line. If "
20515 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20520 #: ../inspector/virt-inspector.pod:94
20522 "When prompting for keys and passphrases, virt-inspector normally turns "
20523 "echoing off so you cannot see what you are typing. If you are not worried "
20524 "about Tempest attacks and there is no one else in the room you can specify "
20525 "this flag to see what you are typing."
20529 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20530 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20531 #: ../tools/virt-win-reg.pl:144
20533 "Specify the format of disk images given on the command line. If this is "
20534 "omitted then the format is autodetected from the content of the disk image."
20538 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20539 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20540 #: ../tools/virt-win-reg.pl:148
20542 "If disk images are requested from libvirt, then this program asks libvirt "
20543 "for this information. In this case, the value of the format parameter is "
20548 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20549 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20550 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20551 #: ../tools/virt-win-reg.pl:152
20553 "If working with untrusted raw-format guest disk images, you should ensure "
20554 "the format is always specified."
20558 #: ../inspector/virt-inspector.pod:139
20559 msgid "Previous versions of virt-inspector allowed you to write either:"
20563 #: ../inspector/virt-inspector.pod:145
20566 #| " inspect-get-hostname root\n"
20569 " virt-inspector guestname\n"
20572 " inspect-get-hostname корінь\n"
20576 #: ../inspector/virt-inspector.pod:153
20581 #: ../inspector/virt-inspector.pod:155
20583 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20584 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20585 "just an overview."
20589 #: ../inspector/virt-inspector.pod:159
20591 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20592 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
20593 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20594 "which is vanishingly rare in real world VMs."
20598 #: ../inspector/virt-inspector.pod:164
20599 msgid "E<lt>operatingsystemE<gt>"
20603 #: ../inspector/virt-inspector.pod:166
20605 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20606 "describe the operating system, its architecture, the descriptive \"product "
20607 "name\" string, the type of OS and so on, as in this example:"
20611 #: ../inspector/virt-inspector.pod:170
20614 " <operatingsystems>\n"
20615 " <operatingsystem>\n"
20616 " <root>/dev/sda2</root>\n"
20617 " <name>windows</name>\n"
20618 " <arch>i386</arch>\n"
20619 " <distro>windows</distro>\n"
20620 " <product_name>Windows 7 Enterprise</product_name>\n"
20621 " <product_variant>Client</product_variant>\n"
20622 " <major_version>6</major_version>\n"
20623 " <minor_version>1</minor_version>\n"
20624 " <windows_systemroot>/Windows</windows_systemroot>\n"
20625 " <format>installed</format>\n"
20630 #: ../inspector/virt-inspector.pod:183
20632 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20633 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20634 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20635 "architecture. The other fields are fairly self-explanatory, but because "
20636 "these fields are taken directly from the libguestfs inspection API you can "
20637 "find precise information from L<guestfs(3)/INSPECTION>."
20641 #: ../inspector/virt-inspector.pod:191
20643 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20644 "of view of libguestfs (block devices may have completely different names "
20645 "inside the VM itself)."
20649 #: ../inspector/virt-inspector.pod:195
20651 #| msgid "mountpoints"
20652 msgid "E<lt>mountpointsE<gt>"
20653 msgstr "mountpoints"
20656 #: ../inspector/virt-inspector.pod:197
20658 "Un*x-like guests typically have multiple filesystems which are mounted at "
20659 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20660 "element which looks like this:"
20664 #: ../inspector/virt-inspector.pod:201
20667 " <operatingsystems>\n"
20668 " <operatingsystem>\n"
20671 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20672 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20673 " </mountpoints>\n"
20678 #: ../inspector/virt-inspector.pod:209
20680 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20681 "and may have completely different names inside the guest. Only mountable "
20682 "filesystems appear in this list, not things like swap devices."
20686 #: ../inspector/virt-inspector.pod:214
20688 #| msgid "list-filesystems"
20689 msgid "E<lt>filesystemsE<gt>"
20690 msgstr "list-filesystems"
20693 #: ../inspector/virt-inspector.pod:216
20695 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20696 "filesystems belonging to the guest, including swap and empty partitions. "
20697 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20698 "this OS or shared with this OS and other OSes)."
20702 #: ../inspector/virt-inspector.pod:222
20703 msgid "You might see something like this:"
20707 #: ../inspector/virt-inspector.pod:224
20710 " <operatingsystems>\n"
20711 " <operatingsystem>\n"
20714 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20715 " <type>ext4</type>\n"
20716 " <label>Fedora-13-x86_64</label>\n"
20717 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20723 #: ../inspector/virt-inspector.pod:234
20725 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20726 "the label, and the UUID."
20730 #: ../inspector/virt-inspector.pod:237
20731 msgid "E<lt>applicationsE<gt>"
20735 #: ../inspector/virt-inspector.pod:239
20737 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20738 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20743 #: ../inspector/virt-inspector.pod:243
20745 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
20746 "Typical values would be C<rpm> and C<deb>."
20750 #: ../inspector/virt-inspector.pod:246
20752 "E<lt>package_managementE<gt>, if present, describes the package manager. "
20753 "Typical values include C<yum>, C<up2date> and C<apt>"
20757 #: ../inspector/virt-inspector.pod:249
20758 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20762 #: ../inspector/virt-inspector.pod:252
20765 " <operatingsystems>\n"
20766 " <operatingsystem>\n"
20768 " <applications>\n"
20770 " <name>coreutils</name>\n"
20771 " <version>8.5</version>\n"
20772 " <release>1</release>\n"
20773 " </application>\n"
20778 #: ../inspector/virt-inspector.pod:262
20780 "The version and release fields may not be available for some types guests. "
20781 "Other fields are possible, see L<guestfs(3)/"
20782 "guestfs_inspect_list_applications>."
20786 #: ../inspector/virt-inspector.pod:266
20787 msgid "E<lt>drive_mappingsE<gt>"
20791 #: ../inspector/virt-inspector.pod:268
20793 "For operating systems like Windows which use drive letters, virt-inspector "
20794 "is able to find out how drive letters map to filesystems."
20798 #: ../inspector/virt-inspector.pod:272
20801 " <operatingsystems>\n"
20802 " <operatingsystem>\n"
20804 " <drive_mappings>\n"
20805 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20806 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20807 " </drive_mappings>\n"
20812 #: ../inspector/virt-inspector.pod:280
20814 "In the example above, drive C maps to the filesystem on the second partition "
20815 "on the first disk, and drive E maps to the filesystem on the first partition "
20816 "on the second disk."
20820 #: ../inspector/virt-inspector.pod:284
20822 "Note that this only covers permanent local filesystem mappings, not things "
20823 "like network shares. Furthermore NTFS volume mount points may not be listed "
20828 #: ../inspector/virt-inspector.pod:288
20830 #| msgid "B<-s E<lt>NE<gt>>"
20831 msgid "E<lt>iconE<gt>"
20832 msgstr "B<-s E<lt>NE<gt>>"
20835 #: ../inspector/virt-inspector.pod:290
20837 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
20838 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
20839 "very large and high quality."
20843 #: ../inspector/virt-inspector.pod:294
20846 " <operatingsystems>\n"
20847 " <operatingsystem>\n"
20850 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20851 " [... many lines of base64 data ...]\n"
20857 #: ../inspector/virt-inspector.pod:302
20859 "To display the icon, you have to extract it and convert the base64 data back "
20860 "to a binary file. Use an XPath query or simply an editor to extract the "
20861 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20866 #: ../inspector/virt-inspector.pod:307
20869 " base64 -i -d < icon.data > icon.png\n"
20874 #: ../inspector/virt-inspector.pod:309
20875 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20879 #: ../inspector/virt-inspector.pod:311
20881 "Virt-inspector can detect some operating system installers on install disks, "
20882 "live CDs, bootable USB keys and more."
20886 #: ../inspector/virt-inspector.pod:314
20888 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20889 "fields may be present to indicate a live CD, network installer, or one part "
20890 "of a multipart CD. For example:"
20894 #: ../inspector/virt-inspector.pod:318
20897 " <operatingsystems>\n"
20898 " <operatingsystem>\n"
20899 " <root>/dev/sda</root>\n"
20900 " <name>linux</name>\n"
20901 " <arch>i386</arch>\n"
20902 " <distro>ubuntu</distro>\n"
20903 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
20904 " <major_version>10</major_version>\n"
20905 " <minor_version>10</minor_version>\n"
20906 " <format>installer</format>\n"
20912 #: ../inspector/virt-inspector.pod:330
20913 msgid "USING XPATH"
20917 #: ../inspector/virt-inspector.pod:332
20919 "You can use the XPath query language to select parts of the XML. We "
20920 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20924 #: ../inspector/virt-inspector.pod:338
20927 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20929 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20930 " <type>ext4</type>\n"
20936 #: ../inspector/virt-inspector.pod:344
20939 " $ virt-inspector -d Guest | \\\n"
20940 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20946 #: ../inspector/virt-inspector.pod:348
20949 " $ virt-inspector -d Guest | \\\n"
20950 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20951 " [displays the guest icon, if there is one]\n"
20956 #: ../inspector/virt-inspector.pod:359
20957 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20961 #: ../inspector/virt-inspector.pod:361
20963 "Early versions of libguestfs shipped with a different virt-inspector program "
20964 "written in Perl (the current version is written in C). The XML output of "
20965 "the Perl virt-inspector was different and it could also output in other "
20966 "formats like text."
20970 #: ../inspector/virt-inspector.pod:366
20972 "The old virt-inspector is no longer supported or shipped with libguestfs."
20976 #: ../inspector/virt-inspector.pod:369
20978 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20979 "versions of virt-inspector with different names:"
20983 #: ../inspector/virt-inspector.pod:372
20986 " virt-inspector Old Perl version.\n"
20987 " virt-inspector2 New C version.\n"
20992 #: ../inspector/virt-inspector.pod:382
20995 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20996 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
20997 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20999 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21000 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21002 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21003 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21004 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21007 #: ../inspector/virt-inspector.pod:399
21008 msgid "Matthew Booth L<mbooth@redhat.com>"
21012 #: ../java/examples/guestfs-java.pod:5
21013 msgid "guestfs-java - How to use libguestfs from Java"
21017 #: ../java/examples/guestfs-java.pod:9
21020 " import com.redhat.et.libguestfs.*;\n"
21025 #: ../java/examples/guestfs-java.pod:11
21028 " GuestFS g = new GuestFS ();\n"
21029 " g.add_drive_opts (\"disk.img\", null);\n"
21035 #: ../java/examples/guestfs-java.pod:17
21037 "This manual page documents how to call libguestfs from the Java programming "
21038 "language. This page just documents the differences from the C API and gives "
21039 "some examples. If you are not familiar with using libguestfs, you also need "
21040 "to read L<guestfs(3)>."
21044 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21045 msgid "CLOSING THE HANDLE"
21049 #: ../java/examples/guestfs-java.pod:24
21051 "The handle is closed when it is reaped by the garbage collector. Because "
21052 "libguestfs handles include a lot of state, it is also possible to close (and "
21053 "hence free) them explicitly by calling the C<close> method."
21057 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21058 #: ../python/examples/guestfs-python.pod:21
21059 #: ../ruby/examples/guestfs-ruby.pod:22
21066 #: ../java/examples/guestfs-java.pod:31
21068 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21069 "exception. This has a single parameter which is the error message (a "
21074 #: ../java/examples/guestfs-java.pod:35
21075 msgid "Calling any method on a closed handle raises the same exception."
21079 #: ../java/examples/guestfs-java.pod:47
21082 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21083 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21084 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21086 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21087 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21088 "libguestfs.org/>, L<http://caml.inria.fr/>."
21090 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21091 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21092 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21095 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21097 #| msgid "Copyright (C) 2009 Red Hat Inc."
21098 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21099 msgstr "© Red Hat Inc., 2009"
21102 #: ../ocaml/examples/guestfs-ocaml.pod:5
21103 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21107 #: ../ocaml/examples/guestfs-ocaml.pod:9
21108 msgid "Module style:"
21112 #: ../ocaml/examples/guestfs-ocaml.pod:11
21115 " let g = Guestfs.create () in\n"
21116 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21117 " Guestfs.launch g;\n"
21122 #: ../ocaml/examples/guestfs-ocaml.pod:15
21123 msgid "Object-oriented style:"
21127 #: ../ocaml/examples/guestfs-ocaml.pod:17
21130 " let g = new Guestfs.guestfs () in\n"
21131 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21137 #: ../ocaml/examples/guestfs-ocaml.pod:21
21140 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21142 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21147 #: ../ocaml/examples/guestfs-ocaml.pod:27
21149 "This manual page documents how to call libguestfs from the OCaml programming "
21150 "language. This page just documents the differences from the C API and gives "
21151 "some examples. If you are not familiar with using libguestfs, you also need "
21152 "to read L<guestfs(3)>."
21156 #: ../ocaml/examples/guestfs-ocaml.pod:32
21157 msgid "PROGRAMMING STYLES"
21161 #: ../ocaml/examples/guestfs-ocaml.pod:34
21163 "There are two different programming styles supported by the OCaml bindings. "
21164 "You can use a module style, with each C function mapped to an OCaml function:"
21168 #: ../ocaml/examples/guestfs-ocaml.pod:38
21171 #| " int guestfs_last_errno (guestfs_h *g);\n"
21174 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21177 " int guestfs_last_errno (guestfs_h *g);\n"
21181 #: ../ocaml/examples/guestfs-ocaml.pod:40
21186 #: ../ocaml/examples/guestfs-ocaml.pod:42
21189 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21194 #: ../ocaml/examples/guestfs-ocaml.pod:44
21196 "Alternately you can use an object-oriented style, calling methods on the "
21197 "class C<Guestfs.guestfs>:"
21201 #: ../ocaml/examples/guestfs-ocaml.pod:47
21204 " method set_verbose : bool -> unit\n"
21209 #: ../ocaml/examples/guestfs-ocaml.pod:49
21211 "The object-oriented style is usually briefer, and the minor performance "
21212 "penalty isn't noticable in the general overhead of performing libguestfs "
21217 #: ../ocaml/examples/guestfs-ocaml.pod:55
21219 "The handle is closed when it is reaped by the garbage collector. Because "
21220 "libguestfs handles include a lot of state, it is also possible to close (and "
21221 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21226 #: ../ocaml/examples/guestfs-ocaml.pod:62
21228 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21229 "exception. This has a single parameter which is the error message (a "
21234 #: ../ocaml/examples/guestfs-ocaml.pod:66
21236 "Calling any function/method on a closed handle raises C<Guestfs."
21237 "Handle_closed>. The single parameter is the name of the function that you "
21242 #: ../ocaml/examples/guestfs-ocaml.pod:80
21245 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21246 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21247 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21249 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21250 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21251 "libguestfs.org/>, L<http://caml.inria.fr/>."
21253 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21254 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21255 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21258 #: ../perl/examples/guestfs-perl.pod:5
21259 msgid "guestfs-perl - How to use libguestfs from Perl"
21263 #: ../perl/examples/guestfs-perl.pod:9
21266 " use Sys::Guestfs;\n"
21271 #: ../perl/examples/guestfs-perl.pod:11
21274 " my $h = Sys::Guestfs->new ();\n"
21275 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21276 " $h->launch ();\n"
21277 " $h->mount_options ('', '/dev/sda1', '/');\n"
21278 " $h->touch ('/hello');\n"
21284 #: ../perl/examples/guestfs-perl.pod:20
21286 "This manual page documents how to call libguestfs from the Perl programming "
21287 "language. This page just documents the differences from the C API and gives "
21288 "some examples. If you are not familiar with using libguestfs, you also need "
21289 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21293 #: ../perl/examples/guestfs-perl.pod:26
21298 #: ../perl/examples/guestfs-perl.pod:28
21300 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21305 #: ../perl/examples/guestfs-perl.pod:41
21308 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21309 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21310 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21312 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21313 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21314 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21316 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21317 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21318 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21321 #: ../python/examples/guestfs-python.pod:5
21322 msgid "guestfs-python - How to use libguestfs from Python"
21326 #: ../python/examples/guestfs-python.pod:9
21329 " import guestfs\n"
21330 " g = guestfs.GuestFS ()\n"
21331 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21337 #: ../python/examples/guestfs-python.pod:16
21339 "This manual page documents how to call libguestfs from the Python "
21340 "programming language. This page just documents the differences from the C "
21341 "API and gives some examples. If you are not familiar with using libguestfs, "
21342 "you also need to read L<guestfs(3)>."
21346 #: ../python/examples/guestfs-python.pod:23
21348 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21349 "single string argument which is the error message."
21353 #: ../python/examples/guestfs-python.pod:26
21354 msgid "MORE DOCUMENTATION"
21358 #: ../python/examples/guestfs-python.pod:28
21363 #: ../python/examples/guestfs-python.pod:30
21367 " >>> import guestfs\n"
21368 " >>> help (guestfs)\n"
21373 #: ../python/examples/guestfs-python.pod:44
21376 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21377 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21378 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21380 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21381 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21382 "libguestfs.org/>."
21384 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21385 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21386 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21389 #: ../rescue/virt-rescue.pod:5
21390 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21394 #: ../rescue/virt-rescue.pod:9
21397 #| " virt-list-partitions [--options] domname\n"
21400 " virt-rescue [--options] -d domname\n"
21403 " virt-list-partitions [--параметри] назва_домену\n"
21407 #: ../rescue/virt-rescue.pod:11
21410 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21413 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21416 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21420 #: ../rescue/virt-rescue.pod:15
21423 #| " virt-list-partitions [--options] domname\n"
21426 " virt-rescue [--options] domname\n"
21429 " virt-list-partitions [--параметри] назва_домену\n"
21433 #: ../rescue/virt-rescue.pod:17
21436 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21439 " virt-rescue [--options] disk.img [disk.img ...]\n"
21442 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21446 #: ../rescue/virt-rescue.pod:21
21448 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21449 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21450 "you from doing this, but doesn't catch all cases."
21454 #: ../rescue/virt-rescue.pod:25
21456 "However if you use the I<--ro> (read only) option, then you can attach a "
21457 "shell to a live virtual machine. The results might be strange or "
21458 "inconsistent at times but you won't get disk corruption."
21462 #: ../rescue/virt-rescue.pod:31
21464 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21465 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21466 "recovery tools which you can use to examine or rescue a virtual machine or "
21471 #: ../rescue/virt-rescue.pod:36
21473 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21474 "on disk image(s):"
21478 #: ../rescue/virt-rescue.pod:39
21481 " virt-rescue -d GuestName\n"
21486 #: ../rescue/virt-rescue.pod:41
21489 " virt-rescue --ro -a /path/to/disk.img\n"
21494 #: ../rescue/virt-rescue.pod:43
21497 " virt-rescue -a /dev/sdc\n"
21502 #: ../rescue/virt-rescue.pod:45
21503 msgid "For live VMs you I<must> use the --ro option."
21507 #: ../rescue/virt-rescue.pod:47
21509 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21510 "in an interactive bash shell where you can use many ordinary Linux "
21511 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21512 "appliance. You must mount the virtual machine's filesystems by hand. There "
21513 "is an empty directory called C</sysroot> where you can mount filesystems."
21517 #: ../rescue/virt-rescue.pod:54
21519 "In the example below, we list logical volumes, then choose one to mount "
21520 "under C</sysroot>:"
21524 #: ../rescue/virt-rescue.pod:57
21528 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21529 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21530 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21531 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21532 " ><rescue> ls /sysroot\n"
21537 #: ../rescue/virt-rescue.pod:64
21539 "If you don't know what filesystems are available on the virtual machine then "
21540 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21544 #: ../rescue/virt-rescue.pod:70
21546 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21547 "virtual machine. For example you can use it on a blank file if you want to "
21548 "partition that file (although we would recommend using L<guestfish(1)> "
21549 "instead as it is more suitable for this purpose). You can even use virt-"
21550 "rescue on things like SD cards."
21554 #: ../rescue/virt-rescue.pod:76
21556 "Virt-rescue does not require root. You only need to run it as root if you "
21557 "need root to open the disk image."
21561 #: ../rescue/virt-rescue.pod:79
21563 "This tool is just designed for quick interactive hacking on a virtual "
21564 "machine. For more structured access to a virtual machine disk image, you "
21565 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21566 "make scripted changes to guests, use L<guestfish(1)>."
21570 #: ../rescue/virt-rescue.pod:103
21571 msgid "B<--append kernelopts>"
21575 #: ../rescue/virt-rescue.pod:105
21576 msgid "Pass additional options to the rescue kernel."
21580 #: ../rescue/virt-rescue.pod:135
21583 #| " guestfish --format=raw -a disk.img\n"
21586 " virt-rescue --format=raw -a disk.img\n"
21589 " guestfish --format=raw -a disk.img\n"
21593 #: ../rescue/virt-rescue.pod:139
21596 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21599 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21602 " guestfish --format=raw -a disk.img --format -a another.img\n"
21606 #: ../rescue/virt-rescue.pod:148
21611 #: ../rescue/virt-rescue.pod:150
21613 #| msgid "B<--merge>"
21614 msgid "B<--memsize MB>"
21615 msgstr "B<--merge>"
21618 #: ../rescue/virt-rescue.pod:152
21620 "Change the amount of memory allocated to the rescue system. The default is "
21621 "set by libguestfs and is small but adequate for running system tools. The "
21622 "occasional program might need more memory. The parameter is specified in "
21627 #: ../rescue/virt-rescue.pod:157
21629 #| msgid "B<--inspector>"
21630 msgid "B<--network>"
21631 msgstr "B<--inspector>"
21634 #: ../rescue/virt-rescue.pod:159
21635 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
21639 #: ../rescue/virt-rescue.pod:165
21640 msgid "Open the image read-only."
21644 #: ../rescue/virt-rescue.pod:175
21646 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
21647 "SELINUX> before using this option."
21651 #: ../rescue/virt-rescue.pod:194
21653 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21654 "are done read-write."
21658 #: ../rescue/virt-rescue.pod:207
21659 msgid "Previous versions of virt-rescue allowed you to write either:"
21663 #: ../rescue/virt-rescue.pod:209
21666 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21669 " virt-rescue disk.img [disk.img ...]\n"
21672 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21676 #: ../rescue/virt-rescue.pod:213
21679 #| " file-architecture filename\n"
21682 " virt-rescue guestname\n"
21685 " file-architecture назва_файла\n"
21689 #: ../rescue/virt-rescue.pod:221
21694 #: ../rescue/virt-rescue.pod:223
21696 "Adding the I<--network> option enables QEMU user networking in the rescue "
21697 "appliance. There are some differences between user networking and ordinary "
21702 #: ../rescue/virt-rescue.pod:229
21703 msgid "ping does not work"
21707 #: ../rescue/virt-rescue.pod:231
21709 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21710 "send the ping packets, and because virt-rescue must be able to run as non-"
21711 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
21712 "The ping command will appear to resolve addresses but will not be able to "
21713 "send or receive any packets. This does not mean that the network is not "
21718 #: ../rescue/virt-rescue.pod:238
21719 msgid "cannot receive connections"
21723 #: ../rescue/virt-rescue.pod:240
21724 msgid "QEMU user networking cannot receive incoming connections."
21728 #: ../rescue/virt-rescue.pod:242
21729 msgid "making TCP connections"
21733 #: ../rescue/virt-rescue.pod:244
21735 "The virt-rescue appliance needs to be small and so does not include many "
21736 "network tools. In particular there is no L<telnet(1)> command. You can "
21737 "make TCP connections from the shell using the magical C</dev/tcp/"
21738 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21742 #: ../rescue/virt-rescue.pod:249
21745 " exec 3<>/dev/tcp/redhat.com/80\n"
21746 " echo \"GET /\" >&3\n"
21752 #: ../rescue/virt-rescue.pod:253
21753 msgid "See L<bash(1)> for more details."
21757 #: ../rescue/virt-rescue.pod:259
21759 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
21760 "ENVIRONMENT VARIABLES> for the complete list."
21764 #: ../rescue/virt-rescue.pod:286
21767 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21768 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21769 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21771 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21772 "libguestfs.org/>."
21774 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21775 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21776 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21779 #: ../resize/virt-resize.pod:5
21780 msgid "virt-resize - Resize a virtual machine disk"
21784 #: ../resize/virt-resize.pod:9
21787 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21788 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21789 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21794 #: ../resize/virt-resize.pod:15
21796 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21797 "larger or smaller overall, and resizing or deleting any partitions contained "
21802 #: ../resize/virt-resize.pod:19
21804 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
21805 "not> be used on live virtual machines - for consistent results, shut the "
21806 "virtual machine down before resizing it."
21810 #: ../resize/virt-resize.pod:23
21812 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21813 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21817 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
21818 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1396
21819 #: ../src/guestfs.pod:2574
21824 #: ../resize/virt-resize.pod:33
21826 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21827 "fill the extra 5GB of space."
21831 #: ../resize/virt-resize.pod:36
21834 " virt-filesystems --long -h --all -a olddisk\n"
21839 #: ../resize/virt-resize.pod:38
21842 " truncate -r olddisk newdisk\n"
21843 " truncate -s +5G newdisk\n"
21848 #: ../resize/virt-resize.pod:41
21851 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21852 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21857 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
21858 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400
21859 #: ../src/guestfs.pod:2599
21864 #: ../resize/virt-resize.pod:46
21866 "As above, but make the /boot partition 200MB bigger, while giving the "
21867 "remaining space to /dev/sda2:"
21871 #: ../resize/virt-resize.pod:49
21874 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21875 " olddisk newdisk\n"
21880 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
21881 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1406
21886 #: ../resize/virt-resize.pod:54
21888 "As in the first example, but expand a logical volume as the final step. "
21889 "This is what you would typically use for Linux guests that use LVM:"
21893 #: ../resize/virt-resize.pod:58
21896 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21897 " olddisk newdisk\n"
21902 #: ../resize/virt-resize.pod:61
21907 #: ../resize/virt-resize.pod:63
21909 "As in the first example, but the output format will be qcow2 instead of a "
21914 #: ../resize/virt-resize.pod:66
21917 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21918 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21923 #: ../resize/virt-resize.pod:71
21924 msgid "DETAILED USAGE"
21928 #: ../resize/virt-resize.pod:73
21929 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21933 #: ../resize/virt-resize.pod:77
21934 msgid "1. Shut down the virtual machine"
21938 #: ../resize/virt-resize.pod:79
21939 msgid "2. Locate input disk image"
21943 #: ../resize/virt-resize.pod:81
21945 "Locate the input disk image (ie. the file or device on the host containing "
21946 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
21947 "dumpxml> like this to find the disk image name:"
21951 #: ../resize/virt-resize.pod:85
21954 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21955 " Found 1 nodes:\n"
21957 " <source dev=\"/dev/vg/lv_guest\" />\n"
21962 #: ../resize/virt-resize.pod:90
21963 msgid "3. Look at current sizing"
21967 #: ../resize/virt-resize.pod:92
21968 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21972 #: ../resize/virt-resize.pod:95
21975 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21976 " Name Type Size Parent\n"
21977 " /dev/sda1 partition 101M /dev/sda\n"
21978 " /dev/sda2 partition 7.9G /dev/sda\n"
21979 " /dev/sda device 8.0G -\n"
21984 #: ../resize/virt-resize.pod:101
21986 "(This example is a virtual machine with an 8 GB disk which we would like to "
21987 "expand up to 10 GB)."
21991 #: ../resize/virt-resize.pod:104
21992 msgid "4. Create output disk"
21996 #: ../resize/virt-resize.pod:106
21998 "Virt-resize cannot do in-place disk modifications. You have to have space "
21999 "to store the resized output disk."
22003 #: ../resize/virt-resize.pod:109
22005 "To store the resized disk image in a file, create a file of a suitable size:"
22009 #: ../resize/virt-resize.pod:112
22012 " # rm -f outdisk\n"
22013 " # truncate -s 10G outdisk\n"
22018 #: ../resize/virt-resize.pod:115
22019 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22023 #: ../resize/virt-resize.pod:117
22026 " # lvcreate -L 10G -n lv_name vg_name\n"
22031 #: ../resize/virt-resize.pod:119
22032 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22036 #: ../resize/virt-resize.pod:121
22039 " # virsh pool-list\n"
22040 " # virsh vol-create-as poolname newvol 10G\n"
22045 #: ../resize/virt-resize.pod:124
22050 #: ../resize/virt-resize.pod:126
22052 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22053 "file) and the output disk. The output disk is the one created in the "
22058 #: ../resize/virt-resize.pod:130
22061 " # virt-resize indisk outdisk\n"
22066 #: ../resize/virt-resize.pod:132
22068 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22069 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22070 "larger, then an extra, empty partition is created at the end of the disk "
22071 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22076 #: ../resize/virt-resize.pod:138
22078 "More realistically you'd want to expand existing partitions in the disk "
22079 "image by passing extra options (for the full list see the L</OPTIONS> "
22084 #: ../resize/virt-resize.pod:142
22086 "L</--expand> is the most useful option. It expands the named partition "
22087 "within the disk to fill any extra space:"
22091 #: ../resize/virt-resize.pod:145
22094 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22099 #: ../resize/virt-resize.pod:147
22101 "(In this case, an extra partition is I<not> created at the end of the disk, "
22102 "because there will be no unused space)."
22106 #: ../resize/virt-resize.pod:150
22108 "L</--resize> is the other commonly used option. The following would "
22109 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22110 "rest of the available space:"
22114 #: ../resize/virt-resize.pod:154
22117 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22118 " indisk outdisk\n"
22123 #: ../resize/virt-resize.pod:157
22125 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22126 "if virt-resize knows how, it will resize the contents, the equivalent of "
22127 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22128 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22129 "filesystems, so you would have to online resize them after booting the guest."
22133 #: ../resize/virt-resize.pod:164
22134 msgid "Other options are covered below."
22138 #: ../resize/virt-resize.pod:166
22143 #: ../resize/virt-resize.pod:168
22144 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22148 #: ../resize/virt-resize.pod:170
22149 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22153 #: ../resize/virt-resize.pod:172
22156 #| " edit filename\n"
22159 " # virsh edit guestname\n"
22162 " edit назва_файла\n"
22166 #: ../resize/virt-resize.pod:174
22168 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22169 "html#elementsDisks>"
22173 #: ../resize/virt-resize.pod:177
22174 msgid "Then start up the domain with the new, resized disk:"
22178 #: ../resize/virt-resize.pod:179
22181 #| " ln-s target linkname\n"
22184 " # virsh start guestname\n"
22187 " ln-s призначення назва_посилання\n"
22191 #: ../resize/virt-resize.pod:181
22193 "and check that it still works. See also the L</NOTES> section below for "
22194 "additional information."
22198 #: ../resize/virt-resize.pod:184
22199 msgid "7. Resize LVs etc inside the guest"
22203 #: ../resize/virt-resize.pod:186
22204 msgid "(This can also be done offline using L<guestfish(1)>)"
22208 #: ../resize/virt-resize.pod:188
22210 "Once the guest has booted you should see the new space available, at least "
22211 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22212 "may need to resize LVs inside PVs, and also resize filesystem types that "
22213 "virt-resize does not know how to expand."
22217 #: ../resize/virt-resize.pod:195
22218 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22222 #: ../resize/virt-resize.pod:197
22224 "Shrinking is somewhat more complex than expanding, and only an overview is "
22229 #: ../resize/virt-resize.pod:200
22231 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22232 "filesystems). The user has to shrink content before passing the disk image "
22233 "to virt-resize, and virt-resize will check that the content has been shrunk "
22238 #: ../resize/virt-resize.pod:205
22239 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22243 #: ../resize/virt-resize.pod:207
22245 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22246 "steps 3 and 4 above to allocate a new disk image."
22250 #: ../resize/virt-resize.pod:210
22252 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22256 #: ../resize/virt-resize.pod:213
22257 msgid "IGNORING OR DELETING PARTITIONS"
22261 #: ../resize/virt-resize.pod:215
22263 "virt-resize also gives a convenient way to ignore or delete partitions when "
22264 "copying from the input disk to the output disk. Ignoring a partition speeds "
22265 "up the copy where you don't care about the existing contents of a "
22266 "partition. Deleting a partition removes it completely, but note that it "
22267 "also renumbers any partitions after the one which is deleted, which can "
22268 "leave some guests unbootable."
22272 #: ../resize/virt-resize.pod:222
22273 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22277 #: ../resize/virt-resize.pod:224
22279 "If the input disk is in qcow2 format, then you may prefer that the output is "
22280 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22281 "the fly. The output format is simply determined by the format of the empty "
22282 "output container that you provide. Thus to create qcow2 output, use:"
22286 #: ../resize/virt-resize.pod:230
22289 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22294 #: ../resize/virt-resize.pod:232
22295 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22299 #: ../resize/virt-resize.pod:234
22300 msgid "Similarly, to get non-sparse raw output use:"
22304 #: ../resize/virt-resize.pod:236
22307 #| " fallocate path len\n"
22310 " fallocate -l size outdisk\n"
22313 " fallocate шлях довжина\n"
22317 #: ../resize/virt-resize.pod:238
22319 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22320 "dev/zero of=outdisk bs=1M count=..>)"
22324 #: ../resize/virt-resize.pod:247
22325 msgid "Display help."
22329 #: ../resize/virt-resize.pod:249
22334 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22335 #: ../tools/virt-win-reg.pl:120
22337 msgstr "B<--debug>"
22340 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22341 msgid "Enable debugging messages."
22345 #: ../resize/virt-resize.pod:255
22347 #| msgid "B<--no-dest-paths>"
22348 msgid "B<--delete part>"
22349 msgstr "B<--no-dest-paths>"
22352 #: ../resize/virt-resize.pod:257
22354 "Delete the named partition. It would be more accurate to describe this as "
22355 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22356 "the original disk image is left intact."
22360 #: ../resize/virt-resize.pod:261
22362 "Note that when you delete a partition, then anything contained in the "
22363 "partition is also deleted. Furthermore, this causes any partitions that "
22364 "come after to be I<renumbered>, which can easily make your guest unbootable."
22368 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22369 #: ../resize/virt-resize.pod:454
22370 msgid "You can give this option multiple times."
22374 #: ../resize/virt-resize.pod:268
22376 #| msgid "B<--partition>"
22377 msgid "B<--expand part>"
22378 msgstr "B<--partition>"
22381 #: ../resize/virt-resize.pod:270
22383 "Expand the named partition so it uses up all extra space (space left over "
22384 "after any other resize changes that you request have been done)."
22388 #: ../resize/virt-resize.pod:273
22390 "If virt-resize knows how, it will expand the direct content of the "
22391 "partition. For example, if the partition is an LVM PV, it will expand the "
22392 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22393 "content it doesn't know about alone."
22397 #: ../resize/virt-resize.pod:278
22398 msgid "Currently virt-resize can resize:"
22402 #: ../resize/virt-resize.pod:284
22403 msgid "ext2, ext3 and ext4 filesystems."
22407 #: ../resize/virt-resize.pod:288
22408 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22412 #: ../resize/virt-resize.pod:290
22414 "The filesystem must have been shut down consistently last time it was used. "
22415 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22416 "consistency check, so at the first boot after resizing Windows will check "
22421 #: ../resize/virt-resize.pod:297
22423 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22424 "inside the PV, but see the I<--LV-expand> option. The user could also "
22425 "resize LVs as desired after boot."
22429 #: ../resize/virt-resize.pod:303
22430 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22434 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22435 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22439 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22440 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22441 #: ../tools/virt-win-reg.pl:142
22442 msgid "B<--format> raw"
22446 #: ../resize/virt-resize.pod:311
22448 "Specify the format of the input disk image. If this flag is not given then "
22449 "it is auto-detected from the image itself."
22453 #: ../resize/virt-resize.pod:317
22455 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22456 "AND NON-SPARSE RAW FORMATS>."
22460 #: ../resize/virt-resize.pod:320
22462 #| msgid "B<--format>"
22463 msgid "B<--ignore part>"
22464 msgstr "B<--format>"
22467 #: ../resize/virt-resize.pod:322
22469 "Ignore the named partition. Effectively this means the partition is "
22470 "allocated on the destination disk, but the content is not copied across from "
22471 "the source disk. The content of the partition will be blank (all zero "
22476 #: ../resize/virt-resize.pod:329
22477 msgid "B<--LV-expand logvol>"
22481 #: ../resize/virt-resize.pod:331
22483 "This takes the logical volume and, as a final step, expands it to fill all "
22484 "the space available in its volume group. A typical usage, assuming a Linux "
22485 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22486 "lv_root> would be:"
22490 #: ../resize/virt-resize.pod:336
22493 " virt-resize indisk outdisk \\\n"
22494 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22499 #: ../resize/virt-resize.pod:339
22501 "This would first expand the partition (and PV), and then expand the root "
22502 "device to fill the extra space in the PV."
22506 #: ../resize/virt-resize.pod:342
22508 "The contents of the LV are also resized if virt-resize knows how to do "
22509 "that. You can stop virt-resize from trying to expand the content by using "
22510 "the option I<--no-expand-content>."
22514 #: ../resize/virt-resize.pod:346
22515 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22519 #: ../resize/virt-resize.pod:348
22521 "You can give this option multiple times, I<but> it doesn't make sense to do "
22522 "this unless the logical volumes you specify are all in different volume "
22527 #: ../resize/virt-resize.pod:352
22529 #| msgid "B<-h> | B<--human-readable>"
22530 msgid "B<--machine-readable>"
22531 msgstr "B<-h> | B<--human-readable>"
22534 #: ../resize/virt-resize.pod:354
22536 "This option is used to make the output more machine friendly when being "
22537 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
22541 #: ../resize/virt-resize.pod:360
22543 #| msgid "B<--debug>"
22544 msgid "B<--dryrun>"
22545 msgstr "B<--debug>"
22548 #: ../resize/virt-resize.pod:362
22549 msgid "Print a summary of what would be done, but don't do anything."
22553 #: ../resize/virt-resize.pod:364
22554 msgid "B<--no-copy-boot-loader>"
22558 #: ../resize/virt-resize.pod:366
22560 "By default, virt-resize copies over some sectors at the start of the disk "
22561 "(up to the beginning of the first partition). Commonly these sectors "
22562 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22563 "in order for the guest to boot correctly."
22567 #: ../resize/virt-resize.pod:371
22569 "If you specify this flag, then this initial copy is not done. You may need "
22570 "to reinstall the boot loader in this case."
22574 #: ../resize/virt-resize.pod:374
22576 #| msgid "B<--partition>"
22577 msgid "B<--no-extra-partition>"
22578 msgstr "B<--partition>"
22581 #: ../resize/virt-resize.pod:376
22583 "By default, virt-resize creates an extra partition if there is any extra, "
22584 "unused space after all resizing has happened. Use this option to prevent "
22585 "the extra partition from being created. If you do this then the extra space "
22586 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22587 "tool in the guest."
22591 #: ../resize/virt-resize.pod:382
22593 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22598 #: ../resize/virt-resize.pod:385
22600 #| msgid "B<--no-dest-paths>"
22601 msgid "B<--no-expand-content>"
22602 msgstr "B<--no-dest-paths>"
22605 #: ../resize/virt-resize.pod:387
22607 "By default, virt-resize will try to expand the direct contents of "
22608 "partitions, if it knows how (see I<--expand> option above)."
22612 #: ../resize/virt-resize.pod:390
22614 "If you give the I<--no-expand-content> option then virt-resize will not "
22619 #: ../resize/virt-resize.pod:393
22621 #| msgid "ntfsresize-size"
22622 msgid "B<--ntfsresize-force>"
22623 msgstr "ntfsresize-size"
22626 #: ../resize/virt-resize.pod:395
22628 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22629 "the NTFS disk is marked as needing a consistency check. You have to use "
22630 "this option if you want to resize a Windows guest multiple times without "
22631 "booting into Windows between each resize."
22635 #: ../resize/virt-resize.pod:401
22637 #| msgid "B<--format>"
22638 msgid "B<--output-format> raw"
22639 msgstr "B<--format>"
22642 #: ../resize/virt-resize.pod:403
22644 "Specify the format of the output disk image. If this flag is not given then "
22645 "it is auto-detected from the image itself."
22649 #: ../resize/virt-resize.pod:409
22651 "Note that this option I<does not create> the output format. This option "
22652 "just tells libguestfs what it is so it doesn't try to guess it. You still "
22653 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
22654 "SPARSE RAW FORMATS>."
22658 #: ../resize/virt-resize.pod:414
22663 #: ../resize/virt-resize.pod:416
22665 #| msgid "B<--live>"
22670 #: ../resize/virt-resize.pod:418
22671 msgid "Don't print the summary."
22675 #: ../resize/virt-resize.pod:420
22677 #| msgid "B<part_size>"
22678 msgid "B<--resize part=size>"
22679 msgstr "B<part_size>"
22682 #: ../resize/virt-resize.pod:422
22684 "Resize the named partition (expanding or shrinking it) so that it has the "
22689 #: ../resize/virt-resize.pod:425
22691 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22692 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22693 "size; or as a relative number or percentage. For example:"
22697 #: ../resize/virt-resize.pod:431
22700 #| " hexedit /dev/sda 1M\n"
22703 " --resize /dev/sda2=10G\n"
22706 " hexedit /dev/sda 1M\n"
22710 #: ../resize/virt-resize.pod:433
22713 #| " pvresize device\n"
22716 " --resize /dev/sda4=90%\n"
22719 " pvresize пристрій\n"
22723 #: ../resize/virt-resize.pod:435
22726 #| " hexedit /dev/sda 1M\n"
22729 " --resize /dev/sda2=+1G\n"
22732 " hexedit /dev/sda 1M\n"
22736 #: ../resize/virt-resize.pod:437
22739 #| " hexedit /dev/sda 1M\n"
22742 " --resize /dev/sda2=-200M\n"
22745 " hexedit /dev/sda 1M\n"
22749 #: ../resize/virt-resize.pod:439
22752 #| " hexedit /dev/sda 1M\n"
22755 " --resize /dev/sda1=+128K\n"
22758 " hexedit /dev/sda 1M\n"
22762 #: ../resize/virt-resize.pod:441
22765 #| " hexedit /dev/sda 1M\n"
22768 " --resize /dev/sda1=+10%\n"
22771 " hexedit /dev/sda 1M\n"
22775 #: ../resize/virt-resize.pod:443
22778 #| " hexedit /dev/sda 1M\n"
22781 " --resize /dev/sda1=-10%\n"
22784 " hexedit /dev/sda 1M\n"
22788 #: ../resize/virt-resize.pod:445
22790 "You can increase the size of any partition. Virt-resize will expand the "
22791 "direct content of the partition if it knows how (see I<--expand> below)."
22795 #: ../resize/virt-resize.pod:449
22797 "You can only I<decrease> the size of partitions that contain filesystems or "
22798 "PVs which have already been shrunk. Virt-resize will check this has been "
22799 "done before proceeding, or else will print an error (see also I<--resize-"
22804 #: ../resize/virt-resize.pod:456
22805 msgid "B<--resize-force part=size>"
22809 #: ../resize/virt-resize.pod:458
22811 "This is the same as I<--resize> except that it will let you decrease the "
22812 "size of any partition. Generally this means you will lose any data which "
22813 "was at the end of the partition you shrink, but you may not care about that "
22814 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22815 "as a swap partition)."
22819 #: ../resize/virt-resize.pod:464
22820 msgid "See also the I<--ignore> option."
22824 #: ../resize/virt-resize.pod:466
22826 #| msgid "B<--partition>"
22827 msgid "B<--shrink part>"
22828 msgstr "B<--partition>"
22831 #: ../resize/virt-resize.pod:468
22833 "Shrink the named partition until the overall disk image fits in the "
22834 "destination. The named partition B<must> contain a filesystem or PV which "
22835 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22836 "online tools). Virt-resize will check this and give an error if it has not "
22841 #: ../resize/virt-resize.pod:474
22843 "The amount by which the overall disk must be shrunk (after carrying out all "
22844 "other operations requested by the user) is called the \"deficit\". For "
22845 "example, a straight copy (assume no other operations) from a 5GB disk image "
22846 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
22847 "would give an error unless the user specified a partition to shrink and that "
22848 "partition had more than a gigabyte of free space."
22852 #: ../resize/virt-resize.pod:492
22853 msgid "MACHINE READABLE OUTPUT"
22857 #: ../resize/virt-resize.pod:494
22859 "The I<--machine-readable> option can be used to make the output more machine "
22860 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22865 #: ../resize/virt-resize.pod:498
22866 msgid "There are two ways to use this option."
22870 #: ../resize/virt-resize.pod:500
22872 "Firstly use the option on its own to query the capabilities of the virt-"
22873 "resize binary. Typical output looks like this:"
22877 #: ../resize/virt-resize.pod:503
22880 " $ virt-resize --machine-readable\n"
22882 " ntfsresize-force\n"
22890 #: ../resize/virt-resize.pod:510
22892 "A list of features is printed, one per line, and the program exits with "
22897 #: ../resize/virt-resize.pod:513
22899 "Secondly use the option in conjunction with other options to make the "
22900 "regular program output more machine friendly."
22904 #: ../resize/virt-resize.pod:516
22905 msgid "At the moment this means:"
22909 #: ../resize/virt-resize.pod:522
22911 "Progress bar messages can be parsed from stdout by looking for this regular "
22916 #: ../resize/virt-resize.pod:525
22919 " ^[0-9]+/[0-9]+$\n"
22924 #: ../resize/virt-resize.pod:529
22926 "The calling program should treat messages sent to stdout (except for "
22927 "progress bar messages) as status messages. They can be logged and/or "
22928 "displayed to the user."
22932 #: ../resize/virt-resize.pod:535
22934 "The calling program should treat messages sent to stderr as error messages. "
22935 "In addition, virt-resize exits with a non-zero status code if there was a "
22940 #: ../resize/virt-resize.pod:541
22942 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
22943 "readable> option and will return an error."
22947 #: ../resize/virt-resize.pod:546
22948 msgid "\"Partition 1 does not end on cylinder boundary.\""
22952 #: ../resize/virt-resize.pod:548
22954 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
22955 "means the partitions will not be aligned to the ancient CHS geometry. "
22956 "However CHS geometry is meaningless for disks manufactured since the early "
22957 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
22958 "cylinders is not required by any modern operating system."
22962 #: ../resize/virt-resize.pod:555
22963 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22967 #: ../resize/virt-resize.pod:557
22969 "In Windows Vista and later versions, Microsoft switched to using a separate "
22970 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
22971 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
22972 "the boot partition. Doing so seems to break the guest completely. However "
22973 "expanding the second partition (ie. C: drive) should work."
22977 #: ../resize/virt-resize.pod:564
22979 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22980 "NTFS partitions have been expanded. This is just a safety check and (unless "
22981 "it find errors) is nothing to worry about."
22985 #: ../resize/virt-resize.pod:568
22986 msgid "GUEST BOOT STUCK AT \"GRUB\""
22990 #: ../resize/virt-resize.pod:570
22992 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22993 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
22994 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22995 "although we think is to do with partition alignment."
22999 #: ../resize/virt-resize.pod:575
23002 " guestfish -i -a newdisk\n"
23003 " ><fs> cat /boot/grub/device.map\n"
23004 " # check the contents of this file are sensible or\n"
23005 " # edit the file if necessary\n"
23006 " ><fs> grub-install / /dev/vda\n"
23012 #: ../resize/virt-resize.pod:582
23014 "For more flexible guest reconfiguration, including if you need to specify "
23015 "other parameters to grub-install, use L<virt-rescue(1)>."
23019 #: ../resize/virt-resize.pod:585
23020 msgid "ALTERNATIVE TOOLS"
23024 #: ../resize/virt-resize.pod:587
23026 "There are several proprietary tools for resizing partitions. We won't "
23027 "mention any here."
23031 #: ../resize/virt-resize.pod:590
23033 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23034 "operations on disk images. They can resize and move partitions, but I don't "
23035 "think they can do anything with the contents, and they certainly don't "
23040 #: ../resize/virt-resize.pod:595
23042 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23043 "but at a much lower level. You will probably end up hand-calculating sector "
23044 "offsets, which is something that virt-resize was designed to avoid. If you "
23045 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23050 #: ../resize/virt-resize.pod:615
23052 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23053 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23054 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23055 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23059 #: ../ruby/examples/guestfs-ruby.pod:5
23060 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23064 #: ../ruby/examples/guestfs-ruby.pod:9
23067 " require 'guestfs'\n"
23068 " g = Guestfs::Guestfs.new()\n"
23069 " g.add_drive_opts(\"disk.img\",\n"
23070 " :readonly => 1, :format => \"raw\")\n"
23076 #: ../ruby/examples/guestfs-ruby.pod:17
23078 "This manual page documents how to call libguestfs from the Ruby programming "
23079 "language. This page just documents the differences from the C API and gives "
23080 "some examples. If you are not familiar with using libguestfs, you also need "
23081 "to read L<guestfs(3)>."
23085 #: ../ruby/examples/guestfs-ruby.pod:24
23087 "Errors from libguestfs functions are mapped into the C<Error> exception. "
23088 "This has a single parameter which is the error message (a string)."
23092 #: ../ruby/examples/guestfs-ruby.pod:38
23095 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23096 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23097 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23099 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
23100 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
23101 "libguestfs.org/>."
23103 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23104 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23105 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23108 #: ../src/guestfs-actions.pod:1
23109 msgid "guestfs_add_cdrom"
23113 #: ../src/guestfs-actions.pod:3
23117 " guestfs_add_cdrom (guestfs_h *g,\n"
23118 " const char *filename);\n"
23123 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23124 #: ../src/guestfs-actions.pod:270
23126 "I<This function is deprecated.> In new code, use the L</"
23127 "guestfs_add_drive_opts> call instead."
23131 #: ../src/guestfs-actions.pod:24
23133 "This call checks for the existence of C<filename>. This stops you from "
23134 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23135 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
23140 #: ../src/guestfs-actions.pod:31
23142 "If you just want to add an ISO file (often you use this as an efficient way "
23143 "to transfer large files into the guest), then you should probably use "
23144 "C<guestfs_add_drive_ro> instead."
23148 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23149 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23150 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23151 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23152 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23153 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23154 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23155 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23156 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23157 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23158 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23159 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23160 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23161 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23162 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23163 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23164 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23165 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
23166 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23167 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23168 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
23169 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
23170 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
23171 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
23172 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
23173 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
23174 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
23175 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
23176 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
23177 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
23178 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
23179 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
23180 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
23181 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
23182 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
23183 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
23184 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
23185 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
23186 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
23187 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635
23188 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
23189 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
23190 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
23191 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
23192 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
23193 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980
23194 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
23195 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
23196 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172
23197 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262
23198 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
23199 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
23200 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
23201 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
23202 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
23203 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
23204 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
23205 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
23206 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
23207 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
23208 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
23209 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
23210 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
23211 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
23212 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
23213 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
23214 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
23215 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
23216 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
23217 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
23218 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578
23219 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726
23220 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
23221 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
23222 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
23223 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23224 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
23225 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
23226 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
23227 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
23228 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
23229 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
23230 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
23231 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
23232 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
23233 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
23234 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609
23235 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
23236 #: ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782
23237 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
23238 msgid "This function returns 0 on success or -1 on error."
23242 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23243 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23244 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23245 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
23246 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
23247 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
23248 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
23249 #: ../src/guestfs-actions.pod:7611
23250 msgid "(Added in 0.3)"
23254 #: ../src/guestfs-actions.pod:41
23255 msgid "guestfs_add_domain"
23259 #: ../src/guestfs-actions.pod:43
23263 " guestfs_add_domain (guestfs_h *g,\n"
23264 " const char *dom,\n"
23270 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23271 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
23272 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
23273 #: ../src/guestfs-actions.pod:5183
23275 "You may supply a list of optional arguments to this call. Use zero or more "
23276 "of the following pairs of parameters, and terminate the list with C<-1> on "
23277 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23281 #: ../src/guestfs-actions.pod:53
23284 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23285 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23286 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23287 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23288 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23293 #: ../src/guestfs-actions.pod:59
23295 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23296 "It works by connecting to libvirt, requesting the domain and domain XML from "
23297 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23302 #: ../src/guestfs-actions.pod:94
23304 "The other optional parameters are passed directly through to "
23305 "C<guestfs_add_drive_opts>."
23309 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23310 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23311 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23312 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23313 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23314 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23315 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23316 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
23317 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
23318 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
23319 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
23320 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
23321 #: ../src/guestfs-actions.pod:7648
23322 msgid "On error this function returns -1."
23326 #: ../src/guestfs-actions.pod:99
23327 msgid "(Added in 1.7.4)"
23331 #: ../src/guestfs-actions.pod:101
23332 msgid "guestfs_add_domain_va"
23336 #: ../src/guestfs-actions.pod:103
23340 " guestfs_add_domain_va (guestfs_h *g,\n"
23341 " const char *dom,\n"
23342 " va_list args);\n"
23347 #: ../src/guestfs-actions.pod:108
23348 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23352 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23353 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23354 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23355 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
23356 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
23357 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
23358 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
23359 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23360 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23363 #: ../src/guestfs-actions.pod:112
23364 msgid "guestfs_add_domain_argv"
23365 msgstr "guestfs_add_domain_argv"
23368 #: ../src/guestfs-actions.pod:114
23372 " guestfs_add_domain_argv (guestfs_h *g,\n"
23373 " const char *dom,\n"
23374 " const struct guestfs_add_domain_argv *optargs);\n"
23379 #: ../src/guestfs-actions.pod:119
23380 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23384 #: ../src/guestfs-actions.pod:123
23385 msgid "guestfs_add_drive"
23389 #: ../src/guestfs-actions.pod:125
23393 " guestfs_add_drive (guestfs_h *g,\n"
23394 " const char *filename);\n"
23399 #: ../src/guestfs-actions.pod:129
23401 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23402 "optional parameters, so the disk is added writable, with the format being "
23403 "detected automatically."
23407 #: ../src/guestfs-actions.pod:133
23409 "Automatic detection of the format opens you up to a potential security hole "
23410 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23411 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23412 "you should think about replacing calls to this function with calls to "
23413 "C<guestfs_add_drive_opts>, and specifying the format."
23417 #: ../src/guestfs-actions.pod:144
23418 msgid "guestfs_add_drive_opts"
23422 #: ../src/guestfs-actions.pod:146
23426 " guestfs_add_drive_opts (guestfs_h *g,\n"
23427 " const char *filename,\n"
23433 #: ../src/guestfs-actions.pod:156
23436 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23437 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23438 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23443 #: ../src/guestfs-actions.pod:185
23445 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23446 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23447 "Possible formats include C<raw> and C<qcow2>."
23451 #: ../src/guestfs-actions.pod:196
23453 "This rarely-used option lets you emulate the behaviour of the deprecated "
23454 "C<guestfs_add_drive_with_if> call (q.v.)"
23458 #: ../src/guestfs-actions.pod:203
23459 msgid "(Added in 1.5.23)"
23463 #: ../src/guestfs-actions.pod:205
23464 msgid "guestfs_add_drive_opts_va"
23468 #: ../src/guestfs-actions.pod:207
23472 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23473 " const char *filename,\n"
23474 " va_list args);\n"
23479 #: ../src/guestfs-actions.pod:212
23480 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23484 #: ../src/guestfs-actions.pod:216
23485 msgid "guestfs_add_drive_opts_argv"
23489 #: ../src/guestfs-actions.pod:218
23493 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23494 " const char *filename,\n"
23495 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23500 #: ../src/guestfs-actions.pod:223
23501 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23505 #: ../src/guestfs-actions.pod:227
23506 msgid "guestfs_add_drive_ro"
23510 #: ../src/guestfs-actions.pod:229
23514 " guestfs_add_drive_ro (guestfs_h *g,\n"
23515 " const char *filename);\n"
23520 #: ../src/guestfs-actions.pod:233
23522 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23523 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23524 "disk is added read-only, with the format being detected automatically."
23528 #: ../src/guestfs-actions.pod:240
23529 msgid "(Added in 1.0.38)"
23533 #: ../src/guestfs-actions.pod:242
23534 msgid "guestfs_add_drive_ro_with_if"
23538 #: ../src/guestfs-actions.pod:244
23542 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23543 " const char *filename,\n"
23544 " const char *iface);\n"
23549 #: ../src/guestfs-actions.pod:256
23551 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23552 "QEMU interface emulation to use at run time."
23556 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23557 #: ../src/guestfs-actions.pod:2436
23558 msgid "(Added in 1.0.84)"
23562 #: ../src/guestfs-actions.pod:263
23563 msgid "guestfs_add_drive_with_if"
23567 #: ../src/guestfs-actions.pod:265
23571 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23572 " const char *filename,\n"
23573 " const char *iface);\n"
23578 #: ../src/guestfs-actions.pod:277
23580 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23581 "QEMU interface emulation to use at run time."
23585 #: ../src/guestfs-actions.pod:284
23586 msgid "guestfs_aug_clear"
23590 #: ../src/guestfs-actions.pod:286
23594 " guestfs_aug_clear (guestfs_h *g,\n"
23595 " const char *augpath);\n"
23600 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23601 msgid "(Added in 1.3.4)"
23605 #: ../src/guestfs-actions.pod:297
23606 msgid "guestfs_aug_close"
23610 #: ../src/guestfs-actions.pod:299
23614 " guestfs_aug_close (guestfs_h *g);\n"
23619 #: ../src/guestfs-actions.pod:302
23621 "Close the current Augeas handle and free up any resources used by it. After "
23622 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23623 "any other Augeas functions."
23627 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23628 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23629 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23630 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23631 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23632 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23633 #: ../src/guestfs-actions.pod:5851
23634 msgid "(Added in 0.7)"
23638 #: ../src/guestfs-actions.pod:311
23639 msgid "guestfs_aug_defnode"
23643 #: ../src/guestfs-actions.pod:313
23646 " struct guestfs_int_bool *\n"
23647 " guestfs_aug_defnode (guestfs_h *g,\n"
23648 " const char *name,\n"
23649 " const char *expr,\n"
23650 " const char *val);\n"
23655 #: ../src/guestfs-actions.pod:322
23657 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23658 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
23659 "containing that single node."
23663 #: ../src/guestfs-actions.pod:330
23665 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23666 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
23670 #: ../src/guestfs-actions.pod:336
23671 msgid "guestfs_aug_defvar"
23675 #: ../src/guestfs-actions.pod:338
23679 " guestfs_aug_defvar (guestfs_h *g,\n"
23680 " const char *name,\n"
23681 " const char *expr);\n"
23686 #: ../src/guestfs-actions.pod:354
23687 msgid "guestfs_aug_get"
23691 #: ../src/guestfs-actions.pod:356
23695 " guestfs_aug_get (guestfs_h *g,\n"
23696 " const char *augpath);\n"
23701 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23702 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23703 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23704 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23705 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23706 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23707 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23708 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
23709 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
23710 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
23711 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
23712 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
23713 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
23714 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
23715 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
23716 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
23717 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
23718 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
23719 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
23720 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
23721 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672
23722 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
23723 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
23724 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
23726 "This function returns a string, or NULL on error. I<The caller must free "
23727 "the returned string after use>."
23731 #: ../src/guestfs-actions.pod:368
23732 msgid "guestfs_aug_init"
23736 #: ../src/guestfs-actions.pod:370
23740 " guestfs_aug_init (guestfs_h *g,\n"
23741 " const char *root,\n"
23747 #: ../src/guestfs-actions.pod:379
23748 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23752 #: ../src/guestfs-actions.pod:404
23754 "This option is only useful when debugging Augeas lenses. Use of this option "
23755 "may require additional memory for the libguestfs appliance. You may need to "
23756 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23757 "C<guestfs_set_memsize>."
23761 #: ../src/guestfs-actions.pod:419
23762 msgid "Do not load the tree in C<guestfs_aug_init>."
23766 #: ../src/guestfs-actions.pod:423
23767 msgid "To close the handle, you can call C<guestfs_aug_close>."
23771 #: ../src/guestfs-actions.pod:431
23772 msgid "guestfs_aug_insert"
23776 #: ../src/guestfs-actions.pod:433
23780 " guestfs_aug_insert (guestfs_h *g,\n"
23781 " const char *augpath,\n"
23782 " const char *label,\n"
23788 #: ../src/guestfs-actions.pod:451
23789 msgid "guestfs_aug_load"
23793 #: ../src/guestfs-actions.pod:453
23797 " guestfs_aug_load (guestfs_h *g);\n"
23802 #: ../src/guestfs-actions.pod:465
23803 msgid "guestfs_aug_ls"
23807 #: ../src/guestfs-actions.pod:467
23811 " guestfs_aug_ls (guestfs_h *g,\n"
23812 " const char *augpath);\n"
23817 #: ../src/guestfs-actions.pod:471
23819 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23820 "sorting the resulting nodes into alphabetical order."
23824 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23825 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23826 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23827 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23828 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23829 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23830 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
23831 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
23832 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
23833 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
23834 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
23835 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
23836 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
23837 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
23838 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
23839 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
23840 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
23841 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
23842 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
23843 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
23844 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
23845 #: ../src/guestfs-actions.pod:7932
23847 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23848 ">), or NULL if there was an error. I<The caller must free the strings and "
23849 "the array after use>."
23853 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23854 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23855 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
23856 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
23857 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
23858 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
23859 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
23860 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
23861 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
23862 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
23863 #: ../src/guestfs-actions.pod:7723
23864 msgid "(Added in 0.8)"
23868 #: ../src/guestfs-actions.pod:480
23869 msgid "guestfs_aug_match"
23873 #: ../src/guestfs-actions.pod:482
23877 " guestfs_aug_match (guestfs_h *g,\n"
23878 " const char *augpath);\n"
23883 #: ../src/guestfs-actions.pod:496
23884 msgid "guestfs_aug_mv"
23888 #: ../src/guestfs-actions.pod:498
23892 " guestfs_aug_mv (guestfs_h *g,\n"
23893 " const char *src,\n"
23894 " const char *dest);\n"
23899 #: ../src/guestfs-actions.pod:510
23900 msgid "guestfs_aug_rm"
23904 #: ../src/guestfs-actions.pod:512
23908 " guestfs_aug_rm (guestfs_h *g,\n"
23909 " const char *augpath);\n"
23914 #: ../src/guestfs-actions.pod:524
23915 msgid "guestfs_aug_save"
23919 #: ../src/guestfs-actions.pod:526
23923 " guestfs_aug_save (guestfs_h *g);\n"
23928 #: ../src/guestfs-actions.pod:531
23930 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23935 #: ../src/guestfs-actions.pod:538
23936 msgid "guestfs_aug_set"
23940 #: ../src/guestfs-actions.pod:540
23944 " guestfs_aug_set (guestfs_h *g,\n"
23945 " const char *augpath,\n"
23946 " const char *val);\n"
23951 #: ../src/guestfs-actions.pod:547
23953 "In the Augeas API, it is possible to clear a node by setting the value to "
23954 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
23955 "this call. Instead you must use the C<guestfs_aug_clear> call."
23959 #: ../src/guestfs-actions.pod:556
23960 msgid "guestfs_available"
23964 #: ../src/guestfs-actions.pod:558
23968 " guestfs_available (guestfs_h *g,\n"
23969 " char *const *groups);\n"
23974 #: ../src/guestfs-actions.pod:566
23976 "The libguestfs groups, and the functions that those groups correspond to, "
23977 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
23978 "runtime by calling C<guestfs_available_all_groups>."
23982 #: ../src/guestfs-actions.pod:590
23983 msgid "You must call C<guestfs_launch> before calling this function."
23987 #: ../src/guestfs-actions.pod:612
23989 "This call was added in version C<1.0.80>. In previous versions of "
23990 "libguestfs all you could do would be to speculatively execute a command to "
23991 "find out if the daemon implemented it. See also C<guestfs_version>."
23995 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23996 msgid "(Added in 1.0.80)"
24000 #: ../src/guestfs-actions.pod:623
24001 msgid "guestfs_available_all_groups"
24005 #: ../src/guestfs-actions.pod:625
24009 " guestfs_available_all_groups (guestfs_h *g);\n"
24014 #: ../src/guestfs-actions.pod:628
24016 "This command returns a list of all optional groups that this daemon knows "
24017 "about. Note this returns both supported and unsupported groups. To find "
24018 "out which ones the daemon can actually support you have to call "
24019 "C<guestfs_available> on each member of the returned list."
24023 #: ../src/guestfs-actions.pod:634
24024 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24028 #: ../src/guestfs-actions.pod:640
24029 msgid "(Added in 1.3.15)"
24033 #: ../src/guestfs-actions.pod:642
24034 msgid "guestfs_base64_in"
24038 #: ../src/guestfs-actions.pod:644
24042 " guestfs_base64_in (guestfs_h *g,\n"
24043 " const char *base64file,\n"
24044 " const char *filename);\n"
24049 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24050 msgid "(Added in 1.3.5)"
24054 #: ../src/guestfs-actions.pod:656
24055 msgid "guestfs_base64_out"
24059 #: ../src/guestfs-actions.pod:658
24063 " guestfs_base64_out (guestfs_h *g,\n"
24064 " const char *filename,\n"
24065 " const char *base64file);\n"
24070 #: ../src/guestfs-actions.pod:670
24071 msgid "guestfs_blockdev_flushbufs"
24075 #: ../src/guestfs-actions.pod:672
24079 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24080 " const char *device);\n"
24085 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24086 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24087 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24088 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24089 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24090 msgid "(Added in 0.9.3)"
24094 #: ../src/guestfs-actions.pod:685
24095 msgid "guestfs_blockdev_getbsz"
24099 #: ../src/guestfs-actions.pod:687
24103 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24104 " const char *device);\n"
24109 #: ../src/guestfs-actions.pod:702
24110 msgid "guestfs_blockdev_getro"
24114 #: ../src/guestfs-actions.pod:704
24118 " guestfs_blockdev_getro (guestfs_h *g,\n"
24119 " const char *device);\n"
24124 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24125 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24126 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24127 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24128 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24129 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
24130 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
24131 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
24132 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
24133 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
24134 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
24135 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
24136 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
24137 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
24138 #: ../src/guestfs-actions.pod:5344
24139 msgid "This function returns a C truth value on success or -1 on error."
24143 #: ../src/guestfs-actions.pod:717
24144 msgid "guestfs_blockdev_getsize64"
24148 #: ../src/guestfs-actions.pod:719
24152 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24153 " const char *device);\n"
24158 #: ../src/guestfs-actions.pod:725
24159 msgid "See also C<guestfs_blockdev_getsz>."
24163 #: ../src/guestfs-actions.pod:733
24164 msgid "guestfs_blockdev_getss"
24168 #: ../src/guestfs-actions.pod:735
24172 " guestfs_blockdev_getss (guestfs_h *g,\n"
24173 " const char *device);\n"
24178 #: ../src/guestfs-actions.pod:742
24180 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24185 #: ../src/guestfs-actions.pod:751
24186 msgid "guestfs_blockdev_getsz"
24190 #: ../src/guestfs-actions.pod:753
24194 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24195 " const char *device);\n"
24200 #: ../src/guestfs-actions.pod:760
24202 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24203 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24207 #: ../src/guestfs-actions.pod:770
24208 msgid "guestfs_blockdev_rereadpt"
24212 #: ../src/guestfs-actions.pod:772
24216 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24217 " const char *device);\n"
24222 #: ../src/guestfs-actions.pod:784
24223 msgid "guestfs_blockdev_setbsz"
24227 #: ../src/guestfs-actions.pod:786
24231 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24232 " const char *device,\n"
24233 " int blocksize);\n"
24238 #: ../src/guestfs-actions.pod:802
24239 msgid "guestfs_blockdev_setro"
24243 #: ../src/guestfs-actions.pod:804
24247 " guestfs_blockdev_setro (guestfs_h *g,\n"
24248 " const char *device);\n"
24253 #: ../src/guestfs-actions.pod:816
24254 msgid "guestfs_blockdev_setrw"
24258 #: ../src/guestfs-actions.pod:818
24262 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24263 " const char *device);\n"
24268 #: ../src/guestfs-actions.pod:830
24269 msgid "guestfs_btrfs_filesystem_resize"
24273 #: ../src/guestfs-actions.pod:832
24277 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24278 " const char *mountpoint,\n"
24284 #: ../src/guestfs-actions.pod:842
24287 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24292 #: ../src/guestfs-actions.pod:865
24293 msgid "(Added in 1.11.17)"
24297 #: ../src/guestfs-actions.pod:867
24298 msgid "guestfs_btrfs_filesystem_resize_va"
24302 #: ../src/guestfs-actions.pod:869
24306 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24307 " const char *mountpoint,\n"
24308 " va_list args);\n"
24313 #: ../src/guestfs-actions.pod:874
24314 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24318 #: ../src/guestfs-actions.pod:878
24319 msgid "guestfs_btrfs_filesystem_resize_argv"
24323 #: ../src/guestfs-actions.pod:880
24327 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24328 " const char *mountpoint,\n"
24329 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24334 #: ../src/guestfs-actions.pod:885
24335 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24339 #: ../src/guestfs-actions.pod:889
24340 msgid "guestfs_case_sensitive_path"
24344 #: ../src/guestfs-actions.pod:891
24348 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24349 " const char *path);\n"
24354 #: ../src/guestfs-actions.pod:917
24356 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24357 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24358 "how the directories were originally created under Windows)."
24362 #: ../src/guestfs-actions.pod:925
24363 msgid "See also C<guestfs_realpath>."
24367 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
24368 msgid "(Added in 1.0.75)"
24372 #: ../src/guestfs-actions.pod:932
24373 msgid "guestfs_cat"
24377 #: ../src/guestfs-actions.pod:934
24381 " guestfs_cat (guestfs_h *g,\n"
24382 " const char *path);\n"
24387 #: ../src/guestfs-actions.pod:940
24389 "Note that this function cannot correctly handle binary files (specifically, "
24390 "files containing C<\\0> character which is treated as end of string). For "
24391 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24392 "functions which have a more complex interface."
24396 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
24397 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
24398 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
24399 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
24400 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
24401 #: ../src/guestfs-actions.pod:7559
24402 msgid "(Added in 0.4)"
24406 #: ../src/guestfs-actions.pod:953
24407 msgid "guestfs_checksum"
24411 #: ../src/guestfs-actions.pod:955
24415 " guestfs_checksum (guestfs_h *g,\n"
24416 " const char *csumtype,\n"
24417 " const char *path);\n"
24422 #: ../src/guestfs-actions.pod:1001
24423 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24427 #: ../src/guestfs-actions.pod:1003
24428 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24432 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24433 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
24434 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
24435 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
24436 msgid "(Added in 1.0.2)"
24440 #: ../src/guestfs-actions.pod:1010
24441 msgid "guestfs_checksum_device"
24445 #: ../src/guestfs-actions.pod:1012
24449 " guestfs_checksum_device (guestfs_h *g,\n"
24450 " const char *csumtype,\n"
24451 " const char *device);\n"
24456 #: ../src/guestfs-actions.pod:1017
24458 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24459 "device named C<device>. For the types of checksums supported see the "
24460 "C<guestfs_checksum> command."
24464 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
24465 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
24466 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
24467 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
24468 #: ../src/guestfs-actions.pod:7571
24469 msgid "(Added in 1.3.2)"
24473 #: ../src/guestfs-actions.pod:1026
24474 msgid "guestfs_checksums_out"
24478 #: ../src/guestfs-actions.pod:1028
24482 " guestfs_checksums_out (guestfs_h *g,\n"
24483 " const char *csumtype,\n"
24484 " const char *directory,\n"
24485 " const char *sumsfile);\n"
24490 #: ../src/guestfs-actions.pod:1048
24491 msgid "(Added in 1.3.7)"
24495 #: ../src/guestfs-actions.pod:1050
24496 msgid "guestfs_chmod"
24500 #: ../src/guestfs-actions.pod:1052
24504 " guestfs_chmod (guestfs_h *g,\n"
24506 " const char *path);\n"
24511 #: ../src/guestfs-actions.pod:1070
24512 msgid "guestfs_chown"
24516 #: ../src/guestfs-actions.pod:1072
24520 " guestfs_chown (guestfs_h *g,\n"
24523 " const char *path);\n"
24528 #: ../src/guestfs-actions.pod:1088
24529 msgid "guestfs_command"
24533 #: ../src/guestfs-actions.pod:1090
24537 " guestfs_command (guestfs_h *g,\n"
24538 " char *const *arguments);\n"
24543 #: ../src/guestfs-actions.pod:1099
24545 "The single parameter is an argv-style list of arguments. The first element "
24546 "is the name of the program to run. Subsequent elements are parameters. The "
24547 "list must be non-empty (ie. must contain a program name). Note that the "
24548 "command runs directly, and is I<not> invoked via the shell (see "
24553 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24554 #: ../src/guestfs-actions.pod:1615
24555 msgid "(Added in 0.9.1)"
24559 #: ../src/guestfs-actions.pod:1132
24560 msgid "guestfs_command_lines"
24564 #: ../src/guestfs-actions.pod:1134
24568 " guestfs_command_lines (guestfs_h *g,\n"
24569 " char *const *arguments);\n"
24574 #: ../src/guestfs-actions.pod:1138
24576 "This is the same as C<guestfs_command>, but splits the result into a list of "
24581 #: ../src/guestfs-actions.pod:1141
24582 msgid "See also: C<guestfs_sh_lines>"
24586 #: ../src/guestfs-actions.pod:1152
24587 msgid "guestfs_config"
24591 #: ../src/guestfs-actions.pod:1154
24595 " guestfs_config (guestfs_h *g,\n"
24596 " const char *qemuparam,\n"
24597 " const char *qemuvalue);\n"
24602 #: ../src/guestfs-actions.pod:1172
24603 msgid "guestfs_copy_size"
24607 #: ../src/guestfs-actions.pod:1174
24611 " guestfs_copy_size (guestfs_h *g,\n"
24612 " const char *src,\n"
24613 " const char *dest,\n"
24614 " int64_t size);\n"
24619 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24620 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24621 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24622 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
24623 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
24624 #: ../src/guestfs-actions.pod:7807
24626 "This long-running command can generate progress notification messages so "
24627 "that the caller can display a progress bar or indicator. To receive these "
24628 "messages, the caller must register a progress event callback. See L<guestfs"
24629 "(3)/GUESTFS_EVENT_PROGRESS>."
24633 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
24634 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
24635 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
24636 msgid "(Added in 1.0.87)"
24640 #: ../src/guestfs-actions.pod:1195
24645 #: ../src/guestfs-actions.pod:1197
24649 " guestfs_cp (guestfs_h *g,\n"
24650 " const char *src,\n"
24651 " const char *dest);\n"
24656 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24657 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24658 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
24659 #: ../src/guestfs-actions.pod:5596
24660 msgid "(Added in 1.0.18)"
24664 #: ../src/guestfs-actions.pod:1209
24665 msgid "guestfs_cp_a"
24669 #: ../src/guestfs-actions.pod:1211
24673 " guestfs_cp_a (guestfs_h *g,\n"
24674 " const char *src,\n"
24675 " const char *dest);\n"
24680 #: ../src/guestfs-actions.pod:1223
24685 #: ../src/guestfs-actions.pod:1225
24689 " guestfs_dd (guestfs_h *g,\n"
24690 " const char *src,\n"
24691 " const char *dest);\n"
24696 #: ../src/guestfs-actions.pod:1235
24698 "If the destination is a device, it must be as large or larger than the "
24699 "source file or device, otherwise the copy will fail. This command cannot do "
24700 "partial copies (see C<guestfs_copy_size>)."
24704 #: ../src/guestfs-actions.pod:1243
24709 #: ../src/guestfs-actions.pod:1245
24713 " guestfs_df (guestfs_h *g);\n"
24718 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24720 "This command is mostly useful for interactive sessions. It is I<not> "
24721 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
24726 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24727 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
24728 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
24729 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
24730 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
24731 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
24732 #: ../src/guestfs-actions.pod:7650
24733 msgid "(Added in 1.0.54)"
24737 #: ../src/guestfs-actions.pod:1259
24738 msgid "guestfs_df_h"
24742 #: ../src/guestfs-actions.pod:1261
24746 " guestfs_df_h (guestfs_h *g);\n"
24751 #: ../src/guestfs-actions.pod:1276
24752 msgid "guestfs_dmesg"
24756 #: ../src/guestfs-actions.pod:1278
24760 " guestfs_dmesg (guestfs_h *g);\n"
24765 #: ../src/guestfs-actions.pod:1285
24767 "Another way to get the same information is to enable verbose messages with "
24768 "C<guestfs_set_verbose> or by setting the environment variable "
24769 "C<LIBGUESTFS_DEBUG=1> before running the program."
24773 #: ../src/guestfs-actions.pod:1295
24774 msgid "guestfs_download"
24778 #: ../src/guestfs-actions.pod:1297
24782 " guestfs_download (guestfs_h *g,\n"
24783 " const char *remotefilename,\n"
24784 " const char *filename);\n"
24789 #: ../src/guestfs-actions.pod:1307
24790 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24794 #: ../src/guestfs-actions.pod:1318
24795 msgid "guestfs_download_offset"
24799 #: ../src/guestfs-actions.pod:1320
24803 " guestfs_download_offset (guestfs_h *g,\n"
24804 " const char *remotefilename,\n"
24805 " const char *filename,\n"
24806 " int64_t offset,\n"
24807 " int64_t size);\n"
24812 #: ../src/guestfs-actions.pod:1333
24814 "Note that there is no limit on the amount of data that can be downloaded "
24815 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24816 "full amount unless an error occurs."
24820 #: ../src/guestfs-actions.pod:1338
24821 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24825 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
24826 msgid "(Added in 1.5.17)"
24830 #: ../src/guestfs-actions.pod:1349
24831 msgid "guestfs_drop_caches"
24835 #: ../src/guestfs-actions.pod:1351
24839 " guestfs_drop_caches (guestfs_h *g,\n"
24840 " int whattodrop);\n"
24845 #: ../src/guestfs-actions.pod:1369
24850 #: ../src/guestfs-actions.pod:1371
24854 " guestfs_du (guestfs_h *g,\n"
24855 " const char *path);\n"
24860 #: ../src/guestfs-actions.pod:1394
24861 msgid "guestfs_e2fsck_f"
24865 #: ../src/guestfs-actions.pod:1396
24869 " guestfs_e2fsck_f (guestfs_h *g,\n"
24870 " const char *device);\n"
24875 #: ../src/guestfs-actions.pod:1404
24877 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
24878 "Normally you should use C<guestfs_fsck>."
24882 #: ../src/guestfs-actions.pod:1409
24883 msgid "(Added in 1.0.29)"
24887 #: ../src/guestfs-actions.pod:1411
24888 msgid "guestfs_echo_daemon"
24892 #: ../src/guestfs-actions.pod:1413
24896 " guestfs_echo_daemon (guestfs_h *g,\n"
24897 " char *const *words);\n"
24902 #: ../src/guestfs-actions.pod:1422
24903 msgid "See also C<guestfs_ping_daemon>."
24907 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24908 #: ../src/guestfs-actions.pod:6453
24909 msgid "(Added in 1.0.69)"
24913 #: ../src/guestfs-actions.pod:1429
24914 msgid "guestfs_egrep"
24918 #: ../src/guestfs-actions.pod:1431
24922 " guestfs_egrep (guestfs_h *g,\n"
24923 " const char *regex,\n"
24924 " const char *path);\n"
24929 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24930 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24931 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24932 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
24933 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
24934 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
24935 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
24936 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
24937 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
24938 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
24939 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
24940 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
24941 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
24942 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
24943 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
24944 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
24945 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
24946 msgid "(Added in 1.0.66)"
24950 #: ../src/guestfs-actions.pod:1448
24951 msgid "guestfs_egrepi"
24955 #: ../src/guestfs-actions.pod:1450
24959 " guestfs_egrepi (guestfs_h *g,\n"
24960 " const char *regex,\n"
24961 " const char *path);\n"
24966 #: ../src/guestfs-actions.pod:1467
24967 msgid "guestfs_equal"
24971 #: ../src/guestfs-actions.pod:1469
24975 " guestfs_equal (guestfs_h *g,\n"
24976 " const char *file1,\n"
24977 " const char *file2);\n"
24982 #: ../src/guestfs-actions.pod:1483
24983 msgid "guestfs_exists"
24987 #: ../src/guestfs-actions.pod:1485
24991 " guestfs_exists (guestfs_h *g,\n"
24992 " const char *path);\n"
24997 #: ../src/guestfs-actions.pod:1492
24998 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25002 #: ../src/guestfs-actions.pod:1498
25003 msgid "guestfs_fallocate"
25007 #: ../src/guestfs-actions.pod:1500
25011 " guestfs_fallocate (guestfs_h *g,\n"
25012 " const char *path,\n"
25018 #: ../src/guestfs-actions.pod:1505
25020 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25025 #: ../src/guestfs-actions.pod:1524
25026 msgid "guestfs_fallocate64"
25030 #: ../src/guestfs-actions.pod:1526
25034 " guestfs_fallocate64 (guestfs_h *g,\n"
25035 " const char *path,\n"
25041 #: ../src/guestfs-actions.pod:1535
25043 "Note that this call allocates disk blocks for the file. To create a sparse "
25044 "file use C<guestfs_truncate_size> instead."
25048 #: ../src/guestfs-actions.pod:1538
25050 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25051 "oversight it only allowed 30 bit lengths to be specified, effectively "
25052 "limiting the maximum size of files created through that call to 1GB."
25056 #: ../src/guestfs-actions.pod:1549
25057 msgid "(Added in 1.3.17)"
25061 #: ../src/guestfs-actions.pod:1551
25062 msgid "guestfs_fgrep"
25066 #: ../src/guestfs-actions.pod:1553
25070 " guestfs_fgrep (guestfs_h *g,\n"
25071 " const char *pattern,\n"
25072 " const char *path);\n"
25077 #: ../src/guestfs-actions.pod:1570
25078 msgid "guestfs_fgrepi"
25082 #: ../src/guestfs-actions.pod:1572
25086 " guestfs_fgrepi (guestfs_h *g,\n"
25087 " const char *pattern,\n"
25088 " const char *path);\n"
25093 #: ../src/guestfs-actions.pod:1589
25094 msgid "guestfs_file"
25098 #: ../src/guestfs-actions.pod:1591
25102 " guestfs_file (guestfs_h *g,\n"
25103 " const char *path);\n"
25108 #: ../src/guestfs-actions.pod:1609
25110 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25111 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25115 #: ../src/guestfs-actions.pod:1617
25116 msgid "guestfs_file_architecture"
25120 #: ../src/guestfs-actions.pod:1619
25124 " guestfs_file_architecture (guestfs_h *g,\n"
25125 " const char *filename);\n"
25130 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25131 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
25132 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
25133 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
25134 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
25135 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
25136 #: ../src/guestfs-actions.pod:3546
25137 msgid "(Added in 1.5.3)"
25141 #: ../src/guestfs-actions.pod:1729
25142 msgid "guestfs_filesize"
25146 #: ../src/guestfs-actions.pod:1731
25150 " guestfs_filesize (guestfs_h *g,\n"
25151 " const char *file);\n"
25156 #: ../src/guestfs-actions.pod:1737
25158 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25159 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
25160 "devices, use C<guestfs_blockdev_getsize64>."
25164 #: ../src/guestfs-actions.pod:1743
25165 msgid "(Added in 1.0.82)"
25169 #: ../src/guestfs-actions.pod:1745
25170 msgid "guestfs_fill"
25174 #: ../src/guestfs-actions.pod:1747
25178 " guestfs_fill (guestfs_h *g,\n"
25181 " const char *path);\n"
25186 #: ../src/guestfs-actions.pod:1757
25188 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25189 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
25190 "bytes use C<guestfs_fill_pattern>."
25194 #: ../src/guestfs-actions.pod:1769
25195 msgid "(Added in 1.0.79)"
25199 #: ../src/guestfs-actions.pod:1771
25200 msgid "guestfs_fill_pattern"
25204 #: ../src/guestfs-actions.pod:1773
25208 " guestfs_fill_pattern (guestfs_h *g,\n"
25209 " const char *pattern,\n"
25211 " const char *path);\n"
25216 #: ../src/guestfs-actions.pod:1779
25218 "This function is like C<guestfs_fill> except that it creates a new file of "
25219 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
25220 "pattern is truncated if necessary to ensure the length of the file is "
25221 "exactly C<len> bytes."
25225 #: ../src/guestfs-actions.pod:1791
25226 msgid "(Added in 1.3.12)"
25230 #: ../src/guestfs-actions.pod:1793
25231 msgid "guestfs_find"
25235 #: ../src/guestfs-actions.pod:1795
25239 " guestfs_find (guestfs_h *g,\n"
25240 " const char *directory);\n"
25245 #: ../src/guestfs-actions.pod:1811
25247 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25251 #: ../src/guestfs-actions.pod:1824
25252 msgid "See also C<guestfs_find0>."
25256 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
25257 #: ../src/guestfs-actions.pod:6014
25258 msgid "(Added in 1.0.27)"
25262 #: ../src/guestfs-actions.pod:1835
25263 msgid "guestfs_find0"
25267 #: ../src/guestfs-actions.pod:1837
25271 " guestfs_find0 (guestfs_h *g,\n"
25272 " const char *directory,\n"
25273 " const char *files);\n"
25278 #: ../src/guestfs-actions.pod:1846
25280 "This command works the same way as C<guestfs_find> with the following "
25285 #: ../src/guestfs-actions.pod:1873
25286 msgid "(Added in 1.0.74)"
25290 #: ../src/guestfs-actions.pod:1875
25291 msgid "guestfs_findfs_label"
25295 #: ../src/guestfs-actions.pod:1877
25299 " guestfs_findfs_label (guestfs_h *g,\n"
25300 " const char *label);\n"
25305 #: ../src/guestfs-actions.pod:1885
25306 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25310 #: ../src/guestfs-actions.pod:1892
25311 msgid "guestfs_findfs_uuid"
25315 #: ../src/guestfs-actions.pod:1894
25319 " guestfs_findfs_uuid (guestfs_h *g,\n"
25320 " const char *uuid);\n"
25325 #: ../src/guestfs-actions.pod:1902
25326 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25330 #: ../src/guestfs-actions.pod:1909
25331 msgid "guestfs_fsck"
25335 #: ../src/guestfs-actions.pod:1911
25339 " guestfs_fsck (guestfs_h *g,\n"
25340 " const char *fstype,\n"
25341 " const char *device);\n"
25346 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
25347 msgid "(Added in 1.0.16)"
25351 #: ../src/guestfs-actions.pod:1948
25352 msgid "guestfs_get_append"
25356 #: ../src/guestfs-actions.pod:1950
25360 " guestfs_get_append (guestfs_h *g);\n"
25365 #: ../src/guestfs-actions.pod:1958
25367 "This function returns a string which may be NULL. There is no way to return "
25368 "an error from this function. The string is owned by the guest handle and "
25369 "must I<not> be freed."
25373 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
25374 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
25375 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
25376 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
25377 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
25378 msgid "(Added in 1.0.26)"
25382 #: ../src/guestfs-actions.pod:1964
25383 msgid "guestfs_get_attach_method"
25387 #: ../src/guestfs-actions.pod:1966
25391 " guestfs_get_attach_method (guestfs_h *g);\n"
25396 #: ../src/guestfs-actions.pod:1969
25397 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
25401 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
25402 msgid "(Added in 1.9.8)"
25406 #: ../src/guestfs-actions.pod:1976
25407 msgid "guestfs_get_autosync"
25411 #: ../src/guestfs-actions.pod:1978
25415 " guestfs_get_autosync (guestfs_h *g);\n"
25420 #: ../src/guestfs-actions.pod:1987
25421 msgid "guestfs_get_direct"
25425 #: ../src/guestfs-actions.pod:1989
25429 " guestfs_get_direct (guestfs_h *g);\n"
25434 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
25435 msgid "(Added in 1.0.72)"
25439 #: ../src/guestfs-actions.pod:1998
25440 msgid "guestfs_get_e2label"
25444 #: ../src/guestfs-actions.pod:2000
25448 " guestfs_get_e2label (guestfs_h *g,\n"
25449 " const char *device);\n"
25454 #: ../src/guestfs-actions.pod:2004
25456 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25461 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25462 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
25463 msgid "(Added in 1.0.15)"
25467 #: ../src/guestfs-actions.pod:2019
25468 msgid "guestfs_get_e2uuid"
25472 #: ../src/guestfs-actions.pod:2021
25476 " guestfs_get_e2uuid (guestfs_h *g,\n"
25477 " const char *device);\n"
25482 #: ../src/guestfs-actions.pod:2025
25484 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25489 #: ../src/guestfs-actions.pod:2040
25490 msgid "guestfs_get_memsize"
25494 #: ../src/guestfs-actions.pod:2042
25498 " guestfs_get_memsize (guestfs_h *g);\n"
25503 #: ../src/guestfs-actions.pod:2048
25505 "If C<guestfs_set_memsize> was not called on this handle, and if "
25506 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25507 "value for memsize."
25511 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
25512 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
25513 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
25514 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
25515 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
25516 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
25517 msgid "(Added in 1.0.55)"
25521 #: ../src/guestfs-actions.pod:2059
25522 msgid "guestfs_get_network"
25526 #: ../src/guestfs-actions.pod:2061
25530 " guestfs_get_network (guestfs_h *g);\n"
25535 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
25536 msgid "(Added in 1.5.4)"
25540 #: ../src/guestfs-actions.pod:2070
25541 msgid "guestfs_get_path"
25545 #: ../src/guestfs-actions.pod:2072
25549 " guestfs_get_path (guestfs_h *g);\n"
25554 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25556 "This function returns a string, or NULL on error. The string is owned by "
25557 "the guest handle and must I<not> be freed."
25561 #: ../src/guestfs-actions.pod:2085
25562 msgid "guestfs_get_pgroup"
25566 #: ../src/guestfs-actions.pod:2087
25570 " guestfs_get_pgroup (guestfs_h *g);\n"
25575 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
25576 #: ../src/guestfs-actions.pod:7690
25578 #| msgid "(Added in 1.5.1)"
25579 msgid "(Added in 1.11.18)"
25580 msgstr "(Додано у 1.5.1)"
25583 #: ../src/guestfs-actions.pod:2096
25584 msgid "guestfs_get_pid"
25588 #: ../src/guestfs-actions.pod:2098
25592 " guestfs_get_pid (guestfs_h *g);\n"
25597 #: ../src/guestfs-actions.pod:2108
25598 msgid "(Added in 1.0.56)"
25602 #: ../src/guestfs-actions.pod:2110
25603 msgid "guestfs_get_qemu"
25607 #: ../src/guestfs-actions.pod:2112
25611 " guestfs_get_qemu (guestfs_h *g);\n"
25616 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
25617 msgid "(Added in 1.0.6)"
25621 #: ../src/guestfs-actions.pod:2125
25622 msgid "guestfs_get_recovery_proc"
25626 #: ../src/guestfs-actions.pod:2127
25630 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25635 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
25636 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
25637 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
25638 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
25639 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
25640 #: ../src/guestfs-actions.pod:7313
25641 msgid "(Added in 1.0.77)"
25645 #: ../src/guestfs-actions.pod:2136
25646 msgid "guestfs_get_selinux"
25650 #: ../src/guestfs-actions.pod:2138
25654 " guestfs_get_selinux (guestfs_h *g);\n"
25659 #: ../src/guestfs-actions.pod:2141
25661 "This returns the current setting of the selinux flag which is passed to the "
25662 "appliance at boot time. See C<guestfs_set_selinux>."
25666 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25667 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
25668 msgid "(Added in 1.0.67)"
25672 #: ../src/guestfs-actions.pod:2151
25673 msgid "guestfs_get_state"
25677 #: ../src/guestfs-actions.pod:2153
25681 " guestfs_get_state (guestfs_h *g);\n"
25686 #: ../src/guestfs-actions.pod:2165
25687 msgid "guestfs_get_trace"
25691 #: ../src/guestfs-actions.pod:2167
25695 " guestfs_get_trace (guestfs_h *g);\n"
25700 #: ../src/guestfs-actions.pod:2176
25701 msgid "guestfs_get_umask"
25705 #: ../src/guestfs-actions.pod:2178
25709 " guestfs_get_umask (guestfs_h *g);\n"
25714 #: ../src/guestfs-actions.pod:2181
25716 "Return the current umask. By default the umask is C<022> unless it has been "
25717 "set by calling C<guestfs_umask>."
25721 #: ../src/guestfs-actions.pod:2188
25722 msgid "guestfs_get_verbose"
25726 #: ../src/guestfs-actions.pod:2190
25730 " guestfs_get_verbose (guestfs_h *g);\n"
25735 #: ../src/guestfs-actions.pod:2199
25736 msgid "guestfs_getcon"
25740 #: ../src/guestfs-actions.pod:2201
25744 " guestfs_getcon (guestfs_h *g);\n"
25749 #: ../src/guestfs-actions.pod:2206
25751 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25755 #: ../src/guestfs-actions.pod:2214
25756 msgid "guestfs_getxattr"
25760 #: ../src/guestfs-actions.pod:2216
25764 " guestfs_getxattr (guestfs_h *g,\n"
25765 " const char *path,\n"
25766 " const char *name,\n"
25767 " size_t *size_r);\n"
25772 #: ../src/guestfs-actions.pod:2222
25774 "Get a single extended attribute from file C<path> named C<name>. This call "
25775 "follows symlinks. If you want to lookup an extended attribute for the "
25776 "symlink itself, use C<guestfs_lgetxattr>."
25780 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
25782 "Normally it is better to get all extended attributes from a file in one go "
25783 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
25784 "implementations are buggy and do not provide a way to list out attributes. "
25785 "For these filesystems (notably ntfs-3g) you have to know the names of the "
25786 "extended attributes you want in advance and call this function."
25790 #: ../src/guestfs-actions.pod:2236
25791 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25795 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
25796 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
25797 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
25798 #: ../src/guestfs-actions.pod:5822
25800 "This function returns a buffer, or NULL on error. The size of the returned "
25801 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
25806 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
25807 msgid "(Added in 1.7.24)"
25811 #: ../src/guestfs-actions.pod:2244
25812 msgid "guestfs_getxattrs"
25816 #: ../src/guestfs-actions.pod:2246
25819 " struct guestfs_xattr_list *\n"
25820 " guestfs_getxattrs (guestfs_h *g,\n"
25821 " const char *path);\n"
25826 #: ../src/guestfs-actions.pod:2256
25827 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25831 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
25832 #: ../src/guestfs-actions.pod:4398
25834 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25835 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
25839 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
25840 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
25841 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
25842 #: ../src/guestfs-actions.pod:7901
25843 msgid "(Added in 1.0.59)"
25847 #: ../src/guestfs-actions.pod:2264
25848 msgid "guestfs_glob_expand"
25852 #: ../src/guestfs-actions.pod:2266
25856 " guestfs_glob_expand (guestfs_h *g,\n"
25857 " const char *pattern);\n"
25862 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
25863 #: ../src/guestfs-actions.pod:6716
25864 msgid "(Added in 1.0.50)"
25868 #: ../src/guestfs-actions.pod:2287
25869 msgid "guestfs_grep"
25873 #: ../src/guestfs-actions.pod:2289
25877 " guestfs_grep (guestfs_h *g,\n"
25878 " const char *regex,\n"
25879 " const char *path);\n"
25884 #: ../src/guestfs-actions.pod:2306
25885 msgid "guestfs_grepi"
25889 #: ../src/guestfs-actions.pod:2308
25893 " guestfs_grepi (guestfs_h *g,\n"
25894 " const char *regex,\n"
25895 " const char *path);\n"
25900 #: ../src/guestfs-actions.pod:2325
25901 msgid "guestfs_grub_install"
25905 #: ../src/guestfs-actions.pod:2327
25909 " guestfs_grub_install (guestfs_h *g,\n"
25910 " const char *root,\n"
25911 " const char *device);\n"
25916 #: ../src/guestfs-actions.pod:2348
25917 msgid "(Added in 1.0.17)"
25921 #: ../src/guestfs-actions.pod:2350
25922 msgid "guestfs_head"
25926 #: ../src/guestfs-actions.pod:2352
25930 " guestfs_head (guestfs_h *g,\n"
25931 " const char *path);\n"
25936 #: ../src/guestfs-actions.pod:2368
25937 msgid "guestfs_head_n"
25941 #: ../src/guestfs-actions.pod:2370
25945 " guestfs_head_n (guestfs_h *g,\n"
25947 " const char *path);\n"
25952 #: ../src/guestfs-actions.pod:2392
25953 msgid "guestfs_hexdump"
25957 #: ../src/guestfs-actions.pod:2394
25961 " guestfs_hexdump (guestfs_h *g,\n"
25962 " const char *path);\n"
25967 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
25968 #: ../src/guestfs-actions.pod:6835
25969 msgid "(Added in 1.0.22)"
25973 #: ../src/guestfs-actions.pod:2409
25974 msgid "guestfs_initrd_cat"
25978 #: ../src/guestfs-actions.pod:2411
25982 " guestfs_initrd_cat (guestfs_h *g,\n"
25983 " const char *initrdpath,\n"
25984 " const char *filename,\n"
25985 " size_t *size_r);\n"
25990 #: ../src/guestfs-actions.pod:2427
25991 msgid "See also C<guestfs_initrd_list>."
25995 #: ../src/guestfs-actions.pod:2438
25996 msgid "guestfs_initrd_list"
26000 #: ../src/guestfs-actions.pod:2440
26004 " guestfs_initrd_list (guestfs_h *g,\n"
26005 " const char *path);\n"
26010 #: ../src/guestfs-actions.pod:2460
26011 msgid "guestfs_inotify_add_watch"
26015 #: ../src/guestfs-actions.pod:2462
26019 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26020 " const char *path,\n"
26026 #: ../src/guestfs-actions.pod:2481
26027 msgid "guestfs_inotify_close"
26031 #: ../src/guestfs-actions.pod:2483
26035 " guestfs_inotify_close (guestfs_h *g);\n"
26040 #: ../src/guestfs-actions.pod:2494
26041 msgid "guestfs_inotify_files"
26045 #: ../src/guestfs-actions.pod:2496
26049 " guestfs_inotify_files (guestfs_h *g);\n"
26054 #: ../src/guestfs-actions.pod:2499
26056 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26057 "returns a list of pathnames of objects that were touched. The returned "
26058 "pathnames are sorted and deduplicated."
26062 #: ../src/guestfs-actions.pod:2509
26063 msgid "guestfs_inotify_init"
26067 #: ../src/guestfs-actions.pod:2511
26071 " guestfs_inotify_init (guestfs_h *g,\n"
26072 " int maxevents);\n"
26077 #: ../src/guestfs-actions.pod:2519
26079 "C<maxevents> is the maximum number of events which will be queued up between "
26080 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
26081 "passed as C<0>, then the kernel (or previously set) default is used. For "
26082 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
26083 "throws away events, but records the fact that it threw them away by setting "
26084 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26085 "C<guestfs_inotify_read>)."
26089 #: ../src/guestfs-actions.pod:2529
26091 "Before any events are generated, you have to add some watches to the "
26092 "internal watch list. See: C<guestfs_inotify_add_watch>, "
26093 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26097 #: ../src/guestfs-actions.pod:2535
26099 "Queued up events should be read periodically by calling "
26100 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26101 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
26102 "often enough then you risk the internal queue overflowing."
26106 #: ../src/guestfs-actions.pod:2542
26108 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
26109 "This also removes any watches automatically."
26113 #: ../src/guestfs-actions.pod:2555
26114 msgid "guestfs_inotify_read"
26118 #: ../src/guestfs-actions.pod:2557
26121 " struct guestfs_inotify_event_list *\n"
26122 " guestfs_inotify_read (guestfs_h *g);\n"
26127 #: ../src/guestfs-actions.pod:2571
26129 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26130 "there was an error. I<The caller must call "
26131 "C<guestfs_free_inotify_event_list> after use>."
26135 #: ../src/guestfs-actions.pod:2577
26136 msgid "guestfs_inotify_rm_watch"
26140 #: ../src/guestfs-actions.pod:2579
26144 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26150 #: ../src/guestfs-actions.pod:2583
26152 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
26156 #: ../src/guestfs-actions.pod:2590
26157 msgid "guestfs_inspect_get_arch"
26161 #: ../src/guestfs-actions.pod:2592
26165 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26166 " const char *root);\n"
26171 #: ../src/guestfs-actions.pod:2596
26173 "This returns the architecture of the inspected operating system. The "
26174 "possible return values are listed under C<guestfs_file_architecture>."
26178 #: ../src/guestfs-actions.pod:2610
26179 msgid "guestfs_inspect_get_distro"
26183 #: ../src/guestfs-actions.pod:2612
26187 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26188 " const char *root);\n"
26193 #: ../src/guestfs-actions.pod:2700
26194 msgid "guestfs_inspect_get_drive_mappings"
26198 #: ../src/guestfs-actions.pod:2702
26202 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26203 " const char *root);\n"
26208 #: ../src/guestfs-actions.pod:2731
26210 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26211 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26215 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
26216 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
26217 #: ../src/guestfs-actions.pod:7137
26219 "This function returns a NULL-terminated array of strings, or NULL if there "
26220 "was an error. The array of strings will always have length C<2n+1>, where "
26221 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
26222 "caller must free the strings and the array after use>."
26226 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
26227 msgid "(Added in 1.9.17)"
26231 #: ../src/guestfs-actions.pod:2743
26232 msgid "guestfs_inspect_get_filesystems"
26236 #: ../src/guestfs-actions.pod:2745
26240 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26241 " const char *root);\n"
26246 #: ../src/guestfs-actions.pod:2757
26248 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26249 "C<guestfs_inspect_get_mountpoints>."
26253 #: ../src/guestfs-actions.pod:2766
26254 msgid "guestfs_inspect_get_format"
26258 #: ../src/guestfs-actions.pod:2768
26262 " guestfs_inspect_get_format (guestfs_h *g,\n"
26263 " const char *root);\n"
26268 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
26269 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
26270 #: ../src/guestfs-actions.pod:6033
26271 msgid "(Added in 1.9.4)"
26275 #: ../src/guestfs-actions.pod:2804
26276 msgid "guestfs_inspect_get_hostname"
26280 #: ../src/guestfs-actions.pod:2806
26284 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26285 " const char *root);\n"
26290 #: ../src/guestfs-actions.pod:2821
26291 msgid "(Added in 1.7.9)"
26295 #: ../src/guestfs-actions.pod:2823
26296 msgid "guestfs_inspect_get_icon"
26300 #: ../src/guestfs-actions.pod:2825
26304 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26305 " const char *root,\n"
26306 " size_t *size_r,\n"
26312 #: ../src/guestfs-actions.pod:2836
26315 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26316 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26321 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
26322 #: ../src/guestfs-actions.pod:4982
26323 msgid "(Added in 1.11.12)"
26327 #: ../src/guestfs-actions.pod:2905
26328 msgid "guestfs_inspect_get_icon_va"
26332 #: ../src/guestfs-actions.pod:2907
26336 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26337 " const char *root,\n"
26338 " size_t *size_r,\n"
26339 " va_list args);\n"
26344 #: ../src/guestfs-actions.pod:2913
26345 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26349 #: ../src/guestfs-actions.pod:2917
26350 msgid "guestfs_inspect_get_icon_argv"
26354 #: ../src/guestfs-actions.pod:2919
26358 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26359 " const char *root,\n"
26360 " size_t *size_r,\n"
26361 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
26366 #: ../src/guestfs-actions.pod:2925
26367 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26371 #: ../src/guestfs-actions.pod:2929
26372 msgid "guestfs_inspect_get_major_version"
26376 #: ../src/guestfs-actions.pod:2931
26380 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26381 " const char *root);\n"
26386 #: ../src/guestfs-actions.pod:2953
26387 msgid "guestfs_inspect_get_minor_version"
26391 #: ../src/guestfs-actions.pod:2955
26395 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26396 " const char *root);\n"
26401 #: ../src/guestfs-actions.pod:2964
26403 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26404 "C<guestfs_inspect_get_major_version>."
26408 #: ../src/guestfs-actions.pod:2971
26409 msgid "guestfs_inspect_get_mountpoints"
26413 #: ../src/guestfs-actions.pod:2973
26417 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26418 " const char *root);\n"
26423 #: ../src/guestfs-actions.pod:2994
26425 "For operating systems like Windows which still use drive letters, this call "
26426 "will only return an entry for the first drive \"mounted on\" C</>. For "
26427 "information about the mapping of drive letters to partitions, see "
26428 "C<guestfs_inspect_get_drive_mappings>."
26432 #: ../src/guestfs-actions.pod:3000
26434 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26435 "C<guestfs_inspect_get_filesystems>."
26439 #: ../src/guestfs-actions.pod:3011
26440 msgid "guestfs_inspect_get_package_format"
26444 #: ../src/guestfs-actions.pod:3013
26448 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26449 " const char *root);\n"
26454 #: ../src/guestfs-actions.pod:3017
26456 "This function and C<guestfs_inspect_get_package_management> return the "
26457 "package format and package management tool used by the inspected operating "
26458 "system. For example for Fedora these functions would return C<rpm> (package "
26459 "format) and C<yum> (package management)."
26463 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
26464 msgid "(Added in 1.7.5)"
26468 #: ../src/guestfs-actions.pod:3037
26469 msgid "guestfs_inspect_get_package_management"
26473 #: ../src/guestfs-actions.pod:3039
26477 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26478 " const char *root);\n"
26483 #: ../src/guestfs-actions.pod:3043
26485 "C<guestfs_inspect_get_package_format> and this function return the package "
26486 "format and package management tool used by the inspected operating system. "
26487 "For example for Fedora these functions would return C<rpm> (package format) "
26488 "and C<yum> (package management)."
26492 #: ../src/guestfs-actions.pod:3065
26493 msgid "guestfs_inspect_get_product_name"
26497 #: ../src/guestfs-actions.pod:3067
26501 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26502 " const char *root);\n"
26507 #: ../src/guestfs-actions.pod:3086
26508 msgid "guestfs_inspect_get_product_variant"
26512 #: ../src/guestfs-actions.pod:3088
26516 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26517 " const char *root);\n"
26522 #: ../src/guestfs-actions.pod:3111
26524 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26525 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26529 #: ../src/guestfs-actions.pod:3118
26530 msgid "(Added in 1.9.13)"
26534 #: ../src/guestfs-actions.pod:3120
26535 msgid "guestfs_inspect_get_roots"
26539 #: ../src/guestfs-actions.pod:3122
26543 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26548 #: ../src/guestfs-actions.pod:3125
26550 "This function is a convenient way to get the list of root devices, as "
26551 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26552 "the whole inspection process."
26556 #: ../src/guestfs-actions.pod:3129
26558 "This returns an empty list if either no root devices were found or the "
26559 "caller has not called C<guestfs_inspect_os>."
26563 #: ../src/guestfs-actions.pod:3138
26564 msgid "(Added in 1.7.3)"
26568 #: ../src/guestfs-actions.pod:3140
26569 msgid "guestfs_inspect_get_type"
26573 #: ../src/guestfs-actions.pod:3142
26577 " guestfs_inspect_get_type (guestfs_h *g,\n"
26578 " const char *root);\n"
26583 #: ../src/guestfs-actions.pod:3179
26584 msgid "guestfs_inspect_get_windows_current_control_set"
26588 #: ../src/guestfs-actions.pod:3181
26592 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26593 " const char *root);\n"
26598 #: ../src/guestfs-actions.pod:3199
26599 msgid "guestfs_inspect_get_windows_systemroot"
26603 #: ../src/guestfs-actions.pod:3201
26607 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26608 " const char *root);\n"
26613 #: ../src/guestfs-actions.pod:3217
26614 msgid "(Added in 1.5.25)"
26618 #: ../src/guestfs-actions.pod:3219
26619 msgid "guestfs_inspect_is_live"
26623 #: ../src/guestfs-actions.pod:3221
26627 " guestfs_inspect_is_live (guestfs_h *g,\n"
26628 " const char *root);\n"
26633 #: ../src/guestfs-actions.pod:3225
26635 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26636 "disk), then this returns true if a live image was detected on the disk."
26640 #: ../src/guestfs-actions.pod:3235
26641 msgid "guestfs_inspect_is_multipart"
26645 #: ../src/guestfs-actions.pod:3237
26649 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26650 " const char *root);\n"
26655 #: ../src/guestfs-actions.pod:3241
26657 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26658 "disk), then this returns true if the disk is part of a set."
26662 #: ../src/guestfs-actions.pod:3251
26663 msgid "guestfs_inspect_is_netinst"
26667 #: ../src/guestfs-actions.pod:3253
26671 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26672 " const char *root);\n"
26677 #: ../src/guestfs-actions.pod:3257
26679 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26680 "disk), then this returns true if the disk is a network installer, ie. not a "
26681 "self-contained install CD but one which is likely to require network access "
26682 "to complete the install."
26686 #: ../src/guestfs-actions.pod:3269
26687 msgid "guestfs_inspect_list_applications"
26691 #: ../src/guestfs-actions.pod:3271
26694 " struct guestfs_application_list *\n"
26695 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26696 " const char *root);\n"
26701 #: ../src/guestfs-actions.pod:3277
26703 "I<Note:> This call works differently from other parts of the inspection "
26704 "API. You have to call C<guestfs_inspect_os>, then "
26705 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26706 "this. Listing applications is a significantly more difficult operation "
26707 "which requires access to the full filesystem. Also note that unlike the "
26708 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26709 "the libguestfs handle, this call actually reads parts of the mounted "
26710 "filesystems during the call."
26714 #: ../src/guestfs-actions.pod:3367
26716 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26717 "there was an error. I<The caller must call C<guestfs_free_application_list> "
26722 #: ../src/guestfs-actions.pod:3371
26723 msgid "(Added in 1.7.8)"
26727 #: ../src/guestfs-actions.pod:3373
26728 msgid "guestfs_inspect_os"
26732 #: ../src/guestfs-actions.pod:3375
26736 " guestfs_inspect_os (guestfs_h *g);\n"
26741 #: ../src/guestfs-actions.pod:3391
26743 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26744 "functions in order to query further information about each operating system, "
26745 "such as the name and version."
26749 #: ../src/guestfs-actions.pod:3396
26751 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26752 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26753 "the contents. This should be called with no disks currently mounted. The "
26754 "function may also use Augeas, so any existing Augeas handle will be closed."
26758 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
26759 #: ../src/guestfs-actions.pod:3821
26760 msgid "See also C<guestfs_list_filesystems>."
26764 #: ../src/guestfs-actions.pod:3416
26765 msgid "guestfs_is_blockdev"
26769 #: ../src/guestfs-actions.pod:3418
26773 " guestfs_is_blockdev (guestfs_h *g,\n"
26774 " const char *path);\n"
26779 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
26780 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
26781 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
26782 #: ../src/guestfs-actions.pod:3586
26783 msgid "See also C<guestfs_stat>."
26787 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
26788 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
26789 #: ../src/guestfs-actions.pod:3590
26790 msgid "(Added in 1.5.10)"
26794 #: ../src/guestfs-actions.pod:3431
26795 msgid "guestfs_is_busy"
26799 #: ../src/guestfs-actions.pod:3433
26803 " guestfs_is_busy (guestfs_h *g);\n"
26808 #: ../src/guestfs-actions.pod:3445
26809 msgid "guestfs_is_chardev"
26813 #: ../src/guestfs-actions.pod:3447
26817 " guestfs_is_chardev (guestfs_h *g,\n"
26818 " const char *path);\n"
26823 #: ../src/guestfs-actions.pod:3460
26824 msgid "guestfs_is_config"
26828 #: ../src/guestfs-actions.pod:3462
26832 " guestfs_is_config (guestfs_h *g);\n"
26837 #: ../src/guestfs-actions.pod:3474
26838 msgid "guestfs_is_dir"
26842 #: ../src/guestfs-actions.pod:3476
26846 " guestfs_is_dir (guestfs_h *g,\n"
26847 " const char *path);\n"
26852 #: ../src/guestfs-actions.pod:3490
26853 msgid "guestfs_is_fifo"
26857 #: ../src/guestfs-actions.pod:3492
26861 " guestfs_is_fifo (guestfs_h *g,\n"
26862 " const char *path);\n"
26867 #: ../src/guestfs-actions.pod:3505
26868 msgid "guestfs_is_file"
26872 #: ../src/guestfs-actions.pod:3507
26876 " guestfs_is_file (guestfs_h *g,\n"
26877 " const char *path);\n"
26882 #: ../src/guestfs-actions.pod:3521
26883 msgid "guestfs_is_launching"
26887 #: ../src/guestfs-actions.pod:3523
26891 " guestfs_is_launching (guestfs_h *g);\n"
26896 #: ../src/guestfs-actions.pod:3535
26897 msgid "guestfs_is_lv"
26901 #: ../src/guestfs-actions.pod:3537
26905 " guestfs_is_lv (guestfs_h *g,\n"
26906 " const char *device);\n"
26911 #: ../src/guestfs-actions.pod:3548
26912 msgid "guestfs_is_ready"
26916 #: ../src/guestfs-actions.pod:3550
26920 " guestfs_is_ready (guestfs_h *g);\n"
26925 #: ../src/guestfs-actions.pod:3562
26926 msgid "guestfs_is_socket"
26930 #: ../src/guestfs-actions.pod:3564
26934 " guestfs_is_socket (guestfs_h *g,\n"
26935 " const char *path);\n"
26940 #: ../src/guestfs-actions.pod:3577
26941 msgid "guestfs_is_symlink"
26945 #: ../src/guestfs-actions.pod:3579
26949 " guestfs_is_symlink (guestfs_h *g,\n"
26950 " const char *path);\n"
26955 #: ../src/guestfs-actions.pod:3592
26956 msgid "guestfs_is_zero"
26960 #: ../src/guestfs-actions.pod:3594
26964 " guestfs_is_zero (guestfs_h *g,\n"
26965 " const char *path);\n"
26970 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
26971 msgid "(Added in 1.11.8)"
26975 #: ../src/guestfs-actions.pod:3605
26976 msgid "guestfs_is_zero_device"
26980 #: ../src/guestfs-actions.pod:3607
26984 " guestfs_is_zero_device (guestfs_h *g,\n"
26985 " const char *device);\n"
26990 #: ../src/guestfs-actions.pod:3619
26991 msgid "guestfs_kill_subprocess"
26995 #: ../src/guestfs-actions.pod:3621
26999 " guestfs_kill_subprocess (guestfs_h *g);\n"
27004 #: ../src/guestfs-actions.pod:3630
27005 msgid "guestfs_launch"
27009 #: ../src/guestfs-actions.pod:3632
27013 " guestfs_launch (guestfs_h *g);\n"
27018 #: ../src/guestfs-actions.pod:3650
27019 msgid "guestfs_lchown"
27023 #: ../src/guestfs-actions.pod:3652
27027 " guestfs_lchown (guestfs_h *g,\n"
27030 " const char *path);\n"
27035 #: ../src/guestfs-actions.pod:3658
27037 "Change the file owner to C<owner> and group to C<group>. This is like "
27038 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27039 "changed, not the target."
27043 #: ../src/guestfs-actions.pod:3670
27044 msgid "guestfs_lgetxattr"
27048 #: ../src/guestfs-actions.pod:3672
27052 " guestfs_lgetxattr (guestfs_h *g,\n"
27053 " const char *path,\n"
27054 " const char *name,\n"
27055 " size_t *size_r);\n"
27060 #: ../src/guestfs-actions.pod:3692
27061 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27065 #: ../src/guestfs-actions.pod:3700
27066 msgid "guestfs_lgetxattrs"
27070 #: ../src/guestfs-actions.pod:3702
27073 " struct guestfs_xattr_list *\n"
27074 " guestfs_lgetxattrs (guestfs_h *g,\n"
27075 " const char *path);\n"
27080 #: ../src/guestfs-actions.pod:3706
27082 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27083 "then it returns the extended attributes of the link itself."
27087 #: ../src/guestfs-actions.pod:3716
27088 msgid "guestfs_list_9p"
27092 #: ../src/guestfs-actions.pod:3718
27096 " guestfs_list_9p (guestfs_h *g);\n"
27101 #: ../src/guestfs-actions.pod:3730
27102 msgid "guestfs_list_devices"
27106 #: ../src/guestfs-actions.pod:3732
27110 " guestfs_list_devices (guestfs_h *g);\n"
27115 #: ../src/guestfs-actions.pod:3747
27116 msgid "guestfs_list_dm_devices"
27120 #: ../src/guestfs-actions.pod:3749
27124 " guestfs_list_dm_devices (guestfs_h *g);\n"
27129 #: ../src/guestfs-actions.pod:3754
27131 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27132 "previous call to C<guestfs_luks_open>."
27136 #: ../src/guestfs-actions.pod:3757
27138 "Device mapper devices which correspond to logical volumes are I<not> "
27139 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
27144 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
27145 msgid "(Added in 1.11.15)"
27149 #: ../src/guestfs-actions.pod:3767
27150 msgid "guestfs_list_filesystems"
27154 #: ../src/guestfs-actions.pod:3769
27158 " guestfs_list_filesystems (guestfs_h *g);\n"
27163 #: ../src/guestfs-actions.pod:3789
27165 "This command runs other libguestfs commands, which might include "
27166 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27167 "soon after launch and only when nothing is mounted."
27171 #: ../src/guestfs-actions.pod:3793
27173 "Not all of the filesystems returned will be mountable. In particular, swap "
27174 "partitions are returned in the list. Also this command does not check that "
27175 "each filesystem found is valid and mountable, and some filesystems might be "
27176 "mountable but require special options. Filesystems may not all belong to a "
27177 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27181 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
27182 msgid "(Added in 1.5.15)"
27186 #: ../src/guestfs-actions.pod:3809
27187 msgid "guestfs_list_partitions"
27188 msgstr "guestfs_list_partitions"
27191 #: ../src/guestfs-actions.pod:3811
27195 " guestfs_list_partitions (guestfs_h *g);\n"
27199 " guestfs_list_partitions (guestfs_h *g);\n"
27203 #: ../src/guestfs-actions.pod:3818
27205 "This does not return logical volumes. For that you will need to call "
27210 #: ../src/guestfs-actions.pod:3829
27212 msgstr "guestfs_ll"
27215 #: ../src/guestfs-actions.pod:3831
27219 " guestfs_ll (guestfs_h *g,\n"
27220 " const char *directory);\n"
27224 " guestfs_ll (guestfs_h *g,\n"
27225 " const char *directory);\n"
27229 #: ../src/guestfs-actions.pod:3846
27231 msgstr "guestfs_ln"
27234 #: ../src/guestfs-actions.pod:3848
27238 " guestfs_ln (guestfs_h *g,\n"
27239 " const char *target,\n"
27240 " const char *linkname);\n"
27244 " guestfs_ln (guestfs_h *g,\n"
27245 " const char *target,\n"
27246 " const char *linkname);\n"
27250 #: ../src/guestfs-actions.pod:3859
27251 msgid "guestfs_ln_f"
27252 msgstr "guestfs_ln_f"
27255 #: ../src/guestfs-actions.pod:3861
27259 " guestfs_ln_f (guestfs_h *g,\n"
27260 " const char *target,\n"
27261 " const char *linkname);\n"
27265 " guestfs_ln_f (guestfs_h *g,\n"
27266 " const char *target,\n"
27267 " const char *linkname);\n"
27271 #: ../src/guestfs-actions.pod:3873
27272 msgid "guestfs_ln_s"
27273 msgstr "guestfs_ln_s"
27276 #: ../src/guestfs-actions.pod:3875
27280 " guestfs_ln_s (guestfs_h *g,\n"
27281 " const char *target,\n"
27282 " const char *linkname);\n"
27286 " guestfs_ln_s (guestfs_h *g,\n"
27287 " const char *target,\n"
27288 " const char *linkname);\n"
27292 #: ../src/guestfs-actions.pod:3886
27293 msgid "guestfs_ln_sf"
27294 msgstr "guestfs_ln_sf"
27297 #: ../src/guestfs-actions.pod:3888
27301 " guestfs_ln_sf (guestfs_h *g,\n"
27302 " const char *target,\n"
27303 " const char *linkname);\n"
27307 " guestfs_ln_sf (guestfs_h *g,\n"
27308 " const char *target,\n"
27309 " const char *linkname);\n"
27313 #: ../src/guestfs-actions.pod:3900
27314 msgid "guestfs_lremovexattr"
27315 msgstr "guestfs_lremovexattr"
27318 #: ../src/guestfs-actions.pod:3902
27322 " guestfs_lremovexattr (guestfs_h *g,\n"
27323 " const char *xattr,\n"
27324 " const char *path);\n"
27328 " guestfs_lremovexattr (guestfs_h *g,\n"
27329 " const char *xattr,\n"
27330 " const char *path);\n"
27334 #: ../src/guestfs-actions.pod:3907
27336 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27337 "link, then it removes an extended attribute of the link itself."
27341 #: ../src/guestfs-actions.pod:3915
27343 msgstr "guestfs_ls"
27346 #: ../src/guestfs-actions.pod:3917
27350 " guestfs_ls (guestfs_h *g,\n"
27351 " const char *directory);\n"
27355 " guestfs_ls (guestfs_h *g,\n"
27356 " const char *directory);\n"
27360 #: ../src/guestfs-actions.pod:3925
27362 "This command is mostly useful for interactive sessions. Programs should "
27363 "probably use C<guestfs_readdir> instead."
27367 #: ../src/guestfs-actions.pod:3934
27368 msgid "guestfs_lsetxattr"
27369 msgstr "guestfs_lsetxattr"
27372 #: ../src/guestfs-actions.pod:3936
27376 " guestfs_lsetxattr (guestfs_h *g,\n"
27377 " const char *xattr,\n"
27378 " const char *val,\n"
27380 " const char *path);\n"
27384 " guestfs_lsetxattr (guestfs_h *g,\n"
27385 " const char *xattr,\n"
27386 " const char *val,\n"
27388 " const char *path);\n"
27392 #: ../src/guestfs-actions.pod:3943
27394 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27395 "then it sets an extended attribute of the link itself."
27399 #: ../src/guestfs-actions.pod:3951
27400 msgid "guestfs_lstat"
27401 msgstr "guestfs_lstat"
27404 #: ../src/guestfs-actions.pod:3953
27407 " struct guestfs_stat *\n"
27408 " guestfs_lstat (guestfs_h *g,\n"
27409 " const char *path);\n"
27412 " struct guestfs_stat *\n"
27413 " guestfs_lstat (guestfs_h *g,\n"
27414 " const char *path);\n"
27418 #: ../src/guestfs-actions.pod:3959
27420 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27421 "link, then the link is stat-ed, not the file it refers to."
27425 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
27427 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27428 "error. I<The caller must call C<guestfs_free_stat> after use>."
27432 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
27433 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
27434 msgid "(Added in 0.9.2)"
27435 msgstr "(Додано у 0.9.2)"
27438 #: ../src/guestfs-actions.pod:3971
27439 msgid "guestfs_lstatlist"
27440 msgstr "guestfs_lstatlist"
27443 #: ../src/guestfs-actions.pod:3973
27446 " struct guestfs_stat_list *\n"
27447 " guestfs_lstatlist (guestfs_h *g,\n"
27448 " const char *path,\n"
27449 " char *const *names);\n"
27452 " struct guestfs_stat_list *\n"
27453 " guestfs_lstatlist (guestfs_h *g,\n"
27454 " const char *path,\n"
27455 " char *const *names);\n"
27459 #: ../src/guestfs-actions.pod:3978
27461 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27462 "files, where all files are in the directory C<path>. C<names> is the list "
27463 "of files from this directory."
27467 #: ../src/guestfs-actions.pod:3987
27469 "This call is intended for programs that want to efficiently list a directory "
27470 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
27471 "for a similarly efficient call for getting extended attributes. Very long "
27472 "directory listings might cause the protocol message size to be exceeded, "
27473 "causing this call to fail. The caller must split up such requests into "
27474 "smaller groups of names."
27478 #: ../src/guestfs-actions.pod:3995
27480 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27481 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
27485 #: ../src/guestfs-actions.pod:4001
27486 msgid "guestfs_luks_add_key"
27487 msgstr "guestfs_luks_add_key"
27490 #: ../src/guestfs-actions.pod:4003
27494 " guestfs_luks_add_key (guestfs_h *g,\n"
27495 " const char *device,\n"
27496 " const char *key,\n"
27497 " const char *newkey,\n"
27502 " guestfs_luks_add_key (guestfs_h *g,\n"
27503 " const char *device,\n"
27504 " const char *key,\n"
27505 " const char *newkey,\n"
27510 #: ../src/guestfs-actions.pod:4015
27512 "Note that if C<keyslot> already contains a key, then this command will "
27513 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
27517 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
27518 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
27519 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
27521 "This function takes a key or passphrase parameter which could contain "
27522 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
27527 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
27528 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
27529 msgid "(Added in 1.5.2)"
27530 msgstr "(Додано у 1.5.2)"
27533 #: ../src/guestfs-actions.pod:4027
27534 msgid "guestfs_luks_close"
27535 msgstr "guestfs_luks_close"
27538 #: ../src/guestfs-actions.pod:4029
27542 " guestfs_luks_close (guestfs_h *g,\n"
27543 " const char *device);\n"
27547 " guestfs_luks_close (guestfs_h *g,\n"
27548 " const char *device);\n"
27552 #: ../src/guestfs-actions.pod:4033
27554 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27555 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
27556 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27557 "underlying block device."
27561 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
27562 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
27563 #: ../src/guestfs-actions.pod:4260
27564 msgid "(Added in 1.5.1)"
27565 msgstr "(Додано у 1.5.1)"
27568 #: ../src/guestfs-actions.pod:4043
27569 msgid "guestfs_luks_format"
27570 msgstr "guestfs_luks_format"
27573 #: ../src/guestfs-actions.pod:4045
27577 " guestfs_luks_format (guestfs_h *g,\n"
27578 " const char *device,\n"
27579 " const char *key,\n"
27584 " guestfs_luks_format (guestfs_h *g,\n"
27585 " const char *device,\n"
27586 " const char *key,\n"
27591 #: ../src/guestfs-actions.pod:4067
27592 msgid "guestfs_luks_format_cipher"
27593 msgstr "guestfs_luks_format_cipher"
27596 #: ../src/guestfs-actions.pod:4069
27600 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27601 " const char *device,\n"
27602 " const char *key,\n"
27604 " const char *cipher);\n"
27608 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27609 " const char *device,\n"
27610 " const char *key,\n"
27612 " const char *cipher);\n"
27616 #: ../src/guestfs-actions.pod:4076
27618 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27619 "set the C<cipher> used."
27623 #: ../src/guestfs-actions.pod:4090
27624 msgid "guestfs_luks_kill_slot"
27625 msgstr "guestfs_luks_kill_slot"
27628 #: ../src/guestfs-actions.pod:4092
27632 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27633 " const char *device,\n"
27634 " const char *key,\n"
27639 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27640 " const char *device,\n"
27641 " const char *key,\n"
27646 #: ../src/guestfs-actions.pod:4110
27647 msgid "guestfs_luks_open"
27648 msgstr "guestfs_luks_open"
27651 #: ../src/guestfs-actions.pod:4112
27655 " guestfs_luks_open (guestfs_h *g,\n"
27656 " const char *device,\n"
27657 " const char *key,\n"
27658 " const char *mapname);\n"
27662 " guestfs_luks_open (guestfs_h *g,\n"
27663 " const char *device,\n"
27664 " const char *key,\n"
27665 " const char *mapname);\n"
27669 #: ../src/guestfs-actions.pod:4130
27671 "If this block device contains LVM volume groups, then calling "
27672 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27677 #: ../src/guestfs-actions.pod:4134
27678 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27682 #: ../src/guestfs-actions.pod:4145
27683 msgid "guestfs_luks_open_ro"
27684 msgstr "guestfs_luks_open_ro"
27687 #: ../src/guestfs-actions.pod:4147
27691 " guestfs_luks_open_ro (guestfs_h *g,\n"
27692 " const char *device,\n"
27693 " const char *key,\n"
27694 " const char *mapname);\n"
27698 " guestfs_luks_open_ro (guestfs_h *g,\n"
27699 " const char *device,\n"
27700 " const char *key,\n"
27701 " const char *mapname);\n"
27705 #: ../src/guestfs-actions.pod:4153
27707 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27712 #: ../src/guestfs-actions.pod:4164
27713 msgid "guestfs_lvcreate"
27714 msgstr "guestfs_lvcreate"
27717 #: ../src/guestfs-actions.pod:4166
27721 " guestfs_lvcreate (guestfs_h *g,\n"
27722 " const char *logvol,\n"
27723 " const char *volgroup,\n"
27728 " guestfs_lvcreate (guestfs_h *g,\n"
27729 " const char *logvol,\n"
27730 " const char *volgroup,\n"
27735 #: ../src/guestfs-actions.pod:4179
27736 msgid "guestfs_lvm_canonical_lv_name"
27737 msgstr "guestfs_lvm_canonical_lv_name"
27740 #: ../src/guestfs-actions.pod:4181
27744 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27745 " const char *lvname);\n"
27749 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27750 " const char *lvname);\n"
27754 #: ../src/guestfs-actions.pod:4192
27755 msgid "See also C<guestfs_is_lv>."
27759 #: ../src/guestfs-actions.pod:4197
27760 msgid "(Added in 1.5.24)"
27761 msgstr "(Додано у 1.5.24)"
27764 #: ../src/guestfs-actions.pod:4199
27765 msgid "guestfs_lvm_clear_filter"
27766 msgstr "guestfs_lvm_clear_filter"
27769 #: ../src/guestfs-actions.pod:4201
27773 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27777 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27781 #: ../src/guestfs-actions.pod:4204
27783 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
27784 "see every block device."
27788 #: ../src/guestfs-actions.pod:4214
27789 msgid "guestfs_lvm_remove_all"
27790 msgstr "guestfs_lvm_remove_all"
27793 #: ../src/guestfs-actions.pod:4216
27797 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27801 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27805 #: ../src/guestfs-actions.pod:4229
27806 msgid "guestfs_lvm_set_filter"
27807 msgstr "guestfs_lvm_set_filter"
27810 #: ../src/guestfs-actions.pod:4231
27814 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27815 " char *const *devices);\n"
27819 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27820 " char *const *devices);\n"
27824 #: ../src/guestfs-actions.pod:4262
27825 msgid "guestfs_lvremove"
27826 msgstr "guestfs_lvremove"
27829 #: ../src/guestfs-actions.pod:4264
27833 " guestfs_lvremove (guestfs_h *g,\n"
27834 " const char *device);\n"
27838 " guestfs_lvremove (guestfs_h *g,\n"
27839 " const char *device);\n"
27843 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
27844 #: ../src/guestfs-actions.pod:7513
27845 msgid "(Added in 1.0.13)"
27846 msgstr "(Додано у 1.0.13)"
27849 #: ../src/guestfs-actions.pod:4278
27850 msgid "guestfs_lvrename"
27851 msgstr "guestfs_lvrename"
27854 #: ../src/guestfs-actions.pod:4280
27858 " guestfs_lvrename (guestfs_h *g,\n"
27859 " const char *logvol,\n"
27860 " const char *newlogvol);\n"
27864 " guestfs_lvrename (guestfs_h *g,\n"
27865 " const char *logvol,\n"
27866 " const char *newlogvol);\n"
27870 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
27871 msgid "(Added in 1.0.83)"
27872 msgstr "(Додано у 1.0.83)"
27875 #: ../src/guestfs-actions.pod:4291
27876 msgid "guestfs_lvresize"
27877 msgstr "guestfs_lvresize"
27880 #: ../src/guestfs-actions.pod:4293
27884 " guestfs_lvresize (guestfs_h *g,\n"
27885 " const char *device,\n"
27890 " guestfs_lvresize (guestfs_h *g,\n"
27891 " const char *device,\n"
27896 #: ../src/guestfs-actions.pod:4306
27897 msgid "guestfs_lvresize_free"
27898 msgstr "guestfs_lvresize_free"
27901 #: ../src/guestfs-actions.pod:4308
27905 " guestfs_lvresize_free (guestfs_h *g,\n"
27906 " const char *lv,\n"
27911 " guestfs_lvresize_free (guestfs_h *g,\n"
27912 " const char *lv,\n"
27917 #: ../src/guestfs-actions.pod:4321
27918 msgid "(Added in 1.3.3)"
27919 msgstr "(Додано у 1.3.3)"
27922 #: ../src/guestfs-actions.pod:4323
27923 msgid "guestfs_lvs"
27924 msgstr "guestfs_lvs"
27927 #: ../src/guestfs-actions.pod:4325
27931 " guestfs_lvs (guestfs_h *g);\n"
27935 " guestfs_lvs (guestfs_h *g);\n"
27939 #: ../src/guestfs-actions.pod:4334
27940 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27944 #: ../src/guestfs-actions.pod:4342
27945 msgid "guestfs_lvs_full"
27946 msgstr "guestfs_lvs_full"
27949 #: ../src/guestfs-actions.pod:4344
27952 " struct guestfs_lvm_lv_list *\n"
27953 " guestfs_lvs_full (guestfs_h *g);\n"
27956 " struct guestfs_lvm_lv_list *\n"
27957 " guestfs_lvs_full (guestfs_h *g);\n"
27961 #: ../src/guestfs-actions.pod:4350
27963 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27964 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27968 #: ../src/guestfs-actions.pod:4356
27969 msgid "guestfs_lvuuid"
27970 msgstr "guestfs_lvuuid"
27973 #: ../src/guestfs-actions.pod:4358
27977 " guestfs_lvuuid (guestfs_h *g,\n"
27978 " const char *device);\n"
27982 " guestfs_lvuuid (guestfs_h *g,\n"
27983 " const char *device);\n"
27987 #: ../src/guestfs-actions.pod:4369
27988 msgid "guestfs_lxattrlist"
27989 msgstr "guestfs_lxattrlist"
27992 #: ../src/guestfs-actions.pod:4371
27995 " struct guestfs_xattr_list *\n"
27996 " guestfs_lxattrlist (guestfs_h *g,\n"
27997 " const char *path,\n"
27998 " char *const *names);\n"
28001 " struct guestfs_xattr_list *\n"
28002 " guestfs_lxattrlist (guestfs_h *g,\n"
28003 " const char *path,\n"
28004 " char *const *names);\n"
28008 #: ../src/guestfs-actions.pod:4390
28010 "This call is intended for programs that want to efficiently list a directory "
28011 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
28012 "a similarly efficient call for getting standard stats. Very long directory "
28013 "listings might cause the protocol message size to be exceeded, causing this "
28014 "call to fail. The caller must split up such requests into smaller groups of "
28019 #: ../src/guestfs-actions.pod:4404
28020 msgid "guestfs_mkdir"
28021 msgstr "guestfs_mkdir"
28024 #: ../src/guestfs-actions.pod:4406
28028 " guestfs_mkdir (guestfs_h *g,\n"
28029 " const char *path);\n"
28033 " guestfs_mkdir (guestfs_h *g,\n"
28034 " const char *path);\n"
28038 #: ../src/guestfs-actions.pod:4416
28039 msgid "guestfs_mkdir_mode"
28040 msgstr "guestfs_mkdir_mode"
28043 #: ../src/guestfs-actions.pod:4418
28047 " guestfs_mkdir_mode (guestfs_h *g,\n"
28048 " const char *path,\n"
28053 " guestfs_mkdir_mode (guestfs_h *g,\n"
28054 " const char *path,\n"
28059 #: ../src/guestfs-actions.pod:4430
28060 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28064 #: ../src/guestfs-actions.pod:4436
28065 msgid "guestfs_mkdir_p"
28066 msgstr "guestfs_mkdir_p"
28069 #: ../src/guestfs-actions.pod:4438
28073 " guestfs_mkdir_p (guestfs_h *g,\n"
28074 " const char *path);\n"
28078 " guestfs_mkdir_p (guestfs_h *g,\n"
28079 " const char *path);\n"
28083 #: ../src/guestfs-actions.pod:4449
28084 msgid "guestfs_mkdtemp"
28085 msgstr "guestfs_mkdtemp"
28088 #: ../src/guestfs-actions.pod:4451
28092 " guestfs_mkdtemp (guestfs_h *g,\n"
28093 " const char *template);\n"
28097 " guestfs_mkdtemp (guestfs_h *g,\n"
28098 " const char *template);\n"
28102 #: ../src/guestfs-actions.pod:4479
28103 msgid "guestfs_mke2fs_J"
28104 msgstr "guestfs_mke2fs_J"
28107 #: ../src/guestfs-actions.pod:4481
28111 " guestfs_mke2fs_J (guestfs_h *g,\n"
28112 " const char *fstype,\n"
28113 " int blocksize,\n"
28114 " const char *device,\n"
28115 " const char *journal);\n"
28119 " guestfs_mke2fs_J (guestfs_h *g,\n"
28120 " const char *fstype,\n"
28121 " int blocksize,\n"
28122 " const char *device,\n"
28123 " const char *journal);\n"
28127 #: ../src/guestfs-actions.pod:4494
28128 msgid "See also C<guestfs_mke2journal>."
28132 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
28133 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
28134 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
28135 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
28136 msgid "(Added in 1.0.68)"
28137 msgstr "(Додано у 1.0.68)"
28140 #: ../src/guestfs-actions.pod:4500
28141 msgid "guestfs_mke2fs_JL"
28142 msgstr "guestfs_mke2fs_JL"
28145 #: ../src/guestfs-actions.pod:4502
28149 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28150 " const char *fstype,\n"
28151 " int blocksize,\n"
28152 " const char *device,\n"
28153 " const char *label);\n"
28157 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28158 " const char *fstype,\n"
28159 " int blocksize,\n"
28160 " const char *device,\n"
28161 " const char *label);\n"
28165 #: ../src/guestfs-actions.pod:4512
28166 msgid "See also C<guestfs_mke2journal_L>."
28170 #: ../src/guestfs-actions.pod:4518
28171 msgid "guestfs_mke2fs_JU"
28172 msgstr "guestfs_mke2fs_JU"
28175 #: ../src/guestfs-actions.pod:4520
28179 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28180 " const char *fstype,\n"
28181 " int blocksize,\n"
28182 " const char *device,\n"
28183 " const char *uuid);\n"
28187 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28188 " const char *fstype,\n"
28189 " int blocksize,\n"
28190 " const char *device,\n"
28191 " const char *uuid);\n"
28195 #: ../src/guestfs-actions.pod:4530
28196 msgid "See also C<guestfs_mke2journal_U>."
28200 #: ../src/guestfs-actions.pod:4536
28201 msgid "guestfs_mke2journal"
28202 msgstr "guestfs_mke2journal"
28205 #: ../src/guestfs-actions.pod:4538
28209 " guestfs_mke2journal (guestfs_h *g,\n"
28210 " int blocksize,\n"
28211 " const char *device);\n"
28215 " guestfs_mke2journal (guestfs_h *g,\n"
28216 " int blocksize,\n"
28217 " const char *device);\n"
28221 #: ../src/guestfs-actions.pod:4552
28222 msgid "guestfs_mke2journal_L"
28223 msgstr "guestfs_mke2journal_L"
28226 #: ../src/guestfs-actions.pod:4554
28230 " guestfs_mke2journal_L (guestfs_h *g,\n"
28231 " int blocksize,\n"
28232 " const char *label,\n"
28233 " const char *device);\n"
28237 " guestfs_mke2journal_L (guestfs_h *g,\n"
28238 " int blocksize,\n"
28239 " const char *label,\n"
28240 " const char *device);\n"
28244 #: ../src/guestfs-actions.pod:4566
28245 msgid "guestfs_mke2journal_U"
28246 msgstr "guestfs_mke2journal_U"
28249 #: ../src/guestfs-actions.pod:4568
28253 " guestfs_mke2journal_U (guestfs_h *g,\n"
28254 " int blocksize,\n"
28255 " const char *uuid,\n"
28256 " const char *device);\n"
28260 " guestfs_mke2journal_U (guestfs_h *g,\n"
28261 " int blocksize,\n"
28262 " const char *uuid,\n"
28263 " const char *device);\n"
28267 #: ../src/guestfs-actions.pod:4580
28268 msgid "guestfs_mkfifo"
28269 msgstr "guestfs_mkfifo"
28272 #: ../src/guestfs-actions.pod:4582
28276 " guestfs_mkfifo (guestfs_h *g,\n"
28278 " const char *path);\n"
28282 " guestfs_mkfifo (guestfs_h *g,\n"
28284 " const char *path);\n"
28288 #: ../src/guestfs-actions.pod:4587
28290 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28291 "is just a convenient wrapper around C<guestfs_mknod>."
28295 #: ../src/guestfs-actions.pod:4597
28296 msgid "guestfs_mkfs"
28297 msgstr "guestfs_mkfs"
28300 #: ../src/guestfs-actions.pod:4599
28304 " guestfs_mkfs (guestfs_h *g,\n"
28305 " const char *fstype,\n"
28306 " const char *device);\n"
28310 " guestfs_mkfs (guestfs_h *g,\n"
28311 " const char *fstype,\n"
28312 " const char *device);\n"
28316 #: ../src/guestfs-actions.pod:4612
28317 msgid "guestfs_mkfs_b"
28318 msgstr "guestfs_mkfs_b"
28321 #: ../src/guestfs-actions.pod:4614
28325 " guestfs_mkfs_b (guestfs_h *g,\n"
28326 " const char *fstype,\n"
28327 " int blocksize,\n"
28328 " const char *device);\n"
28332 " guestfs_mkfs_b (guestfs_h *g,\n"
28333 " const char *fstype,\n"
28334 " int blocksize,\n"
28335 " const char *device);\n"
28339 #: ../src/guestfs-actions.pod:4620
28341 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28346 #: ../src/guestfs-actions.pod:4627
28348 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28349 "block size of the resulting filesystem. Supported block sizes depend on the "
28350 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28354 #: ../src/guestfs-actions.pod:4639
28355 msgid "guestfs_mkfs_opts"
28356 msgstr "guestfs_mkfs_opts"
28359 #: ../src/guestfs-actions.pod:4641
28363 " guestfs_mkfs_opts (guestfs_h *g,\n"
28364 " const char *fstype,\n"
28365 " const char *device,\n"
28370 " guestfs_mkfs_opts (guestfs_h *g,\n"
28371 " const char *fstype,\n"
28372 " const char *device,\n"
28377 #: ../src/guestfs-actions.pod:4652
28380 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28381 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28382 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28383 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28388 #: ../src/guestfs-actions.pod:4700
28389 msgid "(Added in 1.7.19)"
28390 msgstr "(Додано у 1.7.19)"
28393 #: ../src/guestfs-actions.pod:4702
28394 msgid "guestfs_mkfs_opts_va"
28395 msgstr "guestfs_mkfs_opts_va"
28398 #: ../src/guestfs-actions.pod:4704
28402 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28403 " const char *fstype,\n"
28404 " const char *device,\n"
28405 " va_list args);\n"
28409 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28410 " const char *fstype,\n"
28411 " const char *device,\n"
28412 " va_list args);\n"
28416 #: ../src/guestfs-actions.pod:4710
28417 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28421 #: ../src/guestfs-actions.pod:4714
28422 msgid "guestfs_mkfs_opts_argv"
28423 msgstr "guestfs_mkfs_opts_argv"
28426 #: ../src/guestfs-actions.pod:4716
28430 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28431 " const char *fstype,\n"
28432 " const char *device,\n"
28433 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28437 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28438 " const char *fstype,\n"
28439 " const char *device,\n"
28440 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28444 #: ../src/guestfs-actions.pod:4722
28445 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28449 #: ../src/guestfs-actions.pod:4726
28450 msgid "guestfs_mkmountpoint"
28451 msgstr "guestfs_mkmountpoint"
28454 #: ../src/guestfs-actions.pod:4728
28458 " guestfs_mkmountpoint (guestfs_h *g,\n"
28459 " const char *exemptpath);\n"
28463 " guestfs_mkmountpoint (guestfs_h *g,\n"
28464 " const char *exemptpath);\n"
28468 #: ../src/guestfs-actions.pod:4732
28470 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28471 "that can be used to create extra mountpoints before mounting the first "
28476 #: ../src/guestfs-actions.pod:4756
28478 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
28479 "may get unexpected errors if you try to mix these calls. It is safest to "
28480 "manually unmount filesystems and remove mountpoints after use."
28484 #: ../src/guestfs-actions.pod:4760
28486 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28487 "first, so for this to work for manual mountpoints, you must ensure that the "
28488 "innermost mountpoints have the longest pathnames, as in the example code "
28493 #: ../src/guestfs-actions.pod:4767
28495 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28496 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28497 "can also trigger these issues."
28501 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
28502 #: ../src/guestfs-actions.pod:6099
28503 msgid "(Added in 1.0.62)"
28504 msgstr "(Додано у 1.0.62)"
28507 #: ../src/guestfs-actions.pod:4775
28508 msgid "guestfs_mknod"
28512 #: ../src/guestfs-actions.pod:4777
28516 " guestfs_mknod (guestfs_h *g,\n"
28520 " const char *path);\n"
28525 #: ../src/guestfs-actions.pod:4792
28527 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28528 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28529 "regular file). These constants are available in the standard Linux header "
28530 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28531 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28532 "the appropriate constant for you."
28536 #: ../src/guestfs-actions.pod:4806
28537 msgid "guestfs_mknod_b"
28541 #: ../src/guestfs-actions.pod:4808
28545 " guestfs_mknod_b (guestfs_h *g,\n"
28549 " const char *path);\n"
28554 #: ../src/guestfs-actions.pod:4815
28556 "This call creates a block device node called C<path> with mode C<mode> and "
28557 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28558 "wrapper around C<guestfs_mknod>."
28562 #: ../src/guestfs-actions.pod:4825
28563 msgid "guestfs_mknod_c"
28567 #: ../src/guestfs-actions.pod:4827
28571 " guestfs_mknod_c (guestfs_h *g,\n"
28575 " const char *path);\n"
28580 #: ../src/guestfs-actions.pod:4834
28582 "This call creates a char device node called C<path> with mode C<mode> and "
28583 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28584 "wrapper around C<guestfs_mknod>."
28588 #: ../src/guestfs-actions.pod:4844
28589 msgid "guestfs_mkswap"
28593 #: ../src/guestfs-actions.pod:4846
28597 " guestfs_mkswap (guestfs_h *g,\n"
28598 " const char *device);\n"
28603 #: ../src/guestfs-actions.pod:4856
28604 msgid "guestfs_mkswap_L"
28608 #: ../src/guestfs-actions.pod:4858
28612 " guestfs_mkswap_L (guestfs_h *g,\n"
28613 " const char *label,\n"
28614 " const char *device);\n"
28619 #: ../src/guestfs-actions.pod:4873
28620 msgid "guestfs_mkswap_U"
28624 #: ../src/guestfs-actions.pod:4875
28628 " guestfs_mkswap_U (guestfs_h *g,\n"
28629 " const char *uuid,\n"
28630 " const char *device);\n"
28635 #: ../src/guestfs-actions.pod:4886
28636 msgid "guestfs_mkswap_file"
28640 #: ../src/guestfs-actions.pod:4888
28644 " guestfs_mkswap_file (guestfs_h *g,\n"
28645 " const char *path);\n"
28650 #: ../src/guestfs-actions.pod:4894
28652 "This command just writes a swap file signature to an existing file. To "
28653 "create the file itself, use something like C<guestfs_fallocate>."
28657 #: ../src/guestfs-actions.pod:4901
28658 msgid "guestfs_modprobe"
28662 #: ../src/guestfs-actions.pod:4903
28666 " guestfs_modprobe (guestfs_h *g,\n"
28667 " const char *modulename);\n"
28672 #: ../src/guestfs-actions.pod:4916
28673 msgid "guestfs_mount"
28677 #: ../src/guestfs-actions.pod:4918
28681 " guestfs_mount (guestfs_h *g,\n"
28682 " const char *device,\n"
28683 " const char *mountpoint);\n"
28688 #: ../src/guestfs-actions.pod:4923
28690 "I<This function is deprecated.> In new code, use the L</"
28691 "guestfs_mount_options> call instead."
28695 #: ../src/guestfs-actions.pod:4944
28697 "B<Important note:> When you use this call, the filesystem options C<sync> "
28698 "and C<noatime> are set implicitly. This was originally done because we "
28699 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28700 "very large negative performance impact and negligible effect on "
28701 "reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
28702 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28703 "(use an empty string for the first parameter if you don't want any options)."
28707 #: ../src/guestfs-actions.pod:4958
28708 msgid "guestfs_mount_9p"
28712 #: ../src/guestfs-actions.pod:4960
28716 " guestfs_mount_9p (guestfs_h *g,\n"
28717 " const char *mounttag,\n"
28718 " const char *mountpoint,\n"
28724 #: ../src/guestfs-actions.pod:4971
28727 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28732 #: ../src/guestfs-actions.pod:4984
28733 msgid "guestfs_mount_9p_va"
28737 #: ../src/guestfs-actions.pod:4986
28741 " guestfs_mount_9p_va (guestfs_h *g,\n"
28742 " const char *mounttag,\n"
28743 " const char *mountpoint,\n"
28744 " va_list args);\n"
28749 #: ../src/guestfs-actions.pod:4992
28750 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28754 #: ../src/guestfs-actions.pod:4996
28755 msgid "guestfs_mount_9p_argv"
28759 #: ../src/guestfs-actions.pod:4998
28763 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28764 " const char *mounttag,\n"
28765 " const char *mountpoint,\n"
28766 " const struct guestfs_mount_9p_argv *optargs);\n"
28771 #: ../src/guestfs-actions.pod:5004
28772 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28776 #: ../src/guestfs-actions.pod:5008
28777 msgid "guestfs_mount_loop"
28781 #: ../src/guestfs-actions.pod:5010
28785 " guestfs_mount_loop (guestfs_h *g,\n"
28786 " const char *file,\n"
28787 " const char *mountpoint);\n"
28792 #: ../src/guestfs-actions.pod:5023
28793 msgid "guestfs_mount_options"
28797 #: ../src/guestfs-actions.pod:5025
28801 " guestfs_mount_options (guestfs_h *g,\n"
28802 " const char *options,\n"
28803 " const char *device,\n"
28804 " const char *mountpoint);\n"
28809 #: ../src/guestfs-actions.pod:5031
28811 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28812 "the mount options as for the L<mount(8)> I<-o> flag."
28816 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
28817 #: ../src/guestfs-actions.pod:5072
28818 msgid "(Added in 1.0.10)"
28822 #: ../src/guestfs-actions.pod:5043
28823 msgid "guestfs_mount_ro"
28827 #: ../src/guestfs-actions.pod:5045
28831 " guestfs_mount_ro (guestfs_h *g,\n"
28832 " const char *device,\n"
28833 " const char *mountpoint);\n"
28838 #: ../src/guestfs-actions.pod:5050
28840 "This is the same as the C<guestfs_mount> command, but it mounts the "
28841 "filesystem with the read-only (I<-o ro>) flag."
28845 #: ../src/guestfs-actions.pod:5057
28846 msgid "guestfs_mount_vfs"
28850 #: ../src/guestfs-actions.pod:5059
28854 " guestfs_mount_vfs (guestfs_h *g,\n"
28855 " const char *options,\n"
28856 " const char *vfstype,\n"
28857 " const char *device,\n"
28858 " const char *mountpoint);\n"
28863 #: ../src/guestfs-actions.pod:5066
28865 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28866 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28871 #: ../src/guestfs-actions.pod:5074
28872 msgid "guestfs_mountpoints"
28876 #: ../src/guestfs-actions.pod:5076
28880 " guestfs_mountpoints (guestfs_h *g);\n"
28885 #: ../src/guestfs-actions.pod:5079
28887 "This call is similar to C<guestfs_mounts>. That call returns a list of "
28888 "devices. This one returns a hash table (map) of device name to directory "
28889 "where the device is mounted."
28893 #: ../src/guestfs-actions.pod:5091
28894 msgid "guestfs_mounts"
28898 #: ../src/guestfs-actions.pod:5093
28902 " guestfs_mounts (guestfs_h *g);\n"
28907 #: ../src/guestfs-actions.pod:5101
28908 msgid "See also: C<guestfs_mountpoints>"
28912 #: ../src/guestfs-actions.pod:5109
28917 #: ../src/guestfs-actions.pod:5111
28921 " guestfs_mv (guestfs_h *g,\n"
28922 " const char *src,\n"
28923 " const char *dest);\n"
28928 #: ../src/guestfs-actions.pod:5123
28929 msgid "guestfs_ntfs_3g_probe"
28933 #: ../src/guestfs-actions.pod:5125
28937 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28939 " const char *device);\n"
28944 #: ../src/guestfs-actions.pod:5144
28945 msgid "(Added in 1.0.43)"
28949 #: ../src/guestfs-actions.pod:5146
28950 msgid "guestfs_ntfsresize"
28954 #: ../src/guestfs-actions.pod:5148
28958 " guestfs_ntfsresize (guestfs_h *g,\n"
28959 " const char *device);\n"
28964 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
28966 "I<This function is deprecated.> In new code, use the L</"
28967 "guestfs_ntfsresize_opts> call instead."
28971 #: ../src/guestfs-actions.pod:5176
28972 msgid "guestfs_ntfsresize_opts"
28976 #: ../src/guestfs-actions.pod:5178
28980 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28981 " const char *device,\n"
28987 #: ../src/guestfs-actions.pod:5188
28990 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28991 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28996 #: ../src/guestfs-actions.pod:5208
28998 "After the resize operation, the filesystem is always marked as requiring a "
28999 "consistency check (for safety). You have to boot into Windows to perform "
29000 "this check and clear this condition. If you I<don't> set the C<force> "
29001 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29002 "times on a single filesystem without booting into Windows between each "
29007 #: ../src/guestfs-actions.pod:5223
29008 msgid "guestfs_ntfsresize_opts_va"
29012 #: ../src/guestfs-actions.pod:5225
29016 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29017 " const char *device,\n"
29018 " va_list args);\n"
29023 #: ../src/guestfs-actions.pod:5230
29024 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29028 #: ../src/guestfs-actions.pod:5234
29029 msgid "guestfs_ntfsresize_opts_argv"
29033 #: ../src/guestfs-actions.pod:5236
29037 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29038 " const char *device,\n"
29039 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29044 #: ../src/guestfs-actions.pod:5241
29045 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29049 #: ../src/guestfs-actions.pod:5245
29050 msgid "guestfs_ntfsresize_size"
29054 #: ../src/guestfs-actions.pod:5247
29058 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29059 " const char *device,\n"
29060 " int64_t size);\n"
29065 #: ../src/guestfs-actions.pod:5259
29067 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29068 "to specify the new size (in bytes) explicitly."
29072 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
29073 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
29074 #: ../src/guestfs-actions.pod:7670
29075 msgid "(Added in 1.3.14)"
29079 #: ../src/guestfs-actions.pod:5266
29080 msgid "guestfs_part_add"
29084 #: ../src/guestfs-actions.pod:5268
29088 " guestfs_part_add (guestfs_h *g,\n"
29089 " const char *device,\n"
29090 " const char *prlogex,\n"
29091 " int64_t startsect,\n"
29092 " int64_t endsect);\n"
29097 #: ../src/guestfs-actions.pod:5275
29099 "This command adds a partition to C<device>. If there is no partition table "
29100 "on the device, call C<guestfs_part_init> first."
29104 #: ../src/guestfs-actions.pod:5287
29106 "Creating a partition which covers the whole disk is not so easy. Use "
29107 "C<guestfs_part_disk> to do that."
29111 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
29112 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
29113 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
29114 #: ../src/guestfs-actions.pod:5564
29115 msgid "(Added in 1.0.78)"
29119 #: ../src/guestfs-actions.pod:5294
29120 msgid "guestfs_part_del"
29124 #: ../src/guestfs-actions.pod:5296
29128 " guestfs_part_del (guestfs_h *g,\n"
29129 " const char *device,\n"
29135 #: ../src/guestfs-actions.pod:5311
29136 msgid "guestfs_part_disk"
29140 #: ../src/guestfs-actions.pod:5313
29144 " guestfs_part_disk (guestfs_h *g,\n"
29145 " const char *device,\n"
29146 " const char *parttype);\n"
29151 #: ../src/guestfs-actions.pod:5318
29153 "This command is simply a combination of C<guestfs_part_init> followed by "
29154 "C<guestfs_part_add> to create a single primary partition covering the whole "
29159 #: ../src/guestfs-actions.pod:5322
29161 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29162 "possible values are described in C<guestfs_part_init>."
29166 #: ../src/guestfs-actions.pod:5332
29167 msgid "guestfs_part_get_bootable"
29171 #: ../src/guestfs-actions.pod:5334
29175 " guestfs_part_get_bootable (guestfs_h *g,\n"
29176 " const char *device,\n"
29182 #: ../src/guestfs-actions.pod:5342
29183 msgid "See also C<guestfs_part_set_bootable>."
29187 #: ../src/guestfs-actions.pod:5348
29188 msgid "guestfs_part_get_mbr_id"
29192 #: ../src/guestfs-actions.pod:5350
29196 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29197 " const char *device,\n"
29203 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
29205 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
29206 "undefined results for other partition table types (see "
29207 "C<guestfs_part_get_parttype>)."
29211 #: ../src/guestfs-actions.pod:5366
29212 msgid "guestfs_part_get_parttype"
29216 #: ../src/guestfs-actions.pod:5368
29220 " guestfs_part_get_parttype (guestfs_h *g,\n"
29221 " const char *device);\n"
29226 #: ../src/guestfs-actions.pod:5375
29228 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29229 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
29230 "possible, although unusual. See C<guestfs_part_init> for a full list."
29234 #: ../src/guestfs-actions.pod:5385
29235 msgid "guestfs_part_init"
29239 #: ../src/guestfs-actions.pod:5387
29243 " guestfs_part_init (guestfs_h *g,\n"
29244 " const char *device,\n"
29245 " const char *parttype);\n"
29250 #: ../src/guestfs-actions.pod:5396
29252 "Initially there are no partitions. Following this, you should call "
29253 "C<guestfs_part_add> for each partition required."
29257 #: ../src/guestfs-actions.pod:5469
29258 msgid "guestfs_part_list"
29259 msgstr "guestfs_part_list"
29262 #: ../src/guestfs-actions.pod:5471
29265 " struct guestfs_partition_list *\n"
29266 " guestfs_part_list (guestfs_h *g,\n"
29267 " const char *device);\n"
29270 " struct guestfs_partition_list *\n"
29271 " guestfs_part_list (guestfs_h *g,\n"
29272 " const char *device);\n"
29276 #: ../src/guestfs-actions.pod:5488
29278 "Start of the partition I<in bytes>. To get sectors you have to divide by "
29279 "the device's sector size, see C<guestfs_blockdev_getss>."
29283 #: ../src/guestfs-actions.pod:5501
29285 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29286 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
29291 #: ../src/guestfs-actions.pod:5507
29292 msgid "guestfs_part_set_bootable"
29296 #: ../src/guestfs-actions.pod:5509
29300 " guestfs_part_set_bootable (guestfs_h *g,\n"
29301 " const char *device,\n"
29303 " int bootable);\n"
29308 #: ../src/guestfs-actions.pod:5526
29309 msgid "guestfs_part_set_mbr_id"
29313 #: ../src/guestfs-actions.pod:5528
29317 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29318 " const char *device,\n"
29325 #: ../src/guestfs-actions.pod:5548
29326 msgid "guestfs_part_set_name"
29330 #: ../src/guestfs-actions.pod:5550
29334 " guestfs_part_set_name (guestfs_h *g,\n"
29335 " const char *device,\n"
29337 " const char *name);\n"
29342 #: ../src/guestfs-actions.pod:5566
29343 msgid "guestfs_part_to_dev"
29347 #: ../src/guestfs-actions.pod:5568
29351 " guestfs_part_to_dev (guestfs_h *g,\n"
29352 " const char *partition);\n"
29357 #: ../src/guestfs-actions.pod:5576
29359 "The named partition must exist, for example as a string returned from "
29360 "C<guestfs_list_partitions>."
29364 #: ../src/guestfs-actions.pod:5584
29365 msgid "guestfs_ping_daemon"
29369 #: ../src/guestfs-actions.pod:5586
29373 " guestfs_ping_daemon (guestfs_h *g);\n"
29378 #: ../src/guestfs-actions.pod:5598
29379 msgid "guestfs_pread"
29383 #: ../src/guestfs-actions.pod:5600
29387 " guestfs_pread (guestfs_h *g,\n"
29388 " const char *path,\n"
29390 " int64_t offset,\n"
29391 " size_t *size_r);\n"
29396 #: ../src/guestfs-actions.pod:5613
29397 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29401 #: ../src/guestfs-actions.pod:5624
29402 msgid "guestfs_pread_device"
29406 #: ../src/guestfs-actions.pod:5626
29410 " guestfs_pread_device (guestfs_h *g,\n"
29411 " const char *device,\n"
29413 " int64_t offset,\n"
29414 " size_t *size_r);\n"
29419 #: ../src/guestfs-actions.pod:5639
29420 msgid "See also C<guestfs_pread>."
29424 #: ../src/guestfs-actions.pod:5648
29425 msgid "(Added in 1.5.21)"
29429 #: ../src/guestfs-actions.pod:5650
29430 msgid "guestfs_pvcreate"
29434 #: ../src/guestfs-actions.pod:5652
29438 " guestfs_pvcreate (guestfs_h *g,\n"
29439 " const char *device);\n"
29444 #: ../src/guestfs-actions.pod:5664
29445 msgid "guestfs_pvremove"
29449 #: ../src/guestfs-actions.pod:5666
29453 " guestfs_pvremove (guestfs_h *g,\n"
29454 " const char *device);\n"
29459 #: ../src/guestfs-actions.pod:5681
29460 msgid "guestfs_pvresize"
29464 #: ../src/guestfs-actions.pod:5683
29468 " guestfs_pvresize (guestfs_h *g,\n"
29469 " const char *device);\n"
29474 #: ../src/guestfs-actions.pod:5694
29475 msgid "guestfs_pvresize_size"
29479 #: ../src/guestfs-actions.pod:5696
29483 " guestfs_pvresize_size (guestfs_h *g,\n"
29484 " const char *device,\n"
29485 " int64_t size);\n"
29490 #: ../src/guestfs-actions.pod:5701
29492 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29493 "specify the new size (in bytes) explicitly."
29497 #: ../src/guestfs-actions.pod:5708
29498 msgid "guestfs_pvs"
29502 #: ../src/guestfs-actions.pod:5710
29506 " guestfs_pvs (guestfs_h *g);\n"
29511 #: ../src/guestfs-actions.pod:5719
29512 msgid "See also C<guestfs_pvs_full>."
29516 #: ../src/guestfs-actions.pod:5727
29517 msgid "guestfs_pvs_full"
29521 #: ../src/guestfs-actions.pod:5729
29524 " struct guestfs_lvm_pv_list *\n"
29525 " guestfs_pvs_full (guestfs_h *g);\n"
29530 #: ../src/guestfs-actions.pod:5735
29532 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29533 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29537 #: ../src/guestfs-actions.pod:5741
29538 msgid "guestfs_pvuuid"
29542 #: ../src/guestfs-actions.pod:5743
29546 " guestfs_pvuuid (guestfs_h *g,\n"
29547 " const char *device);\n"
29552 #: ../src/guestfs-actions.pod:5754
29553 msgid "guestfs_pwrite"
29557 #: ../src/guestfs-actions.pod:5756
29561 " guestfs_pwrite (guestfs_h *g,\n"
29562 " const char *path,\n"
29563 " const char *content,\n"
29564 " size_t content_size,\n"
29565 " int64_t offset);\n"
29570 #: ../src/guestfs-actions.pod:5772
29571 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29575 #: ../src/guestfs-actions.pod:5781
29576 msgid "guestfs_pwrite_device"
29580 #: ../src/guestfs-actions.pod:5783
29584 " guestfs_pwrite_device (guestfs_h *g,\n"
29585 " const char *device,\n"
29586 " const char *content,\n"
29587 " size_t content_size,\n"
29588 " int64_t offset);\n"
29593 #: ../src/guestfs-actions.pod:5798
29594 msgid "See also C<guestfs_pwrite>."
29598 #: ../src/guestfs-actions.pod:5805
29599 msgid "(Added in 1.5.20)"
29603 #: ../src/guestfs-actions.pod:5807
29604 msgid "guestfs_read_file"
29608 #: ../src/guestfs-actions.pod:5809
29612 " guestfs_read_file (guestfs_h *g,\n"
29613 " const char *path,\n"
29614 " size_t *size_r);\n"
29619 #: ../src/guestfs-actions.pod:5817
29621 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29622 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
29623 "function is limited in the total size of file that can be handled."
29627 #: ../src/guestfs-actions.pod:5829
29628 msgid "(Added in 1.0.63)"
29632 #: ../src/guestfs-actions.pod:5831
29633 msgid "guestfs_read_lines"
29637 #: ../src/guestfs-actions.pod:5833
29641 " guestfs_read_lines (guestfs_h *g,\n"
29642 " const char *path);\n"
29647 #: ../src/guestfs-actions.pod:5842
29649 "Note that this function cannot correctly handle binary files (specifically, "
29650 "files containing C<\\0> character which is treated as end of line). For "
29651 "those you need to use the C<guestfs_read_file> function which has a more "
29652 "complex interface."
29656 #: ../src/guestfs-actions.pod:5853
29657 msgid "guestfs_readdir"
29661 #: ../src/guestfs-actions.pod:5855
29664 " struct guestfs_dirent_list *\n"
29665 " guestfs_readdir (guestfs_h *g,\n"
29666 " const char *dir);\n"
29671 #: ../src/guestfs-actions.pod:5909
29673 "This function is primarily intended for use by programs. To get a simple "
29674 "list of names, use C<guestfs_ls>. To get a printable directory for human "
29675 "consumption, use C<guestfs_ll>."
29679 #: ../src/guestfs-actions.pod:5913
29681 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29682 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
29686 #: ../src/guestfs-actions.pod:5919
29687 msgid "guestfs_readlink"
29691 #: ../src/guestfs-actions.pod:5921
29695 " guestfs_readlink (guestfs_h *g,\n"
29696 " const char *path);\n"
29701 #: ../src/guestfs-actions.pod:5932
29702 msgid "guestfs_readlinklist"
29706 #: ../src/guestfs-actions.pod:5934
29710 " guestfs_readlinklist (guestfs_h *g,\n"
29711 " const char *path,\n"
29712 " char *const *names);\n"
29717 #: ../src/guestfs-actions.pod:5967
29718 msgid "guestfs_realpath"
29722 #: ../src/guestfs-actions.pod:5969
29726 " guestfs_realpath (guestfs_h *g,\n"
29727 " const char *path);\n"
29732 #: ../src/guestfs-actions.pod:5981
29733 msgid "guestfs_removexattr"
29737 #: ../src/guestfs-actions.pod:5983
29741 " guestfs_removexattr (guestfs_h *g,\n"
29742 " const char *xattr,\n"
29743 " const char *path);\n"
29748 #: ../src/guestfs-actions.pod:5991
29749 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29753 #: ../src/guestfs-actions.pod:5997
29754 msgid "guestfs_resize2fs"
29758 #: ../src/guestfs-actions.pod:5999
29762 " guestfs_resize2fs (guestfs_h *g,\n"
29763 " const char *device);\n"
29768 #: ../src/guestfs-actions.pod:6006
29770 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29771 "C<device> before calling this command. For unknown reasons C<resize2fs> "
29772 "sometimes gives an error about this and sometimes not. In any case, it is "
29773 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29777 #: ../src/guestfs-actions.pod:6016
29778 msgid "guestfs_resize2fs_M"
29782 #: ../src/guestfs-actions.pod:6018
29786 " guestfs_resize2fs_M (guestfs_h *g,\n"
29787 " const char *device);\n"
29792 #: ../src/guestfs-actions.pod:6022
29794 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29795 "resized to its minimum size. This works like the I<-M> option to the "
29796 "C<resize2fs> command."
29800 #: ../src/guestfs-actions.pod:6026
29802 "To get the resulting size of the filesystem you should call "
29803 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
29804 "These two numbers, multiplied together, give the resulting size of the "
29805 "minimal filesystem in bytes."
29809 #: ../src/guestfs-actions.pod:6035
29810 msgid "guestfs_resize2fs_size"
29814 #: ../src/guestfs-actions.pod:6037
29818 " guestfs_resize2fs_size (guestfs_h *g,\n"
29819 " const char *device,\n"
29820 " int64_t size);\n"
29825 #: ../src/guestfs-actions.pod:6042
29827 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29828 "to specify the new size (in bytes) explicitly."
29832 #: ../src/guestfs-actions.pod:6049
29837 #: ../src/guestfs-actions.pod:6051
29841 " guestfs_rm (guestfs_h *g,\n"
29842 " const char *path);\n"
29847 #: ../src/guestfs-actions.pod:6061
29848 msgid "guestfs_rm_rf"
29852 #: ../src/guestfs-actions.pod:6063
29856 " guestfs_rm_rf (guestfs_h *g,\n"
29857 " const char *path);\n"
29862 #: ../src/guestfs-actions.pod:6075
29863 msgid "guestfs_rmdir"
29867 #: ../src/guestfs-actions.pod:6077
29871 " guestfs_rmdir (guestfs_h *g,\n"
29872 " const char *path);\n"
29877 #: ../src/guestfs-actions.pod:6087
29878 msgid "guestfs_rmmountpoint"
29882 #: ../src/guestfs-actions.pod:6089
29886 " guestfs_rmmountpoint (guestfs_h *g,\n"
29887 " const char *exemptpath);\n"
29892 #: ../src/guestfs-actions.pod:6093
29894 "This calls removes a mountpoint that was previously created with "
29895 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
29899 #: ../src/guestfs-actions.pod:6101
29900 msgid "guestfs_scrub_device"
29904 #: ../src/guestfs-actions.pod:6103
29908 " guestfs_scrub_device (guestfs_h *g,\n"
29909 " const char *device);\n"
29914 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
29915 #: ../src/guestfs-actions.pod:6155
29916 msgid "(Added in 1.0.52)"
29920 #: ../src/guestfs-actions.pod:6120
29921 msgid "guestfs_scrub_file"
29925 #: ../src/guestfs-actions.pod:6122
29929 " guestfs_scrub_file (guestfs_h *g,\n"
29930 " const char *file);\n"
29935 #: ../src/guestfs-actions.pod:6138
29936 msgid "guestfs_scrub_freespace"
29940 #: ../src/guestfs-actions.pod:6140
29944 " guestfs_scrub_freespace (guestfs_h *g,\n"
29945 " const char *dir);\n"
29950 #: ../src/guestfs-actions.pod:6144
29952 "This command creates the directory C<dir> and then fills it with files until "
29953 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29954 "and deletes them. The intention is to scrub any free space on the partition "
29955 "containing C<dir>."
29959 #: ../src/guestfs-actions.pod:6157
29960 msgid "guestfs_set_append"
29964 #: ../src/guestfs-actions.pod:6159
29968 " guestfs_set_append (guestfs_h *g,\n"
29969 " const char *append);\n"
29974 #: ../src/guestfs-actions.pod:6176
29975 msgid "guestfs_set_attach_method"
29979 #: ../src/guestfs-actions.pod:6178
29983 " guestfs_set_attach_method (guestfs_h *g,\n"
29984 " const char *attachmethod);\n"
29989 #: ../src/guestfs-actions.pod:6206
29990 msgid "guestfs_set_autosync"
29994 #: ../src/guestfs-actions.pod:6208
29998 " guestfs_set_autosync (guestfs_h *g,\n"
29999 " int autosync);\n"
30004 #: ../src/guestfs-actions.pod:6224
30005 msgid "guestfs_set_direct"
30009 #: ../src/guestfs-actions.pod:6226
30013 " guestfs_set_direct (guestfs_h *g,\n"
30019 #: ../src/guestfs-actions.pod:6234
30021 "One consequence of this is that log messages aren't caught by the library "
30022 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30027 #: ../src/guestfs-actions.pod:6247
30028 msgid "guestfs_set_e2label"
30032 #: ../src/guestfs-actions.pod:6249
30036 " guestfs_set_e2label (guestfs_h *g,\n"
30037 " const char *device,\n"
30038 " const char *label);\n"
30043 #: ../src/guestfs-actions.pod:6258
30045 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30046 "the existing label on a filesystem."
30050 #: ../src/guestfs-actions.pod:6265
30051 msgid "guestfs_set_e2uuid"
30055 #: ../src/guestfs-actions.pod:6267
30059 " guestfs_set_e2uuid (guestfs_h *g,\n"
30060 " const char *device,\n"
30061 " const char *uuid);\n"
30066 #: ../src/guestfs-actions.pod:6277
30068 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30069 "the existing UUID of a filesystem."
30073 #: ../src/guestfs-actions.pod:6284
30074 msgid "guestfs_set_memsize"
30078 #: ../src/guestfs-actions.pod:6286
30082 " guestfs_set_memsize (guestfs_h *g,\n"
30088 #: ../src/guestfs-actions.pod:6290
30090 "This sets the memory size in megabytes allocated to the qemu subprocess. "
30091 "This only has any effect if called before C<guestfs_launch>."
30095 #: ../src/guestfs-actions.pod:6305
30096 msgid "guestfs_set_network"
30100 #: ../src/guestfs-actions.pod:6307
30104 " guestfs_set_network (guestfs_h *g,\n"
30110 #: ../src/guestfs-actions.pod:6317
30112 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30117 #: ../src/guestfs-actions.pod:6324
30118 msgid "guestfs_set_path"
30122 #: ../src/guestfs-actions.pod:6326
30126 " guestfs_set_path (guestfs_h *g,\n"
30127 " const char *searchpath);\n"
30132 #: ../src/guestfs-actions.pod:6341
30133 msgid "guestfs_set_pgroup"
30137 #: ../src/guestfs-actions.pod:6343
30141 " guestfs_set_pgroup (guestfs_h *g,\n"
30147 #: ../src/guestfs-actions.pod:6360
30148 msgid "guestfs_set_qemu"
30152 #: ../src/guestfs-actions.pod:6362
30156 " guestfs_set_qemu (guestfs_h *g,\n"
30157 " const char *qemu);\n"
30162 #: ../src/guestfs-actions.pod:6388
30163 msgid "guestfs_set_recovery_proc"
30167 #: ../src/guestfs-actions.pod:6390
30171 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30172 " int recoveryproc);\n"
30177 #: ../src/guestfs-actions.pod:6394
30179 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30180 "not create a recovery process. The purpose of the recovery process is to "
30181 "stop runaway qemu processes in the case where the main program aborts "
30186 #: ../src/guestfs-actions.pod:6399
30188 "This only has any effect if called before C<guestfs_launch>, and the default "
30193 #: ../src/guestfs-actions.pod:6412
30194 msgid "guestfs_set_selinux"
30198 #: ../src/guestfs-actions.pod:6414
30202 " guestfs_set_selinux (guestfs_h *g,\n"
30208 #: ../src/guestfs-actions.pod:6431
30209 msgid "guestfs_set_trace"
30213 #: ../src/guestfs-actions.pod:6433
30217 " guestfs_set_trace (guestfs_h *g,\n"
30223 #: ../src/guestfs-actions.pod:6447
30225 "Trace messages are normally sent to C<stderr>, unless you register a "
30226 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30230 #: ../src/guestfs-actions.pod:6455
30231 msgid "guestfs_set_verbose"
30235 #: ../src/guestfs-actions.pod:6457
30239 " guestfs_set_verbose (guestfs_h *g,\n"
30245 #: ../src/guestfs-actions.pod:6466
30247 "Verbose messages are normally sent to C<stderr>, unless you register a "
30248 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30252 #: ../src/guestfs-actions.pod:6474
30253 msgid "guestfs_setcon"
30257 #: ../src/guestfs-actions.pod:6476
30261 " guestfs_setcon (guestfs_h *g,\n"
30262 " const char *context);\n"
30267 #: ../src/guestfs-actions.pod:6489
30268 msgid "guestfs_setxattr"
30272 #: ../src/guestfs-actions.pod:6491
30276 " guestfs_setxattr (guestfs_h *g,\n"
30277 " const char *xattr,\n"
30278 " const char *val,\n"
30280 " const char *path);\n"
30285 #: ../src/guestfs-actions.pod:6502
30286 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30290 #: ../src/guestfs-actions.pod:6508
30291 msgid "guestfs_sfdisk"
30295 #: ../src/guestfs-actions.pod:6510
30299 " guestfs_sfdisk (guestfs_h *g,\n"
30300 " const char *device,\n"
30304 " char *const *lines);\n"
30309 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562
30310 #: ../src/guestfs-actions.pod:6596
30312 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30317 #: ../src/guestfs-actions.pod:6545
30319 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30323 #: ../src/guestfs-actions.pod:6555
30324 msgid "guestfs_sfdiskM"
30328 #: ../src/guestfs-actions.pod:6557
30332 " guestfs_sfdiskM (guestfs_h *g,\n"
30333 " const char *device,\n"
30334 " char *const *lines);\n"
30339 #: ../src/guestfs-actions.pod:6569
30341 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30342 "partition sizes are specified in megabytes only (rounded to the nearest "
30343 "cylinder) and you don't need to specify the cyls, heads and sectors "
30344 "parameters which were rarely if ever used anyway."
30348 #: ../src/guestfs-actions.pod:6575
30350 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30351 "C<guestfs_part_disk>"
30355 #: ../src/guestfs-actions.pod:6585
30356 msgid "guestfs_sfdisk_N"
30360 #: ../src/guestfs-actions.pod:6587
30364 " guestfs_sfdisk_N (guestfs_h *g,\n"
30365 " const char *device,\n"
30370 " const char *line);\n"
30375 #: ../src/guestfs-actions.pod:6606
30377 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
30378 "for the cyls/heads/sectors parameters."
30382 #: ../src/guestfs-actions.pod:6609
30383 msgid "See also: C<guestfs_part_add>"
30387 #: ../src/guestfs-actions.pod:6618
30388 msgid "guestfs_sfdisk_disk_geometry"
30392 #: ../src/guestfs-actions.pod:6620
30396 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30397 " const char *device);\n"
30402 #: ../src/guestfs-actions.pod:6624
30404 "This displays the disk geometry of C<device> read from the partition table. "
30405 "Especially in the case where the underlying block device has been resized, "
30406 "this can be different from the kernel's idea of the geometry (see "
30407 "C<guestfs_sfdisk_kernel_geometry>)."
30411 #: ../src/guestfs-actions.pod:6637
30412 msgid "guestfs_sfdisk_kernel_geometry"
30416 #: ../src/guestfs-actions.pod:6639
30420 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30421 " const char *device);\n"
30426 #: ../src/guestfs-actions.pod:6653
30427 msgid "guestfs_sfdisk_l"
30431 #: ../src/guestfs-actions.pod:6655
30435 " guestfs_sfdisk_l (guestfs_h *g,\n"
30436 " const char *device);\n"
30441 #: ../src/guestfs-actions.pod:6659
30443 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30448 #: ../src/guestfs-actions.pod:6670
30449 msgid "See also: C<guestfs_part_list>"
30453 #: ../src/guestfs-actions.pod:6677
30458 #: ../src/guestfs-actions.pod:6679
30462 " guestfs_sh (guestfs_h *g,\n"
30463 " const char *command);\n"
30468 #: ../src/guestfs-actions.pod:6686
30469 msgid "This is like C<guestfs_command>, but passes the command to:"
30473 #: ../src/guestfs-actions.pod:6694
30474 msgid "All the provisos about C<guestfs_command> apply to this call."
30478 #: ../src/guestfs-actions.pod:6701
30479 msgid "guestfs_sh_lines"
30483 #: ../src/guestfs-actions.pod:6703
30487 " guestfs_sh_lines (guestfs_h *g,\n"
30488 " const char *command);\n"
30493 #: ../src/guestfs-actions.pod:6707
30495 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30500 #: ../src/guestfs-actions.pod:6710
30501 msgid "See also: C<guestfs_command_lines>"
30505 #: ../src/guestfs-actions.pod:6718
30506 msgid "guestfs_sleep"
30510 #: ../src/guestfs-actions.pod:6720
30514 " guestfs_sleep (guestfs_h *g,\n"
30520 #: ../src/guestfs-actions.pod:6728
30521 msgid "(Added in 1.0.41)"
30525 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
30526 msgid "guestfs_stat"
30530 #: ../src/guestfs-actions.pod:6732
30533 " struct guestfs_stat *\n"
30534 " guestfs_stat (guestfs_h *g,\n"
30535 " const char *path);\n"
30540 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
30541 msgid "guestfs_statvfs"
30545 #: ../src/guestfs-actions.pod:6748
30548 " struct guestfs_statvfs *\n"
30549 " guestfs_statvfs (guestfs_h *g,\n"
30550 " const char *path);\n"
30555 #: ../src/guestfs-actions.pod:6758
30557 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30558 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
30562 #: ../src/guestfs-actions.pod:6764
30563 msgid "guestfs_strings"
30567 #: ../src/guestfs-actions.pod:6766
30571 " guestfs_strings (guestfs_h *g,\n"
30572 " const char *path);\n"
30577 #: ../src/guestfs-actions.pod:6782
30578 msgid "guestfs_strings_e"
30582 #: ../src/guestfs-actions.pod:6784
30586 " guestfs_strings_e (guestfs_h *g,\n"
30587 " const char *encoding,\n"
30588 " const char *path);\n"
30593 #: ../src/guestfs-actions.pod:6789
30595 "This is like the C<guestfs_strings> command, but allows you to specify the "
30596 "encoding of strings that are looked for in the source file C<path>."
30600 #: ../src/guestfs-actions.pod:6799
30602 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30603 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30607 #: ../src/guestfs-actions.pod:6837
30608 msgid "guestfs_swapoff_device"
30612 #: ../src/guestfs-actions.pod:6839
30616 " guestfs_swapoff_device (guestfs_h *g,\n"
30617 " const char *device);\n"
30622 #: ../src/guestfs-actions.pod:6843
30624 "This command disables the libguestfs appliance swap device or partition "
30625 "named C<device>. See C<guestfs_swapon_device>."
30629 #: ../src/guestfs-actions.pod:6851
30630 msgid "guestfs_swapoff_file"
30634 #: ../src/guestfs-actions.pod:6853
30638 " guestfs_swapoff_file (guestfs_h *g,\n"
30639 " const char *file);\n"
30644 #: ../src/guestfs-actions.pod:6863
30645 msgid "guestfs_swapoff_label"
30649 #: ../src/guestfs-actions.pod:6865
30653 " guestfs_swapoff_label (guestfs_h *g,\n"
30654 " const char *label);\n"
30659 #: ../src/guestfs-actions.pod:6876
30660 msgid "guestfs_swapoff_uuid"
30664 #: ../src/guestfs-actions.pod:6878
30668 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30669 " const char *uuid);\n"
30674 #: ../src/guestfs-actions.pod:6889
30675 msgid "guestfs_swapon_device"
30679 #: ../src/guestfs-actions.pod:6891
30683 " guestfs_swapon_device (guestfs_h *g,\n"
30684 " const char *device);\n"
30689 #: ../src/guestfs-actions.pod:6895
30691 "This command enables the libguestfs appliance to use the swap device or "
30692 "partition named C<device>. The increased memory is made available for all "
30693 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30697 #: ../src/guestfs-actions.pod:6911
30698 msgid "guestfs_swapon_file"
30702 #: ../src/guestfs-actions.pod:6913
30706 " guestfs_swapon_file (guestfs_h *g,\n"
30707 " const char *file);\n"
30712 #: ../src/guestfs-actions.pod:6917
30714 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
30719 #: ../src/guestfs-actions.pod:6924
30720 msgid "guestfs_swapon_label"
30724 #: ../src/guestfs-actions.pod:6926
30728 " guestfs_swapon_label (guestfs_h *g,\n"
30729 " const char *label);\n"
30734 #: ../src/guestfs-actions.pod:6930
30736 "This command enables swap to a labeled swap partition. See "
30737 "C<guestfs_swapon_device> for other notes."
30741 #: ../src/guestfs-actions.pod:6937
30742 msgid "guestfs_swapon_uuid"
30746 #: ../src/guestfs-actions.pod:6939
30750 " guestfs_swapon_uuid (guestfs_h *g,\n"
30751 " const char *uuid);\n"
30756 #: ../src/guestfs-actions.pod:6943
30758 "This command enables swap to a swap partition with the given UUID. See "
30759 "C<guestfs_swapon_device> for other notes."
30763 #: ../src/guestfs-actions.pod:6950
30764 msgid "guestfs_sync"
30768 #: ../src/guestfs-actions.pod:6952
30772 " guestfs_sync (guestfs_h *g);\n"
30777 #: ../src/guestfs-actions.pod:6965
30778 msgid "guestfs_tail"
30782 #: ../src/guestfs-actions.pod:6967
30786 " guestfs_tail (guestfs_h *g,\n"
30787 " const char *path);\n"
30792 #: ../src/guestfs-actions.pod:6983
30793 msgid "guestfs_tail_n"
30797 #: ../src/guestfs-actions.pod:6985
30801 " guestfs_tail_n (guestfs_h *g,\n"
30803 " const char *path);\n"
30808 #: ../src/guestfs-actions.pod:7007
30809 msgid "guestfs_tar_in"
30813 #: ../src/guestfs-actions.pod:7009
30817 " guestfs_tar_in (guestfs_h *g,\n"
30818 " const char *tarfile,\n"
30819 " const char *directory);\n"
30824 #: ../src/guestfs-actions.pod:7017
30826 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30830 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
30831 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
30832 msgid "(Added in 1.0.3)"
30836 #: ../src/guestfs-actions.pod:7024
30837 msgid "guestfs_tar_out"
30841 #: ../src/guestfs-actions.pod:7026
30845 " guestfs_tar_out (guestfs_h *g,\n"
30846 " const char *directory,\n"
30847 " const char *tarfile);\n"
30852 #: ../src/guestfs-actions.pod:7034
30854 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30855 "C<guestfs_txz_out>."
30859 #: ../src/guestfs-actions.pod:7041
30860 msgid "guestfs_tgz_in"
30864 #: ../src/guestfs-actions.pod:7043
30868 " guestfs_tgz_in (guestfs_h *g,\n"
30869 " const char *tarball,\n"
30870 " const char *directory);\n"
30875 #: ../src/guestfs-actions.pod:7051
30876 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30880 #: ../src/guestfs-actions.pod:7057
30881 msgid "guestfs_tgz_out"
30885 #: ../src/guestfs-actions.pod:7059
30889 " guestfs_tgz_out (guestfs_h *g,\n"
30890 " const char *directory,\n"
30891 " const char *tarball);\n"
30896 #: ../src/guestfs-actions.pod:7067
30897 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30901 #: ../src/guestfs-actions.pod:7073
30902 msgid "guestfs_touch"
30906 #: ../src/guestfs-actions.pod:7075
30910 " guestfs_touch (guestfs_h *g,\n"
30911 " const char *path);\n"
30916 #: ../src/guestfs-actions.pod:7090
30917 msgid "guestfs_truncate"
30921 #: ../src/guestfs-actions.pod:7092
30925 " guestfs_truncate (guestfs_h *g,\n"
30926 " const char *path);\n"
30931 #: ../src/guestfs-actions.pod:7103
30932 msgid "guestfs_truncate_size"
30936 #: ../src/guestfs-actions.pod:7105
30940 " guestfs_truncate_size (guestfs_h *g,\n"
30941 " const char *path,\n"
30942 " int64_t size);\n"
30947 #: ../src/guestfs-actions.pod:7113
30949 "If the current file size is less than C<size> then the file is extended to "
30950 "the required size with zero bytes. This creates a sparse file (ie. disk "
30951 "blocks are not allocated for the file until you write to it). To create a "
30952 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30956 #: ../src/guestfs-actions.pod:7123
30957 msgid "guestfs_tune2fs_l"
30961 #: ../src/guestfs-actions.pod:7125
30965 " guestfs_tune2fs_l (guestfs_h *g,\n"
30966 " const char *device);\n"
30971 #: ../src/guestfs-actions.pod:7145
30972 msgid "guestfs_txz_in"
30976 #: ../src/guestfs-actions.pod:7147
30980 " guestfs_txz_in (guestfs_h *g,\n"
30981 " const char *tarball,\n"
30982 " const char *directory);\n"
30987 #: ../src/guestfs-actions.pod:7159
30988 msgid "guestfs_txz_out"
30992 #: ../src/guestfs-actions.pod:7161
30996 " guestfs_txz_out (guestfs_h *g,\n"
30997 " const char *directory,\n"
30998 " const char *tarball);\n"
31003 #: ../src/guestfs-actions.pod:7173
31004 msgid "guestfs_umask"
31008 #: ../src/guestfs-actions.pod:7175
31012 " guestfs_umask (guestfs_h *g,\n"
31018 #: ../src/guestfs-actions.pod:7191
31020 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31021 "C<guestfs_mkdir>."
31025 #: ../src/guestfs-actions.pod:7200
31026 msgid "guestfs_umount"
31030 #: ../src/guestfs-actions.pod:7202
31034 " guestfs_umount (guestfs_h *g,\n"
31035 " const char *pathordevice);\n"
31040 #: ../src/guestfs-actions.pod:7214
31041 msgid "guestfs_umount_all"
31045 #: ../src/guestfs-actions.pod:7216
31049 " guestfs_umount_all (guestfs_h *g);\n"
31054 #: ../src/guestfs-actions.pod:7227
31055 msgid "guestfs_upload"
31059 #: ../src/guestfs-actions.pod:7229
31063 " guestfs_upload (guestfs_h *g,\n"
31064 " const char *filename,\n"
31065 " const char *remotefilename);\n"
31070 #: ../src/guestfs-actions.pod:7239
31071 msgid "See also C<guestfs_download>."
31075 #: ../src/guestfs-actions.pod:7250
31076 msgid "guestfs_upload_offset"
31080 #: ../src/guestfs-actions.pod:7252
31084 " guestfs_upload_offset (guestfs_h *g,\n"
31085 " const char *filename,\n"
31086 " const char *remotefilename,\n"
31087 " int64_t offset);\n"
31092 #: ../src/guestfs-actions.pod:7268
31094 "Note that there is no limit on the amount of data that can be uploaded with "
31095 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31096 "full amount unless an error occurs."
31100 #: ../src/guestfs-actions.pod:7273
31101 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31105 #: ../src/guestfs-actions.pod:7284
31106 msgid "guestfs_utimens"
31110 #: ../src/guestfs-actions.pod:7286
31114 " guestfs_utimens (guestfs_h *g,\n"
31115 " const char *path,\n"
31116 " int64_t atsecs,\n"
31117 " int64_t atnsecs,\n"
31118 " int64_t mtsecs,\n"
31119 " int64_t mtnsecs);\n"
31124 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
31125 msgid "guestfs_version"
31129 #: ../src/guestfs-actions.pod:7317
31132 " struct guestfs_version *\n"
31133 " guestfs_version (guestfs_h *g);\n"
31138 #: ../src/guestfs-actions.pod:7345
31140 "I<Note:> Don't use this call to test for availability of features. In "
31141 "enterprise distributions we backport features from later versions into "
31142 "earlier versions, making this an unreliable way to test for features. Use "
31143 "C<guestfs_available> instead."
31147 #: ../src/guestfs-actions.pod:7351
31149 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31150 "error. I<The caller must call C<guestfs_free_version> after use>."
31154 #: ../src/guestfs-actions.pod:7355
31155 msgid "(Added in 1.0.58)"
31159 #: ../src/guestfs-actions.pod:7357
31160 msgid "guestfs_vfs_label"
31164 #: ../src/guestfs-actions.pod:7359
31168 " guestfs_vfs_label (guestfs_h *g,\n"
31169 " const char *device);\n"
31174 #: ../src/guestfs-actions.pod:7368
31175 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31179 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
31180 msgid "(Added in 1.3.18)"
31184 #: ../src/guestfs-actions.pod:7375
31185 msgid "guestfs_vfs_type"
31189 #: ../src/guestfs-actions.pod:7377
31193 " guestfs_vfs_type (guestfs_h *g,\n"
31194 " const char *device);\n"
31199 #: ../src/guestfs-actions.pod:7394
31200 msgid "guestfs_vfs_uuid"
31204 #: ../src/guestfs-actions.pod:7396
31208 " guestfs_vfs_uuid (guestfs_h *g,\n"
31209 " const char *device);\n"
31214 #: ../src/guestfs-actions.pod:7405
31215 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31219 #: ../src/guestfs-actions.pod:7412
31220 msgid "guestfs_vg_activate"
31224 #: ../src/guestfs-actions.pod:7414
31228 " guestfs_vg_activate (guestfs_h *g,\n"
31230 " char *const *volgroups);\n"
31235 #: ../src/guestfs-actions.pod:7431
31236 msgid "guestfs_vg_activate_all"
31240 #: ../src/guestfs-actions.pod:7433
31244 " guestfs_vg_activate_all (guestfs_h *g,\n"
31245 " int activate);\n"
31250 #: ../src/guestfs-actions.pod:7446
31251 msgid "guestfs_vgcreate"
31255 #: ../src/guestfs-actions.pod:7448
31259 " guestfs_vgcreate (guestfs_h *g,\n"
31260 " const char *volgroup,\n"
31261 " char *const *physvols);\n"
31266 #: ../src/guestfs-actions.pod:7460
31267 msgid "guestfs_vglvuuids"
31271 #: ../src/guestfs-actions.pod:7462
31275 " guestfs_vglvuuids (guestfs_h *g,\n"
31276 " const char *vgname);\n"
31281 #: ../src/guestfs-actions.pod:7469
31283 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31284 "associate logical volumes and volume groups."
31288 #: ../src/guestfs-actions.pod:7472
31289 msgid "See also C<guestfs_vgpvuuids>."
31293 #: ../src/guestfs-actions.pod:7480
31294 msgid "guestfs_vgpvuuids"
31298 #: ../src/guestfs-actions.pod:7482
31302 " guestfs_vgpvuuids (guestfs_h *g,\n"
31303 " const char *vgname);\n"
31308 #: ../src/guestfs-actions.pod:7489
31310 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31311 "associate physical volumes and volume groups."
31315 #: ../src/guestfs-actions.pod:7492
31316 msgid "See also C<guestfs_vglvuuids>."
31320 #: ../src/guestfs-actions.pod:7500
31321 msgid "guestfs_vgremove"
31325 #: ../src/guestfs-actions.pod:7502
31329 " guestfs_vgremove (guestfs_h *g,\n"
31330 " const char *vgname);\n"
31335 #: ../src/guestfs-actions.pod:7515
31336 msgid "guestfs_vgrename"
31340 #: ../src/guestfs-actions.pod:7517
31344 " guestfs_vgrename (guestfs_h *g,\n"
31345 " const char *volgroup,\n"
31346 " const char *newvolgroup);\n"
31351 #: ../src/guestfs-actions.pod:7528
31352 msgid "guestfs_vgs"
31356 #: ../src/guestfs-actions.pod:7530
31360 " guestfs_vgs (guestfs_h *g);\n"
31365 #: ../src/guestfs-actions.pod:7539
31366 msgid "See also C<guestfs_vgs_full>."
31370 #: ../src/guestfs-actions.pod:7547
31371 msgid "guestfs_vgs_full"
31375 #: ../src/guestfs-actions.pod:7549
31378 " struct guestfs_lvm_vg_list *\n"
31379 " guestfs_vgs_full (guestfs_h *g);\n"
31384 #: ../src/guestfs-actions.pod:7555
31386 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31387 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31391 #: ../src/guestfs-actions.pod:7561
31392 msgid "guestfs_vgscan"
31396 #: ../src/guestfs-actions.pod:7563
31400 " guestfs_vgscan (guestfs_h *g);\n"
31405 #: ../src/guestfs-actions.pod:7573
31406 msgid "guestfs_vguuid"
31410 #: ../src/guestfs-actions.pod:7575
31414 " guestfs_vguuid (guestfs_h *g,\n"
31415 " const char *vgname);\n"
31420 #: ../src/guestfs-actions.pod:7586
31421 msgid "guestfs_wait_ready"
31425 #: ../src/guestfs-actions.pod:7588
31429 " guestfs_wait_ready (guestfs_h *g);\n"
31434 #: ../src/guestfs-actions.pod:7591
31436 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31441 #: ../src/guestfs-actions.pod:7598
31442 msgid "This function is a no op."
31446 #: ../src/guestfs-actions.pod:7600
31448 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31449 "calling C<guestfs_launch> to wait for the launch to complete. However this "
31450 "is no longer necessary because C<guestfs_launch> now does the waiting."
31454 #: ../src/guestfs-actions.pod:7605
31456 "If you see any calls to this function in code then you can just remove them, "
31457 "unless you want to retain compatibility with older versions of the API."
31461 #: ../src/guestfs-actions.pod:7613
31462 msgid "guestfs_wc_c"
31466 #: ../src/guestfs-actions.pod:7615
31470 " guestfs_wc_c (guestfs_h *g,\n"
31471 " const char *path);\n"
31476 #: ../src/guestfs-actions.pod:7626
31477 msgid "guestfs_wc_l"
31481 #: ../src/guestfs-actions.pod:7628
31485 " guestfs_wc_l (guestfs_h *g,\n"
31486 " const char *path);\n"
31491 #: ../src/guestfs-actions.pod:7639
31492 msgid "guestfs_wc_w"
31496 #: ../src/guestfs-actions.pod:7641
31500 " guestfs_wc_w (guestfs_h *g,\n"
31501 " const char *path);\n"
31506 #: ../src/guestfs-actions.pod:7652
31507 msgid "guestfs_write"
31511 #: ../src/guestfs-actions.pod:7654
31515 " guestfs_write (guestfs_h *g,\n"
31516 " const char *path,\n"
31517 " const char *content,\n"
31518 " size_t content_size);\n"
31523 #: ../src/guestfs-actions.pod:7663
31524 msgid "See also C<guestfs_write_append>."
31528 #: ../src/guestfs-actions.pod:7672
31529 msgid "guestfs_write_append"
31533 #: ../src/guestfs-actions.pod:7674
31537 " guestfs_write_append (guestfs_h *g,\n"
31538 " const char *path,\n"
31539 " const char *content,\n"
31540 " size_t content_size);\n"
31545 #: ../src/guestfs-actions.pod:7683
31546 msgid "See also C<guestfs_write>."
31550 #: ../src/guestfs-actions.pod:7692
31551 msgid "guestfs_write_file"
31552 msgstr "guestfs_write_file"
31555 #: ../src/guestfs-actions.pod:7694
31559 " guestfs_write_file (guestfs_h *g,\n"
31560 " const char *path,\n"
31561 " const char *content,\n"
31566 " guestfs_write_file (guestfs_h *g,\n"
31567 " const char *path,\n"
31568 " const char *content,\n"
31573 #: ../src/guestfs-actions.pod:7700
31575 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31580 #: ../src/guestfs-actions.pod:7725
31581 msgid "guestfs_zegrep"
31582 msgstr "guestfs_zegrep"
31585 #: ../src/guestfs-actions.pod:7727
31589 " guestfs_zegrep (guestfs_h *g,\n"
31590 " const char *regex,\n"
31591 " const char *path);\n"
31595 " guestfs_zegrep (guestfs_h *g,\n"
31596 " const char *regex,\n"
31597 " const char *path);\n"
31601 #: ../src/guestfs-actions.pod:7744
31602 msgid "guestfs_zegrepi"
31603 msgstr "guestfs_zegrepi"
31606 #: ../src/guestfs-actions.pod:7746
31610 " guestfs_zegrepi (guestfs_h *g,\n"
31611 " const char *regex,\n"
31612 " const char *path);\n"
31616 " guestfs_zegrepi (guestfs_h *g,\n"
31617 " const char *regex,\n"
31618 " const char *path);\n"
31622 #: ../src/guestfs-actions.pod:7763
31623 msgid "guestfs_zero"
31624 msgstr "guestfs_zero"
31627 #: ../src/guestfs-actions.pod:7765
31631 " guestfs_zero (guestfs_h *g,\n"
31632 " const char *device);\n"
31636 " guestfs_zero (guestfs_h *g,\n"
31637 " const char *device);\n"
31641 #: ../src/guestfs-actions.pod:7779
31643 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31644 "C<guestfs_is_zero_device>"
31648 #: ../src/guestfs-actions.pod:7791
31649 msgid "guestfs_zero_device"
31650 msgstr "guestfs_zero_device"
31653 #: ../src/guestfs-actions.pod:7793
31657 " guestfs_zero_device (guestfs_h *g,\n"
31658 " const char *device);\n"
31662 " guestfs_zero_device (guestfs_h *g,\n"
31663 " const char *device);\n"
31667 #: ../src/guestfs-actions.pod:7797
31669 "This command writes zeroes over the entire C<device>. Compare with "
31670 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31674 #: ../src/guestfs-actions.pod:7815
31675 msgid "(Added in 1.3.1)"
31676 msgstr "(Додано у 1.3.1)"
31679 #: ../src/guestfs-actions.pod:7817
31680 msgid "guestfs_zerofree"
31681 msgstr "guestfs_zerofree"
31684 #: ../src/guestfs-actions.pod:7819
31688 " guestfs_zerofree (guestfs_h *g,\n"
31689 " const char *device);\n"
31693 " guestfs_zerofree (guestfs_h *g,\n"
31694 " const char *device);\n"
31698 #: ../src/guestfs-actions.pod:7838
31699 msgid "guestfs_zfgrep"
31700 msgstr "guestfs_zfgrep"
31703 #: ../src/guestfs-actions.pod:7840
31707 " guestfs_zfgrep (guestfs_h *g,\n"
31708 " const char *pattern,\n"
31709 " const char *path);\n"
31713 " guestfs_zfgrep (guestfs_h *g,\n"
31714 " const char *pattern,\n"
31715 " const char *path);\n"
31719 #: ../src/guestfs-actions.pod:7857
31720 msgid "guestfs_zfgrepi"
31721 msgstr "guestfs_zfgrepi"
31724 #: ../src/guestfs-actions.pod:7859
31728 " guestfs_zfgrepi (guestfs_h *g,\n"
31729 " const char *pattern,\n"
31730 " const char *path);\n"
31734 " guestfs_zfgrepi (guestfs_h *g,\n"
31735 " const char *pattern,\n"
31736 " const char *path);\n"
31740 #: ../src/guestfs-actions.pod:7876
31741 msgid "guestfs_zfile"
31742 msgstr "guestfs_zfile"
31745 #: ../src/guestfs-actions.pod:7878
31749 " guestfs_zfile (guestfs_h *g,\n"
31750 " const char *meth,\n"
31751 " const char *path);\n"
31755 " guestfs_zfile (guestfs_h *g,\n"
31756 " const char *meth,\n"
31757 " const char *path);\n"
31761 #: ../src/guestfs-actions.pod:7883
31763 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31768 #: ../src/guestfs-actions.pod:7895
31770 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31775 #: ../src/guestfs-actions.pod:7903
31776 msgid "guestfs_zgrep"
31777 msgstr "guestfs_zgrep"
31780 #: ../src/guestfs-actions.pod:7905
31784 " guestfs_zgrep (guestfs_h *g,\n"
31785 " const char *regex,\n"
31786 " const char *path);\n"
31790 " guestfs_zgrep (guestfs_h *g,\n"
31791 " const char *regex,\n"
31792 " const char *path);\n"
31796 #: ../src/guestfs-actions.pod:7922
31797 msgid "guestfs_zgrepi"
31798 msgstr "guestfs_zgrepi"
31801 #: ../src/guestfs-actions.pod:7924
31805 " guestfs_zgrepi (guestfs_h *g,\n"
31806 " const char *regex,\n"
31807 " const char *path);\n"
31811 " guestfs_zgrepi (guestfs_h *g,\n"
31812 " const char *regex,\n"
31813 " const char *path);\n"
31817 #: ../src/guestfs-availability.pod:3
31822 #: ../src/guestfs-availability.pod:5
31824 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31825 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31826 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31827 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31828 "L</guestfs_aug_save> L</guestfs_aug_set>"
31832 #: ../src/guestfs-availability.pod:21
31837 #: ../src/guestfs-availability.pod:23
31838 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31842 #: ../src/guestfs-availability.pod:26
31844 msgstr "B<inotify>"
31847 #: ../src/guestfs-availability.pod:28
31849 "The following functions: L</guestfs_inotify_add_watch> L</"
31850 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31851 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31855 #: ../src/guestfs-availability.pod:36
31856 msgid "B<linuxfsuuid>"
31857 msgstr "B<linuxfsuuid>"
31860 #: ../src/guestfs-availability.pod:38
31862 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31863 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31867 #: ../src/guestfs-availability.pod:45
31868 msgid "B<linuxmodules>"
31869 msgstr "B<linuxmodules>"
31872 #: ../src/guestfs-availability.pod:47
31873 msgid "The following functions: L</guestfs_modprobe>"
31877 #: ../src/guestfs-availability.pod:50
31878 msgid "B<linuxxattrs>"
31879 msgstr "B<linuxxattrs>"
31882 #: ../src/guestfs-availability.pod:52
31884 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31885 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31886 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31887 "guestfs_setxattr>"
31891 #: ../src/guestfs-availability.pod:63
31896 #: ../src/guestfs-availability.pod:65
31898 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31899 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31900 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31904 #: ../src/guestfs-availability.pod:74
31909 #: ../src/guestfs-availability.pod:76
31911 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31912 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31913 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31914 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31915 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31916 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31917 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31921 #: ../src/guestfs-availability.pod:99
31926 #: ../src/guestfs-availability.pod:101
31928 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31929 "guestfs_mknod_b> L</guestfs_mknod_c>"
31933 #: ../src/guestfs-availability.pod:107
31938 #: ../src/guestfs-availability.pod:109
31939 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31943 #: ../src/guestfs-availability.pod:112
31944 msgid "B<ntfsprogs>"
31945 msgstr "B<ntfsprogs>"
31948 #: ../src/guestfs-availability.pod:114
31950 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31951 "L</guestfs_ntfsresize_size>"
31955 #: ../src/guestfs-availability.pod:119
31956 msgid "B<realpath>"
31957 msgstr "B<realpath>"
31960 #: ../src/guestfs-availability.pod:121
31961 msgid "The following functions: L</guestfs_realpath>"
31965 #: ../src/guestfs-availability.pod:124
31970 #: ../src/guestfs-availability.pod:126
31972 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31973 "guestfs_scrub_freespace>"
31977 #: ../src/guestfs-availability.pod:131
31979 msgstr "B<selinux>"
31982 #: ../src/guestfs-availability.pod:133
31983 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31987 #: ../src/guestfs-availability.pod:137
31992 #: ../src/guestfs-availability.pod:139
31993 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31997 #: ../src/guestfs-availability.pod:143
31998 msgid "B<zerofree>"
31999 msgstr "B<zerofree>"
32002 #: ../src/guestfs-availability.pod:145
32003 msgid "The following functions: L</guestfs_zerofree>"
32007 #: ../src/guestfs-structs.pod:1
32008 msgid "guestfs_int_bool"
32012 #: ../src/guestfs-structs.pod:3
32015 " struct guestfs_int_bool {\n"
32023 #: ../src/guestfs-structs.pod:8
32026 " struct guestfs_int_bool_list {\n"
32027 " uint32_t len; /* Number of elements in list. */\n"
32028 " struct guestfs_int_bool *val; /* Elements. */\n"
32034 #: ../src/guestfs-structs.pod:13
32037 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32038 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32043 #: ../src/guestfs-structs.pod:16
32044 msgid "guestfs_lvm_pv"
32048 #: ../src/guestfs-structs.pod:18
32051 " struct guestfs_lvm_pv {\n"
32052 " char *pv_name;\n"
32053 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32054 " char pv_uuid[32];\n"
32056 " uint64_t pv_size;\n"
32057 " uint64_t dev_size;\n"
32058 " uint64_t pv_free;\n"
32059 " uint64_t pv_used;\n"
32060 " char *pv_attr;\n"
32061 " int64_t pv_pe_count;\n"
32062 " int64_t pv_pe_alloc_count;\n"
32063 " char *pv_tags;\n"
32064 " uint64_t pe_start;\n"
32065 " int64_t pv_mda_count;\n"
32066 " uint64_t pv_mda_free;\n"
32072 #: ../src/guestfs-structs.pod:36
32075 " struct guestfs_lvm_pv_list {\n"
32076 " uint32_t len; /* Number of elements in list. */\n"
32077 " struct guestfs_lvm_pv *val; /* Elements. */\n"
32083 #: ../src/guestfs-structs.pod:41
32086 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32087 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32092 #: ../src/guestfs-structs.pod:44
32093 msgid "guestfs_lvm_vg"
32097 #: ../src/guestfs-structs.pod:46
32100 " struct guestfs_lvm_vg {\n"
32101 " char *vg_name;\n"
32102 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32103 " char vg_uuid[32];\n"
32105 " char *vg_attr;\n"
32106 " uint64_t vg_size;\n"
32107 " uint64_t vg_free;\n"
32108 " char *vg_sysid;\n"
32109 " uint64_t vg_extent_size;\n"
32110 " int64_t vg_extent_count;\n"
32111 " int64_t vg_free_count;\n"
32112 " int64_t max_lv;\n"
32113 " int64_t max_pv;\n"
32114 " int64_t pv_count;\n"
32115 " int64_t lv_count;\n"
32116 " int64_t snap_count;\n"
32117 " int64_t vg_seqno;\n"
32118 " char *vg_tags;\n"
32119 " int64_t vg_mda_count;\n"
32120 " uint64_t vg_mda_free;\n"
32126 #: ../src/guestfs-structs.pod:69
32129 " struct guestfs_lvm_vg_list {\n"
32130 " uint32_t len; /* Number of elements in list. */\n"
32131 " struct guestfs_lvm_vg *val; /* Elements. */\n"
32137 #: ../src/guestfs-structs.pod:74
32140 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32141 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32146 #: ../src/guestfs-structs.pod:77
32147 msgid "guestfs_lvm_lv"
32151 #: ../src/guestfs-structs.pod:79
32154 " struct guestfs_lvm_lv {\n"
32155 " char *lv_name;\n"
32156 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32157 " char lv_uuid[32];\n"
32158 " char *lv_attr;\n"
32159 " int64_t lv_major;\n"
32160 " int64_t lv_minor;\n"
32161 " int64_t lv_kernel_major;\n"
32162 " int64_t lv_kernel_minor;\n"
32163 " uint64_t lv_size;\n"
32164 " int64_t seg_count;\n"
32166 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32167 " float snap_percent;\n"
32168 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32169 " float copy_percent;\n"
32170 " char *move_pv;\n"
32171 " char *lv_tags;\n"
32172 " char *mirror_log;\n"
32173 " char *modules;\n"
32179 #: ../src/guestfs-structs.pod:101
32182 " struct guestfs_lvm_lv_list {\n"
32183 " uint32_t len; /* Number of elements in list. */\n"
32184 " struct guestfs_lvm_lv *val; /* Elements. */\n"
32190 #: ../src/guestfs-structs.pod:106
32193 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32194 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32199 #: ../src/guestfs-structs.pod:111
32202 " struct guestfs_stat {\n"
32206 " int64_t nlink;\n"
32211 " int64_t blksize;\n"
32212 " int64_t blocks;\n"
32213 " int64_t atime;\n"
32214 " int64_t mtime;\n"
32215 " int64_t ctime;\n"
32221 #: ../src/guestfs-structs.pod:127
32224 " struct guestfs_stat_list {\n"
32225 " uint32_t len; /* Number of elements in list. */\n"
32226 " struct guestfs_stat *val; /* Elements. */\n"
32232 #: ../src/guestfs-structs.pod:132
32235 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32236 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32241 #: ../src/guestfs-structs.pod:137
32244 " struct guestfs_statvfs {\n"
32245 " int64_t bsize;\n"
32246 " int64_t frsize;\n"
32247 " int64_t blocks;\n"
32248 " int64_t bfree;\n"
32249 " int64_t bavail;\n"
32250 " int64_t files;\n"
32251 " int64_t ffree;\n"
32252 " int64_t favail;\n"
32255 " int64_t namemax;\n"
32261 #: ../src/guestfs-structs.pod:151
32264 " struct guestfs_statvfs_list {\n"
32265 " uint32_t len; /* Number of elements in list. */\n"
32266 " struct guestfs_statvfs *val; /* Elements. */\n"
32272 #: ../src/guestfs-structs.pod:156
32275 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32276 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32281 #: ../src/guestfs-structs.pod:159
32282 msgid "guestfs_dirent"
32286 #: ../src/guestfs-structs.pod:161
32289 " struct guestfs_dirent {\n"
32298 #: ../src/guestfs-structs.pod:167
32301 " struct guestfs_dirent_list {\n"
32302 " uint32_t len; /* Number of elements in list. */\n"
32303 " struct guestfs_dirent *val; /* Elements. */\n"
32309 #: ../src/guestfs-structs.pod:172
32312 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32313 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32318 #: ../src/guestfs-structs.pod:177
32321 " struct guestfs_version {\n"
32322 " int64_t major;\n"
32323 " int64_t minor;\n"
32324 " int64_t release;\n"
32331 #: ../src/guestfs-structs.pod:184
32334 " struct guestfs_version_list {\n"
32335 " uint32_t len; /* Number of elements in list. */\n"
32336 " struct guestfs_version *val; /* Elements. */\n"
32342 #: ../src/guestfs-structs.pod:189
32345 " void guestfs_free_version (struct guestfs_free_version *);\n"
32346 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32351 #: ../src/guestfs-structs.pod:192
32352 msgid "guestfs_xattr"
32356 #: ../src/guestfs-structs.pod:194
32359 " struct guestfs_xattr {\n"
32360 " char *attrname;\n"
32361 " /* The next two fields describe a byte array. */\n"
32362 " uint32_t attrval_len;\n"
32363 " char *attrval;\n"
32369 #: ../src/guestfs-structs.pod:201
32372 " struct guestfs_xattr_list {\n"
32373 " uint32_t len; /* Number of elements in list. */\n"
32374 " struct guestfs_xattr *val; /* Elements. */\n"
32380 #: ../src/guestfs-structs.pod:206
32383 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32384 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32389 #: ../src/guestfs-structs.pod:209
32390 msgid "guestfs_inotify_event"
32394 #: ../src/guestfs-structs.pod:211
32397 " struct guestfs_inotify_event {\n"
32398 " int64_t in_wd;\n"
32399 " uint32_t in_mask;\n"
32400 " uint32_t in_cookie;\n"
32401 " char *in_name;\n"
32407 #: ../src/guestfs-structs.pod:218
32410 " struct guestfs_inotify_event_list {\n"
32411 " uint32_t len; /* Number of elements in list. */\n"
32412 " struct guestfs_inotify_event *val; /* Elements. */\n"
32418 #: ../src/guestfs-structs.pod:223
32421 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32422 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32427 #: ../src/guestfs-structs.pod:226
32428 msgid "guestfs_partition"
32432 #: ../src/guestfs-structs.pod:228
32435 " struct guestfs_partition {\n"
32436 " int32_t part_num;\n"
32437 " uint64_t part_start;\n"
32438 " uint64_t part_end;\n"
32439 " uint64_t part_size;\n"
32445 #: ../src/guestfs-structs.pod:235
32448 " struct guestfs_partition_list {\n"
32449 " uint32_t len; /* Number of elements in list. */\n"
32450 " struct guestfs_partition *val; /* Elements. */\n"
32456 #: ../src/guestfs-structs.pod:240
32459 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32460 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32465 #: ../src/guestfs-structs.pod:243
32466 msgid "guestfs_application"
32470 #: ../src/guestfs-structs.pod:245
32473 " struct guestfs_application {\n"
32474 " char *app_name;\n"
32475 " char *app_display_name;\n"
32476 " int32_t app_epoch;\n"
32477 " char *app_version;\n"
32478 " char *app_release;\n"
32479 " char *app_install_path;\n"
32480 " char *app_trans_path;\n"
32481 " char *app_publisher;\n"
32482 " char *app_url;\n"
32483 " char *app_source_package;\n"
32484 " char *app_summary;\n"
32485 " char *app_description;\n"
32491 #: ../src/guestfs-structs.pod:260
32494 " struct guestfs_application_list {\n"
32495 " uint32_t len; /* Number of elements in list. */\n"
32496 " struct guestfs_application *val; /* Elements. */\n"
32502 #: ../src/guestfs-structs.pod:265
32505 " void guestfs_free_application (struct guestfs_free_application *);\n"
32506 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32511 #: ../src/guestfs.pod:5
32512 msgid "guestfs - Library for accessing and modifying virtual machine images"
32514 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32518 #: ../src/guestfs.pod:11
32521 " guestfs_h *g = guestfs_create ();\n"
32522 " guestfs_add_drive (g, \"guest.img\");\n"
32523 " guestfs_launch (g);\n"
32524 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32525 " guestfs_touch (g, \"/hello\");\n"
32526 " guestfs_umount (g, \"/\");\n"
32527 " guestfs_close (g);\n"
32530 " guestfs_h *g = guestfs_create ();\n"
32531 " guestfs_add_drive (g, \"guest.img\");\n"
32532 " guestfs_launch (g);\n"
32533 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32534 " guestfs_touch (g, \"/hello\");\n"
32535 " guestfs_umount (g, \"/\");\n"
32536 " guestfs_close (g);\n"
32540 #: ../src/guestfs.pod:25
32542 "Libguestfs is a library for accessing and modifying guest disk images. "
32543 "Amongst the things this is good for: making batch configuration changes to "
32544 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32545 "between virtualization systems (see also: virt-p2v), performing partial "
32546 "backups, performing partial guest clones, cloning guests and changing "
32547 "registry/UUID/hostname info, and much else besides."
32551 #: ../src/guestfs.pod:33
32553 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32554 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32555 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32560 #: ../src/guestfs.pod:38
32562 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32563 "what filesystem is in each LV, etc.). It can also run commands in the "
32564 "context of the guest. Also you can access filesystems over FUSE."
32568 #: ../src/guestfs.pod:43
32570 "Libguestfs is a library that can be linked with C and C++ management "
32571 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32572 "PHP, Haskell or C#). You can also use it from shell scripts or the command "
32577 #: ../src/guestfs.pod:48
32579 "You don't need to be root to use libguestfs, although obviously you do need "
32580 "enough permissions to access the disk images."
32584 #: ../src/guestfs.pod:51
32586 "Libguestfs is a large API because it can do many things. For a gentle "
32587 "introduction, please read the L</API OVERVIEW> section next."
32591 #: ../src/guestfs.pod:54
32593 "There are also some example programs in the L<guestfs-examples(3)> manual "
32598 #: ../src/guestfs.pod:57
32599 msgid "API OVERVIEW"
32603 #: ../src/guestfs.pod:59
32605 "This section provides a gentler overview of the libguestfs API. We also try "
32606 "to group API calls together, where that may not be obvious from reading "
32607 "about the individual calls in the main section of this manual."
32611 #: ../src/guestfs.pod:64
32616 #: ../src/guestfs.pod:66
32618 "Before you can use libguestfs calls, you have to create a handle. Then you "
32619 "must add at least one disk image to the handle, followed by launching the "
32620 "handle, then performing whatever operations you want, and finally closing "
32621 "the handle. By convention we use the single letter C<g> for the name of the "
32622 "handle variable, although of course you can use any name you want."
32626 #: ../src/guestfs.pod:73
32627 msgid "The general structure of all libguestfs-using programs looks like this:"
32631 #: ../src/guestfs.pod:76
32634 " guestfs_h *g = guestfs_create ();\n"
32637 " guestfs_h *g = guestfs_create ();\n"
32641 #: ../src/guestfs.pod:78
32644 " /* Call guestfs_add_drive additional times if there are\n"
32645 " * multiple disk images.\n"
32647 " guestfs_add_drive (g, \"guest.img\");\n"
32652 #: ../src/guestfs.pod:83
32655 " /* Most manipulation calls won't work until you've launched\n"
32656 " * the handle 'g'. You have to do this _after_ adding drives\n"
32657 " * and _before_ other commands.\n"
32659 " guestfs_launch (g);\n"
32664 #: ../src/guestfs.pod:89
32667 " /* Now you can examine what partitions, LVs etc are available.\n"
32669 " char **partitions = guestfs_list_partitions (g);\n"
32670 " char **logvols = guestfs_lvs (g);\n"
32673 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32675 " char **partitions = guestfs_list_partitions (g);\n"
32676 " char **logvols = guestfs_lvs (g);\n"
32680 #: ../src/guestfs.pod:94
32683 " /* To access a filesystem in the image, you must mount it.\n"
32685 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32688 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32690 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32694 #: ../src/guestfs.pod:98
32697 " /* Now you can perform filesystem actions on the guest\n"
32700 " guestfs_touch (g, \"/hello\");\n"
32705 #: ../src/guestfs.pod:103
32708 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
32709 " * it is done automatically when you close the handle. See\n"
32710 " * discussion of autosync in this page.\n"
32712 " guestfs_sync (g);\n"
32717 #: ../src/guestfs.pod:109
32720 " /* Close the handle 'g'. */\n"
32721 " guestfs_close (g);\n"
32724 " /* Закрити дескриптор 'g'. */\n"
32725 " guestfs_close (g);\n"
32729 #: ../src/guestfs.pod:112
32731 "The code above doesn't include any error checking. In real code you should "
32732 "check return values carefully for errors. In general all functions that "
32733 "return integers return C<-1> on error, and all functions that return "
32734 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
32735 "how to handle errors, and consult the documentation for each function call "
32736 "below to see precisely how they return error indications. See L<guestfs-"
32737 "examples(3)> for fully worked examples."
32741 #: ../src/guestfs.pod:121
32742 msgid "DISK IMAGES"
32743 msgstr "ОБРАЗИ ДИСКІВ"
32746 #: ../src/guestfs.pod:123
32748 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32749 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32750 "actual block device, or simply an empty file of zeroes that you have created "
32751 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
32756 #: ../src/guestfs.pod:129
32758 "The call you should use in modern code for adding drives is L</"
32759 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
32760 "specifying that the format is raw, do:"
32764 #: ../src/guestfs.pod:133
32767 " guestfs_add_drive_opts (g, filename,\n"
32768 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32772 " guestfs_add_drive_opts (g, filename,\n"
32773 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32778 #: ../src/guestfs.pod:137
32779 msgid "You can add a disk read-only using:"
32780 msgstr "Ви можете додати диск у режимі лише читання:"
32783 #: ../src/guestfs.pod:139
32786 " guestfs_add_drive_opts (g, filename,\n"
32787 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32788 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32792 " guestfs_add_drive_opts (g, filename,\n"
32793 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32794 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32799 #: ../src/guestfs.pod:144
32801 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
32802 "libguestfs won't modify the file."
32806 #: ../src/guestfs.pod:147
32808 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32809 "by a virtual machine. Adding it read-write will almost certainly cause disk "
32810 "corruption, but adding it read-only is safe."
32814 #: ../src/guestfs.pod:151
32816 "You must add at least one disk image, and you may add multiple disk images. "
32817 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32818 "first one you added), C</dev/sdb> (for the second one you added), etc."
32822 #: ../src/guestfs.pod:156
32824 "Once L</guestfs_launch> has been called you cannot add any more images. You "
32825 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32826 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
32830 #: ../src/guestfs.pod:161
32832 msgstr "МОНТУВАННЯ"
32835 #: ../src/guestfs.pod:163
32837 "Before you can read or write files, create directories and so on in a disk "
32838 "image that contains filesystems, you have to mount those filesystems using "
32839 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
32840 "a disk image contains (for example) one partition with a filesystem on that "
32841 "partition, then you can mount it directly:"
32845 #: ../src/guestfs.pod:170
32848 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32851 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32855 #: ../src/guestfs.pod:172
32857 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32858 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
32859 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
32860 "that these are libguestfs virtual devices, and are nothing to do with host "
32865 #: ../src/guestfs.pod:178
32867 "If you are given a disk image and you don't know what it contains then you "
32868 "have to find out. Libguestfs can do that too: use L</"
32869 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32870 "LVs, and either try mounting each to see what is mountable, or else examine "
32871 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
32872 "filesystems, use L</guestfs_list_filesystems>."
32876 #: ../src/guestfs.pod:186
32878 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32879 "L</INSPECTION> below). But you might find it easier to look at higher level "
32880 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32884 #: ../src/guestfs.pod:191
32886 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
32887 "several other variations of the C<guestfs_mount_*> call."
32891 #: ../src/guestfs.pod:194
32892 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32893 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32896 #: ../src/guestfs.pod:196
32898 "The majority of the libguestfs API consists of fairly low-level calls for "
32899 "accessing and modifying the files, directories, symlinks etc on mounted "
32900 "filesystems. There are over a hundred such calls which you can find listed "
32901 "in detail below in this man page, and we don't even pretend to cover them "
32902 "all in this overview."
32906 #: ../src/guestfs.pod:202
32908 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32911 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32912 "точкою монтування."
32915 #: ../src/guestfs.pod:205
32917 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32918 "the file called C<\"etc/passwd\"> then you could do:"
32920 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32921 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32925 #: ../src/guestfs.pod:208
32928 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32931 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32935 #: ../src/guestfs.pod:210
32937 "This would return C<data> as a newly allocated buffer containing the full "
32938 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32939 "or C<NULL> if there was an error."
32943 #: ../src/guestfs.pod:214
32945 "As another example, to create a top-level directory on that filesystem "
32946 "called C<\"var\"> you would do:"
32950 #: ../src/guestfs.pod:217
32953 " guestfs_mkdir (g, \"/var\");\n"
32956 " guestfs_mkdir (g, \"/var\");\n"
32960 #: ../src/guestfs.pod:219
32961 msgid "To create a symlink you could do:"
32962 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32965 #: ../src/guestfs.pod:221
32968 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32969 " \"/etc/rc3.d/S30portmap\");\n"
32972 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32973 " \"/etc/rc3.d/S30portmap\");\n"
32977 #: ../src/guestfs.pod:224
32979 "Libguestfs will reject attempts to use relative paths and there is no "
32980 "concept of a current working directory."
32984 #: ../src/guestfs.pod:227
32986 "Libguestfs can return errors in many situations: for example if the "
32987 "filesystem isn't writable, or if a file or directory that you requested "
32988 "doesn't exist. If you are using the C API (documented here) you have to "
32989 "check for those error conditions after each call. (Other language bindings "
32990 "turn these errors into exceptions)."
32994 #: ../src/guestfs.pod:233
32996 "File writes are affected by the per-handle umask, set by calling L</"
32997 "guestfs_umask> and defaulting to 022. See L</UMASK>."
33001 #: ../src/guestfs.pod:236
33002 msgid "PARTITIONING"
33003 msgstr "ПОДІЛ НА РОЗДІЛИ"
33006 #: ../src/guestfs.pod:238
33008 "Libguestfs contains API calls to read, create and modify partition tables on "
33013 #: ../src/guestfs.pod:241
33015 "In the common case where you want to create a single partition covering the "
33016 "whole disk, you should use the L</guestfs_part_disk> call:"
33020 #: ../src/guestfs.pod:245
33023 " const char *parttype = \"mbr\";\n"
33024 " if (disk_is_larger_than_2TB)\n"
33025 " parttype = \"gpt\";\n"
33026 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33029 " const char *parttype = \"mbr\";\n"
33030 " if (disk_is_larger_than_2TB)\n"
33031 " parttype = \"gpt\";\n"
33032 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33036 #: ../src/guestfs.pod:250
33038 "Obviously this effectively wipes anything that was on that disk image before."
33042 #: ../src/guestfs.pod:253
33047 #: ../src/guestfs.pod:255
33049 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33050 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
33051 "you familiarize yourself with the concepts of physical volumes, volume "
33052 "groups and logical volumes."
33056 #: ../src/guestfs.pod:260
33058 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33059 "tldp.org/HOWTO/LVM-HOWTO/>."
33063 #: ../src/guestfs.pod:263
33064 msgid "DOWNLOADING"
33065 msgstr "ОТРИМАННЯ ДАНИХ"
33068 #: ../src/guestfs.pod:265
33070 "Use L</guestfs_cat> to download small, text only files. This call is "
33071 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33072 "NUL (C<\\0>) characters. However the API is very simple to use."
33076 #: ../src/guestfs.pod:269
33078 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33079 "bit data, since it returns a (pointer, size) pair. However it is still "
33080 "limited to \"small\" files, less than 2 MB."
33084 #: ../src/guestfs.pod:273
33086 "L</guestfs_download> can be used to download any file, with no limits on "
33087 "content or size (even files larger than 4 GB)."
33091 #: ../src/guestfs.pod:276
33093 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33097 #: ../src/guestfs.pod:279
33099 msgstr "ВИВАНТАЖЕННЯ"
33102 #: ../src/guestfs.pod:281
33104 "It's often the case that you want to write a file or files to the disk image."
33108 #: ../src/guestfs.pod:284
33110 "To write a small file with fixed content, use L</guestfs_write>. To create "
33111 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33112 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
33113 "of other functions for creating test files, for example L</guestfs_fill> and "
33114 "L</guestfs_fill_pattern>."
33118 #: ../src/guestfs.pod:290
33120 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
33121 "file content or size (even files larger than 4 GB)."
33125 #: ../src/guestfs.pod:293
33127 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33131 #: ../src/guestfs.pod:295
33133 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33134 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33135 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
33136 "in a predictable way (eg. adding it last after all other drives) then you "
33137 "can get the device name from L</guestfs_list_devices> and mount it directly "
33138 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
33139 "portable between kernel versions, and they don't support labels or UUIDs. "
33140 "If you want to pre-build an image or you need to mount it using a label or "
33141 "UUID, use an ISO image instead."
33145 #: ../src/guestfs.pod:306
33147 msgstr "КОПІЮВАННЯ"
33150 #: ../src/guestfs.pod:308
33152 "There are various different commands for copying between files and devices "
33153 "and in and out of the guest filesystem. These are summarised in the table "
33158 #: ../src/guestfs.pod:314
33159 msgid "B<file> to B<file>"
33160 msgstr "B<файл> у B<файл>"
33163 #: ../src/guestfs.pod:316
33165 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33166 "directories recursively."
33170 #: ../src/guestfs.pod:319
33171 msgid "B<file or device> to B<file or device>"
33172 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33175 #: ../src/guestfs.pod:321
33177 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33178 "devices in the guest."
33182 #: ../src/guestfs.pod:324
33183 msgid "Example: duplicate the contents of an LV:"
33187 #: ../src/guestfs.pod:326
33190 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33193 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33197 #: ../src/guestfs.pod:328
33199 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33200 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
33201 "guestfs_copy_size>."
33205 #: ../src/guestfs.pod:332
33206 msgid "B<file on the host> to B<file or device>"
33210 #: ../src/guestfs.pod:334
33211 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
33215 #: ../src/guestfs.pod:336
33216 msgid "B<file or device> to B<file on the host>"
33220 #: ../src/guestfs.pod:338
33221 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
33225 #: ../src/guestfs.pod:342
33226 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33230 #: ../src/guestfs.pod:344
33232 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33233 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33234 "appears you can only upload and download to files. However many Un*x-like "
33235 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33236 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33237 "and arbitrary file descriptor N."
33241 #: ../src/guestfs.pod:352
33242 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33246 #: ../src/guestfs.pod:355
33249 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33252 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33256 #: ../src/guestfs.pod:357
33257 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33261 #: ../src/guestfs.pod:359
33264 " char devfd[64];\n"
33265 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33266 " guestfs_tar_out (g, \"/\", devfd);\n"
33269 " char devfd[64];\n"
33270 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33271 " guestfs_tar_out (g, \"/\", devfd);\n"
33275 #: ../src/guestfs.pod:363
33276 msgid "LISTING FILES"
33277 msgstr "СПИСКИ ФАЙЛІВ"
33280 #: ../src/guestfs.pod:365
33282 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33283 "L<guestfish(1)>-equivalent command C<ll>)."
33287 #: ../src/guestfs.pod:368
33289 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33290 "programs, as a flat list of strings."
33294 #: ../src/guestfs.pod:371
33296 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33297 "directory, plus additional information about each one. It is more "
33298 "equivalent to using the L<readdir(3)> call on a local filesystem."
33302 #: ../src/guestfs.pod:375
33304 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33308 #: ../src/guestfs.pod:378
33309 msgid "RUNNING COMMANDS"
33310 msgstr "ВИКОНАННЯ КОМАНД"
33313 #: ../src/guestfs.pod:380
33315 "Although libguestfs is primarily an API for manipulating files inside guest "
33316 "images, we also provide some limited facilities for running commands inside "
33321 #: ../src/guestfs.pod:384
33322 msgid "There are many limitations to this:"
33326 #: ../src/guestfs.pod:390
33328 "The kernel version that the command runs under will be different from what "
33333 #: ../src/guestfs.pod:395
33335 "If the command needs to communicate with daemons, then most likely they "
33336 "won't be running."
33340 #: ../src/guestfs.pod:400
33341 msgid "The command will be running in limited memory."
33345 #: ../src/guestfs.pod:404
33347 "The network may not be available unless you enable it (see L</"
33348 "guestfs_set_network>)."
33352 #: ../src/guestfs.pod:409
33353 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33357 #: ../src/guestfs.pod:413
33359 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33363 #: ../src/guestfs.pod:418
33365 "For SELinux guests, you may need to enable SELinux and load policy first. "
33366 "See L</SELINUX> in this manpage."
33370 #: ../src/guestfs.pod:423
33372 "I<Security:> It is not safe to run commands from untrusted, possibly "
33373 "malicious guests. These commands may attempt to exploit your program by "
33374 "sending unexpected output. They could also try to exploit the Linux kernel "
33375 "or qemu provided by the libguestfs appliance. They could use the network "
33376 "provided by the libguestfs appliance to bypass ordinary network partitions "
33377 "and firewalls. They could use the elevated privileges or different SELinux "
33378 "context of your program to their advantage."
33382 #: ../src/guestfs.pod:432
33384 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33385 "(a script which runs when the guest next boots normally), and to have this "
33386 "script run the commands you want in the normal context of the running guest, "
33387 "network security and so on. For information about other security issues, "
33388 "see L</SECURITY>."
33392 #: ../src/guestfs.pod:440
33394 "The two main API calls to run commands are L</guestfs_command> and L</"
33395 "guestfs_sh> (there are also variations)."
33399 #: ../src/guestfs.pod:443
33401 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33402 "shell globs, redirections, etc will work."
33406 #: ../src/guestfs.pod:446
33407 msgid "CONFIGURATION FILES"
33408 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33411 #: ../src/guestfs.pod:448
33413 "To read and write configuration files in Linux guest filesystems, we "
33414 "strongly recommend using Augeas. For example, Augeas understands how to "
33415 "read and write, say, a Linux shadow password file or X.org configuration "
33416 "file, and so avoids you having to write that code."
33420 #: ../src/guestfs.pod:453
33422 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
33423 "document Augeas itself here because there is excellent documentation on the "
33424 "L<http://augeas.net/> website."
33428 #: ../src/guestfs.pod:457
33430 "If you don't want to use Augeas (you fool!) then try calling L</"
33431 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33436 #: ../src/guestfs.pod:461
33441 #: ../src/guestfs.pod:463
33443 "We support SELinux guests. To ensure that labeling happens correctly in "
33444 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33448 #: ../src/guestfs.pod:471
33449 msgid "Before launching, do:"
33453 #: ../src/guestfs.pod:473
33456 " guestfs_set_selinux (g, 1);\n"
33459 " guestfs_set_selinux (g, 1);\n"
33463 #: ../src/guestfs.pod:477
33465 "After mounting the guest's filesystem(s), load the policy. This is best "
33466 "done by running the L<load_policy(8)> command in the guest itself:"
33470 #: ../src/guestfs.pod:481
33473 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33476 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33480 #: ../src/guestfs.pod:483
33482 "(Older versions of C<load_policy> require you to specify the name of the "
33487 #: ../src/guestfs.pod:488
33489 "Optionally, set the security context for the API. The correct security "
33490 "context to use can only be known by inspecting the guest. As an example:"
33494 #: ../src/guestfs.pod:492
33497 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33500 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33504 #: ../src/guestfs.pod:496
33505 msgid "This will work for running commands and editing existing files."
33509 #: ../src/guestfs.pod:498
33511 "When new files are created, you may need to label them explicitly, for "
33512 "example by running the external command C<restorecon pathname>."
33516 #: ../src/guestfs.pod:502
33521 #: ../src/guestfs.pod:504
33523 "Certain calls are affected by the current file mode creation mask (the "
33524 "\"umask\"). In particular ones which create files or directories, such as "
33525 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
33526 "either the default mode that the file is created with or modifies the mode "
33531 #: ../src/guestfs.pod:510
33533 "The default umask is C<022>, so files are created with modes such as C<0644> "
33534 "and directories with C<0755>."
33538 #: ../src/guestfs.pod:513
33540 "There are two ways to avoid being affected by umask. Either set umask to 0 "
33541 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
33542 "guestfs_chmod> after creating each file or directory."
33546 #: ../src/guestfs.pod:517
33547 msgid "For more information about umask, see L<umask(2)>."
33551 #: ../src/guestfs.pod:521
33553 "Libguestfs allows you to access Linux guests which have been encrypted using "
33554 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33555 "standard. This includes nearly all whole disk encryption systems used by "
33556 "modern Linux guests."
33560 #: ../src/guestfs.pod:527
33562 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33563 "returns the string C<crypto_LUKS>)."
33567 #: ../src/guestfs.pod:530
33569 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
33570 "will require the passphrase!"
33574 #: ../src/guestfs.pod:533
33576 "Opening a LUKS device creates a new device mapper device called C</dev/"
33577 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33578 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
33579 "from and encrypted to the underlying block device respectively."
33583 #: ../src/guestfs.pod:539
33585 "LVM volume groups on the device can be made visible by calling L</"
33586 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
33587 "(s) can now be mounted in the usual way."
33591 #: ../src/guestfs.pod:543
33593 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
33594 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33595 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
33596 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33597 "underlying encrypted block device)."
33601 #: ../src/guestfs.pod:550
33606 #: ../src/guestfs.pod:552
33608 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33609 "contains operating systems, an install CD or a live CD. (These APIs used to "
33610 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33611 "version 1.5.3 the most frequently used part of this library has been "
33612 "rewritten in C and moved into the core code)."
33616 #: ../src/guestfs.pod:559
33618 "Add all disks belonging to the unknown virtual machine and call L</"
33619 "guestfs_launch> in the usual way."
33623 #: ../src/guestfs.pod:562
33625 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
33626 "and certain heuristics, and returns a list of operating systems that were "
33627 "found. An empty list means none were found. A single element is the root "
33628 "filesystem of the operating system. For dual- or multi-boot guests, "
33629 "multiple roots can be returned, each one corresponding to a separate "
33630 "operating system. (Multi-boot virtual machines are extremely rare in the "
33631 "world of virtualization, but since this scenario can happen, we have built "
33632 "libguestfs to deal with it.)"
33636 #: ../src/guestfs.pod:571
33638 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33639 "to get additional details about that operating system. For example, call L</"
33640 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33641 "Windows and Linux-based operating systems respectively."
33645 #: ../src/guestfs.pod:577
33647 "Un*x-like and Linux-based operating systems usually consist of several "
33648 "filesystems which are mounted at boot time (for example, a separate boot "
33649 "partition mounted on C</boot>). The inspection rules are able to detect how "
33650 "filesystems correspond to mount points. Call "
33651 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
33652 "hash table like this example:"
33656 #: ../src/guestfs.pod:584
33659 " /boot => /dev/sda1\n"
33660 " / => /dev/vg_guest/lv_root\n"
33661 " /usr => /dev/vg_guest/lv_usr\n"
33664 " /boot => /dev/sda1\n"
33665 " / => /dev/vg_guest/lv_root\n"
33666 " /usr => /dev/vg_guest/lv_usr\n"
33670 #: ../src/guestfs.pod:588
33672 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33673 "filesystems as suggested."
33677 #: ../src/guestfs.pod:591
33679 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33680 "usr>). Sorting the keys of the hash by length, shortest first, should work."
33684 #: ../src/guestfs.pod:595
33686 "Inspection currently only works for some common operating systems. "
33687 "Contributors are welcome to send patches for other operating systems that we "
33688 "currently cannot detect."
33692 #: ../src/guestfs.pod:599
33694 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
33695 "for more details. The L</guestfs_inspect_os> function just ignores any "
33696 "encrypted devices."
33700 #: ../src/guestfs.pod:603
33702 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33703 "inspection and caches the results in the guest handle. Subsequent calls to "
33704 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33705 "read the disks. If you change the content of the guest disks, you can redo "
33706 "inspection by calling L</guestfs_inspect_os> again. (L</"
33707 "guestfs_inspect_list_applications> works a little differently from the other "
33708 "calls and does read the disks. See documentation for that function for "
33713 #: ../src/guestfs.pod:612
33714 msgid "INSPECTING INSTALL DISKS"
33718 #: ../src/guestfs.pod:614
33720 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33725 #: ../src/guestfs.pod:617
33727 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33728 "system, which currently can be C<installed> (a regular operating system) or "
33729 "C<installer> (some sort of install disk)."
33733 #: ../src/guestfs.pod:621
33735 "Further information is available about the operating system that can be "
33736 "installed using the regular inspection APIs like L</"
33737 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33741 #: ../src/guestfs.pod:626
33743 "Some additional information specific to installer disks is also available "
33744 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33745 "guestfs_inspect_is_multipart> calls."
33749 #: ../src/guestfs.pod:631
33750 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33754 #: ../src/guestfs.pod:633
33756 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
33757 "ntfs-3g.org/> driver."
33761 #: ../src/guestfs.pod:636
33762 msgid "DRIVE LETTERS AND PATHS"
33763 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33766 #: ../src/guestfs.pod:638
33768 "DOS and Windows still use drive letters, and the filesystems are always "
33769 "treated as case insensitive by Windows itself, and therefore you might find "
33770 "a Windows configuration file referring to a path like C<c:\\windows"
33771 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
33772 "might be referred to as C</WINDOWS/System32>."
33776 #: ../src/guestfs.pod:644
33778 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33779 "L</guestfs_inspect_get_drive_mappings>)"
33783 #: ../src/guestfs.pod:647
33785 "Dealing with separator characters (backslash vs forward slash) is outside "
33786 "the scope of libguestfs, but usually a simple character replacement will "
33791 #: ../src/guestfs.pod:651
33793 "To resolve the case insensitivity of paths, call L</"
33794 "guestfs_case_sensitive_path>."
33798 #: ../src/guestfs.pod:654
33799 msgid "ACCESSING THE WINDOWS REGISTRY"
33800 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33803 #: ../src/guestfs.pod:656
33805 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33806 "files, through the library C<hivex> which is part of the libguestfs project "
33807 "although ships as a separate tarball. You have to locate and download the "
33808 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
33809 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33810 "reg(1)> for more help on this issue."
33814 #: ../src/guestfs.pod:664
33815 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33816 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33819 #: ../src/guestfs.pod:666
33821 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33822 "provide something which looks like a Linux symlink. The way it tries to do "
33823 "the rewriting is described here:"
33827 #: ../src/guestfs.pod:670
33829 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33832 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33836 #: ../src/guestfs.pod:672
33838 "The essential problem is that ntfs-3g simply does not have enough "
33839 "information to do a correct job. NTFS links can contain drive letters and "
33840 "references to external device GUIDs that ntfs-3g has no way of resolving. "
33841 "It is almost certainly the case that libguestfs callers should ignore what "
33842 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33846 #: ../src/guestfs.pod:679
33848 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33849 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33850 "attribute, and read the raw reparse data from that (you can find the format "
33851 "documented in various places around the web)."
33855 #: ../src/guestfs.pod:684
33856 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33860 #: ../src/guestfs.pod:686
33862 "There are other useful extended attributes that can be read from ntfs-3g "
33863 "filesystems (using L</guestfs_getxattr>). See:"
33867 #: ../src/guestfs.pod:689
33869 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33871 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33874 #: ../src/guestfs.pod:691
33875 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33876 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33879 #: ../src/guestfs.pod:693
33881 "Although we don't want to discourage you from using the C API, we will "
33882 "mention here that the same API is also available in other languages."
33886 #: ../src/guestfs.pod:696
33888 "The API is broadly identical in all supported languages. This means that "
33889 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33890 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33891 "OCaml. In other words, a straightforward, predictable isomorphism between "
33896 #: ../src/guestfs.pod:702
33898 "Error messages are automatically transformed into exceptions if the language "
33903 #: ../src/guestfs.pod:705
33905 "We don't try to \"object orientify\" parts of the API in OO languages, "
33906 "although contributors are welcome to write higher level APIs above what we "
33907 "provide in their favourite languages if they wish."
33911 #: ../src/guestfs.pod:711
33916 #: ../src/guestfs.pod:713
33918 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
33919 "identical to the C API. C++ classes and exceptions are not used."
33923 #: ../src/guestfs.pod:717
33928 #: ../src/guestfs.pod:719
33930 "The C# bindings are highly experimental. Please read the warnings at the "
33931 "top of C<csharp/Libguestfs.cs>."
33935 #: ../src/guestfs.pod:722
33937 msgstr "B<Haskell>"
33940 #: ../src/guestfs.pod:724
33942 "This is the only language binding that is working but incomplete. Only "
33943 "calls which return simple integers have been bound in Haskell, and we are "
33944 "looking for help to complete this binding."
33948 #: ../src/guestfs.pod:728
33953 #: ../src/guestfs.pod:730
33955 "Full documentation is contained in the Javadoc which is distributed with "
33956 "libguestfs. For examples, see L<guestfs-java(3)>."
33960 #: ../src/guestfs.pod:733
33965 #: ../src/guestfs.pod:735
33966 msgid "See L<guestfs-ocaml(3)>."
33967 msgstr "Див. L<guestfs-ocaml(3)>."
33970 #: ../src/guestfs.pod:737
33975 #: ../src/guestfs.pod:739
33976 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33977 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33980 #: ../src/guestfs.pod:741
33985 #: ../src/guestfs.pod:743
33987 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33988 "the php-libguestfs package for your distribution."
33992 #: ../src/guestfs.pod:746
33993 msgid "The PHP binding only works correctly on 64 bit machines."
33997 #: ../src/guestfs.pod:748
34002 #: ../src/guestfs.pod:750
34003 msgid "See L<guestfs-python(3)>."
34004 msgstr "Див. L<guestfs-python(3)>."
34007 #: ../src/guestfs.pod:752
34012 #: ../src/guestfs.pod:754
34013 msgid "See L<guestfs-ruby(3)>."
34014 msgstr "Див. L<guestfs-ruby(3)>."
34017 #: ../src/guestfs.pod:756
34018 msgid "B<shell scripts>"
34019 msgstr "B<скрипти оболонки>"
34022 #: ../src/guestfs.pod:758
34023 msgid "See L<guestfish(1)>."
34024 msgstr "Див. L<guestfish(1)>."
34027 #: ../src/guestfs.pod:762
34028 msgid "LIBGUESTFS GOTCHAS"
34032 #: ../src/guestfs.pod:764
34034 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34035 "system [...] that works in the way it is documented but is counterintuitive "
34036 "and almost invites mistakes.\""
34040 #: ../src/guestfs.pod:768
34042 "Since we developed libguestfs and the associated tools, there are several "
34043 "things we would have designed differently, but are now stuck with for "
34044 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
34045 "release, you can expect these to change. Beware of them."
34049 #: ../src/guestfs.pod:776
34050 msgid "Autosync / forgetting to sync."
34054 #: ../src/guestfs.pod:778
34056 "I<Update:> Autosync is enabled by default for all API users starting from "
34057 "libguestfs 1.5.24. This section only applies to older versions."
34061 #: ../src/guestfs.pod:781
34063 "When modifying a filesystem from C or another language, you B<must> unmount "
34064 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34065 "libguestfs handle. You can also call:"
34069 #: ../src/guestfs.pod:785
34072 " guestfs_set_autosync (g, 1);\n"
34075 " guestfs_set_autosync (g, 1);\n"
34079 #: ../src/guestfs.pod:787
34081 "to have the unmount/sync done automatically for you when the handle 'g' is "
34082 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34086 #: ../src/guestfs.pod:791
34088 "If you forget to do this, then it is entirely possible that your changes "
34089 "won't be written out, or will be partially written, or (very rarely) that "
34090 "you'll get disk corruption."
34094 #: ../src/guestfs.pod:795
34096 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
34097 "guestfish scripts that forget to sync will work just fine, which can make "
34098 "this very puzzling if you are trying to debug a problem."
34102 #: ../src/guestfs.pod:799
34103 msgid "Mount option C<-o sync> should not be the default."
34107 #: ../src/guestfs.pod:801
34109 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
34110 "However C<-o sync> does not add any reliability benefit, but does have a "
34111 "very large performance impact."
34115 #: ../src/guestfs.pod:805
34117 "The work around is to use L</guestfs_mount_options> and set the mount "
34118 "options that you actually want to use."
34122 #: ../src/guestfs.pod:808
34123 msgid "Read-only should be the default."
34127 #: ../src/guestfs.pod:810
34129 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34130 "specify I<--rw> if you want to make changes to the image."
34134 #: ../src/guestfs.pod:813
34135 msgid "This would reduce the potential to corrupt live VM images."
34139 #: ../src/guestfs.pod:815
34141 "Note that many filesystems change the disk when you just mount and unmount, "
34142 "even if you didn't perform any writes. You need to use L</"
34143 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34147 #: ../src/guestfs.pod:819
34148 msgid "guestfish command line is hard to use."
34152 #: ../src/guestfs.pod:821
34154 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34155 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
34156 "exist, so it fails. In earlier versions of guestfish the error message was "
34157 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
34158 "we should have used C<guestfish -c command> to run commands."
34162 #: ../src/guestfs.pod:828
34163 msgid "guestfish megabyte modifiers don't work right on all commands"
34167 #: ../src/guestfs.pod:830
34169 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34170 "other modifiers). What guestfish actually does is to multiply the number "
34171 "part by the modifier part and pass the result to the C API. However this "
34172 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34173 "expecting some other unit (eg. megabytes)."
34177 #: ../src/guestfs.pod:837
34178 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
34182 #: ../src/guestfs.pod:839
34185 " lvcreate LV VG 100M\n"
34188 " lvcreate LV VG 100M\n"
34192 #: ../src/guestfs.pod:841
34194 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
34195 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34196 "megabytes * megabytes) logical volume. The error message you get from this "
34197 "is also a little obscure."
34201 #: ../src/guestfs.pod:846
34203 "This could be fixed in the generator by specially marking parameters and "
34204 "return values which take bytes or other units."
34208 #: ../src/guestfs.pod:849
34209 msgid "Ambiguity between devices and paths"
34213 #: ../src/guestfs.pod:851
34215 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34216 "sdb2>) and a similar pathname. A file might just happen to be called "
34217 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34221 #: ../src/guestfs.pod:856
34223 "In the current API we usually resolve this ambiguity by having two separate "
34224 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
34225 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34226 "detecting if the path supplied begins with C</dev/>."
34230 #: ../src/guestfs.pod:862
34232 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34233 "make paths/devices into structured names. One way to do this would be to "
34234 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34235 "aspect of grub. Another way would be to use a structured type, equivalent "
34236 "to this OCaml type:"
34240 #: ../src/guestfs.pod:868
34243 " type path = Path of string | Device of int | Partition of int * int\n"
34248 #: ../src/guestfs.pod:870
34249 msgid "which would allow you to pass arguments like:"
34253 #: ../src/guestfs.pod:872
34256 " Path \"/foo/bar\"\n"
34257 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
34258 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34259 " Path \"/dev/sdb2\" (* not a device *)\n"
34264 #: ../src/guestfs.pod:877
34266 "As you can see there are still problems to resolve even with this "
34267 "representation. Also consider how it might work in guestfish."
34271 #: ../src/guestfs.pod:882
34272 msgid "KEYS AND PASSPHRASES"
34273 msgstr "КЛЮЧІ І ПАРОЛІ"
34276 #: ../src/guestfs.pod:884
34278 "Certain libguestfs calls take a parameter that contains sensitive key "
34279 "material, passed in as a C string."
34283 #: ../src/guestfs.pod:887
34285 "In the future we would hope to change the libguestfs implementation so that "
34286 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34287 "swap. However this is I<not> done at the moment, because of the complexity "
34288 "of such an implementation."
34292 #: ../src/guestfs.pod:892
34294 "Therefore you should be aware that any key parameter you pass to libguestfs "
34295 "might end up being written out to the swap partition. If this is a concern, "
34296 "scrub the swap partition or don't use libguestfs on encrypted devices."
34300 #: ../src/guestfs.pod:897
34301 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34305 #: ../src/guestfs.pod:899
34307 "All high-level libguestfs actions are synchronous. If you want to use "
34308 "libguestfs asynchronously then you must create a thread."
34312 #: ../src/guestfs.pod:902
34314 "Only use the handle from a single thread. Either use the handle exclusively "
34315 "from one thread, or provide your own mutex so that two threads cannot issue "
34316 "calls on the same handle at the same time."
34320 #: ../src/guestfs.pod:906
34322 "See the graphical program guestfs-browser for one possible architecture for "
34323 "multithreaded programs using libvirt and libguestfs."
34327 #: ../src/guestfs.pod:909
34332 #: ../src/guestfs.pod:911
34334 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34339 #: ../src/guestfs.pod:914
34341 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34342 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34346 #: ../src/guestfs.pod:917
34348 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34349 "to change the directories that libguestfs will search in. The value is a "
34350 "colon-separated list of paths. The current directory is I<not> searched "
34351 "unless the path contains an empty element or C<.>. For example "
34352 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34353 "then C</usr/lib/guestfs>."
34357 #: ../src/guestfs.pod:924
34358 msgid "QEMU WRAPPERS"
34362 #: ../src/guestfs.pod:926
34364 "If you want to compile your own qemu, run qemu from a non-standard location, "
34365 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34370 #: ../src/guestfs.pod:930
34372 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34373 "last command in the shell script (so that qemu replaces the shell and "
34374 "becomes the direct child of the libguestfs-using program). If you don't do "
34375 "this, then the qemu process won't be cleaned up correctly."
34379 #: ../src/guestfs.pod:935
34381 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34386 #: ../src/guestfs.pod:938
34390 " qemudir=/home/rjones/d/qemu\n"
34391 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34395 " qemudir=/home/rjones/d/qemu\n"
34396 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34400 #: ../src/guestfs.pod:942
34402 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34403 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
34408 #: ../src/guestfs.pod:946
34411 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34414 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34418 #: ../src/guestfs.pod:948
34420 "Note that libguestfs also calls qemu with the -help and -version options in "
34421 "order to determine features."
34425 #: ../src/guestfs.pod:951
34426 msgid "ATTACHING TO RUNNING DAEMONS"
34427 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34430 #: ../src/guestfs.pod:953
34432 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34433 "babies. Use with caution."
34437 #: ../src/guestfs.pod:956
34439 "I<Note (2):> This section explains how to attach to a running daemon from a "
34440 "low level perspective. For most users, simply using virt tools such as "
34441 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34445 #: ../src/guestfs.pod:960
34446 msgid "Using guestfs_set_attach_method"
34447 msgstr "За допомогою guestfs_set_attach_method"
34450 #: ../src/guestfs.pod:962
34452 "By calling L</guestfs_set_attach_method> you can change how the library "
34453 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34454 "ARCHITECTURE> for some background)."
34458 #: ../src/guestfs.pod:966
34460 "The normal attach method is C<appliance>, where a small appliance is created "
34461 "containing the daemon, and then the library connects to this."
34465 #: ../src/guestfs.pod:969
34467 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34468 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34469 "daemon over the Unix domain socket."
34473 #: ../src/guestfs.pod:973
34475 "The normal use for this is to connect to a running virtual machine that "
34476 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34477 "files inside the live virtual machine."
34481 #: ../src/guestfs.pod:977
34482 msgid "Using guestfs_add_domain with live flag"
34483 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34486 #: ../src/guestfs.pod:979
34488 "L</guestfs_add_domain> provides some help for getting the correct attach "
34489 "method. If you pass the C<live> option to this function, then (if the "
34490 "virtual machine is running) it will examine the libvirt XML looking for a "
34491 "virtio-serial channel to connect to:"
34495 #: ../src/guestfs.pod:985
34502 " <channel type='unix'>\n"
34503 " <source mode='bind' path='/path/to/socket'/>\n"
34504 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34515 " <channel type='unix'>\n"
34516 " <source mode='bind' path='/path/to/socket'/>\n"
34517 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34525 #: ../src/guestfs.pod:997
34527 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34528 "method to C<unix:/path/to/socket>."
34532 #: ../src/guestfs.pod:1000
34534 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34535 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34536 "to attach to and modify live virtual machines."
34540 #: ../src/guestfs.pod:1004
34542 "The virtual machine needs to have been set up beforehand so that it has the "
34543 "virtio-serial channel and so that guestfsd is running inside it."
34547 #: ../src/guestfs.pod:1008
34548 msgid "ABI GUARANTEE"
34549 msgstr "ГАРАНТІЯ ЩОДО ABI"
34552 #: ../src/guestfs.pod:1010
34554 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34555 "actions as outlined in this section. Although we will deprecate some "
34556 "actions, for example if they get replaced by newer calls, we will keep the "
34557 "old actions forever. This allows you the developer to program in confidence "
34558 "against the libguestfs API."
34562 #: ../src/guestfs.pod:1016
34563 msgid "BLOCK DEVICE NAMING"
34564 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34567 #: ../src/guestfs.pod:1018
34569 "In the kernel there is now quite a profusion of schemata for naming block "
34570 "devices (in this context, by I<block device> I mean a physical or virtual "
34571 "hard drive). The original Linux IDE driver used names starting with C</dev/"
34572 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
34573 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
34574 "for the old IDE driver (particularly for SATA devices) those devices also "
34575 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
34576 "paravirtualized drivers. This has created several different naming systems, "
34577 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34581 #: ../src/guestfs.pod:1030
34583 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34584 "Linux kernel to access block devices. We can run a variety of appliances "
34585 "based on a variety of Linux kernels."
34589 #: ../src/guestfs.pod:1034
34591 "This causes a problem for libguestfs because many API calls use device or "
34592 "partition names. Working scripts and the recipe (example) scripts that we "
34593 "make available over the internet could fail if the naming scheme changes."
34597 #: ../src/guestfs.pod:1039
34599 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
34600 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34601 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34602 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34606 #: ../src/guestfs.pod:1045
34608 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
34609 "L</guestfs_list_partitions> and similar calls return the true names of the "
34610 "devices and partitions as known to the appliance."
34614 #: ../src/guestfs.pod:1050
34615 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34619 #: ../src/guestfs.pod:1052
34621 "Usually this translation is transparent. However in some (very rare) cases "
34622 "you may need to know the exact algorithm. Such cases include where you use "
34623 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34624 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34628 #: ../src/guestfs.pod:1058
34630 "The algorithm is applied only to I<parameters> which are known to be either "
34631 "device or partition names. Return values from functions such as L</"
34632 "guestfs_list_devices> are never changed."
34636 #: ../src/guestfs.pod:1066
34637 msgid "Is the string a parameter which is a device or partition name?"
34641 #: ../src/guestfs.pod:1070
34642 msgid "Does the string begin with C</dev/sd>?"
34643 msgstr "Чи починається рядок з C</dev/sd>?"
34646 #: ../src/guestfs.pod:1074
34648 "Does the named device exist? If so, we use that device. However if I<not> "
34649 "then we continue with this algorithm."
34653 #: ../src/guestfs.pod:1079
34654 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34658 #: ../src/guestfs.pod:1081
34659 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34663 #: ../src/guestfs.pod:1083
34664 msgid "If that named device exists, use it. If not, continue."
34668 #: ../src/guestfs.pod:1087
34669 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34673 #: ../src/guestfs.pod:1089
34674 msgid "If that named device exists, use it. If not, return an error."
34678 #: ../src/guestfs.pod:1093
34679 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34683 #: ../src/guestfs.pod:1095
34685 "Although the standard naming scheme and automatic translation is useful for "
34686 "simple programs and guestfish scripts, for larger programs it is best not to "
34687 "rely on this mechanism."
34691 #: ../src/guestfs.pod:1099
34693 "Where possible for maximum future portability programs using libguestfs "
34694 "should use these future-proof techniques:"
34698 #: ../src/guestfs.pod:1106
34700 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34701 "device names, and then use those names directly."
34705 #: ../src/guestfs.pod:1109
34707 "Since those device names exist by definition, they will never be translated."
34711 #: ../src/guestfs.pod:1114
34713 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34714 "filesystem labels."
34718 #: ../src/guestfs.pod:1119
34723 #: ../src/guestfs.pod:1121
34725 "This section discusses security implications of using libguestfs, "
34726 "particularly with untrusted or malicious guests or disk images."
34730 #: ../src/guestfs.pod:1124
34731 msgid "GENERAL SECURITY CONSIDERATIONS"
34732 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34735 #: ../src/guestfs.pod:1126
34737 "Be careful with any files or data that you download from a guest (by "
34738 "\"download\" we mean not just the L</guestfs_download> command but any "
34739 "command that reads files, filenames, directories or anything else from a "
34740 "disk image). An attacker could manipulate the data to fool your program "
34741 "into doing the wrong thing. Consider cases such as:"
34745 #: ../src/guestfs.pod:1136
34746 msgid "the data (file etc) not being present"
34750 #: ../src/guestfs.pod:1140
34751 msgid "being present but empty"
34755 #: ../src/guestfs.pod:1144
34756 msgid "being much larger than normal"
34760 #: ../src/guestfs.pod:1148
34761 msgid "containing arbitrary 8 bit data"
34765 #: ../src/guestfs.pod:1152
34766 msgid "being in an unexpected character encoding"
34770 #: ../src/guestfs.pod:1156
34771 msgid "containing homoglyphs."
34775 #: ../src/guestfs.pod:1160
34776 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34777 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34780 #: ../src/guestfs.pod:1162
34782 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34783 "(VFS) module can sometimes be escalated into exploits by deliberately "
34784 "creating a malicious, malformed filesystem. These exploits are very severe "
34785 "for two reasons. Firstly there are very many filesystem drivers in the "
34786 "kernel, and many of them are infrequently used and not much developer "
34787 "attention has been paid to the code. Linux userspace helps potential "
34788 "crackers by detecting the filesystem type and automatically choosing the "
34789 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34790 "the administrator. Secondly, a kernel-level exploit is like a local root "
34791 "exploit (worse in some ways), giving immediate and total access to the "
34792 "system right down to the hardware level."
34796 #: ../src/guestfs.pod:1175
34798 "That explains why you should never mount a filesystem from an untrusted "
34799 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
34800 "inside a qemu virtual machine, usually running as a non-root user. The "
34801 "attacker would need to write a filesystem which first exploited the kernel, "
34802 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34803 "the libguestfs protocol, and finally to be as serious as the host kernel "
34804 "exploit it would need to escalate its privileges to root. This multi-step "
34805 "escalation, performed by a static piece of data, is thought to be extremely "
34806 "hard to do, although we never say 'never' about security issues."
34810 #: ../src/guestfs.pod:1186
34812 "In any case callers can reduce the attack surface by forcing the filesystem "
34813 "type when mounting (use L</guestfs_mount_vfs>)."
34817 #: ../src/guestfs.pod:1189
34818 msgid "PROTOCOL SECURITY"
34819 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34822 #: ../src/guestfs.pod:1191
34824 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
34825 "defined upper message size. However a program that uses libguestfs must "
34826 "also take care - for example you can write a program that downloads a binary "
34827 "from a disk image and executes it locally, and no amount of protocol "
34828 "security will save you from the consequences."
34832 #: ../src/guestfs.pod:1197
34833 msgid "INSPECTION SECURITY"
34837 #: ../src/guestfs.pod:1199
34839 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34840 "directly from the guest, and these could contain any 8 bit data. Callers "
34841 "should be careful to escape these before printing them to a structured file "
34842 "(for example, use HTML escaping if creating a web page)."
34846 #: ../src/guestfs.pod:1205
34848 "Guest configuration may be altered in unusual ways by the administrator of "
34849 "the virtual machine, and may not reflect reality (particularly for untrusted "
34850 "or actively malicious guests). For example we parse the hostname from "
34851 "configuration files like C</etc/sysconfig/network> that we find in the "
34852 "guest, but the guest administrator can easily manipulate these files to "
34853 "provide the wrong hostname."
34857 #: ../src/guestfs.pod:1213
34859 "The inspection API parses guest configuration using two external libraries: "
34860 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
34861 "designed to be robust in the face of malicious data, although denial of "
34862 "service attacks are still possible, for example with oversized configuration "
34867 #: ../src/guestfs.pod:1219
34868 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34869 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34872 #: ../src/guestfs.pod:1221
34874 "Be very cautious about running commands from the guest. By running a "
34875 "command in the guest, you are giving CPU time to a binary that you do not "
34876 "control, under the same user account as the library, albeit wrapped in qemu "
34877 "virtualization. More information and alternatives can be found in the "
34878 "section L</RUNNING COMMANDS>."
34882 #: ../src/guestfs.pod:1227
34883 msgid "CVE-2010-3851"
34884 msgstr "CVE-2010-3851"
34887 #: ../src/guestfs.pod:1229
34888 msgid "https://bugzilla.redhat.com/642934"
34889 msgstr "https://bugzilla.redhat.com/642934"
34892 #: ../src/guestfs.pod:1231
34894 "This security bug concerns the automatic disk format detection that qemu "
34895 "does on disk images."
34899 #: ../src/guestfs.pod:1234
34901 "A raw disk image is just the raw bytes, there is no header. Other disk "
34902 "images like qcow2 contain a special header. Qemu deals with this by looking "
34903 "for one of the known headers, and if none is found then assuming the disk "
34904 "image must be raw."
34908 #: ../src/guestfs.pod:1239
34910 "This allows a guest which has been given a raw disk image to write some "
34911 "other header. At next boot (or when the disk image is accessed by "
34912 "libguestfs) qemu would do autodetection and think the disk image format was, "
34913 "say, qcow2 based on the header written by the guest."
34917 #: ../src/guestfs.pod:1244
34919 "This in itself would not be a problem, but qcow2 offers many features, one "
34920 "of which is to allow a disk image to refer to another image (called the "
34921 "\"backing disk\"). It does this by placing the path to the backing disk "
34922 "into the qcow2 header. This path is not validated and could point to any "
34923 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
34924 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34925 "control of the attacker."
34929 #: ../src/guestfs.pod:1252
34931 "In libguestfs this is rather hard to exploit except under two circumstances:"
34935 #: ../src/guestfs.pod:1259
34936 msgid "You have enabled the network or have opened the disk in write mode."
34940 #: ../src/guestfs.pod:1263
34942 "You are also running untrusted code from the guest (see L</RUNNING "
34947 #: ../src/guestfs.pod:1268
34949 "The way to avoid this is to specify the expected disk format when adding "
34950 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
34951 "should always do this if the disk is raw format, and it's a good idea for "
34956 #: ../src/guestfs.pod:1273
34958 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34959 "format is fetched from libvirt and passed through."
34963 #: ../src/guestfs.pod:1276
34965 "For libguestfs tools, use the I<--format> command line parameter as "
34970 #: ../src/guestfs.pod:1279
34971 msgid "CONNECTION MANAGEMENT"
34972 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34975 #: ../src/guestfs.pod:1281
34976 msgid "guestfs_h *"
34977 msgstr "guestfs_h *"
34980 #: ../src/guestfs.pod:1283
34982 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
34983 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
34984 "handle and release all resources used."
34988 #: ../src/guestfs.pod:1287
34990 "For information on using multiple handles and threads, see the section L</"
34991 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34995 #: ../src/guestfs.pod:1290
34996 msgid "guestfs_create"
34997 msgstr "guestfs_create"
35000 #: ../src/guestfs.pod:1292
35003 " guestfs_h *guestfs_create (void);\n"
35006 " guestfs_h *guestfs_create (void);\n"
35010 #: ../src/guestfs.pod:1294
35011 msgid "Create a connection handle."
35012 msgstr "Створити дескриптор з’єднання."
35015 #: ../src/guestfs.pod:1296
35017 "On success this returns a non-NULL pointer to a handle. On error it returns "
35022 #: ../src/guestfs.pod:1299
35024 "You have to \"configure\" the handle after creating it. This includes "
35025 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35026 "handle at least once."
35030 #: ../src/guestfs.pod:1303
35031 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35035 #: ../src/guestfs.pod:1305
35037 "You may also want to configure error handling for the handle. See the L</"
35038 "ERROR HANDLING> section below."
35042 #: ../src/guestfs.pod:1308
35043 msgid "guestfs_close"
35044 msgstr "guestfs_close"
35047 #: ../src/guestfs.pod:1310
35050 " void guestfs_close (guestfs_h *g);\n"
35053 " void guestfs_close (guestfs_h *g);\n"
35057 #: ../src/guestfs.pod:1312
35058 msgid "This closes the connection handle and frees up all resources used."
35062 #: ../src/guestfs.pod:1314
35064 "If autosync was set on the handle and the handle was launched, then this "
35065 "implicitly calls various functions to unmount filesystems and sync the "
35066 "disk. See L</guestfs_set_autosync> for more details."
35070 #: ../src/guestfs.pod:1318
35071 msgid "If a close callback was set on the handle, then it is called."
35075 #: ../src/guestfs.pod:1320
35076 msgid "ERROR HANDLING"
35077 msgstr "ОБРОБКА ПОМИЛОК"
35080 #: ../src/guestfs.pod:1322
35082 "API functions can return errors. For example, almost all functions that "
35083 "return C<int> will return C<-1> to indicate an error."
35087 #: ../src/guestfs.pod:1325
35089 "Additional information is available for errors: an error message string and "
35090 "optionally an error number (errno) if the thing that failed was a system "
35095 #: ../src/guestfs.pod:1329
35097 "You can get at the additional information about the last error on the handle "
35098 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35099 "up an error handler with L</guestfs_set_error_handler>."
35103 #: ../src/guestfs.pod:1334
35105 "When the handle is created, a default error handler is installed which "
35106 "prints the error message string to C<stderr>. For small short-running "
35107 "command line programs it is sufficient to do:"
35111 #: ../src/guestfs.pod:1338
35114 " if (guestfs_launch (g) == -1)\n"
35115 " exit (EXIT_FAILURE);\n"
35118 " if (guestfs_launch (g) == -1)\n"
35119 " exit (EXIT_FAILURE);\n"
35123 #: ../src/guestfs.pod:1341
35125 "since the default error handler will ensure that an error message has been "
35126 "printed to C<stderr> before the program exits."
35130 #: ../src/guestfs.pod:1344
35132 "For other programs the caller will almost certainly want to install an "
35133 "alternate error handler or do error handling in-line like this:"
35137 #: ../src/guestfs.pod:1347
35140 " /* This disables the default behaviour of printing errors\n"
35142 " guestfs_set_error_handler (g, NULL, NULL);\n"
35147 #: ../src/guestfs.pod:1351
35150 #| " if (guestfs_launch (g) == -1) {\n"
35151 #| " /* Examine the error message and print it etc. */\n"
35152 #| " char *msg = guestfs_last_error (g);\n"
35153 #| " int errnum = guestfs_last_errno (g);\n"
35154 #| " fprintf (stderr, \"%s\\n\", msg);\n"
35159 " if (guestfs_launch (g) == -1) {\n"
35160 " /* Examine the error message and print it etc. */\n"
35161 " char *msg = guestfs_last_error (g);\n"
35162 " int errnum = guestfs_last_errno (g);\n"
35163 " fprintf (stderr, \"%s\", msg);\n"
35164 " if (errnum != 0)\n"
35165 " fprintf (stderr, \": %s\", strerror (errnum));\n"
35166 " fprintf (stderr, \"\\n\");\n"
35171 " if (guestfs_launch (g) == -1) {\n"
35172 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35173 " char *msg = guestfs_last_error (g);\n"
35174 " int errnum = guestfs_last_errno (g);\n"
35175 " fprintf (stderr, \"%s\\n\", msg);\n"
35181 #: ../src/guestfs.pod:1362
35183 "Out of memory errors are handled differently. The default action is to call "
35184 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
35185 "guestfs_set_out_of_memory_handler>."
35189 #: ../src/guestfs.pod:1366
35191 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35192 "because there is no handle if this happens there is no way to get additional "
35193 "error information. However L</guestfs_create> is supposed to be a "
35194 "lightweight operation which can only fail because of insufficient memory (it "
35195 "returns NULL in this case)."
35199 #: ../src/guestfs.pod:1372
35200 msgid "guestfs_last_error"
35201 msgstr "guestfs_last_error"
35204 #: ../src/guestfs.pod:1374
35207 " const char *guestfs_last_error (guestfs_h *g);\n"
35210 " const char *guestfs_last_error (guestfs_h *g);\n"
35214 #: ../src/guestfs.pod:1376
35216 "This returns the last error message that happened on C<g>. If there has not "
35217 "been an error since the handle was created, then this returns C<NULL>."
35221 #: ../src/guestfs.pod:1380
35223 "The lifetime of the returned string is until the next error occurs, or L</"
35224 "guestfs_close> is called."
35228 #: ../src/guestfs.pod:1383
35229 msgid "guestfs_last_errno"
35230 msgstr "guestfs_last_errno"
35233 #: ../src/guestfs.pod:1385
35236 " int guestfs_last_errno (guestfs_h *g);\n"
35239 " int guestfs_last_errno (guestfs_h *g);\n"
35243 #: ../src/guestfs.pod:1387
35244 msgid "This returns the last error number (errno) that happened on C<g>."
35248 #: ../src/guestfs.pod:1389
35249 msgid "If successful, an errno integer not equal to zero is returned."
35253 #: ../src/guestfs.pod:1391
35255 "If no error, this returns 0. This call can return 0 in three situations:"
35259 #: ../src/guestfs.pod:1398
35260 msgid "There has not been any error on the handle."
35264 #: ../src/guestfs.pod:1402
35266 "There has been an error but the errno was meaningless. This corresponds to "
35267 "the case where the error did not come from a failed system call, but for "
35268 "some other reason."
35272 #: ../src/guestfs.pod:1408
35274 "There was an error from a failed system call, but for some reason the errno "
35275 "was not captured and returned. This usually indicates a bug in libguestfs."
35279 #: ../src/guestfs.pod:1414
35281 "Libguestfs tries to convert the errno from inside the applicance into a "
35282 "corresponding errno for the caller (not entirely trivial: the appliance "
35283 "might be running a completely different operating system from the library "
35284 "and error numbers are not standardized across Un*xen). If this could not be "
35285 "done, then the error is translated to C<EINVAL>. In practice this should "
35286 "only happen in very rare circumstances."
35290 #: ../src/guestfs.pod:1422
35291 msgid "guestfs_set_error_handler"
35292 msgstr "guestfs_set_error_handler"
35295 #: ../src/guestfs.pod:1424
35298 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35300 " const char *msg);\n"
35301 " void guestfs_set_error_handler (guestfs_h *g,\n"
35302 " guestfs_error_handler_cb cb,\n"
35303 " void *opaque);\n"
35306 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35308 " const char *msg);\n"
35309 " void guestfs_set_error_handler (guestfs_h *g,\n"
35310 " guestfs_error_handler_cb cb,\n"
35311 " void *opaque);\n"
35315 #: ../src/guestfs.pod:1431
35317 "The callback C<cb> will be called if there is an error. The parameters "
35318 "passed to the callback are an opaque data pointer and the error message "
35323 #: ../src/guestfs.pod:1435
35325 "C<errno> is not passed to the callback. To get that the callback must call "
35326 "L</guestfs_last_errno>."
35330 #: ../src/guestfs.pod:1438
35332 "Note that the message string C<msg> is freed as soon as the callback "
35333 "function returns, so if you want to stash it somewhere you must make your "
35338 #: ../src/guestfs.pod:1442
35339 msgid "The default handler prints messages on C<stderr>."
35343 #: ../src/guestfs.pod:1444
35344 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35348 #: ../src/guestfs.pod:1446
35349 msgid "guestfs_get_error_handler"
35350 msgstr "guestfs_get_error_handler"
35353 #: ../src/guestfs.pod:1448
35356 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35357 " void **opaque_rtn);\n"
35360 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35361 " void **opaque_rtn);\n"
35365 #: ../src/guestfs.pod:1451
35366 msgid "Returns the current error handler callback."
35370 #: ../src/guestfs.pod:1453
35371 msgid "guestfs_set_out_of_memory_handler"
35372 msgstr "guestfs_set_out_of_memory_handler"
35375 #: ../src/guestfs.pod:1455
35378 #| " typedef void (*guestfs_abort_cb) (void);\n"
35379 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35380 #| " guestfs_abort_cb);\n"
35383 " typedef void (*guestfs_abort_cb) (void);\n"
35384 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35385 " guestfs_abort_cb);\n"
35388 " typedef void (*guestfs_abort_cb) (void);\n"
35389 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35390 " guestfs_abort_cb);\n"
35394 #: ../src/guestfs.pod:1459
35396 "The callback C<cb> will be called if there is an out of memory situation. "
35397 "I<Note this callback must not return>."
35401 #: ../src/guestfs.pod:1462
35402 msgid "The default is to call L<abort(3)>."
35406 #: ../src/guestfs.pod:1464
35408 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
35412 #: ../src/guestfs.pod:1467
35413 msgid "guestfs_get_out_of_memory_handler"
35414 msgstr "guestfs_get_out_of_memory_handler"
35417 #: ../src/guestfs.pod:1469
35420 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35423 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35427 #: ../src/guestfs.pod:1471
35428 msgid "This returns the current out of memory handler."
35432 #: ../src/guestfs.pod:1473
35434 msgstr "ВИКЛИКИ API"
35437 #: ../src/guestfs.pod:1477
35442 #: ../src/guestfs.pod:1479
35447 #: ../src/guestfs.pod:1481
35448 msgid "AVAILABILITY"
35449 msgstr "ДОСТУПНІСТЬ"
35452 #: ../src/guestfs.pod:1483
35453 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35454 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35457 #: ../src/guestfs.pod:1485
35459 "Using L</guestfs_available> you can test availability of the following "
35460 "groups of functions. This test queries the appliance to see if the "
35461 "appliance you are currently using supports the functionality."
35465 #: ../src/guestfs.pod:1490
35466 msgid "@AVAILABILITY@"
35467 msgstr "@AVAILABILITY@"
35470 #: ../src/guestfs.pod:1492
35471 msgid "GUESTFISH supported COMMAND"
35475 #: ../src/guestfs.pod:1494
35477 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35478 "prints out the available groups and whether they are supported by this build "
35479 "of libguestfs. Note however that you have to do C<run> first."
35483 #: ../src/guestfs.pod:1499
35484 msgid "SINGLE CALLS AT COMPILE TIME"
35488 #: ../src/guestfs.pod:1501
35490 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35491 "function, such as:"
35495 #: ../src/guestfs.pod:1504
35498 " #define LIBGUESTFS_HAVE_DD 1\n"
35501 " #define LIBGUESTFS_HAVE_DD 1\n"
35505 #: ../src/guestfs.pod:1506
35506 msgid "if L</guestfs_dd> is available."
35510 #: ../src/guestfs.pod:1508
35512 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35513 "function is available at compile time, we recommended using build tools such "
35514 "as autoconf or cmake. For example in autotools you could use:"
35518 #: ../src/guestfs.pod:1513
35521 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35522 " AC_CHECK_FUNCS([guestfs_dd])\n"
35525 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35526 " AC_CHECK_FUNCS([guestfs_dd])\n"
35530 #: ../src/guestfs.pod:1516
35532 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35537 #: ../src/guestfs.pod:1519
35538 msgid "SINGLE CALLS AT RUN TIME"
35542 #: ../src/guestfs.pod:1521
35544 "Testing at compile time doesn't guarantee that a function really exists in "
35545 "the library. The reason is that you might be dynamically linked against a "
35546 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
35547 "This situation unfortunately results in a segmentation fault, which is a "
35548 "shortcoming of the C dynamic linking system itself."
35552 #: ../src/guestfs.pod:1528
35554 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35555 "in this example program (note that you still need the compile time check as "
35560 #: ../src/guestfs.pod:1532
35563 " #include <stdio.h>\n"
35564 " #include <stdlib.h>\n"
35565 " #include <unistd.h>\n"
35566 " #include <dlfcn.h>\n"
35567 " #include <guestfs.h>\n"
35570 " #include <stdio.h>\n"
35571 " #include <stdlib.h>\n"
35572 " #include <unistd.h>\n"
35573 " #include <dlfcn.h>\n"
35574 " #include <guestfs.h>\n"
35578 #: ../src/guestfs.pod:1538
35583 " #ifdef LIBGUESTFS_HAVE_DD\n"
35585 " int has_function;\n"
35590 " #ifdef LIBGUESTFS_HAVE_DD\n"
35592 " int has_function;\n"
35596 #: ../src/guestfs.pod:1544
35599 " /* Test if the function guestfs_dd is really available. */\n"
35600 " dl = dlopen (NULL, RTLD_LAZY);\n"
35602 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35603 " exit (EXIT_FAILURE);\n"
35605 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35611 #: ../src/guestfs.pod:1553
35614 " if (!has_function)\n"
35615 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35617 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35618 " /* Now it's safe to call\n"
35619 " guestfs_dd (g, \"foo\", \"bar\");\n"
35623 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35630 #: ../src/guestfs.pod:1566
35632 "You may think the above is an awful lot of hassle, and it is. There are "
35633 "other ways outside of the C linking system to ensure that this kind of "
35634 "incompatibility never arises, such as using package versioning:"
35638 #: ../src/guestfs.pod:1571
35641 " Requires: libguestfs >= 1.0.80\n"
35646 #: ../src/guestfs.pod:1573
35647 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35651 #: ../src/guestfs.pod:1575
35653 "A recent feature of the API is the introduction of calls which take optional "
35654 "arguments. In C these are declared 3 ways. The main way is as a call which "
35655 "takes variable arguments (ie. C<...>), as in this example:"
35659 #: ../src/guestfs.pod:1580
35662 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35665 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35669 #: ../src/guestfs.pod:1582
35671 "Call this with a list of optional arguments, terminated by C<-1>. So to "
35672 "call with no optional arguments specified:"
35676 #: ../src/guestfs.pod:1585
35679 " guestfs_add_drive_opts (g, filename, -1);\n"
35682 " guestfs_add_drive_opts (g, filename, -1);\n"
35686 #: ../src/guestfs.pod:1587
35687 msgid "With a single optional argument:"
35691 #: ../src/guestfs.pod:1589
35694 " guestfs_add_drive_opts (g, filename,\n"
35695 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35699 " guestfs_add_drive_opts (g, filename,\n"
35700 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35705 #: ../src/guestfs.pod:1593
35710 #: ../src/guestfs.pod:1595
35713 " guestfs_add_drive_opts (g, filename,\n"
35714 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35715 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35719 " guestfs_add_drive_opts (g, filename,\n"
35720 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35721 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35726 #: ../src/guestfs.pod:1600
35728 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
35733 #: ../src/guestfs.pod:1603
35734 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35738 #: ../src/guestfs.pod:1605
35740 "The second variant has the same name with the suffix C<_va>, which works the "
35741 "same way but takes a C<va_list>. See the C manual for details. For the "
35742 "example function, this is declared:"
35746 #: ../src/guestfs.pod:1609
35749 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35750 " va_list args);\n"
35753 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35754 " va_list args);\n"
35758 #: ../src/guestfs.pod:1612
35759 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35763 #: ../src/guestfs.pod:1614
35765 "The third variant is useful where you need to construct these calls. You "
35766 "pass in a structure where you fill in the optional fields. The structure "
35767 "has a bitmask as the first element which you must set to indicate which "
35768 "fields you have filled in. For our example function the structure and call "
35773 #: ../src/guestfs.pod:1620
35776 " struct guestfs_add_drive_opts_argv {\n"
35777 " uint64_t bitmask;\n"
35779 " const char *format;\n"
35782 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35783 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35786 " struct guestfs_add_drive_opts_argv {\n"
35787 " uint64_t bitmask;\n"
35789 " const char *format;\n"
35792 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35793 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35797 #: ../src/guestfs.pod:1629
35798 msgid "You could call it like this:"
35802 #: ../src/guestfs.pod:1631
35805 " struct guestfs_add_drive_opts_argv optargs = {\n"
35806 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35807 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35808 " .readonly = 1,\n"
35809 " .format = \"qcow2\"\n"
35813 " struct guestfs_add_drive_opts_argv optargs = {\n"
35814 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35815 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35816 " .readonly = 1,\n"
35817 " .format = \"qcow2\"\n"
35822 #: ../src/guestfs.pod:1638
35825 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35828 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35832 #: ../src/guestfs.pod:1646
35833 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35837 #: ../src/guestfs.pod:1651
35838 msgid "You do not need to fill in all fields of the structure."
35842 #: ../src/guestfs.pod:1655
35844 "There must be a one-to-one correspondence between fields of the structure "
35845 "that are filled in, and bits set in the bitmask."
35849 #: ../src/guestfs.pod:1660
35850 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35854 #: ../src/guestfs.pod:1662
35856 "In other languages, optional arguments are expressed in the way that is "
35857 "natural for that language. We refer you to the language-specific "
35858 "documentation for more details on that."
35862 #: ../src/guestfs.pod:1666
35863 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35867 #: ../src/guestfs.pod:1668
35868 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35872 #: ../src/guestfs.pod:1670
35874 "B<Note:> This section documents the generic event mechanism introduced in "
35875 "libguestfs 1.10, which you should use in new code if possible. The old "
35876 "functions C<guestfs_set_log_message_callback>, "
35877 "C<guestfs_set_subprocess_quit_callback>, "
35878 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35879 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35880 "page. Because of the ABI guarantee, the old functions continue to work."
35884 #: ../src/guestfs.pod:1679
35886 "Handles generate events when certain things happen, such as log messages "
35887 "being generated, progress messages during long-running operations, or the "
35888 "handle being closed. The API calls described below let you register a "
35889 "callback to be called when events happen. You can register multiple "
35890 "callbacks (for the same, different or overlapping sets of events), and "
35891 "individually remove callbacks. If callbacks are not removed, then they "
35892 "remain in force until the handle is closed."
35896 #: ../src/guestfs.pod:1687
35898 "In the current implementation, events are only generated synchronously: that "
35899 "means that events (and hence callbacks) can only happen while you are in the "
35900 "middle of making another libguestfs call. The callback is called in the "
35905 #: ../src/guestfs.pod:1692
35907 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35908 "unsigned integers, or a message buffer. Payloads are discussed later on."
35912 #: ../src/guestfs.pod:1696
35913 msgid "CLASSES OF EVENTS"
35917 #: ../src/guestfs.pod:1700
35918 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35922 #: ../src/guestfs.pod:1703
35924 "The callback function will be called while the handle is being closed "
35925 "(synchronously from L</guestfs_close>)."
35929 #: ../src/guestfs.pod:1706
35931 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35932 "handles that are open when the program exits. This means that this callback "
35933 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35934 "problems in higher-level languages (eg. if your HLL interpreter has already "
35935 "been cleaned up by the time this is called, and if your callback then jumps "
35936 "into some HLL function)."
35940 #: ../src/guestfs.pod:1713
35942 "If no callback is registered: the handle is closed without any callback "
35947 #: ../src/guestfs.pod:1716
35948 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35952 #: ../src/guestfs.pod:1719
35954 "The callback function will be called when the child process quits, either "
35955 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
35956 "corresponds to a transition from any state to the CONFIG state)."
35960 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732 ../src/guestfs.pod:1849
35961 msgid "If no callback is registered: the event is ignored."
35965 #: ../src/guestfs.pod:1725
35966 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35970 #: ../src/guestfs.pod:1728
35972 "The callback function will be called when the child process becomes ready "
35973 "first time after it has been launched. (This corresponds to a transition "
35974 "from LAUNCHING to the READY state)."
35978 #: ../src/guestfs.pod:1734
35979 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35983 #: ../src/guestfs.pod:1737
35985 "Some long-running operations can generate progress messages. If this "
35986 "callback is registered, then it will be called each time a progress message "
35987 "is generated (usually two seconds after the operation started, and three "
35988 "times per second thereafter until it completes, although the frequency may "
35989 "change in future versions)."
35993 #: ../src/guestfs.pod:1743
35995 "The callback receives in the payload four unsigned 64 bit numbers which are "
35996 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36000 #: ../src/guestfs.pod:1746
36002 "The units of C<total> are not defined, although for some operations C<total> "
36003 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36004 "or megabytes), and C<position> may be the portion which has been transferred."
36008 #: ../src/guestfs.pod:1751
36009 msgid "The only defined and stable parts of the API are:"
36013 #: ../src/guestfs.pod:1757
36015 "The callback can display to the user some type of progress bar or indicator "
36016 "which shows the ratio of C<position>:C<total>."
36020 #: ../src/guestfs.pod:1762
36021 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36025 #: ../src/guestfs.pod:1766
36027 "If any progress notification is sent during a call, then a final progress "
36028 "notification is always sent when C<position> = C<total> (I<unless> the call "
36029 "fails with an error)."
36033 #: ../src/guestfs.pod:1770
36035 "This is to simplify caller code, so callers can easily set the progress "
36036 "indicator to \"100%\" at the end of the operation, without requiring special "
36037 "code to detect this case."
36041 #: ../src/guestfs.pod:1776
36043 "For some calls we are unable to estimate the progress of the call, but we "
36044 "can still generate progress messages to indicate activity. This is known as "
36045 "\"pulse mode\", and is directly supported by certain progress bar "
36046 "implementations (eg. GtkProgressBar)."
36050 #: ../src/guestfs.pod:1781
36052 "For these calls, zero or more progress messages are generated with "
36053 "C<position = 0> and C<total = 1>, followed by a final message with "
36054 "C<position = total = 1>."
36058 #: ../src/guestfs.pod:1785
36060 "As noted above, if the call fails with an error then the final message may "
36061 "not be generated."
36065 #: ../src/guestfs.pod:1790
36067 "The callback also receives the procedure number (C<proc_nr>) and serial "
36068 "number (C<serial>) of the call. These are only useful for debugging "
36069 "protocol issues, and the callback can normally ignore them. The callback "
36070 "may want to print these numbers in error messages or debugging messages."
36074 #: ../src/guestfs.pod:1796
36075 msgid "If no callback is registered: progress messages are discarded."
36079 #: ../src/guestfs.pod:1798
36080 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36084 #: ../src/guestfs.pod:1801
36086 "The callback function is called whenever a log message is generated by qemu, "
36087 "the appliance kernel, guestfsd (daemon), or utility programs."
36091 #: ../src/guestfs.pod:1804
36093 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36094 "guestfs_launch>) then additional debug messages are generated."
36098 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
36100 "If no callback is registered: the messages are discarded unless the verbose "
36101 "flag is set in which case they are sent to stderr. You can override the "
36102 "printing of verbose messages to stderr by setting up a callback."
36106 #: ../src/guestfs.pod:1812
36107 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36111 #: ../src/guestfs.pod:1815
36113 "The callback function is called whenever a log message is generated by the "
36114 "library part of libguestfs."
36118 #: ../src/guestfs.pod:1818
36120 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36121 "messages are generated."
36125 #: ../src/guestfs.pod:1826
36126 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36130 #: ../src/guestfs.pod:1829
36132 "The callback function is called whenever a trace message is generated. This "
36133 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36137 #: ../src/guestfs.pod:1832
36139 "If no callback is registered: the messages are sent to stderr. You can "
36140 "override the printing of trace messages to stderr by setting up a callback."
36144 #: ../src/guestfs.pod:1836
36145 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36149 #: ../src/guestfs.pod:1839
36151 "The callback function is called whenever a libguestfs function is entered."
36155 #: ../src/guestfs.pod:1842
36157 "The payload is a string which contains the name of the function that we are "
36158 "entering (not including C<guestfs_> prefix)."
36162 #: ../src/guestfs.pod:1845
36164 "Note that libguestfs functions can call themselves, so you may see many "
36165 "events from a single call. A few libguestfs functions do not generate this "
36170 #: ../src/guestfs.pod:1853
36171 msgid "guestfs_set_event_callback"
36175 #: ../src/guestfs.pod:1855
36178 " int guestfs_set_event_callback (guestfs_h *g,\n"
36179 " guestfs_event_callback cb,\n"
36180 " uint64_t event_bitmask,\n"
36182 " void *opaque);\n"
36187 #: ../src/guestfs.pod:1861
36189 "This function registers a callback (C<cb>) for all event classes in the "
36190 "C<event_bitmask>."
36194 #: ../src/guestfs.pod:1864
36196 "For example, to register for all log message events, you could call this "
36197 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
36198 "To register a single callback for all possible classes of events, use "
36199 "C<GUESTFS_EVENT_ALL>."
36203 #: ../src/guestfs.pod:1870
36204 msgid "C<flags> should always be passed as 0."
36208 #: ../src/guestfs.pod:1872
36210 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
36211 "it for any purpose."
36215 #: ../src/guestfs.pod:1875
36217 "The return value is the event handle (an integer) which you can use to "
36218 "delete the callback (see below)."
36222 #: ../src/guestfs.pod:1878
36224 "If there is an error, this function returns C<-1>, and sets the error in the "
36225 "handle in the usual way (see L</guestfs_last_error> etc.)"
36229 #: ../src/guestfs.pod:1881
36231 "Callbacks remain in effect until they are deleted, or until the handle is "
36236 #: ../src/guestfs.pod:1884
36238 "In the case where multiple callbacks are registered for a particular event "
36239 "class, all of the callbacks are called. The order in which multiple "
36240 "callbacks are called is not defined."
36244 #: ../src/guestfs.pod:1888
36245 msgid "guestfs_delete_event_callback"
36249 #: ../src/guestfs.pod:1890
36252 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36257 #: ../src/guestfs.pod:1892
36259 "Delete a callback that was previously registered. C<event_handle> should be "
36260 "the integer that was returned by a previous call to "
36261 "C<guestfs_set_event_callback> on the same handle."
36265 #: ../src/guestfs.pod:1896
36266 msgid "guestfs_event_callback"
36270 #: ../src/guestfs.pod:1898
36273 " typedef void (*guestfs_event_callback) (\n"
36276 " uint64_t event,\n"
36277 " int event_handle,\n"
36279 " const char *buf, size_t buf_len,\n"
36280 " const uint64_t *array, size_t array_len);\n"
36285 #: ../src/guestfs.pod:1907
36287 "This is the type of the event callback function that you have to provide."
36291 #: ../src/guestfs.pod:1910
36293 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36294 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36295 "handle, and C<flags> which in the current API you should ignore."
36299 #: ../src/guestfs.pod:1914
36301 "The remaining parameters contain the event payload (if any). Each event may "
36302 "contain a payload, which usually relates to the event class, but for future "
36303 "proofing your code should be written to handle any payload for any event "
36308 #: ../src/guestfs.pod:1919
36310 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36311 "there is no message buffer). Note that this message buffer can contain "
36312 "arbitrary 8 bit data, including NUL bytes."
36316 #: ../src/guestfs.pod:1923
36318 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
36319 "moment this is only used for progress messages."
36323 #: ../src/guestfs.pod:1926
36324 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36328 #: ../src/guestfs.pod:1928
36330 "One motivation for the generic event API was to allow GUI programs to "
36331 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
36332 "unconditionally to C<stderr>."
36336 #: ../src/guestfs.pod:1932
36338 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36339 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
36340 "messages are not events; you must capture error messages separately)."
36344 #: ../src/guestfs.pod:1937
36346 "Programs have to set up a callback to capture the classes of events of "
36351 #: ../src/guestfs.pod:1940
36355 " guestfs_set_event_callback\n"
36356 " (g, message_callback,\n"
36357 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36358 " GUESTFS_EVENT_TRACE,\n"
36359 " 0, NULL) == -1)\n"
36360 " if (eh == -1) {\n"
36361 " // handle error in the usual way\n"
36367 #: ../src/guestfs.pod:1950
36369 "The callback can then direct messages to the appropriate place. In this "
36370 "example, messages are directed to syslog:"
36374 #: ../src/guestfs.pod:1953
36378 " message_callback (\n"
36381 " uint64_t event,\n"
36382 " int event_handle,\n"
36384 " const char *buf, size_t buf_len,\n"
36385 " const uint64_t *array, size_t array_len)\n"
36387 " const int priority = LOG_USER|LOG_INFO;\n"
36388 " if (buf_len > 0)\n"
36389 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36395 #: ../src/guestfs.pod:1968
36396 msgid "CANCELLING LONG TRANSFERS"
36400 #: ../src/guestfs.pod:1970
36402 "Some operations can be cancelled by the caller while they are in progress. "
36403 "Currently only operations that involve uploading or downloading data can be "
36404 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36405 "parameters in the generator)."
36409 #: ../src/guestfs.pod:1975
36410 msgid "guestfs_user_cancel"
36414 #: ../src/guestfs.pod:1977
36417 " void guestfs_user_cancel (guestfs_h *g);\n"
36422 #: ../src/guestfs.pod:1979
36424 "C<guestfs_user_cancel> cancels the current upload or download operation."
36428 #: ../src/guestfs.pod:1982
36430 "Unlike most other libguestfs calls, this function is signal safe and thread "
36431 "safe. You can call it from a signal handler or from another thread, without "
36432 "needing to do any locking."
36436 #: ../src/guestfs.pod:1986
36438 "The transfer that was in progress (if there is one) will stop shortly "
36439 "afterwards, and will return an error. The errno (see L</"
36440 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36441 "out if the operation was cancelled or failed because of another error."
36445 #: ../src/guestfs.pod:1992
36447 "No cleanup is performed: for example, if a file was being uploaded then "
36448 "after cancellation there may be a partially uploaded file. It is the "
36449 "caller's responsibility to clean up if necessary."
36453 #: ../src/guestfs.pod:1996
36454 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36458 #: ../src/guestfs.pod:1998
36460 "In an interactive text-based program, you might call it from a C<SIGINT> "
36461 "signal handler so that pressing C<^C> cancels the current operation. (You "
36462 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36463 "receive the C<^C> signal)."
36467 #: ../src/guestfs.pod:2003
36469 "In a graphical program, when the main thread is displaying a progress bar "
36470 "with a cancel button, wire up the cancel button to call this function."
36474 #: ../src/guestfs.pod:2007
36475 msgid "PRIVATE DATA AREA"
36479 #: ../src/guestfs.pod:2009
36481 "You can attach named pieces of private data to the libguestfs handle, fetch "
36482 "them by name, and walk over them, for the lifetime of the handle. This is "
36483 "called the private data area and is only available from the C API."
36487 #: ../src/guestfs.pod:2014
36488 msgid "To attach a named piece of data, use the following call:"
36492 #: ../src/guestfs.pod:2016
36495 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36498 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36502 #: ../src/guestfs.pod:2018
36504 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36505 "pointer (which can be C<NULL>). Any previous item with the same key is "
36510 #: ../src/guestfs.pod:2022
36512 "You can use any C<key> you want, but your key should I<not> start with an "
36513 "underscore character. Keys beginning with an underscore character are "
36514 "reserved for internal libguestfs purposes (eg. for implementing language "
36515 "bindings). It is recommended that you prefix the key with some unique "
36516 "string to avoid collisions with other users."
36520 #: ../src/guestfs.pod:2028
36521 msgid "To retrieve the pointer, use:"
36525 #: ../src/guestfs.pod:2030
36528 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36531 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36535 #: ../src/guestfs.pod:2032
36537 "This function returns C<NULL> if either no data is found associated with "
36538 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36543 #: ../src/guestfs.pod:2036
36545 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36546 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
36547 "all. In particular, libguestfs does I<not> try to free the data when the "
36548 "handle is closed. If the data must be freed, then the caller must either "
36549 "free it before calling L</guestfs_close> or must set up a close callback to "
36550 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36554 #: ../src/guestfs.pod:2043
36555 msgid "To walk over all entries, use these two functions:"
36559 #: ../src/guestfs.pod:2045
36562 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36567 #: ../src/guestfs.pod:2047
36570 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36575 #: ../src/guestfs.pod:2049
36577 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36578 "not have any particular meaning -- keys are not returned in any defined "
36579 "order). A pointer to the key is returned in C<*key_rtn> and the "
36580 "corresponding data pointer is returned from the function. C<NULL> is "
36581 "returned if there are no keys stored in the handle."
36585 #: ../src/guestfs.pod:2055
36587 "C<guestfs_next_private> returns the next key, pointer pair. The return "
36588 "value of this function is also C<NULL> is there are no further entries to "
36593 #: ../src/guestfs.pod:2059
36594 msgid "Notes about walking over entries:"
36598 #: ../src/guestfs.pod:2065
36600 "You must not call C<guestfs_set_private> while walking over the entries."
36604 #: ../src/guestfs.pod:2070
36606 "The handle maintains an internal iterator which is reset when you call "
36607 "C<guestfs_first_private>. This internal iterator is invalidated when you "
36608 "call C<guestfs_set_private>."
36612 #: ../src/guestfs.pod:2076
36613 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36617 #: ../src/guestfs.pod:2078
36620 " guestfs_set_private (g, key, NULL);\n"
36625 #: ../src/guestfs.pod:2080
36626 msgid "then that C<key> is not returned when walking."
36630 #: ../src/guestfs.pod:2084
36632 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36633 "C<guestfs_next_private> or C<guestfs_set_private>."
36637 #: ../src/guestfs.pod:2090
36639 "The following example code shows how to print all keys and data pointers "
36640 "that are associated with the handle C<g>:"
36644 #: ../src/guestfs.pod:2093
36647 " const char *key;\n"
36648 " void *data = guestfs_first_private (g, &key);\n"
36649 " while (data != NULL)\n"
36651 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36652 " data = guestfs_next_private (g, &key);\n"
36658 #: ../src/guestfs.pod:2101
36660 "More commonly you are only interested in keys that begin with an application-"
36661 "specific prefix C<foo_>. Modify the loop like so:"
36665 #: ../src/guestfs.pod:2104
36668 " const char *key;\n"
36669 " void *data = guestfs_first_private (g, &key);\n"
36670 " while (data != NULL)\n"
36672 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36673 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36674 " data = guestfs_next_private (g, &key);\n"
36680 #: ../src/guestfs.pod:2113
36682 "If you need to modify keys while walking, then you have to jump back to the "
36683 "beginning of the loop. For example, to delete all keys prefixed with "
36688 #: ../src/guestfs.pod:2117
36691 " const char *key;\n"
36694 " data = guestfs_first_private (g, &key);\n"
36695 " while (data != NULL)\n"
36697 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36699 " guestfs_set_private (g, key, NULL);\n"
36700 " /* note that 'key' pointer is now invalid, and so is\n"
36701 " the internal iterator */\n"
36704 " data = guestfs_next_private (g, &key);\n"
36710 #: ../src/guestfs.pod:2133
36712 "Note that the above loop is guaranteed to terminate because the keys are "
36713 "being deleted, but other manipulations of keys within the loop might not "
36714 "terminate unless you also maintain an indication of which keys have been "
36719 #: ../src/guestfs.pod:2138 ../src/guestfs.pod:2143
36724 #: ../src/guestfs.pod:2140
36726 "<!-- old anchor for the next section --> <a name="
36727 "\"state_machine_and_low_level_event_api\"/>"
36729 "<!-- old anchor for the next section --> <a name="
36730 "\"state_machine_and_low_level_event_api\"/>"
36733 #: ../src/guestfs.pod:2145
36734 msgid "ARCHITECTURE"
36735 msgstr "АРХІТЕКТУРА"
36738 #: ../src/guestfs.pod:2147
36740 "Internally, libguestfs is implemented by running an appliance (a special "
36741 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
36742 "process of the main program."
36746 #: ../src/guestfs.pod:2151
36749 " ___________________\n"
36751 " | main program |\n"
36753 " | | child process / appliance\n"
36754 " | | __________________________\n"
36756 " +-------------------+ RPC | +-----------------+ |\n"
36757 " | libguestfs <--------------------> guestfsd | |\n"
36758 " | | | +-----------------+ |\n"
36759 " \\___________________/ | | Linux kernel | |\n"
36760 " | +--^--------------+ |\n"
36761 " \\_________|________________/\n"
36763 " _______v______\n"
36766 " | disk image |\n"
36767 " \\______________/\n"
36772 #: ../src/guestfs.pod:2171
36774 "The library, linked to the main program, creates the child process and hence "
36775 "the appliance in the L</guestfs_launch> function."
36779 #: ../src/guestfs.pod:2174
36781 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36782 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36783 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
36784 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
36785 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
36786 "attached to the qemu process which translates device access by the "
36787 "appliance's Linux kernel into accesses to the image."
36791 #: ../src/guestfs.pod:2183
36793 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
36794 "Although the disk image you are attached to might also be used by some "
36795 "virtual machine, libguestfs doesn't know or care about this. (But you will "
36796 "care if both libguestfs's qemu process and your virtual machine are trying "
36797 "to update the disk image at the same time, since these usually results in "
36798 "massive disk corruption)."
36802 #: ../src/guestfs.pod:2190
36803 msgid "STATE MACHINE"
36804 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36807 #: ../src/guestfs.pod:2192
36808 msgid "libguestfs uses a state machine to model the child process:"
36812 #: ../src/guestfs.pod:2194
36816 " guestfs_create\n"
36824 " / | \\ \\ guestfs_launch\n"
36825 " / | _\\__V______\n"
36827 " / | | LAUNCHING |\n"
36828 " / | \\___________/\n"
36830 " / | guestfs_launch\n"
36832 " ______ / __|____V\n"
36833 " / \\ ------> / \\\n"
36834 " | BUSY | | READY |\n"
36835 " \\______/ <------ \\________/\n"
36840 #: ../src/guestfs.pod:2216
36842 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36843 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36844 "(3) alternating between READY and BUSY as commands are issued to, and "
36845 "carried out by, the child process."
36849 #: ../src/guestfs.pod:2221
36851 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36852 "asynchronously at any time (eg. due to some internal error), and that causes "
36853 "the state to transition back to CONFIG."
36857 #: ../src/guestfs.pod:2225
36859 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36860 "issued when in the CONFIG state."
36864 #: ../src/guestfs.pod:2228
36866 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
36867 "L</guestfs_launch> blocks until the child process is READY to accept "
36868 "commands (or until some failure or timeout). L</guestfs_launch> internally "
36869 "moves the state from CONFIG to LAUNCHING while it is running."
36873 #: ../src/guestfs.pod:2234
36875 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36876 "state. These API calls block waiting for the command to be carried out (ie. "
36877 "the state to transition to BUSY and then back to READY). There are no non-"
36878 "blocking versions, and no way to issue more than one command per handle at "
36883 #: ../src/guestfs.pod:2240
36885 "Finally, the child process sends asynchronous messages back to the main "
36886 "program, such as kernel log messages. You can register a callback to "
36887 "receive these messages."
36891 #: ../src/guestfs.pod:2244
36896 #: ../src/guestfs.pod:2246
36897 msgid "APPLIANCE BOOT PROCESS"
36901 #: ../src/guestfs.pod:2248
36903 "This process has evolved and continues to evolve. The description here "
36904 "corresponds only to the current version of libguestfs and is provided for "
36905 "information only."
36909 #: ../src/guestfs.pod:2252
36911 "In order to follow the stages involved below, enable libguestfs debugging "
36912 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36916 #: ../src/guestfs.pod:2257
36918 #| msgid "C<appliance>"
36919 msgid "Create the appliance"
36920 msgstr "C<appliance>"
36923 #: ../src/guestfs.pod:2259
36925 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36926 "initrd and the appliance."
36930 #: ../src/guestfs.pod:2262
36932 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36933 "directory if C<TMPDIR> is set)."
36937 #: ../src/guestfs.pod:2265
36939 "For a complete description of how the appliance is created and cached, read "
36940 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36944 #: ../src/guestfs.pod:2269
36945 msgid "Start qemu and boot the kernel"
36949 #: ../src/guestfs.pod:2271
36950 msgid "qemu is invoked to boot the kernel."
36954 #: ../src/guestfs.pod:2273
36955 msgid "Run the initrd"
36959 #: ../src/guestfs.pod:2275
36961 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
36962 "appliance. The purpose of the initrd is to load enough kernel modules in "
36963 "order that the appliance itself can be mounted and started."
36967 #: ../src/guestfs.pod:2279
36969 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
36974 #: ../src/guestfs.pod:2282
36976 "When the initrd has started you will see messages showing that kernel "
36977 "modules are being loaded, similar to this:"
36981 #: ../src/guestfs.pod:2285
36984 " febootstrap: ext2 mini initrd starting up\n"
36985 " febootstrap: mounting /sys\n"
36986 " febootstrap: internal insmod libcrc32c.ko\n"
36987 " febootstrap: internal insmod crc32c-intel.ko\n"
36992 #: ../src/guestfs.pod:2290
36993 msgid "Find and mount the appliance device"
36997 #: ../src/guestfs.pod:2292
36999 "The appliance is a sparse file containing an ext2 filesystem which contains "
37000 "a familiar (although reduced in size) Linux operating system. It would "
37001 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37005 #: ../src/guestfs.pod:2296
37007 "The regular disks being inspected by libguestfs are the first devices "
37008 "exposed by qemu (eg. as C</dev/vda>)."
37012 #: ../src/guestfs.pod:2299
37014 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37015 "there was only one regular disk)."
37019 #: ../src/guestfs.pod:2302
37021 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37022 "and switch root into the appliance, and run C</init> from the appliance."
37026 #: ../src/guestfs.pod:2306
37027 msgid "If this works successfully you will see messages such as:"
37031 #: ../src/guestfs.pod:2308
37034 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37035 " febootstrap: creating /dev/root as block special 252:16\n"
37036 " febootstrap: mounting new root on /root\n"
37037 " febootstrap: chroot\n"
37038 " Starting /init script ...\n"
37043 #: ../src/guestfs.pod:2314
37045 "Note that C<Starting /init script ...> indicates that the appliance's init "
37046 "script is now running."
37050 #: ../src/guestfs.pod:2317
37051 msgid "Initialize the appliance"
37055 #: ../src/guestfs.pod:2319
37057 "The appliance itself now initializes itself. This involves starting certain "
37058 "processes like C<udev>, possibly printing some debug information, and "
37059 "finally running the daemon (C<guestfsd>)."
37063 #: ../src/guestfs.pod:2323
37065 #| msgid "C<daemon>"
37070 #: ../src/guestfs.pod:2325
37072 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
37077 #: ../src/guestfs.pod:2328
37080 #| " set-verbose true|false\n"
37083 " verbose daemon enabled\n"
37086 " set-verbose true|false\n"
37090 #: ../src/guestfs.pod:2330
37092 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37093 "connected on the other end to the library."
37097 #: ../src/guestfs.pod:2333
37099 "The daemon connects to this port (and hence to the library) and sends a four "
37100 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37101 "protocol (see below)."
37105 #: ../src/guestfs.pod:2339
37106 msgid "COMMUNICATION PROTOCOL"
37110 #: ../src/guestfs.pod:2341
37112 "Don't rely on using this protocol directly. This section documents how it "
37113 "currently works, but it may change at any time."
37117 #: ../src/guestfs.pod:2344
37119 "The protocol used to talk between the library and the daemon running inside "
37120 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37121 "1014, RFC 1832, RFC 4506)."
37125 #: ../src/guestfs.pod:2348
37127 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37128 "this file is automatically generated)."
37132 #: ../src/guestfs.pod:2351
37134 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37135 "and C<FileOut> parameters, which are handled with very simple request/reply "
37136 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
37137 "parameters, which use the same request and reply messages, but they may also "
37138 "be followed by files sent using a chunked encoding."
37142 #: ../src/guestfs.pod:2358
37143 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37147 #: ../src/guestfs.pod:2360
37148 msgid "For ordinary functions, the request message is:"
37152 #: ../src/guestfs.pod:2362
37155 " total length (header + arguments,\n"
37156 " but not including the length word itself)\n"
37157 " struct guestfs_message_header (encoded as XDR)\n"
37158 " struct guestfs_<foo>_args (encoded as XDR)\n"
37163 #: ../src/guestfs.pod:2367
37165 "The total length field allows the daemon to allocate a fixed size buffer "
37166 "into which it slurps the rest of the message. As a result, the total length "
37167 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37168 "effective size of any request is limited to somewhere under this size."
37172 #: ../src/guestfs.pod:2373
37174 "Note also that many functions don't take any arguments, in which case the "
37175 "C<guestfs_I<foo>_args> is completely omitted."
37179 #: ../src/guestfs.pod:2376
37181 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37182 "receiver knows what type of args structure to expect, or none at all."
37186 #: ../src/guestfs.pod:2380
37188 "For functions that take optional arguments, the optional arguments are "
37189 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37190 "arguments. A bitmask in the header indicates which optional arguments are "
37191 "meaningful. The bitmask is also checked to see if it contains bits set "
37192 "which the daemon does not know about (eg. if more optional arguments were "
37193 "added in a later version of the library), and this causes the call to be "
37198 #: ../src/guestfs.pod:2388
37199 msgid "The reply message for ordinary functions is:"
37203 #: ../src/guestfs.pod:2390
37206 " total length (header + ret,\n"
37207 " but not including the length word itself)\n"
37208 " struct guestfs_message_header (encoded as XDR)\n"
37209 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37214 #: ../src/guestfs.pod:2395
37216 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37217 "functions that return no formal return values."
37221 #: ../src/guestfs.pod:2398
37223 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37227 #: ../src/guestfs.pod:2401
37229 "In the case of an error, a flag is set in the header, and the reply message "
37230 "is slightly changed:"
37234 #: ../src/guestfs.pod:2404
37237 " total length (header + error,\n"
37238 " but not including the length word itself)\n"
37239 " struct guestfs_message_header (encoded as XDR)\n"
37240 " struct guestfs_message_error (encoded as XDR)\n"
37245 #: ../src/guestfs.pod:2409
37247 "The C<guestfs_message_error> structure contains the error message as a "
37252 #: ../src/guestfs.pod:2412
37253 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37257 #: ../src/guestfs.pod:2414
37259 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
37260 "The normal request message is sent (see above). However this is followed by "
37261 "a sequence of file chunks."
37265 #: ../src/guestfs.pod:2418
37268 " total length (header + arguments,\n"
37269 " but not including the length word itself,\n"
37270 " and not including the chunks)\n"
37271 " struct guestfs_message_header (encoded as XDR)\n"
37272 " struct guestfs_<foo>_args (encoded as XDR)\n"
37273 " sequence of chunks for FileIn param #0\n"
37274 " sequence of chunks for FileIn param #1 etc.\n"
37279 #: ../src/guestfs.pod:2426
37280 msgid "The \"sequence of chunks\" is:"
37284 #: ../src/guestfs.pod:2428
37287 " length of chunk (not including length word itself)\n"
37288 " struct guestfs_chunk (encoded as XDR)\n"
37289 " length of chunk\n"
37290 " struct guestfs_chunk (encoded as XDR)\n"
37292 " length of chunk\n"
37293 " struct guestfs_chunk (with data.data_len == 0)\n"
37298 #: ../src/guestfs.pod:2436
37300 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
37301 "is set in the final chunk to indicate either successful completion or early "
37306 #: ../src/guestfs.pod:2440
37308 "At time of writing there are no functions that have more than one FileIn "
37309 "parameter. However this is (theoretically) supported, by sending the "
37310 "sequence of chunks for each FileIn parameter one after another (from left to "
37315 #: ../src/guestfs.pod:2445
37317 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37318 "transfer. The library does this by sending a chunk with a special flag set "
37319 "to indicate cancellation. When the daemon sees this, it cancels the whole "
37320 "RPC, does I<not> send any reply, and goes back to reading the next request."
37324 #: ../src/guestfs.pod:2451
37326 "The daemon may also cancel. It does this by writing a special word "
37327 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
37328 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37329 "cancel chunk). The special word is chosen so that even if cancellation "
37330 "happens right at the end of the transfer (after the library has finished "
37331 "writing and has started listening for the reply), the \"spurious\" cancel "
37332 "flag will not be confused with the reply message."
37336 #: ../src/guestfs.pod:2460
37338 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37339 "limit), and also files where the size is not known in advance (eg. from "
37340 "pipes or sockets). However the chunks are rather small "
37341 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37342 "to keep much in memory."
37346 #: ../src/guestfs.pod:2466
37347 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37351 #: ../src/guestfs.pod:2468
37353 "The protocol for FileOut parameters is exactly the same as for FileIn "
37354 "parameters, but with the roles of daemon and library reversed."
37358 #: ../src/guestfs.pod:2471
37361 " total length (header + ret,\n"
37362 " but not including the length word itself,\n"
37363 " and not including the chunks)\n"
37364 " struct guestfs_message_header (encoded as XDR)\n"
37365 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37366 " sequence of chunks for FileOut param #0\n"
37367 " sequence of chunks for FileOut param #1 etc.\n"
37372 #: ../src/guestfs.pod:2479
37373 msgid "INITIAL MESSAGE"
37377 #: ../src/guestfs.pod:2481
37379 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37380 "which indicates that the guest and daemon is alive. This is what L</"
37381 "guestfs_launch> waits for."
37385 #: ../src/guestfs.pod:2485
37386 msgid "PROGRESS NOTIFICATION MESSAGES"
37390 #: ../src/guestfs.pod:2487
37392 "The daemon may send progress notification messages at any time. These are "
37393 "distinguished by the normal length word being replaced by "
37394 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37398 #: ../src/guestfs.pod:2491
37400 "The library turns them into progress callbacks (see L</"
37401 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37406 #: ../src/guestfs.pod:2495
37408 "The daemon self-limits the frequency of progress messages it sends (see "
37409 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
37414 #: ../src/guestfs.pod:2499
37415 msgid "LIBGUESTFS VERSION NUMBERS"
37419 #: ../src/guestfs.pod:2501
37421 "Since April 2010, libguestfs has started to make separate development and "
37422 "stable releases, along with corresponding branches in our git repository. "
37423 "These separate releases can be identified by version number:"
37427 #: ../src/guestfs.pod:2506
37430 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
37431 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37437 " | `-------- sub-version\n"
37439 " `------ always '1' because we don't change the ABI\n"
37444 #: ../src/guestfs.pod:2517
37445 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37449 #: ../src/guestfs.pod:2519
37451 "As time passes we cherry pick fixes from the development branch and backport "
37452 "those into the stable branch, the effect being that the stable branch should "
37453 "get more stable and less buggy over time. So the stable releases are ideal "
37454 "for people who don't need new features but would just like the software to "
37459 #: ../src/guestfs.pod:2525
37460 msgid "Our criteria for backporting changes are:"
37464 #: ../src/guestfs.pod:2531
37466 "Documentation changes which don't affect any code are backported unless the "
37467 "documentation refers to a future feature which is not in stable."
37471 #: ../src/guestfs.pod:2537
37473 "Bug fixes which are not controversial, fix obvious problems, and have been "
37474 "well tested are backported."
37478 #: ../src/guestfs.pod:2542
37480 "Simple rearrangements of code which shouldn't affect how it works get "
37481 "backported. This is so that the code in the two branches doesn't get too "
37482 "far out of step, allowing us to backport future fixes more easily."
37486 #: ../src/guestfs.pod:2548
37488 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37489 "exceptional case: the new feature is required in order to implement an "
37490 "important bug fix."
37494 #: ../src/guestfs.pod:2554
37496 "A new stable branch starts when we think the new features in development are "
37497 "substantial and compelling enough over the current stable branch to warrant "
37498 "it. When that happens we create new stable and development versions 1.N.0 "
37499 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
37500 "stable at this point, but by backporting fixes from development, that branch "
37501 "will stabilize over time."
37505 #: ../src/guestfs.pod:2562
37506 msgid "EXTENDING LIBGUESTFS"
37510 #: ../src/guestfs.pod:2564
37511 msgid "ADDING A NEW API ACTION"
37515 #: ../src/guestfs.pod:2566
37517 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37518 "documentation) are generated, and this makes it easy to extend the "
37523 #: ../src/guestfs.pod:2570
37524 msgid "To add a new API action there are two changes:"
37528 #: ../src/guestfs.pod:2576
37530 "You need to add a description of the call (name, parameters, return type, "
37531 "tests, documentation) to C<generator/generator_actions.ml>."
37535 #: ../src/guestfs.pod:2579
37537 "There are two sorts of API action, depending on whether the call goes "
37538 "through to the daemon in the appliance, or is serviced entirely by the "
37539 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
37540 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
37541 "an example of the latter, since a trace flag is maintained in the handle and "
37542 "all tracing is done on the library side."
37546 #: ../src/guestfs.pod:2587
37548 "Most new actions are of the first type, and get added to the "
37549 "C<daemon_functions> list. Each function has a unique procedure number used "
37550 "in the RPC protocol which is assigned to that action when we publish "
37551 "libguestfs and cannot be reused. Take the latest procedure number and "
37556 #: ../src/guestfs.pod:2593
37558 "For library-only actions of the second type, add to the "
37559 "C<non_daemon_functions> list. Since these functions are serviced by the "
37560 "library and do not travel over the RPC mechanism to the daemon, these "
37561 "functions do not need a procedure number, and so the procedure number is set "
37566 #: ../src/guestfs.pod:2601
37567 msgid "Implement the action (in C):"
37571 #: ../src/guestfs.pod:2603
37573 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37574 "C<daemon/> directory."
37578 #: ../src/guestfs.pod:2606
37580 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37581 "(note: double underscore) in the C<src/> directory."
37585 #: ../src/guestfs.pod:2609
37586 msgid "In either case, use another function as an example of what to do."
37590 #: ../src/guestfs.pod:2613
37591 msgid "After making these changes, use C<make> to compile."
37595 #: ../src/guestfs.pod:2615
37597 "Note that you don't need to implement the RPC, language bindings, manual "
37598 "pages or anything else. It's all automatically generated from the OCaml "
37603 #: ../src/guestfs.pod:2619
37604 msgid "ADDING TESTS FOR AN API ACTION"
37608 #: ../src/guestfs.pod:2621
37610 "You can supply zero or as many tests as you want per API call. The tests "
37611 "can either be added as part of the API description (C<generator/"
37612 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37613 "into C<regressions/>. Note that adding a script to C<regressions/> is "
37614 "slower, so if possible use the first method."
37618 #: ../src/guestfs.pod:2627
37620 "The following describes the test environment used when you add an API test "
37621 "in C<generator_actions.ml>."
37625 #: ../src/guestfs.pod:2630
37626 msgid "The test environment has 4 block devices:"
37630 #: ../src/guestfs.pod:2634
37631 msgid "C</dev/sda> 500MB"
37632 msgstr "C</dev/sda> 500 МБ"
37635 #: ../src/guestfs.pod:2636
37636 msgid "General block device for testing."
37640 #: ../src/guestfs.pod:2638
37641 msgid "C</dev/sdb> 50MB"
37642 msgstr "C</dev/sdb> 50 МБ"
37645 #: ../src/guestfs.pod:2640
37647 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37652 #: ../src/guestfs.pod:2643
37653 msgid "C</dev/sdc> 10MB"
37654 msgstr "C</dev/sdc> 10 МБ"
37657 #: ../src/guestfs.pod:2645
37658 msgid "Used in a few tests where two block devices are needed."
37662 #: ../src/guestfs.pod:2647
37663 msgid "C</dev/sdd>"
37664 msgstr "C</dev/sdd>"
37667 #: ../src/guestfs.pod:2649
37668 msgid "ISO with fixed content (see C<images/test.iso>)."
37672 #: ../src/guestfs.pod:2653
37674 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37675 "appliance and block devices are reused between tests. So don't try testing "
37676 "L</guestfs_kill_subprocess> :-x"
37680 #: ../src/guestfs.pod:2657
37682 "Each test starts with an initial scenario, selected using one of the "
37683 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
37684 "initialize the disks mentioned above in a particular way as documented in "
37685 "C<generator_types.ml>. You should not assume anything about the previous "
37686 "contents of other disks that are not initialized."
37690 #: ../src/guestfs.pod:2663
37692 "You can add a prerequisite clause to any individual test. This is a run-"
37693 "time check, which, if it fails, causes the test to be skipped. Useful if "
37694 "testing a command which might not work on all variations of libguestfs "
37695 "builds. A test that has prerequisite of C<Always> means to run "
37700 #: ../src/guestfs.pod:2669
37702 "In addition, packagers can skip individual tests by setting environment "
37703 "variables before running C<make check>."
37707 #: ../src/guestfs.pod:2672
37710 " SKIP_TEST_<CMD>_<NUM>=1\n"
37715 #: ../src/guestfs.pod:2674
37716 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37720 #: ../src/guestfs.pod:2676
37725 #: ../src/guestfs.pod:2678
37728 " SKIP_TEST_<CMD>=1\n"
37733 #: ../src/guestfs.pod:2680
37734 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37738 #: ../src/guestfs.pod:2682
37739 msgid "Packagers can run only certain tests by setting for example:"
37743 #: ../src/guestfs.pod:2684
37746 " TEST_ONLY=\"vfs_type zerofree\"\n"
37751 #: ../src/guestfs.pod:2686
37753 "See C<capitests/tests.c> for more details of how these environment variables "
37758 #: ../src/guestfs.pod:2689
37759 msgid "DEBUGGING NEW API ACTIONS"
37763 #: ../src/guestfs.pod:2691
37764 msgid "Test new actions work before submitting them."
37768 #: ../src/guestfs.pod:2693
37769 msgid "You can use guestfish to try out new commands."
37773 #: ../src/guestfs.pod:2695
37775 "Debugging the daemon is a problem because it runs inside a minimal "
37776 "environment. However you can fprintf messages in the daemon to stderr, and "
37777 "they will show up if you use C<guestfish -v>."
37781 #: ../src/guestfs.pod:2699
37782 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37786 #: ../src/guestfs.pod:2701
37788 "Our C source code generally adheres to some basic code-formatting "
37789 "conventions. The existing code base is not totally consistent on this "
37790 "front, but we do prefer that contributed code be formatted similarly. In "
37791 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37792 "indentation level, and other than that, follow the K&R style."
37796 #: ../src/guestfs.pod:2707
37798 "If you use Emacs, add the following to one of one of your start-up files (e."
37799 "g., ~/.emacs), to help ensure that you get indentation right:"
37803 #: ../src/guestfs.pod:2710
37806 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37807 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37808 " (add-hook 'find-file-hook\n"
37809 " '(lambda () (if (and buffer-file-name\n"
37810 " (string-match \"/libguestfs\\\\>\"\n"
37811 " (buffer-file-name))\n"
37812 " (not (string-equal mode-name \"Change Log\"))\n"
37813 " (not (string-equal mode-name \"Makefile\")))\n"
37814 " (setq indent-tabs-mode nil))))\n"
37819 #: ../src/guestfs.pod:2720
37822 " ;;; When editing C sources in libguestfs, use this style.\n"
37823 " (defun libguestfs-c-mode ()\n"
37824 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
37826 " (c-set-style \"K&R\")\n"
37827 " (setq c-indent-level 2)\n"
37828 " (setq c-basic-offset 2))\n"
37829 " (add-hook 'c-mode-hook\n"
37830 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37831 " (buffer-file-name))\n"
37832 " (libguestfs-c-mode))))\n"
37837 #: ../src/guestfs.pod:2732
37838 msgid "Enable warnings when compiling (and fix any problems this finds):"
37842 #: ../src/guestfs.pod:2735
37845 " ./configure --enable-gcc-warnings\n"
37848 " ./configure --enable-gcc-warnings\n"
37852 #: ../src/guestfs.pod:2737
37853 msgid "Useful targets are:"
37857 #: ../src/guestfs.pod:2739
37860 " make syntax-check # checks the syntax of the C code\n"
37861 " make check # runs the test suite\n"
37866 #: ../src/guestfs.pod:2742
37867 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37871 #: ../src/guestfs.pod:2744
37873 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37874 "which are used to do shell quoting."
37878 #: ../src/guestfs.pod:2749
37883 #: ../src/guestfs.pod:2751
37885 "Simple shell quoted string. Any spaces or other shell characters are "
37890 #: ../src/guestfs.pod:2754
37895 #: ../src/guestfs.pod:2756
37897 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37902 #: ../src/guestfs.pod:2763
37905 " asprintf (&cmd, \"cat %R\", path);\n"
37910 #: ../src/guestfs.pod:2765
37911 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37915 #: ../src/guestfs.pod:2767
37917 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37918 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
37919 "they are not passed via the shell (instead, straight to exec). You probably "
37920 "want to use the C<sysroot_path()> function however."
37924 #: ../src/guestfs.pod:2773
37925 msgid "SUBMITTING YOUR NEW API ACTIONS"
37929 #: ../src/guestfs.pod:2775
37931 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37932 "libguestfs> and CC to L<rjones@redhat.com>."
37936 #: ../src/guestfs.pod:2779
37937 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37941 #: ../src/guestfs.pod:2781
37942 msgid "We support i18n (gettext anyhow) in the library."
37946 #: ../src/guestfs.pod:2783
37948 "However many messages come from the daemon, and we don't translate those at "
37949 "the moment. One reason is that the appliance generally has all locale files "
37950 "removed from it, because they take up a lot of space. So we'd have to readd "
37951 "some of those, as well as copying our PO files into the appliance."
37955 #: ../src/guestfs.pod:2789
37957 "Debugging messages are never translated, since they are intended for the "
37962 #: ../src/guestfs.pod:2792
37963 msgid "SOURCE CODE SUBDIRECTORIES"
37967 #: ../src/guestfs.pod:2798
37968 msgid "The libguestfs appliance, build scripts and so on."
37972 #: ../src/guestfs.pod:2800
37973 msgid "C<capitests>"
37974 msgstr "C<capitests>"
37977 #: ../src/guestfs.pod:2802
37978 msgid "Automated tests of the C API."
37982 #: ../src/guestfs.pod:2804
37987 #: ../src/guestfs.pod:2806
37989 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37994 #: ../src/guestfs.pod:2809
37999 #: ../src/guestfs.pod:2811
38001 "Safety and liveness tests of components that libguestfs depends upon (not of "
38002 "libguestfs itself). Mainly this is for qemu and the kernel."
38006 #: ../src/guestfs.pod:2814
38008 msgstr "C<contrib>"
38011 #: ../src/guestfs.pod:2816
38012 msgid "Outside contributions, experimental parts."
38016 #: ../src/guestfs.pod:2818
38021 #: ../src/guestfs.pod:2820
38023 "The daemon that runs inside the libguestfs appliance and carries out actions."
38027 #: ../src/guestfs.pod:2823
38032 #: ../src/guestfs.pod:2825
38033 msgid "L<virt-df(1)> command and documentation."
38037 #: ../src/guestfs.pod:2827
38042 #: ../src/guestfs.pod:2829
38043 msgid "L<virt-edit(1)> command and documentation."
38047 #: ../src/guestfs.pod:2831
38048 msgid "C<examples>"
38049 msgstr "C<examples>"
38052 #: ../src/guestfs.pod:2833
38053 msgid "C API example code."
38054 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38057 #: ../src/guestfs.pod:2835
38062 #: ../src/guestfs.pod:2837
38064 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38065 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38066 "L<virt-tar-out(1)>."
38070 #: ../src/guestfs.pod:2841
38075 #: ../src/guestfs.pod:2843
38077 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38081 #: ../src/guestfs.pod:2845
38082 msgid "C<generator>"
38083 msgstr "C<generator>"
38086 #: ../src/guestfs.pod:2847
38088 "The crucially important generator, used to automatically generate large "
38089 "amounts of boilerplate C code for things like RPC and bindings."
38093 #: ../src/guestfs.pod:2850
38098 #: ../src/guestfs.pod:2852
38099 msgid "Files used by the test suite."
38103 #: ../src/guestfs.pod:2854
38104 msgid "Some \"phony\" guest images which we test against."
38108 #: ../src/guestfs.pod:2856
38109 msgid "C<inspector>"
38110 msgstr "C<inspector>"
38113 #: ../src/guestfs.pod:2858
38114 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38118 #: ../src/guestfs.pod:2860
38123 #: ../src/guestfs.pod:2862
38124 msgid "Logo used on the website. The fish is called Arthur by the way."
38128 #: ../src/guestfs.pod:2864
38133 #: ../src/guestfs.pod:2866
38134 msgid "M4 macros used by autoconf."
38138 #: ../src/guestfs.pod:2868
38143 #: ../src/guestfs.pod:2870
38144 msgid "Translations of simple gettext strings."
38145 msgstr "Переклади простих рядків gettext."
38148 #: ../src/guestfs.pod:2872
38150 msgstr "C<po-docs>"
38153 #: ../src/guestfs.pod:2874
38155 "The build infrastructure and PO files for translations of manpages and POD "
38156 "files. Eventually this will be combined with the C<po> directory, but that "
38157 "is rather complicated."
38161 #: ../src/guestfs.pod:2878
38162 msgid "C<regressions>"
38163 msgstr "C<regressions>"
38166 #: ../src/guestfs.pod:2880
38167 msgid "Regression tests."
38168 msgstr "Тести на регресії."
38171 #: ../src/guestfs.pod:2882
38176 #: ../src/guestfs.pod:2884
38177 msgid "L<virt-rescue(1)> command and documentation."
38181 #: ../src/guestfs.pod:2886
38186 #: ../src/guestfs.pod:2888
38187 msgid "Source code to the C library."
38191 #: ../src/guestfs.pod:2890
38196 #: ../src/guestfs.pod:2892
38197 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
38201 #: ../src/guestfs.pod:2894
38202 msgid "C<test-tool>"
38203 msgstr "C<test-tool>"
38206 #: ../src/guestfs.pod:2896
38208 "Test tool for end users to test if their qemu/kernel combination will work "
38213 #: ../src/guestfs.pod:2899
38218 #: ../src/guestfs.pod:2901
38220 msgstr "C<haskell>"
38223 #: ../src/guestfs.pod:2903
38228 #: ../src/guestfs.pod:2905
38233 #: ../src/guestfs.pod:2907
38238 #: ../src/guestfs.pod:2909
38243 #: ../src/guestfs.pod:2911
38248 #: ../src/guestfs.pod:2913
38253 #: ../src/guestfs.pod:2915
38254 msgid "Language bindings."
38255 msgstr "Прив’язки до мов програмування."
38258 #: ../src/guestfs.pod:2919
38259 msgid "MAKING A STABLE RELEASE"
38263 #: ../src/guestfs.pod:2921
38265 "When we make a stable release, there are several steps documented here. See "
38266 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38271 #: ../src/guestfs.pod:2929
38273 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38277 #: ../src/guestfs.pod:2934
38278 msgid "Finalize RELEASE-NOTES."
38282 #: ../src/guestfs.pod:2938
38283 msgid "Update ROADMAP."
38287 #: ../src/guestfs.pod:2942
38288 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38292 #: ../src/guestfs.pod:2946
38293 msgid "Push and pull from Transifex."
38297 #: ../src/guestfs.pod:2948
38302 #: ../src/guestfs.pod:2950
38310 #: ../src/guestfs.pod:2952
38311 msgid "to push the latest POT files to Transifex. Then run:"
38315 #: ../src/guestfs.pod:2954
38323 #: ../src/guestfs.pod:2956
38324 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38328 #: ../src/guestfs.pod:2960
38330 "Create new stable and development directories under L<http://libguestfs.org/"
38335 #: ../src/guestfs.pod:2965
38336 msgid "Create the branch in git:"
38340 #: ../src/guestfs.pod:2967
38343 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38344 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38345 " git branch stable-1.XX\n"
38346 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38351 #: ../src/guestfs.pod:2974
38356 #: ../src/guestfs.pod:2976
38357 msgid "PROTOCOL LIMITS"
38358 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38361 #: ../src/guestfs.pod:2978
38363 "Internally libguestfs uses a message-based protocol to pass API calls and "
38364 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38365 "plenty more detail about this). The maximum message size used by the "
38366 "protocol is slightly less than 4 MB. For some API calls you may need to be "
38367 "aware of this limit. The API calls which may be affected are individually "
38368 "documented, with a link back to this section of the documentation."
38372 #: ../src/guestfs.pod:2986
38374 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38375 "a simple string. Because this string is at some point internally encoded as "
38376 "a message, the maximum size that it can return is slightly under 4 MB. If "
38377 "the requested file is larger than this then you will get an error."
38381 #: ../src/guestfs.pod:2992
38383 "In order to transfer large files into and out of the guest filesystem, you "
38384 "need to use particular calls that support this. The sections L</UPLOADING> "
38385 "and L</DOWNLOADING> document how to do this."
38389 #: ../src/guestfs.pod:2996
38391 "You might also consider mounting the disk image using our FUSE filesystem "
38392 "support (L<guestmount(1)>)."
38396 #: ../src/guestfs.pod:2999
38397 msgid "MAXIMUM NUMBER OF DISKS"
38401 #: ../src/guestfs.pod:3001
38402 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38406 #: ../src/guestfs.pod:3004
38408 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38409 "slots. However febootstrap only understands disks with names C</dev/vda> "
38410 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38415 #: ../src/guestfs.pod:3009
38417 "We are working to substantially raise this limit in future versions but it "
38418 "requires complex changes to qemu."
38422 #: ../src/guestfs.pod:3012
38424 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38425 "disks (add and remove disks after calling L</guestfs_launch>). This also "
38426 "requires changes to qemu."
38430 #: ../src/guestfs.pod:3016
38431 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38435 #: ../src/guestfs.pod:3018
38436 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38440 #: ../src/guestfs.pod:3020
38442 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38443 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38447 #: ../src/guestfs.pod:3023
38449 "If you attach a disk with more than 15 partitions, the extra partitions are "
38450 "ignored by libguestfs."
38454 #: ../src/guestfs.pod:3026
38455 msgid "MAXIMUM SIZE OF A DISK"
38459 #: ../src/guestfs.pod:3028
38460 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38464 #: ../src/guestfs.pod:3030
38466 "We have tested block devices up to 1 exabyte (2**60 or "
38467 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38472 #: ../src/guestfs.pod:3034
38474 "Although libguestfs probably does not impose any limit, the underlying host "
38475 "storage will. If you store disk images on a host ext4 filesystem, then the "
38476 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38477 "TB). If you store disk images as host logical volumes then you are limited "
38478 "by the maximum size of an LV."
38482 #: ../src/guestfs.pod:3040
38484 "For the hugest disk image files, we recommend using XFS on the host for "
38489 #: ../src/guestfs.pod:3043
38490 msgid "MAXIMUM SIZE OF A PARTITION"
38494 #: ../src/guestfs.pod:3045
38496 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38497 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
38498 "address a partition located beyond 2 TB on the disk."
38502 #: ../src/guestfs.pod:3049
38504 "It is recommended that you use GPT partitions on disks which are larger than "
38505 "this size. GPT uses 64 bit sector numbers and so can address partitions "
38506 "which are theoretically larger than the largest disk we could support."
38510 #: ../src/guestfs.pod:3054
38511 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38515 #: ../src/guestfs.pod:3056
38517 "This depends on the filesystem type. libguestfs itself does not impose any "
38518 "known limit. Consult Wikipedia or the filesystem documentation to find out "
38519 "what these limits are."
38523 #: ../src/guestfs.pod:3060
38524 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38528 #: ../src/guestfs.pod:3062
38530 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38531 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38532 "uploads and downloads."
38536 #: ../src/guestfs.pod:3066
38537 msgid "INSPECTION LIMITS"
38541 #: ../src/guestfs.pod:3068
38543 "The inspection code has several arbitrary limits on things like the size of "
38544 "Windows Registry hive it will read, and the length of product name. These "
38545 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38546 "memory and disk space on the host, and should not be reached in practice. "
38547 "See the source code for more information."
38551 #: ../src/guestfs.pod:3094
38553 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
38554 "effect as calling C<guestfs_set_verbose (g, 1)>."
38558 #: ../src/guestfs.pod:3106
38560 "Set the path that libguestfs uses to search for a supermin appliance. See "
38561 "the discussion of paths in section L</PATH> above."
38565 #: ../src/guestfs.pod:3115
38566 msgid "See also L</QEMU WRAPPERS> above."
38570 #: ../src/guestfs.pod:3119
38572 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
38573 "effect as calling C<guestfs_set_trace (g, 1)>."
38577 #: ../src/guestfs.pod:3137
38579 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38580 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38581 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38582 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38583 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38584 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38585 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38586 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38590 #: ../src/guestfs.pod:3167
38592 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38593 "(8)>, L<disktype(1)>."
38597 #: ../src/guestfs.pod:3174 ../tools/virt-make-fs.pl:553
38598 #: ../tools/virt-win-reg.pl:761
38603 #: ../src/guestfs.pod:3176
38604 msgid "To get a list of bugs against libguestfs use this link:"
38606 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38610 #: ../src/guestfs.pod:3178
38612 "L<https://bugzilla.redhat.com/buglist.cgi?"
38613 "component=libguestfs&product=Virtualization+Tools>"
38615 "L<https://bugzilla.redhat.com/buglist.cgi?"
38616 "component=libguestfs&product=Virtualization+Tools>"
38619 #: ../src/guestfs.pod:3180
38620 msgid "To report a new bug against libguestfs use this link:"
38621 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38624 #: ../src/guestfs.pod:3182
38626 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38627 "component=libguestfs&product=Virtualization+Tools>"
38629 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38630 "component=libguestfs&product=Virtualization+Tools>"
38633 #: ../src/guestfs.pod:3184
38634 msgid "When reporting a bug, please check:"
38638 #: ../src/guestfs.pod:3190
38639 msgid "That the bug hasn't been reported already."
38643 #: ../src/guestfs.pod:3194
38644 msgid "That you are testing a recent version."
38648 #: ../src/guestfs.pod:3198
38649 msgid "Describe the bug accurately, and give a way to reproduce it."
38653 #: ../src/guestfs.pod:3202
38655 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38660 #: ../test-tool/libguestfs-test-tool.pod:5
38661 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38665 #: ../test-tool/libguestfs-test-tool.pod:9
38668 " libguestfs-test-tool [--options]\n"
38673 #: ../test-tool/libguestfs-test-tool.pod:13
38675 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38676 "to check basic libguestfs functionality is working. This is needed because "
38677 "libguestfs occasionally breaks for reasons beyond our control: usually "
38678 "because of changes in the underlying qemu or kernel packages, or the host "
38683 #: ../test-tool/libguestfs-test-tool.pod:19
38684 msgid "If you suspect a problem in libguestfs, then just run:"
38688 #: ../test-tool/libguestfs-test-tool.pod:21
38691 " libguestfs-test-tool\n"
38696 #: ../test-tool/libguestfs-test-tool.pod:23
38697 msgid "It will print lots of diagnostic messages."
38701 #: ../test-tool/libguestfs-test-tool.pod:25
38702 msgid "If it runs to completion successfully, you will see this near the end:"
38706 #: ../test-tool/libguestfs-test-tool.pod:27
38709 " ===== TEST FINISHED OK =====\n"
38714 #: ../test-tool/libguestfs-test-tool.pod:29
38715 msgid "and the test tool will exit with code 0."
38719 #: ../test-tool/libguestfs-test-tool.pod:31
38721 "If it fails (and/or exits with non-zero error code), please paste the "
38722 "I<complete, unedited> output of the test tool into a bug report. More "
38723 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38728 #: ../test-tool/libguestfs-test-tool.pod:42
38729 msgid "Display short usage information and exit."
38733 #: ../test-tool/libguestfs-test-tool.pod:44
38735 #| msgid "I<--qemu qemu_binary>"
38736 msgid "B<--qemu qemu_binary>"
38737 msgstr "I<--qemu виконуваний_файл_qemu>"
38740 #: ../test-tool/libguestfs-test-tool.pod:46
38742 "If you have downloaded another qemu binary, point this option at the full "
38743 "path of the binary to try it."
38747 #: ../test-tool/libguestfs-test-tool.pod:49
38749 #| msgid "I<--qemu qemu_binary>"
38750 msgid "B<--qemudir qemu_source_dir>"
38751 msgstr "I<--qemu виконуваний_файл_qemu>"
38754 #: ../test-tool/libguestfs-test-tool.pod:51
38756 "If you have compiled qemu from source, point this option at the source "
38757 "directory to try it."
38761 #: ../test-tool/libguestfs-test-tool.pod:54
38766 #: ../test-tool/libguestfs-test-tool.pod:56
38768 #| msgid "I<--timeout N>"
38769 msgid "B<--timeout N>"
38770 msgstr "I<--timeout N>"
38773 #: ../test-tool/libguestfs-test-tool.pod:58
38775 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
38776 "minutes) which does not usually need to be adjusted."
38780 #: ../test-tool/libguestfs-test-tool.pod:63
38781 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38785 #: ../test-tool/libguestfs-test-tool.pod:65
38787 "If you have compiled another version of qemu from source and would like to "
38788 "try that, then you can use the I<--qemudir> option to point to the qemu "
38789 "source directory."
38793 #: ../test-tool/libguestfs-test-tool.pod:69
38795 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38796 "option to point to the binary."
38800 #: ../test-tool/libguestfs-test-tool.pod:72
38802 "Note when using these options, you can ignore the business of qemu wrapper "
38803 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38804 "wrapper script for you if one is needed."
38808 #: ../test-tool/libguestfs-test-tool.pod:76
38809 msgid "TRYING OUT A DIFFERENT KERNEL"
38813 #: ../test-tool/libguestfs-test-tool.pod:78
38815 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38816 "libguestfs tries. You do this by setting the environment variables "
38817 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38821 #: ../test-tool/libguestfs-test-tool.pod:82
38823 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38828 #: ../test-tool/libguestfs-test-tool.pod:85
38829 msgid "SELF-DIAGNOSIS"
38833 #: ../test-tool/libguestfs-test-tool.pod:87
38835 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38836 "produced by libguestfs-test-tool and/or possible errors."
38840 #: ../test-tool/libguestfs-test-tool.pod:92
38842 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38843 "I<1> if there was an error."
38847 #: ../test-tool/libguestfs-test-tool.pod:97
38849 "For the full list of environment variables which may affect libguestfs, "
38850 "please see the L<guestfs(3)> manual page."
38854 #: ../test-tool/libguestfs-test-tool.pod:102
38855 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38859 #: ../tools/virt-list-filesystems.pl:32
38861 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38865 #: ../tools/virt-list-filesystems.pl:36
38868 " virt-list-filesystems [--options] domname\n"
38873 #: ../tools/virt-list-filesystems.pl:38
38876 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38881 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38883 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
38888 #: ../tools/virt-list-filesystems.pl:45
38890 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38891 "are contained in a virtual machine or disk image."
38895 #: ../tools/virt-list-filesystems.pl:49
38897 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38898 "functionality. For more complex cases you should look at the L<guestfish(1)"
38903 #: ../tools/virt-list-filesystems.pl:112
38905 "With this option, C<virt-list-filesystems> displays the type of each "
38906 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38910 #: ../tools/virt-list-filesystems.pl:119
38912 #| msgid "B<-a image>"
38914 msgstr "B<-a образ>"
38917 #: ../tools/virt-list-filesystems.pl:123
38919 "Normally we only show mountable filesystems. If this option is given then "
38920 "swap devices are shown too."
38924 #: ../tools/virt-list-filesystems.pl:197
38926 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38927 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38928 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38930 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38931 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38932 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38935 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38936 msgid "Copyright (C) 2009 Red Hat Inc."
38937 msgstr "© Red Hat Inc., 2009"
38940 #: ../tools/virt-list-partitions.pl:32
38942 "virt-list-partitions - List partitions in a virtual machine or disk image"
38946 #: ../tools/virt-list-partitions.pl:36
38949 " virt-list-partitions [--options] domname\n"
38952 " virt-list-partitions [--параметри] назва_домену\n"
38956 #: ../tools/virt-list-partitions.pl:38
38959 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38962 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38966 #: ../tools/virt-list-partitions.pl:45
38968 "C<virt-list-partitions> is a command line tool to list the partitions that "
38969 "are contained in a virtual machine or disk image. It is mainly useful as a "
38970 "first step to using L<virt-resize(1)>."
38974 #: ../tools/virt-list-partitions.pl:50
38976 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38977 "functionality. For more complex cases you should look at the L<guestfish(1)"
38982 #: ../tools/virt-list-partitions.pl:113
38983 msgid "Show sizes in human-readable form (eg. \"1G\")."
38987 #: ../tools/virt-list-partitions.pl:123
38989 "With this option, C<virt-list-partitions> displays the type and size of each "
38990 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38994 #: ../tools/virt-list-partitions.pl:130
38999 #: ../tools/virt-list-partitions.pl:132
39001 #| msgid "B<-t> | B<--total>"
39003 msgstr "B<-t> | B<--total>"
39006 #: ../tools/virt-list-partitions.pl:134
39008 "Display the total size of each block device (as a separate row or rows)."
39012 #: ../tools/virt-list-partitions.pl:267
39014 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39015 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39016 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39018 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39019 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39020 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39023 #: ../tools/virt-list-partitions.pl:283
39024 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39025 msgstr "© Red Hat Inc., 2009–2010"
39028 #: ../tools/virt-make-fs.pl:37
39029 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39033 #: ../tools/virt-make-fs.pl:41
39036 " virt-make-fs [--options] input.tar output.img\n"
39041 #: ../tools/virt-make-fs.pl:43
39044 " virt-make-fs [--options] input.tar.gz output.img\n"
39049 #: ../tools/virt-make-fs.pl:45
39052 " virt-make-fs [--options] directory output.img\n"
39057 #: ../tools/virt-make-fs.pl:49
39059 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39060 "archive or some files in a directory. It is similar to tools like L<mkisofs"
39061 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
39062 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39063 "you want to attach these filesystems to existing virtual machines (eg. to "
39064 "import large amounts of read-only data to a VM)."
39068 #: ../tools/virt-make-fs.pl:57
39069 msgid "Basic usage is:"
39073 #: ../tools/virt-make-fs.pl:59
39076 " virt-make-fs input output\n"
39081 #: ../tools/virt-make-fs.pl:61
39083 "where C<input> is either a directory containing files that you want to add, "
39084 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39085 "C<output> is a disk image. The input type is detected automatically. The "
39086 "output disk image defaults to a raw ext2 image unless you specify extra "
39087 "flags (see L</OPTIONS> below)."
39091 #: ../tools/virt-make-fs.pl:67
39092 msgid "EXTRA SPACE"
39096 #: ../tools/virt-make-fs.pl:69
39098 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39099 "the files that it contains, but might have extra space. Depending on how "
39100 "you are going to use the output, you might think this extra space is wasted "
39101 "and want to minimize it, or you might want to leave space so that more files "
39102 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
39103 "but you can use the I<--size> flag to leave space in the filesystem if you "
39108 #: ../tools/virt-make-fs.pl:77
39110 "An alternative way to leave extra space but not make the output image any "
39111 "bigger is to use an alternative disk image format (instead of the default "
39112 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39113 "image format (check your hypervisor supports this before using it). This "
39114 "allows you to choose a large I<--size> but the extra space won't actually be "
39115 "allocated in the image until you try to store something in it."
39119 #: ../tools/virt-make-fs.pl:85
39121 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39122 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39123 "to build another image from scratch."
39127 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39128 #: ../tools/virt-make-fs.pl:142
39133 #: ../tools/virt-make-fs.pl:91
39136 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39139 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39143 #: ../tools/virt-make-fs.pl:93
39144 msgid "FILESYSTEM TYPE"
39145 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39148 #: ../tools/virt-make-fs.pl:95
39150 "The default filesystem type is C<ext2>. Just about any filesystem type that "
39151 "libguestfs supports can be used (but I<not> read-only formats like "
39152 "ISO9660). Here are some of the more common choices:"
39156 #: ../tools/virt-make-fs.pl:101
39161 #: ../tools/virt-make-fs.pl:103
39163 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
39164 "you are not going to use the filesystem in a way that requires the journal, "
39165 "then this is just wasted overhead."
39169 #: ../tools/virt-make-fs.pl:107
39170 msgid "I<ntfs> or I<vfat>"
39171 msgstr "I<ntfs> або I<vfat>"
39174 #: ../tools/virt-make-fs.pl:109
39175 msgid "Useful if exporting data to a Windows guest."
39179 #: ../tools/virt-make-fs.pl:111
39181 "I<Note for vfat>: The tar archive or local directory must only contain files "
39182 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
39183 "program running within libguestfs is unable to change the ownership of non-"
39184 "root files, since vfat itself does not support this."
39188 #: ../tools/virt-make-fs.pl:116
39193 #: ../tools/virt-make-fs.pl:118
39195 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39196 "total filesystem size."
39200 #: ../tools/virt-make-fs.pl:125
39203 " virt-make-fs --type=minix input minixfs.img\n"
39208 #: ../tools/virt-make-fs.pl:127
39209 msgid "TO PARTITION OR NOT TO PARTITION"
39213 #: ../tools/virt-make-fs.pl:129
39214 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39218 #: ../tools/virt-make-fs.pl:131
39220 "Adding a partition can make the disk image more compatible with certain "
39221 "virtualized operating systems which don't expect to see a filesystem "
39222 "directly located on a block device (Linux doesn't care and will happily "
39223 "handle both types)."
39227 #: ../tools/virt-make-fs.pl:136
39229 "On the other hand, if you have a partition table then the output image is no "
39230 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
39231 "directly on a partitioned disk image. (However libguestfs tools such as "
39232 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39236 #: ../tools/virt-make-fs.pl:144
39237 msgid "Add an MBR partition:"
39241 #: ../tools/virt-make-fs.pl:146
39244 " virt-make-fs --partition -- input disk.img\n"
39249 #: ../tools/virt-make-fs.pl:148
39251 "If the output disk image could be terabyte-sized or larger, it's better to "
39252 "use an EFI/GPT-compatible partition table:"
39256 #: ../tools/virt-make-fs.pl:151
39259 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39264 #: ../tools/virt-make-fs.pl:179
39265 msgid "Enable debugging information."
39266 msgstr "Увімкнути виведення діагностичних даних."
39269 #: ../tools/virt-make-fs.pl:185
39270 msgid "B<--size=E<lt>NE<gt>>"
39271 msgstr "B<--size=E<lt>NE<gt>>"
39274 #: ../tools/virt-make-fs.pl:187
39275 msgid "B<--size=+E<lt>NE<gt>>"
39276 msgstr "B<--size=+E<lt>NE<gt>>"
39279 #: ../tools/virt-make-fs.pl:189
39280 msgid "B<-s E<lt>NE<gt>>"
39281 msgstr "B<-s E<lt>NE<gt>>"
39284 #: ../tools/virt-make-fs.pl:191
39285 msgid "B<-s +E<lt>NE<gt>>"
39286 msgstr "B<-s +E<lt>NE<gt>>"
39289 #: ../tools/virt-make-fs.pl:193
39291 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39295 #: ../tools/virt-make-fs.pl:196
39297 "If this option is I<not> given, then the output image will be just large "
39298 "enough to contain all the files, with not much wasted space."
39302 #: ../tools/virt-make-fs.pl:199
39304 "To choose a fixed size output disk, specify an absolute number followed by b/"
39305 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39306 "Petabytes or Exabytes. This must be large enough to contain all the input "
39307 "files, else you will get an error."
39311 #: ../tools/virt-make-fs.pl:204
39313 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39314 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39315 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
39316 "the input files, and (approximately) an extra 200 MB free space."
39320 #: ../tools/virt-make-fs.pl:210
39322 "Note that virt-make-fs estimates free space, and therefore will not produce "
39323 "filesystems containing precisely the free space requested. (It is much more "
39324 "expensive and time-consuming to produce a filesystem which has precisely the "
39325 "desired free space)."
39329 #: ../tools/virt-make-fs.pl:219
39330 msgid "B<--format=E<lt>fmtE<gt>>"
39334 #: ../tools/virt-make-fs.pl:221
39335 msgid "B<-F E<lt>fmtE<gt>>"
39339 #: ../tools/virt-make-fs.pl:223
39340 msgid "Choose the output disk image format."
39344 #: ../tools/virt-make-fs.pl:225
39345 msgid "The default is C<raw> (raw disk image)."
39349 #: ../tools/virt-make-fs.pl:227
39351 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
39352 "that would really make sense here is C<qcow2>."
39356 #: ../tools/virt-make-fs.pl:234
39357 msgid "B<--type=E<lt>fsE<gt>>"
39361 #: ../tools/virt-make-fs.pl:236
39362 msgid "B<-t E<lt>fsE<gt>>"
39366 #: ../tools/virt-make-fs.pl:238
39367 msgid "Choose the output filesystem type."
39371 #: ../tools/virt-make-fs.pl:240
39372 msgid "The default is C<ext2>."
39373 msgstr "Типовим значенням є C<ext2>."
39376 #: ../tools/virt-make-fs.pl:242
39378 "Any filesystem which is supported read-write by libguestfs can be used here."
39382 #: ../tools/virt-make-fs.pl:249
39383 msgid "B<--partition>"
39384 msgstr "B<--partition>"
39387 #: ../tools/virt-make-fs.pl:251
39388 msgid "B<--partition=E<lt>parttypeE<gt>>"
39392 #: ../tools/virt-make-fs.pl:253
39394 "If specified, this flag adds an MBR partition table to the output disk image."
39398 #: ../tools/virt-make-fs.pl:256
39400 "You can change the partition table type, eg. I<--partition=gpt> for large "
39405 #: ../tools/virt-make-fs.pl:259
39407 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39408 "might consider the next parameter to be the partition type. For example:"
39412 #: ../tools/virt-make-fs.pl:263
39415 " virt-make-fs --partition input.tar ...\n"
39420 #: ../tools/virt-make-fs.pl:265
39422 "would cause virt-make-fs to think you wanted to use a partition type of "
39423 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
39424 "dash) between options and the input file argument:"
39428 #: ../tools/virt-make-fs.pl:269
39431 " virt-make-fs --partition -- input.tar ...\n"
39434 " virt-make-fs --partition -- input.tar ...\n"
39438 #: ../tools/virt-make-fs.pl:541
39440 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39441 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39442 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39444 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39445 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39446 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39449 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39451 "When reporting bugs, please enable debugging and capture the I<complete> "
39456 #: ../tools/virt-make-fs.pl:558
39459 " export LIBGUESTFS_DEBUG=1\n"
39460 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39463 " export LIBGUESTFS_DEBUG=1\n"
39464 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39468 #: ../tools/virt-make-fs.pl:561
39470 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39475 #: ../tools/virt-tar.pl:33
39476 msgid "virt-tar - Extract or upload files to a virtual machine"
39480 #: ../tools/virt-tar.pl:37
39483 " virt-tar [--options] -x domname directory tarball\n"
39488 #: ../tools/virt-tar.pl:39
39491 " virt-tar [--options] -u domname tarball directory\n"
39496 #: ../tools/virt-tar.pl:41
39499 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39504 #: ../tools/virt-tar.pl:43
39507 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39512 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39517 #: ../tools/virt-tar.pl:47
39519 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39520 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39524 #: ../tools/virt-tar.pl:52
39525 msgid "Download C</home> from the VM into a local tarball:"
39529 #: ../tools/virt-tar.pl:54
39532 " virt-tar -x domname /home home.tar\n"
39537 #: ../tools/virt-tar.pl:56
39540 " virt-tar -zx domname /home home.tar.gz\n"
39545 #: ../tools/virt-tar.pl:58
39546 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39550 #: ../tools/virt-tar.pl:60
39553 " virt-tar -u domname uploadstuff.tar /tmp\n"
39558 #: ../tools/virt-tar.pl:62
39561 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39566 #: ../tools/virt-tar.pl:66
39568 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39569 "virtual machines. If you do this, you risk disk corruption in the VM. "
39570 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39574 #: ../tools/virt-tar.pl:71
39576 "You can use I<-x> (extract) on live virtual machines, but you might get "
39577 "inconsistent results or errors if there is filesystem activity inside the "
39578 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
39579 "work, but the only way to guarantee consistent results is if the virtual "
39580 "machine is shut down."
39584 #: ../tools/virt-tar.pl:79
39586 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39587 "parts of a guest filesystem. There are many possibilities: making backups, "
39588 "uploading data files, snooping on guest activity, fixing or customizing "
39593 #: ../tools/virt-tar.pl:84
39595 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
39596 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
39597 "should look at the L<guestfish(1)> tool."
39601 #: ../tools/virt-tar.pl:88
39603 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39604 "its contents (recursively) from the virtual machine into a local tarball. "
39605 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39606 "virtual machine. You cannot use these two options together."
39610 #: ../tools/virt-tar.pl:94
39612 "In addition, you may need to use the I<-z> (gZip) option to enable "
39613 "compression. When uploading, you have to specify I<-z> if the upload file "
39614 "is compressed because virt-tar won't detect this on its own."
39618 #: ../tools/virt-tar.pl:98
39620 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
39621 "example it cannot do PKZip files or bzip2 compression. If you want that "
39622 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
39623 "the L<libguestfs(3)> API)."
39627 #: ../tools/virt-tar.pl:160
39629 #| msgid "B<--format>"
39630 msgid "B<--extract>"
39631 msgstr "B<--format>"
39634 #: ../tools/virt-tar.pl:162
39636 #| msgid "download"
39637 msgid "B<--download>"
39641 #: ../tools/virt-tar.pl:164
39646 #: ../tools/virt-tar.pl:166
39648 #| msgid "B<-u> | B<--upload>"
39649 msgid "B<--upload>"
39650 msgstr "B<-u> | B<--upload>"
39653 #: ../tools/virt-tar.pl:168
39655 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39660 #: ../tools/virt-tar.pl:171
39662 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
39663 "Please read the L</WARNING> section above before using this option."
39667 #: ../tools/virt-tar.pl:175
39668 msgid "You must specify exactly one of these options."
39672 #: ../tools/virt-tar.pl:181
39677 #: ../tools/virt-tar.pl:183
39679 #| msgid "B<-z> | B<--gzip>"
39681 msgstr "B<-z> | B<--gzip>"
39684 #: ../tools/virt-tar.pl:185
39685 msgid "Specify that the input or output tarball is gzip-compressed."
39689 #: ../tools/virt-tar.pl:298
39691 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39692 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39693 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39696 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39697 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39698 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39702 #: ../tools/virt-win-reg.pl:37
39704 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39708 #: ../tools/virt-win-reg.pl:41
39711 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39716 #: ../tools/virt-win-reg.pl:43
39719 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39724 #: ../tools/virt-win-reg.pl:45
39727 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39732 #: ../tools/virt-win-reg.pl:47
39735 " virt-win-reg --merge domname [input.reg ...]\n"
39740 #: ../tools/virt-win-reg.pl:49
39743 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39748 #: ../tools/virt-win-reg.pl:53
39750 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39751 "virtual machines. If you do this, you I<will> get irreversible disk "
39752 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
39753 "but doesn't catch all cases."
39757 #: ../tools/virt-win-reg.pl:58
39759 "Modifying the Windows Registry is an inherently risky operation. The format "
39760 "is deliberately obscure and undocumented, and Registry changes can leave the "
39761 "system unbootable. Therefore when using the I<--merge> option, make sure "
39762 "you have a reliable backup first."
39766 #: ../tools/virt-win-reg.pl:65
39768 "This program can export and merge Windows Registry entries from a Windows "
39773 #: ../tools/virt-win-reg.pl:68
39775 "The first parameter is the libvirt guest name or the raw disk image of a "
39780 #: ../tools/virt-win-reg.pl:71
39782 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39783 "exported (recursively). For example:"
39787 #: ../tools/virt-win-reg.pl:74
39790 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39795 #: ../tools/virt-win-reg.pl:76
39797 "You can also display single values from within registry keys, for example:"
39801 #: ../tools/virt-win-reg.pl:79
39804 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39805 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39806 " Windows 7 Enterprise\n"
39811 #: ../tools/virt-win-reg.pl:83
39813 "With I<--merge>, you can merge a textual regedit file into the Windows "
39818 #: ../tools/virt-win-reg.pl:86
39821 " $ virt-win-reg --merge Windows7 changes.reg\n"
39826 #: ../tools/virt-win-reg.pl:90
39828 "This program is only meant for simple access to the registry. If you want "
39829 "to do complicated things with the registry, we suggest you download the "
39830 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39831 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39832 "L<hivexregedit(1)>."
39836 #: ../tools/virt-win-reg.pl:159
39838 msgstr "B<--merge>"
39841 #: ../tools/virt-win-reg.pl:161
39843 "In merge mode, this merges a textual regedit file into the Windows Registry "
39844 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
39845 "displays or exports Registry entries instead."
39849 #: ../tools/virt-win-reg.pl:165
39851 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39852 "result in disk corruption. However exporting (without this flag) is always "
39857 #: ../tools/virt-win-reg.pl:173
39858 msgid "B<--encoding> UTF-16LE|ASCII"
39862 #: ../tools/virt-win-reg.pl:175
39864 "When merging (only), you may need to specify the encoding for strings to be "
39865 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
39866 "(3)/ENCODING STRINGS>."
39870 #: ../tools/virt-win-reg.pl:179
39872 "The default is to use UTF-16LE, which should work with recent versions of "
39877 #: ../tools/virt-win-reg.pl:186
39878 msgid "B<--unsafe-printable-strings>"
39882 #: ../tools/virt-win-reg.pl:188
39884 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39885 "instead of hex sequences. Remove the final zero codepoint from strings if "
39890 #: ../tools/virt-win-reg.pl:192
39892 "This is unsafe and does not preserve the fidelity of strings in the original "
39893 "Registry for various reasons:"
39897 #: ../tools/virt-win-reg.pl:199
39899 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
39900 "other encodings will be corrupted by this transformation."
39904 #: ../tools/virt-win-reg.pl:204
39906 "Assumes that everything which has type 1 or 2 is really a string and that "
39907 "everything else is not a string, but the type field in real Registries is "
39912 #: ../tools/virt-win-reg.pl:210
39914 "Loses information about whether a zero codepoint followed the string in the "
39919 #: ../tools/virt-win-reg.pl:215
39921 "This all happens because the Registry itself contains no information about "
39922 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39926 #: ../tools/virt-win-reg.pl:219
39928 "You should only use this option for quick hacking and debugging of the "
39929 "Registry contents, and I<never> use it if the output is going to be passed "
39930 "into another program or stored in another Registry."
39934 #: ../tools/virt-win-reg.pl:556
39935 msgid "SUPPORTED SYSTEMS"
39939 #: ../tools/virt-win-reg.pl:558
39941 "The program currently supports Windows NT-derived guests starting with "
39942 "Windows XP through to at least Windows 7."
39946 #: ../tools/virt-win-reg.pl:561
39947 msgid "The following Registry keys are supported:"
39951 #: ../tools/virt-win-reg.pl:565
39952 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39956 #: ../tools/virt-win-reg.pl:567
39957 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39961 #: ../tools/virt-win-reg.pl:569
39962 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39966 #: ../tools/virt-win-reg.pl:571
39967 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39971 #: ../tools/virt-win-reg.pl:573
39972 msgid "C<HKEY_USERS\\.DEFAULT>"
39976 #: ../tools/virt-win-reg.pl:575
39977 msgid "C<HKEY_USERS\\I<SID>>"
39981 #: ../tools/virt-win-reg.pl:577
39982 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39986 #: ../tools/virt-win-reg.pl:579
39987 msgid "C<HKEY_USERS\\I<username>>"
39991 #: ../tools/virt-win-reg.pl:581
39993 "where I<username> is a local user name (this is a libguestfs extension)."
39997 #: ../tools/virt-win-reg.pl:585
39999 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40004 #: ../tools/virt-win-reg.pl:588
40006 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40007 "supported (there is no \"current user\")."
40011 #: ../tools/virt-win-reg.pl:591
40016 #: ../tools/virt-win-reg.pl:593
40018 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40019 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
40020 "style line endings. Since Windows regedit files are often in UTF-16LE with "
40021 "Windows-style line endings, you may need to reencode the whole file before "
40022 "or after processing."
40026 #: ../tools/virt-win-reg.pl:599
40028 "To reencode a file from Windows format to Linux (before processing it with "
40029 "the I<--merge> option), you would do something like this:"
40033 #: ../tools/virt-win-reg.pl:602
40036 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40041 #: ../tools/virt-win-reg.pl:604
40043 "To go in the opposite direction, after exporting and before sending the file "
40044 "to a Windows user, do something like this:"
40048 #: ../tools/virt-win-reg.pl:607
40051 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40056 #: ../tools/virt-win-reg.pl:609
40057 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40061 #: ../tools/virt-win-reg.pl:611
40063 "If you are unsure about the current encoding, use the L<file(1)> command. "
40064 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40065 "style (CRLF) line endings, like this:"
40069 #: ../tools/virt-win-reg.pl:615
40072 " $ file software.reg\n"
40073 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40074 " with CRLF line terminators\n"
40079 #: ../tools/virt-win-reg.pl:619
40080 msgid "This file would need conversion before you could I<--merge> it."
40084 #: ../tools/virt-win-reg.pl:621
40085 msgid "CurrentControlSet etc."
40089 #: ../tools/virt-win-reg.pl:623
40091 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40092 "Registry at the level of the hive file, and therefore you cannot modify "
40097 #: ../tools/virt-win-reg.pl:627
40099 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
40100 "circumstances it might refer to another control set. The way to find out is "
40101 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40105 #: ../tools/virt-win-reg.pl:631
40108 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40109 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40110 " \"Current\"=dword:00000001\n"
40111 " \"Default\"=dword:00000001\n"
40112 " \"Failed\"=dword:00000000\n"
40113 " \"LastKnownGood\"=dword:00000002\n"
40118 #: ../tools/virt-win-reg.pl:638
40119 msgid "\"Current\" is the one which Windows will choose when it boots."
40123 #: ../tools/virt-win-reg.pl:640
40125 "Similarly, other C<Current...> keys in the path may need to be replaced."
40129 #: ../tools/virt-win-reg.pl:643
40130 msgid "WINDOWS TIPS"
40134 #: ../tools/virt-win-reg.pl:645
40136 "Note that some of these tips modify the guest disk image. The guest I<must> "
40137 "be shut off, else you will get disk corruption."
40141 #: ../tools/virt-win-reg.pl:648
40142 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40146 #: ../tools/virt-win-reg.pl:650
40148 "Prepare a DOS batch script, VBScript or executable. Upload this using "
40149 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
40150 "is uploaded into C<C:\\>:"
40154 #: ../tools/virt-win-reg.pl:654
40157 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40162 #: ../tools/virt-win-reg.pl:656
40163 msgid "Prepare a regedit file containing the registry change:"
40167 #: ../tools/virt-win-reg.pl:658
40170 " cat > test.reg <<'EOF'\n"
40171 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40172 " \"Test\"=\"c:\\\\test.bat\"\n"
40178 #: ../tools/virt-win-reg.pl:663
40180 "In this example we use the key C<RunOnce> which means that the script will "
40181 "run precisely once when the first user logs in. If you want it to run every "
40182 "time a user logs in, replace C<RunOnce> with C<Run>."
40186 #: ../tools/virt-win-reg.pl:667
40187 msgid "Now update the registry:"
40191 #: ../tools/virt-win-reg.pl:669
40194 " virt-win-reg --merge WindowsGuest test.reg\n"
40199 #: ../tools/virt-win-reg.pl:671
40200 msgid "INSTALLING A SERVICE"
40204 #: ../tools/virt-win-reg.pl:673
40206 "This section assumes you are familiar with Windows services, and you either "
40207 "have a program which handles the Windows Service Control Protocol directly "
40208 "or you want to run any program using a service wrapper like SrvAny or the "
40213 #: ../tools/virt-win-reg.pl:678
40215 "First upload the program and optionally the service wrapper. In this case "
40216 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
40220 #: ../tools/virt-win-reg.pl:682
40223 " guestfish -i -d WindowsGuest <<EOF\n"
40224 " upload rhsrvany.exe /rhsrvany.exe\n"
40225 " upload test.exe /test.exe\n"
40231 #: ../tools/virt-win-reg.pl:687
40233 "Prepare a regedit file containing the registry changes. In this example, "
40234 "the first registry change is needed for the service itself or the service "
40235 "wrapper (if used). The second registry change is only needed because I am "
40236 "using the RHSrvAny service wrapper."
40240 #: ../tools/virt-win-reg.pl:692
40243 " cat > service.reg <<'EOF'\n"
40244 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40245 " \"Type\"=dword:00000010\n"
40246 " \"Start\"=dword:00000002\n"
40247 " \"ErrorControl\"=dword:00000001\n"
40248 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40249 " \"DisplayName\"=\"RHSrvAny\"\n"
40250 " \"ObjectName\"=\"NetworkService\"\n"
40255 #: ../tools/virt-win-reg.pl:701
40258 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40259 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40260 " \"PWD\"=\"c:\\\\Temp\"\n"
40266 #: ../tools/virt-win-reg.pl:712
40268 "For use of C<ControlSet001> see the section above in this manual page. You "
40269 "may need to adjust this according to the control set that is in use by the "
40274 #: ../tools/virt-win-reg.pl:718
40276 "C<\"ObjectName\"> controls the privileges that the service will have. An "
40277 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40278 "privileged account."
40282 #: ../tools/virt-win-reg.pl:724
40284 "For the meaning of the magic numbers, see this Microsoft KB article: "
40285 "L<http://support.microsoft.com/kb/103000>."
40289 #: ../tools/virt-win-reg.pl:729
40290 msgid "Update the registry:"
40294 #: ../tools/virt-win-reg.pl:731
40297 " virt-win-reg --merge WindowsGuest service.reg\n"
40302 #: ../tools/virt-win-reg.pl:735
40304 "Be careful when passing parameters containing C<\\> (backslash) in the "
40305 "shell. Usually you will have to use 'single quotes' or double backslashes "
40306 "(but not both) to protect them from the shell."
40310 #: ../tools/virt-win-reg.pl:739
40311 msgid "Paths and value names are case-insensitive."
40315 #: ../tools/virt-win-reg.pl:748
40317 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40318 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40319 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40323 #: ../tools/virt-win-reg.pl:766
40326 " export LIBGUESTFS_DEBUG=1\n"
40327 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40332 #: ../tools/virt-win-reg.pl:769
40334 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40338 #~ msgid "I<--help>"
40339 #~ msgstr "I<--help>"
40341 #~ msgid "EXIT CODE"
40342 #~ msgstr "КОД ВИХОДУ"
40345 #~ " g = guestfs_create ();\n"
40348 #~ " g = guestfs_create ();\n"
40351 #~ msgid "B<-a> | B<--all>"
40352 #~ msgstr "B<-a> | B<--all>"
40354 #~ msgid "B<-x> | B<--extract> | B<--download>"
40355 #~ msgstr "B<-x> | B<--extract> | B<--download>"