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-16 16:31+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:2745
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:568 ../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:570 ../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:575
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:577
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:580 ../ruby/examples/guestfs-ruby.pod:36
738 #: ../src/guestfs.pod:3119 ../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:601
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:603 ../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:605 ../ruby/examples/guestfs-ruby.pod:51
791 #: ../src/guestfs.pod:3195 ../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:607
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:609 ../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:614 ../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:619 ../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:4210
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:1555
2676 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:1569
2677 #: ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:1966
2678 #: ../fish/guestfish-actions.pod:1974 ../fish/guestfish-actions.pod:1981
2679 #: ../fish/guestfish-actions.pod:1988 ../fish/guestfish.pod:445
2680 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2681 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2682 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2683 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2684 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:15
2685 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:588
2686 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2687 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1667
2688 #: ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675
2689 #: ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687
2690 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695
2691 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709
2692 #: ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851
2693 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2694 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926
2695 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935
2696 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2346
2697 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2886
2698 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:2900
2699 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2914
2700 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2701 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2702 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2703 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2704 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2705 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2706 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2707 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
2708 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
2709 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
2710 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2513
2711 #: ../src/guestfs.pod:2519 ../src/guestfs.pod:2524 ../src/guestfs.pod:2530
2712 #: ../src/guestfs.pod:2911 ../src/guestfs.pod:2916 ../src/guestfs.pod:2920
2713 #: ../src/guestfs.pod:2924 ../src/guestfs.pod:2928 ../src/guestfs.pod:2942
2714 #: ../src/guestfs.pod:2947 ../src/guestfs.pod:3172 ../src/guestfs.pod:3176
2715 #: ../src/guestfs.pod:3180 ../src/guestfs.pod:3184
2716 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2717 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2718 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2723 #: ../df/virt-df.pod:150
2725 "If you think an untrusted guest might actively try to exploit the libguestfs "
2726 "appliance kernel, then this prevents one guest from interfering with the "
2727 "stats printed for another guest."
2731 #: ../df/virt-df.pod:156
2733 "If the kernel has a bug which stops it from accessing a filesystem in one "
2734 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2735 "and report stats for further guests."
2739 #: ../df/virt-df.pod:165
2741 "Print UUIDs instead of names. This is useful for following a guest even "
2742 "when the guest is migrated or renamed, or when two guests happen to have the "
2747 #: ../df/virt-df.pod:169
2749 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
2750 "images, we still print the disk image name even when this option is "
2755 #: ../df/virt-df.pod:229
2757 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2762 #: ../edit/virt-edit.pod:5
2763 msgid "virt-edit - Edit a file in a virtual machine"
2767 #: ../edit/virt-edit.pod:9
2770 #| " virt-list-partitions [--options] domname\n"
2773 " virt-edit [--options] -d domname file [file ...]\n"
2776 " virt-list-partitions [--параметри] назва_домену\n"
2780 #: ../edit/virt-edit.pod:11
2783 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2786 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2789 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2793 #: ../edit/virt-edit.pod:13
2796 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2801 #: ../edit/virt-edit.pod:17
2804 " virt-edit domname file\n"
2809 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2812 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2815 " virt-edit disk.img [disk.img ...] file\n"
2818 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2822 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2823 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2824 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2825 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2827 msgstr "ПОПЕРЕДЖЕННЯ"
2830 #: ../edit/virt-edit.pod:23
2832 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
2833 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
2834 "doing this, but doesn't catch all cases."
2838 #: ../edit/virt-edit.pod:29
2840 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2841 "exists in the named virtual machine (or disk image)."
2845 #: ../edit/virt-edit.pod:32
2847 "Multiple filenames can be given, in which case they are each edited in "
2848 "turn. Each filename must be a full path, starting at the root directory "
2849 "(starting with '/')."
2853 #: ../edit/virt-edit.pod:36
2854 msgid "If you want to just view a file, use L<virt-cat(1)>."
2858 #: ../edit/virt-edit.pod:38
2860 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2861 "USING GUESTFISH> below)."
2865 #: ../edit/virt-edit.pod:41
2867 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
2868 "that and much more."
2872 #: ../edit/virt-edit.pod:46
2873 msgid "Edit the named files interactively:"
2877 #: ../edit/virt-edit.pod:48
2880 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2885 #: ../edit/virt-edit.pod:50
2888 " virt-edit -d mydomain /etc/passwd\n"
2893 #: ../edit/virt-edit.pod:52
2894 msgid "For Windows guests, some Windows paths are understood:"
2898 #: ../edit/virt-edit.pod:54
2901 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2906 #: ../edit/virt-edit.pod:56
2908 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2909 "INTERACTIVE EDITING> below). To change the init default level to 5:"
2913 #: ../edit/virt-edit.pod:60
2916 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2921 #: ../edit/virt-edit.pod:81
2922 msgid "B<-b> extension"
2926 #: ../edit/virt-edit.pod:83
2927 msgid "B<--backup> extension"
2931 #: ../edit/virt-edit.pod:85
2933 "Create a backup of the original file I<in the guest disk image>. The backup "
2934 "has the original filename with C<extension> added."
2938 #: ../edit/virt-edit.pod:88
2940 "Usually the first character of C<extension> would be a dot C<.> so you would "
2945 #: ../edit/virt-edit.pod:91
2948 " virt-edit -b .orig [etc]\n"
2953 #: ../edit/virt-edit.pod:93
2954 msgid "By default, no backup file is made."
2958 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2959 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2960 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2961 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2963 msgstr "B<-c адреса>"
2966 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2967 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2968 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2969 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2970 msgid "B<--connect URI>"
2971 msgstr "B<--connect адреса>"
2974 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2975 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2976 #: ../tools/virt-win-reg.pl:135
2978 "If you specify guest block devices directly, then libvirt is not used at all."
2982 #: ../edit/virt-edit.pod:114
2984 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2985 "off so you cannot see what you are typing. If you are not worried about "
2986 "Tempest attacks and there is no one else in the room you can specify this "
2987 "flag to see what you are typing."
2991 #: ../edit/virt-edit.pod:119
2996 #: ../edit/virt-edit.pod:121
2998 #| msgid "B<--help>"
2999 msgid "B<--expr> EXPR"
3003 #: ../edit/virt-edit.pod:123
3005 "Instead of launching the external editor, non-interactively apply the Perl "
3006 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
3011 #: ../edit/virt-edit.pod:127
3013 "Be careful to properly quote the expression to prevent it from being altered "
3018 #: ../edit/virt-edit.pod:130
3019 msgid "Note that this option is only available when Perl 5 is installed."
3023 #: ../edit/virt-edit.pod:132
3025 #| msgid "B<--format=raw|qcow2|..>"
3026 msgid "B<--format> raw|qcow2|..."
3027 msgstr "B<--format=raw|qcow2|..>"
3030 #: ../edit/virt-edit.pod:143
3033 #| " guestfish --format=raw -a disk.img\n"
3036 " virt-edit --format=raw -a disk.img file\n"
3039 " guestfish --format=raw -a disk.img\n"
3043 #: ../edit/virt-edit.pod:147
3046 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3049 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3052 " guestfish --format=raw -a disk.img --format -a another.img\n"
3056 #: ../edit/virt-edit.pod:181
3057 msgid "Previous versions of virt-edit allowed you to write either:"
3061 #: ../edit/virt-edit.pod:187
3064 #| " edit filename\n"
3067 " virt-edit guestname file\n"
3070 " edit назва_файла\n"
3074 #: ../edit/virt-edit.pod:195
3075 msgid "NON-INTERACTIVE EDITING"
3079 #: ../edit/virt-edit.pod:197
3081 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3082 "administrator can interactively edit the file."
3086 #: ../edit/virt-edit.pod:200
3088 "There are two ways also to use C<virt-edit> from scripts in order to make "
3089 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
3090 "like this, it's less error-prone to write scripts directly using the "
3091 "libguestfs API and Augeas for configuration file editing.)"
3095 #: ../edit/virt-edit.pod:206
3097 "The first method is to temporarily set C<$EDITOR> to any script or program "
3098 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
3099 "update C<tmpfile> in place however it likes."
3103 #: ../edit/virt-edit.pod:210
3105 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3106 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
3107 "instances of C<foo> with C<bar> in a file:"
3111 #: ../edit/virt-edit.pod:214
3114 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3119 #: ../edit/virt-edit.pod:216
3121 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
3122 "For example to delete root's password you could do:"
3126 #: ../edit/virt-edit.pod:219
3129 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3134 #: ../edit/virt-edit.pod:221
3136 "What really happens is that the snippet is evaluated as a Perl expression "
3137 "for each line of the file. The line, including the final C<\\n>, is passed "
3138 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3142 #: ../edit/virt-edit.pod:226
3144 "To delete a line, set C<$_> to the empty string. For example, to delete the "
3145 "C<apache> user account from the password file you can do:"
3149 #: ../edit/virt-edit.pod:229
3152 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3157 #: ../edit/virt-edit.pod:231
3159 "To insert a line, prepend or append it to C<$_>. However appending lines to "
3160 "the end of the file is rather difficult this way since there is no concept "
3161 "of \"last line of the file\" - your expression just doesn't get called "
3162 "again. You might want to use the first method (setting C<$EDITOR>) if you "
3167 #: ../edit/virt-edit.pod:237
3169 "The variable C<$lineno> contains the current line number. As is "
3170 "traditional, the first line in the file is number C<1>."
3174 #: ../edit/virt-edit.pod:240
3176 "The return value from the expression is ignored, but the expression may call "
3177 "C<die> in order to abort the whole program, leaving the original file "
3182 #: ../edit/virt-edit.pod:244
3184 "Remember when matching the end of a line that C<$_> may contain the final C<"
3185 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3186 "newline then neither of these. Thus to match or substitute some text at the "
3187 "end of a line, use this regular expression:"
3191 #: ../edit/virt-edit.pod:249
3194 " /some text(\\r?\\n)?$/\n"
3199 #: ../edit/virt-edit.pod:251
3201 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3202 "$_> itself (since that would remove all newlines from the file):"
3206 #: ../edit/virt-edit.pod:255
3209 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3214 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3215 msgid "WINDOWS PATHS"
3219 #: ../edit/virt-edit.pod:259
3221 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3222 "paths (eg. C<E:\\foo\\bar.txt>)."
3226 #: ../edit/virt-edit.pod:262
3227 msgid "If and only if the guest is running Windows then:"
3231 #: ../edit/virt-edit.pod:268
3233 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3234 "to the correct filesystem."
3238 #: ../edit/virt-edit.pod:273
3240 "Any backslash (C<\\>) characters in the path are replaced with forward "
3241 "slashes so that libguestfs can process it."
3245 #: ../edit/virt-edit.pod:278
3247 "The path is resolved case insensitively to locate the file that should be "
3252 #: ../edit/virt-edit.pod:283
3253 msgid "There are some known shortcomings:"
3257 #: ../edit/virt-edit.pod:289
3258 msgid "Some NTFS symbolic links may not be followed correctly."
3262 #: ../edit/virt-edit.pod:293
3263 msgid "NTFS junction points that cross filesystems are not followed."
3267 #: ../edit/virt-edit.pod:299
3269 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3270 "C<virt-edit> doesn't work."
3274 #: ../edit/virt-edit.pod:302
3275 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3279 #: ../edit/virt-edit.pod:304
3282 #| " guestfish --ro -d myguest -i\n"
3285 " guestfish --rw -i -d domname edit /file\n"
3288 " guestfish --ro -d myguest -i\n"
3292 #: ../edit/virt-edit.pod:306
3294 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3299 #: ../edit/virt-edit.pod:309
3301 "The command above uses libguestfs's guest inspection feature and so does not "
3302 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3303 "disk images that don't contain guests. To edit a file on a disk image "
3308 #: ../edit/virt-edit.pod:314
3311 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3314 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3317 " guestfish --format=raw -a disk.img --format -a another.img\n"
3321 #: ../edit/virt-edit.pod:316
3323 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3324 "the disk image to edit, and C</file> is the full path to the file."
3328 #: ../edit/virt-edit.pod:320
3330 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3331 "C<write> or C<upload> instead:"
3335 #: ../edit/virt-edit.pod:323
3338 #| " guestfish --ro -d myguest -i\n"
3341 " guestfish --rw -i -d domname touch /newfile\n"
3344 " guestfish --ro -d myguest -i\n"
3348 #: ../edit/virt-edit.pod:325
3351 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3356 #: ../edit/virt-edit.pod:327
3359 " guestfish --rw -i -d domname upload localfile /newfile\n"
3364 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3365 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:3058
3366 #: ../test-tool/libguestfs-test-tool.pod:95
3367 msgid "ENVIRONMENT VARIABLES"
3368 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3371 #: ../edit/virt-edit.pod:333
3378 #: ../edit/virt-edit.pod:335
3380 "If set, this string is used as the editor. It may contain arguments, eg. C<"
3385 #: ../edit/virt-edit.pod:338
3386 msgid "If not set, C<vi> is used."
3390 #: ../edit/virt-edit.pod:356
3393 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3394 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3395 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3397 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3398 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3399 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3401 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3402 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3403 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3406 #: ../examples/guestfs-examples.pod:5
3407 msgid "guestfs-examples - Examples of using libguestfs from C"
3411 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3414 " #include <guestfs.h>\n"
3417 " #include <guestfs.h>\n"
3421 #: ../examples/guestfs-examples.pod:11
3424 " guestfs_h *g = guestfs_create ();\n"
3425 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3426 " guestfs_launch (g);\n"
3431 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3434 " cc prog.c -o prog -lguestfs\n"
3436 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3439 " cc prog.c -o prog -lguestfs\n"
3441 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3445 #: ../examples/guestfs-examples.pod:21
3447 "This manual page contains examples of calling libguestfs from the C "
3448 "programming language. If you are not familiar with using libguestfs, you "
3449 "also need to read L<guestfs(3)>."
3453 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3454 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3455 #: ../python/examples/guestfs-python.pod:34
3456 #: ../ruby/examples/guestfs-ruby.pod:28
3457 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3461 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3462 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3463 #: ../python/examples/guestfs-python.pod:36
3464 #: ../ruby/examples/guestfs-ruby.pod:30
3471 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3472 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3473 #: ../python/examples/guestfs-python.pod:38
3474 #: ../ruby/examples/guestfs-ruby.pod:32
3475 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3479 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3480 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3481 #: ../python/examples/guestfs-python.pod:40
3482 #: ../ruby/examples/guestfs-ruby.pod:34
3489 #: ../examples/guestfs-examples.pod:35
3492 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3493 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3494 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3496 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3497 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3500 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3501 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3502 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3505 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3506 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3507 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3508 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3509 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3510 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3511 #: ../python/examples/guestfs-python.pod:53
3512 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3191
3513 #: ../test-tool/libguestfs-test-tool.pod:106
3518 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3519 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3520 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3521 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3522 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3523 #: ../perl/examples/guestfs-perl.pod:53
3524 #: ../python/examples/guestfs-python.pod:55
3525 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3193
3526 #: ../test-tool/libguestfs-test-tool.pod:108
3527 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3531 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3532 #: ../python/examples/guestfs-python.pod:59
3533 #: ../ruby/examples/guestfs-ruby.pod:53
3535 #| msgid "Copyright (C) 2009 Red Hat Inc."
3536 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3537 msgstr "© Red Hat Inc., 2009"
3540 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3541 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3542 #: ../perl/examples/guestfs-perl.pod:59
3543 #: ../python/examples/guestfs-python.pod:61
3544 #: ../ruby/examples/guestfs-ruby.pod:55
3546 "The examples in this manual page may be freely copied, modified and "
3547 "distributed without any restrictions."
3551 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3552 #: ../java/examples/guestfs-java.pod:68
3553 #: ../ocaml/examples/guestfs-ocaml.pod:101
3554 #: ../perl/examples/guestfs-perl.pod:62
3555 #: ../python/examples/guestfs-python.pod:64
3556 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3200
3558 "This library is free software; you can redistribute it and/or modify it "
3559 "under the terms of the GNU Lesser General Public License as published by the "
3560 "Free Software Foundation; either version 2 of the License, or (at your "
3561 "option) any later version."
3565 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3566 #: ../java/examples/guestfs-java.pod:73
3567 #: ../ocaml/examples/guestfs-ocaml.pod:106
3568 #: ../perl/examples/guestfs-perl.pod:67
3569 #: ../python/examples/guestfs-python.pod:69
3570 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3205
3572 "This library is distributed in the hope that it will be useful, but WITHOUT "
3573 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3574 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
3579 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3580 #: ../java/examples/guestfs-java.pod:78
3581 #: ../ocaml/examples/guestfs-ocaml.pod:111
3582 #: ../perl/examples/guestfs-perl.pod:72
3583 #: ../python/examples/guestfs-python.pod:74
3584 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3210
3586 "You should have received a copy of the GNU Lesser General Public License "
3587 "along with this library; if not, write to the Free Software Foundation, "
3588 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3592 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3597 #: ../examples/guestfs-recipes.pod:5
3599 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3600 "here. The only way which works for both sorts of output is to just write "
3601 "the URL directly. Do NOT use L<...> for URLs."
3605 #: ../examples/guestfs-recipes.pod:9
3607 "We break with tradition here and don't use ALL CAPS for the section "
3608 "headings, as this makes them much easier to read."
3612 #: ../examples/guestfs-recipes.pod:16
3613 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3617 #: ../examples/guestfs-recipes.pod:20
3619 "This page contains recipes for and links to things you can do using "
3620 "libguestfs, L<guestfish(1)> and the virt tools."
3624 #: ../examples/guestfs-recipes.pod:23
3625 msgid "Audit a virtual machine for setuid files"
3629 #: ../examples/guestfs-recipes.pod:25
3631 "The link below contains a small program which can be used to audit a Linux "
3632 "virtual machine to see what setuid and setgid files it contains."
3636 #: ../examples/guestfs-recipes.pod:28
3638 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3643 #: ../examples/guestfs-recipes.pod:30
3644 msgid "Change the background image in a Windows XP VM"
3648 #: ../examples/guestfs-recipes.pod:32
3650 "The links below explain how to use L<guestfish(1)> to change the background "
3651 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
3652 "be substantially different for each version of Windows."
3656 #: ../examples/guestfs-recipes.pod:37
3658 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3659 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3663 #: ../examples/guestfs-recipes.pod:40
3664 msgid "Cloning a virtual machine (Linux)"
3668 #: ../examples/guestfs-recipes.pod:42
3670 "The guestfish technique described in the link below works well for most "
3671 "Linux VMs. Depending on the Linux distro you may need to change the paths "
3676 #: ../examples/guestfs-recipes.pod:46
3678 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3683 #: ../examples/guestfs-recipes.pod:48
3685 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
3690 #: ../examples/guestfs-recipes.pod:51
3691 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3695 #: ../examples/guestfs-recipes.pod:53
3696 msgid "Cloning a virtual machine (Windows)"
3700 #: ../examples/guestfs-recipes.pod:55
3702 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3703 "straightforward. Currently there is code in the Aeolus Oz project which "
3704 "does this (using libguestfs). As part of our review of the virt-clone tool, "
3705 "we may add sysprepping ability."
3709 #: ../examples/guestfs-recipes.pod:60
3711 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3712 "list/2011-May/msg00019.html"
3716 #: ../examples/guestfs-recipes.pod:63
3717 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3721 #: ../examples/guestfs-recipes.pod:65
3722 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3726 #: ../examples/guestfs-recipes.pod:67
3729 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3734 #: ../examples/guestfs-recipes.pod:69
3735 msgid "To export just a subdirectory, eg. C</files>, do:"
3739 #: ../examples/guestfs-recipes.pod:71
3742 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3747 #: ../examples/guestfs-recipes.pod:73
3748 msgid "Create empty disk images"
3752 #: ../examples/guestfs-recipes.pod:75
3754 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
3755 "The useful guide below explains the options available."
3759 #: ../examples/guestfs-recipes.pod:78
3761 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3766 #: ../examples/guestfs-recipes.pod:80
3767 msgid "Dump raw filesystem content from inside a disk image or VM"
3771 #: ../examples/guestfs-recipes.pod:82
3773 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3774 "filesystem content from any filesystem in a disk image or a VM (even one "
3775 "which is encrypted or buried inside an LV):"
3779 #: ../examples/guestfs-recipes.pod:86
3782 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3785 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3788 " guestfish --format=raw -a disk.img --format -a another.img\n"
3792 #: ../examples/guestfs-recipes.pod:88
3795 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3800 #: ../examples/guestfs-recipes.pod:90
3801 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3805 #: ../examples/guestfs-recipes.pod:92
3806 msgid "Edit grub configuration in a VM"
3810 #: ../examples/guestfs-recipes.pod:94
3811 msgid "You can use this to:"
3815 #: ../examples/guestfs-recipes.pod:100
3816 msgid "Fix a virtual machine that does not boot."
3820 #: ../examples/guestfs-recipes.pod:104
3821 msgid "Change which kernel is used to boot the VM."
3825 #: ../examples/guestfs-recipes.pod:108
3826 msgid "Change kernel command line options."
3830 #: ../examples/guestfs-recipes.pod:112
3831 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3835 #: ../examples/guestfs-recipes.pod:114
3838 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3843 #: ../examples/guestfs-recipes.pod:116
3845 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3850 #: ../examples/guestfs-recipes.pod:119
3853 " virt-rescue -d BrokenGuest\n"
3858 #: ../examples/guestfs-recipes.pod:121
3859 msgid "Export any directory from a VM"
3863 #: ../examples/guestfs-recipes.pod:123
3865 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3869 #: ../examples/guestfs-recipes.pod:126
3872 #| " copy-out /home .\n"
3875 " virt-copy-out -d Guest /home .\n"
3878 " copy-out /home .\n"
3882 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3883 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1551
3884 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:11
3885 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335
3886 #: ../src/guestfs-actions.pod:2882 ../src/guestfs.pod:1639
3887 #: ../tools/virt-win-reg.pl:706
3892 #: ../examples/guestfs-recipes.pod:134
3894 "The final dot of the command is not a printing error. It means we want to "
3895 "copy out to the current directory."
3899 #: ../examples/guestfs-recipes.pod:139
3900 msgid "This creates a directory called C<home> under the current directory."
3904 #: ../examples/guestfs-recipes.pod:143
3906 "If the guest is a Windows guest then you can use drive letters and "
3907 "backslashes, but you must prefix the path with C<win:> and quote it to "
3908 "protect it from the shell, like this:"
3912 #: ../examples/guestfs-recipes.pod:147
3915 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3920 #: ../examples/guestfs-recipes.pod:149
3921 msgid "To get the output as a compressed tarball, do:"
3925 #: ../examples/guestfs-recipes.pod:151
3928 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3933 #: ../examples/guestfs-recipes.pod:153
3935 "Although it sounds tempting, this is usually not a reliable way to get a "
3936 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
3937 "org/FAQ.html#backup"
3941 #: ../examples/guestfs-recipes.pod:157
3942 msgid "Find out which user is using the most space"
3946 #: ../examples/guestfs-recipes.pod:159
3948 "This simple script examines a Linux guest to find out which user is using "
3949 "the most space in their home directory:"
3953 #: ../examples/guestfs-recipes.pod:162
3956 #| " #!/usr/bin/guestfish -f\n"
3962 " #!/usr/bin/guestfish -f\n"
3966 #: ../examples/guestfs-recipes.pod:164
3969 #| " set-qemu qemu\n"
3979 #: ../examples/guestfs-recipes.pod:166
3988 #: ../examples/guestfs-recipes.pod:169
3991 #| " guestfish --ro -d myguest -i\n"
3994 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3997 " guestfish --ro -d myguest -i\n"
4001 #: ../examples/guestfs-recipes.pod:171
4004 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4005 " echo -n \"$dir/$d\"\n"
4007 " guestfish --remote du \"$dir/$d\";\n"
4008 " done | sort -nr -k 2\n"
4013 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4016 " guestfish --remote exit\n"
4021 #: ../examples/guestfs-recipes.pod:179
4022 msgid "Get DHCP address from a VM"
4026 #: ../examples/guestfs-recipes.pod:181
4028 "The link below explains the many different possible techniques for getting "
4029 "the last assigned DHCP address of a virtual machine."
4033 #: ../examples/guestfs-recipes.pod:184
4035 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4036 "a-virtual-machine-disk-image/#content"
4040 #: ../examples/guestfs-recipes.pod:186
4042 "In the libguestfs source examples directory you will find the latest version "
4043 "of the C<virt-dhcp-address.c> program."
4047 #: ../examples/guestfs-recipes.pod:189
4048 msgid "Get the operating system product name string"
4052 #: ../examples/guestfs-recipes.pod:191
4053 msgid "Save the following script into a file called C<product-name.sh>:"
4057 #: ../examples/guestfs-recipes.pod:193
4060 #| " eval \"`guestfish --listen`\"\n"
4061 #| " guestfish --remote add-ro disk.img\n"
4062 #| " guestfish --remote run\n"
4063 #| " guestfish --remote lvs\n"
4068 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4069 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4070 " guestfish --remote inspect-get-product-name \"$root\"\n"
4071 " guestfish --remote exit\n"
4074 " eval \"`guestfish --listen`\"\n"
4075 " guestfish --remote add-ro disk.img\n"
4076 " guestfish --remote run\n"
4077 " guestfish --remote lvs\n"
4081 #: ../examples/guestfs-recipes.pod:200
4082 msgid "Make the script executable and run it on a named guest:"
4086 #: ../examples/guestfs-recipes.pod:202
4089 " # product-name.sh RHEL60x64\n"
4090 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4095 #: ../examples/guestfs-recipes.pod:205
4097 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4098 "C<xpath> command line tool or from your favourite programming language:"
4102 #: ../examples/guestfs-recipes.pod:209
4105 " # virt-inspector RHEL60x64 > xml\n"
4106 " # xpath '//product_name' < xml\n"
4109 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4114 #: ../examples/guestfs-recipes.pod:215
4115 msgid "Get the default boot kernel for a Linux VM"
4119 #: ../examples/guestfs-recipes.pod:217
4121 "The link below contains a program to print the default boot kernel for a "
4126 #: ../examples/guestfs-recipes.pod:220
4128 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4129 "kernel-for-a-vm/#content"
4133 #: ../examples/guestfs-recipes.pod:222
4135 "It uses Augeas, and the technique is generally applicable for many different "
4140 #: ../examples/guestfs-recipes.pod:229
4141 msgid "listing the user accounts in the guest"
4145 #: ../examples/guestfs-recipes.pod:233
4146 msgid "what repositories is it configured to use"
4150 #: ../examples/guestfs-recipes.pod:237
4151 msgid "what NTP servers does it connect to"
4155 #: ../examples/guestfs-recipes.pod:241
4156 msgid "what were the boot messages last time it booted"
4160 #: ../examples/guestfs-recipes.pod:245
4161 msgid "listing who was logged in recently"
4165 #: ../examples/guestfs-recipes.pod:249
4166 msgid "http://augeas.net/"
4170 #: ../examples/guestfs-recipes.pod:251
4171 msgid "Install RPMs in a guest"
4175 #: ../examples/guestfs-recipes.pod:253
4177 "The link below contains a method to install RPMs in a guest. In fact the "
4178 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4179 "installs them next time the guest is booted. You could use this technique "
4180 "to install vital security updates in an offline guest."
4184 #: ../examples/guestfs-recipes.pod:259
4186 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4190 #: ../examples/guestfs-recipes.pod:261
4191 msgid "List applications installed in a VM"
4195 #: ../examples/guestfs-recipes.pod:263
4196 msgid "Save the following to a file C<list-apps.sh>:"
4200 #: ../examples/guestfs-recipes.pod:265
4203 #| " eval \"`guestfish --listen`\"\n"
4204 #| " guestfish --remote add-ro disk.img\n"
4205 #| " guestfish --remote run\n"
4206 #| " guestfish --remote lvs\n"
4211 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4212 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4213 " guestfish --remote inspect-list-applications \"$root\"\n"
4214 " guestfish --remote exit\n"
4217 " eval \"`guestfish --listen`\"\n"
4218 " guestfish --remote add-ro disk.img\n"
4219 " guestfish --remote run\n"
4220 " guestfish --remote lvs\n"
4224 #: ../examples/guestfs-recipes.pod:272
4226 "Make the file executable and then you can run it on any named virtual "
4231 #: ../examples/guestfs-recipes.pod:275
4234 " # list-apps.sh WinGuest\n"
4236 " app_name: Mozilla Firefox (3.6.12)\n"
4237 " app_display_name: Mozilla Firefox (3.6.12)\n"
4239 " app_version: 3.6.12 (en-GB)\n"
4241 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4242 " app_trans_path:\n"
4243 " app_publisher: Mozilla\n"
4244 " app_url: http://www.mozilla.com/en-GB/\n"
4245 " app_source_package:\n"
4247 " app_description: Mozilla Firefox\n"
4250 " app_name: VLC media player\n"
4251 " app_display_name: VLC media player 1.1.5\n"
4253 " app_version: 1.1.5\n"
4255 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4256 " app_trans_path:\n"
4257 " app_publisher: VideoLAN\n"
4258 " app_url: http://www.videolan.org/\n"
4259 " app_source_package:\n"
4261 " app_description:\n"
4267 #: ../examples/guestfs-recipes.pod:305
4269 "If you want to run the script on disk images (instead of libvirt virtual "
4270 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4275 #: ../examples/guestfs-recipes.pod:309
4276 msgid "List files and directories in a VM"
4280 #: ../examples/guestfs-recipes.pod:311
4281 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4285 #: ../examples/guestfs-recipes.pod:313
4288 #| " guestfish --ro -d myguest -i\n"
4291 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4294 " guestfish --ro -d myguest -i\n"
4298 #: ../examples/guestfs-recipes.pod:315
4299 msgid "List services in a Windows VM"
4303 #: ../examples/guestfs-recipes.pod:317
4305 "The link below contains a script that can be used to list out the services "
4306 "from a Windows VM, and whether those services run at boot time or are loaded "
4311 #: ../examples/guestfs-recipes.pod:321
4313 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4318 #: ../examples/guestfs-recipes.pod:323
4319 msgid "Make a disk image sparse"
4323 #: ../examples/guestfs-recipes.pod:325
4325 "The link below contains some guides for making a disk image sparse (or "
4326 "reintroducing sparseness)."
4330 #: ../examples/guestfs-recipes.pod:328
4332 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4336 #: ../examples/guestfs-recipes.pod:330
4337 msgid "Monitor disk usage over time"
4341 #: ../examples/guestfs-recipes.pod:332
4343 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4344 "The link below contains a guide."
4348 #: ../examples/guestfs-recipes.pod:335
4349 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4353 #: ../examples/guestfs-recipes.pod:337
4354 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4358 #: ../examples/guestfs-recipes.pod:339
4360 "L<guestfish(1)> plus the tools described in the link below can be used to "
4361 "read out the Windows Event Log from any virtual machine running Windows "
4362 "Vista or a later version."
4366 #: ../examples/guestfs-recipes.pod:343
4368 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4369 "guestfish/#content"
4373 #: ../examples/guestfs-recipes.pod:345
4374 msgid "Remove root password (Linux)"
4378 #: ../examples/guestfs-recipes.pod:347
4380 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4381 "files. One use is to remove the root password from a Linux guest:"
4385 #: ../examples/guestfs-recipes.pod:350
4388 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4393 #: ../examples/guestfs-recipes.pod:352
4394 msgid "Remove Administrator password (Windows)"
4398 #: ../examples/guestfs-recipes.pod:354
4400 "The link below contains one technique for removing the Administrator "
4401 "password from a Windows VM, or to be more precise, it gives you a command "
4402 "prompt the next time you log in which you can use to bypass any security:"
4406 #: ../examples/guestfs-recipes.pod:359
4408 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4409 "administrator-password-with-guestfish/"
4413 #: ../examples/guestfs-recipes.pod:361
4414 msgid "Unpack a live CD"
4418 #: ../examples/guestfs-recipes.pod:363
4420 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4421 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
4422 "layers, as outlined in the guide below."
4426 #: ../examples/guestfs-recipes.pod:367
4428 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4433 #: ../examples/guestfs-recipes.pod:369
4434 msgid "Uploading and downloading files"
4438 #: ../examples/guestfs-recipes.pod:371
4440 "The link below contains general tips on uploading (copying in) and "
4441 "downloading (copying out) files from VMs."
4445 #: ../examples/guestfs-recipes.pod:374
4447 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4451 #: ../examples/guestfs-recipes.pod:376
4452 msgid "Use libguestfs tools on VMware ESX guests"
4456 #: ../examples/guestfs-recipes.pod:378
4458 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4459 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4463 #: ../examples/guestfs-recipes.pod:382
4465 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4470 #: ../examples/guestfs-recipes.pod:386
4473 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4474 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4475 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4477 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4478 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4479 "(3)>, L<http://libguestfs.org/>."
4481 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4482 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4483 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4486 #: ../examples/guestfs-recipes.pod:402
4488 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4489 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4490 msgstr "© Red Hat Inc., 2009–2010"
4493 #: ../fish/guestfish-actions.pod:1
4498 #: ../fish/guestfish-actions.pod:3
4501 " add-cdrom filename\n"
4506 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
4507 msgid "This function adds a virtual CD-ROM disk image to the guest."
4511 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
4512 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4516 #: ../fish/guestfish-actions.pod:15
4518 "This call checks for the existence of C<filename>. This stops you from "
4519 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4520 "and C<http:> URLs. To specify those, use the general L</config> call "
4525 #: ../fish/guestfish-actions.pod:22
4527 "If you just want to add an ISO file (often you use this as an efficient way "
4528 "to transfer large files into the guest), then you should probably use L</add-"
4529 "drive-ro> instead."
4533 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4534 #: ../fish/guestfish-actions.pod:177
4536 "This function is deprecated. In new code, use the L</add_drive_opts> call "
4541 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4542 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4543 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4544 #: ../fish/guestfish-actions.pod:3112 ../fish/guestfish-actions.pod:3319
4545 #: ../fish/guestfish-actions.pod:3433 ../fish/guestfish-actions.pod:3481
4546 #: ../fish/guestfish-actions.pod:4382 ../fish/guestfish-actions.pod:4405
4547 #: ../fish/guestfish-actions.pod:4427 ../fish/guestfish-actions.pod:4465
4548 #: ../fish/guestfish-actions.pod:5114 ../fish/guestfish-actions.pod:5220
4549 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4550 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4551 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4552 #: ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4974
4553 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5282
4554 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6601
4555 #: ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6693
4556 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7741
4557 #: ../src/guestfs-actions.pod:7919
4559 "Deprecated functions will not be removed from the API, but the fact that "
4560 "they are deprecated indicates that there are problems with correct use of "
4565 #: ../fish/guestfish-actions.pod:35
4570 #: ../fish/guestfish-actions.pod:37
4575 #: ../fish/guestfish-actions.pod:39
4578 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4583 #: ../fish/guestfish-actions.pod:41
4585 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4586 "It works by connecting to libvirt, requesting the domain and domain XML from "
4587 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4591 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4593 "The number of disks added is returned. This operation is atomic: if an "
4594 "error is returned, then no disks are added."
4598 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4600 "This function does some minimal checks to make sure the libvirt domain is "
4601 "not running (unless C<readonly> is true). In a future version we will try "
4602 "to acquire the libvirt lock on each disk."
4606 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4608 "Disks must be accessible locally. This often means that adding disks from a "
4609 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4610 "unless those disks are accessible via the same device path locally too."
4614 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4616 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4617 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4618 "libvirt URI (or one set through an environment variable, see the libvirt "
4619 "documentation for full details)."
4623 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4625 "The optional C<live> flag controls whether this call will try to connect to "
4626 "a running virtual machine C<guestfsd> process if it sees a suitable "
4627 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4628 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4629 "DAEMONS> for more information."
4633 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4635 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4636 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4637 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4642 #: ../fish/guestfish-actions.pod:76
4644 "The other optional parameters are passed directly through to L</add-drive-"
4649 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4650 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1995
4651 #: ../fish/guestfish-actions.pod:3161 ../fish/guestfish-actions.pod:3334
4652 #: ../fish/guestfish-actions.pod:3469
4654 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4658 #: ../fish/guestfish-actions.pod:81
4663 #: ../fish/guestfish-actions.pod:83
4666 " add-drive filename\n"
4669 " add-drive назва_файла\n"
4673 #: ../fish/guestfish-actions.pod:85
4675 "This function is the equivalent of calling L</add-drive-opts> with no "
4676 "optional parameters, so the disk is added writable, with the format being "
4677 "detected automatically."
4681 #: ../fish/guestfish-actions.pod:89
4683 "Automatic detection of the format opens you up to a potential security hole "
4684 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4685 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4686 "you should think about replacing calls to this function with calls to L</add-"
4687 "drive-opts>, and specifying the format."
4691 #: ../fish/guestfish-actions.pod:96
4692 msgid "add-drive-opts"
4693 msgstr "add-drive-opts"
4696 #: ../fish/guestfish-actions.pod:98
4701 #: ../fish/guestfish-actions.pod:100
4704 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4709 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4711 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4712 "The first time you call this function, the disk appears as C</dev/sda>, the "
4713 "second time as C</dev/sdb>, and so on."
4717 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4719 "You don't necessarily need to be root when using libguestfs. However you "
4720 "obviously do need sufficient permissions to access the filename for whatever "
4721 "operations you want to perform (ie. read access if you just want to read the "
4722 "image or write access if you want to modify the image)."
4726 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4727 msgid "This call checks that C<filename> exists."
4731 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3123
4732 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4682
4733 msgid "The optional arguments are:"
4737 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4739 msgstr "C<readonly>"
4742 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4744 "If true then the image is treated as read-only. Writes are still allowed, "
4745 "but they are stored in a temporary snapshot overlay which is discarded at "
4746 "the end. The disk that you add is not modified."
4750 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4755 #: ../fish/guestfish-actions.pod:127
4757 "This forces the image format. If you omit this (or use L</add-drive> or L</"
4758 "add-drive-ro>) then the format is automatically detected. Possible formats "
4759 "include C<raw> and C<qcow2>."
4763 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4765 "Automatic detection of the format opens you up to a potential security hole "
4766 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4767 "RHBZ#642934. Specifying the format closes this security hole."
4771 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4776 #: ../fish/guestfish-actions.pod:138
4778 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4779 "add-drive-with-if> call (q.v.)"
4783 #: ../fish/guestfish-actions.pod:145
4784 msgid "add-drive-ro"
4785 msgstr "add-drive-ro"
4788 #: ../fish/guestfish-actions.pod:147
4793 #: ../fish/guestfish-actions.pod:149
4796 " add-drive-ro filename\n"
4801 #: ../fish/guestfish-actions.pod:151
4803 "This function is the equivalent of calling L</add-drive-opts> with the "
4804 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4805 "is added read-only, with the format being detected automatically."
4809 #: ../fish/guestfish-actions.pod:156
4810 msgid "add-drive-ro-with-if"
4814 #: ../fish/guestfish-actions.pod:158
4817 " add-drive-ro-with-if filename iface\n"
4822 #: ../fish/guestfish-actions.pod:160
4824 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4825 "interface emulation to use at run time."
4829 #: ../fish/guestfish-actions.pod:170
4830 msgid "add-drive-with-if"
4834 #: ../fish/guestfish-actions.pod:172
4837 " add-drive-with-if filename iface\n"
4842 #: ../fish/guestfish-actions.pod:174
4844 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4845 "interface emulation to use at run time."
4849 #: ../fish/guestfish-actions.pod:184
4854 #: ../fish/guestfish-actions.pod:186
4857 " aug-clear augpath\n"
4862 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4864 "Set the value associated with C<path> to C<NULL>. This is the same as the "
4865 "L<augtool(1)> C<clear> command."
4869 #: ../fish/guestfish-actions.pod:191
4874 #: ../fish/guestfish-actions.pod:193
4882 #: ../fish/guestfish-actions.pod:195
4884 "Close the current Augeas handle and free up any resources used by it. After "
4885 "calling this, you have to call L</aug-init> again before you can use any "
4886 "other Augeas functions."
4890 #: ../fish/guestfish-actions.pod:200
4895 #: ../fish/guestfish-actions.pod:202
4898 " aug-defnode name expr val\n"
4903 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4905 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4909 #: ../fish/guestfish-actions.pod:207
4911 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4912 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
4913 "containing that single node."
4917 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4919 "On success this returns a pair containing the number of nodes in the "
4920 "nodeset, and a boolean flag if a node was created."
4924 #: ../fish/guestfish-actions.pod:215
4929 #: ../fish/guestfish-actions.pod:217
4932 " aug-defvar name expr\n"
4937 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4939 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4940 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
4944 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4946 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4947 "evaluates to something which is not a nodeset."
4951 #: ../fish/guestfish-actions.pod:226
4956 #: ../fish/guestfish-actions.pod:228
4959 " aug-get augpath\n"
4964 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4966 "Look up the value associated with C<path>. If C<path> matches exactly one "
4967 "node, the C<value> is returned."
4971 #: ../fish/guestfish-actions.pod:233
4976 #: ../fish/guestfish-actions.pod:235
4979 " aug-init root flags\n"
4984 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4986 "Create a new Augeas handle for editing configuration files. If there was "
4987 "any previous Augeas handle associated with this guestfs session, then it is "
4992 #: ../fish/guestfish-actions.pod:241
4993 msgid "You must call this before using any other L</aug-*> commands."
4997 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4999 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
5003 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5005 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5006 "logical I<or> of the following integers:"
5010 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5011 msgid "C<AUG_SAVE_BACKUP> = 1"
5012 msgstr "C<AUG_SAVE_BACKUP> = 1"
5015 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5016 msgid "Keep the original file with a C<.augsave> extension."
5020 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5021 msgid "C<AUG_SAVE_NEWFILE> = 2"
5022 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5025 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5027 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5028 "original. Overrides C<AUG_SAVE_BACKUP>."
5032 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5033 msgid "C<AUG_TYPE_CHECK> = 4"
5034 msgstr "C<AUG_TYPE_CHECK> = 4"
5037 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5038 msgid "Typecheck lenses."
5042 #: ../fish/guestfish-actions.pod:266
5044 "This option is only useful when debugging Augeas lenses. Use of this option "
5045 "may require additional memory for the libguestfs appliance. You may need to "
5046 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5050 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5051 msgid "C<AUG_NO_STDINC> = 8"
5052 msgstr "C<AUG_NO_STDINC> = 8"
5055 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5056 msgid "Do not use standard load path for modules."
5060 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5061 msgid "C<AUG_SAVE_NOOP> = 16"
5062 msgstr "C<AUG_SAVE_NOOP> = 16"
5065 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5066 msgid "Make save a no-op, just record what would have been changed."
5070 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5071 msgid "C<AUG_NO_LOAD> = 32"
5072 msgstr "C<AUG_NO_LOAD> = 32"
5075 #: ../fish/guestfish-actions.pod:281
5076 msgid "Do not load the tree in L</aug-init>."
5080 #: ../fish/guestfish-actions.pod:285
5081 msgid "To close the handle, you can call L</aug-close>."
5085 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5086 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5090 #: ../fish/guestfish-actions.pod:289
5095 #: ../fish/guestfish-actions.pod:291
5098 " aug-insert augpath label true|false\n"
5103 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5105 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5106 "or after C<path> (depending on the boolean flag C<before>)."
5110 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5112 "C<path> must match exactly one existing node in the tree, and C<label> must "
5113 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5117 #: ../fish/guestfish-actions.pod:301
5122 #: ../fish/guestfish-actions.pod:303
5130 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5131 msgid "Load files into the tree."
5132 msgstr "Завантажити файли до ієрархії."
5135 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5136 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5140 #: ../fish/guestfish-actions.pod:310
5145 #: ../fish/guestfish-actions.pod:312
5153 #: ../fish/guestfish-actions.pod:314
5155 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5156 "resulting nodes into alphabetical order."
5160 #: ../fish/guestfish-actions.pod:317
5165 #: ../fish/guestfish-actions.pod:319
5168 " aug-match augpath\n"
5173 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5175 "Returns a list of paths which match the path expression C<path>. The "
5176 "returned paths are sufficiently qualified so that they match exactly one "
5177 "node in the current tree."
5181 #: ../fish/guestfish-actions.pod:325
5186 #: ../fish/guestfish-actions.pod:327
5189 " aug-mv src dest\n"
5194 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5196 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5197 "C<dest> is overwritten if it exists."
5201 #: ../fish/guestfish-actions.pod:332
5206 #: ../fish/guestfish-actions.pod:334
5214 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5215 msgid "Remove C<path> and all of its children."
5219 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5220 msgid "On success this returns the number of entries which were removed."
5224 #: ../fish/guestfish-actions.pod:340
5229 #: ../fish/guestfish-actions.pod:342
5237 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5238 msgid "This writes all pending changes to disk."
5242 #: ../fish/guestfish-actions.pod:346
5244 "The flags which were passed to L</aug-init> affect exactly how files are "
5249 #: ../fish/guestfish-actions.pod:349
5254 #: ../fish/guestfish-actions.pod:351
5257 " aug-set augpath val\n"
5262 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5263 msgid "Set the value associated with C<path> to C<val>."
5267 #: ../fish/guestfish-actions.pod:355
5269 "In the Augeas API, it is possible to clear a node by setting the value to "
5270 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5271 "this call. Instead you must use the L</aug-clear> call."
5275 #: ../fish/guestfish-actions.pod:360
5280 #: ../fish/guestfish-actions.pod:362
5283 " available 'groups ...'\n"
5288 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5290 "This command is used to check the availability of some groups of "
5291 "functionality in the appliance, which not all builds of the libguestfs "
5292 "appliance will be able to provide."
5296 #: ../fish/guestfish-actions.pod:368
5298 "The libguestfs groups, and the functions that those groups correspond to, "
5299 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5300 "runtime by calling L</available-all-groups>."
5304 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5306 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5307 "\"]> would check for the availability of the Linux inotify functions and "
5308 "Augeas (configuration file editing) functions."
5312 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5313 msgid "The command returns no error if I<all> requested groups are available."
5317 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5319 "It fails with an error if one or more of the requested groups is unavailable "
5324 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5326 "If an unknown group name is included in the list of groups then an error is "
5331 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5333 msgstr "I<Нотатки:>"
5336 #: ../fish/guestfish-actions.pod:392
5337 msgid "You must call L</launch> before calling this function."
5341 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5343 "The reason is because we don't know what groups are supported by the "
5344 "appliance/daemon until it is running and can be queried."
5348 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5350 "If a group of functions is available, this does not necessarily mean that "
5351 "they will work. You still have to check for errors when calling individual "
5352 "API functions even if they are available."
5356 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5358 "It is usually the job of distro packagers to build complete functionality "
5359 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5360 "with all requirements satisfied, will support everything."
5364 #: ../fish/guestfish-actions.pod:414
5366 "This call was added in version C<1.0.80>. In previous versions of "
5367 "libguestfs all you could do would be to speculatively execute a command to "
5368 "find out if the daemon implemented it. See also L</version>."
5372 #: ../fish/guestfish-actions.pod:421
5373 msgid "available-all-groups"
5377 #: ../fish/guestfish-actions.pod:423
5380 " available-all-groups\n"
5385 #: ../fish/guestfish-actions.pod:425
5387 "This command returns a list of all optional groups that this daemon knows "
5388 "about. Note this returns both supported and unsupported groups. To find "
5389 "out which ones the daemon can actually support you have to call L</"
5390 "available> on each member of the returned list."
5394 #: ../fish/guestfish-actions.pod:431
5395 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5399 #: ../fish/guestfish-actions.pod:433
5404 #: ../fish/guestfish-actions.pod:435
5407 " base64-in (base64file|-) filename\n"
5412 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5414 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5418 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5419 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5420 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5421 #: ../fish/guestfish-actions.pod:4685 ../fish/guestfish-actions.pod:4697
5422 #: ../fish/guestfish-actions.pod:4708 ../fish/guestfish-actions.pod:4719
5423 #: ../fish/guestfish-actions.pod:4771 ../fish/guestfish-actions.pod:4780
5424 #: ../fish/guestfish-actions.pod:4834 ../fish/guestfish-actions.pod:4857
5425 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5429 #: ../fish/guestfish-actions.pod:442
5434 #: ../fish/guestfish-actions.pod:444
5437 " base64-out filename (base64file|-)\n"
5442 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5444 "This command downloads the contents of C<filename>, writing it out to local "
5445 "file C<base64file> encoded as base64."
5449 #: ../fish/guestfish-actions.pod:451
5450 msgid "blockdev-flushbufs"
5454 #: ../fish/guestfish-actions.pod:453
5457 " blockdev-flushbufs device\n"
5462 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5464 "This tells the kernel to flush internal buffers associated with C<device>."
5468 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5469 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5470 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5471 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5472 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5473 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5474 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5475 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5476 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5477 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5478 msgid "This uses the L<blockdev(8)> command."
5482 #: ../fish/guestfish-actions.pod:460
5483 msgid "blockdev-getbsz"
5487 #: ../fish/guestfish-actions.pod:462
5490 " blockdev-getbsz device\n"
5495 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5496 msgid "This returns the block size of a device."
5500 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5501 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5503 "(Note this is different from both I<size in blocks> and I<filesystem block "
5508 #: ../fish/guestfish-actions.pod:471
5509 msgid "blockdev-getro"
5513 #: ../fish/guestfish-actions.pod:473
5516 " blockdev-getro device\n"
5521 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5523 "Returns a boolean indicating if the block device is read-only (true if read-"
5524 "only, false if not)."
5528 #: ../fish/guestfish-actions.pod:480
5529 msgid "blockdev-getsize64"
5533 #: ../fish/guestfish-actions.pod:482
5536 " blockdev-getsize64 device\n"
5541 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5542 msgid "This returns the size of the device in bytes."
5546 #: ../fish/guestfish-actions.pod:486
5547 msgid "See also L</blockdev-getsz>."
5551 #: ../fish/guestfish-actions.pod:490
5552 msgid "blockdev-getss"
5556 #: ../fish/guestfish-actions.pod:492
5559 " blockdev-getss device\n"
5564 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5566 "This returns the size of sectors on a block device. Usually 512, but can be "
5567 "larger for modern devices."
5571 #: ../fish/guestfish-actions.pod:497
5573 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5577 #: ../fish/guestfish-actions.pod:502
5578 msgid "blockdev-getsz"
5582 #: ../fish/guestfish-actions.pod:504
5585 " blockdev-getsz device\n"
5590 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5592 "This returns the size of the device in units of 512-byte sectors (even if "
5593 "the sectorsize isn't 512 bytes ... weird)."
5597 #: ../fish/guestfish-actions.pod:509
5599 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5600 "blockdev-getsize64> for the more useful I<size in bytes>."
5604 #: ../fish/guestfish-actions.pod:515
5605 msgid "blockdev-rereadpt"
5609 #: ../fish/guestfish-actions.pod:517
5612 " blockdev-rereadpt device\n"
5617 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5618 msgid "Reread the partition table on C<device>."
5622 #: ../fish/guestfish-actions.pod:523
5623 msgid "blockdev-setbsz"
5627 #: ../fish/guestfish-actions.pod:525
5630 " blockdev-setbsz device blocksize\n"
5635 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5636 msgid "This sets the block size of a device."
5640 #: ../fish/guestfish-actions.pod:534
5641 msgid "blockdev-setro"
5645 #: ../fish/guestfish-actions.pod:536
5648 " blockdev-setro device\n"
5653 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5654 msgid "Sets the block device named C<device> to read-only."
5658 #: ../fish/guestfish-actions.pod:542
5659 msgid "blockdev-setrw"
5663 #: ../fish/guestfish-actions.pod:544
5666 " blockdev-setrw device\n"
5671 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5672 msgid "Sets the block device named C<device> to read-write."
5676 #: ../fish/guestfish-actions.pod:550
5677 msgid "btrfs-filesystem-resize"
5681 #: ../fish/guestfish-actions.pod:552
5684 " btrfs-filesystem-resize mountpoint [size:..]\n"
5689 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5690 msgid "This command resizes a btrfs filesystem."
5694 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5696 "Note that unlike other resize calls, the filesystem has to be mounted and "
5697 "the parameter is the mountpoint not the device (this is a requirement of "
5702 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3444
5703 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5216
5704 msgid "The optional parameters are:"
5708 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3448
5709 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5220
5714 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5716 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
5717 "resized to the maximum size."
5721 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5722 msgid "See also L<btrfs(8)>."
5726 #: ../fish/guestfish-actions.pod:575
5727 msgid "case-sensitive-path"
5731 #: ../fish/guestfish-actions.pod:577
5734 " case-sensitive-path path\n"
5739 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5741 "This can be used to resolve case insensitive paths on a filesystem which is "
5742 "case sensitive. The use case is to resolve paths which you have read from "
5743 "Windows configuration files or the Windows Registry, to the true path."
5747 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5749 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5750 "(and probably others), which is that although the underlying filesystem is "
5751 "case-insensitive, the driver exports the filesystem to Linux as case-"
5756 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5758 "One consequence of this is that special directories such as C<c:\\windows> "
5759 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5760 "precise details of how they were created. In Windows itself this would not "
5765 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5767 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5772 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5774 "This function resolves the true case of each element in the path and returns "
5775 "the case-sensitive path."
5779 #: ../fish/guestfish-actions.pod:601
5781 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
5782 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5783 "the directories were originally created under Windows)."
5787 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5788 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5792 #: ../fish/guestfish-actions.pod:609
5793 msgid "See also L</realpath>."
5797 #: ../fish/guestfish-actions.pod:611
5802 #: ../fish/guestfish-actions.pod:613
5812 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3864
5813 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5859
5814 msgid "Return the contents of the file named C<path>."
5818 #: ../fish/guestfish-actions.pod:617
5820 "Note that this function cannot correctly handle binary files (specifically, "
5821 "files containing C<\\0> character which is treated as end of string). For "
5822 "those you need to use the L</read-file> or L</download> functions which have "
5823 "a more complex interface."
5827 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5828 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5829 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5830 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5831 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5832 #: ../fish/guestfish-actions.pod:1591 ../fish/guestfish-actions.pod:1606
5833 #: ../fish/guestfish-actions.pod:1616 ../fish/guestfish-actions.pod:1635
5834 #: ../fish/guestfish-actions.pod:3734 ../fish/guestfish-actions.pod:3749
5835 #: ../fish/guestfish-actions.pod:3825 ../fish/guestfish-actions.pod:3842
5836 #: ../fish/guestfish-actions.pod:3857 ../fish/guestfish-actions.pod:4526
5837 #: ../fish/guestfish-actions.pod:4572 ../fish/guestfish-actions.pod:4657
5838 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:5078
5839 #: ../fish/guestfish-actions.pod:5090 ../fish/guestfish-actions.pod:5108
5840 #: ../fish/guestfish-actions.pod:5125 ../fish/guestfish-actions.pod:5135
5841 #: ../fish/guestfish-actions.pod:5192 ../fish/guestfish-actions.pod:5202
5842 #: ../fish/guestfish-actions.pod:5231 ../fish/guestfish-actions.pod:5241
5843 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5844 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5845 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5846 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5847 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5848 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2409
5849 #: ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2455
5850 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5667
5851 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5824
5852 #: ../src/guestfs-actions.pod:5848 ../src/guestfs-actions.pod:6799
5853 #: ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:7000
5854 #: ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:7689
5855 #: ../src/guestfs-actions.pod:7709 ../src/guestfs-actions.pod:7735
5856 #: ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7780
5857 #: ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7893
5858 #: ../src/guestfs-actions.pod:7939 ../src/guestfs-actions.pod:7958
5860 "Because of the message protocol, there is a transfer limit of somewhere "
5861 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
5865 #: ../fish/guestfish-actions.pod:625
5870 #: ../fish/guestfish-actions.pod:627
5873 " checksum csumtype path\n"
5878 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5880 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5884 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5886 "The type of checksum to compute is given by the C<csumtype> parameter which "
5887 "must have one of the following values:"
5891 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5896 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5898 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5903 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5908 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5909 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5913 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5918 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5919 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5923 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5928 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5929 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5933 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5938 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5939 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5943 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5948 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5949 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5953 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5958 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5959 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5963 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5964 msgid "The checksum is returned as a printable string."
5968 #: ../fish/guestfish-actions.pod:670
5969 msgid "To get the checksum for a device, use L</checksum-device>."
5973 #: ../fish/guestfish-actions.pod:672
5974 msgid "To get the checksums for many files, use L</checksums-out>."
5978 #: ../fish/guestfish-actions.pod:674
5979 msgid "checksum-device"
5980 msgstr "checksum-device"
5983 #: ../fish/guestfish-actions.pod:676
5986 " checksum-device csumtype device\n"
5991 #: ../fish/guestfish-actions.pod:678
5993 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5994 "device named C<device>. For the types of checksums supported see the L</"
5995 "checksum> command."
5999 #: ../fish/guestfish-actions.pod:682
6000 msgid "checksums-out"
6004 #: ../fish/guestfish-actions.pod:684
6007 " checksums-out csumtype directory (sumsfile|-)\n"
6012 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6014 "This command computes the checksums of all regular files in C<directory> and "
6015 "then emits a list of those checksums to the local output file C<sumsfile>."
6019 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6021 "This can be used for verifying the integrity of a virtual machine. However "
6022 "to be properly secure you should pay attention to the output of the checksum "
6023 "command (it uses the ones from GNU coreutils). In particular when the "
6024 "filename is not printable, coreutils uses a special backslash syntax. For "
6025 "more information, see the GNU coreutils info file."
6029 #: ../fish/guestfish-actions.pod:700
6034 #: ../fish/guestfish-actions.pod:702
6037 " chmod mode path\n"
6042 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6044 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6049 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6051 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6052 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6057 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3087
6058 #: ../fish/guestfish-actions.pod:3226 ../fish/guestfish-actions.pod:3236
6059 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:1064
6060 #: ../src/guestfs-actions.pod:4613 ../src/guestfs-actions.pod:4822
6061 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:4860
6062 msgid "The mode actually set is affected by the umask."
6066 #: ../fish/guestfish-actions.pod:713
6071 #: ../fish/guestfish-actions.pod:715
6074 " chown owner group path\n"
6079 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6080 msgid "Change the file owner to C<owner> and group to C<group>."
6084 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2522
6085 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3684
6087 "Only numeric uid and gid are supported. If you want to use names, you will "
6088 "need to locate and parse the password file yourself (Augeas support makes "
6089 "this relatively easy)."
6093 #: ../fish/guestfish-actions.pod:723
6098 #: ../fish/guestfish-actions.pod:725
6101 " command 'arguments ...'\n"
6106 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6108 "This call runs a command from the guest filesystem. The filesystem must be "
6109 "mounted, and must contain a compatible operating system (ie. something "
6110 "Linux, with the same or compatible processor architecture)."
6114 #: ../fish/guestfish-actions.pod:732
6116 "The single parameter is an argv-style list of arguments. The first element "
6117 "is the name of the program to run. Subsequent elements are parameters. The "
6118 "list must be non-empty (ie. must contain a program name). Note that the "
6119 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6123 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6124 msgid "The return value is anything printed to I<stdout> by the command."
6128 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6130 "If the command returns a non-zero exit status, then this function returns an "
6131 "error message. The error message string is the content of I<stderr> from "
6136 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6138 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6139 "bin>. If you require a program from another location, you should provide "
6140 "the full path in the first parameter."
6144 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6146 "Shared libraries and data files required by the program must be available on "
6147 "filesystems which are mounted in the correct places. It is the caller's "
6148 "responsibility to ensure all filesystems that are needed are mounted at the "
6153 #: ../fish/guestfish-actions.pod:760
6154 msgid "command-lines"
6158 #: ../fish/guestfish-actions.pod:762
6161 " command-lines 'arguments ...'\n"
6166 #: ../fish/guestfish-actions.pod:764
6168 "This is the same as L</command>, but splits the result into a list of lines."
6172 #: ../fish/guestfish-actions.pod:767
6173 msgid "See also: L</sh-lines>"
6177 #: ../fish/guestfish-actions.pod:772
6182 #: ../fish/guestfish-actions.pod:774
6185 " config qemuparam qemuvalue\n"
6190 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6192 "This can be used to add arbitrary qemu command line parameters of the form "
6193 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6194 "setting some parameters which would interfere with parameters that we use."
6198 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6199 msgid "The first character of C<param> string must be a C<-> (dash)."
6203 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6204 msgid "C<value> can be NULL."
6208 #: ../fish/guestfish-actions.pod:785
6213 #: ../fish/guestfish-actions.pod:787
6216 " copy-size src dest size\n"
6221 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6223 "This command copies exactly C<size> bytes from one source device or file "
6224 "C<src> to another destination device or file C<dest>."
6228 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6230 "Note this will fail if the source is too short or if the destination is not "
6235 #: ../fish/guestfish-actions.pod:795
6240 #: ../fish/guestfish-actions.pod:797
6248 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6250 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6251 "destination filename or destination directory."
6255 #: ../fish/guestfish-actions.pod:802
6260 #: ../fish/guestfish-actions.pod:804
6268 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6270 "This copies a file or directory from C<src> to C<dest> recursively using the "
6275 #: ../fish/guestfish-actions.pod:809
6280 #: ../fish/guestfish-actions.pod:811
6288 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6290 "This command copies from one source device or file C<src> to another "
6291 "destination device or file C<dest>. Normally you would use this to copy to "
6292 "or from a device or partition, for example to duplicate a filesystem."
6296 #: ../fish/guestfish-actions.pod:818
6298 "If the destination is a device, it must be as large or larger than the "
6299 "source file or device, otherwise the copy will fail. This command cannot do "
6300 "partial copies (see L</copy-size>)."
6304 #: ../fish/guestfish-actions.pod:822
6309 #: ../fish/guestfish-actions.pod:824
6319 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6320 msgid "This command runs the C<df> command to report disk space used."
6324 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6326 "This command is mostly useful for interactive sessions. It is I<not> "
6327 "intended that you try to parse the output string. Use L</statvfs> from "
6332 #: ../fish/guestfish-actions.pod:832
6337 #: ../fish/guestfish-actions.pod:834
6347 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6349 "This command runs the C<df -h> command to report disk space used in human-"
6354 #: ../fish/guestfish-actions.pod:843
6359 #: ../fish/guestfish-actions.pod:845
6369 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6371 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
6372 "This is sometimes useful for extended debugging of problems."
6376 #: ../fish/guestfish-actions.pod:851
6378 "Another way to get the same information is to enable verbose messages with "
6379 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6380 "before running the program."
6384 #: ../fish/guestfish-actions.pod:856
6389 #: ../fish/guestfish-actions.pod:858
6392 " download remotefilename (filename|-)\n"
6397 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6398 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6400 "Download file C<remotefilename> and save it as C<filename> on the local "
6405 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4830
6406 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7259
6407 msgid "C<filename> can also be a named pipe."
6411 #: ../fish/guestfish-actions.pod:865
6412 msgid "See also L</upload>, L</cat>."
6416 #: ../fish/guestfish-actions.pod:869
6417 msgid "download-offset"
6418 msgstr "download-offset"
6421 #: ../fish/guestfish-actions.pod:871
6424 " download-offset remotefilename (filename|-) offset size\n"
6429 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6431 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6432 "region must be within the file or device)."
6436 #: ../fish/guestfish-actions.pod:879
6438 "Note that there is no limit on the amount of data that can be downloaded "
6439 "with this call, unlike with L</pread>, and this call always reads the full "
6440 "amount unless an error occurs."
6444 #: ../fish/guestfish-actions.pod:884
6445 msgid "See also L</download>, L</pread>."
6449 #: ../fish/guestfish-actions.pod:888
6454 #: ../fish/guestfish-actions.pod:890
6457 " drop-caches whattodrop\n"
6462 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6464 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6465 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
6466 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6470 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6471 msgid "Setting C<whattodrop> to 3 should drop everything."
6475 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6477 "This automatically calls L<sync(2)> before the operation, so that the "
6478 "maximum guest memory is freed."
6482 #: ../fish/guestfish-actions.pod:902
6487 #: ../fish/guestfish-actions.pod:904
6497 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6499 "This command runs the C<du -s> command to estimate file space usage for "
6504 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6506 "C<path> can be a file or a directory. If C<path> is a directory then the "
6507 "estimate includes the contents of the directory and all subdirectories "
6512 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6514 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6518 #: ../fish/guestfish-actions.pod:916
6523 #: ../fish/guestfish-actions.pod:918
6526 " e2fsck-f device\n"
6531 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6533 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6534 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6539 #: ../fish/guestfish-actions.pod:924
6541 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
6542 "should use L</fsck>."
6546 #: ../fish/guestfish-actions.pod:927
6551 #: ../fish/guestfish-actions.pod:929
6554 " echo-daemon 'words ...'\n"
6559 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6561 "This command concatenates the list of C<words> passed with single spaces "
6562 "between them and returns the resulting string."
6566 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6567 msgid "You can use this command to test the connection through to the daemon."
6571 #: ../fish/guestfish-actions.pod:936
6572 msgid "See also L</ping-daemon>."
6576 #: ../fish/guestfish-actions.pod:938
6581 #: ../fish/guestfish-actions.pod:940
6584 " egrep regex path\n"
6589 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6591 "This calls the external C<egrep> program and returns the matching lines."
6595 #: ../fish/guestfish-actions.pod:948
6600 #: ../fish/guestfish-actions.pod:950
6603 " egrepi regex path\n"
6608 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6610 "This calls the external C<egrep -i> program and returns the matching lines."
6614 #: ../fish/guestfish-actions.pod:958
6619 #: ../fish/guestfish-actions.pod:960
6622 " equal file1 file2\n"
6625 " equal файл1 файл2\n"
6629 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6631 "This compares the two files C<file1> and C<file2> and returns true if their "
6632 "content is exactly equal, or false otherwise."
6636 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6637 msgid "The external L<cmp(1)> program is used for the comparison."
6641 #: ../fish/guestfish-actions.pod:967
6646 #: ../fish/guestfish-actions.pod:969
6656 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6658 "This returns C<true> if and only if there is a file, directory (or anything) "
6659 "with the given C<path> name."
6663 #: ../fish/guestfish-actions.pod:974
6664 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6665 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6668 #: ../fish/guestfish-actions.pod:976
6673 #: ../fish/guestfish-actions.pod:978
6676 " fallocate path len\n"
6679 " fallocate шлях довжина\n"
6683 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6684 #: ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
6686 "This command preallocates a file (containing zero bytes) named C<path> of "
6687 "size C<len> bytes. If the file exists already, it is overwritten."
6691 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
6693 "Do not confuse this with the guestfish-specific C<alloc> command which "
6694 "allocates a file in the host and attaches it as a device."
6698 #: ../fish/guestfish-actions.pod:988
6700 "This function is deprecated. In new code, use the L</fallocate64> call "
6705 #: ../fish/guestfish-actions.pod:995
6707 msgstr "fallocate64"
6710 #: ../fish/guestfish-actions.pod:997
6713 " fallocate64 path len\n"
6716 " fallocate64 шлях довжина\n"
6720 #: ../fish/guestfish-actions.pod:1003
6722 "Note that this call allocates disk blocks for the file. To create a sparse "
6723 "file use L</truncate-size> instead."
6727 #: ../fish/guestfish-actions.pod:1006
6729 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6730 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6731 "maximum size of files created through that call to 1GB."
6735 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6737 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6738 "commands which create a file in the host and attach it as a device."
6742 #: ../fish/guestfish-actions.pod:1015
6747 #: ../fish/guestfish-actions.pod:1017
6750 " fgrep pattern path\n"
6753 " fgrep шаблон шлях\n"
6757 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6759 "This calls the external C<fgrep> program and returns the matching lines."
6763 #: ../fish/guestfish-actions.pod:1025
6768 #: ../fish/guestfish-actions.pod:1027
6771 " fgrepi pattern path\n"
6774 " fgrepi шаблон шлях\n"
6778 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6780 "This calls the external C<fgrep -i> program and returns the matching lines."
6784 #: ../fish/guestfish-actions.pod:1035
6789 #: ../fish/guestfish-actions.pod:1037
6799 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6801 "This call uses the standard L<file(1)> command to determine the type or "
6802 "contents of the file."
6806 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6808 "This call will also transparently look inside various types of compressed "
6813 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6815 "The exact command which runs is C<file -zb path>. Note in particular that "
6816 "the filename is not prepended to the output (the I<-b> option)."
6820 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6822 "The output depends on the output of the underlying L<file(1)> command and it "
6823 "can change in future in ways beyond our control. In other words, the output "
6824 "is not guaranteed by the ABI."
6828 #: ../fish/guestfish-actions.pod:1053
6830 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6831 "(etc), L</is-zero>."
6835 #: ../fish/guestfish-actions.pod:1056
6836 msgid "file-architecture"
6837 msgstr "file-architecture"
6840 #: ../fish/guestfish-actions.pod:1058
6843 " file-architecture filename\n"
6846 " file-architecture назва_файла\n"
6850 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6852 "This detects the architecture of the binary C<filename>, and returns it if "
6857 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6858 msgid "Currently defined architectures are:"
6862 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6867 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6869 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6870 "irrespective of the precise processor requirements of the binary."
6874 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6879 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6880 msgid "64 bit x86-64."
6884 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6889 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6890 msgid "32 bit SPARC."
6894 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6899 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6900 msgid "64 bit SPARC V9 and above."
6904 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6909 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6910 msgid "Intel Itanium."
6911 msgstr "Intel Itanium."
6914 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6919 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6920 msgid "32 bit Power PC."
6924 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6929 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6930 msgid "64 bit Power PC."
6934 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6935 msgid "Libguestfs may return other architecture strings in future."
6939 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6940 msgid "The function works on at least the following types of files:"
6944 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6945 msgid "many types of Un*x and Linux binary"
6949 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6950 msgid "many types of Un*x and Linux shared library"
6954 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6955 msgid "Windows Win32 and Win64 binaries"
6959 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6960 msgid "Windows Win32 and Win64 DLLs"
6964 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6965 msgid "Win32 binaries and DLLs return C<i386>."
6969 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6970 msgid "Win64 binaries and DLLs return C<x86_64>."
6974 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6975 msgid "Linux kernel modules"
6979 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6980 msgid "Linux new-style initrd images"
6984 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6985 msgid "some non-x86 Linux vmlinuz kernels"
6989 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6990 msgid "What it can't do currently:"
6994 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6995 msgid "static libraries (libfoo.a)"
6999 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
7000 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7004 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
7005 msgid "x86 Linux vmlinuz kernels"
7009 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
7011 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7012 "compressed code, and are horribly hard to unpack. If you want to find the "
7013 "architecture of a kernel, use the architecture of the associated initrd or "
7014 "kernel module(s) instead."
7018 #: ../fish/guestfish-actions.pod:1161
7023 #: ../fish/guestfish-actions.pod:1163
7033 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7034 msgid "This command returns the size of C<file> in bytes."
7038 #: ../fish/guestfish-actions.pod:1167
7040 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7041 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7045 #: ../fish/guestfish-actions.pod:1171
7050 #: ../fish/guestfish-actions.pod:1173
7053 " fill c len path\n"
7058 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7060 "This command creates a new file called C<path>. The initial content of the "
7061 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7066 #: ../fish/guestfish-actions.pod:1179
7068 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7069 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7074 #: ../fish/guestfish-actions.pod:1184
7075 msgid "fill-pattern"
7076 msgstr "fill-pattern"
7079 #: ../fish/guestfish-actions.pod:1186
7082 " fill-pattern pattern len path\n"
7087 #: ../fish/guestfish-actions.pod:1188
7089 "This function is like L</fill> except that it creates a new file of length "
7090 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7091 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7096 #: ../fish/guestfish-actions.pod:1193
7101 #: ../fish/guestfish-actions.pod:1195
7111 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7113 "This command lists out all files and directories, recursively, starting at "
7114 "C<directory>. It is essentially equivalent to running the shell command "
7115 "C<find directory -print> but some post-processing happens on the output, "
7120 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7122 "This returns a list of strings I<without any prefix>. Thus if the directory "
7127 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7137 #: ../fish/guestfish-actions.pod:1209
7138 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7142 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7153 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7154 msgid "If C<directory> is not a directory, then this command returns an error."
7158 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7159 msgid "The returned list is sorted."
7163 #: ../fish/guestfish-actions.pod:1222
7164 msgid "See also L</find0>."
7165 msgstr "Див. також L</find0>."
7168 #: ../fish/guestfish-actions.pod:1227
7173 #: ../fish/guestfish-actions.pod:1229
7176 " find0 directory (files|-)\n"
7179 " find0 каталог (файли|-)\n"
7183 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7185 "This command lists out all files and directories, recursively, starting at "
7186 "C<directory>, placing the resulting list in the external file called "
7191 #: ../fish/guestfish-actions.pod:1235
7193 "This command works the same way as L</find> with the following exceptions:"
7197 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7198 msgid "The resulting list is written to an external file."
7202 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7204 "Items (filenames) in the result are separated by C<\\0> characters. See "
7205 "L<find(1)> option I<-print0>."
7209 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7210 msgid "This command is not limited in the number of names that it can return."
7214 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7215 msgid "The result list is not sorted."
7219 #: ../fish/guestfish-actions.pod:1262
7220 msgid "findfs-label"
7221 msgstr "findfs-label"
7224 #: ../fish/guestfish-actions.pod:1264
7227 " findfs-label label\n"
7230 " findfs-label мітка\n"
7234 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7236 "This command searches the filesystems and returns the one which has the "
7237 "given label. An error is returned if no such filesystem can be found."
7241 #: ../fish/guestfish-actions.pod:1270
7242 msgid "To find the label of a filesystem, use L</vfs-label>."
7243 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7246 #: ../fish/guestfish-actions.pod:1272
7248 msgstr "findfs-uuid"
7251 #: ../fish/guestfish-actions.pod:1274
7254 " findfs-uuid uuid\n"
7257 " findfs-uuid uuid\n"
7261 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7263 "This command searches the filesystems and returns the one which has the "
7264 "given UUID. An error is returned if no such filesystem can be found."
7268 #: ../fish/guestfish-actions.pod:1280
7269 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7270 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7273 #: ../fish/guestfish-actions.pod:1282
7278 #: ../fish/guestfish-actions.pod:1284
7281 " fsck fstype device\n"
7284 " fsck тип_файлової_системи пристрій\n"
7288 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7290 "This runs the filesystem checker (fsck) on C<device> which should have "
7291 "filesystem type C<fstype>."
7295 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7297 "The returned integer is the status. See L<fsck(8)> for the list of status "
7298 "codes from C<fsck>."
7302 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7303 msgid "Multiple status codes can be summed together."
7307 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7309 "A non-zero return code can mean \"success\", for example if errors have been "
7310 "corrected on the filesystem."
7314 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7315 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7319 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7321 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7325 #: ../fish/guestfish-actions.pod:1314
7330 #: ../fish/guestfish-actions.pod:1316
7340 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7342 "Return the additional kernel options which are added to the guest kernel "
7347 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7348 msgid "If C<NULL> then no options are added."
7352 #: ../fish/guestfish-actions.pod:1323
7353 msgid "get-attach-method"
7354 msgstr "get-attach-method"
7357 #: ../fish/guestfish-actions.pod:1325
7360 " get-attach-method\n"
7363 " get-attach-method\n"
7367 #: ../fish/guestfish-actions.pod:1327
7368 msgid "Return the current attach method. See L</set-attach-method>."
7372 #: ../fish/guestfish-actions.pod:1329
7373 msgid "get-autosync"
7374 msgstr "get-autosync"
7377 #: ../fish/guestfish-actions.pod:1331
7387 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7388 msgid "Get the autosync flag."
7392 #: ../fish/guestfish-actions.pod:1335
7397 #: ../fish/guestfish-actions.pod:1337
7407 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7408 msgid "Return the direct appliance mode flag."
7412 #: ../fish/guestfish-actions.pod:1341
7414 msgstr "get-e2label"
7417 #: ../fish/guestfish-actions.pod:1343
7420 " get-e2label device\n"
7423 " get-e2label пристрій\n"
7427 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
7429 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7433 #: ../fish/guestfish-actions.pod:1348
7435 "This function is deprecated. In new code, use the L</vfs_label> call "
7440 #: ../fish/guestfish-actions.pod:1355
7445 #: ../fish/guestfish-actions.pod:1357
7448 " get-e2uuid device\n"
7451 " get-e2uuid пристрій\n"
7455 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
7457 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7461 #: ../fish/guestfish-actions.pod:1362
7463 "This function is deprecated. In new code, use the L</vfs_uuid> call instead."
7467 #: ../fish/guestfish-actions.pod:1369
7469 msgstr "get-memsize"
7472 #: ../fish/guestfish-actions.pod:1371
7482 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7484 "This gets the memory size in megabytes allocated to the qemu subprocess."
7488 #: ../fish/guestfish-actions.pod:1376
7490 "If L</set-memsize> was not called on this handle, and if "
7491 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7492 "value for memsize."
7496 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7497 #: ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4292
7498 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7499 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6446
7501 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7505 #: ../fish/guestfish-actions.pod:1383
7507 msgstr "get-network"
7510 #: ../fish/guestfish-actions.pod:1385
7520 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7521 msgid "This returns the enable network flag."
7525 #: ../fish/guestfish-actions.pod:1389
7530 #: ../fish/guestfish-actions.pod:1391
7540 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7541 msgid "Return the current search path."
7545 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7547 "This is always non-NULL. If it wasn't set already, then this will return "
7552 #: ../fish/guestfish-actions.pod:1398
7557 #: ../fish/guestfish-actions.pod:1400
7565 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7566 msgid "This returns the process group flag."
7570 #: ../fish/guestfish-actions.pod:1404
7575 #: ../fish/guestfish-actions.pod:1406
7580 #: ../fish/guestfish-actions.pod:1408
7590 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7592 "Return the process ID of the qemu subprocess. If there is no qemu "
7593 "subprocess, then this will return an error."
7597 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7598 msgid "This is an internal call used for debugging and testing."
7602 #: ../fish/guestfish-actions.pod:1415
7607 #: ../fish/guestfish-actions.pod:1417
7617 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7618 msgid "Return the current qemu binary."
7622 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7624 "This is always non-NULL. If it wasn't set already, then this will return "
7625 "the default qemu binary name."
7629 #: ../fish/guestfish-actions.pod:1424
7630 msgid "get-recovery-proc"
7631 msgstr "get-recovery-proc"
7634 #: ../fish/guestfish-actions.pod:1426
7637 " get-recovery-proc\n"
7640 " get-recovery-proc\n"
7644 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7645 msgid "Return the recovery process enabled flag."
7649 #: ../fish/guestfish-actions.pod:1430
7651 msgstr "get-selinux"
7654 #: ../fish/guestfish-actions.pod:1432
7664 #: ../fish/guestfish-actions.pod:1434
7666 "This returns the current setting of the selinux flag which is passed to the "
7667 "appliance at boot time. See L</set-selinux>."
7671 #: ../fish/guestfish-actions.pod:1440
7676 #: ../fish/guestfish-actions.pod:1442
7686 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7688 "This returns the current state as an opaque integer. This is only useful "
7689 "for printing debug and internal error messages."
7693 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2389
7694 #: ../fish/guestfish-actions.pod:2407 ../fish/guestfish-actions.pod:2445
7695 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:2159
7696 #: ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3490
7697 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3578
7698 msgid "For more information on states, see L<guestfs(3)>."
7702 #: ../fish/guestfish-actions.pod:1449
7707 #: ../fish/guestfish-actions.pod:1451
7717 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7718 msgid "Return the command trace flag."
7722 #: ../fish/guestfish-actions.pod:1455
7727 #: ../fish/guestfish-actions.pod:1457
7737 #: ../fish/guestfish-actions.pod:1459
7739 "Return the current umask. By default the umask is C<022> unless it has been "
7740 "set by calling L</umask>."
7744 #: ../fish/guestfish-actions.pod:1462
7746 msgstr "get-verbose"
7749 #: ../fish/guestfish-actions.pod:1464
7759 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7760 msgid "This returns the verbose messages flag."
7764 #: ../fish/guestfish-actions.pod:1468
7769 #: ../fish/guestfish-actions.pod:1470
7779 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7780 msgid "This gets the SELinux security context of the daemon."
7784 #: ../fish/guestfish-actions.pod:1474
7785 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7789 #: ../fish/guestfish-actions.pod:1477
7794 #: ../fish/guestfish-actions.pod:1479
7797 " getxattr path name\n"
7800 " getxattr шлях назва\n"
7804 #: ../fish/guestfish-actions.pod:1481
7806 "Get a single extended attribute from file C<path> named C<name>. This call "
7807 "follows symlinks. If you want to lookup an extended attribute for the "
7808 "symlink itself, use L</lgetxattr>."
7812 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2534
7814 "Normally it is better to get all extended attributes from a file in one go "
7815 "by calling L</getxattrs>. However some Linux filesystem implementations are "
7816 "buggy and do not provide a way to list out attributes. For these "
7817 "filesystems (notably ntfs-3g) you have to know the names of the extended "
7818 "attributes you want in advance and call this function."
7822 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2541
7823 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3711
7825 "Extended attribute values are blobs of binary data. If there is no extended "
7826 "attribute named C<name>, this returns an error."
7830 #: ../fish/guestfish-actions.pod:1495
7831 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7832 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7835 #: ../fish/guestfish-actions.pod:1497
7840 #: ../fish/guestfish-actions.pod:1499
7850 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7852 "This call lists the extended attributes of the file or directory C<path>."
7856 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7858 "At the system call level, this is a combination of the L<listxattr(2)> and "
7859 "L<getxattr(2)> calls."
7863 #: ../fish/guestfish-actions.pod:1507
7864 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7865 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7868 #: ../fish/guestfish-actions.pod:1509
7870 msgstr "glob-expand"
7873 #: ../fish/guestfish-actions.pod:1511
7876 " glob-expand pattern\n"
7879 " glob-expand шаблон\n"
7883 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7885 "This command searches for all the pathnames matching C<pattern> according to "
7886 "the wildcard expansion rules used by the shell."
7890 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7892 "If no paths match, then this returns an empty list (note: not an error)."
7896 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7898 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7899 "GLOB_BRACE>. See that manual page for more details."
7903 #: ../fish/guestfish-actions.pod:1524
7908 #: ../fish/guestfish-actions.pod:1526
7911 " grep regex path\n"
7914 " grepi формальний_вираз шлях\n"
7918 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7919 msgid "This calls the external C<grep> program and returns the matching lines."
7923 #: ../fish/guestfish-actions.pod:1534
7928 #: ../fish/guestfish-actions.pod:1536
7931 " grepi regex path\n"
7934 " grepi формальний_вираз шлях\n"
7938 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7940 "This calls the external C<grep -i> program and returns the matching lines."
7944 #: ../fish/guestfish-actions.pod:1544
7945 msgid "grub-install"
7946 msgstr "grub-install"
7949 #: ../fish/guestfish-actions.pod:1546
7952 " grub-install root device\n"
7955 " grub-install кореневий пристрій\n"
7959 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7961 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7962 "with the root directory being C<root>."
7966 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
7968 "There is currently no way in the API to install grub2, which is used by most "
7969 "modern Linux guests. It is possible to run the grub2 command from the "
7970 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7974 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
7976 "This uses C<grub-install> from the host. Unfortunately grub is not always "
7977 "compatible with itself, so this only works in rather narrow circumstances. "
7978 "Careful testing with each guest version is advisable."
7982 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
7984 "If grub-install reports the error \"No suitable drive was found in the "
7985 "generated device map.\" it may be that you need to create a C</boot/grub/"
7986 "device.map> file first that contains the mapping between grub device names "
7987 "and Linux device names. It is usually sufficient to create a file "
7992 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
8000 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
8001 msgid "replacing C</dev/vda> with the name of the installation device."
8005 #: ../fish/guestfish-actions.pod:1584
8010 #: ../fish/guestfish-actions.pod:1586
8020 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
8022 "This command returns up to the first 10 lines of a file as a list of strings."
8026 #: ../fish/guestfish-actions.pod:1594
8031 #: ../fish/guestfish-actions.pod:1596
8034 " head-n nrlines path\n"
8039 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
8041 "If the parameter C<nrlines> is a positive number, this returns the first "
8042 "C<nrlines> lines of the file C<path>."
8046 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
8048 "If the parameter C<nrlines> is a negative number, this returns lines from "
8049 "the file C<path>, excluding the last C<nrlines> lines."
8053 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4670
8054 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7018
8055 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8059 #: ../fish/guestfish-actions.pod:1609
8064 #: ../fish/guestfish-actions.pod:1611
8074 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
8076 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8077 "readable, canonical hex dump of the file."
8081 #: ../fish/guestfish-actions.pod:1619
8086 #: ../fish/guestfish-actions.pod:1621
8089 " initrd-cat initrdpath filename\n"
8092 " initrd-cat шлях_initrd назва_файла\n"
8096 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
8098 "This command unpacks the file C<filename> from the initrd file called "
8099 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8104 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
8106 "For example, in guestfish you could use the following command to examine the "
8107 "boot script (usually called C</init>) contained in a Linux initrd or "
8112 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
8115 " initrd-cat /boot/initrd-<version>.img init\n"
8120 #: ../fish/guestfish-actions.pod:1633
8121 msgid "See also L</initrd-list>."
8122 msgstr "Див. також L</initrd-list>."
8125 #: ../fish/guestfish-actions.pod:1638
8127 msgstr "initrd-list"
8130 #: ../fish/guestfish-actions.pod:1640
8133 " initrd-list path\n"
8136 " initrd-list шлях\n"
8140 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
8141 msgid "This command lists out files contained in an initrd."
8145 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
8147 "The files are listed without any initial C</> character. The files are "
8148 "listed in the order they appear (not necessarily alphabetical). Directory "
8149 "names are listed as separate items."
8153 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
8155 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8156 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8161 #: ../fish/guestfish-actions.pod:1652
8162 msgid "inotify-add-watch"
8163 msgstr "inotify-add-watch"
8166 #: ../fish/guestfish-actions.pod:1654
8169 " inotify-add-watch path mask\n"
8172 " inotify-add-watch шлях маска\n"
8176 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
8177 msgid "Watch C<path> for the events listed in C<mask>."
8181 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
8183 "Note that if C<path> is a directory then events within that directory are "
8184 "watched, but this does I<not> happen recursively (in subdirectories)."
8188 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
8190 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8191 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8195 #: ../fish/guestfish-actions.pod:1666
8196 msgid "inotify-close"
8197 msgstr "inotify-close"
8200 #: ../fish/guestfish-actions.pod:1668
8210 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
8212 "This closes the inotify handle which was previously opened by inotify_init. "
8213 "It removes all watches, throws away any pending events, and deallocates all "
8218 #: ../fish/guestfish-actions.pod:1674
8219 msgid "inotify-files"
8220 msgstr "inotify-files"
8223 #: ../fish/guestfish-actions.pod:1676
8233 #: ../fish/guestfish-actions.pod:1678
8235 "This function is a helpful wrapper around L</inotify-read> which just "
8236 "returns a list of pathnames of objects that were touched. The returned "
8237 "pathnames are sorted and deduplicated."
8241 #: ../fish/guestfish-actions.pod:1682
8242 msgid "inotify-init"
8243 msgstr "inotify-init"
8246 #: ../fish/guestfish-actions.pod:1684
8249 " inotify-init maxevents\n"
8254 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
8256 "This command creates a new inotify handle. The inotify subsystem can be "
8257 "used to notify events which happen to objects in the guest filesystem."
8261 #: ../fish/guestfish-actions.pod:1690
8263 "C<maxevents> is the maximum number of events which will be queued up between "
8264 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8265 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8266 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8267 "but records the fact that it threw them away by setting a flag "
8268 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8272 #: ../fish/guestfish-actions.pod:1700
8274 "Before any events are generated, you have to add some watches to the "
8275 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8276 "L</inotify-watch-all>."
8280 #: ../fish/guestfish-actions.pod:1706
8282 "Queued up events should be read periodically by calling L</inotify-read> (or "
8283 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8284 "If you don't read the events out often enough then you risk the internal "
8285 "queue overflowing."
8289 #: ../fish/guestfish-actions.pod:1713
8291 "The handle should be closed after use by calling L</inotify-close>. This "
8292 "also removes any watches automatically."
8296 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
8298 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8299 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
8300 "that there is one global inotify handle per libguestfs instance."
8304 #: ../fish/guestfish-actions.pod:1722
8305 msgid "inotify-read"
8306 msgstr "inotify-read"
8309 #: ../fish/guestfish-actions.pod:1724
8319 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
8321 "Return the complete queue of events that have happened since the previous "
8326 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
8327 msgid "If no events have happened, this returns an empty list."
8331 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
8333 "I<Note>: In order to make sure that all events have been read, you must call "
8334 "this function repeatedly until it returns an empty list. The reason is that "
8335 "the call will read events up to the maximum appliance-to-host message size "
8336 "and leave remaining events in the queue."
8340 #: ../fish/guestfish-actions.pod:1737
8341 msgid "inotify-rm-watch"
8342 msgstr "inotify-rm-watch"
8345 #: ../fish/guestfish-actions.pod:1739
8348 " inotify-rm-watch wd\n"
8353 #: ../fish/guestfish-actions.pod:1741
8354 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
8358 #: ../fish/guestfish-actions.pod:1744
8359 msgid "inspect-get-arch"
8360 msgstr "inspect-get-arch"
8363 #: ../fish/guestfish-actions.pod:1746
8366 " inspect-get-arch root\n"
8369 " inspect-get-arch корінь\n"
8373 #: ../fish/guestfish-actions.pod:1748
8375 "This returns the architecture of the inspected operating system. The "
8376 "possible return values are listed under L</file-architecture>."
8380 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
8382 "If the architecture could not be determined, then the string C<unknown> is "
8387 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1838
8388 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1929
8389 #: ../fish/guestfish-actions.pod:2013 ../fish/guestfish-actions.pod:2074
8390 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2109
8391 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2181
8392 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2207
8393 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2227
8394 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2335
8395 #: ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:2625
8396 #: ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:2819
8397 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2969
8398 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3080
8399 #: ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3154
8400 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
8401 #: ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3251
8402 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3285
8403 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3428
8404 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8408 #: ../fish/guestfish-actions.pod:1757
8409 msgid "inspect-get-distro"
8410 msgstr "inspect-get-distro"
8413 #: ../fish/guestfish-actions.pod:1759
8416 " inspect-get-distro root\n"
8419 " inspect-get-distro корінь\n"
8423 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
8425 "This returns the distro (distribution) of the inspected operating system."
8429 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8430 msgid "Currently defined distros are:"
8434 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8435 msgid "\"archlinux\""
8436 msgstr "\"archlinux\""
8439 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8441 msgstr "Arch Linux."
8444 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8449 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8454 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8459 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8464 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8469 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8474 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8479 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8484 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8485 msgid "\"linuxmint\""
8486 msgstr "\"linuxmint\""
8489 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8491 msgstr "Linux Mint."
8494 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8495 msgid "\"mandriva\""
8496 msgstr "\"mandriva\""
8499 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8504 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8509 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8514 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8519 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
8524 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8525 msgid "\"redhat-based\""
8526 msgstr "\"redhat-based\""
8529 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
8530 msgid "Some Red Hat-derived distro."
8531 msgstr "Дистрибутив, що походить від Red Hat."
8534 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8539 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
8540 msgid "Red Hat Enterprise Linux."
8544 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
8545 msgid "\"scientificlinux\""
8549 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
8550 msgid "Scientific Linux."
8554 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
8555 msgid "\"slackware\""
8559 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
8564 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
8569 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
8574 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1908
8575 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:2701
8576 #: ../src/guestfs-actions.pod:2810 ../src/guestfs-actions.pod:3185
8578 msgstr "\"unknown\""
8581 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
8582 msgid "The distro could not be determined."
8583 msgstr "Дистрибутив, тип якого не вдалося визначити."
8586 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:2164
8587 #: ../src/guestfs-actions.pod:2705 ../src/guestfs-actions.pod:3177
8589 msgstr "\"windows\""
8592 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
8594 "Windows does not have distributions. This string is returned if the OS type "
8599 #: ../fish/guestfish-actions.pod:1835 ../fish/guestfish-actions.pod:1914
8600 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:2712
8601 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:3191
8603 "Future versions of libguestfs may return other strings here. The caller "
8604 "should be prepared to handle any string."
8608 #: ../fish/guestfish-actions.pod:1840
8609 msgid "inspect-get-drive-mappings"
8613 #: ../fish/guestfish-actions.pod:1842
8616 " inspect-get-drive-mappings root\n"
8621 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8623 "This call is useful for Windows which uses a primitive system of assigning "
8624 "drive letters (like \"C:\") to partitions. This inspection API examines the "
8625 "Windows Registry to find out how disks/partitions are mapped to drive "
8626 "letters, and returns a hash table as in the example below:"
8630 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2734
8640 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
8642 "Note that keys are drive letters. For Windows, the key is case insensitive "
8643 "and just contains the drive letter, without the customary colon separator "
8648 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
8650 "In future we may support other operating systems that also used drive "
8651 "letters, but the keys for those might not be case insensitive and might be "
8652 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
8657 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2747
8659 "For Windows guests, currently only hard drive mappings are returned. "
8660 "Removable disks (eg. DVD-ROMs) are ignored."
8664 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2750
8666 "For guests that do not use drive mappings, or if the drive mappings could "
8667 "not be determined, this returns an empty hash table."
8671 #: ../fish/guestfish-actions.pod:1869
8673 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8674 "get-mountpoints>, L</inspect-get-filesystems>."
8678 #: ../fish/guestfish-actions.pod:1873
8679 msgid "inspect-get-filesystems"
8680 msgstr "inspect-get-filesystems"
8683 #: ../fish/guestfish-actions.pod:1875
8686 " inspect-get-filesystems root\n"
8689 " inspect-get-filesystems корінь\n"
8693 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2771
8695 "This returns a list of all the filesystems that we think are associated with "
8696 "this operating system. This includes the root filesystem, other ordinary "
8697 "filesystems, and non-mounted devices like swap partitions."
8701 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:2776
8703 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8704 "to be shared between operating systems."
8708 #: ../fish/guestfish-actions.pod:1885
8710 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8715 #: ../fish/guestfish-actions.pod:1888
8716 msgid "inspect-get-format"
8717 msgstr "inspect-get-format"
8720 #: ../fish/guestfish-actions.pod:1890
8723 " inspect-get-format root\n"
8726 " inspect-get-format корінь\n"
8730 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:2794
8732 "This returns the format of the inspected operating system. You can use it "
8733 "to detect install images, live CDs and similar."
8737 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2797
8738 msgid "Currently defined formats are:"
8742 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
8743 msgid "\"installed\""
8744 msgstr "\"installed\""
8747 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2803
8748 msgid "This is an installed operating system."
8749 msgstr "Це встановлена операційна система."
8752 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
8753 msgid "\"installer\""
8757 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
8759 "The disk image being inspected is not an installed operating system, but a "
8760 "I<bootable> install disk, live CD, or similar."
8764 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:2812
8765 msgid "The format of this disk image is not known."
8769 #: ../fish/guestfish-actions.pod:1919
8770 msgid "inspect-get-hostname"
8771 msgstr "inspect-get-hostname"
8774 #: ../fish/guestfish-actions.pod:1921
8777 " inspect-get-hostname root\n"
8780 " inspect-get-hostname корінь\n"
8784 #: ../fish/guestfish-actions.pod:1923 ../src/guestfs-actions.pod:2832
8786 "This function returns the hostname of the operating system as found by "
8787 "inspection of the guest's configuration files."
8791 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2835
8793 "If the hostname could not be determined, then the string C<unknown> is "
8798 #: ../fish/guestfish-actions.pod:1931
8799 msgid "inspect-get-icon"
8803 #: ../fish/guestfish-actions.pod:1933
8806 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8811 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8813 "This function returns an icon corresponding to the inspected operating "
8814 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
8815 "to PNG if necessary)."
8819 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
8821 "If it was not possible to get an icon this function returns a zero-length "
8822 "(non-NULL) buffer. I<Callers must check for this case>."
8826 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:2868
8828 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8829 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8830 "this file will be returned. You can disable favicons by passing the "
8831 "optional C<favicon> boolean as false (default is true)."
8835 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2874
8837 "If finding the favicon fails, then we look in other places in the guest for "
8842 #: ../fish/guestfish-actions.pod:1951 ../src/guestfs-actions.pod:2877
8844 "If the optional C<highquality> boolean is true then only high quality icons "
8845 "are returned, which means only icons of high resolution with an alpha "
8846 "channel. The default (false) is to return any icon we can, even if it is of "
8847 "substandard quality."
8851 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:2888
8853 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8854 "before you call this, since it needs to read information from the guest "
8855 "filesystem during the call."
8859 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8861 "B<Security:> The icon data comes from the untrusted guest, and should be "
8862 "treated with caution. PNG files have been known to contain exploits. "
8863 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8864 "trying to process or display the icon."
8868 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2902
8870 "The PNG image returned can be any size. It might not be square. Libguestfs "
8871 "tries to return the largest, highest quality icon available. The "
8872 "application must scale the icon to the required size."
8876 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:2909
8878 "Extracting icons from Windows guests requires the external C<wrestool> "
8879 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8880 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
8881 "installed separately."
8885 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:2916
8887 "Operating system icons are usually trademarks. Seek legal advice before "
8888 "using trademarks in applications."
8892 #: ../fish/guestfish-actions.pod:1997
8893 msgid "inspect-get-major-version"
8894 msgstr "inspect-get-major-version"
8897 #: ../fish/guestfish-actions.pod:1999
8900 " inspect-get-major-version root\n"
8903 " inspect-get-major-version корінь\n"
8907 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:2957
8909 "This returns the major version number of the inspected operating system."
8913 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2960
8915 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8916 "popular public names used by the operating system. Notably the operating "
8917 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8918 "1). You can find out the real versions corresponding to releases of Windows "
8919 "by consulting Wikipedia or MSDN."
8923 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2022
8924 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:2984
8925 msgid "If the version could not be determined, then C<0> is returned."
8929 #: ../fish/guestfish-actions.pod:2015
8930 msgid "inspect-get-minor-version"
8931 msgstr "inspect-get-minor-version"
8934 #: ../fish/guestfish-actions.pod:2017
8937 " inspect-get-minor-version root\n"
8940 " inspect-get-minor-version корінь\n"
8944 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:2981
8946 "This returns the minor version number of the inspected operating system."
8950 #: ../fish/guestfish-actions.pod:2024
8952 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
8953 "get-major-version>."
8957 #: ../fish/guestfish-actions.pod:2027
8958 msgid "inspect-get-mountpoints"
8959 msgstr "inspect-get-mountpoints"
8962 #: ../fish/guestfish-actions.pod:2029
8965 " inspect-get-mountpoints root\n"
8968 " inspect-get-mountpoints корінь\n"
8972 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:2999
8974 "This returns a hash of where we think the filesystems associated with this "
8975 "operating system should be mounted. Callers should note that this is at "
8976 "best an educated guess made by reading configuration files such as C</etc/"
8977 "fstab>. I<In particular note> that this may return filesystems which are "
8978 "non-existent or not mountable and callers should be prepared to handle or "
8979 "ignore failures if they try to mount them."
8983 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3008
8985 "Each element in the returned hashtable has a key which is the path of the "
8986 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8987 "mounted there (eg. C</dev/sda1>)."
8991 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3013
8993 "Non-mounted devices such as swap devices are I<not> returned in this list."
8997 #: ../fish/guestfish-actions.pod:2048
8999 "For operating systems like Windows which still use drive letters, this call "
9000 "will only return an entry for the first drive \"mounted on\" C</>. For "
9001 "information about the mapping of drive letters to partitions, see L</inspect-"
9002 "get-drive-mappings>."
9006 #: ../fish/guestfish-actions.pod:2054
9008 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9013 #: ../fish/guestfish-actions.pod:2057
9014 msgid "inspect-get-package-format"
9015 msgstr "inspect-get-package-format"
9018 #: ../fish/guestfish-actions.pod:2059
9021 " inspect-get-package-format root\n"
9024 " inspect-get-package-format корінь\n"
9028 #: ../fish/guestfish-actions.pod:2061
9030 "This function and L</inspect-get-package-management> return the package "
9031 "format and package management tool used by the inspected operating system. "
9032 "For example for Fedora these functions would return C<rpm> (package format) "
9033 "and C<yum> (package management)."
9037 #: ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3045
9039 "This returns the string C<unknown> if we could not determine the package "
9040 "format I<or> if the operating system does not have a real packaging system "
9045 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
9047 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9048 "Future versions of libguestfs may return other strings."
9052 #: ../fish/guestfish-actions.pod:2076
9053 msgid "inspect-get-package-management"
9054 msgstr "inspect-get-package-management"
9057 #: ../fish/guestfish-actions.pod:2078
9060 " inspect-get-package-management root\n"
9063 " inspect-get-package-management корінь\n"
9067 #: ../fish/guestfish-actions.pod:2080
9069 "L</inspect-get-package-format> and this function return the package format "
9070 "and package management tool used by the inspected operating system. For "
9071 "example for Fedora these functions would return C<rpm> (package format) and "
9072 "C<yum> (package management)."
9076 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3071
9078 "This returns the string C<unknown> if we could not determine the package "
9079 "management tool I<or> if the operating system does not have a real packaging "
9080 "system (eg. Windows)."
9084 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
9086 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9087 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9088 "libguestfs may return other strings."
9092 #: ../fish/guestfish-actions.pod:2097
9093 msgid "inspect-get-product-name"
9094 msgstr "inspect-get-product-name"
9097 #: ../fish/guestfish-actions.pod:2099
9100 " inspect-get-product-name root\n"
9103 " inspect-get-product-name корінь\n"
9107 #: ../fish/guestfish-actions.pod:2101 ../src/guestfs-actions.pod:3093
9109 "This returns the product name of the inspected operating system. The "
9110 "product name is generally some freeform string which can be displayed to the "
9111 "user, but should not be parsed by programs."
9115 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3098
9117 "If the product name could not be determined, then the string C<unknown> is "
9122 #: ../fish/guestfish-actions.pod:2111
9123 msgid "inspect-get-product-variant"
9127 #: ../fish/guestfish-actions.pod:2113
9130 " inspect-get-product-variant root\n"
9135 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3114
9136 msgid "This returns the product variant of the inspected operating system."
9140 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3117
9142 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9143 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9144 "is usually a string such as C<Client> or C<Server> (other values are "
9145 "possible). This can be used to distinguish consumer and enterprise versions "
9146 "of Windows that have the same version number (for example, Windows 7 and "
9147 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9148 "the latter is C<Server>)."
9152 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3126
9154 "For enterprise Linux guests, in future we intend this to return the product "
9155 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9156 "implemented at present."
9160 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
9162 "If the product variant could not be determined, then the string C<unknown> "
9167 #: ../fish/guestfish-actions.pod:2134
9169 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9170 "get-product-name>, L</inspect-get-major-version>."
9174 #: ../fish/guestfish-actions.pod:2138
9175 msgid "inspect-get-roots"
9176 msgstr "inspect-get-roots"
9179 #: ../fish/guestfish-actions.pod:2140
9182 " inspect-get-roots\n"
9185 " inspect-get-roots\n"
9189 #: ../fish/guestfish-actions.pod:2142
9191 "This function is a convenient way to get the list of root devices, as "
9192 "returned from a previous call to L</inspect-os>, but without redoing the "
9193 "whole inspection process."
9197 #: ../fish/guestfish-actions.pod:2146
9199 "This returns an empty list if either no root devices were found or the "
9200 "caller has not called L</inspect-os>."
9204 #: ../fish/guestfish-actions.pod:2151
9205 msgid "inspect-get-type"
9206 msgstr "inspect-get-type"
9209 #: ../fish/guestfish-actions.pod:2153
9212 " inspect-get-type root\n"
9215 " inspect-get-type корінь\n"
9219 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3168
9221 "This returns the type of the inspected operating system. Currently defined "
9226 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3173
9231 #: ../fish/guestfish-actions.pod:2162 ../src/guestfs-actions.pod:3175
9232 msgid "Any Linux-based operating system."
9236 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
9237 msgid "Any Microsoft Windows operating system."
9241 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3181
9243 msgstr "\"freebsd\""
9246 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
9251 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
9252 msgid "The operating system type could not be determined."
9256 #: ../fish/guestfish-actions.pod:2183
9257 msgid "inspect-get-windows-current-control-set"
9261 #: ../fish/guestfish-actions.pod:2185
9264 " inspect-get-windows-current-control-set root\n"
9269 #: ../fish/guestfish-actions.pod:2187 ../src/guestfs-actions.pod:3207
9271 "This returns the Windows CurrentControlSet of the inspected guest. The "
9272 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9276 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3210
9278 "This call assumes that the guest is Windows and that the Registry could be "
9279 "examined by inspection. If this is not the case then an error is returned."
9283 #: ../fish/guestfish-actions.pod:2196
9284 msgid "inspect-get-windows-systemroot"
9285 msgstr "inspect-get-windows-systemroot"
9288 #: ../fish/guestfish-actions.pod:2198
9291 " inspect-get-windows-systemroot root\n"
9294 " inspect-get-windows-systemroot корінь\n"
9298 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3227
9300 "This returns the Windows systemroot of the inspected guest. The systemroot "
9301 "is a directory path such as C</WINDOWS>."
9305 #: ../fish/guestfish-actions.pod:2203 ../src/guestfs-actions.pod:3230
9307 "This call assumes that the guest is Windows and that the systemroot could be "
9308 "determined by inspection. If this is not the case then an error is returned."
9312 #: ../fish/guestfish-actions.pod:2209
9313 msgid "inspect-is-live"
9314 msgstr "inspect-is-live"
9317 #: ../fish/guestfish-actions.pod:2211
9320 " inspect-is-live root\n"
9323 " inspect-is-live корінь\n"
9327 #: ../fish/guestfish-actions.pod:2213
9329 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9330 "then this returns true if a live image was detected on the disk."
9334 #: ../fish/guestfish-actions.pod:2219
9335 msgid "inspect-is-multipart"
9336 msgstr "inspect-is-multipart"
9339 #: ../fish/guestfish-actions.pod:2221
9342 " inspect-is-multipart root\n"
9345 " inspect-is-multipart корінь\n"
9349 #: ../fish/guestfish-actions.pod:2223
9351 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9352 "then this returns true if the disk is part of a set."
9356 #: ../fish/guestfish-actions.pod:2229
9357 msgid "inspect-is-netinst"
9358 msgstr "inspect-is-netinst"
9361 #: ../fish/guestfish-actions.pod:2231
9364 " inspect-is-netinst root\n"
9367 " inspect-is-netinst корінь\n"
9371 #: ../fish/guestfish-actions.pod:2233
9373 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9374 "then this returns true if the disk is a network installer, ie. not a self-"
9375 "contained install CD but one which is likely to require network access to "
9376 "complete the install."
9380 #: ../fish/guestfish-actions.pod:2241
9381 msgid "inspect-list-applications"
9382 msgstr "inspect-list-applications"
9385 #: ../fish/guestfish-actions.pod:2243
9388 " inspect-list-applications root\n"
9391 " inspect-list-applications кореневий_каталог\n"
9395 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3297
9396 msgid "Return the list of applications installed in the operating system."
9400 #: ../fish/guestfish-actions.pod:2247
9402 "I<Note:> This call works differently from other parts of the inspection "
9403 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9404 "then mount up the disks, before calling this. Listing applications is a "
9405 "significantly more difficult operation which requires access to the full "
9406 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
9407 "are just returning data cached in the libguestfs handle, this call actually "
9408 "reads parts of the mounted filesystems during the call."
9412 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9414 "This returns an empty list if the inspection code was not able to determine "
9415 "the list of applications."
9419 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9420 msgid "The application structure contains the following fields:"
9424 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
9426 msgstr "C<app_name>"
9429 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
9431 "The name of the application. For Red Hat-derived and Debian-derived Linux "
9432 "guests, this is the package name."
9436 #: ../fish/guestfish-actions.pod:2269 ../src/guestfs-actions.pod:3321
9437 msgid "C<app_display_name>"
9438 msgstr "C<app_display_name>"
9441 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9443 "The display name of the application, sometimes localized to the install "
9444 "language of the guest operating system."
9448 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3326
9450 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
9451 "to display something can use C<app_name> instead."
9455 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
9456 msgid "C<app_epoch>"
9457 msgstr "C<app_epoch>"
9460 #: ../fish/guestfish-actions.pod:2279 ../src/guestfs-actions.pod:3331
9462 "For package managers which use epochs, this contains the epoch of the "
9463 "package (an integer). If unavailable, this is returned as C<0>."
9467 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9468 msgid "C<app_version>"
9469 msgstr "C<app_version>"
9472 #: ../fish/guestfish-actions.pod:2284 ../src/guestfs-actions.pod:3336
9474 "The version string of the application or package. If unavailable this is "
9475 "returned as an empty string C<\"\">."
9479 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9480 msgid "C<app_release>"
9481 msgstr "C<app_release>"
9484 #: ../fish/guestfish-actions.pod:2289 ../src/guestfs-actions.pod:3341
9486 "The release string of the application or package, for package managers that "
9487 "use this. If unavailable this is returned as an empty string C<\"\">."
9491 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9492 msgid "C<app_install_path>"
9493 msgstr "C<app_install_path>"
9496 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3347
9498 "The installation path of the application (on operating systems such as "
9499 "Windows which use installation paths). This path is in the format used by "
9500 "the guest operating system, it is not a libguestfs path."
9504 #: ../fish/guestfish-actions.pod:2300 ../src/guestfs-actions.pod:3352
9505 msgid "If unavailable this is returned as an empty string C<\"\">."
9509 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3354
9510 msgid "C<app_trans_path>"
9511 msgstr "C<app_trans_path>"
9514 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
9516 "The install path translated into a libguestfs path. If unavailable this is "
9517 "returned as an empty string C<\"\">."
9521 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3359
9522 msgid "C<app_publisher>"
9523 msgstr "C<app_publisher>"
9526 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3361
9528 "The name of the publisher of the application, for package managers that use "
9529 "this. If unavailable this is returned as an empty string C<\"\">."
9533 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
9538 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3367
9540 "The URL (eg. upstream URL) of the application. If unavailable this is "
9541 "returned as an empty string C<\"\">."
9545 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3370
9546 msgid "C<app_source_package>"
9547 msgstr "C<app_source_package>"
9550 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3372
9552 "For packaging systems which support this, the name of the source package. "
9553 "If unavailable this is returned as an empty string C<\"\">."
9557 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3375
9558 msgid "C<app_summary>"
9559 msgstr "C<app_summary>"
9562 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3377
9564 "A short (usually one line) description of the application or package. If "
9565 "unavailable this is returned as an empty string C<\"\">."
9569 #: ../fish/guestfish-actions.pod:2328 ../src/guestfs-actions.pod:3380
9570 msgid "C<app_description>"
9571 msgstr "C<app_description>"
9574 #: ../fish/guestfish-actions.pod:2330 ../src/guestfs-actions.pod:3382
9576 "A longer description of the application or package. If unavailable this is "
9577 "returned as an empty string C<\"\">."
9581 #: ../fish/guestfish-actions.pod:2337
9586 #: ../fish/guestfish-actions.pod:2339
9596 #: ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3400
9598 "This function uses other libguestfs functions and certain heuristics to "
9599 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9600 "for operating systems."
9604 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
9605 msgid "The list returned is empty if no operating systems were found."
9609 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3406
9611 "If one operating system was found, then this returns a list with a single "
9612 "element, which is the name of the root filesystem of this operating system. "
9613 "It is also possible for this function to return a list containing more than "
9614 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9615 "element being the root filesystem of one of the operating systems."
9619 #: ../fish/guestfish-actions.pod:2354
9621 "You can pass the root string(s) returned to other L</inspect-get-*> "
9622 "functions in order to query further information about each operating system, "
9623 "such as the name and version."
9627 #: ../fish/guestfish-actions.pod:2359
9629 "This function uses other libguestfs features such as L</mount-ro> and L</"
9630 "umount-all> in order to mount and unmount filesystems and look at the "
9631 "contents. This should be called with no disks currently mounted. The "
9632 "function may also use Augeas, so any existing Augeas handle will be closed."
9636 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3424
9638 "This function cannot decrypt encrypted disks. The caller must do that first "
9639 "(supplying the necessary keys) if the disk is encrypted."
9643 #: ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2569
9644 #: ../fish/guestfish-actions.pod:2628
9645 msgid "See also L</list-filesystems>."
9646 msgstr "Див. також L</list-filesystems>."
9649 #: ../fish/guestfish-actions.pod:2373
9651 msgstr "is-blockdev"
9654 #: ../fish/guestfish-actions.pod:2375
9657 " is-blockdev path\n"
9660 " is-blockdev шлях\n"
9664 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3444
9666 "This returns C<true> if and only if there is a block device with the given "
9671 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2398
9672 #: ../fish/guestfish-actions.pod:2417 ../fish/guestfish-actions.pod:2426
9673 #: ../fish/guestfish-actions.pod:2436 ../fish/guestfish-actions.pod:2470
9674 #: ../fish/guestfish-actions.pod:2479
9675 msgid "See also L</stat>."
9676 msgstr "Див. також L</stat>."
9679 #: ../fish/guestfish-actions.pod:2382
9684 #: ../fish/guestfish-actions.pod:2384
9694 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3458
9696 "This returns true iff this handle is busy processing a command (in the "
9701 #: ../fish/guestfish-actions.pod:2391
9706 #: ../fish/guestfish-actions.pod:2393
9709 " is-chardev path\n"
9712 " is-chardev шлях\n"
9716 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3473
9718 "This returns C<true> if and only if there is a character device with the "
9719 "given C<path> name."
9723 #: ../fish/guestfish-actions.pod:2400
9728 #: ../fish/guestfish-actions.pod:2402
9738 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3487
9740 "This returns true iff this handle is being configured (in the C<CONFIG> "
9745 #: ../fish/guestfish-actions.pod:2409
9750 #: ../fish/guestfish-actions.pod:2411
9760 #: ../fish/guestfish-actions.pod:2413 ../src/guestfs-actions.pod:3502
9762 "This returns C<true> if and only if there is a directory with the given "
9763 "C<path> name. Note that it returns false for other objects like files."
9767 #: ../fish/guestfish-actions.pod:2419
9772 #: ../fish/guestfish-actions.pod:2421
9782 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3518
9784 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
9785 "given C<path> name."
9789 #: ../fish/guestfish-actions.pod:2428
9794 #: ../fish/guestfish-actions.pod:2430
9804 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:3533
9806 "This returns C<true> if and only if there is a regular file with the given "
9807 "C<path> name. Note that it returns false for other objects like directories."
9811 #: ../fish/guestfish-actions.pod:2438
9812 msgid "is-launching"
9813 msgstr "is-launching"
9816 #: ../fish/guestfish-actions.pod:2440
9826 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3548
9828 "This returns true iff this handle is launching the subprocess (in the "
9829 "C<LAUNCHING> state)."
9833 #: ../fish/guestfish-actions.pod:2447
9838 #: ../fish/guestfish-actions.pod:2449
9848 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3563
9850 "This command tests whether C<device> is a logical volume, and returns true "
9851 "iff this is the case."
9855 #: ../fish/guestfish-actions.pod:2454
9860 #: ../fish/guestfish-actions.pod:2456
9870 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3575
9872 "This returns true iff this handle is ready to accept commands (in the "
9877 #: ../fish/guestfish-actions.pod:2463
9882 #: ../fish/guestfish-actions.pod:2465
9892 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3590
9894 "This returns C<true> if and only if there is a Unix domain socket with the "
9895 "given C<path> name."
9899 #: ../fish/guestfish-actions.pod:2472
9904 #: ../fish/guestfish-actions.pod:2474
9907 " is-symlink path\n"
9910 " is-symlink шлях\n"
9914 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3605
9916 "This returns C<true> if and only if there is a symbolic link with the given "
9921 #: ../fish/guestfish-actions.pod:2481
9926 #: ../fish/guestfish-actions.pod:2483
9934 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3620
9936 "This returns true iff the file exists and the file is empty or it contains "
9941 #: ../fish/guestfish-actions.pod:2488
9942 msgid "is-zero-device"
9946 #: ../fish/guestfish-actions.pod:2490
9949 " is-zero-device device\n"
9954 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3633
9955 msgid "This returns true iff the device exists and contains all zero bytes."
9959 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3635
9960 msgid "Note that for large devices this can take a long time to run."
9964 #: ../fish/guestfish-actions.pod:2496
9965 msgid "kill-subprocess"
9966 msgstr "kill-subprocess"
9969 #: ../fish/guestfish-actions.pod:2498
9972 " kill-subprocess\n"
9975 " kill-subprocess\n"
9979 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3646
9980 msgid "This kills the qemu subprocess. You should never need to call this."
9984 #: ../fish/guestfish-actions.pod:2502
9989 #: ../fish/guestfish-actions.pod:2504
9994 #: ../fish/guestfish-actions.pod:2506
10004 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3657
10006 "Internally libguestfs is implemented by running a virtual machine using "
10011 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3660
10013 "You should call this after configuring the handle (eg. adding drives) but "
10014 "before performing any actions."
10018 #: ../fish/guestfish-actions.pod:2514
10023 #: ../fish/guestfish-actions.pod:2516
10026 " lchown owner group path\n"
10029 " lchown власник група шлях\n"
10033 #: ../fish/guestfish-actions.pod:2518
10035 "Change the file owner to C<owner> and group to C<group>. This is like L</"
10036 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10041 #: ../fish/guestfish-actions.pod:2526
10046 #: ../fish/guestfish-actions.pod:2528
10049 " lgetxattr path name\n"
10052 " lgetxattr шлях назва\n"
10056 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3700
10058 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10059 "is a symlink, then this call returns an extended attribute from the symlink."
10063 #: ../fish/guestfish-actions.pod:2544
10064 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10065 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10068 #: ../fish/guestfish-actions.pod:2546
10070 msgstr "lgetxattrs"
10073 #: ../fish/guestfish-actions.pod:2548
10076 " lgetxattrs path\n"
10079 " lgetxattrs шлях\n"
10083 #: ../fish/guestfish-actions.pod:2550
10085 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10086 "it returns the extended attributes of the link itself."
10090 #: ../fish/guestfish-actions.pod:2554
10095 #: ../fish/guestfish-actions.pod:2556
10103 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3743
10105 "List all 9p filesystems attached to the guest. A list of mount tags is "
10110 #: ../fish/guestfish-actions.pod:2561
10111 msgid "list-devices"
10112 msgstr "list-devices"
10115 #: ../fish/guestfish-actions.pod:2563
10125 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3757
10126 msgid "List all the block devices."
10130 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3759
10131 msgid "The full block device names are returned, eg. C</dev/sda>."
10135 #: ../fish/guestfish-actions.pod:2571
10136 msgid "list-dm-devices"
10140 #: ../fish/guestfish-actions.pod:2573
10143 " list-dm-devices\n"
10148 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3774
10149 msgid "List all device mapper devices."
10153 #: ../fish/guestfish-actions.pod:2577
10155 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10156 "previous call to L</luks-open>."
10160 #: ../fish/guestfish-actions.pod:2580
10162 "Device mapper devices which correspond to logical volumes are I<not> "
10163 "returned in this list. Call L</lvs> if you want to list logical volumes."
10167 #: ../fish/guestfish-actions.pod:2584
10168 msgid "list-filesystems"
10169 msgstr "list-filesystems"
10172 #: ../fish/guestfish-actions.pod:2586
10175 " list-filesystems\n"
10178 " list-filesystems\n"
10182 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3794
10184 "This inspection command looks for filesystems on partitions, block devices "
10185 "and logical volumes, returning a list of devices containing filesystems and "
10190 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
10192 "The return value is a hash, where the keys are the devices containing "
10193 "filesystems, and the values are the filesystem types. For example:"
10197 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
10200 " \"/dev/sda1\" => \"ntfs\"\n"
10201 " \"/dev/sda2\" => \"ext2\"\n"
10202 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10203 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10208 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3807
10210 "The value can have the special value \"unknown\", meaning the content of the "
10211 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10215 #: ../fish/guestfish-actions.pod:2605
10217 "This command runs other libguestfs commands, which might include L</mount> "
10218 "and L</umount>, and therefore you should use this soon after launch and only "
10219 "when nothing is mounted."
10223 #: ../fish/guestfish-actions.pod:2609
10225 "Not all of the filesystems returned will be mountable. In particular, swap "
10226 "partitions are returned in the list. Also this command does not check that "
10227 "each filesystem found is valid and mountable, and some filesystems might be "
10228 "mountable but require special options. Filesystems may not all belong to a "
10229 "single logical operating system (use L</inspect-os> to look for OSes)."
10233 #: ../fish/guestfish-actions.pod:2617
10234 msgid "list-partitions"
10235 msgstr "list-partitions"
10238 #: ../fish/guestfish-actions.pod:2619
10241 " list-partitions\n"
10244 " list-partitions\n"
10248 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3836
10249 msgid "List all the partitions detected on all block devices."
10253 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3838
10254 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10258 #: ../fish/guestfish-actions.pod:2625
10260 "This does not return logical volumes. For that you will need to call L</"
10265 #: ../fish/guestfish-actions.pod:2630
10270 #: ../fish/guestfish-actions.pod:2632
10280 #: ../fish/guestfish-actions.pod:2634 ../src/guestfs-actions.pod:3857
10282 "List the files in C<directory> (relative to the root directory, there is no "
10283 "cwd) in the format of 'ls -la'."
10287 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3860
10289 "This command is mostly useful for interactive sessions. It is I<not> "
10290 "intended that you try to parse the output string."
10294 #: ../fish/guestfish-actions.pod:2640
10299 #: ../fish/guestfish-actions.pod:2642
10302 " ln target linkname\n"
10305 " ln призначення назва_посилання\n"
10309 #: ../fish/guestfish-actions.pod:2644 ../src/guestfs-actions.pod:3875
10310 msgid "This command creates a hard link using the C<ln> command."
10314 #: ../fish/guestfish-actions.pod:2646
10319 #: ../fish/guestfish-actions.pod:2648
10322 " ln-f target linkname\n"
10325 " ln-f призначення назва_посилання\n"
10329 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3888
10331 "This command creates a hard link using the C<ln -f> command. The I<-f> "
10332 "option removes the link (C<linkname>) if it exists already."
10336 #: ../fish/guestfish-actions.pod:2653
10341 #: ../fish/guestfish-actions.pod:2655
10344 " ln-s target linkname\n"
10347 " ln-s призначення назва_посилання\n"
10351 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:3902
10352 msgid "This command creates a symbolic link using the C<ln -s> command."
10356 #: ../fish/guestfish-actions.pod:2659
10361 #: ../fish/guestfish-actions.pod:2661
10364 " ln-sf target linkname\n"
10367 " ln-sf призначення назва_посилання\n"
10371 #: ../fish/guestfish-actions.pod:2663 ../src/guestfs-actions.pod:3915
10373 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10374 "option removes the link (C<linkname>) if it exists already."
10378 #: ../fish/guestfish-actions.pod:2666
10379 msgid "lremovexattr"
10380 msgstr "lremovexattr"
10383 #: ../fish/guestfish-actions.pod:2668
10386 " lremovexattr xattr path\n"
10391 #: ../fish/guestfish-actions.pod:2670
10393 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10394 "it removes an extended attribute of the link itself."
10398 #: ../fish/guestfish-actions.pod:2674
10403 #: ../fish/guestfish-actions.pod:2676
10413 #: ../fish/guestfish-actions.pod:2678 ../src/guestfs-actions.pod:3943
10415 "List the files in C<directory> (relative to the root directory, there is no "
10416 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
10420 #: ../fish/guestfish-actions.pod:2682
10422 "This command is mostly useful for interactive sessions. Programs should "
10423 "probably use L</readdir> instead."
10427 #: ../fish/guestfish-actions.pod:2685
10432 #: ../fish/guestfish-actions.pod:2687
10435 " lsetxattr xattr val vallen path\n"
10440 #: ../fish/guestfish-actions.pod:2689
10442 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10443 "sets an extended attribute of the link itself."
10447 #: ../fish/guestfish-actions.pod:2693
10452 #: ../fish/guestfish-actions.pod:2695
10462 #: ../fish/guestfish-actions.pod:2697 ../fish/guestfish-actions.pod:4505
10463 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:6758
10464 msgid "Returns file information for the given C<path>."
10468 #: ../fish/guestfish-actions.pod:2699
10470 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10471 "the link is stat-ed, not the file it refers to."
10475 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:3985
10476 msgid "This is the same as the C<lstat(2)> system call."
10480 #: ../fish/guestfish-actions.pod:2705
10485 #: ../fish/guestfish-actions.pod:2707
10488 " lstatlist path 'names ...'\n"
10493 #: ../fish/guestfish-actions.pod:2709
10495 "This call allows you to perform the L</lstat> operation on multiple files, "
10496 "where all files are in the directory C<path>. C<names> is the list of files "
10497 "from this directory."
10501 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4004
10503 "On return you get a list of stat structs, with a one-to-one correspondence "
10504 "to the C<names> list. If any name did not exist or could not be lstat'd, "
10505 "then the C<ino> field of that structure is set to C<-1>."
10509 #: ../fish/guestfish-actions.pod:2718
10511 "This call is intended for programs that want to efficiently list a directory "
10512 "contents without making many round-trips. See also L</lxattrlist> for a "
10513 "similarly efficient call for getting extended attributes. Very long "
10514 "directory listings might cause the protocol message size to be exceeded, "
10515 "causing this call to fail. The caller must split up such requests into "
10516 "smaller groups of names."
10520 #: ../fish/guestfish-actions.pod:2726
10521 msgid "luks-add-key"
10522 msgstr "luks-add-key"
10525 #: ../fish/guestfish-actions.pod:2728
10528 " luks-add-key device keyslot\n"
10533 #: ../fish/guestfish-actions.pod:2730 ../src/guestfs-actions.pod:4032
10535 "This command adds a new key on LUKS device C<device>. C<key> is any "
10536 "existing key, and is used to access the device. C<newkey> is the new key to "
10537 "add. C<keyslot> is the key slot that will be replaced."
10541 #: ../fish/guestfish-actions.pod:2735
10543 "Note that if C<keyslot> already contains a key, then this command will "
10544 "fail. You have to use L</luks-kill-slot> first to remove that key."
10548 #: ../fish/guestfish-actions.pod:2739 ../fish/guestfish-actions.pod:2761
10549 #: ../fish/guestfish-actions.pod:2774 ../fish/guestfish-actions.pod:2788
10550 #: ../fish/guestfish-actions.pod:2814 ../fish/guestfish-actions.pod:2824
10552 "This command has one or more key or passphrase parameters. Guestfish will "
10553 "prompt for these separately."
10557 #: ../fish/guestfish-actions.pod:2742
10559 msgstr "luks-close"
10562 #: ../fish/guestfish-actions.pod:2744
10565 " luks-close device\n"
10568 " luks-close пристрій\n"
10572 #: ../fish/guestfish-actions.pod:2746
10574 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10575 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
10576 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10581 #: ../fish/guestfish-actions.pod:2752
10582 msgid "luks-format"
10583 msgstr "luks-format"
10586 #: ../fish/guestfish-actions.pod:2754
10589 " luks-format device keyslot\n"
10594 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4073
10596 "This command erases existing data on C<device> and formats the device as a "
10597 "LUKS encrypted device. C<key> is the initial key, which is added to key "
10598 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
10602 #: ../fish/guestfish-actions.pod:2764 ../fish/guestfish-actions.pod:2777
10603 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3525
10604 #: ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4376
10605 #: ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:4421
10606 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:4080
10607 #: ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4246
10608 #: ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:6137
10609 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6595
10610 #: ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:7834
10612 "B<This command is dangerous. Without careful use you can easily destroy all "
10617 #: ../fish/guestfish-actions.pod:2767
10618 msgid "luks-format-cipher"
10619 msgstr "luks-format-cipher"
10622 #: ../fish/guestfish-actions.pod:2769
10625 " luks-format-cipher device keyslot cipher\n"
10630 #: ../fish/guestfish-actions.pod:2771
10632 "This command is the same as L</luks-format> but it also allows you to set "
10633 "the C<cipher> used."
10637 #: ../fish/guestfish-actions.pod:2780
10638 msgid "luks-kill-slot"
10639 msgstr "luks-kill-slot"
10642 #: ../fish/guestfish-actions.pod:2782
10645 " luks-kill-slot device keyslot\n"
10650 #: ../fish/guestfish-actions.pod:2784 ../src/guestfs-actions.pod:4120
10652 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10653 "device C<device>. C<key> must be one of the I<other> keys."
10657 #: ../fish/guestfish-actions.pod:2791
10662 #: ../fish/guestfish-actions.pod:2793
10665 " luks-open device mapname\n"
10670 #: ../fish/guestfish-actions.pod:2795 ../src/guestfs-actions.pod:4140
10672 "This command opens a block device which has been encrypted according to the "
10673 "Linux Unified Key Setup (LUKS) standard."
10677 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4143
10678 msgid "C<device> is the encrypted block device or partition."
10682 #: ../fish/guestfish-actions.pod:2800 ../src/guestfs-actions.pod:4145
10684 "The caller must supply one of the keys associated with the LUKS block "
10685 "device, in the C<key> parameter."
10689 #: ../fish/guestfish-actions.pod:2803 ../src/guestfs-actions.pod:4148
10691 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
10692 "writes to this block device are decrypted from and encrypted to the "
10693 "underlying C<device> respectively."
10697 #: ../fish/guestfish-actions.pod:2807
10699 "If this block device contains LVM volume groups, then calling L</vgscan> "
10700 "followed by L</vg-activate-all> will make them visible."
10704 #: ../fish/guestfish-actions.pod:2811
10705 msgid "Use L</list-dm-devices> to list all device mapper devices."
10709 #: ../fish/guestfish-actions.pod:2817
10710 msgid "luks-open-ro"
10711 msgstr "luks-open-ro"
10714 #: ../fish/guestfish-actions.pod:2819
10717 " luks-open-ro device mapname\n"
10722 #: ../fish/guestfish-actions.pod:2821
10724 "This is the same as L</luks-open> except that a read-only mapping is created."
10728 #: ../fish/guestfish-actions.pod:2827
10733 #: ../fish/guestfish-actions.pod:2829
10736 " lvcreate logvol volgroup mbytes\n"
10741 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4194
10743 "This creates an LVM logical volume called C<logvol> on the volume group "
10744 "C<volgroup>, with C<size> megabytes."
10748 #: ../fish/guestfish-actions.pod:2834
10749 msgid "lvm-canonical-lv-name"
10750 msgstr "lvm-canonical-lv-name"
10753 #: ../fish/guestfish-actions.pod:2836
10756 " lvm-canonical-lv-name lvname\n"
10761 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4207
10763 "This converts alternative naming schemes for LVs that you might find to the "
10764 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10769 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
10771 "This command returns an error if the C<lvname> parameter does not refer to a "
10776 #: ../fish/guestfish-actions.pod:2845
10777 msgid "See also L</is-lv>."
10778 msgstr "Див. також L</is-lv>."
10781 #: ../fish/guestfish-actions.pod:2847
10782 msgid "lvm-clear-filter"
10783 msgstr "lvm-clear-filter"
10786 #: ../fish/guestfish-actions.pod:2849
10789 " lvm-clear-filter\n"
10792 " lvm-clear-filter\n"
10796 #: ../fish/guestfish-actions.pod:2851
10798 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
10803 #: ../fish/guestfish-actions.pod:2854 ../fish/guestfish-actions.pod:2885
10804 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4271
10806 "This command also clears the LVM cache and performs a volume group scan."
10810 #: ../fish/guestfish-actions.pod:2857
10811 msgid "lvm-remove-all"
10812 msgstr "lvm-remove-all"
10815 #: ../fish/guestfish-actions.pod:2859
10818 " lvm-remove-all\n"
10821 " lvm-remove-all\n"
10825 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4241
10827 "This command removes all LVM logical volumes, volume groups and physical "
10832 #: ../fish/guestfish-actions.pod:2867
10833 msgid "lvm-set-filter"
10834 msgstr "lvm-set-filter"
10837 #: ../fish/guestfish-actions.pod:2869
10840 " lvm-set-filter 'devices ...'\n"
10843 " lvm-set-filter 'пристрої...'\n"
10847 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4257
10849 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10850 "block devices in the list C<devices>, and will ignore all other attached "
10855 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
10857 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10858 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
10859 "there are two types of duplication possible: either cloned PVs/VGs which "
10860 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10861 "same name. In normal operation you cannot create this situation, but you "
10862 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
10863 "inside the LVM metadata."
10867 #: ../fish/guestfish-actions.pod:2888 ../src/guestfs-actions.pod:4274
10868 msgid "You can filter whole block devices or individual partitions."
10872 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4276
10874 "You cannot use this if any VG is currently in use (eg. contains a mounted "
10875 "filesystem), even if you are not filtering out that VG."
10879 #: ../fish/guestfish-actions.pod:2894
10884 #: ../fish/guestfish-actions.pod:2896
10887 " lvremove device\n"
10890 " lvremove пристрій\n"
10894 #: ../fish/guestfish-actions.pod:2898 ../src/guestfs-actions.pod:4290
10896 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10897 "LV, such as C</dev/VG/LV>."
10901 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4293
10903 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10908 #: ../fish/guestfish-actions.pod:2904
10913 #: ../fish/guestfish-actions.pod:2906
10916 " lvrename logvol newlogvol\n"
10921 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4307
10922 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10926 #: ../fish/guestfish-actions.pod:2910
10931 #: ../fish/guestfish-actions.pod:2912
10934 " lvresize device mbytes\n"
10939 #: ../fish/guestfish-actions.pod:2914 ../src/guestfs-actions.pod:4320
10941 "This resizes (expands or shrinks) an existing LVM logical volume to "
10942 "C<mbytes>. When reducing, data in the reduced part is lost."
10946 #: ../fish/guestfish-actions.pod:2918
10947 msgid "lvresize-free"
10948 msgstr "lvresize-free"
10951 #: ../fish/guestfish-actions.pod:2920
10954 " lvresize-free lv percent\n"
10959 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4335
10961 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10962 "remaining free space in the volume group. Commonly you would call this with "
10963 "pc = 100 which expands the logical volume as much as possible, using all "
10964 "remaining free space in the volume group."
10968 #: ../fish/guestfish-actions.pod:2928
10973 #: ../fish/guestfish-actions.pod:2930
10983 #: ../fish/guestfish-actions.pod:2932 ../src/guestfs-actions.pod:4350
10985 "List all the logical volumes detected. This is the equivalent of the L<lvs"
10990 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4353
10992 "This returns a list of the logical volume device names (eg. C</dev/"
10993 "VolGroup00/LogVol00>)."
10997 #: ../fish/guestfish-actions.pod:2938
10998 msgid "See also L</lvs-full>, L</list-filesystems>."
10999 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11002 #: ../fish/guestfish-actions.pod:2940
11007 #: ../fish/guestfish-actions.pod:2942
11017 #: ../fish/guestfish-actions.pod:2944 ../src/guestfs-actions.pod:4369
11019 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11020 "(8)> command. The \"full\" version includes all fields."
11024 #: ../fish/guestfish-actions.pod:2947
11029 #: ../fish/guestfish-actions.pod:2949
11035 " lvuuid пристрій\n"
11039 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4384
11040 msgid "This command returns the UUID of the LVM LV C<device>."
11044 #: ../fish/guestfish-actions.pod:2953
11046 msgstr "lxattrlist"
11049 #: ../fish/guestfish-actions.pod:2955
11052 " lxattrlist path 'names ...'\n"
11057 #: ../fish/guestfish-actions.pod:2957 ../src/guestfs-actions.pod:4398
11059 "This call allows you to get the extended attributes of multiple files, where "
11060 "all files are in the directory C<path>. C<names> is the list of files from "
11065 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
11067 "On return you get a flat list of xattr structs which must be interpreted "
11068 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11069 "C<attrval> in this struct is zero-length to indicate there was an error "
11070 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11071 "number (the number of following attributes for this file, which could be C<"
11072 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11073 "for the first named file. This repeats for the second and subsequent files."
11077 #: ../fish/guestfish-actions.pod:2971
11079 "This call is intended for programs that want to efficiently list a directory "
11080 "contents without making many round-trips. See also L</lstatlist> for a "
11081 "similarly efficient call for getting standard stats. Very long directory "
11082 "listings might cause the protocol message size to be exceeded, causing this "
11083 "call to fail. The caller must split up such requests into smaller groups of "
11088 #: ../fish/guestfish-actions.pod:2979
11093 #: ../fish/guestfish-actions.pod:2981
11103 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4432
11104 msgid "Create a directory named C<path>."
11108 #: ../fish/guestfish-actions.pod:2985
11110 msgstr "mkdir-mode"
11113 #: ../fish/guestfish-actions.pod:2987
11116 " mkdir-mode path mode\n"
11119 " mkdir-mode шлях режим\n"
11123 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4445
11125 "This command creates a directory, setting the initial permissions of the "
11126 "directory to C<mode>."
11130 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4448
11132 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11133 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11138 #: ../fish/guestfish-actions.pod:2996
11139 msgid "See also L</mkdir>, L</umask>"
11140 msgstr "Див. також L</mkdir>, L</umask>"
11143 #: ../fish/guestfish-actions.pod:2998
11148 #: ../fish/guestfish-actions.pod:3000
11158 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4464
11160 "Create a directory named C<path>, creating any parent directories as "
11161 "necessary. This is like the C<mkdir -p> shell command."
11165 #: ../fish/guestfish-actions.pod:3005
11170 #: ../fish/guestfish-actions.pod:3007
11173 " mkdtemp template\n"
11176 " mkdtemp шаблон\n"
11180 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4477
11182 "This command creates a temporary directory. The C<template> parameter "
11183 "should be a full pathname for the temporary directory name with the final "
11184 "six characters being \"XXXXXX\"."
11188 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4482
11190 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11191 "being suitable for Windows filesystems."
11195 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4485
11196 msgid "The name of the temporary directory that was created is returned."
11200 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4488
11201 msgid "The temporary directory is created with mode 0700 and is owned by root."
11205 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4491
11207 "The caller is responsible for deleting the temporary directory and its "
11208 "contents after use."
11212 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4494
11213 msgid "See also: L<mkdtemp(3)>"
11217 #: ../fish/guestfish-actions.pod:3028
11222 #: ../fish/guestfish-actions.pod:3030
11225 " mke2fs-J fstype blocksize device journal\n"
11230 #: ../fish/guestfish-actions.pod:3032 ../src/guestfs-actions.pod:4510
11232 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11233 "C<journal>. It is equivalent to the command:"
11237 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
11240 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11243 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11247 #: ../fish/guestfish-actions.pod:3038
11248 msgid "See also L</mke2journal>."
11249 msgstr "Див. також L</mke2journal>."
11252 #: ../fish/guestfish-actions.pod:3040
11257 #: ../fish/guestfish-actions.pod:3042
11260 " mke2fs-JL fstype blocksize device label\n"
11265 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4531
11267 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11268 "the journal labeled C<label>."
11272 #: ../fish/guestfish-actions.pod:3047
11273 msgid "See also L</mke2journal-L>."
11274 msgstr "Див. також L</mke2journal-L>."
11277 #: ../fish/guestfish-actions.pod:3049
11282 #: ../fish/guestfish-actions.pod:3051
11285 " mke2fs-JU fstype blocksize device uuid\n"
11290 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4549
11292 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11293 "the journal with UUID C<uuid>."
11297 #: ../fish/guestfish-actions.pod:3056
11298 msgid "See also L</mke2journal-U>."
11299 msgstr "Див. також L</mke2journal-U>."
11302 #: ../fish/guestfish-actions.pod:3058
11303 msgid "mke2journal"
11304 msgstr "mke2journal"
11307 #: ../fish/guestfish-actions.pod:3060
11310 " mke2journal blocksize device\n"
11315 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4565
11317 "This creates an ext2 external journal on C<device>. It is equivalent to the "
11322 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4568
11325 " mke2fs -O journal_dev -b blocksize device\n"
11330 #: ../fish/guestfish-actions.pod:3067
11331 msgid "mke2journal-L"
11332 msgstr "mke2journal-L"
11335 #: ../fish/guestfish-actions.pod:3069
11338 " mke2journal-L blocksize label device\n"
11343 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4582
11344 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11348 #: ../fish/guestfish-actions.pod:3073
11349 msgid "mke2journal-U"
11350 msgstr "mke2journal-U"
11353 #: ../fish/guestfish-actions.pod:3075
11356 " mke2journal-U blocksize uuid device\n"
11361 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4596
11362 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11366 #: ../fish/guestfish-actions.pod:3079
11371 #: ../fish/guestfish-actions.pod:3081
11374 " mkfifo mode path\n"
11377 " mkfifo режим шлях\n"
11381 #: ../fish/guestfish-actions.pod:3083
11383 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
11384 "is just a convenient wrapper around L</mknod>."
11388 #: ../fish/guestfish-actions.pod:3089
11393 #: ../fish/guestfish-actions.pod:3091
11396 " mkfs fstype device\n"
11399 " mkfs тип_файлової_системи пристрій\n"
11403 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4626
11405 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11406 "volume). The filesystem type is C<fstype>, for example C<ext3>."
11410 #: ../fish/guestfish-actions.pod:3097
11415 #: ../fish/guestfish-actions.pod:3099
11418 " mkfs-b fstype blocksize device\n"
11423 #: ../fish/guestfish-actions.pod:3101
11425 "This call is similar to L</mkfs>, but it allows you to control the block "
11426 "size of the resulting filesystem. Supported block sizes depend on the "
11427 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11431 #: ../fish/guestfish-actions.pod:3106 ../fish/guestfish-actions.pod:3133
11432 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4692
11434 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11439 #: ../fish/guestfish-actions.pod:3109
11441 "This function is deprecated. In new code, use the L</mkfs_opts> call "
11446 #: ../fish/guestfish-actions.pod:3116
11451 #: ../fish/guestfish-actions.pod:3118
11454 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11459 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11461 "This function creates a filesystem on C<device>. The filesystem type is "
11462 "C<fstype>, for example C<ext3>."
11466 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11467 msgid "C<blocksize>"
11468 msgstr "C<blocksize>"
11471 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11473 "The filesystem block size. Supported block sizes depend on the filesystem "
11474 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11479 #: ../fish/guestfish-actions.pod:3136 ../src/guestfs-actions.pod:4695
11480 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11484 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4697
11485 msgid "C<features>"
11486 msgstr "C<features>"
11489 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
11490 msgid "This passes the I<-O> parameter to the external mkfs program."
11494 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
11496 "For certain filesystem types, this allows extra filesystem features to be "
11497 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11501 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
11503 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11508 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4708
11513 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4710
11515 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11516 "sets the inode size (only for ext2/3/4 filesystems at present)."
11520 #: ../fish/guestfish-actions.pod:3154 ../src/guestfs-actions.pod:4713
11521 msgid "C<sectorsize>"
11525 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4715
11527 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11528 "sets sector size for ufs filesystem."
11532 #: ../fish/guestfish-actions.pod:3163
11533 msgid "mkmountpoint"
11534 msgstr "mkmountpoint"
11537 #: ../fish/guestfish-actions.pod:3165
11540 " mkmountpoint exemptpath\n"
11545 #: ../fish/guestfish-actions.pod:3167
11547 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11548 "to create extra mountpoints before mounting the first filesystem."
11552 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4758
11554 "These calls are I<only> necessary in some very limited circumstances, mainly "
11555 "the case where you want to mount a mix of unrelated and/or read-only "
11556 "filesystems together."
11560 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
11562 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11563 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11564 "inside that. You can unpack this as follows in guestfish:"
11568 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4767
11571 " add-ro Fedora-11-i686-Live.iso\n"
11573 " mkmountpoint /cd\n"
11574 " mkmountpoint /sqsh\n"
11575 " mkmountpoint /ext3fs\n"
11576 " mount /dev/sda /cd\n"
11577 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11578 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11581 " add-ro Fedora-11-i686-Live.iso\n"
11583 " mkmountpoint /cd\n"
11584 " mkmountpoint /sqsh\n"
11585 " mkmountpoint /ext3fs\n"
11586 " mount /dev/sda /cd\n"
11587 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11588 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11592 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4776
11593 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11597 #: ../fish/guestfish-actions.pod:3191
11599 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
11600 "unexpected errors if you try to mix these calls. It is safest to manually "
11601 "unmount filesystems and remove mountpoints after use."
11605 #: ../fish/guestfish-actions.pod:3195
11607 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11608 "for this to work for manual mountpoints, you must ensure that the innermost "
11609 "mountpoints have the longest pathnames, as in the example code above."
11613 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4787
11615 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11619 #: ../fish/guestfish-actions.pod:3202
11621 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11622 "L</umount-all> to be called when the handle is closed which can also trigger "
11627 #: ../fish/guestfish-actions.pod:3206
11632 #: ../fish/guestfish-actions.pod:3208
11635 " mknod mode devmajor devminor path\n"
11640 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4806
11642 "This call creates block or character special devices, or named pipes (FIFOs)."
11646 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4809
11648 "The C<mode> parameter should be the mode, using the standard constants. "
11649 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11650 "used when creating block and character special devices."
11654 #: ../fish/guestfish-actions.pod:3218
11656 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11657 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11658 "regular file). These constants are available in the standard Linux header "
11659 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11660 "wrappers around this command which bitwise OR in the appropriate constant "
11665 #: ../fish/guestfish-actions.pod:3228
11670 #: ../fish/guestfish-actions.pod:3230
11673 " mknod-b mode devmajor devminor path\n"
11678 #: ../fish/guestfish-actions.pod:3232
11680 "This call creates a block device node called C<path> with mode C<mode> and "
11681 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11682 "wrapper around L</mknod>."
11686 #: ../fish/guestfish-actions.pod:3238
11691 #: ../fish/guestfish-actions.pod:3240
11694 " mknod-c mode devmajor devminor path\n"
11699 #: ../fish/guestfish-actions.pod:3242
11701 "This call creates a char device node called C<path> with mode C<mode> and "
11702 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
11703 "wrapper around L</mknod>."
11707 #: ../fish/guestfish-actions.pod:3248
11712 #: ../fish/guestfish-actions.pod:3250
11718 " mkswap пристрій\n"
11722 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4872
11723 msgid "Create a swap partition on C<device>."
11727 #: ../fish/guestfish-actions.pod:3254
11732 #: ../fish/guestfish-actions.pod:3256
11735 " mkswap-L label device\n"
11738 " mkswap-L мітка пристрій\n"
11742 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4885
11743 msgid "Create a swap partition on C<device> with label C<label>."
11747 #: ../fish/guestfish-actions.pod:3260 ../src/guestfs-actions.pod:4887
11749 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11750 "sda>), just to a partition. This appears to be a limitation of the kernel "
11755 #: ../fish/guestfish-actions.pod:3264
11760 #: ../fish/guestfish-actions.pod:3266
11763 " mkswap-U uuid device\n"
11766 " mkswap-U uuid пристрій\n"
11770 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4902
11771 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11775 #: ../fish/guestfish-actions.pod:3270
11776 msgid "mkswap-file"
11777 msgstr "mkswap-file"
11780 #: ../fish/guestfish-actions.pod:3272
11783 " mkswap-file path\n"
11786 " mkswap-file шлях\n"
11790 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:4914
11791 msgid "Create a swap file."
11792 msgstr "Створити файл резервної пам’яті."
11795 #: ../fish/guestfish-actions.pod:3276
11797 "This command just writes a swap file signature to an existing file. To "
11798 "create the file itself, use something like L</fallocate>."
11802 #: ../fish/guestfish-actions.pod:3279
11807 #: ../fish/guestfish-actions.pod:3281
11810 " modprobe modulename\n"
11813 " modprobe назва_модуля\n"
11817 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:4929
11818 msgid "This loads a kernel module in the appliance."
11822 #: ../fish/guestfish-actions.pod:3285 ../src/guestfs-actions.pod:4931
11824 "The kernel module must have been whitelisted when libguestfs was built (see "
11825 "C<appliance/kmod.whitelist.in> in the source)."
11829 #: ../fish/guestfish-actions.pod:3288
11834 #: ../fish/guestfish-actions.pod:3290
11837 " mount device mountpoint\n"
11840 " mount пристрій точка_монтування\n"
11844 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:4945
11846 "Mount a guest disk at a position in the filesystem. Block devices are named "
11847 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
11848 "those block devices contain partitions, they will have the usual names (eg. "
11849 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
11853 #: ../fish/guestfish-actions.pod:3298 ../src/guestfs-actions.pod:4951
11855 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11856 "mounted on C</> before others can be mounted. Other filesystems can only be "
11857 "mounted on directories which already exist."
11861 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4956
11863 "The mounted filesystem is writable, if we have sufficient permissions on the "
11864 "underlying device."
11868 #: ../fish/guestfish-actions.pod:3306
11870 "B<Important note:> When you use this call, the filesystem options C<sync> "
11871 "and C<noatime> are set implicitly. This was originally done because we "
11872 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11873 "very large negative performance impact and negligible effect on "
11874 "reliability. Therefore we recommend that you avoid using L</mount> in any "
11875 "code that needs performance, and instead use L</mount-options> (use an empty "
11876 "string for the first parameter if you don't want any options)."
11880 #: ../fish/guestfish-actions.pod:3316
11882 "This function is deprecated. In new code, use the L</mount_options> call "
11887 #: ../fish/guestfish-actions.pod:3323
11892 #: ../fish/guestfish-actions.pod:3325
11895 " mount-9p mounttag mountpoint [options:..]\n"
11900 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:4995
11902 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11907 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:4998
11909 "If required, C<trans=virtio> will be automatically added to the options. "
11910 "Any other options required can be passed in the optional C<options> "
11915 #: ../fish/guestfish-actions.pod:3336
11917 msgstr "mount-loop"
11920 #: ../fish/guestfish-actions.pod:3338
11923 " mount-loop file mountpoint\n"
11928 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5037
11930 "This command lets you mount C<file> (a filesystem image in a file) on a "
11931 "mount point. It is entirely equivalent to the command C<mount -o loop file "
11936 #: ../fish/guestfish-actions.pod:3344
11937 msgid "mount-options"
11938 msgstr "mount-options"
11941 #: ../fish/guestfish-actions.pod:3346
11944 " mount-options options device mountpoint\n"
11949 #: ../fish/guestfish-actions.pod:3348
11951 "This is the same as the L</mount> command, but it allows you to set the "
11952 "mount options as for the L<mount(8)> I<-o> flag."
11956 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5057
11958 "If the C<options> parameter is an empty string, then no options are passed "
11959 "(all options default to whatever the filesystem uses)."
11963 #: ../fish/guestfish-actions.pod:3356
11968 #: ../fish/guestfish-actions.pod:3358
11971 " mount-ro device mountpoint\n"
11974 " mount-ro пристрій точка_монтування\n"
11978 #: ../fish/guestfish-actions.pod:3360
11980 "This is the same as the L</mount> command, but it mounts the filesystem with "
11981 "the read-only (I<-o ro>) flag."
11985 #: ../fish/guestfish-actions.pod:3363
11990 #: ../fish/guestfish-actions.pod:3365
11993 " mount-vfs options vfstype device mountpoint\n"
11998 #: ../fish/guestfish-actions.pod:3367
12000 "This is the same as the L</mount> command, but it allows you to set both the "
12001 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12005 #: ../fish/guestfish-actions.pod:3371
12006 msgid "mountpoints"
12007 msgstr "mountpoints"
12010 #: ../fish/guestfish-actions.pod:3373
12020 #: ../fish/guestfish-actions.pod:3375
12022 "This call is similar to L</mounts>. That call returns a list of devices. "
12023 "This one returns a hash table (map) of device name to directory where the "
12024 "device is mounted."
12028 #: ../fish/guestfish-actions.pod:3379
12033 #: ../fish/guestfish-actions.pod:3381
12043 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5118
12045 "This returns the list of currently mounted filesystems. It returns the list "
12046 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12050 #: ../fish/guestfish-actions.pod:3386 ../src/guestfs-actions.pod:5121
12051 msgid "Some internal mounts are not shown."
12055 #: ../fish/guestfish-actions.pod:3388
12056 msgid "See also: L</mountpoints>"
12057 msgstr "Див. також L</mountpoints>"
12060 #: ../fish/guestfish-actions.pod:3390
12065 #: ../fish/guestfish-actions.pod:3392
12071 " mv джерело призначення\n"
12075 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5138
12077 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12078 "destination filename or destination directory."
12082 #: ../fish/guestfish-actions.pod:3397
12083 msgid "ntfs-3g-probe"
12084 msgstr "ntfs-3g-probe"
12087 #: ../fish/guestfish-actions.pod:3399
12090 " ntfs-3g-probe true|false device\n"
12095 #: ../fish/guestfish-actions.pod:3401 ../src/guestfs-actions.pod:5152
12097 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12098 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12099 "write, and some cannot be mounted at all)."
12103 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
12105 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12106 "can be mounted read-write. Set it to false if you want to test if the "
12107 "volume can be mounted read-only."
12111 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
12113 "The return value is an integer which C<0> if the operation would succeed, or "
12114 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12118 #: ../fish/guestfish-actions.pod:3413
12120 msgstr "ntfsresize"
12123 #: ../fish/guestfish-actions.pod:3415
12126 " ntfsresize device\n"
12129 " ntfsresize пристрій\n"
12133 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3441
12134 #: ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5213
12136 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12137 "size of the underlying device."
12141 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5177
12143 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12144 "consistency check (for safety). You have to boot into Windows to perform "
12145 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12146 "resize filesystems which have been marked in this way. So in effect it is "
12147 "not possible to call ntfsresize multiple times on a single filesystem "
12148 "without booting into Windows between each resize."
12152 #: ../fish/guestfish-actions.pod:3428 ../fish/guestfish-actions.pod:3467
12153 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5239
12154 msgid "See also L<ntfsresize(8)>."
12158 #: ../fish/guestfish-actions.pod:3430 ../fish/guestfish-actions.pod:3478
12160 "This function is deprecated. In new code, use the L</ntfsresize_opts> call "
12165 #: ../fish/guestfish-actions.pod:3437
12166 msgid "ntfsresize-opts"
12170 #: ../fish/guestfish-actions.pod:3439
12173 " ntfsresize-opts device [size:..] [force:..]\n"
12178 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5222
12180 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12181 "resized to fit the container (eg. partition)."
12185 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5225
12190 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5227
12192 "If this option is true, then force the resize of the filesystem even if the "
12193 "filesystem is marked as requiring a consistency check."
12197 #: ../fish/guestfish-actions.pod:3458
12199 "After the resize operation, the filesystem is always marked as requiring a "
12200 "consistency check (for safety). You have to boot into Windows to perform "
12201 "this check and clear this condition. If you I<don't> set the C<force> "
12202 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12203 "a single filesystem without booting into Windows between each resize."
12207 #: ../fish/guestfish-actions.pod:3471
12208 msgid "ntfsresize-size"
12209 msgstr "ntfsresize-size"
12212 #: ../fish/guestfish-actions.pod:3473
12215 " ntfsresize-size device size\n"
12220 #: ../fish/guestfish-actions.pod:3475
12222 "This command is the same as L</ntfsresize> except that it allows you to "
12223 "specify the new size (in bytes) explicitly."
12227 #: ../fish/guestfish-actions.pod:3485
12232 #: ../fish/guestfish-actions.pod:3487
12235 " part-add device prlogex startsect endsect\n"
12240 #: ../fish/guestfish-actions.pod:3489
12242 "This command adds a partition to C<device>. If there is no partition table "
12243 "on the device, call L</part-init> first."
12247 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5300
12249 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12250 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12251 "C<logical>) and C<e> (or C<extended>) partition types."
12255 #: ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:5305
12257 "C<startsect> and C<endsect> are the start and end of the partition in "
12258 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12259 "from the end of the disk (C<-1> is the last sector)."
12263 #: ../fish/guestfish-actions.pod:3501
12265 "Creating a partition which covers the whole disk is not so easy. Use L</"
12266 "part-disk> to do that."
12270 #: ../fish/guestfish-actions.pod:3504
12275 #: ../fish/guestfish-actions.pod:3506
12278 " part-del device partnum\n"
12283 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5323
12284 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12288 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5325
12290 "Note that in the case of MBR partitioning, deleting an extended partition "
12291 "also deletes any logical partitions it contains."
12295 #: ../fish/guestfish-actions.pod:3514
12300 #: ../fish/guestfish-actions.pod:3516
12303 " part-disk device parttype\n"
12306 " part-disk пристрій тип_розділу\n"
12310 #: ../fish/guestfish-actions.pod:3518
12312 "This command is simply a combination of L</part-init> followed by L</part-"
12313 "add> to create a single primary partition covering the whole disk."
12317 #: ../fish/guestfish-actions.pod:3522
12319 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12320 "possible values are described in L</part-init>."
12324 #: ../fish/guestfish-actions.pod:3528
12325 msgid "part-get-bootable"
12326 msgstr "part-get-bootable"
12329 #: ../fish/guestfish-actions.pod:3530
12332 " part-get-bootable device partnum\n"
12337 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5361
12339 "This command returns true if the partition C<partnum> on C<device> has the "
12340 "bootable flag set."
12344 #: ../fish/guestfish-actions.pod:3535
12345 msgid "See also L</part-set-bootable>."
12346 msgstr "Див. також L</part-set-bootable>."
12349 #: ../fish/guestfish-actions.pod:3537
12350 msgid "part-get-mbr-id"
12351 msgstr "part-get-mbr-id"
12354 #: ../fish/guestfish-actions.pod:3539
12357 " part-get-mbr-id device partnum\n"
12362 #: ../fish/guestfish-actions.pod:3541 ../src/guestfs-actions.pod:5377
12364 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12365 "partition C<partnum>."
12369 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3688
12371 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
12372 "undefined results for other partition table types (see L</part-get-"
12377 #: ../fish/guestfish-actions.pod:3548
12378 msgid "part-get-parttype"
12379 msgstr "part-get-parttype"
12382 #: ../fish/guestfish-actions.pod:3550
12385 " part-get-parttype device\n"
12388 " part-get-parttype пристрій\n"
12392 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5394
12394 "This command examines the partition table on C<device> and returns the "
12395 "partition table type (format) being used."
12399 #: ../fish/guestfish-actions.pod:3555
12401 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12402 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
12403 "possible, although unusual. See L</part-init> for a full list."
12407 #: ../fish/guestfish-actions.pod:3560
12412 #: ../fish/guestfish-actions.pod:3562
12415 " part-init device parttype\n"
12420 #: ../fish/guestfish-actions.pod:3564 ../src/guestfs-actions.pod:5414
12422 "This creates an empty partition table on C<device> of one of the partition "
12423 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
12424 "(for large disks)."
12428 #: ../fish/guestfish-actions.pod:3568
12430 "Initially there are no partitions. Following this, you should call L</part-"
12431 "add> for each partition required."
12435 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5421
12436 msgid "Possible values for C<parttype> are:"
12440 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
12445 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5427
12450 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12451 msgid "Intel EFI / GPT partition table."
12455 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12457 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12458 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
12459 "the C<mbr> format."
12463 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12468 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12473 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12475 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12476 "Windows. This partition type will B<only> work for device sizes up to 2 "
12477 "TB. For large disks we recommend using C<gpt>."
12481 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
12483 "Other partition table types that may work but are not supported include:"
12487 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12492 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12493 msgid "AIX disk labels."
12494 msgstr "Мітки дисків AIX."
12497 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12499 #| msgid "B<amiga> | B<rdb>"
12501 msgstr "B<amiga> | B<rdb>"
12504 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12509 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12510 msgid "Amiga \"Rigid Disk Block\" format."
12511 msgstr "Формат \"Rigid Disk Block\" Amiga."
12514 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12519 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
12520 msgid "BSD disk labels."
12521 msgstr "Мітки дисків BSD."
12524 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
12529 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
12530 msgid "DASD, used on IBM mainframes."
12531 msgstr "DASD, використовувалися у мейнфреймах IBM."
12534 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
12539 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
12540 msgid "MIPS/SGI volumes."
12541 msgstr "Томи MIPS/SGI."
12544 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
12549 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
12550 msgid "Old Mac partition format. Modern Macs use C<gpt>."
12551 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12554 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
12559 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
12560 msgid "NEC PC-98 format, common in Japan apparently."
12561 msgstr "Формат NEC PC-98, поширений у Японії."
12564 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
12569 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
12570 msgid "Sun disk labels."
12571 msgstr "Мітки дисків Sun."
12574 #: ../fish/guestfish-actions.pod:3637
12579 #: ../fish/guestfish-actions.pod:3639
12582 " part-list device\n"
12585 " part-list device\n"
12589 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12591 "This command parses the partition table on C<device> and returns the list of "
12592 "partitions found."
12596 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5500
12597 msgid "The fields in the returned structure are:"
12601 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
12602 msgid "B<part_num>"
12603 msgstr "B<part_num>"
12606 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5506
12607 msgid "Partition number, counting from 1."
12611 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
12612 msgid "B<part_start>"
12613 msgstr "B<part_start>"
12616 #: ../fish/guestfish-actions.pod:3654
12618 "Start of the partition I<in bytes>. To get sectors you have to divide by "
12619 "the device's sector size, see L</blockdev-getss>."
12623 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5513
12624 msgid "B<part_end>"
12625 msgstr "B<part_end>"
12628 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5515
12629 msgid "End of the partition in bytes."
12633 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
12634 msgid "B<part_size>"
12635 msgstr "B<part_size>"
12638 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
12639 msgid "Size of the partition in bytes."
12643 #: ../fish/guestfish-actions.pod:3667
12644 msgid "part-set-bootable"
12645 msgstr "part-set-bootable"
12648 #: ../fish/guestfish-actions.pod:3669
12651 " part-set-bootable device partnum true|false\n"
12656 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5537
12658 "This sets the bootable flag on partition numbered C<partnum> on device "
12659 "C<device>. Note that partitions are numbered from 1."
12663 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5540
12665 "The bootable flag is used by some operating systems (notably Windows) to "
12666 "determine which partition to boot from. It is by no means universally "
12671 #: ../fish/guestfish-actions.pod:3678
12672 msgid "part-set-mbr-id"
12673 msgstr "part-set-mbr-id"
12676 #: ../fish/guestfish-actions.pod:3680
12679 " part-set-mbr-id device partnum idbyte\n"
12684 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5556
12686 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12687 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
12688 "documentation are in fact hexadecimal numbers, but usually documented "
12689 "without any leading \"0x\" which might be confusing."
12693 #: ../fish/guestfish-actions.pod:3692
12694 msgid "part-set-name"
12695 msgstr "part-set-name"
12698 #: ../fish/guestfish-actions.pod:3694
12701 " part-set-name device partnum name\n"
12706 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5578
12708 "This sets the partition name on partition numbered C<partnum> on device "
12709 "C<device>. Note that partitions are numbered from 1."
12713 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5581
12715 "The partition name can only be set on certain types of partition table. "
12716 "This works on C<gpt> but not on C<mbr> partitions."
12720 #: ../fish/guestfish-actions.pod:3702
12721 msgid "part-to-dev"
12722 msgstr "part-to-dev"
12725 #: ../fish/guestfish-actions.pod:3704
12728 " part-to-dev partition\n"
12731 " part-to-dev розділ\n"
12735 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5594
12737 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12738 "partition number, returning the device name (eg. \"/dev/sdb\")."
12742 #: ../fish/guestfish-actions.pod:3710
12744 "The named partition must exist, for example as a string returned from L</"
12745 "list-partitions>."
12749 #: ../fish/guestfish-actions.pod:3713
12750 msgid "ping-daemon"
12751 msgstr "ping-daemon"
12754 #: ../fish/guestfish-actions.pod:3715
12764 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5611
12766 "This is a test probe into the guestfs daemon running inside the qemu "
12767 "subprocess. Calling this function checks that the daemon responds to the "
12768 "ping message, without affecting the daemon or attached block device(s) in "
12773 #: ../fish/guestfish-actions.pod:3722
12778 #: ../fish/guestfish-actions.pod:3724
12781 " pread path count offset\n"
12786 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5629
12788 "This command lets you read part of a file. It reads C<count> bytes of the "
12789 "file, starting at C<offset>, from file C<path>."
12793 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3744
12794 #: ../src/guestfs-actions.pod:5632 ../src/guestfs-actions.pod:5658
12796 "This may read fewer bytes than requested. For further details see the "
12797 "L<pread(2)> system call."
12801 #: ../fish/guestfish-actions.pod:3732
12802 msgid "See also L</pwrite>, L</pread-device>."
12803 msgstr "Див. також L</pwrite>, L</pread-device>."
12806 #: ../fish/guestfish-actions.pod:3737
12807 msgid "pread-device"
12808 msgstr "pread-device"
12811 #: ../fish/guestfish-actions.pod:3739
12814 " pread-device device count offset\n"
12819 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5655
12821 "This command lets you read part of a file. It reads C<count> bytes of "
12822 "C<device>, starting at C<offset>."
12826 #: ../fish/guestfish-actions.pod:3747
12827 msgid "See also L</pread>."
12828 msgstr "Див. також L</pread>."
12831 #: ../fish/guestfish-actions.pod:3752
12836 #: ../fish/guestfish-actions.pod:3754
12839 " pvcreate device\n"
12842 " pvcreate пристрій\n"
12846 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5678
12848 "This creates an LVM physical volume on the named C<device>, where C<device> "
12849 "should usually be a partition name such as C</dev/sda1>."
12853 #: ../fish/guestfish-actions.pod:3760
12858 #: ../fish/guestfish-actions.pod:3762
12861 " pvremove device\n"
12864 " pvremove пристрій\n"
12868 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5692
12870 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12875 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5695
12877 "The implementation uses the C<pvremove> command which refuses to wipe "
12878 "physical volumes that contain any volume groups, so you have to remove those "
12883 #: ../fish/guestfish-actions.pod:3771
12888 #: ../fish/guestfish-actions.pod:3773
12891 " pvresize device\n"
12894 " pvresize пристрій\n"
12898 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5709
12900 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12901 "the new size of the underlying device."
12905 #: ../fish/guestfish-actions.pod:3778
12906 msgid "pvresize-size"
12907 msgstr "pvresize-size"
12910 #: ../fish/guestfish-actions.pod:3780
12913 " pvresize-size device size\n"
12918 #: ../fish/guestfish-actions.pod:3782
12920 "This command is the same as L</pvresize> except that it allows you to "
12921 "specify the new size (in bytes) explicitly."
12925 #: ../fish/guestfish-actions.pod:3785
12930 #: ../fish/guestfish-actions.pod:3787
12940 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5735
12942 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12947 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5738
12949 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12954 #: ../fish/guestfish-actions.pod:3795
12955 msgid "See also L</pvs-full>."
12956 msgstr "Див. також L</pvs-full>."
12959 #: ../fish/guestfish-actions.pod:3797
12964 #: ../fish/guestfish-actions.pod:3799
12974 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5754
12976 "List all the physical volumes detected. This is the equivalent of the L<pvs"
12977 "(8)> command. The \"full\" version includes all fields."
12981 #: ../fish/guestfish-actions.pod:3804
12986 #: ../fish/guestfish-actions.pod:3806
12992 " pvuuid пристрій\n"
12996 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5769
12997 msgid "This command returns the UUID of the LVM PV C<device>."
13001 #: ../fish/guestfish-actions.pod:3810
13006 #: ../fish/guestfish-actions.pod:3812
13009 " pwrite path content offset\n"
13014 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5785
13016 "This command writes to part of a file. It writes the data buffer C<content> "
13017 "to the file C<path> starting at offset C<offset>."
13021 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5788
13023 "This command implements the L<pwrite(2)> system call, and like that system "
13024 "call it may not write the full data requested. The return value is the "
13025 "number of bytes that were actually written to the file. This could even be "
13026 "0, although short writes are unlikely for regular files in ordinary "
13031 #: ../fish/guestfish-actions.pod:3823
13032 msgid "See also L</pread>, L</pwrite-device>."
13033 msgstr "Див. також L</pread>, L</pwrite-device>."
13036 #: ../fish/guestfish-actions.pod:3828
13037 msgid "pwrite-device"
13038 msgstr "pwrite-device"
13041 #: ../fish/guestfish-actions.pod:3830
13044 " pwrite-device device content offset\n"
13049 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5812
13051 "This command writes to part of a device. It writes the data buffer "
13052 "C<content> to C<device> starting at offset C<offset>."
13056 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5815
13058 "This command implements the L<pwrite(2)> system call, and like that system "
13059 "call it may not write the full data requested (although short writes to disk "
13060 "devices and partitions are probably impossible with standard Linux kernels)."
13064 #: ../fish/guestfish-actions.pod:3840
13065 msgid "See also L</pwrite>."
13066 msgstr "Див. також L</pwrite>."
13069 #: ../fish/guestfish-actions.pod:3845
13074 #: ../fish/guestfish-actions.pod:3847
13077 " read-file path\n"
13080 " read-file шлях\n"
13084 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5836
13085 msgid "This calls returns the contents of the file C<path> as a buffer."
13089 #: ../fish/guestfish-actions.pod:3852
13091 "Unlike L</cat>, this function can correctly handle files that contain "
13092 "embedded ASCII NUL characters. However unlike L</download>, this function "
13093 "is limited in the total size of file that can be handled."
13097 #: ../fish/guestfish-actions.pod:3860
13099 msgstr "read-lines"
13102 #: ../fish/guestfish-actions.pod:3862
13105 " read-lines path\n"
13108 " read-lines шлях\n"
13112 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5861
13114 "The file contents are returned as a list of lines. Trailing C<LF> and "
13115 "C<CRLF> character sequences are I<not> returned."
13119 #: ../fish/guestfish-actions.pod:3869
13121 "Note that this function cannot correctly handle binary files (specifically, "
13122 "files containing C<\\0> character which is treated as end of line). For "
13123 "those you need to use the L</read-file> function which has a more complex "
13128 #: ../fish/guestfish-actions.pod:3874
13133 #: ../fish/guestfish-actions.pod:3876
13139 " readdir каталог\n"
13143 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
13144 msgid "This returns the list of directory entries in directory C<dir>."
13148 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
13150 "All entries in the directory are returned, including C<.> and C<..>. The "
13151 "entries are I<not> sorted, but returned in the same order as the underlying "
13156 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
13158 "Also this call returns basic file type information about each file. The "
13159 "C<ftyp> field will contain one of the following characters:"
13163 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13168 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13169 msgid "Block special"
13170 msgstr "Блоковий особливий"
13173 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13178 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13179 msgid "Char special"
13180 msgstr "Символьний особливий"
13183 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13188 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13193 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13198 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
13199 msgid "FIFO (named pipe)"
13200 msgstr "FIFO (іменований канал)"
13203 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
13208 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
13209 msgid "Symbolic link"
13210 msgstr "Символічне посилання"
13213 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
13218 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
13219 msgid "Regular file"
13220 msgstr "Звичайний файл"
13223 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
13228 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
13233 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
13238 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
13239 msgid "Unknown file type"
13240 msgstr "Невідомий тип файла"
13243 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
13248 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
13250 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13254 #: ../fish/guestfish-actions.pod:3928
13256 "This function is primarily intended for use by programs. To get a simple "
13257 "list of names, use L</ls>. To get a printable directory for human "
13258 "consumption, use L</ll>."
13262 #: ../fish/guestfish-actions.pod:3932
13267 #: ../fish/guestfish-actions.pod:3934
13277 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:5947
13278 msgid "This command reads the target of a symbolic link."
13282 #: ../fish/guestfish-actions.pod:3938
13283 msgid "readlinklist"
13284 msgstr "readlinklist"
13287 #: ../fish/guestfish-actions.pod:3940
13290 " readlinklist path 'names ...'\n"
13295 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:5961
13297 "This call allows you to do a C<readlink> operation on multiple files, where "
13298 "all files are in the directory C<path>. C<names> is the list of files from "
13303 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
13305 "On return you get a list of strings, with a one-to-one correspondence to the "
13306 "C<names> list. Each string is the value of the symbolic link."
13310 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
13312 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13313 "result string is the empty string C<\"\">. However the whole operation is "
13314 "completed even if there were C<readlink(2)> errors, and so you can call this "
13315 "function with names where you don't know if they are symbolic links already "
13316 "(albeit slightly less efficient)."
13320 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5976
13322 "This call is intended for programs that want to efficiently list a directory "
13323 "contents without making many round-trips. Very long directory listings "
13324 "might cause the protocol message size to be exceeded, causing this call to "
13325 "fail. The caller must split up such requests into smaller groups of names."
13329 #: ../fish/guestfish-actions.pod:3964
13334 #: ../fish/guestfish-actions.pod:3966
13344 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:5995
13346 "Return the canonicalized absolute pathname of C<path>. The returned path "
13347 "has no C<.>, C<..> or symbolic link path elements."
13351 #: ../fish/guestfish-actions.pod:3971
13352 msgid "removexattr"
13353 msgstr "removexattr"
13356 #: ../fish/guestfish-actions.pod:3973
13359 " removexattr xattr path\n"
13364 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6010
13366 "This call removes the extended attribute named C<xattr> of the file C<path>."
13370 #: ../fish/guestfish-actions.pod:3978
13371 msgid "See also: L</lremovexattr>, L<attr(5)>."
13372 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13375 #: ../fish/guestfish-actions.pod:3980
13380 #: ../fish/guestfish-actions.pod:3982
13383 " resize2fs device\n"
13386 " resize2fs пристрій\n"
13390 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6025
13392 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13393 "underlying device."
13397 #: ../fish/guestfish-actions.pod:3987
13399 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13400 "before calling this command. For unknown reasons C<resize2fs> sometimes "
13401 "gives an error about this and sometimes not. In any case, it is always safe "
13402 "to call L</e2fsck-f> before calling this function."
13406 #: ../fish/guestfish-actions.pod:3993
13407 msgid "resize2fs-M"
13408 msgstr "resize2fs-M"
13411 #: ../fish/guestfish-actions.pod:3995
13414 " resize2fs-M device\n"
13417 " resize2fs-M пристрій\n"
13421 #: ../fish/guestfish-actions.pod:3997
13423 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13424 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
13429 #: ../fish/guestfish-actions.pod:4001
13431 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13432 "and read the C<Block size> and C<Block count> values. These two numbers, "
13433 "multiplied together, give the resulting size of the minimal filesystem in "
13438 #: ../fish/guestfish-actions.pod:4006
13439 msgid "resize2fs-size"
13440 msgstr "resize2fs-size"
13443 #: ../fish/guestfish-actions.pod:4008
13446 " resize2fs-size device size\n"
13451 #: ../fish/guestfish-actions.pod:4010
13453 "This command is the same as L</resize2fs> except that it allows you to "
13454 "specify the new size (in bytes) explicitly."
13458 #: ../fish/guestfish-actions.pod:4013
13463 #: ../fish/guestfish-actions.pod:4015
13473 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6077
13474 msgid "Remove the single file C<path>."
13478 #: ../fish/guestfish-actions.pod:4019
13483 #: ../fish/guestfish-actions.pod:4021
13493 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6089
13495 "Remove the file or directory C<path>, recursively removing the contents if "
13496 "its a directory. This is like the C<rm -rf> shell command."
13500 #: ../fish/guestfish-actions.pod:4027
13505 #: ../fish/guestfish-actions.pod:4029
13515 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6103
13516 msgid "Remove the single directory C<path>."
13520 #: ../fish/guestfish-actions.pod:4033
13521 msgid "rmmountpoint"
13522 msgstr "rmmountpoint"
13525 #: ../fish/guestfish-actions.pod:4035
13528 " rmmountpoint exemptpath\n"
13533 #: ../fish/guestfish-actions.pod:4037
13535 "This calls removes a mountpoint that was previously created with L</"
13536 "mkmountpoint>. See L</mkmountpoint> for full details."
13540 #: ../fish/guestfish-actions.pod:4041
13541 msgid "scrub-device"
13542 msgstr "scrub-device"
13545 #: ../fish/guestfish-actions.pod:4043
13548 " scrub-device device\n"
13551 " scrub-device пристрій\n"
13555 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6129
13557 "This command writes patterns over C<device> to make data retrieval more "
13562 #: ../fish/guestfish-actions.pod:4048 ../fish/guestfish-actions.pod:4063
13563 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6132
13564 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
13566 "It is an interface to the L<scrub(1)> program. See that manual page for "
13571 #: ../fish/guestfish-actions.pod:4054
13573 msgstr "scrub-file"
13576 #: ../fish/guestfish-actions.pod:4056
13579 " scrub-file file\n"
13582 " scrub-file файл\n"
13586 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6148
13588 "This command writes patterns over a file to make data retrieval more "
13593 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6151
13594 msgid "The file is I<removed> after scrubbing."
13598 #: ../fish/guestfish-actions.pod:4066
13599 msgid "scrub-freespace"
13600 msgstr "scrub-freespace"
13603 #: ../fish/guestfish-actions.pod:4068
13606 " scrub-freespace dir\n"
13609 " scrub-freespace каталог\n"
13613 #: ../fish/guestfish-actions.pod:4070
13615 "This command creates the directory C<dir> and then fills it with files until "
13616 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13617 "deletes them. The intention is to scrub any free space on the partition "
13618 "containing C<dir>."
13622 #: ../fish/guestfish-actions.pod:4079
13624 msgstr "set-append"
13627 #: ../fish/guestfish-actions.pod:4081
13632 #: ../fish/guestfish-actions.pod:4083
13635 " set-append append\n"
13640 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6185
13642 "This function is used to add additional options to the guest kernel command "
13647 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6188
13649 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13650 "environment variable."
13654 #: ../fish/guestfish-actions.pod:4091 ../src/guestfs-actions.pod:6191
13656 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13657 "(libguestfs always adds a few of its own)."
13661 #: ../fish/guestfish-actions.pod:4094
13662 msgid "set-attach-method"
13663 msgstr "set-attach-method"
13666 #: ../fish/guestfish-actions.pod:4096
13667 msgid "attach-method"
13671 #: ../fish/guestfish-actions.pod:4098
13674 " set-attach-method attachmethod\n"
13679 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6204
13681 "Set the method that libguestfs uses to connect to the back end guestfsd "
13682 "daemon. Possible methods are:"
13686 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6209
13687 #: ../src/guestfs.pod:2780
13688 msgid "C<appliance>"
13689 msgstr "C<appliance>"
13692 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6211
13694 "Launch an appliance and connect to it. This is the ordinary method and the "
13699 #: ../fish/guestfish-actions.pod:4110 ../src/guestfs-actions.pod:6214
13700 msgid "C<unix:I<path>>"
13701 msgstr "C<unix:I<шлях>>"
13704 #: ../fish/guestfish-actions.pod:4112 ../src/guestfs-actions.pod:6216
13705 msgid "Connect to the Unix domain socket I<path>."
13706 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13709 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
13711 "This method lets you connect to an existing daemon or (using virtio-serial) "
13712 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
13713 "RUNNING DAEMONS>."
13717 #: ../fish/guestfish-actions.pod:4120
13718 msgid "set-autosync"
13719 msgstr "set-autosync"
13722 #: ../fish/guestfish-actions.pod:4122
13727 #: ../fish/guestfish-actions.pod:4124
13730 " set-autosync true|false\n"
13733 " set-autosync true|false\n"
13737 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6234
13739 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
13740 "effort attempt to make filesystems consistent and synchronized when the "
13741 "handle is closed (also if the program exits without closing handles)."
13745 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6239
13747 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13748 "disabled by default)."
13752 #: ../fish/guestfish-actions.pod:4134
13754 msgstr "set-direct"
13757 #: ../fish/guestfish-actions.pod:4136
13762 #: ../fish/guestfish-actions.pod:4138
13765 " set-direct true|false\n"
13768 " set-direct true|false\n"
13772 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6252
13774 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13775 "passed directly through to the appliance once it is launched."
13779 #: ../fish/guestfish-actions.pod:4144
13781 "One consequence of this is that log messages aren't caught by the library "
13782 "and handled by L</set-log-message-callback>, but go straight to stdout."
13786 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6260
13787 msgid "You probably don't want to use this unless you know what you are doing."
13791 #: ../fish/guestfish-actions.pod:4151 ../src/guestfs-actions.pod:6263
13792 msgid "The default is disabled."
13796 #: ../fish/guestfish-actions.pod:4153
13797 msgid "set-e2label"
13798 msgstr "set-e2label"
13801 #: ../fish/guestfish-actions.pod:4155
13804 " set-e2label device label\n"
13809 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6276
13811 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13812 "C<label>. Filesystem labels are limited to 16 characters."
13816 #: ../fish/guestfish-actions.pod:4161
13818 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13819 "label on a filesystem."
13823 #: ../fish/guestfish-actions.pod:4164
13825 msgstr "set-e2uuid"
13828 #: ../fish/guestfish-actions.pod:4166
13831 " set-e2uuid device uuid\n"
13836 #: ../fish/guestfish-actions.pod:4168 ../src/guestfs-actions.pod:6294
13838 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13839 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
13840 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13844 #: ../fish/guestfish-actions.pod:4173
13846 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13847 "UUID of a filesystem."
13851 #: ../fish/guestfish-actions.pod:4176
13852 msgid "set-memsize"
13853 msgstr "set-memsize"
13856 #: ../fish/guestfish-actions.pod:4178
13861 #: ../fish/guestfish-actions.pod:4180
13864 " set-memsize memsize\n"
13869 #: ../fish/guestfish-actions.pod:4182
13871 "This sets the memory size in megabytes allocated to the qemu subprocess. "
13872 "This only has any effect if called before L</launch>."
13876 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6316
13878 "You can also change this by setting the environment variable "
13879 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13883 #: ../fish/guestfish-actions.pod:4193
13884 msgid "set-network"
13885 msgstr "set-network"
13888 #: ../fish/guestfish-actions.pod:4195
13893 #: ../fish/guestfish-actions.pod:4197
13896 " set-network true|false\n"
13899 " set-network true|false\n"
13903 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6333
13905 "If C<network> is true, then the network is enabled in the libguestfs "
13906 "appliance. The default is false."
13910 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6336
13912 "This affects whether commands are able to access the network (see L<guestfs"
13913 "(3)/RUNNING COMMANDS>)."
13917 #: ../fish/guestfish-actions.pod:4205
13919 "You must call this before calling L</launch>, otherwise it has no effect."
13923 #: ../fish/guestfish-actions.pod:4208
13928 #: ../fish/guestfish-actions.pod:4212
13931 " set-path searchpath\n"
13936 #: ../fish/guestfish-actions.pod:4214 ../src/guestfs-actions.pod:6352
13937 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13941 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6354
13943 "The default is C<$libdir/guestfs> unless overridden by setting "
13944 "C<LIBGUESTFS_PATH> environment variable."
13948 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6357
13949 msgid "Setting C<path> to C<NULL> restores the default path."
13953 #: ../fish/guestfish-actions.pod:4221
13958 #: ../fish/guestfish-actions.pod:4223
13963 #: ../fish/guestfish-actions.pod:4225
13966 " set-pgroup true|false\n"
13971 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6369
13973 "If C<pgroup> is true, child processes are placed into their own process "
13978 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6372
13980 "The practical upshot of this is that signals like C<SIGINT> (from users "
13981 "pressing C<^C>) won't be received by the child process."
13985 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6375
13987 "The default for this flag is false, because usually you want C<^C> to kill "
13992 #: ../fish/guestfish-actions.pod:4236
13997 #: ../fish/guestfish-actions.pod:4238
14002 #: ../fish/guestfish-actions.pod:4240
14012 #: ../fish/guestfish-actions.pod:4242 ../src/guestfs-actions.pod:6388
14013 msgid "Set the qemu binary that we will use."
14017 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6390
14019 "The default is chosen when the library was compiled by the configure script."
14023 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6393
14025 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14030 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6396
14031 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14035 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6398
14037 "Note that you should call this function as early as possible after creating "
14038 "the handle. This is because some pre-launch operations depend on testing "
14039 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14040 "don't retest features, and so you might see inconsistent results. Using the "
14041 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14042 "the qemu binary at the same time as the handle is created."
14046 #: ../fish/guestfish-actions.pod:4260
14047 msgid "set-recovery-proc"
14048 msgstr "set-recovery-proc"
14051 #: ../fish/guestfish-actions.pod:4262
14052 msgid "recovery-proc"
14053 msgstr "recovery-proc"
14056 #: ../fish/guestfish-actions.pod:4264
14059 " set-recovery-proc true|false\n"
14062 " set-recovery-proc true|false\n"
14066 #: ../fish/guestfish-actions.pod:4266
14068 "If this is called with the parameter C<false> then L</launch> does not "
14069 "create a recovery process. The purpose of the recovery process is to stop "
14070 "runaway qemu processes in the case where the main program aborts abruptly."
14074 #: ../fish/guestfish-actions.pod:4271
14076 "This only has any effect if called before L</launch>, and the default is "
14081 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6424
14083 "About the only time when you would want to disable this is if the main "
14084 "process will fork itself into the background (\"daemonize\" itself). In "
14085 "this case the recovery process thinks that the main program has disappeared "
14086 "and so kills qemu, which is not very helpful."
14090 #: ../fish/guestfish-actions.pod:4280
14091 msgid "set-selinux"
14092 msgstr "set-selinux"
14095 #: ../fish/guestfish-actions.pod:4282
14100 #: ../fish/guestfish-actions.pod:4284
14103 " set-selinux true|false\n"
14106 " set-selinux true|false\n"
14110 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6440
14112 "This sets the selinux flag that is passed to the appliance at boot time. "
14113 "The default is C<selinux=0> (disabled)."
14117 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6443
14119 "Note that if SELinux is enabled, it is always in Permissive mode "
14120 "(C<enforcing=0>)."
14124 #: ../fish/guestfish-actions.pod:4295
14129 #: ../fish/guestfish-actions.pod:4297
14134 #: ../fish/guestfish-actions.pod:4299
14137 " set-trace true|false\n"
14140 " set-trace true|false\n"
14144 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6459
14146 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14147 "return values are traced."
14151 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6462
14153 "If you want to trace C API calls into libguestfs (and other libraries) then "
14154 "possibly a better way is to use the external ltrace(1) command."
14158 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
14160 "Command traces are disabled unless the environment variable "
14161 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14165 #: ../fish/guestfish-actions.pod:4311
14167 "Trace messages are normally sent to C<stderr>, unless you register a "
14168 "callback to send them somewhere else (see L</set-event-callback>)."
14172 #: ../fish/guestfish-actions.pod:4315
14173 msgid "set-verbose"
14174 msgstr "set-verbose"
14177 #: ../fish/guestfish-actions.pod:4317
14182 #: ../fish/guestfish-actions.pod:4319
14185 " set-verbose true|false\n"
14188 " set-verbose true|false\n"
14192 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6483
14193 msgid "If C<verbose> is true, this turns on verbose messages."
14197 #: ../fish/guestfish-actions.pod:4323 ../src/guestfs-actions.pod:6485
14199 "Verbose messages are disabled unless the environment variable "
14200 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14204 #: ../fish/guestfish-actions.pod:4326
14206 "Verbose messages are normally sent to C<stderr>, unless you register a "
14207 "callback to send them somewhere else (see L</set-event-callback>)."
14211 #: ../fish/guestfish-actions.pod:4330
14216 #: ../fish/guestfish-actions.pod:4332
14219 " setcon context\n"
14222 " setcon контекст\n"
14226 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6502
14228 "This sets the SELinux security context of the daemon to the string "
14233 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6505
14234 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14238 #: ../fish/guestfish-actions.pod:4339
14243 #: ../fish/guestfish-actions.pod:4341
14246 " setxattr xattr val vallen path\n"
14251 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6520
14253 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14254 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
14258 #: ../fish/guestfish-actions.pod:4347
14259 msgid "See also: L</lsetxattr>, L<attr(5)>."
14260 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14263 #: ../fish/guestfish-actions.pod:4349
14268 #: ../fish/guestfish-actions.pod:4351
14271 " sfdisk device cyls heads sectors 'lines ...'\n"
14276 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6540
14278 "This is a direct interface to the L<sfdisk(8)> program for creating "
14279 "partitions on block devices."
14283 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6543
14284 msgid "C<device> should be a block device, for example C</dev/sda>."
14288 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6545
14290 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14291 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14292 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
14293 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
14294 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14295 "the kernel) cannot work out the right geometry and you will need to tell it."
14299 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6553
14301 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
14302 "refer to the L<sfdisk(8)> manpage."
14306 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6556
14308 "To create a single partition occupying the whole disk, you would pass "
14309 "C<lines> as a single element list, when the single element being the string "
14314 #: ../fish/guestfish-actions.pod:4373
14315 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14316 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14319 #: ../fish/guestfish-actions.pod:4379 ../fish/guestfish-actions.pod:4402
14320 #: ../fish/guestfish-actions.pod:4424
14322 "This function is deprecated. In new code, use the L</part_add> call instead."
14326 #: ../fish/guestfish-actions.pod:4386
14331 #: ../fish/guestfish-actions.pod:4388
14334 " sfdiskM device 'lines ...'\n"
14339 #: ../fish/guestfish-actions.pod:4390
14341 "This is a simplified interface to the L</sfdisk> command, where partition "
14342 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14343 "you don't need to specify the cyls, heads and sectors parameters which were "
14344 "rarely if ever used anyway."
14348 #: ../fish/guestfish-actions.pod:4396
14349 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14351 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14354 #: ../fish/guestfish-actions.pod:4409
14359 #: ../fish/guestfish-actions.pod:4411
14362 " sfdisk-N device partnum cyls heads sectors line\n"
14367 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6618
14369 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14370 "(note: C<n> counts from 1)."
14374 #: ../fish/guestfish-actions.pod:4416
14376 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
14377 "cyls/heads/sectors parameters."
14381 #: ../fish/guestfish-actions.pod:4419
14382 msgid "See also: L</part-add>"
14383 msgstr "Див. також L</part-add>"
14386 #: ../fish/guestfish-actions.pod:4431
14387 msgid "sfdisk-disk-geometry"
14388 msgstr "sfdisk-disk-geometry"
14391 #: ../fish/guestfish-actions.pod:4433
14394 " sfdisk-disk-geometry device\n"
14397 " sfdisk-disk-geometry пристрій\n"
14401 #: ../fish/guestfish-actions.pod:4435
14403 "This displays the disk geometry of C<device> read from the partition table. "
14404 "Especially in the case where the underlying block device has been resized, "
14405 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14406 "kernel-geometry>)."
14410 #: ../fish/guestfish-actions.pod:4440 ../fish/guestfish-actions.pod:4449
14411 #: ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6667
14412 msgid "The result is in human-readable format, and not designed to be parsed."
14416 #: ../fish/guestfish-actions.pod:4443
14417 msgid "sfdisk-kernel-geometry"
14418 msgstr "sfdisk-kernel-geometry"
14421 #: ../fish/guestfish-actions.pod:4445
14424 " sfdisk-kernel-geometry device\n"
14427 " sfdisk-kernel-geometry пристрій\n"
14431 #: ../fish/guestfish-actions.pod:4447 ../src/guestfs-actions.pod:6665
14432 msgid "This displays the kernel's idea of the geometry of C<device>."
14436 #: ../fish/guestfish-actions.pod:4452
14441 #: ../fish/guestfish-actions.pod:4454
14444 " sfdisk-l device\n"
14447 " sfdisk-l пристрій\n"
14451 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6681
14453 "This displays the partition table on C<device>, in the human-readable output "
14454 "of the L<sfdisk(8)> command. It is not intended to be parsed."
14458 #: ../fish/guestfish-actions.pod:4460
14459 msgid "See also: L</part-list>"
14460 msgstr "Див. також L</part-list>"
14463 #: ../fish/guestfish-actions.pod:4462
14465 "This function is deprecated. In new code, use the L</part_list> call "
14470 #: ../fish/guestfish-actions.pod:4469
14475 #: ../fish/guestfish-actions.pod:4471
14485 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6705
14487 "This call runs a command from the guest filesystem via the guest's C</bin/"
14492 #: ../fish/guestfish-actions.pod:4476
14493 msgid "This is like L</command>, but passes the command to:"
14497 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6710
14500 " /bin/sh -c \"command\"\n"
14505 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6712
14507 "Depending on the guest's shell, this usually results in wildcards being "
14508 "expanded, shell expressions being interpolated and so on."
14512 #: ../fish/guestfish-actions.pod:4484
14513 msgid "All the provisos about L</command> apply to this call."
14517 #: ../fish/guestfish-actions.pod:4486
14522 #: ../fish/guestfish-actions.pod:4488
14525 " sh-lines command\n"
14528 " sh-lines команда\n"
14532 #: ../fish/guestfish-actions.pod:4490
14533 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14537 #: ../fish/guestfish-actions.pod:4493
14538 msgid "See also: L</command-lines>"
14539 msgstr "Див. також L</command-lines>"
14542 #: ../fish/guestfish-actions.pod:4495
14547 #: ../fish/guestfish-actions.pod:4497
14553 " sleep час_у_секундах\n"
14557 #: ../fish/guestfish-actions.pod:4499 ../src/guestfs-actions.pod:6746
14558 msgid "Sleep for C<secs> seconds."
14562 #: ../fish/guestfish-actions.pod:4501
14567 #: ../fish/guestfish-actions.pod:4503
14577 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6760
14578 msgid "This is the same as the C<stat(2)> system call."
14582 #: ../fish/guestfish-actions.pod:4509
14587 #: ../fish/guestfish-actions.pod:4511
14597 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6774
14599 "Returns file system statistics for any mounted file system. C<path> should "
14600 "be a file or directory in the mounted file system (typically it is the mount "
14601 "point itself, but it doesn't need to be)."
14605 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
14606 msgid "This is the same as the C<statvfs(2)> system call."
14610 #: ../fish/guestfish-actions.pod:4519
14615 #: ../fish/guestfish-actions.pod:4521
14625 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6792
14627 "This runs the L<strings(1)> command on a file and returns the list of "
14628 "printable strings found."
14632 #: ../fish/guestfish-actions.pod:4529
14637 #: ../fish/guestfish-actions.pod:4531
14640 " strings-e encoding path\n"
14643 " strings-e кодування шлях\n"
14647 #: ../fish/guestfish-actions.pod:4533
14649 "This is like the L</strings> command, but allows you to specify the encoding "
14650 "of strings that are looked for in the source file C<path>."
14654 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
14655 msgid "Allowed encodings are:"
14656 msgstr "Можливими кодуваннями є:"
14659 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
14664 #: ../fish/guestfish-actions.pod:4543
14666 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14667 "ISO-8859-X (this is what L</strings> uses)."
14671 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6824
14676 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14677 msgid "Single 8-bit-byte characters."
14678 msgstr "Окремі 8-бітові-байтові символи."
14681 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
14686 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
14687 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14691 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:6833
14692 msgid "l (lower case letter L)"
14696 #: ../fish/guestfish-actions.pod:4557 ../src/guestfs-actions.pod:6835
14698 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
14699 "examining binaries in Windows guests."
14703 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6838
14708 #: ../fish/guestfish-actions.pod:4562 ../src/guestfs-actions.pod:6840
14709 msgid "32-bit big endian such as UCS-4BE."
14713 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
14718 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
14719 msgid "32-bit little endian such as UCS-4LE."
14723 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
14724 msgid "The returned strings are transcoded to UTF-8."
14728 #: ../fish/guestfish-actions.pod:4575
14729 msgid "swapoff-device"
14730 msgstr "swapoff-device"
14733 #: ../fish/guestfish-actions.pod:4577
14736 " swapoff-device device\n"
14739 " swapoff-device пристрій\n"
14743 #: ../fish/guestfish-actions.pod:4579
14745 "This command disables the libguestfs appliance swap device or partition "
14746 "named C<device>. See L</swapon-device>."
14750 #: ../fish/guestfish-actions.pod:4583
14751 msgid "swapoff-file"
14752 msgstr "swapoff-file"
14755 #: ../fish/guestfish-actions.pod:4585
14758 " swapoff-file file\n"
14761 " swapoff-file файл\n"
14765 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:6879
14766 msgid "This command disables the libguestfs appliance swap on file."
14770 #: ../fish/guestfish-actions.pod:4589
14771 msgid "swapoff-label"
14772 msgstr "swapoff-label"
14775 #: ../fish/guestfish-actions.pod:4591
14778 " swapoff-label label\n"
14781 " swapoff-label мітка\n"
14785 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6891
14787 "This command disables the libguestfs appliance swap on labeled swap "
14792 #: ../fish/guestfish-actions.pod:4596
14793 msgid "swapoff-uuid"
14794 msgstr "swapoff-uuid"
14797 #: ../fish/guestfish-actions.pod:4598
14800 " swapoff-uuid uuid\n"
14803 " swapoff-uuid uuid\n"
14807 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:6904
14809 "This command disables the libguestfs appliance swap partition with the given "
14814 #: ../fish/guestfish-actions.pod:4603
14815 msgid "swapon-device"
14816 msgstr "swapon-device"
14819 #: ../fish/guestfish-actions.pod:4605
14822 " swapon-device device\n"
14825 " swapon-device пристрій\n"
14829 #: ../fish/guestfish-actions.pod:4607
14831 "This command enables the libguestfs appliance to use the swap device or "
14832 "partition named C<device>. The increased memory is made available for all "
14833 "commands, for example those run using L</command> or L</sh>."
14837 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6922
14839 "Note that you should not swap to existing guest swap partitions unless you "
14840 "know what you are doing. They may contain hibernation information, or other "
14841 "information that the guest doesn't want you to trash. You also risk leaking "
14842 "information about the host to the guest this way. Instead, attach a new "
14843 "host device to the guest and swap on that."
14847 #: ../fish/guestfish-actions.pod:4619
14848 msgid "swapon-file"
14849 msgstr "swapon-file"
14852 #: ../fish/guestfish-actions.pod:4621
14855 " swapon-file file\n"
14858 " swapon-file файл\n"
14862 #: ../fish/guestfish-actions.pod:4623
14864 "This command enables swap to a file. See L</swapon-device> for other notes."
14868 #: ../fish/guestfish-actions.pod:4626
14869 msgid "swapon-label"
14870 msgstr "swapon-label"
14873 #: ../fish/guestfish-actions.pod:4628
14876 " swapon-label label\n"
14879 " swapon-label мітка\n"
14883 #: ../fish/guestfish-actions.pod:4630
14885 "This command enables swap to a labeled swap partition. See L</swapon-"
14886 "device> for other notes."
14890 #: ../fish/guestfish-actions.pod:4633
14891 msgid "swapon-uuid"
14892 msgstr "swapon-uuid"
14895 #: ../fish/guestfish-actions.pod:4635
14898 " swapon-uuid uuid\n"
14901 " swapon-uuid uuid\n"
14905 #: ../fish/guestfish-actions.pod:4637
14907 "This command enables swap to a swap partition with the given UUID. See L</"
14908 "swapon-device> for other notes."
14912 #: ../fish/guestfish-actions.pod:4640
14917 #: ../fish/guestfish-actions.pod:4642
14927 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:6977
14929 "This syncs the disk, so that any writes are flushed through to the "
14930 "underlying disk image."
14934 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:6980
14936 "You should always call this if you have modified a disk image, before "
14937 "closing the handle."
14941 #: ../fish/guestfish-actions.pod:4650
14946 #: ../fish/guestfish-actions.pod:4652
14956 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:6993
14958 "This command returns up to the last 10 lines of a file as a list of strings."
14962 #: ../fish/guestfish-actions.pod:4660
14967 #: ../fish/guestfish-actions.pod:4662
14970 " tail-n nrlines path\n"
14975 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7012
14977 "If the parameter C<nrlines> is a positive number, this returns the last "
14978 "C<nrlines> lines of the file C<path>."
14982 #: ../fish/guestfish-actions.pod:4667 ../src/guestfs-actions.pod:7015
14984 "If the parameter C<nrlines> is a negative number, this returns lines from "
14985 "the file C<path>, starting with the C<-nrlines>th line."
14989 #: ../fish/guestfish-actions.pod:4675
14994 #: ../fish/guestfish-actions.pod:4677
14997 " tar-in (tarfile|-) directory\n"
15000 " tar-in (файл_tar|-) каталог\n"
15004 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7036
15006 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15007 "tar file) into C<directory>."
15011 #: ../fish/guestfish-actions.pod:4682
15012 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15016 #: ../fish/guestfish-actions.pod:4687
15021 #: ../fish/guestfish-actions.pod:4689
15024 " tar-out directory (tarfile|-)\n"
15027 " tar-out каталог (файл tar|-)\n"
15031 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7053
15033 "This command packs the contents of C<directory> and downloads it to local "
15038 #: ../fish/guestfish-actions.pod:4694
15039 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15043 #: ../fish/guestfish-actions.pod:4699
15048 #: ../fish/guestfish-actions.pod:4701
15051 " tgz-in (tarball|-) directory\n"
15054 " tgz-in (архів tar|-) каталог\n"
15058 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7070
15060 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15061 "tar file) into C<directory>."
15065 #: ../fish/guestfish-actions.pod:4706
15066 msgid "To upload an uncompressed tarball, use L</tar-in>."
15070 #: ../fish/guestfish-actions.pod:4710
15075 #: ../fish/guestfish-actions.pod:4712
15078 " tgz-out directory (tarball|-)\n"
15081 " tgz-out каталог (архів tar|-)\n"
15085 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7086
15087 "This command packs the contents of C<directory> and downloads it to local "
15092 #: ../fish/guestfish-actions.pod:4717
15093 msgid "To download an uncompressed tarball, use L</tar-out>."
15097 #: ../fish/guestfish-actions.pod:4721
15102 #: ../fish/guestfish-actions.pod:4723
15112 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7101
15114 "Touch acts like the L<touch(1)> command. It can be used to update the "
15115 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15120 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
15122 "This command only works on regular files, and will fail on other file types "
15123 "such as directories, symbolic links, block special etc."
15127 #: ../fish/guestfish-actions.pod:4732
15132 #: ../fish/guestfish-actions.pod:4734
15142 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7118
15144 "This command truncates C<path> to a zero-length file. The file must exist "
15149 #: ../fish/guestfish-actions.pod:4739
15150 msgid "truncate-size"
15151 msgstr "truncate-size"
15154 #: ../fish/guestfish-actions.pod:4741
15157 " truncate-size path size\n"
15160 " truncate-size шлях розмір\n"
15164 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7132
15166 "This command truncates C<path> to size C<size> bytes. The file must exist "
15171 #: ../fish/guestfish-actions.pod:4746
15173 "If the current file size is less than C<size> then the file is extended to "
15174 "the required size with zero bytes. This creates a sparse file (ie. disk "
15175 "blocks are not allocated for the file until you write to it). To create a "
15176 "non-sparse file of zeroes, use L</fallocate64> instead."
15180 #: ../fish/guestfish-actions.pod:4752
15185 #: ../fish/guestfish-actions.pod:4754
15188 " tune2fs-l device\n"
15191 " tune2fs-l пристрій\n"
15195 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7151
15197 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15202 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7154
15204 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15205 "for more details. The list of fields returned isn't clearly defined, and "
15206 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15207 "and the filesystem itself."
15211 #: ../fish/guestfish-actions.pod:4764
15216 #: ../fish/guestfish-actions.pod:4766
15219 " txz-in (tarball|-) directory\n"
15222 " txz-in (архів tar|-) каталог\n"
15226 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7174
15228 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15229 "tar file) into C<directory>."
15233 #: ../fish/guestfish-actions.pod:4773
15238 #: ../fish/guestfish-actions.pod:4775
15241 " txz-out directory (tarball|-)\n"
15244 " txz-out каталог (архів tar|-)\n"
15248 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7188
15250 "This command packs the contents of C<directory> and downloads it to local "
15251 "file C<tarball> (as an xz compressed tar archive)."
15255 #: ../fish/guestfish-actions.pod:4782
15260 #: ../fish/guestfish-actions.pod:4784
15270 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7201
15272 "This function sets the mask used for creating new files and device nodes to "
15277 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7204
15279 "Typical umask values would be C<022> which creates new files with "
15280 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15281 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15285 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7209
15287 "The default umask is C<022>. This is important because it means that "
15288 "directories and device nodes will be created with C<0644> or C<0755> mode "
15289 "even if you specify C<0777>."
15293 #: ../fish/guestfish-actions.pod:4798
15294 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15295 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15298 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7216
15299 msgid "This call returns the previous umask."
15303 #: ../fish/guestfish-actions.pod:4803
15308 #: ../fish/guestfish-actions.pod:4805
15313 #: ../fish/guestfish-actions.pod:4807
15316 " umount pathordevice\n"
15319 " umount шлях_або_пристрій\n"
15323 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7228
15325 "This unmounts the given filesystem. The filesystem may be specified either "
15326 "by its mountpoint (path) or the device which contains the filesystem."
15330 #: ../fish/guestfish-actions.pod:4813
15332 msgstr "umount-all"
15335 #: ../fish/guestfish-actions.pod:4815
15336 msgid "unmount-all"
15337 msgstr "unmount-all"
15340 #: ../fish/guestfish-actions.pod:4817
15350 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7241
15351 msgid "This unmounts all mounted filesystems."
15355 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7243
15356 msgid "Some internal mounts are not unmounted by this call."
15360 #: ../fish/guestfish-actions.pod:4823
15365 #: ../fish/guestfish-actions.pod:4825
15368 " upload (filename|-) remotefilename\n"
15371 " upload (назва_файла|-) назва_віддаленого_файла\n"
15375 #: ../fish/guestfish-actions.pod:4827 ../fish/guestfish-actions.pod:4840
15376 #: ../src/guestfs-actions.pod:7256 ../src/guestfs-actions.pod:7280
15377 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15381 #: ../fish/guestfish-actions.pod:4832
15382 msgid "See also L</download>."
15383 msgstr "Див. також L</download>."
15386 #: ../fish/guestfish-actions.pod:4836
15387 msgid "upload-offset"
15388 msgstr "upload-offset"
15391 #: ../fish/guestfish-actions.pod:4838
15394 " upload-offset (filename|-) remotefilename offset\n"
15397 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15401 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7283
15403 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
15404 "The intention is to overwrite parts of existing files or devices, although "
15405 "if a non-existant file is specified then it is created with a \"hole\" "
15406 "before C<offset>. The size of the data written is implicit in the size of "
15407 "the source C<filename>."
15411 #: ../fish/guestfish-actions.pod:4850
15413 "Note that there is no limit on the amount of data that can be uploaded with "
15414 "this call, unlike with L</pwrite>, and this call always writes the full "
15415 "amount unless an error occurs."
15419 #: ../fish/guestfish-actions.pod:4855
15420 msgid "See also L</upload>, L</pwrite>."
15421 msgstr "Див. також L</upload>, L</pwrite>."
15424 #: ../fish/guestfish-actions.pod:4859
15429 #: ../fish/guestfish-actions.pod:4861
15432 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15437 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7316
15438 msgid "This command sets the timestamps of a file with nanosecond precision."
15442 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7319
15444 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15449 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7322
15451 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15452 "nanoseconds from the epoch."
15456 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7325
15458 "If the C<*nsecs> field contains the special value C<-1> then the "
15459 "corresponding timestamp is set to the current time. (The C<*secs> field is "
15460 "ignored in this case)."
15464 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
15466 "If the C<*nsecs> field contains the special value C<-2> then the "
15467 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
15472 #: ../fish/guestfish-actions.pod:4880
15477 #: ../fish/guestfish-actions.pod:4882
15487 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7342
15489 "Return the libguestfs version number that the program is linked against."
15493 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7345
15495 "Note that because of dynamic linking this is not necessarily the version of "
15496 "libguestfs that you compiled against. You can compile the program, and then "
15497 "at runtime dynamically link against a completely different C<libguestfs.so> "
15502 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7350
15504 "This call was added in version C<1.0.58>. In previous versions of "
15505 "libguestfs there was no way to get the version number. From C code you can "
15506 "use dynamic linker functions to find out if this symbol exists (if it "
15507 "doesn't, then it's an earlier version)."
15511 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7356
15513 "The call returns a structure with four elements. The first three (C<major>, "
15514 "C<minor> and C<release>) are numbers and correspond to the usual version "
15515 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
15516 "but may be used for distro-specific information."
15520 #: ../fish/guestfish-actions.pod:4904 ../src/guestfs-actions.pod:7362
15522 "To construct the original version string: C<$major.$minor.$release$extra>"
15526 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7365
15527 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15531 #: ../fish/guestfish-actions.pod:4909
15533 "I<Note:> Don't use this call to test for availability of features. In "
15534 "enterprise distributions we backport features from later versions into "
15535 "earlier versions, making this an unreliable way to test for features. Use "
15536 "L</available> instead."
15540 #: ../fish/guestfish-actions.pod:4915
15545 #: ../fish/guestfish-actions.pod:4917
15548 " vfs-label device\n"
15551 " vfs-label пристрій\n"
15555 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7385
15556 msgid "This returns the filesystem label of the filesystem on C<device>."
15560 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7388
15561 msgid "If the filesystem is unlabeled, this returns the empty string."
15565 #: ../fish/guestfish-actions.pod:4924
15566 msgid "To find a filesystem from the label, use L</findfs-label>."
15570 #: ../fish/guestfish-actions.pod:4926
15575 #: ../fish/guestfish-actions.pod:4928
15578 " vfs-type device\n"
15581 " vfs-type пристрій\n"
15585 #: ../fish/guestfish-actions.pod:4930 ../src/guestfs-actions.pod:7403
15587 "This command gets the filesystem type corresponding to the filesystem on "
15592 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7406
15594 "For most filesystems, the result is the name of the Linux VFS module which "
15595 "would be used to mount this filesystem if you mounted it without specifying "
15596 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
15600 #: ../fish/guestfish-actions.pod:4938
15605 #: ../fish/guestfish-actions.pod:4940
15608 " vfs-uuid device\n"
15611 " vfs-uuid пристрій\n"
15615 #: ../fish/guestfish-actions.pod:4942 ../src/guestfs-actions.pod:7422
15616 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15620 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7425
15621 msgid "If the filesystem does not have a UUID, this returns the empty string."
15625 #: ../fish/guestfish-actions.pod:4947
15626 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15630 #: ../fish/guestfish-actions.pod:4949
15631 msgid "vg-activate"
15632 msgstr "vg-activate"
15635 #: ../fish/guestfish-actions.pod:4951
15638 " vg-activate true|false 'volgroups ...'\n"
15643 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7441
15645 "This command activates or (if C<activate> is false) deactivates all logical "
15646 "volumes in the listed volume groups C<volgroups>."
15650 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7444
15651 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15655 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7446
15657 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15658 "activated or deactivated."
15662 #: ../fish/guestfish-actions.pod:4961
15663 msgid "vg-activate-all"
15664 msgstr "vg-activate-all"
15667 #: ../fish/guestfish-actions.pod:4963
15670 " vg-activate-all true|false\n"
15673 " vg-activate-all true|false\n"
15677 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7459
15679 "This command activates or (if C<activate> is false) deactivates all logical "
15680 "volumes in all volume groups."
15684 #: ../fish/guestfish-actions.pod:4968 ../src/guestfs-actions.pod:7462
15685 msgid "This command is the same as running C<vgchange -a y|n>"
15689 #: ../fish/guestfish-actions.pod:4970
15694 #: ../fish/guestfish-actions.pod:4972
15697 " vgcreate volgroup 'physvols ...'\n"
15702 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7475
15704 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15705 "of physical volumes C<physvols>."
15709 #: ../fish/guestfish-actions.pod:4977
15714 #: ../fish/guestfish-actions.pod:4979
15717 " vglvuuids vgname\n"
15722 #: ../fish/guestfish-actions.pod:4981 ../src/guestfs-actions.pod:7488
15724 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15725 "volumes created in this volume group."
15729 #: ../fish/guestfish-actions.pod:4984
15731 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15732 "logical volumes and volume groups."
15736 #: ../fish/guestfish-actions.pod:4987
15737 msgid "See also L</vgpvuuids>."
15738 msgstr "Див. також L</vgpvuuids>."
15741 #: ../fish/guestfish-actions.pod:4989
15746 #: ../fish/guestfish-actions.pod:4991
15749 " vgpvuuids vgname\n"
15754 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7508
15756 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15757 "volumes that this volume group resides on."
15761 #: ../fish/guestfish-actions.pod:4996
15763 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15764 "physical volumes and volume groups."
15768 #: ../fish/guestfish-actions.pod:4999
15769 msgid "See also L</vglvuuids>."
15770 msgstr "Див. також L</vglvuuids>."
15773 #: ../fish/guestfish-actions.pod:5001
15778 #: ../fish/guestfish-actions.pod:5003
15781 " vgremove vgname\n"
15786 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7528
15787 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15791 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7530
15793 "This also forcibly removes all logical volumes in the volume group (if any)."
15797 #: ../fish/guestfish-actions.pod:5010
15802 #: ../fish/guestfish-actions.pod:5012
15805 " vgrename volgroup newvolgroup\n"
15810 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7544
15811 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15815 #: ../fish/guestfish-actions.pod:5016
15820 #: ../fish/guestfish-actions.pod:5018
15830 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7555
15832 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15837 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7558
15839 "This returns a list of just the volume group names that were detected (eg. "
15844 #: ../fish/guestfish-actions.pod:5026
15845 msgid "See also L</vgs-full>."
15846 msgstr "Див. також L</vgs-full>."
15849 #: ../fish/guestfish-actions.pod:5028
15854 #: ../fish/guestfish-actions.pod:5030
15864 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7574
15866 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
15867 "> command. The \"full\" version includes all fields."
15871 #: ../fish/guestfish-actions.pod:5035
15876 #: ../fish/guestfish-actions.pod:5037
15886 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7588
15888 "This rescans all block devices and rebuilds the list of LVM physical "
15889 "volumes, volume groups and logical volumes."
15893 #: ../fish/guestfish-actions.pod:5042
15898 #: ../fish/guestfish-actions.pod:5044
15906 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7601
15907 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15911 #: ../fish/guestfish-actions.pod:5048
15916 #: ../fish/guestfish-actions.pod:5050
15926 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7641
15928 "This command counts the characters in a file, using the C<wc -c> external "
15933 #: ../fish/guestfish-actions.pod:5055
15938 #: ../fish/guestfish-actions.pod:5057
15948 #: ../fish/guestfish-actions.pod:5059 ../src/guestfs-actions.pod:7654
15950 "This command counts the lines in a file, using the C<wc -l> external command."
15954 #: ../fish/guestfish-actions.pod:5062
15959 #: ../fish/guestfish-actions.pod:5064
15969 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7667
15971 "This command counts the words in a file, using the C<wc -w> external command."
15975 #: ../fish/guestfish-actions.pod:5069
15980 #: ../fish/guestfish-actions.pod:5071
15983 " write path content\n"
15986 " write шлях дані\n"
15990 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7682
15992 "This call creates a file called C<path>. The content of the file is the "
15993 "string C<content> (which can contain any 8 bit data)."
15997 #: ../fish/guestfish-actions.pod:5076
15998 msgid "See also L</write-append>."
16002 #: ../fish/guestfish-actions.pod:5081
16003 msgid "write-append"
16007 #: ../fish/guestfish-actions.pod:5083
16010 " write-append path content\n"
16015 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7702
16017 "This call appends C<content> to the end of file C<path>. If C<path> does "
16018 "not exist, then a new file is created."
16022 #: ../fish/guestfish-actions.pod:5088
16023 msgid "See also L</write>."
16027 #: ../fish/guestfish-actions.pod:5093
16029 msgstr "write-file"
16032 #: ../fish/guestfish-actions.pod:5095
16035 " write-file path content size\n"
16040 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7722
16042 "This call creates a file called C<path>. The contents of the file is the "
16043 "string C<content> (which can contain any 8 bit data), with length C<size>."
16047 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7726
16049 "As a special case, if C<size> is C<0> then the length is calculated using "
16050 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16054 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7730
16056 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16057 "I<not> work, even if the length is specified."
16061 #: ../fish/guestfish-actions.pod:5111
16063 "This function is deprecated. In new code, use the L</write> call instead."
16067 #: ../fish/guestfish-actions.pod:5118
16072 #: ../fish/guestfish-actions.pod:5120
16075 " zegrep regex path\n"
16078 " zegrep формальний_вираз шлях\n"
16082 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7754
16084 "This calls the external C<zegrep> program and returns the matching lines."
16088 #: ../fish/guestfish-actions.pod:5128
16093 #: ../fish/guestfish-actions.pod:5130
16096 " zegrepi regex path\n"
16101 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7773
16103 "This calls the external C<zegrep -i> program and returns the matching lines."
16107 #: ../fish/guestfish-actions.pod:5138
16112 #: ../fish/guestfish-actions.pod:5140
16122 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7791
16123 msgid "This command writes zeroes over the first few blocks of C<device>."
16127 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7793
16129 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16130 "securely wipe the device). It should be sufficient to remove any partition "
16131 "tables, filesystem superblocks and so on."
16135 #: ../fish/guestfish-actions.pod:5148 ../fish/guestfish-actions.pod:5163
16136 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7823
16138 "If blocks are already zero, then this command avoids writing zeroes. This "
16139 "prevents the underlying device from becoming non-sparse or growing "
16144 #: ../fish/guestfish-actions.pod:5152
16145 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16149 #: ../fish/guestfish-actions.pod:5155
16150 msgid "zero-device"
16151 msgstr "zero-device"
16154 #: ../fish/guestfish-actions.pod:5157
16157 " zero-device device\n"
16160 " zero-device пристрій\n"
16164 #: ../fish/guestfish-actions.pod:5159
16166 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16167 "which just zeroes the first few blocks of a device."
16171 #: ../fish/guestfish-actions.pod:5170
16176 #: ../fish/guestfish-actions.pod:5172
16179 " zerofree device\n"
16182 " zerofree пристрій\n"
16186 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7845
16188 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16189 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16190 "possible to compress the filesystem more effectively."
16194 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7850
16195 msgid "You should B<not> run this program if the filesystem is mounted."
16199 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7853
16201 "It is possible that using this program can damage the filesystem or data on "
16206 #: ../fish/guestfish-actions.pod:5185
16211 #: ../fish/guestfish-actions.pod:5187
16214 " zfgrep pattern path\n"
16217 " zfgrep шаблон шлях\n"
16221 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7867
16223 "This calls the external C<zfgrep> program and returns the matching lines."
16227 #: ../fish/guestfish-actions.pod:5195
16232 #: ../fish/guestfish-actions.pod:5197
16235 " zfgrepi pattern path\n"
16238 " zfgrepi шаблон шлях\n"
16242 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7886
16244 "This calls the external C<zfgrep -i> program and returns the matching lines."
16248 #: ../fish/guestfish-actions.pod:5205
16253 #: ../fish/guestfish-actions.pod:5207
16256 " zfile meth path\n"
16259 " zfile метод шлях\n"
16263 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7905
16265 "This command runs C<file> after first decompressing C<path> using C<method>."
16269 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:7908
16270 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16274 #: ../fish/guestfish-actions.pod:5214
16276 "Since 1.0.63, use L</file> instead which can now process compressed files."
16280 #: ../fish/guestfish-actions.pod:5217
16282 "This function is deprecated. In new code, use the L</file> call instead."
16286 #: ../fish/guestfish-actions.pod:5224
16291 #: ../fish/guestfish-actions.pod:5226
16294 " zgrep regex path\n"
16297 " zgrep формальний_вираз шлях\n"
16301 #: ../fish/guestfish-actions.pod:5228 ../src/guestfs-actions.pod:7932
16303 "This calls the external C<zgrep> program and returns the matching lines."
16307 #: ../fish/guestfish-actions.pod:5234
16312 #: ../fish/guestfish-actions.pod:5236
16315 " zgrepi regex path\n"
16318 " zgrepi формальний_вираз шлях\n"
16322 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:7951
16324 "This calls the external C<zgrep -i> program and returns the matching lines."
16328 #: ../fish/guestfish-commands.pod:1
16333 #: ../fish/guestfish-commands.pod:3
16338 #: ../fish/guestfish-commands.pod:5
16341 " alloc filename size\n"
16346 #: ../fish/guestfish-commands.pod:7
16348 "This creates an empty (zeroed) file of the given size, and then adds so it "
16349 "can be further examined."
16353 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
16354 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16358 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
16359 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16363 #: ../fish/guestfish-commands.pod:14
16365 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
16366 "image, see L</PREPARED DISK IMAGES>."
16370 #: ../fish/guestfish-commands.pod:17
16375 #: ../fish/guestfish-commands.pod:19
16378 " copy-in local [local ...] /remotedir\n"
16383 #: ../fish/guestfish-commands.pod:21
16385 "C<copy-in> copies local files or directories recursively into the disk "
16386 "image, placing them in the directory called C</remotedir> (which must "
16387 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
16388 "other commands as necessary."
16392 #: ../fish/guestfish-commands.pod:26
16394 "Multiple local files and directories can be specified, but the last "
16395 "parameter must always be a remote directory. Wildcards cannot be used."
16399 #: ../fish/guestfish-commands.pod:30
16404 #: ../fish/guestfish-commands.pod:32
16407 " copy-out remote [remote ...] localdir\n"
16412 #: ../fish/guestfish-commands.pod:34
16414 "C<copy-out> copies remote files or directories recursively out of the disk "
16415 "image, placing them on the host disk in a local directory called C<localdir> "
16416 "(which must exist). This guestfish meta-command turns into a sequence of L</"
16417 "download>, L</tar-out> and other commands as necessary."
16421 #: ../fish/guestfish-commands.pod:40
16423 "Multiple remote files and directories can be specified, but the last "
16424 "parameter must always be a local directory. To download to the current "
16425 "directory, use C<.> as in:"
16429 #: ../fish/guestfish-commands.pod:44
16432 " copy-out /home .\n"
16435 " copy-out /home .\n"
16439 #: ../fish/guestfish-commands.pod:46
16441 "Wildcards cannot be used in the ordinary command, but you can use them with "
16442 "the help of L</glob> like this:"
16446 #: ../fish/guestfish-commands.pod:49
16449 " glob copy-out /home/* .\n"
16452 " glob copy-out /home/* .\n"
16456 #: ../fish/guestfish-commands.pod:51
16461 #: ../fish/guestfish-commands.pod:53
16464 " display filename\n"
16469 #: ../fish/guestfish-commands.pod:55
16471 "Use C<display> (a graphical display program) to display an image file. It "
16472 "downloads the file, and runs C<display> on it."
16476 #: ../fish/guestfish-commands.pod:58
16478 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16479 "environment variable. For example to use the GNOME display program:"
16483 #: ../fish/guestfish-commands.pod:61
16486 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16491 #: ../fish/guestfish-commands.pod:63
16492 msgid "See also L<display(1)>."
16496 #: ../fish/guestfish-commands.pod:65
16501 #: ../fish/guestfish-commands.pod:67
16504 " echo [params ...]\n"
16507 " echo [параметри...]\n"
16511 #: ../fish/guestfish-commands.pod:69
16512 msgid "This echos the parameters to the terminal."
16516 #: ../fish/guestfish-commands.pod:71
16521 #: ../fish/guestfish-commands.pod:73
16526 #: ../fish/guestfish-commands.pod:75
16531 #: ../fish/guestfish-commands.pod:77
16537 " edit назва_файла\n"
16541 #: ../fish/guestfish-commands.pod:79
16543 "This is used to edit a file. It downloads the file, edits it locally using "
16544 "your editor, then uploads the result."
16548 #: ../fish/guestfish-commands.pod:82
16550 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
16551 "or C<emacs> you will get those corresponding editors."
16555 #: ../fish/guestfish-commands.pod:86
16560 #: ../fish/guestfish-commands.pod:88
16563 " glob command args...\n"
16566 " glob команда параметри...\n"
16570 #: ../fish/guestfish-commands.pod:90
16572 "Expand wildcards in any paths in the args list, and run C<command> "
16573 "repeatedly on each matching path."
16577 #: ../fish/guestfish-commands.pod:93
16578 msgid "See L</WILDCARDS AND GLOBBING>."
16579 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16582 #: ../fish/guestfish-commands.pod:95
16587 #: ../fish/guestfish-commands.pod:97
16590 " hexedit <filename|device>\n"
16591 " hexedit <filename|device> <max>\n"
16592 " hexedit <filename|device> <start> <max>\n"
16597 #: ../fish/guestfish-commands.pod:101
16599 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16604 #: ../fish/guestfish-commands.pod:104
16606 "This command works by downloading potentially the whole file or device, "
16607 "editing it locally, then uploading it. If the file or device is large, you "
16608 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16609 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
16610 "usual modifiers allowed such as C<1M> (1 megabyte)."
16614 #: ../fish/guestfish-commands.pod:111
16615 msgid "For example to edit the first few sectors of a disk you might do:"
16619 #: ../fish/guestfish-commands.pod:114
16622 " hexedit /dev/sda 1M\n"
16625 " hexedit /dev/sda 1M\n"
16629 #: ../fish/guestfish-commands.pod:116
16631 "which would allow you to edit anywhere within the first megabyte of the disk."
16635 #: ../fish/guestfish-commands.pod:119
16636 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16640 #: ../fish/guestfish-commands.pod:121
16643 " hexedit /dev/sda1 0x400 0x400\n"
16646 " hexedit /dev/sda1 0x400 0x400\n"
16650 #: ../fish/guestfish-commands.pod:123
16651 msgid "(assuming the superblock is in the standard location)."
16655 #: ../fish/guestfish-commands.pod:125
16657 "This command requires the external L<hexedit(1)> program. You can specify "
16658 "another program to use by setting the C<HEXEDITOR> environment variable."
16662 #: ../fish/guestfish-commands.pod:129
16663 msgid "See also L</hexdump>."
16664 msgstr "Див. також L</hexdump>."
16667 #: ../fish/guestfish-commands.pod:131
16672 #: ../fish/guestfish-commands.pod:133
16680 #: ../fish/guestfish-commands.pod:135
16682 "Change the local directory, ie. the current directory of guestfish itself."
16686 #: ../fish/guestfish-commands.pod:138
16687 msgid "Note that C<!cd> won't do what you might expect."
16691 #: ../fish/guestfish-commands.pod:140
16696 #: ../fish/guestfish-commands.pod:142
16701 #: ../fish/guestfish-commands.pod:144
16711 #: ../fish/guestfish-commands.pod:146
16712 msgid "Opens the manual page for guestfish."
16716 #: ../fish/guestfish-commands.pod:148
16721 #: ../fish/guestfish-commands.pod:150
16726 #: ../fish/guestfish-commands.pod:152
16734 #: ../fish/guestfish-commands.pod:154
16742 #: ../fish/guestfish-commands.pod:156
16743 msgid "This is used to view a file."
16747 #: ../fish/guestfish-commands.pod:158
16749 "The default viewer is C<$PAGER>. However if you use the alternate command "
16750 "C<less> you will get the C<less> command specifically."
16754 #: ../fish/guestfish-commands.pod:161
16759 #: ../fish/guestfish-commands.pod:163
16767 #: ../fish/guestfish-commands.pod:165
16769 "Close and reopen the libguestfs handle. It is not necessary to use this "
16770 "normally, because the handle is closed properly when guestfish exits. "
16771 "However this is occasionally useful for testing."
16775 #: ../fish/guestfish-commands.pod:169
16780 #: ../fish/guestfish-commands.pod:171
16783 " sparse filename size\n"
16788 #: ../fish/guestfish-commands.pod:173
16790 "This creates an empty sparse file of the given size, and then adds so it can "
16791 "be further examined."
16795 #: ../fish/guestfish-commands.pod:176
16797 "In all respects it works the same as the L</alloc> command, except that the "
16798 "image file is allocated sparsely, which means that disk blocks are not "
16799 "assigned to the file until they are needed. Sparse disk files only use "
16800 "space when written to, but they are slower and there is a danger you could "
16801 "run out of real disk space during a write operation."
16805 #: ../fish/guestfish-commands.pod:186
16810 #: ../fish/guestfish-commands.pod:188
16820 #: ../fish/guestfish-commands.pod:190
16822 "This command returns a list of the optional groups known to the daemon, and "
16823 "indicates which ones are supported by this build of the libguestfs appliance."
16827 #: ../fish/guestfish-commands.pod:194
16828 msgid "See also L<guestfs(3)/AVAILABILITY>."
16832 #: ../fish/guestfish-commands.pod:196
16837 #: ../fish/guestfish-commands.pod:198
16840 " time command args...\n"
16845 #: ../fish/guestfish-commands.pod:200
16847 "Run the command as usual, but print the elapsed time afterwards. This can "
16848 "be useful for benchmarking operations."
16852 #: ../fish/guestfish.pod:5
16853 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16857 #: ../fish/guestfish.pod:9
16860 " guestfish [--options] [commands]\n"
16865 #: ../fish/guestfish.pod:11
16873 #: ../fish/guestfish.pod:13
16876 " guestfish [--ro|--rw] -a disk.img\n"
16881 #: ../fish/guestfish.pod:15
16884 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16889 #: ../fish/guestfish.pod:17
16892 " guestfish -d libvirt-domain\n"
16897 #: ../fish/guestfish.pod:19
16900 " guestfish [--ro|--rw] -a disk.img -i\n"
16905 #: ../fish/guestfish.pod:21
16908 " guestfish -d libvirt-domain -i\n"
16913 #: ../fish/guestfish.pod:25
16915 "Using guestfish in read/write mode on live virtual machines can be "
16916 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
16917 "option to use guestfish safely if the disk image or virtual machine might be "
16922 #: ../fish/guestfish.pod:32
16924 "Guestfish is a shell and command-line tool for examining and modifying "
16925 "virtual machine filesystems. It uses libguestfs and exposes all of the "
16926 "functionality of the guestfs API, see L<guestfs(3)>."
16930 #: ../fish/guestfish.pod:36
16932 "Guestfish gives you structured access to the libguestfs API, from shell "
16933 "scripts or the command line or interactively. If you want to rescue a "
16934 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16939 #: ../fish/guestfish.pod:43
16940 msgid "As an interactive shell"
16944 #: ../fish/guestfish.pod:45
16952 #: ../fish/guestfish.pod:47
16955 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16956 " editing virtual machine filesystems.\n"
16961 #: ../fish/guestfish.pod:50
16964 " Type: 'help' for a list of commands\n"
16965 " 'man' to read the manual\n"
16966 " 'quit' to quit the shell\n"
16971 #: ../fish/guestfish.pod:54
16974 " ><fs> add-ro disk.img\n"
16976 " ><fs> list-filesystems\n"
16977 " /dev/sda1: ext4\n"
16978 " /dev/vg_guest/lv_root: ext4\n"
16979 " /dev/vg_guest/lv_swap: swap\n"
16980 " ><fs> mount /dev/vg_guest/lv_root /\n"
16981 " ><fs> cat /etc/fstab\n"
16983 " # Created by anaconda\n"
16990 #: ../fish/guestfish.pod:67
16991 msgid "From shell scripts"
16995 #: ../fish/guestfish.pod:69
16996 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17000 #: ../fish/guestfish.pod:71
17003 " guestfish <<_EOF_\n"
17006 " mount /dev/vg_guest/lv_root /\n"
17007 " write /etc/motd \"Welcome, new users\"\n"
17013 #: ../fish/guestfish.pod:78
17014 msgid "List the LVM logical volumes in a disk image:"
17018 #: ../fish/guestfish.pod:80
17021 " guestfish -a disk.img --ro <<_EOF_\n"
17029 #: ../fish/guestfish.pod:85
17030 msgid "List all the filesystems in a disk image:"
17034 #: ../fish/guestfish.pod:87
17037 " guestfish -a disk.img --ro <<_EOF_\n"
17039 " list-filesystems\n"
17045 #: ../fish/guestfish.pod:92
17046 msgid "On one command line"
17050 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17051 msgid "Update C</etc/resolv.conf> in a guest:"
17055 #: ../fish/guestfish.pod:96
17059 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17060 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17065 #: ../fish/guestfish.pod:100
17066 msgid "Edit C</boot/grub/grub.conf> interactively:"
17070 #: ../fish/guestfish.pod:102
17073 " guestfish --rw --add disk.img \\\n"
17074 " --mount /dev/vg_guest/lv_root \\\n"
17075 " --mount /dev/sda1:/boot \\\n"
17076 " edit /boot/grub/grub.conf\n"
17081 #: ../fish/guestfish.pod:107
17082 msgid "Mount disks automatically"
17086 #: ../fish/guestfish.pod:109
17088 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17092 #: ../fish/guestfish.pod:112
17095 " guestfish --ro -a disk.img -i cat /etc/group\n"
17100 #: ../fish/guestfish.pod:114
17103 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17108 #: ../fish/guestfish.pod:116
17109 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17113 #: ../fish/guestfish.pod:118
17116 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17121 #: ../fish/guestfish.pod:120
17122 msgid "As a script interpreter"
17126 #: ../fish/guestfish.pod:122
17127 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17131 #: ../fish/guestfish.pod:124
17134 " #!/usr/bin/guestfish -f\n"
17135 " sparse test1.img 100M\n"
17137 " part-disk /dev/sda mbr\n"
17138 " mkfs ext2 /dev/sda1\n"
17143 #: ../fish/guestfish.pod:130
17144 msgid "Start with a prepared disk"
17148 #: ../fish/guestfish.pod:132
17150 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17151 "single ext2-formatted partition:"
17155 #: ../fish/guestfish.pod:135
17158 " guestfish -N fs\n"
17163 #: ../fish/guestfish.pod:137
17164 msgid "To list what is available do:"
17168 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17171 " guestfish -N help | less\n"
17176 #: ../fish/guestfish.pod:141
17177 msgid "Remote control"
17178 msgstr "Дистанційне керування"
17181 #: ../fish/guestfish.pod:143
17184 " eval \"`guestfish --listen`\"\n"
17185 " guestfish --remote add-ro disk.img\n"
17186 " guestfish --remote run\n"
17187 " guestfish --remote lvs\n"
17190 " eval \"`guestfish --listen`\"\n"
17191 " guestfish --remote add-ro disk.img\n"
17192 " guestfish --remote run\n"
17193 " guestfish --remote lvs\n"
17197 #: ../fish/guestfish.pod:154
17198 msgid "Displays general help on options."
17202 #: ../fish/guestfish.pod:158
17203 msgid "B<--cmd-help>"
17204 msgstr "B<--cmd-help>"
17207 #: ../fish/guestfish.pod:160
17208 msgid "Lists all available guestfish commands."
17212 #: ../fish/guestfish.pod:162
17214 msgstr "B<-h команда>"
17217 #: ../fish/guestfish.pod:164
17218 msgid "B<--cmd-help cmd>"
17219 msgstr "B<--cmd-help команда>"
17222 #: ../fish/guestfish.pod:166
17223 msgid "Displays detailed help on a single command C<cmd>."
17227 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17228 msgid "B<-a image>"
17229 msgstr "B<-a образ>"
17232 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17233 msgid "B<--add image>"
17234 msgstr "B<--add образ>"
17237 #: ../fish/guestfish.pod:172
17238 msgid "Add a block device or virtual machine image to the shell."
17242 #: ../fish/guestfish.pod:177
17244 "Using this flag is mostly equivalent to using the C<add> command, with "
17245 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17246 "the I<--format=...> flag was given."
17250 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17252 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17253 "URI to use. The default is to use the default libvirt connection."
17257 #: ../fish/guestfish.pod:189
17262 #: ../fish/guestfish.pod:191
17264 "If using the I<--listen> option and a csh-like shell, use this option. See "
17265 "section L</REMOTE CONTROL AND CSH> below."
17269 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17270 msgid "B<-d libvirt-domain>"
17271 msgstr "B<-d домен-libvirt>"
17274 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17275 msgid "B<--domain libvirt-domain>"
17276 msgstr "B<--domain домен-libvirt>"
17279 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17281 "Add disks from the named libvirt domain. If the I<--ro> option is also "
17282 "used, then any libvirt domain can be used. However in write mode, only "
17283 "libvirt domains which are shut down can be named here."
17287 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17288 msgid "Domain UUIDs can be used instead of names."
17292 #: ../fish/guestfish.pod:204
17294 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17295 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17296 "if the I<--format:...> flag was given."
17300 #: ../fish/guestfish.pod:208
17305 #: ../fish/guestfish.pod:210
17306 msgid "B<--no-dest-paths>"
17307 msgstr "B<--no-dest-paths>"
17310 #: ../fish/guestfish.pod:212
17312 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
17313 "to hit the tab key to complete paths on the guest filesystem, but this "
17314 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17315 "allow this feature to be disabled."
17319 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17321 "When prompting for keys and passphrases, guestfish normally turns echoing "
17322 "off so you cannot see what you are typing. If you are not worried about "
17323 "Tempest attacks and there is no one else in the room you can specify this "
17324 "flag to see what you are typing."
17328 #: ../fish/guestfish.pod:224
17330 msgstr "B<-f файл>"
17333 #: ../fish/guestfish.pod:226
17334 msgid "B<--file file>"
17335 msgstr "B<--file файл>"
17338 #: ../fish/guestfish.pod:228
17339 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
17343 #: ../fish/guestfish.pod:231
17346 " #!/usr/bin/guestfish -f\n"
17349 " #!/usr/bin/guestfish -f\n"
17353 #: ../fish/guestfish.pod:244
17356 " guestfish --format=raw -a disk.img\n"
17359 " guestfish --format=raw -a disk.img\n"
17363 #: ../fish/guestfish.pod:248
17366 " guestfish --format=raw -a disk.img --format -a another.img\n"
17369 " guestfish --format=raw -a disk.img --format -a another.img\n"
17373 #: ../fish/guestfish.pod:253
17375 "If you have untrusted raw-format guest disk images, you should use this "
17376 "option to specify the disk format. This avoids a possible security problem "
17377 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
17381 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17382 msgid "B<--inspector>"
17383 msgstr "B<--inspector>"
17386 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17388 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17389 "system and mount filesystems as they would be mounted on the real virtual "
17394 #: ../fish/guestfish.pod:266
17395 msgid "Typical usage is either:"
17399 #: ../fish/guestfish.pod:268
17402 " guestfish -d myguest -i\n"
17405 " guestfish -d myguest -i\n"
17409 #: ../fish/guestfish.pod:270
17410 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17414 #: ../fish/guestfish.pod:272
17417 " guestfish --ro -d myguest -i\n"
17420 " guestfish --ro -d myguest -i\n"
17424 #: ../fish/guestfish.pod:274
17425 msgid "(for active domains, readonly), or specify the block device directly:"
17429 #: ../fish/guestfish.pod:276
17432 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17435 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17439 #: ../fish/guestfish.pod:278
17441 "Note that the command line syntax changed slightly over older versions of "
17442 "guestfish. You can still use the old syntax:"
17446 #: ../fish/guestfish.pod:281
17449 " guestfish [--ro] -i disk.img\n"
17452 " guestfish [--ro] -i disk.img\n"
17456 #: ../fish/guestfish.pod:283
17459 " guestfish [--ro] -i libvirt-domain\n"
17464 #: ../fish/guestfish.pod:285
17466 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17467 "then using other commands to mount the filesystems that were found."
17471 #: ../fish/guestfish.pod:294
17472 msgid "B<--listen>"
17473 msgstr "B<--listen>"
17476 #: ../fish/guestfish.pod:296
17478 "Fork into the background and listen for remote commands. See section L</"
17479 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17483 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17488 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17490 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
17491 "ATTACHING TO RUNNING DAEMONS>)."
17495 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17496 msgid "B<-m dev[:mountpoint[:options]]>"
17500 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17501 msgid "B<--mount dev[:mountpoint[:options]]>"
17505 #: ../fish/guestfish.pod:308
17506 msgid "Mount the named partition or logical volume on the given mountpoint."
17510 #: ../fish/guestfish.pod:310
17511 msgid "If the mountpoint is omitted, it defaults to C</>."
17515 #: ../fish/guestfish.pod:312
17516 msgid "You have to mount something on C</> before most commands will work."
17520 #: ../fish/guestfish.pod:314
17522 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17527 #: ../fish/guestfish.pod:317
17529 "If you don't know what filesystems a disk image contains, you can either run "
17530 "guestfish without this option, then list the partitions, filesystems and LVs "
17531 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17532 "commands), or you can use the L<virt-filesystems(1)> program."
17536 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17538 "The third (and rarely used) part of the mount parameter is the list of mount "
17539 "options used to mount the underlying filesystem. If this is not given, then "
17540 "the mount options are either the empty string or C<ro> (the latter if the "
17541 "I<--ro> flag is used). By specifying the mount options, you override this "
17542 "default choice. Probably the only time you would use this is to enable ACLs "
17543 "and/or extended attributes if the filesystem can support them:"
17547 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17550 " -m /dev/sda1:/:acl,user_xattr\n"
17555 #: ../fish/guestfish.pod:333
17556 msgid "Using this flag is equivalent to using the C<mount-options> command."
17560 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17561 #: ../resize/virt-resize.pod:358
17566 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17567 msgid "B<--no-sync>"
17568 msgstr "B<--no-sync>"
17571 #: ../fish/guestfish.pod:339
17573 "Disable autosync. This is enabled by default. See the discussion of "
17574 "autosync in the L<guestfs(3)> manpage."
17578 #: ../fish/guestfish.pod:342
17583 #: ../fish/guestfish.pod:344
17584 msgid "B<--new type>"
17585 msgstr "B<--new тип>"
17588 #: ../fish/guestfish.pod:346
17590 msgstr "B<-N help>"
17593 #: ../fish/guestfish.pod:348
17595 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
17596 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17597 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
17602 #: ../fish/guestfish.pod:353
17603 msgid "B<--progress-bars>"
17604 msgstr "B<--progress-bars>"
17607 #: ../fish/guestfish.pod:355
17608 msgid "Enable progress bars, even when guestfish is used non-interactively."
17612 #: ../fish/guestfish.pod:357
17614 "Progress bars are enabled by default when guestfish is used as an "
17615 "interactive shell."
17619 #: ../fish/guestfish.pod:360
17620 msgid "B<--no-progress-bars>"
17621 msgstr "B<--no-progress-bars>"
17624 #: ../fish/guestfish.pod:362
17625 msgid "Disable progress bars."
17629 #: ../fish/guestfish.pod:364
17630 msgid "B<--remote[=pid]>"
17631 msgstr "B<--remote[=pid]>"
17634 #: ../fish/guestfish.pod:366
17636 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
17637 "CONTROL GUESTFISH OVER A SOCKET> below."
17641 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17642 #: ../rescue/virt-rescue.pod:161
17647 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17648 #: ../rescue/virt-rescue.pod:163
17653 #: ../fish/guestfish.pod:373
17655 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17656 "mounts are done read-only."
17660 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17662 "The option must always be used if the disk image or virtual machine might be "
17663 "running, and is generally recommended in cases where you don't need write "
17664 "access to the disk."
17668 #: ../fish/guestfish.pod:380
17670 "Note that prepared disk images created with I<-N> are not affected by this "
17671 "option. Also commands like C<add> are not affected - you have to specify "
17672 "the C<readonly:true> option explicitly if you need it."
17676 #: ../fish/guestfish.pod:384
17677 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17681 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17682 #: ../rescue/virt-rescue.pod:173
17683 msgid "B<--selinux>"
17684 msgstr "B<--selinux>"
17687 #: ../fish/guestfish.pod:388
17688 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
17692 #: ../fish/guestfish.pod:394
17694 "Enable very verbose messages. This is particularly useful if you find a bug."
17698 #: ../fish/guestfish.pod:401
17699 msgid "Display the guestfish / libguestfs version number and exit."
17703 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17704 #: ../rescue/virt-rescue.pod:190
17709 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17710 #: ../rescue/virt-rescue.pod:192
17715 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17717 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17718 "mounts are done read-write."
17722 #: ../fish/guestfish.pod:410
17723 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17727 #: ../fish/guestfish.pod:414
17728 msgid "Echo each command before executing it."
17732 #: ../fish/guestfish.pod:418
17733 msgid "COMMANDS ON COMMAND LINE"
17737 #: ../fish/guestfish.pod:420
17739 "Any additional (non-option) arguments are treated as commands to execute."
17743 #: ../fish/guestfish.pod:423
17745 "Commands to execute should be separated by a colon (C<:>), where the colon "
17746 "is a separate parameter. Thus:"
17750 #: ../fish/guestfish.pod:426
17753 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17758 #: ../fish/guestfish.pod:428
17760 "If there are no additional arguments, then we enter a shell, either an "
17761 "interactive shell with a prompt (if the input is a terminal) or a non-"
17762 "interactive shell."
17766 #: ../fish/guestfish.pod:432
17768 "In either command line mode or non-interactive shell, the first command that "
17769 "gives an error causes the whole shell to exit. In interactive mode (with a "
17770 "prompt) if a command fails, you can continue to enter commands."
17774 #: ../fish/guestfish.pod:437
17775 msgid "USING launch (OR run)"
17779 #: ../fish/guestfish.pod:439
17781 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17782 "then launch it, then mount any disks you need, and finally issue actions/"
17783 "commands. So the general order of the day is:"
17787 #: ../fish/guestfish.pod:447
17788 msgid "add or -a/--add"
17792 #: ../fish/guestfish.pod:451
17793 msgid "launch (aka run)"
17797 #: ../fish/guestfish.pod:455
17798 msgid "mount or -m/--mount"
17802 #: ../fish/guestfish.pod:459
17803 msgid "any other commands"
17807 #: ../fish/guestfish.pod:463
17809 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
17810 "guest before mounting or performing any other commands."
17814 #: ../fish/guestfish.pod:466
17816 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17817 "I<--new> options were given then C<run> is done automatically, simply "
17818 "because guestfish can't perform the action you asked for without doing this."
17822 #: ../fish/guestfish.pod:471
17823 msgid "OPENING DISKS FOR READ AND WRITE"
17827 #: ../fish/guestfish.pod:473
17829 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17830 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17831 "I<-i> and I<-m> open disk images read-only or for writing."
17835 #: ../fish/guestfish.pod:478
17837 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17838 "opening disk images supplied on the command line for write. To open a disk "
17839 "image read-only you have to do I<-a image --ro>."
17843 #: ../fish/guestfish.pod:482
17845 "This matters: If you accidentally open a live VM disk image writable then "
17846 "you will cause irreversible disk corruption."
17850 #: ../fish/guestfish.pod:485
17852 "In a future libguestfs we intend to change the default the other way. Disk "
17853 "images will be opened read-only. You will have to either specify "
17854 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17855 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17856 "access for disk images specified by those other command line options."
17860 #: ../fish/guestfish.pod:492
17862 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17863 "which does nothing (it is already the default). However it is highly "
17864 "recommended that you use this option to indicate that you need write access, "
17865 "and prepare your scripts for the day when this option will be required for "
17870 #: ../fish/guestfish.pod:498
17872 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17873 "other libguestfs program apart from guestfish and guestmount."
17877 #: ../fish/guestfish.pod:501
17882 #: ../fish/guestfish.pod:503
17884 "You can quote ordinary parameters using either single or double quotes. For "
17889 #: ../fish/guestfish.pod:506
17892 " add \"file with a space.img\"\n"
17897 #: ../fish/guestfish.pod:508
17900 " rm '/file name'\n"
17905 #: ../fish/guestfish.pod:510
17913 #: ../fish/guestfish.pod:512
17915 "A few commands require a list of strings to be passed. For these, use a "
17916 "whitespace-separated list, enclosed in quotes. Strings containing "
17917 "whitespace to be passed through must be enclosed in single quotes. A "
17918 "literal single quote must be escaped with a backslash."
17922 #: ../fish/guestfish.pod:517
17925 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17926 " command \"/bin/echo 'foo bar'\"\n"
17927 " command \"/bin/echo \\'foo\\'\"\n"
17932 #: ../fish/guestfish.pod:521
17933 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17937 #: ../fish/guestfish.pod:523
17939 "In double-quoted arguments (only) use backslash to insert special characters:"
17943 #: ../fish/guestfish.pod:528
17948 #: ../fish/guestfish.pod:530
17949 msgid "Alert (bell) character."
17953 #: ../fish/guestfish.pod:532
17958 #: ../fish/guestfish.pod:534
17959 msgid "Backspace character."
17963 #: ../fish/guestfish.pod:536
17968 #: ../fish/guestfish.pod:538
17969 msgid "Form feed character."
17973 #: ../fish/guestfish.pod:540
17978 #: ../fish/guestfish.pod:542
17979 msgid "Newline character."
17983 #: ../fish/guestfish.pod:544
17988 #: ../fish/guestfish.pod:546
17989 msgid "Carriage return character."
17993 #: ../fish/guestfish.pod:548
17998 #: ../fish/guestfish.pod:550
17999 msgid "Horizontal tab character."
18003 #: ../fish/guestfish.pod:552
18008 #: ../fish/guestfish.pod:554
18009 msgid "Vertical tab character."
18013 #: ../fish/guestfish.pod:556
18018 #: ../fish/guestfish.pod:558
18019 msgid "A literal double quote character."
18023 #: ../fish/guestfish.pod:560
18028 #: ../fish/guestfish.pod:562
18030 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18035 #: ../fish/guestfish.pod:565
18040 #: ../fish/guestfish.pod:567
18042 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18046 #: ../fish/guestfish.pod:570
18048 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18053 #: ../fish/guestfish.pod:573
18058 #: ../fish/guestfish.pod:575
18059 msgid "A literal backslash character."
18063 #: ../fish/guestfish.pod:579
18064 msgid "OPTIONAL ARGUMENTS"
18068 #: ../fish/guestfish.pod:581
18070 "Some commands take optional arguments. These arguments appear in this "
18071 "documentation as C<[argname:..]>. You can use them as in these examples:"
18075 #: ../fish/guestfish.pod:585
18078 " add-drive-opts filename\n"
18083 #: ../fish/guestfish.pod:587
18086 " add-drive-opts filename readonly:true\n"
18091 #: ../fish/guestfish.pod:589
18094 " add-drive-opts filename format:qcow2 readonly:false\n"
18099 #: ../fish/guestfish.pod:591
18101 "Each optional argument can appear at most once. All optional arguments must "
18102 "appear after the required ones."
18106 #: ../fish/guestfish.pod:594
18111 #: ../fish/guestfish.pod:596
18113 "This section applies to all commands which can take integers as parameters."
18117 #: ../fish/guestfish.pod:599
18118 msgid "SIZE SUFFIX"
18122 #: ../fish/guestfish.pod:601
18124 "When the command takes a parameter measured in bytes, you can use one of the "
18125 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18129 #: ../fish/guestfish.pod:607
18130 msgid "B<k> or B<K> or B<KiB>"
18131 msgstr "B<k>, B<K> або B<KiB>"
18134 #: ../fish/guestfish.pod:609
18135 msgid "The size in kilobytes (multiplied by 1024)."
18139 #: ../fish/guestfish.pod:611
18144 #: ../fish/guestfish.pod:613
18145 msgid "The size in SI 1000 byte units."
18149 #: ../fish/guestfish.pod:615
18150 msgid "B<M> or B<MiB>"
18151 msgstr "B<M> або B<MiB>"
18154 #: ../fish/guestfish.pod:617
18155 msgid "The size in megabytes (multiplied by 1048576)."
18159 #: ../fish/guestfish.pod:619
18164 #: ../fish/guestfish.pod:621
18165 msgid "The size in SI 1000000 byte units."
18169 #: ../fish/guestfish.pod:623
18170 msgid "B<G> or B<GiB>"
18171 msgstr "B<G> або B<GiB>"
18174 #: ../fish/guestfish.pod:625
18175 msgid "The size in gigabytes (multiplied by 2**30)."
18176 msgstr "Розмір у гігабайтах (з множником 2**30)."
18179 #: ../fish/guestfish.pod:627
18184 #: ../fish/guestfish.pod:629
18185 msgid "The size in SI 10**9 byte units."
18186 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18189 #: ../fish/guestfish.pod:631
18190 msgid "B<T> or B<TiB>"
18191 msgstr "B<T> або B<TiB>"
18194 #: ../fish/guestfish.pod:633
18195 msgid "The size in terabytes (multiplied by 2**40)."
18196 msgstr "Розмір у терабайтах (з множником 2**40)."
18199 #: ../fish/guestfish.pod:635
18204 #: ../fish/guestfish.pod:637
18205 msgid "The size in SI 10**12 byte units."
18209 #: ../fish/guestfish.pod:639
18210 msgid "B<P> or B<PiB>"
18211 msgstr "B<P> або B<PiB>"
18214 #: ../fish/guestfish.pod:641
18215 msgid "The size in petabytes (multiplied by 2**50)."
18219 #: ../fish/guestfish.pod:643
18224 #: ../fish/guestfish.pod:645
18225 msgid "The size in SI 10**15 byte units."
18229 #: ../fish/guestfish.pod:647
18230 msgid "B<E> or B<EiB>"
18231 msgstr "B<E> або B<EiB>"
18234 #: ../fish/guestfish.pod:649
18235 msgid "The size in exabytes (multiplied by 2**60)."
18239 #: ../fish/guestfish.pod:651
18244 #: ../fish/guestfish.pod:653
18245 msgid "The size in SI 10**18 byte units."
18249 #: ../fish/guestfish.pod:655
18250 msgid "B<Z> or B<ZiB>"
18251 msgstr "B<Z> або B<ZiB>"
18254 #: ../fish/guestfish.pod:657
18255 msgid "The size in zettabytes (multiplied by 2**70)."
18259 #: ../fish/guestfish.pod:659
18264 #: ../fish/guestfish.pod:661
18265 msgid "The size in SI 10**21 byte units."
18269 #: ../fish/guestfish.pod:663
18270 msgid "B<Y> or B<YiB>"
18271 msgstr "B<Y> або B<YiB>"
18274 #: ../fish/guestfish.pod:665
18275 msgid "The size in yottabytes (multiplied by 2**80)."
18279 #: ../fish/guestfish.pod:667
18284 #: ../fish/guestfish.pod:669
18285 msgid "The size in SI 10**24 byte units."
18289 #: ../fish/guestfish.pod:675
18292 " truncate-size /file 1G\n"
18297 #: ../fish/guestfish.pod:677
18298 msgid "would truncate the file to 1 gigabyte."
18302 #: ../fish/guestfish.pod:679
18304 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18305 "the parameter to L</memsize> is specified in megabytes already). Adding a "
18306 "suffix will probably not do what you expect."
18310 #: ../fish/guestfish.pod:683
18311 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18315 #: ../fish/guestfish.pod:685
18317 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18318 "octal number or C<0x> to prefix a hexadecimal number. For example:"
18322 #: ../fish/guestfish.pod:688
18325 " 1234 decimal number 1234\n"
18326 " 02322 octal number, equivalent to decimal 1234\n"
18327 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
18332 #: ../fish/guestfish.pod:692
18334 "When using the C<chmod> command, you almost always want to specify an octal "
18335 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18336 "L<chmod(1)> program):"
18340 #: ../fish/guestfish.pod:696
18343 " chmod 0777 /public # OK\n"
18344 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
18349 #: ../fish/guestfish.pod:699
18351 "Commands that return numbers usually print them in decimal, but some "
18352 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18353 "octal, preceeded by C<0>)."
18357 #: ../fish/guestfish.pod:703
18358 msgid "WILDCARDS AND GLOBBING"
18362 #: ../fish/guestfish.pod:705
18364 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18365 "(globbing) by default. So for example the following will not do what you "
18370 #: ../fish/guestfish.pod:709
18378 #: ../fish/guestfish.pod:711
18380 "Assuming you don't have a directory called literally C</home/*> then the "
18381 "above command will return an error."
18385 #: ../fish/guestfish.pod:714
18386 msgid "To perform wildcard expansion, use the C<glob> command."
18390 #: ../fish/guestfish.pod:716
18393 " glob rm-rf /home/*\n"
18398 #: ../fish/guestfish.pod:718
18400 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18401 "many times), equivalent to:"
18405 #: ../fish/guestfish.pod:721
18408 " rm-rf /home/jim\n"
18409 " rm-rf /home/joe\n"
18410 " rm-rf /home/mary\n"
18415 #: ../fish/guestfish.pod:725
18416 msgid "C<glob> only works on simple guest paths and not on device names."
18420 #: ../fish/guestfish.pod:727
18422 "If you have several parameters, each containing a wildcard, then glob will "
18423 "perform a Cartesian product."
18427 #: ../fish/guestfish.pod:730
18432 #: ../fish/guestfish.pod:732
18434 "Any line which starts with a I<#> character is treated as a comment and "
18435 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
18436 "a command. For example:"
18440 #: ../fish/guestfish.pod:736
18443 " # this is a comment\n"
18444 " # this is a comment\n"
18445 " foo # NOT a comment\n"
18450 #: ../fish/guestfish.pod:740
18451 msgid "Blank lines are also ignored."
18455 #: ../fish/guestfish.pod:742
18456 msgid "RUNNING COMMANDS LOCALLY"
18460 #: ../fish/guestfish.pod:744
18462 "Any line which starts with a I<!> character is treated as a command sent to "
18463 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
18467 #: ../fish/guestfish.pod:748
18471 " tgz-out /remote local/remote-data.tar.gz\n"
18476 #: ../fish/guestfish.pod:751
18478 "will create a directory C<local> on the host, and then export the contents "
18479 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
18480 "(See C<tgz-out>)."
18484 #: ../fish/guestfish.pod:755
18486 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
18487 "effect, due to the way that subprocesses work in Unix."
18491 #: ../fish/guestfish.pod:758
18492 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18496 #: ../fish/guestfish.pod:760
18498 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18499 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18500 "and executed as guestfish commands."
18504 #: ../fish/guestfish.pod:764
18506 "Thus you can use shell script to construct arbitrary guestfish commands "
18507 "which are then parsed by guestfish."
18511 #: ../fish/guestfish.pod:767
18513 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18514 "through C</foo.100>) using guestfish commands alone. However this is simple "
18515 "if we use a shell script to create the guestfish commands for us:"
18519 #: ../fish/guestfish.pod:772
18522 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18527 #: ../fish/guestfish.pod:774
18528 msgid "or with names like C</foo.001>:"
18532 #: ../fish/guestfish.pod:776
18535 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18540 #: ../fish/guestfish.pod:778
18542 "When using guestfish interactively it can be helpful to just run the shell "
18543 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18544 "ordinary I<!> local command), see what guestfish commands it would run, and "
18545 "when you are happy with those prepend the C<E<lt>> character to run the "
18546 "guestfish commands for real."
18550 #: ../fish/guestfish.pod:784
18555 #: ../fish/guestfish.pod:786
18557 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18558 "command (a guestfish command) to the second command (any host command). For "
18563 #: ../fish/guestfish.pod:790
18566 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18571 #: ../fish/guestfish.pod:792
18573 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18574 "program). The above command would list all accounts in the guest filesystem "
18575 "which have UID 0, ie. root accounts including backdoors. Other examples:"
18579 #: ../fish/guestfish.pod:797
18582 " hexdump /bin/ls | head\n"
18583 " list-devices | tail -1\n"
18584 " tgz-out / - | tar ztf -\n"
18589 #: ../fish/guestfish.pod:801
18591 "The space before the pipe symbol is required, any space after the pipe "
18592 "symbol is optional. Everything after the pipe symbol is just passed "
18593 "straight to the host shell, so it can contain redirections, globs and "
18594 "anything else that makes sense on the host side."
18598 #: ../fish/guestfish.pod:806
18600 "To use a literal argument which begins with a pipe symbol, you have to quote "
18605 #: ../fish/guestfish.pod:809
18613 #: ../fish/guestfish.pod:811
18614 msgid "HOME DIRECTORIES"
18618 #: ../fish/guestfish.pod:813
18620 "If a parameter starts with the character C<~> then the tilde may be expanded "
18621 "as a home directory path (either C<~> for the current user's home directory, "
18622 "or C<~user> for another user)."
18626 #: ../fish/guestfish.pod:817
18628 "Note that home directory expansion happens for users known I<on the host>, "
18629 "not in the guest filesystem."
18633 #: ../fish/guestfish.pod:820
18635 "To use a literal argument which begins with a tilde, you have to quote it, "
18640 #: ../fish/guestfish.pod:823
18648 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18649 msgid "ENCRYPTED DISKS"
18650 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18653 #: ../fish/guestfish.pod:827
18655 "Libguestfs has some support for Linux guests encrypted according to the "
18656 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18657 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
18658 "LUKS is supported."
18662 #: ../fish/guestfish.pod:832
18663 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18667 #: ../fish/guestfish.pod:834
18670 " ><fs> vfs-type /dev/sda2\n"
18676 #: ../fish/guestfish.pod:837
18678 "Then open those devices using L</luks-open>. This creates a device-mapper "
18679 "device called C</dev/mapper/luksdev>."
18683 #: ../fish/guestfish.pod:840
18686 " ><fs> luks-open /dev/sda2 luksdev\n"
18687 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18692 #: ../fish/guestfish.pod:843
18694 "Finally you have to tell LVM to scan for volume groups on the newly created "
18699 #: ../fish/guestfish.pod:846
18703 " vg-activate-all true\n"
18708 #: ../fish/guestfish.pod:849
18709 msgid "The logical volume(s) can now be mounted in the usual way."
18713 #: ../fish/guestfish.pod:851
18715 "Before closing a LUKS device you must unmount any logical volumes on it and "
18716 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18717 "one. Then you can close the mapper device:"
18721 #: ../fish/guestfish.pod:855
18724 " vg-activate false /dev/VG\n"
18725 " luks-close /dev/mapper/luksdev\n"
18730 #: ../fish/guestfish.pod:860
18732 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18733 "letters and paths (with some limitations). The following commands are "
18738 #: ../fish/guestfish.pod:864
18741 " file /WINDOWS/system32/config/system.LOG\n"
18746 #: ../fish/guestfish.pod:866
18749 " file win:\\windows\\system32\\config\\system.log\n"
18754 #: ../fish/guestfish.pod:868
18757 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18762 #: ../fish/guestfish.pod:870
18764 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18765 "where the drive is mounted, prepending that to the path, changing all "
18766 "backslash characters to forward slash, then resolving the result using L</"
18767 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
18768 "the parameter might be rewritten like this:"
18772 #: ../fish/guestfish.pod:876
18775 " win:e:\\foo\\bar => /e/FOO/bar\n"
18780 #: ../fish/guestfish.pod:878
18781 msgid "This only works in argument positions that expect a path."
18785 #: ../fish/guestfish.pod:880
18786 msgid "UPLOADING AND DOWNLOADING FILES"
18790 #: ../fish/guestfish.pod:882
18792 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18793 "others which upload from or download to a local file, you can use the "
18794 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
18798 #: ../fish/guestfish.pod:886
18806 #: ../fish/guestfish.pod:888
18808 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18812 #: ../fish/guestfish.pod:891
18815 " tar-out /etc - | tar tf -\n"
18820 #: ../fish/guestfish.pod:893
18822 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18823 "command (see L</PIPES>)."
18827 #: ../fish/guestfish.pod:896
18829 "When using C<-> to read from stdin, the input is read up to the end of "
18830 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
18831 "some arbitrary end marker:"
18835 #: ../fish/guestfish.pod:900
18838 " upload -<<END /foo\n"
18847 #: ../fish/guestfish.pod:906
18849 "Any string of characters can be used instead of C<END>. The end marker must "
18850 "appear on a line of its own, without any preceeding or following characters "
18851 "(not even spaces)."
18855 #: ../fish/guestfish.pod:910
18857 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18858 "upload local files (so-called \"FileIn\" parameters in the generator)."
18862 #: ../fish/guestfish.pod:913
18863 msgid "EXIT ON ERROR BEHAVIOUR"
18867 #: ../fish/guestfish.pod:915
18869 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18870 "taking commands from a human over a tty), and will exit on the first error "
18871 "in non-interactive mode (scripts, commands given on the command line)."
18875 #: ../fish/guestfish.pod:920
18877 "If you prefix a command with a I<-> character, then that command will not "
18878 "cause guestfish to exit, even if that (one) command returns an error."
18882 #: ../fish/guestfish.pod:924
18883 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18887 #: ../fish/guestfish.pod:926
18889 "Guestfish can be remote-controlled over a socket. This is useful "
18890 "particularly in shell scripts where you want to make several different "
18891 "changes to a filesystem, but you don't want the overhead of starting up a "
18892 "guestfish process each time."
18896 #: ../fish/guestfish.pod:931
18897 msgid "Start a guestfish server process using:"
18901 #: ../fish/guestfish.pod:933
18904 " eval \"`guestfish --listen`\"\n"
18909 #: ../fish/guestfish.pod:935
18910 msgid "and then send it commands by doing:"
18914 #: ../fish/guestfish.pod:937
18917 " guestfish --remote cmd [...]\n"
18922 #: ../fish/guestfish.pod:939
18923 msgid "To cause the server to exit, send it the exit command:"
18927 #: ../fish/guestfish.pod:943
18929 "Note that the server will normally exit if there is an error in a command. "
18930 "You can change this in the usual way. See section L</EXIT ON ERROR "
18935 #: ../fish/guestfish.pod:947
18936 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18940 #: ../fish/guestfish.pod:949
18942 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18943 "is how the I<--remote> option knows where to send the commands. You can "
18944 "have several guestfish listener processes running using:"
18948 #: ../fish/guestfish.pod:953
18951 " eval \"`guestfish --listen`\"\n"
18952 " pid1=$GUESTFISH_PID\n"
18953 " eval \"`guestfish --listen`\"\n"
18954 " pid2=$GUESTFISH_PID\n"
18956 " guestfish --remote=$pid1 cmd\n"
18957 " guestfish --remote=$pid2 cmd\n"
18962 #: ../fish/guestfish.pod:961
18963 msgid "REMOTE CONTROL AND CSH"
18967 #: ../fish/guestfish.pod:963
18969 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18974 #: ../fish/guestfish.pod:966
18977 " eval \"`guestfish --listen --csh`\"\n"
18982 #: ../fish/guestfish.pod:968
18983 msgid "REMOTE CONTROL DETAILS"
18987 #: ../fish/guestfish.pod:970
18989 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18990 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18991 "and C<$PID> is the process ID of the server."
18995 #: ../fish/guestfish.pod:974
18996 msgid "Guestfish client and server versions must match exactly."
19000 #: ../fish/guestfish.pod:976
19001 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19005 #: ../fish/guestfish.pod:978
19007 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19008 "context hangs, ie. don't do (note the backquotes):"
19012 #: ../fish/guestfish.pod:981
19015 #| " guestfish --ro -d myguest -i\n"
19018 " a=`guestfish --remote run`\n"
19021 " guestfish --ro -d myguest -i\n"
19025 #: ../fish/guestfish.pod:983
19027 "Since the C<run> command produces no output on stdout, this is not useful "
19028 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19033 #: ../fish/guestfish.pod:987
19034 msgid "PREPARED DISK IMAGES"
19038 #: ../fish/guestfish.pod:989
19040 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19041 "preformatted disk images that guestfish can make for you to save typing. "
19042 "This is particularly useful for testing purposes. This option is used "
19043 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19044 "can be mixed with I<-a>)."
19048 #: ../fish/guestfish.pod:995
19050 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19051 "the second and so on. Existing files in the current directory are "
19056 #: ../fish/guestfish.pod:999
19058 "The type briefly describes how the disk should be sized, partitioned, how "
19059 "filesystem(s) should be created, and how content should be added. "
19060 "Optionally the type can be followed by extra parameters, separated by C<:> "
19061 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19062 "allocated disk, containing a single partition, with the partition formatted "
19063 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19068 #: ../fish/guestfish.pod:1007
19069 msgid "To list the available types and any extra parameters they take, run:"
19073 #: ../fish/guestfish.pod:1011
19075 "Note that the prepared filesystem is not mounted. You would usually have to "
19076 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19080 #: ../fish/guestfish.pod:1015
19082 "If any I<-N> or I<--new> options are given, the guest is automatically "
19087 #: ../fish/guestfish.pod:1020
19088 msgid "Create a 100MB disk with an ext4-formatted partition:"
19092 #: ../fish/guestfish.pod:1022
19095 " guestfish -N fs:ext4\n"
19100 #: ../fish/guestfish.pod:1024
19101 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19105 #: ../fish/guestfish.pod:1026
19108 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19113 #: ../fish/guestfish.pod:1028
19114 msgid "Create a blank 200MB disk:"
19118 #: ../fish/guestfish.pod:1030
19121 " guestfish -N disk:200M\n"
19126 #: ../fish/guestfish.pod:1032
19127 msgid "PROGRESS BARS"
19131 #: ../fish/guestfish.pod:1034
19133 "Some (not all) long-running commands send progress notification messages as "
19134 "they are running. Guestfish turns these messages into progress bars."
19138 #: ../fish/guestfish.pod:1038
19140 "When a command that supports progress bars takes longer than two seconds to "
19141 "run, and if progress bars are enabled, then you will see one appearing below "
19146 #: ../fish/guestfish.pod:1042
19149 " ><fs> copy-size /large-file /another-file 2048M\n"
19150 " / 10% [#####-----------------------------------------] 00:30\n"
19155 #: ../fish/guestfish.pod:1045
19157 "The spinner on the left hand side moves round once for every progress "
19158 "notification received from the backend. This is a (reasonably) golden "
19159 "assurance that the command is \"doing something\" even if the progress bar "
19160 "is not moving, because the command is able to send the progress "
19161 "notifications. When the bar reaches 100% and the command finishes, the "
19162 "spinner disappears."
19166 #: ../fish/guestfish.pod:1052
19168 "Progress bars are enabled by default when guestfish is used interactively. "
19169 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19170 "and you can disable them completely using I<--no-progress-bars>."
19174 #: ../fish/guestfish.pod:1057
19175 msgid "GUESTFISH COMMANDS"
19179 #: ../fish/guestfish.pod:1059
19181 "The commands in this section are guestfish convenience commands, in other "
19182 "words, they are not part of the L<guestfs(3)> API."
19186 #: ../fish/guestfish.pod:1062
19191 #: ../fish/guestfish.pod:1064
19203 #: ../fish/guestfish.pod:1067
19204 msgid "Without any parameter, this provides general help."
19205 msgstr "Без параметра показує загальну довідкову інформацію."
19208 #: ../fish/guestfish.pod:1069
19209 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19213 #: ../fish/guestfish.pod:1071
19214 msgid "quit | exit"
19218 #: ../fish/guestfish.pod:1073
19219 msgid "This exits guestfish. You can also use C<^D> key."
19223 #: ../fish/guestfish.pod:1075
19224 msgid "@FISH_COMMANDS@"
19228 #: ../fish/guestfish.pod:1077
19233 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1474
19238 #: ../fish/guestfish.pod:1083
19240 "guestfish returns 0 if the commands completed without error, or 1 if there "
19245 #: ../fish/guestfish.pod:1090
19250 #: ../fish/guestfish.pod:1092
19252 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
19257 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3062
19258 msgid "FEBOOTSTRAP_KERNEL"
19262 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3064
19263 msgid "FEBOOTSTRAP_MODULES"
19267 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3066
19269 "These two environment variables allow the kernel that libguestfs uses in the "
19270 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19271 "most recent host kernel is chosen. For more information about kernel "
19272 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
19273 "available in febootstrap E<ge> 3.8."
19277 #: ../fish/guestfish.pod:1105
19278 msgid "GUESTFISH_DISPLAY_IMAGE"
19282 #: ../fish/guestfish.pod:1107
19284 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
19285 "If not set, it uses L<display(1)>."
19289 #: ../fish/guestfish.pod:1110
19290 msgid "GUESTFISH_PID"
19294 #: ../fish/guestfish.pod:1112
19296 "Used with the I<--remote> option to specify the remote guestfish process to "
19297 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19301 #: ../fish/guestfish.pod:1116
19306 #: ../fish/guestfish.pod:1118
19308 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
19309 "not specified, the external L<hexedit(1)> program is used."
19313 #: ../fish/guestfish.pod:1122
19318 #: ../fish/guestfish.pod:1124
19320 "If compiled with GNU readline support, various files in the home directory "
19321 "can be used. See L</FILES>."
19325 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3072
19326 msgid "LIBGUESTFS_APPEND"
19330 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3074
19331 msgid "Pass additional options to the guest kernel."
19335 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3076
19336 msgid "LIBGUESTFS_DEBUG"
19337 msgstr "LIBGUESTFS_DEBUG"
19340 #: ../fish/guestfish.pod:1133
19342 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
19343 "effect as using the B<-v> option."
19347 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3081
19348 msgid "LIBGUESTFS_MEMSIZE"
19349 msgstr "LIBGUESTFS_MEMSIZE"
19352 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3083
19354 "Set the memory allocated to the qemu process, in megabytes. For example:"
19358 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3086
19361 " LIBGUESTFS_MEMSIZE=700\n"
19364 " LIBGUESTFS_MEMSIZE=700\n"
19368 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3088
19369 msgid "LIBGUESTFS_PATH"
19373 #: ../fish/guestfish.pod:1145
19375 "Set the path that guestfish uses to search for kernel and initrd.img. See "
19376 "the discussion of paths in L<guestfs(3)>."
19380 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3093
19381 msgid "LIBGUESTFS_QEMU"
19385 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3095
19387 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
19388 "which was found at compile time by the configure script is used."
19392 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3101
19393 msgid "LIBGUESTFS_TRACE"
19397 #: ../fish/guestfish.pod:1156
19398 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19402 #: ../fish/guestfish.pod:1158
19404 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19407 #: ../fish/guestfish.pod:1160
19409 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
19414 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3106
19419 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3108
19421 "Location of temporary directory, defaults to C</tmp> except for the cached "
19422 "supermin appliance which defaults to C</var/tmp>."
19426 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3111
19428 "If libguestfs was compiled to use the supermin appliance then the real "
19429 "appliance is cached in this directory, shared between all handles belonging "
19430 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
19431 "use in case C</var/tmp> is not large enough."
19435 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19436 #: ../rescue/virt-rescue.pod:269
19441 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19442 #: ../rescue/virt-rescue.pod:273
19443 msgid "$HOME/.libguestfs-tools.rc"
19447 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19448 #: ../rescue/virt-rescue.pod:275
19449 msgid "/etc/libguestfs-tools.conf"
19453 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19454 #: ../rescue/virt-rescue.pod:277
19456 "This configuration file controls the default read-only or read-write mode "
19457 "(I<--ro> or I<--rw>)."
19461 #: ../fish/guestfish.pod:1187
19462 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19466 #: ../fish/guestfish.pod:1189
19467 msgid "$HOME/.guestfish"
19471 #: ../fish/guestfish.pod:1191
19473 "If compiled with GNU readline support, then the command history is saved in "
19478 #: ../fish/guestfish.pod:1194
19479 msgid "$HOME/.inputrc"
19483 #: ../fish/guestfish.pod:1196
19484 msgid "/etc/inputrc"
19488 #: ../fish/guestfish.pod:1198
19490 "If compiled with GNU readline support, then these files can be used to "
19491 "configure readline. For further information, please see L<readline(3)/"
19492 "INITIALIZATION FILE>."
19496 #: ../fish/guestfish.pod:1202
19497 msgid "To write rules which only apply to guestfish, use:"
19501 #: ../fish/guestfish.pod:1204
19511 #: ../fish/guestfish.pod:1208
19513 "Variables that you can set in inputrc that change the behaviour of guestfish "
19514 "in useful ways include:"
19518 #: ../fish/guestfish.pod:1213
19519 msgid "completion-ignore-case (default: on)"
19523 #: ../fish/guestfish.pod:1215
19525 "By default, guestfish will ignore case when tab-completing paths on the "
19530 #: ../fish/guestfish.pod:1218
19533 " set completion-ignore-case off\n"
19538 #: ../fish/guestfish.pod:1220
19539 msgid "to make guestfish case sensitive."
19543 #: ../fish/guestfish.pod:1224
19548 #: ../fish/guestfish.pod:1226
19549 msgid "test2.img (etc)"
19553 #: ../fish/guestfish.pod:1228
19555 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19556 "will be created in the file C<test1.img> in the current directory. The "
19557 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
19558 "the same name will be overwritten."
19562 #: ../fish/guestfish.pod:1237
19564 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19565 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19566 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19567 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19568 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19569 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19573 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3197
19574 #: ../test-tool/libguestfs-test-tool.pod:112
19575 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
19579 #: ../fish/virt-copy-in.pod:5
19581 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19585 #: ../fish/virt-copy-in.pod:9
19588 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19593 #: ../fish/virt-copy-in.pod:11
19596 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19601 #: ../fish/virt-copy-in.pod:15
19603 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19604 "causing disk corruption. The virtual machine must be shut down before you "
19605 "use this command."
19609 #: ../fish/virt-copy-in.pod:21
19611 "C<virt-copy-in> copies files and directories from the local disk into a "
19612 "virtual machine disk image or named libvirt domain."
19616 #: ../fish/virt-copy-in.pod:24
19618 "You can give one of more filenames and directories on the command line. "
19619 "Directories are copied in recursively. The final parameter must be the "
19620 "destination directory in the disk image which must be an absolute path "
19621 "starting with a C</> character."
19625 #: ../fish/virt-copy-in.pod:33
19628 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19633 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19634 msgid "Upload a home directory to a guest:"
19638 #: ../fish/virt-copy-in.pod:37
19641 " virt-copy-in -d MyGuest skel /home\n"
19646 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19647 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19648 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19652 #: ../fish/virt-copy-in.pod:41
19654 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19655 "> C<copy-in> command. For anything more complex than a trivial copy, you "
19656 "are probably better off using guestfish directly."
19660 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19661 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19663 "Since the shell script just passes options straight to guestfish, read "
19664 "L<guestfish(1)> to see the full list of options."
19668 #: ../fish/virt-copy-in.pod:52
19671 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19672 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19673 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19674 #| "libguestfs.org/>."
19676 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19677 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19679 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19680 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19681 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19685 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19686 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19688 #| msgid "Copyright (C) 2009 Red Hat Inc."
19689 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19690 msgstr "© Red Hat Inc., 2009"
19693 #: ../fish/virt-copy-out.pod:5
19695 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19700 #: ../fish/virt-copy-out.pod:9
19703 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19708 #: ../fish/virt-copy-out.pod:11
19711 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19716 #: ../fish/virt-copy-out.pod:15
19718 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19719 "image or named libvirt domain."
19723 #: ../fish/virt-copy-out.pod:18
19725 "You can give one of more filenames and directories on the command line. "
19726 "Directories are copied out recursively."
19730 #: ../fish/virt-copy-out.pod:23
19731 msgid "Download the home directories from a virtual machine:"
19735 #: ../fish/virt-copy-out.pod:25
19739 " virt-copy-out -d MyGuest /home homes\n"
19744 #: ../fish/virt-copy-out.pod:30
19746 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19747 "> C<copy-out> command. For anything more complex than a trivial copy, you "
19748 "are probably better off using guestfish directly."
19752 #: ../fish/virt-copy-out.pod:41
19755 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19756 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19757 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19758 #| "libguestfs.org/>."
19760 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19761 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19763 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19764 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19765 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19769 #: ../fish/virt-tar-in.pod:5
19770 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19774 #: ../fish/virt-tar-in.pod:9
19777 " virt-tar-in -a disk.img data.tar /destination\n"
19782 #: ../fish/virt-tar-in.pod:11
19785 " virt-tar-in -d domain data.tar /destination\n"
19790 #: ../fish/virt-tar-in.pod:13
19793 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19798 #: ../fish/virt-tar-in.pod:17
19800 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19801 "causing disk corruption. The virtual machine must be shut down before you "
19802 "use this command."
19806 #: ../fish/virt-tar-in.pod:23
19808 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19809 "image or named libvirt domain."
19813 #: ../fish/virt-tar-in.pod:26
19815 "The first parameter is the tar file. Use C<-> to read the tar file from "
19816 "standard input. The second parameter is the absolute target directory to "
19821 #: ../fish/virt-tar-in.pod:34
19824 " virt-tar-in -d MyGuest homes.tar /home\n"
19829 #: ../fish/virt-tar-in.pod:38
19831 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19832 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
19833 "probably better off using guestfish directly."
19837 #: ../fish/virt-tar-in.pod:49
19840 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19841 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19842 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19843 #| "libguestfs.org/>."
19845 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19846 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19849 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19850 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19851 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19855 #: ../fish/virt-tar-out.pod:5
19857 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19861 #: ../fish/virt-tar-out.pod:9
19864 " virt-tar-out -a disk.img /dir files.tar\n"
19869 #: ../fish/virt-tar-out.pod:11
19872 " virt-tar-out -d domain /dir files.tar\n"
19877 #: ../fish/virt-tar-out.pod:13
19880 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19885 #: ../fish/virt-tar-out.pod:17
19887 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19891 #: ../fish/virt-tar-out.pod:20
19893 "The first parameter is the absolute path of the virtual machine directory. "
19894 "The second parameter is the tar file to write. Use C<-> to write to "
19899 #: ../fish/virt-tar-out.pod:26
19900 msgid "Download the home directories from a guest:"
19904 #: ../fish/virt-tar-out.pod:28
19907 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19912 #: ../fish/virt-tar-out.pod:32
19914 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19915 "> C<tar-out> command. For anything more complex than a trivial copy, you "
19916 "are probably better off using guestfish directly."
19920 #: ../fish/virt-tar-out.pod:43
19923 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19924 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19925 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19926 #| "libguestfs.org/>."
19928 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19929 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19931 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19932 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19933 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19937 #: ../fuse/guestmount.pod:5
19939 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19943 #: ../fuse/guestmount.pod:9
19946 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19951 #: ../fuse/guestmount.pod:11
19954 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19959 #: ../fuse/guestmount.pod:13
19962 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19967 #: ../fuse/guestmount.pod:17
19969 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19970 "machines. If you do this, you risk disk corruption in the VM."
19974 #: ../fuse/guestmount.pod:22
19976 "The guestmount program can be used to mount virtual machine filesystems and "
19977 "other disk images on the host. It uses libguestfs for access to the guest "
19978 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19979 "a mountable device."
19983 #: ../fuse/guestmount.pod:27
19985 "Along with other options, you have to give at least one device (I<-a> "
19986 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19987 "option) or use the I<-i> inspection option. How this works is better "
19988 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19993 #: ../fuse/guestmount.pod:33
19995 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
19996 "by you, and the filesystem will not be visible to any other users unless you "
19997 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
19998 "the filesystem, use the C<fusermount -u> command."
20002 #: ../fuse/guestmount.pod:41
20004 "For a typical Windows guest which has its main filesystem on the first "
20009 #: ../fuse/guestmount.pod:44
20012 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20017 #: ../fuse/guestmount.pod:46
20019 "For a typical Linux guest which has a /boot filesystem on the first "
20020 "partition, and the root filesystem on a logical volume:"
20024 #: ../fuse/guestmount.pod:49
20027 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20032 #: ../fuse/guestmount.pod:51
20033 msgid "To get libguestfs to detect guest mountpoints for you:"
20037 #: ../fuse/guestmount.pod:53
20040 " guestmount -a guest.img -i --ro /mnt\n"
20045 #: ../fuse/guestmount.pod:55
20046 msgid "For a libvirt guest called \"Guest\" you could do:"
20050 #: ../fuse/guestmount.pod:57
20053 " guestmount -d Guest -i --ro /mnt\n"
20058 #: ../fuse/guestmount.pod:59
20060 "If you don't know what filesystems are contained in a guest or disk image, "
20061 "use L<virt-filesystems(1)> first:"
20065 #: ../fuse/guestmount.pod:62
20068 " virt-filesystems MyGuest\n"
20073 #: ../fuse/guestmount.pod:64
20075 "If you want to trace the libguestfs calls but without excessive debugging "
20076 "information, we recommend:"
20080 #: ../fuse/guestmount.pod:67
20083 " guestmount [...] --trace /mnt\n"
20088 #: ../fuse/guestmount.pod:69
20089 msgid "If you want to debug the program, we recommend:"
20093 #: ../fuse/guestmount.pod:71
20096 " guestmount [...] --trace --verbose /mnt\n"
20101 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20102 #: ../resize/virt-resize.pod:511
20107 #: ../fuse/guestmount.pod:75
20108 msgid "Other users cannot see the filesystem by default"
20112 #: ../fuse/guestmount.pod:77
20114 "If you mount a filesystem as one user (eg. root), then other users will not "
20115 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20116 "option when mounting:"
20120 #: ../fuse/guestmount.pod:81
20123 " sudo guestmount [...] -o allow_other /mnt\n"
20128 #: ../fuse/guestmount.pod:91
20129 msgid "Add a block device or virtual machine image."
20133 #: ../fuse/guestmount.pod:114
20134 msgid "B<--dir-cache-timeout N>"
20135 msgstr "B<--dir-cache-timeout N>"
20138 #: ../fuse/guestmount.pod:116
20140 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20141 "seconds. The readdir cache [actually, there are several semi-independent "
20142 "caches] is populated after a readdir(2) call with the stat and extended "
20143 "attributes of the files in the directory, in anticipation that they will be "
20144 "requested soon after."
20148 #: ../fuse/guestmount.pod:122
20150 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20151 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20152 "requests, only cache existing ones."
20156 #: ../fuse/guestmount.pod:142
20158 "If you have untrusted raw-format guest disk images, you should use this "
20159 "option to specify the disk format. This avoids a possible security problem "
20160 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20161 "guestfs_add_drive_opts>."
20165 #: ../fuse/guestmount.pod:147
20166 msgid "B<--fuse-help>"
20167 msgstr "B<--fuse-help>"
20170 #: ../fuse/guestmount.pod:149
20171 msgid "Display help on special FUSE options (see I<-o> below)."
20175 #: ../fuse/guestmount.pod:153
20176 msgid "Display brief help and exit."
20180 #: ../fuse/guestmount.pod:177
20182 "Mount the named partition or logical volume on the given mountpoint B<in the "
20183 "guest> (this has nothing to do with mountpoints in the host)."
20187 #: ../fuse/guestmount.pod:180
20189 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
20190 "something on C</>."
20194 #: ../fuse/guestmount.pod:197
20196 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20197 "unmounted. If you specify this option, then we don't attempt to sync the "
20198 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
20202 #: ../fuse/guestmount.pod:202
20204 #| msgid "B<--partition>"
20205 msgid "B<-o option>"
20206 msgstr "B<--partition>"
20209 #: ../fuse/guestmount.pod:204
20211 #| msgid "B<--partition>"
20212 msgid "B<--option option>"
20213 msgstr "B<--partition>"
20216 #: ../fuse/guestmount.pod:206
20217 msgid "Pass extra options to FUSE."
20221 #: ../fuse/guestmount.pod:208
20223 "To get a list of all the extra options supported by FUSE, use the command "
20224 "below. Note that only the FUSE I<-o> options can be passed, and only some "
20225 "of them are a good idea."
20229 #: ../fuse/guestmount.pod:212
20232 " guestmount --fuse-help\n"
20237 #: ../fuse/guestmount.pod:214
20238 msgid "Some potentially useful FUSE options:"
20242 #: ../fuse/guestmount.pod:218
20243 msgid "B<-o allow_other>"
20247 #: ../fuse/guestmount.pod:220
20248 msgid "Allow other users to see the filesystem."
20252 #: ../fuse/guestmount.pod:222
20253 msgid "B<-o attr_timeout=N>"
20254 msgstr "B<-o attr_timeout=N>"
20257 #: ../fuse/guestmount.pod:224
20258 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20262 #: ../fuse/guestmount.pod:226
20263 msgid "B<-o kernel_cache>"
20267 #: ../fuse/guestmount.pod:228
20269 "Allow the kernel to cache files (reduces the number of reads that have to go "
20270 "through the L<guestfs(3)> API). This is generally a good idea if you can "
20271 "afford the extra memory usage."
20275 #: ../fuse/guestmount.pod:232
20276 msgid "B<-o uid=N> B<-o gid=N>"
20280 #: ../fuse/guestmount.pod:234
20282 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20283 "the chosen values."
20287 #: ../fuse/guestmount.pod:243
20289 "Add devices and mount everything read-only. Also disallow writes and make "
20290 "the disk appear read-only to FUSE."
20294 #: ../fuse/guestmount.pod:246
20296 "This is highly recommended if you are not going to edit the guest disk. If "
20297 "the guest is running and this option is I<not> supplied, then there is a "
20298 "strong risk of disk corruption in the guest. We try to prevent this from "
20299 "happening, but it is not always possible."
20303 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20304 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20308 #: ../fuse/guestmount.pod:255
20309 msgid "Enable SELinux support for the guest."
20313 #: ../fuse/guestmount.pod:261
20314 msgid "Enable verbose messages from underlying libguestfs."
20318 #: ../fuse/guestmount.pod:267
20319 msgid "Display the program version and exit."
20323 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20324 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20325 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20329 #: ../fuse/guestmount.pod:280
20336 #: ../fuse/guestmount.pod:282
20337 msgid "Trace libguestfs calls and entry into each FUSE function."
20341 #: ../fuse/guestmount.pod:284
20342 msgid "This also stops the daemon from forking into the background."
20346 #: ../fuse/guestmount.pod:310
20348 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20349 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20354 #: ../fuse/guestmount.pod:325
20355 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
20359 #: ../inspector/virt-inspector.pod:5
20361 "virt-inspector - Display operating system version and other information "
20362 "about a virtual machine"
20366 #: ../inspector/virt-inspector.pod:9
20369 #| " virt-list-partitions [--options] domname\n"
20372 " virt-inspector [--options] -d domname\n"
20375 " virt-list-partitions [--параметри] назва_домену\n"
20379 #: ../inspector/virt-inspector.pod:11
20382 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20385 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20388 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20392 #: ../inspector/virt-inspector.pod:15
20395 #| " virt-list-partitions [--options] domname\n"
20398 " virt-inspector domname\n"
20401 " virt-list-partitions [--параметри] назва_домену\n"
20405 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20408 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20411 " virt-inspector disk.img [disk.img ...]\n"
20414 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20418 #: ../inspector/virt-inspector.pod:21
20420 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20421 "determine the version of the operating system and other information about "
20422 "the virtual machine."
20426 #: ../inspector/virt-inspector.pod:25
20427 msgid "Virt-inspector produces XML output for feeding into other programs."
20431 #: ../inspector/virt-inspector.pod:27
20433 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20434 "the libvirt domain (see: C<virsh list --all>)."
20438 #: ../inspector/virt-inspector.pod:30
20440 "You can also run virt-inspector directly on disk images from a single "
20441 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
20442 "has several block devices, in which case you should list several I<-a> "
20443 "options one after another, with the first corresponding to the guest's C</"
20444 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20448 #: ../inspector/virt-inspector.pod:37
20450 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20451 "keys and similar."
20455 #: ../inspector/virt-inspector.pod:40
20457 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
20458 "inspect several virtual machines, you have to run virt-inspector several "
20459 "times (for example, from a shell script for-loop)."
20463 #: ../inspector/virt-inspector.pod:45
20465 "Because virt-inspector needs direct access to guest images, it won't "
20466 "normally work over remote libvirt connections."
20470 #: ../inspector/virt-inspector.pod:48
20472 "All of the information available from virt-inspector is also available "
20473 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
20474 "The same information can also be fetched using guestfish or via libguestfs "
20475 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20476 "WITH OTHER PROGRAMMING LANGUAGES>)."
20480 #: ../inspector/virt-inspector.pod:81
20482 "Libvirt is only used if you specify a C<domname> on the command line. If "
20483 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20488 #: ../inspector/virt-inspector.pod:94
20490 "When prompting for keys and passphrases, virt-inspector normally turns "
20491 "echoing off so you cannot see what you are typing. If you are not worried "
20492 "about Tempest attacks and there is no one else in the room you can specify "
20493 "this flag to see what you are typing."
20497 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20498 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20499 #: ../tools/virt-win-reg.pl:144
20501 "Specify the format of disk images given on the command line. If this is "
20502 "omitted then the format is autodetected from the content of the disk image."
20506 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20507 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20508 #: ../tools/virt-win-reg.pl:148
20510 "If disk images are requested from libvirt, then this program asks libvirt "
20511 "for this information. In this case, the value of the format parameter is "
20516 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20517 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20518 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20519 #: ../tools/virt-win-reg.pl:152
20521 "If working with untrusted raw-format guest disk images, you should ensure "
20522 "the format is always specified."
20526 #: ../inspector/virt-inspector.pod:139
20527 msgid "Previous versions of virt-inspector allowed you to write either:"
20531 #: ../inspector/virt-inspector.pod:145
20534 #| " inspect-get-hostname root\n"
20537 " virt-inspector guestname\n"
20540 " inspect-get-hostname корінь\n"
20544 #: ../inspector/virt-inspector.pod:153
20549 #: ../inspector/virt-inspector.pod:155
20551 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20552 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
20553 "just an overview."
20557 #: ../inspector/virt-inspector.pod:159
20559 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20560 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
20561 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20562 "which is vanishingly rare in real world VMs."
20566 #: ../inspector/virt-inspector.pod:164
20567 msgid "E<lt>operatingsystemE<gt>"
20571 #: ../inspector/virt-inspector.pod:166
20573 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20574 "describe the operating system, its architecture, the descriptive \"product "
20575 "name\" string, the type of OS and so on, as in this example:"
20579 #: ../inspector/virt-inspector.pod:170
20582 " <operatingsystems>\n"
20583 " <operatingsystem>\n"
20584 " <root>/dev/sda2</root>\n"
20585 " <name>windows</name>\n"
20586 " <arch>i386</arch>\n"
20587 " <distro>windows</distro>\n"
20588 " <product_name>Windows 7 Enterprise</product_name>\n"
20589 " <product_variant>Client</product_variant>\n"
20590 " <major_version>6</major_version>\n"
20591 " <minor_version>1</minor_version>\n"
20592 " <windows_systemroot>/Windows</windows_systemroot>\n"
20593 " <format>installed</format>\n"
20598 #: ../inspector/virt-inspector.pod:183
20600 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20601 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20602 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20603 "architecture. The other fields are fairly self-explanatory, but because "
20604 "these fields are taken directly from the libguestfs inspection API you can "
20605 "find precise information from L<guestfs(3)/INSPECTION>."
20609 #: ../inspector/virt-inspector.pod:191
20611 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20612 "of view of libguestfs (block devices may have completely different names "
20613 "inside the VM itself)."
20617 #: ../inspector/virt-inspector.pod:195
20619 #| msgid "mountpoints"
20620 msgid "E<lt>mountpointsE<gt>"
20621 msgstr "mountpoints"
20624 #: ../inspector/virt-inspector.pod:197
20626 "Un*x-like guests typically have multiple filesystems which are mounted at "
20627 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20628 "element which looks like this:"
20632 #: ../inspector/virt-inspector.pod:201
20635 " <operatingsystems>\n"
20636 " <operatingsystem>\n"
20639 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20640 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20641 " </mountpoints>\n"
20646 #: ../inspector/virt-inspector.pod:209
20648 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20649 "and may have completely different names inside the guest. Only mountable "
20650 "filesystems appear in this list, not things like swap devices."
20654 #: ../inspector/virt-inspector.pod:214
20656 #| msgid "list-filesystems"
20657 msgid "E<lt>filesystemsE<gt>"
20658 msgstr "list-filesystems"
20661 #: ../inspector/virt-inspector.pod:216
20663 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20664 "filesystems belonging to the guest, including swap and empty partitions. "
20665 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20666 "this OS or shared with this OS and other OSes)."
20670 #: ../inspector/virt-inspector.pod:222
20671 msgid "You might see something like this:"
20675 #: ../inspector/virt-inspector.pod:224
20678 " <operatingsystems>\n"
20679 " <operatingsystem>\n"
20682 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20683 " <type>ext4</type>\n"
20684 " <label>Fedora-13-x86_64</label>\n"
20685 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20691 #: ../inspector/virt-inspector.pod:234
20693 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20694 "the label, and the UUID."
20698 #: ../inspector/virt-inspector.pod:237
20699 msgid "E<lt>applicationsE<gt>"
20703 #: ../inspector/virt-inspector.pod:239
20705 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20706 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20711 #: ../inspector/virt-inspector.pod:243
20713 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
20714 "Typical values would be C<rpm> and C<deb>."
20718 #: ../inspector/virt-inspector.pod:246
20720 "E<lt>package_managementE<gt>, if present, describes the package manager. "
20721 "Typical values include C<yum>, C<up2date> and C<apt>"
20725 #: ../inspector/virt-inspector.pod:249
20726 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20730 #: ../inspector/virt-inspector.pod:252
20733 " <operatingsystems>\n"
20734 " <operatingsystem>\n"
20736 " <applications>\n"
20738 " <name>coreutils</name>\n"
20739 " <version>8.5</version>\n"
20740 " <release>1</release>\n"
20741 " </application>\n"
20746 #: ../inspector/virt-inspector.pod:262
20748 "The version and release fields may not be available for some types guests. "
20749 "Other fields are possible, see L<guestfs(3)/"
20750 "guestfs_inspect_list_applications>."
20754 #: ../inspector/virt-inspector.pod:266
20755 msgid "E<lt>drive_mappingsE<gt>"
20759 #: ../inspector/virt-inspector.pod:268
20761 "For operating systems like Windows which use drive letters, virt-inspector "
20762 "is able to find out how drive letters map to filesystems."
20766 #: ../inspector/virt-inspector.pod:272
20769 " <operatingsystems>\n"
20770 " <operatingsystem>\n"
20772 " <drive_mappings>\n"
20773 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20774 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20775 " </drive_mappings>\n"
20780 #: ../inspector/virt-inspector.pod:280
20782 "In the example above, drive C maps to the filesystem on the second partition "
20783 "on the first disk, and drive E maps to the filesystem on the first partition "
20784 "on the second disk."
20788 #: ../inspector/virt-inspector.pod:284
20790 "Note that this only covers permanent local filesystem mappings, not things "
20791 "like network shares. Furthermore NTFS volume mount points may not be listed "
20796 #: ../inspector/virt-inspector.pod:288
20798 #| msgid "B<-s E<lt>NE<gt>>"
20799 msgid "E<lt>iconE<gt>"
20800 msgstr "B<-s E<lt>NE<gt>>"
20803 #: ../inspector/virt-inspector.pod:290
20805 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
20806 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
20807 "very large and high quality."
20811 #: ../inspector/virt-inspector.pod:294
20814 " <operatingsystems>\n"
20815 " <operatingsystem>\n"
20818 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20819 " [... many lines of base64 data ...]\n"
20825 #: ../inspector/virt-inspector.pod:302
20827 "To display the icon, you have to extract it and convert the base64 data back "
20828 "to a binary file. Use an XPath query or simply an editor to extract the "
20829 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20834 #: ../inspector/virt-inspector.pod:307
20837 " base64 -i -d < icon.data > icon.png\n"
20842 #: ../inspector/virt-inspector.pod:309
20843 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20847 #: ../inspector/virt-inspector.pod:311
20849 "Virt-inspector can detect some operating system installers on install disks, "
20850 "live CDs, bootable USB keys and more."
20854 #: ../inspector/virt-inspector.pod:314
20856 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20857 "fields may be present to indicate a live CD, network installer, or one part "
20858 "of a multipart CD. For example:"
20862 #: ../inspector/virt-inspector.pod:318
20865 " <operatingsystems>\n"
20866 " <operatingsystem>\n"
20867 " <root>/dev/sda</root>\n"
20868 " <name>linux</name>\n"
20869 " <arch>i386</arch>\n"
20870 " <distro>ubuntu</distro>\n"
20871 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
20872 " <major_version>10</major_version>\n"
20873 " <minor_version>10</minor_version>\n"
20874 " <format>installer</format>\n"
20880 #: ../inspector/virt-inspector.pod:330
20881 msgid "USING XPATH"
20885 #: ../inspector/virt-inspector.pod:332
20887 "You can use the XPath query language to select parts of the XML. We "
20888 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20892 #: ../inspector/virt-inspector.pod:338
20895 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20897 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20898 " <type>ext4</type>\n"
20904 #: ../inspector/virt-inspector.pod:344
20907 " $ virt-inspector -d Guest | \\\n"
20908 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20914 #: ../inspector/virt-inspector.pod:348
20917 " $ virt-inspector -d Guest | \\\n"
20918 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20919 " [displays the guest icon, if there is one]\n"
20924 #: ../inspector/virt-inspector.pod:359
20925 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20929 #: ../inspector/virt-inspector.pod:361
20931 "Early versions of libguestfs shipped with a different virt-inspector program "
20932 "written in Perl (the current version is written in C). The XML output of "
20933 "the Perl virt-inspector was different and it could also output in other "
20934 "formats like text."
20938 #: ../inspector/virt-inspector.pod:366
20940 "The old virt-inspector is no longer supported or shipped with libguestfs."
20944 #: ../inspector/virt-inspector.pod:369
20946 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20947 "versions of virt-inspector with different names:"
20951 #: ../inspector/virt-inspector.pod:372
20954 " virt-inspector Old Perl version.\n"
20955 " virt-inspector2 New C version.\n"
20960 #: ../inspector/virt-inspector.pod:382
20963 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20964 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
20965 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20967 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20968 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20970 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20971 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
20972 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20975 #: ../inspector/virt-inspector.pod:399
20976 msgid "Matthew Booth L<mbooth@redhat.com>"
20980 #: ../java/examples/guestfs-java.pod:5
20981 msgid "guestfs-java - How to use libguestfs from Java"
20985 #: ../java/examples/guestfs-java.pod:9
20988 " import com.redhat.et.libguestfs.*;\n"
20993 #: ../java/examples/guestfs-java.pod:11
20996 " GuestFS g = new GuestFS ();\n"
20997 " g.add_drive_opts (\"disk.img\", null);\n"
21003 #: ../java/examples/guestfs-java.pod:17
21005 "This manual page documents how to call libguestfs from the Java programming "
21006 "language. This page just documents the differences from the C API and gives "
21007 "some examples. If you are not familiar with using libguestfs, you also need "
21008 "to read L<guestfs(3)>."
21012 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21013 msgid "CLOSING THE HANDLE"
21017 #: ../java/examples/guestfs-java.pod:24
21019 "The handle is closed when it is reaped by the garbage collector. Because "
21020 "libguestfs handles include a lot of state, it is also possible to close (and "
21021 "hence free) them explicitly by calling the C<close> method."
21025 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21026 #: ../python/examples/guestfs-python.pod:21
21027 #: ../ruby/examples/guestfs-ruby.pod:22
21034 #: ../java/examples/guestfs-java.pod:31
21036 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21037 "exception. This has a single parameter which is the error message (a "
21042 #: ../java/examples/guestfs-java.pod:35
21043 msgid "Calling any method on a closed handle raises the same exception."
21047 #: ../java/examples/guestfs-java.pod:47
21050 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21051 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21052 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21054 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21055 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21056 "libguestfs.org/>, L<http://caml.inria.fr/>."
21058 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21059 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21060 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21063 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21065 #| msgid "Copyright (C) 2009 Red Hat Inc."
21066 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21067 msgstr "© Red Hat Inc., 2009"
21070 #: ../ocaml/examples/guestfs-ocaml.pod:5
21071 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21075 #: ../ocaml/examples/guestfs-ocaml.pod:9
21076 msgid "Module style:"
21080 #: ../ocaml/examples/guestfs-ocaml.pod:11
21083 " let g = Guestfs.create () in\n"
21084 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21085 " Guestfs.launch g;\n"
21090 #: ../ocaml/examples/guestfs-ocaml.pod:15
21091 msgid "Object-oriented style:"
21095 #: ../ocaml/examples/guestfs-ocaml.pod:17
21098 " let g = new Guestfs.guestfs () in\n"
21099 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21105 #: ../ocaml/examples/guestfs-ocaml.pod:21
21108 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21110 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21115 #: ../ocaml/examples/guestfs-ocaml.pod:27
21117 "This manual page documents how to call libguestfs from the OCaml programming "
21118 "language. This page just documents the differences from the C API and gives "
21119 "some examples. If you are not familiar with using libguestfs, you also need "
21120 "to read L<guestfs(3)>."
21124 #: ../ocaml/examples/guestfs-ocaml.pod:32
21125 msgid "PROGRAMMING STYLES"
21129 #: ../ocaml/examples/guestfs-ocaml.pod:34
21131 "There are two different programming styles supported by the OCaml bindings. "
21132 "You can use a module style, with each C function mapped to an OCaml function:"
21136 #: ../ocaml/examples/guestfs-ocaml.pod:38
21139 #| " int guestfs_last_errno (guestfs_h *g);\n"
21142 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21145 " int guestfs_last_errno (guestfs_h *g);\n"
21149 #: ../ocaml/examples/guestfs-ocaml.pod:40
21154 #: ../ocaml/examples/guestfs-ocaml.pod:42
21157 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21162 #: ../ocaml/examples/guestfs-ocaml.pod:44
21164 "Alternately you can use an object-oriented style, calling methods on the "
21165 "class C<Guestfs.guestfs>:"
21169 #: ../ocaml/examples/guestfs-ocaml.pod:47
21172 " method set_verbose : bool -> unit\n"
21177 #: ../ocaml/examples/guestfs-ocaml.pod:49
21179 "The object-oriented style is usually briefer, and the minor performance "
21180 "penalty isn't noticable in the general overhead of performing libguestfs "
21185 #: ../ocaml/examples/guestfs-ocaml.pod:55
21187 "The handle is closed when it is reaped by the garbage collector. Because "
21188 "libguestfs handles include a lot of state, it is also possible to close (and "
21189 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21194 #: ../ocaml/examples/guestfs-ocaml.pod:62
21196 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21197 "exception. This has a single parameter which is the error message (a "
21202 #: ../ocaml/examples/guestfs-ocaml.pod:66
21204 "Calling any function/method on a closed handle raises C<Guestfs."
21205 "Handle_closed>. The single parameter is the name of the function that you "
21210 #: ../ocaml/examples/guestfs-ocaml.pod:80
21213 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21214 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21215 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21217 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21218 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21219 "libguestfs.org/>, L<http://caml.inria.fr/>."
21221 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21222 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21223 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21226 #: ../perl/examples/guestfs-perl.pod:5
21227 msgid "guestfs-perl - How to use libguestfs from Perl"
21231 #: ../perl/examples/guestfs-perl.pod:9
21234 " use Sys::Guestfs;\n"
21239 #: ../perl/examples/guestfs-perl.pod:11
21242 " my $h = Sys::Guestfs->new ();\n"
21243 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21244 " $h->launch ();\n"
21245 " $h->mount_options ('', '/dev/sda1', '/');\n"
21246 " $h->touch ('/hello');\n"
21252 #: ../perl/examples/guestfs-perl.pod:20
21254 "This manual page documents how to call libguestfs from the Perl programming "
21255 "language. This page just documents the differences from the C API and gives "
21256 "some examples. If you are not familiar with using libguestfs, you also need "
21257 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
21261 #: ../perl/examples/guestfs-perl.pod:26
21266 #: ../perl/examples/guestfs-perl.pod:28
21268 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21273 #: ../perl/examples/guestfs-perl.pod:41
21276 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21277 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21278 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21280 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21281 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21282 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21284 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21285 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21286 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21289 #: ../python/examples/guestfs-python.pod:5
21290 msgid "guestfs-python - How to use libguestfs from Python"
21294 #: ../python/examples/guestfs-python.pod:9
21297 " import guestfs\n"
21298 " g = guestfs.GuestFS ()\n"
21299 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21305 #: ../python/examples/guestfs-python.pod:16
21307 "This manual page documents how to call libguestfs from the Python "
21308 "programming language. This page just documents the differences from the C "
21309 "API and gives some examples. If you are not familiar with using libguestfs, "
21310 "you also need to read L<guestfs(3)>."
21314 #: ../python/examples/guestfs-python.pod:23
21316 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21317 "single string argument which is the error message."
21321 #: ../python/examples/guestfs-python.pod:26
21322 msgid "MORE DOCUMENTATION"
21326 #: ../python/examples/guestfs-python.pod:28
21331 #: ../python/examples/guestfs-python.pod:30
21335 " >>> import guestfs\n"
21336 " >>> help (guestfs)\n"
21341 #: ../python/examples/guestfs-python.pod:44
21344 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21345 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21346 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21348 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21349 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21350 "libguestfs.org/>."
21352 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21353 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21354 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21357 #: ../rescue/virt-rescue.pod:5
21358 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21362 #: ../rescue/virt-rescue.pod:9
21365 #| " virt-list-partitions [--options] domname\n"
21368 " virt-rescue [--options] -d domname\n"
21371 " virt-list-partitions [--параметри] назва_домену\n"
21375 #: ../rescue/virt-rescue.pod:11
21378 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21381 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21384 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21388 #: ../rescue/virt-rescue.pod:15
21391 #| " virt-list-partitions [--options] domname\n"
21394 " virt-rescue [--options] domname\n"
21397 " virt-list-partitions [--параметри] назва_домену\n"
21401 #: ../rescue/virt-rescue.pod:17
21404 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21407 " virt-rescue [--options] disk.img [disk.img ...]\n"
21410 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21414 #: ../rescue/virt-rescue.pod:21
21416 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
21417 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
21418 "you from doing this, but doesn't catch all cases."
21422 #: ../rescue/virt-rescue.pod:25
21424 "However if you use the I<--ro> (read only) option, then you can attach a "
21425 "shell to a live virtual machine. The results might be strange or "
21426 "inconsistent at times but you won't get disk corruption."
21430 #: ../rescue/virt-rescue.pod:31
21432 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21433 "need for a CD. virt-rescue gives you a rescue shell and some simple "
21434 "recovery tools which you can use to examine or rescue a virtual machine or "
21439 #: ../rescue/virt-rescue.pod:36
21441 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21442 "on disk image(s):"
21446 #: ../rescue/virt-rescue.pod:39
21449 " virt-rescue -d GuestName\n"
21454 #: ../rescue/virt-rescue.pod:41
21457 " virt-rescue --ro -a /path/to/disk.img\n"
21462 #: ../rescue/virt-rescue.pod:43
21465 " virt-rescue -a /dev/sdc\n"
21470 #: ../rescue/virt-rescue.pod:45
21471 msgid "For live VMs you I<must> use the --ro option."
21475 #: ../rescue/virt-rescue.pod:47
21477 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21478 "in an interactive bash shell where you can use many ordinary Linux "
21479 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21480 "appliance. You must mount the virtual machine's filesystems by hand. There "
21481 "is an empty directory called C</sysroot> where you can mount filesystems."
21485 #: ../rescue/virt-rescue.pod:54
21487 "In the example below, we list logical volumes, then choose one to mount "
21488 "under C</sysroot>:"
21492 #: ../rescue/virt-rescue.pod:57
21496 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
21497 " lv_root vg_f11x64 -wi-a- 8.83G\n"
21498 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21499 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21500 " ><rescue> ls /sysroot\n"
21505 #: ../rescue/virt-rescue.pod:64
21507 "If you don't know what filesystems are available on the virtual machine then "
21508 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21512 #: ../rescue/virt-rescue.pod:70
21514 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21515 "virtual machine. For example you can use it on a blank file if you want to "
21516 "partition that file (although we would recommend using L<guestfish(1)> "
21517 "instead as it is more suitable for this purpose). You can even use virt-"
21518 "rescue on things like SD cards."
21522 #: ../rescue/virt-rescue.pod:76
21524 "Virt-rescue does not require root. You only need to run it as root if you "
21525 "need root to open the disk image."
21529 #: ../rescue/virt-rescue.pod:79
21531 "This tool is just designed for quick interactive hacking on a virtual "
21532 "machine. For more structured access to a virtual machine disk image, you "
21533 "should use L<guestfs(3)>. To get a structured shell that you can use to "
21534 "make scripted changes to guests, use L<guestfish(1)>."
21538 #: ../rescue/virt-rescue.pod:103
21539 msgid "B<--append kernelopts>"
21543 #: ../rescue/virt-rescue.pod:105
21544 msgid "Pass additional options to the rescue kernel."
21548 #: ../rescue/virt-rescue.pod:135
21551 #| " guestfish --format=raw -a disk.img\n"
21554 " virt-rescue --format=raw -a disk.img\n"
21557 " guestfish --format=raw -a disk.img\n"
21561 #: ../rescue/virt-rescue.pod:139
21564 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21567 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21570 " guestfish --format=raw -a disk.img --format -a another.img\n"
21574 #: ../rescue/virt-rescue.pod:148
21579 #: ../rescue/virt-rescue.pod:150
21581 #| msgid "B<--merge>"
21582 msgid "B<--memsize MB>"
21583 msgstr "B<--merge>"
21586 #: ../rescue/virt-rescue.pod:152
21588 "Change the amount of memory allocated to the rescue system. The default is "
21589 "set by libguestfs and is small but adequate for running system tools. The "
21590 "occasional program might need more memory. The parameter is specified in "
21595 #: ../rescue/virt-rescue.pod:157
21597 #| msgid "B<--inspector>"
21598 msgid "B<--network>"
21599 msgstr "B<--inspector>"
21602 #: ../rescue/virt-rescue.pod:159
21603 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
21607 #: ../rescue/virt-rescue.pod:165
21608 msgid "Open the image read-only."
21612 #: ../rescue/virt-rescue.pod:175
21614 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
21615 "SELINUX> before using this option."
21619 #: ../rescue/virt-rescue.pod:194
21621 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21622 "are done read-write."
21626 #: ../rescue/virt-rescue.pod:207
21627 msgid "Previous versions of virt-rescue allowed you to write either:"
21631 #: ../rescue/virt-rescue.pod:209
21634 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21637 " virt-rescue disk.img [disk.img ...]\n"
21640 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21644 #: ../rescue/virt-rescue.pod:213
21647 #| " file-architecture filename\n"
21650 " virt-rescue guestname\n"
21653 " file-architecture назва_файла\n"
21657 #: ../rescue/virt-rescue.pod:221
21662 #: ../rescue/virt-rescue.pod:223
21664 "Adding the I<--network> option enables QEMU user networking in the rescue "
21665 "appliance. There are some differences between user networking and ordinary "
21670 #: ../rescue/virt-rescue.pod:229
21671 msgid "ping does not work"
21675 #: ../rescue/virt-rescue.pod:231
21677 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21678 "send the ping packets, and because virt-rescue must be able to run as non-"
21679 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
21680 "The ping command will appear to resolve addresses but will not be able to "
21681 "send or receive any packets. This does not mean that the network is not "
21686 #: ../rescue/virt-rescue.pod:238
21687 msgid "cannot receive connections"
21691 #: ../rescue/virt-rescue.pod:240
21692 msgid "QEMU user networking cannot receive incoming connections."
21696 #: ../rescue/virt-rescue.pod:242
21697 msgid "making TCP connections"
21701 #: ../rescue/virt-rescue.pod:244
21703 "The virt-rescue appliance needs to be small and so does not include many "
21704 "network tools. In particular there is no L<telnet(1)> command. You can "
21705 "make TCP connections from the shell using the magical C</dev/tcp/"
21706 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21710 #: ../rescue/virt-rescue.pod:249
21713 " exec 3<>/dev/tcp/redhat.com/80\n"
21714 " echo \"GET /\" >&3\n"
21720 #: ../rescue/virt-rescue.pod:253
21721 msgid "See L<bash(1)> for more details."
21725 #: ../rescue/virt-rescue.pod:259
21727 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
21728 "ENVIRONMENT VARIABLES> for the complete list."
21732 #: ../rescue/virt-rescue.pod:286
21735 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21736 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21737 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21739 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21740 "libguestfs.org/>."
21742 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21743 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21744 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21747 #: ../resize/virt-resize.pod:5
21748 msgid "virt-resize - Resize a virtual machine disk"
21752 #: ../resize/virt-resize.pod:9
21755 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21756 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21757 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21762 #: ../resize/virt-resize.pod:15
21764 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21765 "larger or smaller overall, and resizing or deleting any partitions contained "
21770 #: ../resize/virt-resize.pod:19
21772 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
21773 "not> be used on live virtual machines - for consistent results, shut the "
21774 "virtual machine down before resizing it."
21778 #: ../resize/virt-resize.pod:23
21780 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21781 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21785 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
21786 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2558
21791 #: ../resize/virt-resize.pod:33
21793 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21794 "fill the extra 5GB of space."
21798 #: ../resize/virt-resize.pod:36
21801 " virt-filesystems --long -h --all -a olddisk\n"
21806 #: ../resize/virt-resize.pod:38
21809 " truncate -r olddisk newdisk\n"
21810 " truncate -s +5G newdisk\n"
21815 #: ../resize/virt-resize.pod:41
21818 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21819 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21824 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
21825 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2583
21830 #: ../resize/virt-resize.pod:46
21832 "As above, but make the /boot partition 200MB bigger, while giving the "
21833 "remaining space to /dev/sda2:"
21837 #: ../resize/virt-resize.pod:49
21840 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21841 " olddisk newdisk\n"
21846 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
21851 #: ../resize/virt-resize.pod:54
21853 "As in the first example, but expand a logical volume as the final step. "
21854 "This is what you would typically use for Linux guests that use LVM:"
21858 #: ../resize/virt-resize.pod:58
21861 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21862 " olddisk newdisk\n"
21867 #: ../resize/virt-resize.pod:61
21872 #: ../resize/virt-resize.pod:63
21874 "As in the first example, but the output format will be qcow2 instead of a "
21879 #: ../resize/virt-resize.pod:66
21882 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21883 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21888 #: ../resize/virt-resize.pod:71
21889 msgid "DETAILED USAGE"
21893 #: ../resize/virt-resize.pod:73
21894 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21898 #: ../resize/virt-resize.pod:77
21899 msgid "1. Shut down the virtual machine"
21903 #: ../resize/virt-resize.pod:79
21904 msgid "2. Locate input disk image"
21908 #: ../resize/virt-resize.pod:81
21910 "Locate the input disk image (ie. the file or device on the host containing "
21911 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
21912 "dumpxml> like this to find the disk image name:"
21916 #: ../resize/virt-resize.pod:85
21919 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21920 " Found 1 nodes:\n"
21922 " <source dev=\"/dev/vg/lv_guest\" />\n"
21927 #: ../resize/virt-resize.pod:90
21928 msgid "3. Look at current sizing"
21932 #: ../resize/virt-resize.pod:92
21933 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21937 #: ../resize/virt-resize.pod:95
21940 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21941 " Name Type Size Parent\n"
21942 " /dev/sda1 partition 101M /dev/sda\n"
21943 " /dev/sda2 partition 7.9G /dev/sda\n"
21944 " /dev/sda device 8.0G -\n"
21949 #: ../resize/virt-resize.pod:101
21951 "(This example is a virtual machine with an 8 GB disk which we would like to "
21952 "expand up to 10 GB)."
21956 #: ../resize/virt-resize.pod:104
21957 msgid "4. Create output disk"
21961 #: ../resize/virt-resize.pod:106
21963 "Virt-resize cannot do in-place disk modifications. You have to have space "
21964 "to store the resized output disk."
21968 #: ../resize/virt-resize.pod:109
21970 "To store the resized disk image in a file, create a file of a suitable size:"
21974 #: ../resize/virt-resize.pod:112
21977 " # rm -f outdisk\n"
21978 " # truncate -s 10G outdisk\n"
21983 #: ../resize/virt-resize.pod:115
21984 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21988 #: ../resize/virt-resize.pod:117
21991 " # lvcreate -L 10G -n lv_name vg_name\n"
21996 #: ../resize/virt-resize.pod:119
21997 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22001 #: ../resize/virt-resize.pod:121
22004 " # virsh pool-list\n"
22005 " # virsh vol-create-as poolname newvol 10G\n"
22010 #: ../resize/virt-resize.pod:124
22015 #: ../resize/virt-resize.pod:126
22017 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22018 "file) and the output disk. The output disk is the one created in the "
22023 #: ../resize/virt-resize.pod:130
22026 " # virt-resize indisk outdisk\n"
22031 #: ../resize/virt-resize.pod:132
22033 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22034 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22035 "larger, then an extra, empty partition is created at the end of the disk "
22036 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22041 #: ../resize/virt-resize.pod:138
22043 "More realistically you'd want to expand existing partitions in the disk "
22044 "image by passing extra options (for the full list see the L</OPTIONS> "
22049 #: ../resize/virt-resize.pod:142
22051 "L</--expand> is the most useful option. It expands the named partition "
22052 "within the disk to fill any extra space:"
22056 #: ../resize/virt-resize.pod:145
22059 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22064 #: ../resize/virt-resize.pod:147
22066 "(In this case, an extra partition is I<not> created at the end of the disk, "
22067 "because there will be no unused space)."
22071 #: ../resize/virt-resize.pod:150
22073 "L</--resize> is the other commonly used option. The following would "
22074 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22075 "rest of the available space:"
22079 #: ../resize/virt-resize.pod:154
22082 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22083 " indisk outdisk\n"
22088 #: ../resize/virt-resize.pod:157
22090 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22091 "if virt-resize knows how, it will resize the contents, the equivalent of "
22092 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22093 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22094 "filesystems, so you would have to online resize them after booting the guest."
22098 #: ../resize/virt-resize.pod:164
22099 msgid "Other options are covered below."
22103 #: ../resize/virt-resize.pod:166
22108 #: ../resize/virt-resize.pod:168
22109 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22113 #: ../resize/virt-resize.pod:170
22114 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22118 #: ../resize/virt-resize.pod:172
22121 #| " edit filename\n"
22124 " # virsh edit guestname\n"
22127 " edit назва_файла\n"
22131 #: ../resize/virt-resize.pod:174
22133 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22134 "html#elementsDisks>"
22138 #: ../resize/virt-resize.pod:177
22139 msgid "Then start up the domain with the new, resized disk:"
22143 #: ../resize/virt-resize.pod:179
22146 #| " ln-s target linkname\n"
22149 " # virsh start guestname\n"
22152 " ln-s призначення назва_посилання\n"
22156 #: ../resize/virt-resize.pod:181
22158 "and check that it still works. See also the L</NOTES> section below for "
22159 "additional information."
22163 #: ../resize/virt-resize.pod:184
22164 msgid "7. Resize LVs etc inside the guest"
22168 #: ../resize/virt-resize.pod:186
22169 msgid "(This can also be done offline using L<guestfish(1)>)"
22173 #: ../resize/virt-resize.pod:188
22175 "Once the guest has booted you should see the new space available, at least "
22176 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22177 "may need to resize LVs inside PVs, and also resize filesystem types that "
22178 "virt-resize does not know how to expand."
22182 #: ../resize/virt-resize.pod:195
22183 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22187 #: ../resize/virt-resize.pod:197
22189 "Shrinking is somewhat more complex than expanding, and only an overview is "
22194 #: ../resize/virt-resize.pod:200
22196 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22197 "filesystems). The user has to shrink content before passing the disk image "
22198 "to virt-resize, and virt-resize will check that the content has been shrunk "
22203 #: ../resize/virt-resize.pod:205
22204 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22208 #: ../resize/virt-resize.pod:207
22210 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22211 "steps 3 and 4 above to allocate a new disk image."
22215 #: ../resize/virt-resize.pod:210
22217 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22221 #: ../resize/virt-resize.pod:213
22222 msgid "IGNORING OR DELETING PARTITIONS"
22226 #: ../resize/virt-resize.pod:215
22228 "virt-resize also gives a convenient way to ignore or delete partitions when "
22229 "copying from the input disk to the output disk. Ignoring a partition speeds "
22230 "up the copy where you don't care about the existing contents of a "
22231 "partition. Deleting a partition removes it completely, but note that it "
22232 "also renumbers any partitions after the one which is deleted, which can "
22233 "leave some guests unbootable."
22237 #: ../resize/virt-resize.pod:222
22238 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22242 #: ../resize/virt-resize.pod:224
22244 "If the input disk is in qcow2 format, then you may prefer that the output is "
22245 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
22246 "the fly. The output format is simply determined by the format of the empty "
22247 "output container that you provide. Thus to create qcow2 output, use:"
22251 #: ../resize/virt-resize.pod:230
22254 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22259 #: ../resize/virt-resize.pod:232
22260 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22264 #: ../resize/virt-resize.pod:234
22265 msgid "Similarly, to get non-sparse raw output use:"
22269 #: ../resize/virt-resize.pod:236
22272 #| " fallocate path len\n"
22275 " fallocate -l size outdisk\n"
22278 " fallocate шлях довжина\n"
22282 #: ../resize/virt-resize.pod:238
22284 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22285 "dev/zero of=outdisk bs=1M count=..>)"
22289 #: ../resize/virt-resize.pod:247
22290 msgid "Display help."
22294 #: ../resize/virt-resize.pod:249
22299 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22300 #: ../tools/virt-win-reg.pl:120
22302 msgstr "B<--debug>"
22305 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22306 msgid "Enable debugging messages."
22310 #: ../resize/virt-resize.pod:255
22312 #| msgid "B<--no-dest-paths>"
22313 msgid "B<--delete part>"
22314 msgstr "B<--no-dest-paths>"
22317 #: ../resize/virt-resize.pod:257
22319 "Delete the named partition. It would be more accurate to describe this as "
22320 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22321 "the original disk image is left intact."
22325 #: ../resize/virt-resize.pod:261
22327 "Note that when you delete a partition, then anything contained in the "
22328 "partition is also deleted. Furthermore, this causes any partitions that "
22329 "come after to be I<renumbered>, which can easily make your guest unbootable."
22333 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22334 #: ../resize/virt-resize.pod:454
22335 msgid "You can give this option multiple times."
22339 #: ../resize/virt-resize.pod:268
22341 #| msgid "B<--partition>"
22342 msgid "B<--expand part>"
22343 msgstr "B<--partition>"
22346 #: ../resize/virt-resize.pod:270
22348 "Expand the named partition so it uses up all extra space (space left over "
22349 "after any other resize changes that you request have been done)."
22353 #: ../resize/virt-resize.pod:273
22355 "If virt-resize knows how, it will expand the direct content of the "
22356 "partition. For example, if the partition is an LVM PV, it will expand the "
22357 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
22358 "content it doesn't know about alone."
22362 #: ../resize/virt-resize.pod:278
22363 msgid "Currently virt-resize can resize:"
22367 #: ../resize/virt-resize.pod:284
22368 msgid "ext2, ext3 and ext4 filesystems."
22372 #: ../resize/virt-resize.pod:288
22373 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22377 #: ../resize/virt-resize.pod:290
22379 "The filesystem must have been shut down consistently last time it was used. "
22380 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22381 "consistency check, so at the first boot after resizing Windows will check "
22386 #: ../resize/virt-resize.pod:297
22388 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
22389 "inside the PV, but see the I<--LV-expand> option. The user could also "
22390 "resize LVs as desired after boot."
22394 #: ../resize/virt-resize.pod:303
22395 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22399 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22400 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22404 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22405 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22406 #: ../tools/virt-win-reg.pl:142
22407 msgid "B<--format> raw"
22411 #: ../resize/virt-resize.pod:311
22413 "Specify the format of the input disk image. If this flag is not given then "
22414 "it is auto-detected from the image itself."
22418 #: ../resize/virt-resize.pod:317
22420 "Note that this option I<does not> affect the output format. See L</QCOW2 "
22421 "AND NON-SPARSE RAW FORMATS>."
22425 #: ../resize/virt-resize.pod:320
22427 #| msgid "B<--format>"
22428 msgid "B<--ignore part>"
22429 msgstr "B<--format>"
22432 #: ../resize/virt-resize.pod:322
22434 "Ignore the named partition. Effectively this means the partition is "
22435 "allocated on the destination disk, but the content is not copied across from "
22436 "the source disk. The content of the partition will be blank (all zero "
22441 #: ../resize/virt-resize.pod:329
22442 msgid "B<--LV-expand logvol>"
22446 #: ../resize/virt-resize.pod:331
22448 "This takes the logical volume and, as a final step, expands it to fill all "
22449 "the space available in its volume group. A typical usage, assuming a Linux "
22450 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22451 "lv_root> would be:"
22455 #: ../resize/virt-resize.pod:336
22458 " virt-resize indisk outdisk \\\n"
22459 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22464 #: ../resize/virt-resize.pod:339
22466 "This would first expand the partition (and PV), and then expand the root "
22467 "device to fill the extra space in the PV."
22471 #: ../resize/virt-resize.pod:342
22473 "The contents of the LV are also resized if virt-resize knows how to do "
22474 "that. You can stop virt-resize from trying to expand the content by using "
22475 "the option I<--no-expand-content>."
22479 #: ../resize/virt-resize.pod:346
22480 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22484 #: ../resize/virt-resize.pod:348
22486 "You can give this option multiple times, I<but> it doesn't make sense to do "
22487 "this unless the logical volumes you specify are all in different volume "
22492 #: ../resize/virt-resize.pod:352
22494 #| msgid "B<-h> | B<--human-readable>"
22495 msgid "B<--machine-readable>"
22496 msgstr "B<-h> | B<--human-readable>"
22499 #: ../resize/virt-resize.pod:354
22501 "This option is used to make the output more machine friendly when being "
22502 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
22506 #: ../resize/virt-resize.pod:360
22508 #| msgid "B<--debug>"
22509 msgid "B<--dryrun>"
22510 msgstr "B<--debug>"
22513 #: ../resize/virt-resize.pod:362
22514 msgid "Print a summary of what would be done, but don't do anything."
22518 #: ../resize/virt-resize.pod:364
22519 msgid "B<--no-copy-boot-loader>"
22523 #: ../resize/virt-resize.pod:366
22525 "By default, virt-resize copies over some sectors at the start of the disk "
22526 "(up to the beginning of the first partition). Commonly these sectors "
22527 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22528 "in order for the guest to boot correctly."
22532 #: ../resize/virt-resize.pod:371
22534 "If you specify this flag, then this initial copy is not done. You may need "
22535 "to reinstall the boot loader in this case."
22539 #: ../resize/virt-resize.pod:374
22541 #| msgid "B<--partition>"
22542 msgid "B<--no-extra-partition>"
22543 msgstr "B<--partition>"
22546 #: ../resize/virt-resize.pod:376
22548 "By default, virt-resize creates an extra partition if there is any extra, "
22549 "unused space after all resizing has happened. Use this option to prevent "
22550 "the extra partition from being created. If you do this then the extra space "
22551 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22552 "tool in the guest."
22556 #: ../resize/virt-resize.pod:382
22558 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22563 #: ../resize/virt-resize.pod:385
22565 #| msgid "B<--no-dest-paths>"
22566 msgid "B<--no-expand-content>"
22567 msgstr "B<--no-dest-paths>"
22570 #: ../resize/virt-resize.pod:387
22572 "By default, virt-resize will try to expand the direct contents of "
22573 "partitions, if it knows how (see I<--expand> option above)."
22577 #: ../resize/virt-resize.pod:390
22579 "If you give the I<--no-expand-content> option then virt-resize will not "
22584 #: ../resize/virt-resize.pod:393
22586 #| msgid "ntfsresize-size"
22587 msgid "B<--ntfsresize-force>"
22588 msgstr "ntfsresize-size"
22591 #: ../resize/virt-resize.pod:395
22593 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22594 "the NTFS disk is marked as needing a consistency check. You have to use "
22595 "this option if you want to resize a Windows guest multiple times without "
22596 "booting into Windows between each resize."
22600 #: ../resize/virt-resize.pod:401
22602 #| msgid "B<--format>"
22603 msgid "B<--output-format> raw"
22604 msgstr "B<--format>"
22607 #: ../resize/virt-resize.pod:403
22609 "Specify the format of the output disk image. If this flag is not given then "
22610 "it is auto-detected from the image itself."
22614 #: ../resize/virt-resize.pod:409
22616 "Note that this option I<does not create> the output format. This option "
22617 "just tells libguestfs what it is so it doesn't try to guess it. You still "
22618 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
22619 "SPARSE RAW FORMATS>."
22623 #: ../resize/virt-resize.pod:414
22628 #: ../resize/virt-resize.pod:416
22630 #| msgid "B<--live>"
22635 #: ../resize/virt-resize.pod:418
22636 msgid "Don't print the summary."
22640 #: ../resize/virt-resize.pod:420
22642 #| msgid "B<part_size>"
22643 msgid "B<--resize part=size>"
22644 msgstr "B<part_size>"
22647 #: ../resize/virt-resize.pod:422
22649 "Resize the named partition (expanding or shrinking it) so that it has the "
22654 #: ../resize/virt-resize.pod:425
22656 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22657 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22658 "size; or as a relative number or percentage. For example:"
22662 #: ../resize/virt-resize.pod:431
22665 #| " hexedit /dev/sda 1M\n"
22668 " --resize /dev/sda2=10G\n"
22671 " hexedit /dev/sda 1M\n"
22675 #: ../resize/virt-resize.pod:433
22678 #| " pvresize device\n"
22681 " --resize /dev/sda4=90%\n"
22684 " pvresize пристрій\n"
22688 #: ../resize/virt-resize.pod:435
22691 #| " hexedit /dev/sda 1M\n"
22694 " --resize /dev/sda2=+1G\n"
22697 " hexedit /dev/sda 1M\n"
22701 #: ../resize/virt-resize.pod:437
22704 #| " hexedit /dev/sda 1M\n"
22707 " --resize /dev/sda2=-200M\n"
22710 " hexedit /dev/sda 1M\n"
22714 #: ../resize/virt-resize.pod:439
22717 #| " hexedit /dev/sda 1M\n"
22720 " --resize /dev/sda1=+128K\n"
22723 " hexedit /dev/sda 1M\n"
22727 #: ../resize/virt-resize.pod:441
22730 #| " hexedit /dev/sda 1M\n"
22733 " --resize /dev/sda1=+10%\n"
22736 " hexedit /dev/sda 1M\n"
22740 #: ../resize/virt-resize.pod:443
22743 #| " hexedit /dev/sda 1M\n"
22746 " --resize /dev/sda1=-10%\n"
22749 " hexedit /dev/sda 1M\n"
22753 #: ../resize/virt-resize.pod:445
22755 "You can increase the size of any partition. Virt-resize will expand the "
22756 "direct content of the partition if it knows how (see I<--expand> below)."
22760 #: ../resize/virt-resize.pod:449
22762 "You can only I<decrease> the size of partitions that contain filesystems or "
22763 "PVs which have already been shrunk. Virt-resize will check this has been "
22764 "done before proceeding, or else will print an error (see also I<--resize-"
22769 #: ../resize/virt-resize.pod:456
22770 msgid "B<--resize-force part=size>"
22774 #: ../resize/virt-resize.pod:458
22776 "This is the same as I<--resize> except that it will let you decrease the "
22777 "size of any partition. Generally this means you will lose any data which "
22778 "was at the end of the partition you shrink, but you may not care about that "
22779 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22780 "as a swap partition)."
22784 #: ../resize/virt-resize.pod:464
22785 msgid "See also the I<--ignore> option."
22789 #: ../resize/virt-resize.pod:466
22791 #| msgid "B<--partition>"
22792 msgid "B<--shrink part>"
22793 msgstr "B<--partition>"
22796 #: ../resize/virt-resize.pod:468
22798 "Shrink the named partition until the overall disk image fits in the "
22799 "destination. The named partition B<must> contain a filesystem or PV which "
22800 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22801 "online tools). Virt-resize will check this and give an error if it has not "
22806 #: ../resize/virt-resize.pod:474
22808 "The amount by which the overall disk must be shrunk (after carrying out all "
22809 "other operations requested by the user) is called the \"deficit\". For "
22810 "example, a straight copy (assume no other operations) from a 5GB disk image "
22811 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
22812 "would give an error unless the user specified a partition to shrink and that "
22813 "partition had more than a gigabyte of free space."
22817 #: ../resize/virt-resize.pod:492
22818 msgid "MACHINE READABLE OUTPUT"
22822 #: ../resize/virt-resize.pod:494
22824 "The I<--machine-readable> option can be used to make the output more machine "
22825 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22830 #: ../resize/virt-resize.pod:498
22832 "Use the option on its own to query the capabilities of the virt-resize "
22833 "binary. Typical output looks like this:"
22837 #: ../resize/virt-resize.pod:501
22840 " $ virt-resize --machine-readable\n"
22842 " ntfsresize-force\n"
22850 #: ../resize/virt-resize.pod:508
22852 "A list of features is printed, one per line, and the program exits with "
22857 #: ../resize/virt-resize.pod:513
22858 msgid "\"Partition 1 does not end on cylinder boundary.\""
22862 #: ../resize/virt-resize.pod:515
22864 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
22865 "means the partitions will not be aligned to the ancient CHS geometry. "
22866 "However CHS geometry is meaningless for disks manufactured since the early "
22867 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
22868 "cylinders is not required by any modern operating system."
22872 #: ../resize/virt-resize.pod:522
22873 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22877 #: ../resize/virt-resize.pod:524
22879 "In Windows Vista and later versions, Microsoft switched to using a separate "
22880 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
22881 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
22882 "the boot partition. Doing so seems to break the guest completely. However "
22883 "expanding the second partition (ie. C: drive) should work."
22887 #: ../resize/virt-resize.pod:531
22889 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22890 "NTFS partitions have been expanded. This is just a safety check and (unless "
22891 "it find errors) is nothing to worry about."
22895 #: ../resize/virt-resize.pod:535
22896 msgid "GUEST BOOT STUCK AT \"GRUB\""
22900 #: ../resize/virt-resize.pod:537
22902 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22903 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
22904 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22905 "although we think is to do with partition alignment."
22909 #: ../resize/virt-resize.pod:542
22912 " guestfish -i -a newdisk\n"
22913 " ><fs> cat /boot/grub/device.map\n"
22914 " # check the contents of this file are sensible or\n"
22915 " # edit the file if necessary\n"
22916 " ><fs> grub-install / /dev/vda\n"
22922 #: ../resize/virt-resize.pod:549
22924 "For more flexible guest reconfiguration, including if you need to specify "
22925 "other parameters to grub-install, use L<virt-rescue(1)>."
22929 #: ../resize/virt-resize.pod:552
22930 msgid "ALTERNATIVE TOOLS"
22934 #: ../resize/virt-resize.pod:554
22936 "There are several proprietary tools for resizing partitions. We won't "
22937 "mention any here."
22941 #: ../resize/virt-resize.pod:557
22943 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22944 "operations on disk images. They can resize and move partitions, but I don't "
22945 "think they can do anything with the contents, and they certainly don't "
22950 #: ../resize/virt-resize.pod:562
22952 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22953 "but at a much lower level. You will probably end up hand-calculating sector "
22954 "offsets, which is something that virt-resize was designed to avoid. If you "
22955 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22960 #: ../resize/virt-resize.pod:582
22962 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22963 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22964 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22965 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22969 #: ../ruby/examples/guestfs-ruby.pod:5
22970 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22974 #: ../ruby/examples/guestfs-ruby.pod:9
22977 " require 'guestfs'\n"
22978 " g = Guestfs::Guestfs.new()\n"
22979 " g.add_drive_opts(\"disk.img\",\n"
22980 " :readonly => 1, :format => \"raw\")\n"
22986 #: ../ruby/examples/guestfs-ruby.pod:17
22988 "This manual page documents how to call libguestfs from the Ruby programming "
22989 "language. This page just documents the differences from the C API and gives "
22990 "some examples. If you are not familiar with using libguestfs, you also need "
22991 "to read L<guestfs(3)>."
22995 #: ../ruby/examples/guestfs-ruby.pod:24
22997 "Errors from libguestfs functions are mapped into the C<Error> exception. "
22998 "This has a single parameter which is the error message (a string)."
23002 #: ../ruby/examples/guestfs-ruby.pod:38
23005 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23006 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23007 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23009 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
23010 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
23011 "libguestfs.org/>."
23013 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23014 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23015 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23018 #: ../src/guestfs-actions.pod:1
23019 msgid "guestfs_add_cdrom"
23023 #: ../src/guestfs-actions.pod:3
23027 " guestfs_add_cdrom (guestfs_h *g,\n"
23028 " const char *filename);\n"
23033 #: ../src/guestfs-actions.pod:17
23035 "This call checks for the existence of C<filename>. This stops you from "
23036 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23037 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
23042 #: ../src/guestfs-actions.pod:24
23044 "If you just want to add an ISO file (often you use this as an efficient way "
23045 "to transfer large files into the guest), then you should probably use "
23046 "C<guestfs_add_drive_ro> instead."
23050 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
23051 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23052 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
23053 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23054 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23055 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23056 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23057 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23058 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23059 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23060 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23061 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23062 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23063 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23064 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23065 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23066 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23067 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
23068 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23069 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23070 #: ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2512
23071 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2608
23072 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3663
23073 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3877
23074 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3904
23075 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3933
23076 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
23077 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4078
23078 #: ../src/guestfs-actions.pod:4101 ../src/guestfs-actions.pod:4124
23079 #: ../src/guestfs-actions.pod:4159 ../src/guestfs-actions.pod:4178
23080 #: ../src/guestfs-actions.pod:4197 ../src/guestfs-actions.pod:4232
23081 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4280
23082 #: ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4309
23083 #: ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4341
23084 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4454
23085 #: ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:4518
23086 #: ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4554
23087 #: ../src/guestfs-actions.pod:4570 ../src/guestfs-actions.pod:4584
23088 #: ../src/guestfs-actions.pod:4598 ../src/guestfs-actions.pod:4615
23089 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4650
23090 #: ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4793
23091 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:4843
23092 #: ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4874
23093 #: ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:4904
23094 #: ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4934
23095 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5002
23096 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5061
23097 #: ../src/guestfs-actions.pod:5075 ../src/guestfs-actions.pod:5092
23098 #: ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5187
23099 #: ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5277
23100 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5329
23101 #: ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5487
23102 #: ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5566
23103 #: ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5616
23104 #: ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5699
23105 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:5726
23106 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-actions.pod:6034
23107 #: ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6067
23108 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6093
23109 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119
23110 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6156
23111 #: ../src/guestfs-actions.pod:6175 ../src/guestfs-actions.pod:6194
23112 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6242
23113 #: ../src/guestfs-actions.pod:6265 ../src/guestfs-actions.pod:6283
23114 #: ../src/guestfs-actions.pod:6302 ../src/guestfs-actions.pod:6323
23115 #: ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6359
23116 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6406
23117 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6449
23118 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6492
23119 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6526
23120 #: ../src/guestfs-actions.pod:6563 ../src/guestfs-actions.pod:6593
23121 #: ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6748
23122 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6881
23123 #: ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907
23124 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6942
23125 #: ../src/guestfs-actions.pod:6955 ../src/guestfs-actions.pod:6968
23126 #: ../src/guestfs-actions.pod:6983 ../src/guestfs-actions.pod:7042
23127 #: ../src/guestfs-actions.pod:7059 ../src/guestfs-actions.pod:7075
23128 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7108
23129 #: ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7141
23130 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-actions.pod:7191
23131 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245
23132 #: ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7297
23133 #: ../src/guestfs-actions.pod:7333 ../src/guestfs-actions.pod:7449
23134 #: ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7478
23135 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7546
23136 #: ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7624
23137 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7707
23138 #: ../src/guestfs-actions.pod:7733 ../src/guestfs-actions.pod:7804
23139 #: ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7856
23140 msgid "This function returns 0 on success or -1 on error."
23144 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
23145 #: ../src/guestfs-actions.pod:275
23147 "This function is deprecated. In new code, use the L</"
23148 "guestfs_add_drive_opts> call instead."
23152 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23153 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23154 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23155 #: ../src/guestfs-actions.pod:3650 ../src/guestfs-actions.pod:3670
23156 #: ../src/guestfs-actions.pod:4978 ../src/guestfs-actions.pod:6244
23157 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6494
23158 #: ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7110
23159 #: ../src/guestfs-actions.pod:7633
23160 msgid "(Added in 0.3)"
23164 #: ../src/guestfs-actions.pod:41
23165 msgid "guestfs_add_domain"
23169 #: ../src/guestfs-actions.pod:43
23173 " guestfs_add_domain (guestfs_h *g,\n"
23174 " const char *dom,\n"
23180 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23181 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2853
23182 #: ../src/guestfs-actions.pod:4669 ../src/guestfs-actions.pod:4988
23183 #: ../src/guestfs-actions.pod:5205
23185 "You may supply a list of optional arguments to this call. Use zero or more "
23186 "of the following pairs of parameters, and terminate the list with C<-1> on "
23187 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
23191 #: ../src/guestfs-actions.pod:53
23194 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23195 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23196 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23197 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23198 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23203 #: ../src/guestfs-actions.pod:59
23205 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
23206 "It works by connecting to libvirt, requesting the domain and domain XML from "
23207 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23212 #: ../src/guestfs-actions.pod:94
23214 "The other optional parameters are passed directly through to "
23215 "C<guestfs_add_drive_opts>."
23219 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23220 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23221 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23222 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23223 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23224 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23225 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23226 #: ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2971
23227 #: ../src/guestfs-actions.pod:2989 ../src/guestfs-actions.pod:5164
23228 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5796
23229 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:7218
23230 #: ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7657
23231 #: ../src/guestfs-actions.pod:7670
23232 msgid "On error this function returns -1."
23236 #: ../src/guestfs-actions.pod:99
23237 msgid "(Added in 1.7.4)"
23241 #: ../src/guestfs-actions.pod:101
23242 msgid "guestfs_add_domain_va"
23246 #: ../src/guestfs-actions.pod:103
23250 " guestfs_add_domain_va (guestfs_h *g,\n"
23251 " const char *dom,\n"
23252 " va_list args);\n"
23257 #: ../src/guestfs-actions.pod:108
23258 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23262 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23263 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23264 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23265 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2949
23266 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4746
23267 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5028
23268 #: ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5265
23269 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23270 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23273 #: ../src/guestfs-actions.pod:112
23274 msgid "guestfs_add_domain_argv"
23275 msgstr "guestfs_add_domain_argv"
23278 #: ../src/guestfs-actions.pod:114
23282 " guestfs_add_domain_argv (guestfs_h *g,\n"
23283 " const char *dom,\n"
23284 " const struct guestfs_add_domain_argv *optargs);\n"
23289 #: ../src/guestfs-actions.pod:119
23290 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23294 #: ../src/guestfs-actions.pod:123
23295 msgid "guestfs_add_drive"
23299 #: ../src/guestfs-actions.pod:125
23303 " guestfs_add_drive (guestfs_h *g,\n"
23304 " const char *filename);\n"
23309 #: ../src/guestfs-actions.pod:129
23311 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23312 "optional parameters, so the disk is added writable, with the format being "
23313 "detected automatically."
23317 #: ../src/guestfs-actions.pod:133
23319 "Automatic detection of the format opens you up to a potential security hole "
23320 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
23321 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
23322 "you should think about replacing calls to this function with calls to "
23323 "C<guestfs_add_drive_opts>, and specifying the format."
23327 #: ../src/guestfs-actions.pod:144
23328 msgid "guestfs_add_drive_opts"
23332 #: ../src/guestfs-actions.pod:146
23336 " guestfs_add_drive_opts (guestfs_h *g,\n"
23337 " const char *filename,\n"
23343 #: ../src/guestfs-actions.pod:156
23346 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23347 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23348 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23353 #: ../src/guestfs-actions.pod:185
23355 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
23356 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
23357 "Possible formats include C<raw> and C<qcow2>."
23361 #: ../src/guestfs-actions.pod:196
23363 "This rarely-used option lets you emulate the behaviour of the deprecated "
23364 "C<guestfs_add_drive_with_if> call (q.v.)"
23368 #: ../src/guestfs-actions.pod:203
23369 msgid "(Added in 1.5.23)"
23373 #: ../src/guestfs-actions.pod:205
23374 msgid "guestfs_add_drive_opts_va"
23378 #: ../src/guestfs-actions.pod:207
23382 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23383 " const char *filename,\n"
23384 " va_list args);\n"
23389 #: ../src/guestfs-actions.pod:212
23390 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23394 #: ../src/guestfs-actions.pod:216
23395 msgid "guestfs_add_drive_opts_argv"
23399 #: ../src/guestfs-actions.pod:218
23403 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23404 " const char *filename,\n"
23405 " const struct guestfs_add_drive_opts_argv *optargs);\n"
23410 #: ../src/guestfs-actions.pod:223
23411 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23415 #: ../src/guestfs-actions.pod:227
23416 msgid "guestfs_add_drive_ro"
23420 #: ../src/guestfs-actions.pod:229
23424 " guestfs_add_drive_ro (guestfs_h *g,\n"
23425 " const char *filename);\n"
23430 #: ../src/guestfs-actions.pod:233
23432 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23433 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23434 "disk is added read-only, with the format being detected automatically."
23438 #: ../src/guestfs-actions.pod:240
23439 msgid "(Added in 1.0.38)"
23443 #: ../src/guestfs-actions.pod:242
23444 msgid "guestfs_add_drive_ro_with_if"
23448 #: ../src/guestfs-actions.pod:244
23452 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23453 " const char *filename,\n"
23454 " const char *iface);\n"
23459 #: ../src/guestfs-actions.pod:249
23461 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23462 "QEMU interface emulation to use at run time."
23466 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23467 #: ../src/guestfs-actions.pod:2458
23468 msgid "(Added in 1.0.84)"
23472 #: ../src/guestfs-actions.pod:263
23473 msgid "guestfs_add_drive_with_if"
23477 #: ../src/guestfs-actions.pod:265
23481 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23482 " const char *filename,\n"
23483 " const char *iface);\n"
23488 #: ../src/guestfs-actions.pod:270
23490 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23491 "QEMU interface emulation to use at run time."
23495 #: ../src/guestfs-actions.pod:284
23496 msgid "guestfs_aug_clear"
23500 #: ../src/guestfs-actions.pod:286
23504 " guestfs_aug_clear (guestfs_h *g,\n"
23505 " const char *augpath);\n"
23510 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23511 msgid "(Added in 1.3.4)"
23515 #: ../src/guestfs-actions.pod:297
23516 msgid "guestfs_aug_close"
23520 #: ../src/guestfs-actions.pod:299
23524 " guestfs_aug_close (guestfs_h *g);\n"
23529 #: ../src/guestfs-actions.pod:302
23531 "Close the current Augeas handle and free up any resources used by it. After "
23532 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23533 "any other Augeas functions."
23537 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23538 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23539 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23540 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23541 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23542 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23543 #: ../src/guestfs-actions.pod:5873
23544 msgid "(Added in 0.7)"
23548 #: ../src/guestfs-actions.pod:311
23549 msgid "guestfs_aug_defnode"
23553 #: ../src/guestfs-actions.pod:313
23556 " struct guestfs_int_bool *\n"
23557 " guestfs_aug_defnode (guestfs_h *g,\n"
23558 " const char *name,\n"
23559 " const char *expr,\n"
23560 " const char *val);\n"
23565 #: ../src/guestfs-actions.pod:322
23567 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23568 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
23569 "containing that single node."
23573 #: ../src/guestfs-actions.pod:330
23575 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23576 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
23580 #: ../src/guestfs-actions.pod:336
23581 msgid "guestfs_aug_defvar"
23585 #: ../src/guestfs-actions.pod:338
23589 " guestfs_aug_defvar (guestfs_h *g,\n"
23590 " const char *name,\n"
23591 " const char *expr);\n"
23596 #: ../src/guestfs-actions.pod:354
23597 msgid "guestfs_aug_get"
23601 #: ../src/guestfs-actions.pod:356
23605 " guestfs_aug_get (guestfs_h *g,\n"
23606 " const char *augpath);\n"
23611 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23612 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23613 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23614 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23615 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23616 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23617 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23618 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
23619 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
23620 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627
23621 #: ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2821
23622 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:3054
23623 #: ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3103
23624 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3196
23625 #: ../src/guestfs-actions.pod:3216 ../src/guestfs-actions.pod:3236
23626 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:4216
23627 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4496
23628 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5601
23629 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5949
23630 #: ../src/guestfs-actions.pod:5998 ../src/guestfs-actions.pod:6654
23631 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:6687
23632 #: ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:7392
23633 #: ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7429
23634 #: ../src/guestfs-actions.pod:7603 ../src/guestfs-actions.pod:7913
23636 "This function returns a string, or NULL on error. I<The caller must free "
23637 "the returned string after use>."
23641 #: ../src/guestfs-actions.pod:368
23642 msgid "guestfs_aug_init"
23646 #: ../src/guestfs-actions.pod:370
23650 " guestfs_aug_init (guestfs_h *g,\n"
23651 " const char *root,\n"
23657 #: ../src/guestfs-actions.pod:379
23658 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23662 #: ../src/guestfs-actions.pod:404
23664 "This option is only useful when debugging Augeas lenses. Use of this option "
23665 "may require additional memory for the libguestfs appliance. You may need to "
23666 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23667 "C<guestfs_set_memsize>."
23671 #: ../src/guestfs-actions.pod:419
23672 msgid "Do not load the tree in C<guestfs_aug_init>."
23676 #: ../src/guestfs-actions.pod:423
23677 msgid "To close the handle, you can call C<guestfs_aug_close>."
23681 #: ../src/guestfs-actions.pod:431
23682 msgid "guestfs_aug_insert"
23686 #: ../src/guestfs-actions.pod:433
23690 " guestfs_aug_insert (guestfs_h *g,\n"
23691 " const char *augpath,\n"
23692 " const char *label,\n"
23698 #: ../src/guestfs-actions.pod:451
23699 msgid "guestfs_aug_load"
23703 #: ../src/guestfs-actions.pod:453
23707 " guestfs_aug_load (guestfs_h *g);\n"
23712 #: ../src/guestfs-actions.pod:465
23713 msgid "guestfs_aug_ls"
23717 #: ../src/guestfs-actions.pod:467
23721 " guestfs_aug_ls (guestfs_h *g,\n"
23722 " const char *augpath);\n"
23727 #: ../src/guestfs-actions.pod:471
23729 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23730 "sorting the resulting nodes into alphabetical order."
23734 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23735 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23736 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23737 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23738 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23739 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23740 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2405
23741 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2525
23742 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:3156
23743 #: ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3746
23744 #: ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3783
23745 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3950
23746 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:5125
23747 #: ../src/guestfs-actions.pod:5743 ../src/guestfs-actions.pod:5869
23748 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6734
23749 #: ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6850
23750 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7020
23751 #: ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7516
23752 #: ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7757
23753 #: ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7870
23754 #: ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:7935
23755 #: ../src/guestfs-actions.pod:7954
23757 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23758 ">), or NULL if there was an error. I<The caller must free the strings and "
23759 "the array after use>."
23763 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23764 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23765 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3541
23766 #: ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:4249
23767 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4469
23768 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:5129
23769 #: ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:6081
23770 #: ../src/guestfs-actions.pod:6095 ../src/guestfs-actions.pod:6107
23771 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:7234
23772 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7480
23773 #: ../src/guestfs-actions.pod:7745
23774 msgid "(Added in 0.8)"
23778 #: ../src/guestfs-actions.pod:480
23779 msgid "guestfs_aug_match"
23783 #: ../src/guestfs-actions.pod:482
23787 " guestfs_aug_match (guestfs_h *g,\n"
23788 " const char *augpath);\n"
23793 #: ../src/guestfs-actions.pod:496
23794 msgid "guestfs_aug_mv"
23798 #: ../src/guestfs-actions.pod:498
23802 " guestfs_aug_mv (guestfs_h *g,\n"
23803 " const char *src,\n"
23804 " const char *dest);\n"
23809 #: ../src/guestfs-actions.pod:510
23810 msgid "guestfs_aug_rm"
23814 #: ../src/guestfs-actions.pod:512
23818 " guestfs_aug_rm (guestfs_h *g,\n"
23819 " const char *augpath);\n"
23824 #: ../src/guestfs-actions.pod:524
23825 msgid "guestfs_aug_save"
23829 #: ../src/guestfs-actions.pod:526
23833 " guestfs_aug_save (guestfs_h *g);\n"
23838 #: ../src/guestfs-actions.pod:531
23840 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23845 #: ../src/guestfs-actions.pod:538
23846 msgid "guestfs_aug_set"
23850 #: ../src/guestfs-actions.pod:540
23854 " guestfs_aug_set (guestfs_h *g,\n"
23855 " const char *augpath,\n"
23856 " const char *val);\n"
23861 #: ../src/guestfs-actions.pod:547
23863 "In the Augeas API, it is possible to clear a node by setting the value to "
23864 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
23865 "this call. Instead you must use the C<guestfs_aug_clear> call."
23869 #: ../src/guestfs-actions.pod:556
23870 msgid "guestfs_available"
23874 #: ../src/guestfs-actions.pod:558
23878 " guestfs_available (guestfs_h *g,\n"
23879 " char *const *groups);\n"
23884 #: ../src/guestfs-actions.pod:566
23886 "The libguestfs groups, and the functions that those groups correspond to, "
23887 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
23888 "runtime by calling C<guestfs_available_all_groups>."
23892 #: ../src/guestfs-actions.pod:590
23893 msgid "You must call C<guestfs_launch> before calling this function."
23897 #: ../src/guestfs-actions.pod:612
23899 "This call was added in version C<1.0.80>. In previous versions of "
23900 "libguestfs all you could do would be to speculatively execute a command to "
23901 "find out if the daemon implemented it. See also C<guestfs_version>."
23905 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23906 msgid "(Added in 1.0.80)"
23910 #: ../src/guestfs-actions.pod:623
23911 msgid "guestfs_available_all_groups"
23915 #: ../src/guestfs-actions.pod:625
23919 " guestfs_available_all_groups (guestfs_h *g);\n"
23924 #: ../src/guestfs-actions.pod:628
23926 "This command returns a list of all optional groups that this daemon knows "
23927 "about. Note this returns both supported and unsupported groups. To find "
23928 "out which ones the daemon can actually support you have to call "
23929 "C<guestfs_available> on each member of the returned list."
23933 #: ../src/guestfs-actions.pod:634
23934 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23938 #: ../src/guestfs-actions.pod:640
23939 msgid "(Added in 1.3.15)"
23943 #: ../src/guestfs-actions.pod:642
23944 msgid "guestfs_base64_in"
23948 #: ../src/guestfs-actions.pod:644
23952 " guestfs_base64_in (guestfs_h *g,\n"
23953 " const char *base64file,\n"
23954 " const char *filename);\n"
23959 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23960 msgid "(Added in 1.3.5)"
23964 #: ../src/guestfs-actions.pod:656
23965 msgid "guestfs_base64_out"
23969 #: ../src/guestfs-actions.pod:658
23973 " guestfs_base64_out (guestfs_h *g,\n"
23974 " const char *filename,\n"
23975 " const char *base64file);\n"
23980 #: ../src/guestfs-actions.pod:670
23981 msgid "guestfs_blockdev_flushbufs"
23985 #: ../src/guestfs-actions.pod:672
23989 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23990 " const char *device);\n"
23995 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23996 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23997 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23998 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23999 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24000 msgid "(Added in 0.9.3)"
24004 #: ../src/guestfs-actions.pod:685
24005 msgid "guestfs_blockdev_getbsz"
24009 #: ../src/guestfs-actions.pod:687
24013 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24014 " const char *device);\n"
24019 #: ../src/guestfs-actions.pod:702
24020 msgid "guestfs_blockdev_getro"
24024 #: ../src/guestfs-actions.pod:704
24028 " guestfs_blockdev_getro (guestfs_h *g,\n"
24029 " const char *device);\n"
24034 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24035 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24036 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24037 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24038 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24039 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3253
24040 #: ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3287
24041 #: ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463
24042 #: ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3492
24043 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3523
24044 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
24045 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3580
24046 #: ../src/guestfs-actions.pod:3595 ../src/guestfs-actions.pod:3610
24047 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
24048 #: ../src/guestfs-actions.pod:5366
24049 msgid "This function returns a C truth value on success or -1 on error."
24053 #: ../src/guestfs-actions.pod:717
24054 msgid "guestfs_blockdev_getsize64"
24058 #: ../src/guestfs-actions.pod:719
24062 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24063 " const char *device);\n"
24068 #: ../src/guestfs-actions.pod:725
24069 msgid "See also C<guestfs_blockdev_getsz>."
24073 #: ../src/guestfs-actions.pod:733
24074 msgid "guestfs_blockdev_getss"
24078 #: ../src/guestfs-actions.pod:735
24082 " guestfs_blockdev_getss (guestfs_h *g,\n"
24083 " const char *device);\n"
24088 #: ../src/guestfs-actions.pod:742
24090 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24095 #: ../src/guestfs-actions.pod:751
24096 msgid "guestfs_blockdev_getsz"
24100 #: ../src/guestfs-actions.pod:753
24104 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24105 " const char *device);\n"
24110 #: ../src/guestfs-actions.pod:760
24112 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24113 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24117 #: ../src/guestfs-actions.pod:770
24118 msgid "guestfs_blockdev_rereadpt"
24122 #: ../src/guestfs-actions.pod:772
24126 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24127 " const char *device);\n"
24132 #: ../src/guestfs-actions.pod:784
24133 msgid "guestfs_blockdev_setbsz"
24137 #: ../src/guestfs-actions.pod:786
24141 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24142 " const char *device,\n"
24143 " int blocksize);\n"
24148 #: ../src/guestfs-actions.pod:802
24149 msgid "guestfs_blockdev_setro"
24153 #: ../src/guestfs-actions.pod:804
24157 " guestfs_blockdev_setro (guestfs_h *g,\n"
24158 " const char *device);\n"
24163 #: ../src/guestfs-actions.pod:816
24164 msgid "guestfs_blockdev_setrw"
24168 #: ../src/guestfs-actions.pod:818
24172 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24173 " const char *device);\n"
24178 #: ../src/guestfs-actions.pod:830
24179 msgid "guestfs_btrfs_filesystem_resize"
24183 #: ../src/guestfs-actions.pod:832
24187 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24188 " const char *mountpoint,\n"
24194 #: ../src/guestfs-actions.pod:842
24197 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24202 #: ../src/guestfs-actions.pod:865
24203 msgid "(Added in 1.11.17)"
24207 #: ../src/guestfs-actions.pod:867
24208 msgid "guestfs_btrfs_filesystem_resize_va"
24212 #: ../src/guestfs-actions.pod:869
24216 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24217 " const char *mountpoint,\n"
24218 " va_list args);\n"
24223 #: ../src/guestfs-actions.pod:874
24224 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24228 #: ../src/guestfs-actions.pod:878
24229 msgid "guestfs_btrfs_filesystem_resize_argv"
24233 #: ../src/guestfs-actions.pod:880
24237 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24238 " const char *mountpoint,\n"
24239 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24244 #: ../src/guestfs-actions.pod:885
24245 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24249 #: ../src/guestfs-actions.pod:889
24250 msgid "guestfs_case_sensitive_path"
24254 #: ../src/guestfs-actions.pod:891
24258 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24259 " const char *path);\n"
24264 #: ../src/guestfs-actions.pod:917
24266 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
24267 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24268 "how the directories were originally created under Windows)."
24272 #: ../src/guestfs-actions.pod:925
24273 msgid "See also C<guestfs_realpath>."
24277 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7414
24278 msgid "(Added in 1.0.75)"
24282 #: ../src/guestfs-actions.pod:932
24283 msgid "guestfs_cat"
24287 #: ../src/guestfs-actions.pod:934
24291 " guestfs_cat (guestfs_h *g,\n"
24292 " const char *path);\n"
24297 #: ../src/guestfs-actions.pod:940
24299 "Note that this function cannot correctly handle binary files (specifically, "
24300 "files containing C<\\0> character which is treated as end of string). For "
24301 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24302 "functions which have a more complex interface."
24306 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3767
24307 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3866
24308 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4362
24309 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:5747
24310 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:7567
24311 #: ../src/guestfs-actions.pod:7581
24312 msgid "(Added in 0.4)"
24316 #: ../src/guestfs-actions.pod:953
24317 msgid "guestfs_checksum"
24321 #: ../src/guestfs-actions.pod:955
24325 " guestfs_checksum (guestfs_h *g,\n"
24326 " const char *csumtype,\n"
24327 " const char *path);\n"
24332 #: ../src/guestfs-actions.pod:1001
24333 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24337 #: ../src/guestfs-actions.pod:1003
24338 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24342 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24343 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3465
24344 #: ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3555
24345 #: ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:7270
24346 msgid "(Added in 1.0.2)"
24350 #: ../src/guestfs-actions.pod:1010
24351 msgid "guestfs_checksum_device"
24355 #: ../src/guestfs-actions.pod:1012
24359 " guestfs_checksum_device (guestfs_h *g,\n"
24360 " const char *csumtype,\n"
24361 " const char *device);\n"
24366 #: ../src/guestfs-actions.pod:1017
24368 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24369 "device named C<device>. For the types of checksums supported see the "
24370 "C<guestfs_checksum> command."
24374 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5196
24375 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5368
24376 #: ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5568
24377 #: ../src/guestfs-actions.pod:7179 ../src/guestfs-actions.pod:7193
24378 #: ../src/guestfs-actions.pod:7593
24379 msgid "(Added in 1.3.2)"
24383 #: ../src/guestfs-actions.pod:1026
24384 msgid "guestfs_checksums_out"
24388 #: ../src/guestfs-actions.pod:1028
24392 " guestfs_checksums_out (guestfs_h *g,\n"
24393 " const char *csumtype,\n"
24394 " const char *directory,\n"
24395 " const char *sumsfile);\n"
24400 #: ../src/guestfs-actions.pod:1048
24401 msgid "(Added in 1.3.7)"
24405 #: ../src/guestfs-actions.pod:1050
24406 msgid "guestfs_chmod"
24410 #: ../src/guestfs-actions.pod:1052
24414 " guestfs_chmod (guestfs_h *g,\n"
24416 " const char *path);\n"
24421 #: ../src/guestfs-actions.pod:1070
24422 msgid "guestfs_chown"
24426 #: ../src/guestfs-actions.pod:1072
24430 " guestfs_chown (guestfs_h *g,\n"
24433 " const char *path);\n"
24438 #: ../src/guestfs-actions.pod:1088
24439 msgid "guestfs_command"
24443 #: ../src/guestfs-actions.pod:1090
24447 " guestfs_command (guestfs_h *g,\n"
24448 " char *const *arguments);\n"
24453 #: ../src/guestfs-actions.pod:1099
24455 "The single parameter is an argv-style list of arguments. The first element "
24456 "is the name of the program to run. Subsequent elements are parameters. The "
24457 "list must be non-empty (ie. must contain a program name). Note that the "
24458 "command runs directly, and is I<not> invoked via the shell (see "
24463 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24464 #: ../src/guestfs-actions.pod:1615
24465 msgid "(Added in 0.9.1)"
24469 #: ../src/guestfs-actions.pod:1132
24470 msgid "guestfs_command_lines"
24474 #: ../src/guestfs-actions.pod:1134
24478 " guestfs_command_lines (guestfs_h *g,\n"
24479 " char *const *arguments);\n"
24484 #: ../src/guestfs-actions.pod:1138
24486 "This is the same as C<guestfs_command>, but splits the result into a list of "
24491 #: ../src/guestfs-actions.pod:1141
24492 msgid "See also: C<guestfs_sh_lines>"
24496 #: ../src/guestfs-actions.pod:1152
24497 msgid "guestfs_config"
24501 #: ../src/guestfs-actions.pod:1154
24505 " guestfs_config (guestfs_h *g,\n"
24506 " const char *qemuparam,\n"
24507 " const char *qemuvalue);\n"
24512 #: ../src/guestfs-actions.pod:1172
24513 msgid "guestfs_copy_size"
24517 #: ../src/guestfs-actions.pod:1174
24521 " guestfs_copy_size (guestfs_h *g,\n"
24522 " const char *src,\n"
24523 " const char *dest,\n"
24524 " int64_t size);\n"
24529 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24530 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24531 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24532 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:7265
24533 #: ../src/guestfs-actions.pod:7299 ../src/guestfs-actions.pod:7806
24534 #: ../src/guestfs-actions.pod:7829
24536 "This long-running command can generate progress notification messages so "
24537 "that the caller can display a progress bar or indicator. To receive these "
24538 "messages, the caller must register a progress event callback. See L<guestfs"
24539 "(3)/GUESTFS_EVENT_PROGRESS>."
24543 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4389
24544 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:7500
24545 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7606
24546 msgid "(Added in 1.0.87)"
24550 #: ../src/guestfs-actions.pod:1195
24555 #: ../src/guestfs-actions.pod:1197
24559 " guestfs_cp (guestfs_h *g,\n"
24560 " const char *src,\n"
24561 " const char *dest);\n"
24566 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24567 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24568 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5143
24569 #: ../src/guestfs-actions.pod:5618
24570 msgid "(Added in 1.0.18)"
24574 #: ../src/guestfs-actions.pod:1209
24575 msgid "guestfs_cp_a"
24579 #: ../src/guestfs-actions.pod:1211
24583 " guestfs_cp_a (guestfs_h *g,\n"
24584 " const char *src,\n"
24585 " const char *dest);\n"
24590 #: ../src/guestfs-actions.pod:1223
24595 #: ../src/guestfs-actions.pod:1225
24599 " guestfs_dd (guestfs_h *g,\n"
24600 " const char *src,\n"
24601 " const char *dest);\n"
24606 #: ../src/guestfs-actions.pod:1235
24608 "If the destination is a device, it must be as large or larger than the "
24609 "source file or device, otherwise the copy will fail. This command cannot do "
24610 "partial copies (see C<guestfs_copy_size>)."
24614 #: ../src/guestfs-actions.pod:1243
24619 #: ../src/guestfs-actions.pod:1245
24623 " guestfs_df (guestfs_h *g);\n"
24628 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24630 "This command is mostly useful for interactive sessions. It is I<not> "
24631 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
24636 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24637 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2388
24638 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2480
24639 #: ../src/guestfs-actions.pod:4499 ../src/guestfs-actions.pod:5043
24640 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7027
24641 #: ../src/guestfs-actions.pod:7646 ../src/guestfs-actions.pod:7659
24642 #: ../src/guestfs-actions.pod:7672
24643 msgid "(Added in 1.0.54)"
24647 #: ../src/guestfs-actions.pod:1259
24648 msgid "guestfs_df_h"
24652 #: ../src/guestfs-actions.pod:1261
24656 " guestfs_df_h (guestfs_h *g);\n"
24661 #: ../src/guestfs-actions.pod:1276
24662 msgid "guestfs_dmesg"
24666 #: ../src/guestfs-actions.pod:1278
24670 " guestfs_dmesg (guestfs_h *g);\n"
24675 #: ../src/guestfs-actions.pod:1285
24677 "Another way to get the same information is to enable verbose messages with "
24678 "C<guestfs_set_verbose> or by setting the environment variable "
24679 "C<LIBGUESTFS_DEBUG=1> before running the program."
24683 #: ../src/guestfs-actions.pod:1295
24684 msgid "guestfs_download"
24688 #: ../src/guestfs-actions.pod:1297
24692 " guestfs_download (guestfs_h *g,\n"
24693 " const char *remotefilename,\n"
24694 " const char *filename);\n"
24699 #: ../src/guestfs-actions.pod:1307
24700 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24704 #: ../src/guestfs-actions.pod:1318
24705 msgid "guestfs_download_offset"
24709 #: ../src/guestfs-actions.pod:1320
24713 " guestfs_download_offset (guestfs_h *g,\n"
24714 " const char *remotefilename,\n"
24715 " const char *filename,\n"
24716 " int64_t offset,\n"
24717 " int64_t size);\n"
24722 #: ../src/guestfs-actions.pod:1333
24724 "Note that there is no limit on the amount of data that can be downloaded "
24725 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24726 "full amount unless an error occurs."
24730 #: ../src/guestfs-actions.pod:1338
24731 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24735 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7304
24736 msgid "(Added in 1.5.17)"
24740 #: ../src/guestfs-actions.pod:1349
24741 msgid "guestfs_drop_caches"
24745 #: ../src/guestfs-actions.pod:1351
24749 " guestfs_drop_caches (guestfs_h *g,\n"
24750 " int whattodrop);\n"
24755 #: ../src/guestfs-actions.pod:1369
24760 #: ../src/guestfs-actions.pod:1371
24764 " guestfs_du (guestfs_h *g,\n"
24765 " const char *path);\n"
24770 #: ../src/guestfs-actions.pod:1394
24771 msgid "guestfs_e2fsck_f"
24775 #: ../src/guestfs-actions.pod:1396
24779 " guestfs_e2fsck_f (guestfs_h *g,\n"
24780 " const char *device);\n"
24785 #: ../src/guestfs-actions.pod:1404
24787 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
24788 "Normally you should use C<guestfs_fsck>."
24792 #: ../src/guestfs-actions.pod:1409
24793 msgid "(Added in 1.0.29)"
24797 #: ../src/guestfs-actions.pod:1411
24798 msgid "guestfs_echo_daemon"
24802 #: ../src/guestfs-actions.pod:1413
24806 " guestfs_echo_daemon (guestfs_h *g,\n"
24807 " char *const *words);\n"
24812 #: ../src/guestfs-actions.pod:1422
24813 msgid "See also C<guestfs_ping_daemon>."
24817 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24818 #: ../src/guestfs-actions.pod:6475
24819 msgid "(Added in 1.0.69)"
24823 #: ../src/guestfs-actions.pod:1429
24824 msgid "guestfs_egrep"
24828 #: ../src/guestfs-actions.pod:1431
24832 " guestfs_egrep (guestfs_h *g,\n"
24833 " const char *regex,\n"
24834 " const char *path);\n"
24839 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24840 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24841 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24842 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2501
24843 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2529
24844 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2597
24845 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3879
24846 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3906
24847 #: ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:4921
24848 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6001
24849 #: ../src/guestfs-actions.pod:6871 ../src/guestfs-actions.pod:6883
24850 #: ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:6909
24851 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6944
24852 #: ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6970
24853 #: ../src/guestfs-actions.pod:7764 ../src/guestfs-actions.pod:7783
24854 #: ../src/guestfs-actions.pod:7877 ../src/guestfs-actions.pod:7896
24855 #: ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7961
24856 msgid "(Added in 1.0.66)"
24860 #: ../src/guestfs-actions.pod:1448
24861 msgid "guestfs_egrepi"
24865 #: ../src/guestfs-actions.pod:1450
24869 " guestfs_egrepi (guestfs_h *g,\n"
24870 " const char *regex,\n"
24871 " const char *path);\n"
24876 #: ../src/guestfs-actions.pod:1467
24877 msgid "guestfs_equal"
24881 #: ../src/guestfs-actions.pod:1469
24885 " guestfs_equal (guestfs_h *g,\n"
24886 " const char *file1,\n"
24887 " const char *file2);\n"
24892 #: ../src/guestfs-actions.pod:1483
24893 msgid "guestfs_exists"
24897 #: ../src/guestfs-actions.pod:1485
24901 " guestfs_exists (guestfs_h *g,\n"
24902 " const char *path);\n"
24907 #: ../src/guestfs-actions.pod:1492
24908 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24912 #: ../src/guestfs-actions.pod:1498
24913 msgid "guestfs_fallocate"
24917 #: ../src/guestfs-actions.pod:1500
24921 " guestfs_fallocate (guestfs_h *g,\n"
24922 " const char *path,\n"
24928 #: ../src/guestfs-actions.pod:1515
24930 "This function is deprecated. In new code, use the L</guestfs_fallocate64> "
24935 #: ../src/guestfs-actions.pod:1524
24936 msgid "guestfs_fallocate64"
24940 #: ../src/guestfs-actions.pod:1526
24944 " guestfs_fallocate64 (guestfs_h *g,\n"
24945 " const char *path,\n"
24951 #: ../src/guestfs-actions.pod:1535
24953 "Note that this call allocates disk blocks for the file. To create a sparse "
24954 "file use C<guestfs_truncate_size> instead."
24958 #: ../src/guestfs-actions.pod:1538
24960 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24961 "oversight it only allowed 30 bit lengths to be specified, effectively "
24962 "limiting the maximum size of files created through that call to 1GB."
24966 #: ../src/guestfs-actions.pod:1549
24967 msgid "(Added in 1.3.17)"
24971 #: ../src/guestfs-actions.pod:1551
24972 msgid "guestfs_fgrep"
24976 #: ../src/guestfs-actions.pod:1553
24980 " guestfs_fgrep (guestfs_h *g,\n"
24981 " const char *pattern,\n"
24982 " const char *path);\n"
24987 #: ../src/guestfs-actions.pod:1570
24988 msgid "guestfs_fgrepi"
24992 #: ../src/guestfs-actions.pod:1572
24996 " guestfs_fgrepi (guestfs_h *g,\n"
24997 " const char *pattern,\n"
24998 " const char *path);\n"
25003 #: ../src/guestfs-actions.pod:1589
25004 msgid "guestfs_file"
25008 #: ../src/guestfs-actions.pod:1591
25012 " guestfs_file (guestfs_h *g,\n"
25013 " const char *path);\n"
25018 #: ../src/guestfs-actions.pod:1609
25020 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25021 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25025 #: ../src/guestfs-actions.pod:1617
25026 msgid "guestfs_file_architecture"
25030 #: ../src/guestfs-actions.pod:1619
25034 " guestfs_file_architecture (guestfs_h *g,\n"
25035 " const char *filename);\n"
25040 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25041 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630
25042 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2786
25043 #: ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:2991
25044 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3106
25045 #: ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:3436
25046 #: ../src/guestfs-actions.pod:3568
25047 msgid "(Added in 1.5.3)"
25051 #: ../src/guestfs-actions.pod:1729
25052 msgid "guestfs_filesize"
25056 #: ../src/guestfs-actions.pod:1731
25060 " guestfs_filesize (guestfs_h *g,\n"
25061 " const char *file);\n"
25066 #: ../src/guestfs-actions.pod:1737
25068 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25069 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
25070 "devices, use C<guestfs_blockdev_getsize64>."
25074 #: ../src/guestfs-actions.pod:1743
25075 msgid "(Added in 1.0.82)"
25079 #: ../src/guestfs-actions.pod:1745
25080 msgid "guestfs_fill"
25084 #: ../src/guestfs-actions.pod:1747
25088 " guestfs_fill (guestfs_h *g,\n"
25091 " const char *path);\n"
25096 #: ../src/guestfs-actions.pod:1757
25098 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25099 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
25100 "bytes use C<guestfs_fill_pattern>."
25104 #: ../src/guestfs-actions.pod:1769
25105 msgid "(Added in 1.0.79)"
25109 #: ../src/guestfs-actions.pod:1771
25110 msgid "guestfs_fill_pattern"
25114 #: ../src/guestfs-actions.pod:1773
25118 " guestfs_fill_pattern (guestfs_h *g,\n"
25119 " const char *pattern,\n"
25121 " const char *path);\n"
25126 #: ../src/guestfs-actions.pod:1779
25128 "This function is like C<guestfs_fill> except that it creates a new file of "
25129 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
25130 "pattern is truncated if necessary to ensure the length of the file is "
25131 "exactly C<len> bytes."
25135 #: ../src/guestfs-actions.pod:1791
25136 msgid "(Added in 1.3.12)"
25140 #: ../src/guestfs-actions.pod:1793
25141 msgid "guestfs_find"
25145 #: ../src/guestfs-actions.pod:1795
25149 " guestfs_find (guestfs_h *g,\n"
25150 " const char *directory);\n"
25155 #: ../src/guestfs-actions.pod:1811
25157 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25161 #: ../src/guestfs-actions.pod:1824
25162 msgid "See also C<guestfs_find0>."
25166 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4326
25167 #: ../src/guestfs-actions.pod:6036
25168 msgid "(Added in 1.0.27)"
25172 #: ../src/guestfs-actions.pod:1835
25173 msgid "guestfs_find0"
25177 #: ../src/guestfs-actions.pod:1837
25181 " guestfs_find0 (guestfs_h *g,\n"
25182 " const char *directory,\n"
25183 " const char *files);\n"
25188 #: ../src/guestfs-actions.pod:1846
25190 "This command works the same way as C<guestfs_find> with the following "
25195 #: ../src/guestfs-actions.pod:1873
25196 msgid "(Added in 1.0.74)"
25200 #: ../src/guestfs-actions.pod:1875
25201 msgid "guestfs_findfs_label"
25205 #: ../src/guestfs-actions.pod:1877
25209 " guestfs_findfs_label (guestfs_h *g,\n"
25210 " const char *label);\n"
25215 #: ../src/guestfs-actions.pod:1885
25216 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25220 #: ../src/guestfs-actions.pod:1892
25221 msgid "guestfs_findfs_uuid"
25225 #: ../src/guestfs-actions.pod:1894
25229 " guestfs_findfs_uuid (guestfs_h *g,\n"
25230 " const char *uuid);\n"
25235 #: ../src/guestfs-actions.pod:1902
25236 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25240 #: ../src/guestfs-actions.pod:1909
25241 msgid "guestfs_fsck"
25245 #: ../src/guestfs-actions.pod:1911
25249 " guestfs_fsck (guestfs_h *g,\n"
25250 " const char *fstype,\n"
25251 " const char *device);\n"
25256 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7811
25257 msgid "(Added in 1.0.16)"
25261 #: ../src/guestfs-actions.pod:1948
25262 msgid "guestfs_get_append"
25266 #: ../src/guestfs-actions.pod:1950
25270 " guestfs_get_append (guestfs_h *g);\n"
25275 #: ../src/guestfs-actions.pod:1958
25277 "This function returns a string which may be NULL. There is no way to return "
25278 "an error from this function. The string is owned by the guest handle and "
25279 "must I<not> be freed."
25283 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5714
25284 #: ../src/guestfs-actions.pod:6196 ../src/guestfs-actions.pod:6638
25285 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6673
25286 #: ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:7451
25287 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:7858
25288 msgid "(Added in 1.0.26)"
25292 #: ../src/guestfs-actions.pod:1964
25293 msgid "guestfs_get_attach_method"
25297 #: ../src/guestfs-actions.pod:1966
25301 " guestfs_get_attach_method (guestfs_h *g);\n"
25306 #: ../src/guestfs-actions.pod:1969
25307 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
25311 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6226
25312 msgid "(Added in 1.9.8)"
25316 #: ../src/guestfs-actions.pod:1976
25317 msgid "guestfs_get_autosync"
25321 #: ../src/guestfs-actions.pod:1978
25325 " guestfs_get_autosync (guestfs_h *g);\n"
25330 #: ../src/guestfs-actions.pod:1987
25331 msgid "guestfs_get_direct"
25335 #: ../src/guestfs-actions.pod:1989
25339 " guestfs_get_direct (guestfs_h *g);\n"
25344 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6267
25345 msgid "(Added in 1.0.72)"
25349 #: ../src/guestfs-actions.pod:1998
25350 msgid "guestfs_get_e2label"
25354 #: ../src/guestfs-actions.pod:2000
25358 " guestfs_get_e2label (guestfs_h *g,\n"
25359 " const char *device);\n"
25364 #: ../src/guestfs-actions.pod:2010
25366 "This function is deprecated. In new code, use the L</guestfs_vfs_label> "
25371 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25372 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
25373 msgid "(Added in 1.0.15)"
25377 #: ../src/guestfs-actions.pod:2019
25378 msgid "guestfs_get_e2uuid"
25382 #: ../src/guestfs-actions.pod:2021
25386 " guestfs_get_e2uuid (guestfs_h *g,\n"
25387 " const char *device);\n"
25392 #: ../src/guestfs-actions.pod:2031
25394 "This function is deprecated. In new code, use the L</guestfs_vfs_uuid> call "
25399 #: ../src/guestfs-actions.pod:2040
25400 msgid "guestfs_get_memsize"
25404 #: ../src/guestfs-actions.pod:2042
25408 " guestfs_get_memsize (guestfs_h *g);\n"
25413 #: ../src/guestfs-actions.pod:2048
25415 "If C<guestfs_set_memsize> was not called on this handle, and if "
25416 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25417 "value for memsize."
25421 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4617
25422 #: ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4845
25423 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4876
25424 #: ../src/guestfs-actions.pod:4893 ../src/guestfs-actions.pod:4906
25425 #: ../src/guestfs-actions.pod:5939 ../src/guestfs-actions.pod:6325
25426 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:7220
25427 msgid "(Added in 1.0.55)"
25431 #: ../src/guestfs-actions.pod:2059
25432 msgid "guestfs_get_network"
25436 #: ../src/guestfs-actions.pod:2061
25440 " guestfs_get_network (guestfs_h *g);\n"
25445 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6344
25446 msgid "(Added in 1.5.4)"
25450 #: ../src/guestfs-actions.pod:2070
25451 msgid "guestfs_get_path"
25455 #: ../src/guestfs-actions.pod:2072
25459 " guestfs_get_path (guestfs_h *g);\n"
25464 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25466 "This function returns a string, or NULL on error. The string is owned by "
25467 "the guest handle and must I<not> be freed."
25471 #: ../src/guestfs-actions.pod:2085
25472 msgid "guestfs_get_pgroup"
25476 #: ../src/guestfs-actions.pod:2087
25480 " guestfs_get_pgroup (guestfs_h *g);\n"
25485 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6380
25486 #: ../src/guestfs-actions.pod:7712
25488 #| msgid "(Added in 1.5.1)"
25489 msgid "(Added in 1.11.18)"
25490 msgstr "(Додано у 1.5.1)"
25493 #: ../src/guestfs-actions.pod:2096
25494 msgid "guestfs_get_pid"
25498 #: ../src/guestfs-actions.pod:2098
25502 " guestfs_get_pid (guestfs_h *g);\n"
25507 #: ../src/guestfs-actions.pod:2108
25508 msgid "(Added in 1.0.56)"
25512 #: ../src/guestfs-actions.pod:2110
25513 msgid "guestfs_get_qemu"
25517 #: ../src/guestfs-actions.pod:2112
25521 " guestfs_get_qemu (guestfs_h *g);\n"
25526 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6408
25527 msgid "(Added in 1.0.6)"
25531 #: ../src/guestfs-actions.pod:2125
25532 msgid "guestfs_get_recovery_proc"
25536 #: ../src/guestfs-actions.pod:2127
25540 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25545 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3690
25546 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4424
25547 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:5644
25548 #: ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6432
25549 #: ../src/guestfs-actions.pod:7123 ../src/guestfs-actions.pod:7143
25550 #: ../src/guestfs-actions.pod:7335
25551 msgid "(Added in 1.0.77)"
25555 #: ../src/guestfs-actions.pod:2136
25556 msgid "guestfs_get_selinux"
25560 #: ../src/guestfs-actions.pod:2138
25564 " guestfs_get_selinux (guestfs_h *g);\n"
25569 #: ../src/guestfs-actions.pod:2141
25571 "This returns the current setting of the selinux flag which is passed to the "
25572 "appliance at boot time. See C<guestfs_set_selinux>."
25576 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25577 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6509
25578 msgid "(Added in 1.0.67)"
25582 #: ../src/guestfs-actions.pod:2151
25583 msgid "guestfs_get_state"
25587 #: ../src/guestfs-actions.pod:2153
25591 " guestfs_get_state (guestfs_h *g);\n"
25596 #: ../src/guestfs-actions.pod:2165
25597 msgid "guestfs_get_trace"
25601 #: ../src/guestfs-actions.pod:2167
25605 " guestfs_get_trace (guestfs_h *g);\n"
25610 #: ../src/guestfs-actions.pod:2176
25611 msgid "guestfs_get_umask"
25615 #: ../src/guestfs-actions.pod:2178
25619 " guestfs_get_umask (guestfs_h *g);\n"
25624 #: ../src/guestfs-actions.pod:2181
25626 "Return the current umask. By default the umask is C<022> unless it has been "
25627 "set by calling C<guestfs_umask>."
25631 #: ../src/guestfs-actions.pod:2188
25632 msgid "guestfs_get_verbose"
25636 #: ../src/guestfs-actions.pod:2190
25640 " guestfs_get_verbose (guestfs_h *g);\n"
25645 #: ../src/guestfs-actions.pod:2199
25646 msgid "guestfs_getcon"
25650 #: ../src/guestfs-actions.pod:2201
25654 " guestfs_getcon (guestfs_h *g);\n"
25659 #: ../src/guestfs-actions.pod:2206
25661 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25665 #: ../src/guestfs-actions.pod:2214
25666 msgid "guestfs_getxattr"
25670 #: ../src/guestfs-actions.pod:2216
25674 " guestfs_getxattr (guestfs_h *g,\n"
25675 " const char *path,\n"
25676 " const char *name,\n"
25677 " size_t *size_r);\n"
25682 #: ../src/guestfs-actions.pod:2222
25684 "Get a single extended attribute from file C<path> named C<name>. This call "
25685 "follows symlinks. If you want to lookup an extended attribute for the "
25686 "symlink itself, use C<guestfs_lgetxattr>."
25690 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3704
25692 "Normally it is better to get all extended attributes from a file in one go "
25693 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
25694 "implementations are buggy and do not provide a way to list out attributes. "
25695 "For these filesystems (notably ntfs-3g) you have to know the names of the "
25696 "extended attributes you want in advance and call this function."
25700 #: ../src/guestfs-actions.pod:2236
25701 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25705 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451
25706 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:3716
25707 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5663
25708 #: ../src/guestfs-actions.pod:5844
25710 "This function returns a buffer, or NULL on error. The size of the returned "
25711 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
25716 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3720
25717 msgid "(Added in 1.7.24)"
25721 #: ../src/guestfs-actions.pod:2244
25722 msgid "guestfs_getxattrs"
25726 #: ../src/guestfs-actions.pod:2246
25729 " struct guestfs_xattr_list *\n"
25730 " guestfs_getxattrs (guestfs_h *g,\n"
25731 " const char *path);\n"
25736 #: ../src/guestfs-actions.pod:2256
25737 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25741 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3732
25742 #: ../src/guestfs-actions.pod:4420
25744 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25745 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
25749 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3736
25750 #: ../src/guestfs-actions.pod:3935 ../src/guestfs-actions.pod:3971
25751 #: ../src/guestfs-actions.pod:6017 ../src/guestfs-actions.pod:6528
25752 #: ../src/guestfs-actions.pod:7923
25753 msgid "(Added in 1.0.59)"
25757 #: ../src/guestfs-actions.pod:2264
25758 msgid "guestfs_glob_expand"
25762 #: ../src/guestfs-actions.pod:2266
25766 " guestfs_glob_expand (guestfs_h *g,\n"
25767 " const char *pattern);\n"
25772 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6721
25773 #: ../src/guestfs-actions.pod:6738
25774 msgid "(Added in 1.0.50)"
25778 #: ../src/guestfs-actions.pod:2287
25779 msgid "guestfs_grep"
25783 #: ../src/guestfs-actions.pod:2289
25787 " guestfs_grep (guestfs_h *g,\n"
25788 " const char *regex,\n"
25789 " const char *path);\n"
25794 #: ../src/guestfs-actions.pod:2306
25795 msgid "guestfs_grepi"
25799 #: ../src/guestfs-actions.pod:2308
25803 " guestfs_grepi (guestfs_h *g,\n"
25804 " const char *regex,\n"
25805 " const char *path);\n"
25810 #: ../src/guestfs-actions.pod:2325
25811 msgid "guestfs_grub_install"
25815 #: ../src/guestfs-actions.pod:2327
25819 " guestfs_grub_install (guestfs_h *g,\n"
25820 " const char *root,\n"
25821 " const char *device);\n"
25826 #: ../src/guestfs-actions.pod:2370
25827 msgid "(Added in 1.0.17)"
25831 #: ../src/guestfs-actions.pod:2372
25832 msgid "guestfs_head"
25836 #: ../src/guestfs-actions.pod:2374
25840 " guestfs_head (guestfs_h *g,\n"
25841 " const char *path);\n"
25846 #: ../src/guestfs-actions.pod:2390
25847 msgid "guestfs_head_n"
25851 #: ../src/guestfs-actions.pod:2392
25855 " guestfs_head_n (guestfs_h *g,\n"
25857 " const char *path);\n"
25862 #: ../src/guestfs-actions.pod:2414
25863 msgid "guestfs_hexdump"
25867 #: ../src/guestfs-actions.pod:2416
25871 " guestfs_hexdump (guestfs_h *g,\n"
25872 " const char *path);\n"
25877 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6802
25878 #: ../src/guestfs-actions.pod:6857
25879 msgid "(Added in 1.0.22)"
25883 #: ../src/guestfs-actions.pod:2431
25884 msgid "guestfs_initrd_cat"
25888 #: ../src/guestfs-actions.pod:2433
25892 " guestfs_initrd_cat (guestfs_h *g,\n"
25893 " const char *initrdpath,\n"
25894 " const char *filename,\n"
25895 " size_t *size_r);\n"
25900 #: ../src/guestfs-actions.pod:2449
25901 msgid "See also C<guestfs_initrd_list>."
25905 #: ../src/guestfs-actions.pod:2460
25906 msgid "guestfs_initrd_list"
25910 #: ../src/guestfs-actions.pod:2462
25914 " guestfs_initrd_list (guestfs_h *g,\n"
25915 " const char *path);\n"
25920 #: ../src/guestfs-actions.pod:2482
25921 msgid "guestfs_inotify_add_watch"
25925 #: ../src/guestfs-actions.pod:2484
25929 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25930 " const char *path,\n"
25936 #: ../src/guestfs-actions.pod:2503
25937 msgid "guestfs_inotify_close"
25941 #: ../src/guestfs-actions.pod:2505
25945 " guestfs_inotify_close (guestfs_h *g);\n"
25950 #: ../src/guestfs-actions.pod:2516
25951 msgid "guestfs_inotify_files"
25955 #: ../src/guestfs-actions.pod:2518
25959 " guestfs_inotify_files (guestfs_h *g);\n"
25964 #: ../src/guestfs-actions.pod:2521
25966 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25967 "returns a list of pathnames of objects that were touched. The returned "
25968 "pathnames are sorted and deduplicated."
25972 #: ../src/guestfs-actions.pod:2531
25973 msgid "guestfs_inotify_init"
25977 #: ../src/guestfs-actions.pod:2533
25981 " guestfs_inotify_init (guestfs_h *g,\n"
25982 " int maxevents);\n"
25987 #: ../src/guestfs-actions.pod:2541
25989 "C<maxevents> is the maximum number of events which will be queued up between "
25990 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
25991 "passed as C<0>, then the kernel (or previously set) default is used. For "
25992 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
25993 "throws away events, but records the fact that it threw them away by setting "
25994 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25995 "C<guestfs_inotify_read>)."
25999 #: ../src/guestfs-actions.pod:2551
26001 "Before any events are generated, you have to add some watches to the "
26002 "internal watch list. See: C<guestfs_inotify_add_watch>, "
26003 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26007 #: ../src/guestfs-actions.pod:2557
26009 "Queued up events should be read periodically by calling "
26010 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26011 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
26012 "often enough then you risk the internal queue overflowing."
26016 #: ../src/guestfs-actions.pod:2564
26018 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
26019 "This also removes any watches automatically."
26023 #: ../src/guestfs-actions.pod:2577
26024 msgid "guestfs_inotify_read"
26028 #: ../src/guestfs-actions.pod:2579
26031 " struct guestfs_inotify_event_list *\n"
26032 " guestfs_inotify_read (guestfs_h *g);\n"
26037 #: ../src/guestfs-actions.pod:2593
26039 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26040 "there was an error. I<The caller must call "
26041 "C<guestfs_free_inotify_event_list> after use>."
26045 #: ../src/guestfs-actions.pod:2599
26046 msgid "guestfs_inotify_rm_watch"
26050 #: ../src/guestfs-actions.pod:2601
26054 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26060 #: ../src/guestfs-actions.pod:2605
26062 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
26066 #: ../src/guestfs-actions.pod:2612
26067 msgid "guestfs_inspect_get_arch"
26071 #: ../src/guestfs-actions.pod:2614
26075 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26076 " const char *root);\n"
26081 #: ../src/guestfs-actions.pod:2618
26083 "This returns the architecture of the inspected operating system. The "
26084 "possible return values are listed under C<guestfs_file_architecture>."
26088 #: ../src/guestfs-actions.pod:2632
26089 msgid "guestfs_inspect_get_distro"
26093 #: ../src/guestfs-actions.pod:2634
26097 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26098 " const char *root);\n"
26103 #: ../src/guestfs-actions.pod:2722
26104 msgid "guestfs_inspect_get_drive_mappings"
26108 #: ../src/guestfs-actions.pod:2724
26112 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26113 " const char *root);\n"
26118 #: ../src/guestfs-actions.pod:2753
26120 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26121 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26125 #: ../src/guestfs-actions.pod:2757 ../src/guestfs-actions.pod:3025
26126 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:5105
26127 #: ../src/guestfs-actions.pod:7159
26129 "This function returns a NULL-terminated array of strings, or NULL if there "
26130 "was an error. The array of strings will always have length C<2n+1>, where "
26131 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
26132 "caller must free the strings and the array after use>."
26136 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:3219
26137 msgid "(Added in 1.9.17)"
26141 #: ../src/guestfs-actions.pod:2765
26142 msgid "guestfs_inspect_get_filesystems"
26146 #: ../src/guestfs-actions.pod:2767
26150 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26151 " const char *root);\n"
26156 #: ../src/guestfs-actions.pod:2779
26158 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26159 "C<guestfs_inspect_get_mountpoints>."
26163 #: ../src/guestfs-actions.pod:2788
26164 msgid "guestfs_inspect_get_format"
26168 #: ../src/guestfs-actions.pod:2790
26172 " guestfs_inspect_get_format (guestfs_h *g,\n"
26173 " const char *root);\n"
26178 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:3255
26179 #: ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289
26180 #: ../src/guestfs-actions.pod:6055
26181 msgid "(Added in 1.9.4)"
26185 #: ../src/guestfs-actions.pod:2826
26186 msgid "guestfs_inspect_get_hostname"
26190 #: ../src/guestfs-actions.pod:2828
26194 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26195 " const char *root);\n"
26200 #: ../src/guestfs-actions.pod:2843
26201 msgid "(Added in 1.7.9)"
26205 #: ../src/guestfs-actions.pod:2845
26206 msgid "guestfs_inspect_get_icon"
26210 #: ../src/guestfs-actions.pod:2847
26214 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26215 " const char *root,\n"
26216 " size_t *size_r,\n"
26222 #: ../src/guestfs-actions.pod:2858
26225 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26226 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26231 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3750
26232 #: ../src/guestfs-actions.pod:5004
26233 msgid "(Added in 1.11.12)"
26237 #: ../src/guestfs-actions.pod:2927
26238 msgid "guestfs_inspect_get_icon_va"
26242 #: ../src/guestfs-actions.pod:2929
26246 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26247 " const char *root,\n"
26248 " size_t *size_r,\n"
26249 " va_list args);\n"
26254 #: ../src/guestfs-actions.pod:2935
26255 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26259 #: ../src/guestfs-actions.pod:2939
26260 msgid "guestfs_inspect_get_icon_argv"
26264 #: ../src/guestfs-actions.pod:2941
26268 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26269 " const char *root,\n"
26270 " size_t *size_r,\n"
26271 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
26276 #: ../src/guestfs-actions.pod:2947
26277 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26281 #: ../src/guestfs-actions.pod:2951
26282 msgid "guestfs_inspect_get_major_version"
26286 #: ../src/guestfs-actions.pod:2953
26290 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26291 " const char *root);\n"
26296 #: ../src/guestfs-actions.pod:2975
26297 msgid "guestfs_inspect_get_minor_version"
26301 #: ../src/guestfs-actions.pod:2977
26305 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26306 " const char *root);\n"
26311 #: ../src/guestfs-actions.pod:2986
26313 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26314 "C<guestfs_inspect_get_major_version>."
26318 #: ../src/guestfs-actions.pod:2993
26319 msgid "guestfs_inspect_get_mountpoints"
26323 #: ../src/guestfs-actions.pod:2995
26327 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26328 " const char *root);\n"
26333 #: ../src/guestfs-actions.pod:3016
26335 "For operating systems like Windows which still use drive letters, this call "
26336 "will only return an entry for the first drive \"mounted on\" C</>. For "
26337 "information about the mapping of drive letters to partitions, see "
26338 "C<guestfs_inspect_get_drive_mappings>."
26342 #: ../src/guestfs-actions.pod:3022
26344 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26345 "C<guestfs_inspect_get_filesystems>."
26349 #: ../src/guestfs-actions.pod:3033
26350 msgid "guestfs_inspect_get_package_format"
26354 #: ../src/guestfs-actions.pod:3035
26358 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26359 " const char *root);\n"
26364 #: ../src/guestfs-actions.pod:3039
26366 "This function and C<guestfs_inspect_get_package_management> return the "
26367 "package format and package management tool used by the inspected operating "
26368 "system. For example for Fedora these functions would return C<rpm> (package "
26369 "format) and C<yum> (package management)."
26373 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3085
26374 msgid "(Added in 1.7.5)"
26378 #: ../src/guestfs-actions.pod:3059
26379 msgid "guestfs_inspect_get_package_management"
26383 #: ../src/guestfs-actions.pod:3061
26387 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26388 " const char *root);\n"
26393 #: ../src/guestfs-actions.pod:3065
26395 "C<guestfs_inspect_get_package_format> and this function return the package "
26396 "format and package management tool used by the inspected operating system. "
26397 "For example for Fedora these functions would return C<rpm> (package format) "
26398 "and C<yum> (package management)."
26402 #: ../src/guestfs-actions.pod:3087
26403 msgid "guestfs_inspect_get_product_name"
26407 #: ../src/guestfs-actions.pod:3089
26411 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26412 " const char *root);\n"
26417 #: ../src/guestfs-actions.pod:3108
26418 msgid "guestfs_inspect_get_product_variant"
26422 #: ../src/guestfs-actions.pod:3110
26426 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26427 " const char *root);\n"
26432 #: ../src/guestfs-actions.pod:3133
26434 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
26435 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26439 #: ../src/guestfs-actions.pod:3140
26440 msgid "(Added in 1.9.13)"
26444 #: ../src/guestfs-actions.pod:3142
26445 msgid "guestfs_inspect_get_roots"
26449 #: ../src/guestfs-actions.pod:3144
26453 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26458 #: ../src/guestfs-actions.pod:3147
26460 "This function is a convenient way to get the list of root devices, as "
26461 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26462 "the whole inspection process."
26466 #: ../src/guestfs-actions.pod:3151
26468 "This returns an empty list if either no root devices were found or the "
26469 "caller has not called C<guestfs_inspect_os>."
26473 #: ../src/guestfs-actions.pod:3160
26474 msgid "(Added in 1.7.3)"
26478 #: ../src/guestfs-actions.pod:3162
26479 msgid "guestfs_inspect_get_type"
26483 #: ../src/guestfs-actions.pod:3164
26487 " guestfs_inspect_get_type (guestfs_h *g,\n"
26488 " const char *root);\n"
26493 #: ../src/guestfs-actions.pod:3201
26494 msgid "guestfs_inspect_get_windows_current_control_set"
26498 #: ../src/guestfs-actions.pod:3203
26502 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26503 " const char *root);\n"
26508 #: ../src/guestfs-actions.pod:3221
26509 msgid "guestfs_inspect_get_windows_systemroot"
26513 #: ../src/guestfs-actions.pod:3223
26517 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26518 " const char *root);\n"
26523 #: ../src/guestfs-actions.pod:3239
26524 msgid "(Added in 1.5.25)"
26528 #: ../src/guestfs-actions.pod:3241
26529 msgid "guestfs_inspect_is_live"
26533 #: ../src/guestfs-actions.pod:3243
26537 " guestfs_inspect_is_live (guestfs_h *g,\n"
26538 " const char *root);\n"
26543 #: ../src/guestfs-actions.pod:3247
26545 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26546 "disk), then this returns true if a live image was detected on the disk."
26550 #: ../src/guestfs-actions.pod:3257
26551 msgid "guestfs_inspect_is_multipart"
26555 #: ../src/guestfs-actions.pod:3259
26559 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26560 " const char *root);\n"
26565 #: ../src/guestfs-actions.pod:3263
26567 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26568 "disk), then this returns true if the disk is part of a set."
26572 #: ../src/guestfs-actions.pod:3273
26573 msgid "guestfs_inspect_is_netinst"
26577 #: ../src/guestfs-actions.pod:3275
26581 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26582 " const char *root);\n"
26587 #: ../src/guestfs-actions.pod:3279
26589 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26590 "disk), then this returns true if the disk is a network installer, ie. not a "
26591 "self-contained install CD but one which is likely to require network access "
26592 "to complete the install."
26596 #: ../src/guestfs-actions.pod:3291
26597 msgid "guestfs_inspect_list_applications"
26601 #: ../src/guestfs-actions.pod:3293
26604 " struct guestfs_application_list *\n"
26605 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26606 " const char *root);\n"
26611 #: ../src/guestfs-actions.pod:3299
26613 "I<Note:> This call works differently from other parts of the inspection "
26614 "API. You have to call C<guestfs_inspect_os>, then "
26615 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26616 "this. Listing applications is a significantly more difficult operation "
26617 "which requires access to the full filesystem. Also note that unlike the "
26618 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26619 "the libguestfs handle, this call actually reads parts of the mounted "
26620 "filesystems during the call."
26624 #: ../src/guestfs-actions.pod:3389
26626 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26627 "there was an error. I<The caller must call C<guestfs_free_application_list> "
26632 #: ../src/guestfs-actions.pod:3393
26633 msgid "(Added in 1.7.8)"
26637 #: ../src/guestfs-actions.pod:3395
26638 msgid "guestfs_inspect_os"
26642 #: ../src/guestfs-actions.pod:3397
26646 " guestfs_inspect_os (guestfs_h *g);\n"
26651 #: ../src/guestfs-actions.pod:3413
26653 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26654 "functions in order to query further information about each operating system, "
26655 "such as the name and version."
26659 #: ../src/guestfs-actions.pod:3418
26661 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26662 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26663 "the contents. This should be called with no disks currently mounted. The "
26664 "function may also use Augeas, so any existing Augeas handle will be closed."
26668 #: ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3761
26669 #: ../src/guestfs-actions.pod:3843
26670 msgid "See also C<guestfs_list_filesystems>."
26674 #: ../src/guestfs-actions.pod:3438
26675 msgid "guestfs_is_blockdev"
26679 #: ../src/guestfs-actions.pod:3440
26683 " guestfs_is_blockdev (guestfs_h *g,\n"
26684 " const char *path);\n"
26689 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3476
26690 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3521
26691 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3593
26692 #: ../src/guestfs-actions.pod:3608
26693 msgid "See also C<guestfs_stat>."
26697 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480
26698 #: ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3597
26699 #: ../src/guestfs-actions.pod:3612
26700 msgid "(Added in 1.5.10)"
26704 #: ../src/guestfs-actions.pod:3453
26705 msgid "guestfs_is_busy"
26709 #: ../src/guestfs-actions.pod:3455
26713 " guestfs_is_busy (guestfs_h *g);\n"
26718 #: ../src/guestfs-actions.pod:3467
26719 msgid "guestfs_is_chardev"
26723 #: ../src/guestfs-actions.pod:3469
26727 " guestfs_is_chardev (guestfs_h *g,\n"
26728 " const char *path);\n"
26733 #: ../src/guestfs-actions.pod:3482
26734 msgid "guestfs_is_config"
26738 #: ../src/guestfs-actions.pod:3484
26742 " guestfs_is_config (guestfs_h *g);\n"
26747 #: ../src/guestfs-actions.pod:3496
26748 msgid "guestfs_is_dir"
26752 #: ../src/guestfs-actions.pod:3498
26756 " guestfs_is_dir (guestfs_h *g,\n"
26757 " const char *path);\n"
26762 #: ../src/guestfs-actions.pod:3512
26763 msgid "guestfs_is_fifo"
26767 #: ../src/guestfs-actions.pod:3514
26771 " guestfs_is_fifo (guestfs_h *g,\n"
26772 " const char *path);\n"
26777 #: ../src/guestfs-actions.pod:3527
26778 msgid "guestfs_is_file"
26782 #: ../src/guestfs-actions.pod:3529
26786 " guestfs_is_file (guestfs_h *g,\n"
26787 " const char *path);\n"
26792 #: ../src/guestfs-actions.pod:3543
26793 msgid "guestfs_is_launching"
26797 #: ../src/guestfs-actions.pod:3545
26801 " guestfs_is_launching (guestfs_h *g);\n"
26806 #: ../src/guestfs-actions.pod:3557
26807 msgid "guestfs_is_lv"
26811 #: ../src/guestfs-actions.pod:3559
26815 " guestfs_is_lv (guestfs_h *g,\n"
26816 " const char *device);\n"
26821 #: ../src/guestfs-actions.pod:3570
26822 msgid "guestfs_is_ready"
26826 #: ../src/guestfs-actions.pod:3572
26830 " guestfs_is_ready (guestfs_h *g);\n"
26835 #: ../src/guestfs-actions.pod:3584
26836 msgid "guestfs_is_socket"
26840 #: ../src/guestfs-actions.pod:3586
26844 " guestfs_is_socket (guestfs_h *g,\n"
26845 " const char *path);\n"
26850 #: ../src/guestfs-actions.pod:3599
26851 msgid "guestfs_is_symlink"
26855 #: ../src/guestfs-actions.pod:3601
26859 " guestfs_is_symlink (guestfs_h *g,\n"
26860 " const char *path);\n"
26865 #: ../src/guestfs-actions.pod:3614
26866 msgid "guestfs_is_zero"
26870 #: ../src/guestfs-actions.pod:3616
26874 " guestfs_is_zero (guestfs_h *g,\n"
26875 " const char *path);\n"
26880 #: ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3639
26881 msgid "(Added in 1.11.8)"
26885 #: ../src/guestfs-actions.pod:3627
26886 msgid "guestfs_is_zero_device"
26890 #: ../src/guestfs-actions.pod:3629
26894 " guestfs_is_zero_device (guestfs_h *g,\n"
26895 " const char *device);\n"
26900 #: ../src/guestfs-actions.pod:3641
26901 msgid "guestfs_kill_subprocess"
26905 #: ../src/guestfs-actions.pod:3643
26909 " guestfs_kill_subprocess (guestfs_h *g);\n"
26914 #: ../src/guestfs-actions.pod:3652
26915 msgid "guestfs_launch"
26919 #: ../src/guestfs-actions.pod:3654
26923 " guestfs_launch (guestfs_h *g);\n"
26928 #: ../src/guestfs-actions.pod:3672
26929 msgid "guestfs_lchown"
26933 #: ../src/guestfs-actions.pod:3674
26937 " guestfs_lchown (guestfs_h *g,\n"
26940 " const char *path);\n"
26945 #: ../src/guestfs-actions.pod:3680
26947 "Change the file owner to C<owner> and group to C<group>. This is like "
26948 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26949 "changed, not the target."
26953 #: ../src/guestfs-actions.pod:3692
26954 msgid "guestfs_lgetxattr"
26958 #: ../src/guestfs-actions.pod:3694
26962 " guestfs_lgetxattr (guestfs_h *g,\n"
26963 " const char *path,\n"
26964 " const char *name,\n"
26965 " size_t *size_r);\n"
26970 #: ../src/guestfs-actions.pod:3714
26971 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26975 #: ../src/guestfs-actions.pod:3722
26976 msgid "guestfs_lgetxattrs"
26980 #: ../src/guestfs-actions.pod:3724
26983 " struct guestfs_xattr_list *\n"
26984 " guestfs_lgetxattrs (guestfs_h *g,\n"
26985 " const char *path);\n"
26990 #: ../src/guestfs-actions.pod:3728
26992 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26993 "then it returns the extended attributes of the link itself."
26997 #: ../src/guestfs-actions.pod:3738
26998 msgid "guestfs_list_9p"
27002 #: ../src/guestfs-actions.pod:3740
27006 " guestfs_list_9p (guestfs_h *g);\n"
27011 #: ../src/guestfs-actions.pod:3752
27012 msgid "guestfs_list_devices"
27016 #: ../src/guestfs-actions.pod:3754
27020 " guestfs_list_devices (guestfs_h *g);\n"
27025 #: ../src/guestfs-actions.pod:3769
27026 msgid "guestfs_list_dm_devices"
27030 #: ../src/guestfs-actions.pod:3771
27034 " guestfs_list_dm_devices (guestfs_h *g);\n"
27039 #: ../src/guestfs-actions.pod:3776
27041 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27042 "previous call to C<guestfs_luks_open>."
27046 #: ../src/guestfs-actions.pod:3779
27048 "Device mapper devices which correspond to logical volumes are I<not> "
27049 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
27054 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:5243
27055 msgid "(Added in 1.11.15)"
27059 #: ../src/guestfs-actions.pod:3789
27060 msgid "guestfs_list_filesystems"
27064 #: ../src/guestfs-actions.pod:3791
27068 " guestfs_list_filesystems (guestfs_h *g);\n"
27073 #: ../src/guestfs-actions.pod:3811
27075 "This command runs other libguestfs commands, which might include "
27076 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27077 "soon after launch and only when nothing is mounted."
27081 #: ../src/guestfs-actions.pod:3815
27083 "Not all of the filesystems returned will be mountable. In particular, swap "
27084 "partitions are returned in the list. Also this command does not check that "
27085 "each filesystem found is valid and mountable, and some filesystems might be "
27086 "mountable but require special options. Filesystems may not all belong to a "
27087 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27091 #: ../src/guestfs-actions.pod:3829 ../src/guestfs-actions.pod:5604
27092 msgid "(Added in 1.5.15)"
27096 #: ../src/guestfs-actions.pod:3831
27097 msgid "guestfs_list_partitions"
27098 msgstr "guestfs_list_partitions"
27101 #: ../src/guestfs-actions.pod:3833
27105 " guestfs_list_partitions (guestfs_h *g);\n"
27109 " guestfs_list_partitions (guestfs_h *g);\n"
27113 #: ../src/guestfs-actions.pod:3840
27115 "This does not return logical volumes. For that you will need to call "
27120 #: ../src/guestfs-actions.pod:3851
27122 msgstr "guestfs_ll"
27125 #: ../src/guestfs-actions.pod:3853
27129 " guestfs_ll (guestfs_h *g,\n"
27130 " const char *directory);\n"
27134 " guestfs_ll (guestfs_h *g,\n"
27135 " const char *directory);\n"
27139 #: ../src/guestfs-actions.pod:3868
27141 msgstr "guestfs_ln"
27144 #: ../src/guestfs-actions.pod:3870
27148 " guestfs_ln (guestfs_h *g,\n"
27149 " const char *target,\n"
27150 " const char *linkname);\n"
27154 " guestfs_ln (guestfs_h *g,\n"
27155 " const char *target,\n"
27156 " const char *linkname);\n"
27160 #: ../src/guestfs-actions.pod:3881
27161 msgid "guestfs_ln_f"
27162 msgstr "guestfs_ln_f"
27165 #: ../src/guestfs-actions.pod:3883
27169 " guestfs_ln_f (guestfs_h *g,\n"
27170 " const char *target,\n"
27171 " const char *linkname);\n"
27175 " guestfs_ln_f (guestfs_h *g,\n"
27176 " const char *target,\n"
27177 " const char *linkname);\n"
27181 #: ../src/guestfs-actions.pod:3895
27182 msgid "guestfs_ln_s"
27183 msgstr "guestfs_ln_s"
27186 #: ../src/guestfs-actions.pod:3897
27190 " guestfs_ln_s (guestfs_h *g,\n"
27191 " const char *target,\n"
27192 " const char *linkname);\n"
27196 " guestfs_ln_s (guestfs_h *g,\n"
27197 " const char *target,\n"
27198 " const char *linkname);\n"
27202 #: ../src/guestfs-actions.pod:3908
27203 msgid "guestfs_ln_sf"
27204 msgstr "guestfs_ln_sf"
27207 #: ../src/guestfs-actions.pod:3910
27211 " guestfs_ln_sf (guestfs_h *g,\n"
27212 " const char *target,\n"
27213 " const char *linkname);\n"
27217 " guestfs_ln_sf (guestfs_h *g,\n"
27218 " const char *target,\n"
27219 " const char *linkname);\n"
27223 #: ../src/guestfs-actions.pod:3922
27224 msgid "guestfs_lremovexattr"
27225 msgstr "guestfs_lremovexattr"
27228 #: ../src/guestfs-actions.pod:3924
27232 " guestfs_lremovexattr (guestfs_h *g,\n"
27233 " const char *xattr,\n"
27234 " const char *path);\n"
27238 " guestfs_lremovexattr (guestfs_h *g,\n"
27239 " const char *xattr,\n"
27240 " const char *path);\n"
27244 #: ../src/guestfs-actions.pod:3929
27246 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27247 "link, then it removes an extended attribute of the link itself."
27251 #: ../src/guestfs-actions.pod:3937
27253 msgstr "guestfs_ls"
27256 #: ../src/guestfs-actions.pod:3939
27260 " guestfs_ls (guestfs_h *g,\n"
27261 " const char *directory);\n"
27265 " guestfs_ls (guestfs_h *g,\n"
27266 " const char *directory);\n"
27270 #: ../src/guestfs-actions.pod:3947
27272 "This command is mostly useful for interactive sessions. Programs should "
27273 "probably use C<guestfs_readdir> instead."
27277 #: ../src/guestfs-actions.pod:3956
27278 msgid "guestfs_lsetxattr"
27279 msgstr "guestfs_lsetxattr"
27282 #: ../src/guestfs-actions.pod:3958
27286 " guestfs_lsetxattr (guestfs_h *g,\n"
27287 " const char *xattr,\n"
27288 " const char *val,\n"
27290 " const char *path);\n"
27294 " guestfs_lsetxattr (guestfs_h *g,\n"
27295 " const char *xattr,\n"
27296 " const char *val,\n"
27298 " const char *path);\n"
27302 #: ../src/guestfs-actions.pod:3965
27304 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27305 "then it sets an extended attribute of the link itself."
27309 #: ../src/guestfs-actions.pod:3973
27310 msgid "guestfs_lstat"
27311 msgstr "guestfs_lstat"
27314 #: ../src/guestfs-actions.pod:3975
27317 " struct guestfs_stat *\n"
27318 " guestfs_lstat (guestfs_h *g,\n"
27319 " const char *path);\n"
27322 " struct guestfs_stat *\n"
27323 " guestfs_lstat (guestfs_h *g,\n"
27324 " const char *path);\n"
27328 #: ../src/guestfs-actions.pod:3981
27330 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27331 "link, then the link is stat-ed, not the file it refers to."
27335 #: ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:6762
27337 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27338 "error. I<The caller must call C<guestfs_free_stat> after use>."
27342 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766
27343 #: ../src/guestfs-actions.pod:6784 ../src/guestfs-actions.pod:7165
27344 msgid "(Added in 0.9.2)"
27345 msgstr "(Додано у 0.9.2)"
27348 #: ../src/guestfs-actions.pod:3993
27349 msgid "guestfs_lstatlist"
27350 msgstr "guestfs_lstatlist"
27353 #: ../src/guestfs-actions.pod:3995
27356 " struct guestfs_stat_list *\n"
27357 " guestfs_lstatlist (guestfs_h *g,\n"
27358 " const char *path,\n"
27359 " char *const *names);\n"
27362 " struct guestfs_stat_list *\n"
27363 " guestfs_lstatlist (guestfs_h *g,\n"
27364 " const char *path,\n"
27365 " char *const *names);\n"
27369 #: ../src/guestfs-actions.pod:4000
27371 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27372 "files, where all files are in the directory C<path>. C<names> is the list "
27373 "of files from this directory."
27377 #: ../src/guestfs-actions.pod:4009
27379 "This call is intended for programs that want to efficiently list a directory "
27380 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
27381 "for a similarly efficient call for getting extended attributes. Very long "
27382 "directory listings might cause the protocol message size to be exceeded, "
27383 "causing this call to fail. The caller must split up such requests into "
27384 "smaller groups of names."
27388 #: ../src/guestfs-actions.pod:4017
27390 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27391 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
27395 #: ../src/guestfs-actions.pod:4023
27396 msgid "guestfs_luks_add_key"
27397 msgstr "guestfs_luks_add_key"
27400 #: ../src/guestfs-actions.pod:4025
27404 " guestfs_luks_add_key (guestfs_h *g,\n"
27405 " const char *device,\n"
27406 " const char *key,\n"
27407 " const char *newkey,\n"
27412 " guestfs_luks_add_key (guestfs_h *g,\n"
27413 " const char *device,\n"
27414 " const char *key,\n"
27415 " const char *newkey,\n"
27420 #: ../src/guestfs-actions.pod:4037
27422 "Note that if C<keyslot> already contains a key, then this command will "
27423 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
27427 #: ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4083
27428 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4126
27429 #: ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4180
27431 "This function takes a key or passphrase parameter which could contain "
27432 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
27437 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087
27438 #: ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130
27439 msgid "(Added in 1.5.2)"
27440 msgstr "(Додано у 1.5.2)"
27443 #: ../src/guestfs-actions.pod:4049
27444 msgid "guestfs_luks_close"
27445 msgstr "guestfs_luks_close"
27448 #: ../src/guestfs-actions.pod:4051
27452 " guestfs_luks_close (guestfs_h *g,\n"
27453 " const char *device);\n"
27457 " guestfs_luks_close (guestfs_h *g,\n"
27458 " const char *device);\n"
27462 #: ../src/guestfs-actions.pod:4055
27464 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27465 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
27466 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27467 "underlying block device."
27471 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4165
27472 #: ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4234
27473 #: ../src/guestfs-actions.pod:4282
27474 msgid "(Added in 1.5.1)"
27475 msgstr "(Додано у 1.5.1)"
27478 #: ../src/guestfs-actions.pod:4065
27479 msgid "guestfs_luks_format"
27480 msgstr "guestfs_luks_format"
27483 #: ../src/guestfs-actions.pod:4067
27487 " guestfs_luks_format (guestfs_h *g,\n"
27488 " const char *device,\n"
27489 " const char *key,\n"
27494 " guestfs_luks_format (guestfs_h *g,\n"
27495 " const char *device,\n"
27496 " const char *key,\n"
27501 #: ../src/guestfs-actions.pod:4089
27502 msgid "guestfs_luks_format_cipher"
27503 msgstr "guestfs_luks_format_cipher"
27506 #: ../src/guestfs-actions.pod:4091
27510 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27511 " const char *device,\n"
27512 " const char *key,\n"
27514 " const char *cipher);\n"
27518 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27519 " const char *device,\n"
27520 " const char *key,\n"
27522 " const char *cipher);\n"
27526 #: ../src/guestfs-actions.pod:4098
27528 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27529 "set the C<cipher> used."
27533 #: ../src/guestfs-actions.pod:4112
27534 msgid "guestfs_luks_kill_slot"
27535 msgstr "guestfs_luks_kill_slot"
27538 #: ../src/guestfs-actions.pod:4114
27542 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27543 " const char *device,\n"
27544 " const char *key,\n"
27549 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27550 " const char *device,\n"
27551 " const char *key,\n"
27556 #: ../src/guestfs-actions.pod:4132
27557 msgid "guestfs_luks_open"
27558 msgstr "guestfs_luks_open"
27561 #: ../src/guestfs-actions.pod:4134
27565 " guestfs_luks_open (guestfs_h *g,\n"
27566 " const char *device,\n"
27567 " const char *key,\n"
27568 " const char *mapname);\n"
27572 " guestfs_luks_open (guestfs_h *g,\n"
27573 " const char *device,\n"
27574 " const char *key,\n"
27575 " const char *mapname);\n"
27579 #: ../src/guestfs-actions.pod:4152
27581 "If this block device contains LVM volume groups, then calling "
27582 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27587 #: ../src/guestfs-actions.pod:4156
27588 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27592 #: ../src/guestfs-actions.pod:4167
27593 msgid "guestfs_luks_open_ro"
27594 msgstr "guestfs_luks_open_ro"
27597 #: ../src/guestfs-actions.pod:4169
27601 " guestfs_luks_open_ro (guestfs_h *g,\n"
27602 " const char *device,\n"
27603 " const char *key,\n"
27604 " const char *mapname);\n"
27608 " guestfs_luks_open_ro (guestfs_h *g,\n"
27609 " const char *device,\n"
27610 " const char *key,\n"
27611 " const char *mapname);\n"
27615 #: ../src/guestfs-actions.pod:4175
27617 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27622 #: ../src/guestfs-actions.pod:4186
27623 msgid "guestfs_lvcreate"
27624 msgstr "guestfs_lvcreate"
27627 #: ../src/guestfs-actions.pod:4188
27631 " guestfs_lvcreate (guestfs_h *g,\n"
27632 " const char *logvol,\n"
27633 " const char *volgroup,\n"
27638 " guestfs_lvcreate (guestfs_h *g,\n"
27639 " const char *logvol,\n"
27640 " const char *volgroup,\n"
27645 #: ../src/guestfs-actions.pod:4201
27646 msgid "guestfs_lvm_canonical_lv_name"
27647 msgstr "guestfs_lvm_canonical_lv_name"
27650 #: ../src/guestfs-actions.pod:4203
27654 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27655 " const char *lvname);\n"
27659 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27660 " const char *lvname);\n"
27664 #: ../src/guestfs-actions.pod:4214
27665 msgid "See also C<guestfs_is_lv>."
27669 #: ../src/guestfs-actions.pod:4219
27670 msgid "(Added in 1.5.24)"
27671 msgstr "(Додано у 1.5.24)"
27674 #: ../src/guestfs-actions.pod:4221
27675 msgid "guestfs_lvm_clear_filter"
27676 msgstr "guestfs_lvm_clear_filter"
27679 #: ../src/guestfs-actions.pod:4223
27683 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27687 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27691 #: ../src/guestfs-actions.pod:4226
27693 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
27694 "see every block device."
27698 #: ../src/guestfs-actions.pod:4236
27699 msgid "guestfs_lvm_remove_all"
27700 msgstr "guestfs_lvm_remove_all"
27703 #: ../src/guestfs-actions.pod:4238
27707 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27711 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27715 #: ../src/guestfs-actions.pod:4251
27716 msgid "guestfs_lvm_set_filter"
27717 msgstr "guestfs_lvm_set_filter"
27720 #: ../src/guestfs-actions.pod:4253
27724 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27725 " char *const *devices);\n"
27729 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27730 " char *const *devices);\n"
27734 #: ../src/guestfs-actions.pod:4284
27735 msgid "guestfs_lvremove"
27736 msgstr "guestfs_lvremove"
27739 #: ../src/guestfs-actions.pod:4286
27743 " guestfs_lvremove (guestfs_h *g,\n"
27744 " const char *device);\n"
27748 " guestfs_lvremove (guestfs_h *g,\n"
27749 " const char *device);\n"
27753 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:5701
27754 #: ../src/guestfs-actions.pod:7535
27755 msgid "(Added in 1.0.13)"
27756 msgstr "(Додано у 1.0.13)"
27759 #: ../src/guestfs-actions.pod:4300
27760 msgid "guestfs_lvrename"
27761 msgstr "guestfs_lvrename"
27764 #: ../src/guestfs-actions.pod:4302
27768 " guestfs_lvrename (guestfs_h *g,\n"
27769 " const char *logvol,\n"
27770 " const char *newlogvol);\n"
27774 " guestfs_lvrename (guestfs_h *g,\n"
27775 " const char *logvol,\n"
27776 " const char *newlogvol);\n"
27780 #: ../src/guestfs-actions.pod:4311 ../src/guestfs-actions.pod:7548
27781 msgid "(Added in 1.0.83)"
27782 msgstr "(Додано у 1.0.83)"
27785 #: ../src/guestfs-actions.pod:4313
27786 msgid "guestfs_lvresize"
27787 msgstr "guestfs_lvresize"
27790 #: ../src/guestfs-actions.pod:4315
27794 " guestfs_lvresize (guestfs_h *g,\n"
27795 " const char *device,\n"
27800 " guestfs_lvresize (guestfs_h *g,\n"
27801 " const char *device,\n"
27806 #: ../src/guestfs-actions.pod:4328
27807 msgid "guestfs_lvresize_free"
27808 msgstr "guestfs_lvresize_free"
27811 #: ../src/guestfs-actions.pod:4330
27815 " guestfs_lvresize_free (guestfs_h *g,\n"
27816 " const char *lv,\n"
27821 " guestfs_lvresize_free (guestfs_h *g,\n"
27822 " const char *lv,\n"
27827 #: ../src/guestfs-actions.pod:4343
27828 msgid "(Added in 1.3.3)"
27829 msgstr "(Додано у 1.3.3)"
27832 #: ../src/guestfs-actions.pod:4345
27833 msgid "guestfs_lvs"
27834 msgstr "guestfs_lvs"
27837 #: ../src/guestfs-actions.pod:4347
27841 " guestfs_lvs (guestfs_h *g);\n"
27845 " guestfs_lvs (guestfs_h *g);\n"
27849 #: ../src/guestfs-actions.pod:4356
27850 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27854 #: ../src/guestfs-actions.pod:4364
27855 msgid "guestfs_lvs_full"
27856 msgstr "guestfs_lvs_full"
27859 #: ../src/guestfs-actions.pod:4366
27862 " struct guestfs_lvm_lv_list *\n"
27863 " guestfs_lvs_full (guestfs_h *g);\n"
27866 " struct guestfs_lvm_lv_list *\n"
27867 " guestfs_lvs_full (guestfs_h *g);\n"
27871 #: ../src/guestfs-actions.pod:4372
27873 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27874 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27878 #: ../src/guestfs-actions.pod:4378
27879 msgid "guestfs_lvuuid"
27880 msgstr "guestfs_lvuuid"
27883 #: ../src/guestfs-actions.pod:4380
27887 " guestfs_lvuuid (guestfs_h *g,\n"
27888 " const char *device);\n"
27892 " guestfs_lvuuid (guestfs_h *g,\n"
27893 " const char *device);\n"
27897 #: ../src/guestfs-actions.pod:4391
27898 msgid "guestfs_lxattrlist"
27899 msgstr "guestfs_lxattrlist"
27902 #: ../src/guestfs-actions.pod:4393
27905 " struct guestfs_xattr_list *\n"
27906 " guestfs_lxattrlist (guestfs_h *g,\n"
27907 " const char *path,\n"
27908 " char *const *names);\n"
27911 " struct guestfs_xattr_list *\n"
27912 " guestfs_lxattrlist (guestfs_h *g,\n"
27913 " const char *path,\n"
27914 " char *const *names);\n"
27918 #: ../src/guestfs-actions.pod:4412
27920 "This call is intended for programs that want to efficiently list a directory "
27921 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
27922 "a similarly efficient call for getting standard stats. Very long directory "
27923 "listings might cause the protocol message size to be exceeded, causing this "
27924 "call to fail. The caller must split up such requests into smaller groups of "
27929 #: ../src/guestfs-actions.pod:4426
27930 msgid "guestfs_mkdir"
27931 msgstr "guestfs_mkdir"
27934 #: ../src/guestfs-actions.pod:4428
27938 " guestfs_mkdir (guestfs_h *g,\n"
27939 " const char *path);\n"
27943 " guestfs_mkdir (guestfs_h *g,\n"
27944 " const char *path);\n"
27948 #: ../src/guestfs-actions.pod:4438
27949 msgid "guestfs_mkdir_mode"
27950 msgstr "guestfs_mkdir_mode"
27953 #: ../src/guestfs-actions.pod:4440
27957 " guestfs_mkdir_mode (guestfs_h *g,\n"
27958 " const char *path,\n"
27963 " guestfs_mkdir_mode (guestfs_h *g,\n"
27964 " const char *path,\n"
27969 #: ../src/guestfs-actions.pod:4452
27970 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27974 #: ../src/guestfs-actions.pod:4458
27975 msgid "guestfs_mkdir_p"
27976 msgstr "guestfs_mkdir_p"
27979 #: ../src/guestfs-actions.pod:4460
27983 " guestfs_mkdir_p (guestfs_h *g,\n"
27984 " const char *path);\n"
27988 " guestfs_mkdir_p (guestfs_h *g,\n"
27989 " const char *path);\n"
27993 #: ../src/guestfs-actions.pod:4471
27994 msgid "guestfs_mkdtemp"
27995 msgstr "guestfs_mkdtemp"
27998 #: ../src/guestfs-actions.pod:4473
28002 " guestfs_mkdtemp (guestfs_h *g,\n"
28003 " const char *template);\n"
28007 " guestfs_mkdtemp (guestfs_h *g,\n"
28008 " const char *template);\n"
28012 #: ../src/guestfs-actions.pod:4501
28013 msgid "guestfs_mke2fs_J"
28014 msgstr "guestfs_mke2fs_J"
28017 #: ../src/guestfs-actions.pod:4503
28021 " guestfs_mke2fs_J (guestfs_h *g,\n"
28022 " const char *fstype,\n"
28023 " int blocksize,\n"
28024 " const char *device,\n"
28025 " const char *journal);\n"
28029 " guestfs_mke2fs_J (guestfs_h *g,\n"
28030 " const char *fstype,\n"
28031 " int blocksize,\n"
28032 " const char *device,\n"
28033 " const char *journal);\n"
28037 #: ../src/guestfs-actions.pod:4516
28038 msgid "See also C<guestfs_mke2journal>."
28042 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4538
28043 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4572
28044 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4600
28045 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4936
28046 msgid "(Added in 1.0.68)"
28047 msgstr "(Додано у 1.0.68)"
28050 #: ../src/guestfs-actions.pod:4522
28051 msgid "guestfs_mke2fs_JL"
28052 msgstr "guestfs_mke2fs_JL"
28055 #: ../src/guestfs-actions.pod:4524
28059 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28060 " const char *fstype,\n"
28061 " int blocksize,\n"
28062 " const char *device,\n"
28063 " const char *label);\n"
28067 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28068 " const char *fstype,\n"
28069 " int blocksize,\n"
28070 " const char *device,\n"
28071 " const char *label);\n"
28075 #: ../src/guestfs-actions.pod:4534
28076 msgid "See also C<guestfs_mke2journal_L>."
28080 #: ../src/guestfs-actions.pod:4540
28081 msgid "guestfs_mke2fs_JU"
28082 msgstr "guestfs_mke2fs_JU"
28085 #: ../src/guestfs-actions.pod:4542
28089 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28090 " const char *fstype,\n"
28091 " int blocksize,\n"
28092 " const char *device,\n"
28093 " const char *uuid);\n"
28097 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28098 " const char *fstype,\n"
28099 " int blocksize,\n"
28100 " const char *device,\n"
28101 " const char *uuid);\n"
28105 #: ../src/guestfs-actions.pod:4552
28106 msgid "See also C<guestfs_mke2journal_U>."
28110 #: ../src/guestfs-actions.pod:4558
28111 msgid "guestfs_mke2journal"
28112 msgstr "guestfs_mke2journal"
28115 #: ../src/guestfs-actions.pod:4560
28119 " guestfs_mke2journal (guestfs_h *g,\n"
28120 " int blocksize,\n"
28121 " const char *device);\n"
28125 " guestfs_mke2journal (guestfs_h *g,\n"
28126 " int blocksize,\n"
28127 " const char *device);\n"
28131 #: ../src/guestfs-actions.pod:4574
28132 msgid "guestfs_mke2journal_L"
28133 msgstr "guestfs_mke2journal_L"
28136 #: ../src/guestfs-actions.pod:4576
28140 " guestfs_mke2journal_L (guestfs_h *g,\n"
28141 " int blocksize,\n"
28142 " const char *label,\n"
28143 " const char *device);\n"
28147 " guestfs_mke2journal_L (guestfs_h *g,\n"
28148 " int blocksize,\n"
28149 " const char *label,\n"
28150 " const char *device);\n"
28154 #: ../src/guestfs-actions.pod:4588
28155 msgid "guestfs_mke2journal_U"
28156 msgstr "guestfs_mke2journal_U"
28159 #: ../src/guestfs-actions.pod:4590
28163 " guestfs_mke2journal_U (guestfs_h *g,\n"
28164 " int blocksize,\n"
28165 " const char *uuid,\n"
28166 " const char *device);\n"
28170 " guestfs_mke2journal_U (guestfs_h *g,\n"
28171 " int blocksize,\n"
28172 " const char *uuid,\n"
28173 " const char *device);\n"
28177 #: ../src/guestfs-actions.pod:4602
28178 msgid "guestfs_mkfifo"
28179 msgstr "guestfs_mkfifo"
28182 #: ../src/guestfs-actions.pod:4604
28186 " guestfs_mkfifo (guestfs_h *g,\n"
28188 " const char *path);\n"
28192 " guestfs_mkfifo (guestfs_h *g,\n"
28194 " const char *path);\n"
28198 #: ../src/guestfs-actions.pod:4609
28200 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
28201 "is just a convenient wrapper around C<guestfs_mknod>."
28205 #: ../src/guestfs-actions.pod:4619
28206 msgid "guestfs_mkfs"
28207 msgstr "guestfs_mkfs"
28210 #: ../src/guestfs-actions.pod:4621
28214 " guestfs_mkfs (guestfs_h *g,\n"
28215 " const char *fstype,\n"
28216 " const char *device);\n"
28220 " guestfs_mkfs (guestfs_h *g,\n"
28221 " const char *fstype,\n"
28222 " const char *device);\n"
28226 #: ../src/guestfs-actions.pod:4634
28227 msgid "guestfs_mkfs_b"
28228 msgstr "guestfs_mkfs_b"
28231 #: ../src/guestfs-actions.pod:4636
28235 " guestfs_mkfs_b (guestfs_h *g,\n"
28236 " const char *fstype,\n"
28237 " int blocksize,\n"
28238 " const char *device);\n"
28242 " guestfs_mkfs_b (guestfs_h *g,\n"
28243 " const char *fstype,\n"
28244 " int blocksize,\n"
28245 " const char *device);\n"
28249 #: ../src/guestfs-actions.pod:4642
28251 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28252 "block size of the resulting filesystem. Supported block sizes depend on the "
28253 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28257 #: ../src/guestfs-actions.pod:4652
28259 "This function is deprecated. In new code, use the L</guestfs_mkfs_opts> "
28264 #: ../src/guestfs-actions.pod:4661
28265 msgid "guestfs_mkfs_opts"
28266 msgstr "guestfs_mkfs_opts"
28269 #: ../src/guestfs-actions.pod:4663
28273 " guestfs_mkfs_opts (guestfs_h *g,\n"
28274 " const char *fstype,\n"
28275 " const char *device,\n"
28280 " guestfs_mkfs_opts (guestfs_h *g,\n"
28281 " const char *fstype,\n"
28282 " const char *device,\n"
28287 #: ../src/guestfs-actions.pod:4674
28290 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28291 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28292 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28293 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28298 #: ../src/guestfs-actions.pod:4722
28299 msgid "(Added in 1.7.19)"
28300 msgstr "(Додано у 1.7.19)"
28303 #: ../src/guestfs-actions.pod:4724
28304 msgid "guestfs_mkfs_opts_va"
28305 msgstr "guestfs_mkfs_opts_va"
28308 #: ../src/guestfs-actions.pod:4726
28312 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28313 " const char *fstype,\n"
28314 " const char *device,\n"
28315 " va_list args);\n"
28319 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28320 " const char *fstype,\n"
28321 " const char *device,\n"
28322 " va_list args);\n"
28326 #: ../src/guestfs-actions.pod:4732
28327 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28331 #: ../src/guestfs-actions.pod:4736
28332 msgid "guestfs_mkfs_opts_argv"
28333 msgstr "guestfs_mkfs_opts_argv"
28336 #: ../src/guestfs-actions.pod:4738
28340 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28341 " const char *fstype,\n"
28342 " const char *device,\n"
28343 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28347 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28348 " const char *fstype,\n"
28349 " const char *device,\n"
28350 " const struct guestfs_mkfs_opts_argv *optargs);\n"
28354 #: ../src/guestfs-actions.pod:4744
28355 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28359 #: ../src/guestfs-actions.pod:4748
28360 msgid "guestfs_mkmountpoint"
28361 msgstr "guestfs_mkmountpoint"
28364 #: ../src/guestfs-actions.pod:4750
28368 " guestfs_mkmountpoint (guestfs_h *g,\n"
28369 " const char *exemptpath);\n"
28373 " guestfs_mkmountpoint (guestfs_h *g,\n"
28374 " const char *exemptpath);\n"
28378 #: ../src/guestfs-actions.pod:4754
28380 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28381 "that can be used to create extra mountpoints before mounting the first "
28386 #: ../src/guestfs-actions.pod:4778
28388 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
28389 "may get unexpected errors if you try to mix these calls. It is safest to "
28390 "manually unmount filesystems and remove mountpoints after use."
28394 #: ../src/guestfs-actions.pod:4782
28396 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28397 "first, so for this to work for manual mountpoints, you must ensure that the "
28398 "innermost mountpoints have the longest pathnames, as in the example code "
28403 #: ../src/guestfs-actions.pod:4789
28405 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28406 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28407 "can also trigger these issues."
28411 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5111
28412 #: ../src/guestfs-actions.pod:6121
28413 msgid "(Added in 1.0.62)"
28414 msgstr "(Додано у 1.0.62)"
28417 #: ../src/guestfs-actions.pod:4797
28418 msgid "guestfs_mknod"
28422 #: ../src/guestfs-actions.pod:4799
28426 " guestfs_mknod (guestfs_h *g,\n"
28430 " const char *path);\n"
28435 #: ../src/guestfs-actions.pod:4814
28437 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28438 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28439 "regular file). These constants are available in the standard Linux header "
28440 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28441 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28442 "the appropriate constant for you."
28446 #: ../src/guestfs-actions.pod:4828
28447 msgid "guestfs_mknod_b"
28451 #: ../src/guestfs-actions.pod:4830
28455 " guestfs_mknod_b (guestfs_h *g,\n"
28459 " const char *path);\n"
28464 #: ../src/guestfs-actions.pod:4837
28466 "This call creates a block device node called C<path> with mode C<mode> and "
28467 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28468 "wrapper around C<guestfs_mknod>."
28472 #: ../src/guestfs-actions.pod:4847
28473 msgid "guestfs_mknod_c"
28477 #: ../src/guestfs-actions.pod:4849
28481 " guestfs_mknod_c (guestfs_h *g,\n"
28485 " const char *path);\n"
28490 #: ../src/guestfs-actions.pod:4856
28492 "This call creates a char device node called C<path> with mode C<mode> and "
28493 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
28494 "wrapper around C<guestfs_mknod>."
28498 #: ../src/guestfs-actions.pod:4866
28499 msgid "guestfs_mkswap"
28503 #: ../src/guestfs-actions.pod:4868
28507 " guestfs_mkswap (guestfs_h *g,\n"
28508 " const char *device);\n"
28513 #: ../src/guestfs-actions.pod:4878
28514 msgid "guestfs_mkswap_L"
28518 #: ../src/guestfs-actions.pod:4880
28522 " guestfs_mkswap_L (guestfs_h *g,\n"
28523 " const char *label,\n"
28524 " const char *device);\n"
28529 #: ../src/guestfs-actions.pod:4895
28530 msgid "guestfs_mkswap_U"
28534 #: ../src/guestfs-actions.pod:4897
28538 " guestfs_mkswap_U (guestfs_h *g,\n"
28539 " const char *uuid,\n"
28540 " const char *device);\n"
28545 #: ../src/guestfs-actions.pod:4908
28546 msgid "guestfs_mkswap_file"
28550 #: ../src/guestfs-actions.pod:4910
28554 " guestfs_mkswap_file (guestfs_h *g,\n"
28555 " const char *path);\n"
28560 #: ../src/guestfs-actions.pod:4916
28562 "This command just writes a swap file signature to an existing file. To "
28563 "create the file itself, use something like C<guestfs_fallocate>."
28567 #: ../src/guestfs-actions.pod:4923
28568 msgid "guestfs_modprobe"
28572 #: ../src/guestfs-actions.pod:4925
28576 " guestfs_modprobe (guestfs_h *g,\n"
28577 " const char *modulename);\n"
28582 #: ../src/guestfs-actions.pod:4938
28583 msgid "guestfs_mount"
28587 #: ../src/guestfs-actions.pod:4940
28591 " guestfs_mount (guestfs_h *g,\n"
28592 " const char *device,\n"
28593 " const char *mountpoint);\n"
28598 #: ../src/guestfs-actions.pod:4959
28600 "B<Important note:> When you use this call, the filesystem options C<sync> "
28601 "and C<noatime> are set implicitly. This was originally done because we "
28602 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28603 "very large negative performance impact and negligible effect on "
28604 "reliability. Therefore we recommend that you avoid using C<guestfs_mount> "
28605 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28606 "(use an empty string for the first parameter if you don't want any options)."
28610 #: ../src/guestfs-actions.pod:4971
28612 "This function is deprecated. In new code, use the L</guestfs_mount_options> "
28617 #: ../src/guestfs-actions.pod:4980
28618 msgid "guestfs_mount_9p"
28622 #: ../src/guestfs-actions.pod:4982
28626 " guestfs_mount_9p (guestfs_h *g,\n"
28627 " const char *mounttag,\n"
28628 " const char *mountpoint,\n"
28634 #: ../src/guestfs-actions.pod:4993
28637 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28642 #: ../src/guestfs-actions.pod:5006
28643 msgid "guestfs_mount_9p_va"
28647 #: ../src/guestfs-actions.pod:5008
28651 " guestfs_mount_9p_va (guestfs_h *g,\n"
28652 " const char *mounttag,\n"
28653 " const char *mountpoint,\n"
28654 " va_list args);\n"
28659 #: ../src/guestfs-actions.pod:5014
28660 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28664 #: ../src/guestfs-actions.pod:5018
28665 msgid "guestfs_mount_9p_argv"
28669 #: ../src/guestfs-actions.pod:5020
28673 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28674 " const char *mounttag,\n"
28675 " const char *mountpoint,\n"
28676 " const struct guestfs_mount_9p_argv *optargs);\n"
28681 #: ../src/guestfs-actions.pod:5026
28682 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28686 #: ../src/guestfs-actions.pod:5030
28687 msgid "guestfs_mount_loop"
28691 #: ../src/guestfs-actions.pod:5032
28695 " guestfs_mount_loop (guestfs_h *g,\n"
28696 " const char *file,\n"
28697 " const char *mountpoint);\n"
28702 #: ../src/guestfs-actions.pod:5045
28703 msgid "guestfs_mount_options"
28707 #: ../src/guestfs-actions.pod:5047
28711 " guestfs_mount_options (guestfs_h *g,\n"
28712 " const char *options,\n"
28713 " const char *device,\n"
28714 " const char *mountpoint);\n"
28719 #: ../src/guestfs-actions.pod:5053
28721 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28722 "the mount options as for the L<mount(8)> I<-o> flag."
28726 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5077
28727 #: ../src/guestfs-actions.pod:5094
28728 msgid "(Added in 1.0.10)"
28732 #: ../src/guestfs-actions.pod:5065
28733 msgid "guestfs_mount_ro"
28737 #: ../src/guestfs-actions.pod:5067
28741 " guestfs_mount_ro (guestfs_h *g,\n"
28742 " const char *device,\n"
28743 " const char *mountpoint);\n"
28748 #: ../src/guestfs-actions.pod:5072
28750 "This is the same as the C<guestfs_mount> command, but it mounts the "
28751 "filesystem with the read-only (I<-o ro>) flag."
28755 #: ../src/guestfs-actions.pod:5079
28756 msgid "guestfs_mount_vfs"
28760 #: ../src/guestfs-actions.pod:5081
28764 " guestfs_mount_vfs (guestfs_h *g,\n"
28765 " const char *options,\n"
28766 " const char *vfstype,\n"
28767 " const char *device,\n"
28768 " const char *mountpoint);\n"
28773 #: ../src/guestfs-actions.pod:5088
28775 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28776 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28781 #: ../src/guestfs-actions.pod:5096
28782 msgid "guestfs_mountpoints"
28786 #: ../src/guestfs-actions.pod:5098
28790 " guestfs_mountpoints (guestfs_h *g);\n"
28795 #: ../src/guestfs-actions.pod:5101
28797 "This call is similar to C<guestfs_mounts>. That call returns a list of "
28798 "devices. This one returns a hash table (map) of device name to directory "
28799 "where the device is mounted."
28803 #: ../src/guestfs-actions.pod:5113
28804 msgid "guestfs_mounts"
28808 #: ../src/guestfs-actions.pod:5115
28812 " guestfs_mounts (guestfs_h *g);\n"
28817 #: ../src/guestfs-actions.pod:5123
28818 msgid "See also: C<guestfs_mountpoints>"
28822 #: ../src/guestfs-actions.pod:5131
28827 #: ../src/guestfs-actions.pod:5133
28831 " guestfs_mv (guestfs_h *g,\n"
28832 " const char *src,\n"
28833 " const char *dest);\n"
28838 #: ../src/guestfs-actions.pod:5145
28839 msgid "guestfs_ntfs_3g_probe"
28843 #: ../src/guestfs-actions.pod:5147
28847 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28849 " const char *device);\n"
28854 #: ../src/guestfs-actions.pod:5166
28855 msgid "(Added in 1.0.43)"
28859 #: ../src/guestfs-actions.pod:5168
28860 msgid "guestfs_ntfsresize"
28864 #: ../src/guestfs-actions.pod:5170
28868 " guestfs_ntfsresize (guestfs_h *g,\n"
28869 " const char *device);\n"
28874 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5279
28876 "This function is deprecated. In new code, use the L</"
28877 "guestfs_ntfsresize_opts> call instead."
28881 #: ../src/guestfs-actions.pod:5198
28882 msgid "guestfs_ntfsresize_opts"
28886 #: ../src/guestfs-actions.pod:5200
28890 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28891 " const char *device,\n"
28897 #: ../src/guestfs-actions.pod:5210
28900 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28901 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28906 #: ../src/guestfs-actions.pod:5230
28908 "After the resize operation, the filesystem is always marked as requiring a "
28909 "consistency check (for safety). You have to boot into Windows to perform "
28910 "this check and clear this condition. If you I<don't> set the C<force> "
28911 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28912 "times on a single filesystem without booting into Windows between each "
28917 #: ../src/guestfs-actions.pod:5245
28918 msgid "guestfs_ntfsresize_opts_va"
28922 #: ../src/guestfs-actions.pod:5247
28926 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28927 " const char *device,\n"
28928 " va_list args);\n"
28933 #: ../src/guestfs-actions.pod:5252
28934 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28938 #: ../src/guestfs-actions.pod:5256
28939 msgid "guestfs_ntfsresize_opts_argv"
28943 #: ../src/guestfs-actions.pod:5258
28947 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28948 " const char *device,\n"
28949 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28954 #: ../src/guestfs-actions.pod:5263
28955 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28959 #: ../src/guestfs-actions.pod:5267
28960 msgid "guestfs_ntfsresize_size"
28964 #: ../src/guestfs-actions.pod:5269
28968 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28969 " const char *device,\n"
28970 " int64_t size);\n"
28975 #: ../src/guestfs-actions.pod:5274
28977 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28978 "to specify the new size (in bytes) explicitly."
28982 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5728
28983 #: ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:6069
28984 #: ../src/guestfs-actions.pod:7692
28985 msgid "(Added in 1.3.14)"
28989 #: ../src/guestfs-actions.pod:5288
28990 msgid "guestfs_part_add"
28994 #: ../src/guestfs-actions.pod:5290
28998 " guestfs_part_add (guestfs_h *g,\n"
28999 " const char *device,\n"
29000 " const char *prlogex,\n"
29001 " int64_t startsect,\n"
29002 " int64_t endsect);\n"
29007 #: ../src/guestfs-actions.pod:5297
29009 "This command adds a partition to C<device>. If there is no partition table "
29010 "on the device, call C<guestfs_part_init> first."
29014 #: ../src/guestfs-actions.pod:5309
29016 "Creating a partition which covers the whole disk is not so easy. Use "
29017 "C<guestfs_part_disk> to do that."
29021 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5352
29022 #: ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5489
29023 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546
29024 #: ../src/guestfs-actions.pod:5586
29025 msgid "(Added in 1.0.78)"
29029 #: ../src/guestfs-actions.pod:5316
29030 msgid "guestfs_part_del"
29034 #: ../src/guestfs-actions.pod:5318
29038 " guestfs_part_del (guestfs_h *g,\n"
29039 " const char *device,\n"
29045 #: ../src/guestfs-actions.pod:5333
29046 msgid "guestfs_part_disk"
29050 #: ../src/guestfs-actions.pod:5335
29054 " guestfs_part_disk (guestfs_h *g,\n"
29055 " const char *device,\n"
29056 " const char *parttype);\n"
29061 #: ../src/guestfs-actions.pod:5340
29063 "This command is simply a combination of C<guestfs_part_init> followed by "
29064 "C<guestfs_part_add> to create a single primary partition covering the whole "
29069 #: ../src/guestfs-actions.pod:5344
29071 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29072 "possible values are described in C<guestfs_part_init>."
29076 #: ../src/guestfs-actions.pod:5354
29077 msgid "guestfs_part_get_bootable"
29081 #: ../src/guestfs-actions.pod:5356
29085 " guestfs_part_get_bootable (guestfs_h *g,\n"
29086 " const char *device,\n"
29092 #: ../src/guestfs-actions.pod:5364
29093 msgid "See also C<guestfs_part_set_bootable>."
29097 #: ../src/guestfs-actions.pod:5370
29098 msgid "guestfs_part_get_mbr_id"
29102 #: ../src/guestfs-actions.pod:5372
29106 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29107 " const char *device,\n"
29113 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5562
29115 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
29116 "undefined results for other partition table types (see "
29117 "C<guestfs_part_get_parttype>)."
29121 #: ../src/guestfs-actions.pod:5388
29122 msgid "guestfs_part_get_parttype"
29126 #: ../src/guestfs-actions.pod:5390
29130 " guestfs_part_get_parttype (guestfs_h *g,\n"
29131 " const char *device);\n"
29136 #: ../src/guestfs-actions.pod:5397
29138 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29139 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
29140 "possible, although unusual. See C<guestfs_part_init> for a full list."
29144 #: ../src/guestfs-actions.pod:5407
29145 msgid "guestfs_part_init"
29149 #: ../src/guestfs-actions.pod:5409
29153 " guestfs_part_init (guestfs_h *g,\n"
29154 " const char *device,\n"
29155 " const char *parttype);\n"
29160 #: ../src/guestfs-actions.pod:5418
29162 "Initially there are no partitions. Following this, you should call "
29163 "C<guestfs_part_add> for each partition required."
29167 #: ../src/guestfs-actions.pod:5491
29168 msgid "guestfs_part_list"
29169 msgstr "guestfs_part_list"
29172 #: ../src/guestfs-actions.pod:5493
29175 " struct guestfs_partition_list *\n"
29176 " guestfs_part_list (guestfs_h *g,\n"
29177 " const char *device);\n"
29180 " struct guestfs_partition_list *\n"
29181 " guestfs_part_list (guestfs_h *g,\n"
29182 " const char *device);\n"
29186 #: ../src/guestfs-actions.pod:5510
29188 "Start of the partition I<in bytes>. To get sectors you have to divide by "
29189 "the device's sector size, see C<guestfs_blockdev_getss>."
29193 #: ../src/guestfs-actions.pod:5523
29195 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29196 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
29201 #: ../src/guestfs-actions.pod:5529
29202 msgid "guestfs_part_set_bootable"
29206 #: ../src/guestfs-actions.pod:5531
29210 " guestfs_part_set_bootable (guestfs_h *g,\n"
29211 " const char *device,\n"
29213 " int bootable);\n"
29218 #: ../src/guestfs-actions.pod:5548
29219 msgid "guestfs_part_set_mbr_id"
29223 #: ../src/guestfs-actions.pod:5550
29227 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29228 " const char *device,\n"
29235 #: ../src/guestfs-actions.pod:5570
29236 msgid "guestfs_part_set_name"
29240 #: ../src/guestfs-actions.pod:5572
29244 " guestfs_part_set_name (guestfs_h *g,\n"
29245 " const char *device,\n"
29247 " const char *name);\n"
29252 #: ../src/guestfs-actions.pod:5588
29253 msgid "guestfs_part_to_dev"
29257 #: ../src/guestfs-actions.pod:5590
29261 " guestfs_part_to_dev (guestfs_h *g,\n"
29262 " const char *partition);\n"
29267 #: ../src/guestfs-actions.pod:5598
29269 "The named partition must exist, for example as a string returned from "
29270 "C<guestfs_list_partitions>."
29274 #: ../src/guestfs-actions.pod:5606
29275 msgid "guestfs_ping_daemon"
29279 #: ../src/guestfs-actions.pod:5608
29283 " guestfs_ping_daemon (guestfs_h *g);\n"
29288 #: ../src/guestfs-actions.pod:5620
29289 msgid "guestfs_pread"
29293 #: ../src/guestfs-actions.pod:5622
29297 " guestfs_pread (guestfs_h *g,\n"
29298 " const char *path,\n"
29300 " int64_t offset,\n"
29301 " size_t *size_r);\n"
29306 #: ../src/guestfs-actions.pod:5635
29307 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29311 #: ../src/guestfs-actions.pod:5646
29312 msgid "guestfs_pread_device"
29316 #: ../src/guestfs-actions.pod:5648
29320 " guestfs_pread_device (guestfs_h *g,\n"
29321 " const char *device,\n"
29323 " int64_t offset,\n"
29324 " size_t *size_r);\n"
29329 #: ../src/guestfs-actions.pod:5661
29330 msgid "See also C<guestfs_pread>."
29334 #: ../src/guestfs-actions.pod:5670
29335 msgid "(Added in 1.5.21)"
29339 #: ../src/guestfs-actions.pod:5672
29340 msgid "guestfs_pvcreate"
29344 #: ../src/guestfs-actions.pod:5674
29348 " guestfs_pvcreate (guestfs_h *g,\n"
29349 " const char *device);\n"
29354 #: ../src/guestfs-actions.pod:5686
29355 msgid "guestfs_pvremove"
29359 #: ../src/guestfs-actions.pod:5688
29363 " guestfs_pvremove (guestfs_h *g,\n"
29364 " const char *device);\n"
29369 #: ../src/guestfs-actions.pod:5703
29370 msgid "guestfs_pvresize"
29374 #: ../src/guestfs-actions.pod:5705
29378 " guestfs_pvresize (guestfs_h *g,\n"
29379 " const char *device);\n"
29384 #: ../src/guestfs-actions.pod:5716
29385 msgid "guestfs_pvresize_size"
29389 #: ../src/guestfs-actions.pod:5718
29393 " guestfs_pvresize_size (guestfs_h *g,\n"
29394 " const char *device,\n"
29395 " int64_t size);\n"
29400 #: ../src/guestfs-actions.pod:5723
29402 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29403 "specify the new size (in bytes) explicitly."
29407 #: ../src/guestfs-actions.pod:5730
29408 msgid "guestfs_pvs"
29412 #: ../src/guestfs-actions.pod:5732
29416 " guestfs_pvs (guestfs_h *g);\n"
29421 #: ../src/guestfs-actions.pod:5741
29422 msgid "See also C<guestfs_pvs_full>."
29426 #: ../src/guestfs-actions.pod:5749
29427 msgid "guestfs_pvs_full"
29431 #: ../src/guestfs-actions.pod:5751
29434 " struct guestfs_lvm_pv_list *\n"
29435 " guestfs_pvs_full (guestfs_h *g);\n"
29440 #: ../src/guestfs-actions.pod:5757
29442 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29443 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29447 #: ../src/guestfs-actions.pod:5763
29448 msgid "guestfs_pvuuid"
29452 #: ../src/guestfs-actions.pod:5765
29456 " guestfs_pvuuid (guestfs_h *g,\n"
29457 " const char *device);\n"
29462 #: ../src/guestfs-actions.pod:5776
29463 msgid "guestfs_pwrite"
29467 #: ../src/guestfs-actions.pod:5778
29471 " guestfs_pwrite (guestfs_h *g,\n"
29472 " const char *path,\n"
29473 " const char *content,\n"
29474 " size_t content_size,\n"
29475 " int64_t offset);\n"
29480 #: ../src/guestfs-actions.pod:5794
29481 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29485 #: ../src/guestfs-actions.pod:5803
29486 msgid "guestfs_pwrite_device"
29490 #: ../src/guestfs-actions.pod:5805
29494 " guestfs_pwrite_device (guestfs_h *g,\n"
29495 " const char *device,\n"
29496 " const char *content,\n"
29497 " size_t content_size,\n"
29498 " int64_t offset);\n"
29503 #: ../src/guestfs-actions.pod:5820
29504 msgid "See also C<guestfs_pwrite>."
29508 #: ../src/guestfs-actions.pod:5827
29509 msgid "(Added in 1.5.20)"
29513 #: ../src/guestfs-actions.pod:5829
29514 msgid "guestfs_read_file"
29518 #: ../src/guestfs-actions.pod:5831
29522 " guestfs_read_file (guestfs_h *g,\n"
29523 " const char *path,\n"
29524 " size_t *size_r);\n"
29529 #: ../src/guestfs-actions.pod:5839
29531 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29532 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
29533 "function is limited in the total size of file that can be handled."
29537 #: ../src/guestfs-actions.pod:5851
29538 msgid "(Added in 1.0.63)"
29542 #: ../src/guestfs-actions.pod:5853
29543 msgid "guestfs_read_lines"
29547 #: ../src/guestfs-actions.pod:5855
29551 " guestfs_read_lines (guestfs_h *g,\n"
29552 " const char *path);\n"
29557 #: ../src/guestfs-actions.pod:5864
29559 "Note that this function cannot correctly handle binary files (specifically, "
29560 "files containing C<\\0> character which is treated as end of line). For "
29561 "those you need to use the C<guestfs_read_file> function which has a more "
29562 "complex interface."
29566 #: ../src/guestfs-actions.pod:5875
29567 msgid "guestfs_readdir"
29571 #: ../src/guestfs-actions.pod:5877
29574 " struct guestfs_dirent_list *\n"
29575 " guestfs_readdir (guestfs_h *g,\n"
29576 " const char *dir);\n"
29581 #: ../src/guestfs-actions.pod:5931
29583 "This function is primarily intended for use by programs. To get a simple "
29584 "list of names, use C<guestfs_ls>. To get a printable directory for human "
29585 "consumption, use C<guestfs_ll>."
29589 #: ../src/guestfs-actions.pod:5935
29591 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29592 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
29596 #: ../src/guestfs-actions.pod:5941
29597 msgid "guestfs_readlink"
29601 #: ../src/guestfs-actions.pod:5943
29605 " guestfs_readlink (guestfs_h *g,\n"
29606 " const char *path);\n"
29611 #: ../src/guestfs-actions.pod:5954
29612 msgid "guestfs_readlinklist"
29616 #: ../src/guestfs-actions.pod:5956
29620 " guestfs_readlinklist (guestfs_h *g,\n"
29621 " const char *path,\n"
29622 " char *const *names);\n"
29627 #: ../src/guestfs-actions.pod:5989
29628 msgid "guestfs_realpath"
29632 #: ../src/guestfs-actions.pod:5991
29636 " guestfs_realpath (guestfs_h *g,\n"
29637 " const char *path);\n"
29642 #: ../src/guestfs-actions.pod:6003
29643 msgid "guestfs_removexattr"
29647 #: ../src/guestfs-actions.pod:6005
29651 " guestfs_removexattr (guestfs_h *g,\n"
29652 " const char *xattr,\n"
29653 " const char *path);\n"
29658 #: ../src/guestfs-actions.pod:6013
29659 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29663 #: ../src/guestfs-actions.pod:6019
29664 msgid "guestfs_resize2fs"
29668 #: ../src/guestfs-actions.pod:6021
29672 " guestfs_resize2fs (guestfs_h *g,\n"
29673 " const char *device);\n"
29678 #: ../src/guestfs-actions.pod:6028
29680 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29681 "C<device> before calling this command. For unknown reasons C<resize2fs> "
29682 "sometimes gives an error about this and sometimes not. In any case, it is "
29683 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29687 #: ../src/guestfs-actions.pod:6038
29688 msgid "guestfs_resize2fs_M"
29692 #: ../src/guestfs-actions.pod:6040
29696 " guestfs_resize2fs_M (guestfs_h *g,\n"
29697 " const char *device);\n"
29702 #: ../src/guestfs-actions.pod:6044
29704 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29705 "resized to its minimum size. This works like the I<-M> option to the "
29706 "C<resize2fs> command."
29710 #: ../src/guestfs-actions.pod:6048
29712 "To get the resulting size of the filesystem you should call "
29713 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
29714 "These two numbers, multiplied together, give the resulting size of the "
29715 "minimal filesystem in bytes."
29719 #: ../src/guestfs-actions.pod:6057
29720 msgid "guestfs_resize2fs_size"
29724 #: ../src/guestfs-actions.pod:6059
29728 " guestfs_resize2fs_size (guestfs_h *g,\n"
29729 " const char *device,\n"
29730 " int64_t size);\n"
29735 #: ../src/guestfs-actions.pod:6064
29737 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29738 "to specify the new size (in bytes) explicitly."
29742 #: ../src/guestfs-actions.pod:6071
29747 #: ../src/guestfs-actions.pod:6073
29751 " guestfs_rm (guestfs_h *g,\n"
29752 " const char *path);\n"
29757 #: ../src/guestfs-actions.pod:6083
29758 msgid "guestfs_rm_rf"
29762 #: ../src/guestfs-actions.pod:6085
29766 " guestfs_rm_rf (guestfs_h *g,\n"
29767 " const char *path);\n"
29772 #: ../src/guestfs-actions.pod:6097
29773 msgid "guestfs_rmdir"
29777 #: ../src/guestfs-actions.pod:6099
29781 " guestfs_rmdir (guestfs_h *g,\n"
29782 " const char *path);\n"
29787 #: ../src/guestfs-actions.pod:6109
29788 msgid "guestfs_rmmountpoint"
29792 #: ../src/guestfs-actions.pod:6111
29796 " guestfs_rmmountpoint (guestfs_h *g,\n"
29797 " const char *exemptpath);\n"
29802 #: ../src/guestfs-actions.pod:6115
29804 "This calls removes a mountpoint that was previously created with "
29805 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
29809 #: ../src/guestfs-actions.pod:6123
29810 msgid "guestfs_scrub_device"
29814 #: ../src/guestfs-actions.pod:6125
29818 " guestfs_scrub_device (guestfs_h *g,\n"
29819 " const char *device);\n"
29824 #: ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6158
29825 #: ../src/guestfs-actions.pod:6177
29826 msgid "(Added in 1.0.52)"
29830 #: ../src/guestfs-actions.pod:6142
29831 msgid "guestfs_scrub_file"
29835 #: ../src/guestfs-actions.pod:6144
29839 " guestfs_scrub_file (guestfs_h *g,\n"
29840 " const char *file);\n"
29845 #: ../src/guestfs-actions.pod:6160
29846 msgid "guestfs_scrub_freespace"
29850 #: ../src/guestfs-actions.pod:6162
29854 " guestfs_scrub_freespace (guestfs_h *g,\n"
29855 " const char *dir);\n"
29860 #: ../src/guestfs-actions.pod:6166
29862 "This command creates the directory C<dir> and then fills it with files until "
29863 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29864 "and deletes them. The intention is to scrub any free space on the partition "
29865 "containing C<dir>."
29869 #: ../src/guestfs-actions.pod:6179
29870 msgid "guestfs_set_append"
29874 #: ../src/guestfs-actions.pod:6181
29878 " guestfs_set_append (guestfs_h *g,\n"
29879 " const char *append);\n"
29884 #: ../src/guestfs-actions.pod:6198
29885 msgid "guestfs_set_attach_method"
29889 #: ../src/guestfs-actions.pod:6200
29893 " guestfs_set_attach_method (guestfs_h *g,\n"
29894 " const char *attachmethod);\n"
29899 #: ../src/guestfs-actions.pod:6228
29900 msgid "guestfs_set_autosync"
29904 #: ../src/guestfs-actions.pod:6230
29908 " guestfs_set_autosync (guestfs_h *g,\n"
29909 " int autosync);\n"
29914 #: ../src/guestfs-actions.pod:6246
29915 msgid "guestfs_set_direct"
29919 #: ../src/guestfs-actions.pod:6248
29923 " guestfs_set_direct (guestfs_h *g,\n"
29929 #: ../src/guestfs-actions.pod:6256
29931 "One consequence of this is that log messages aren't caught by the library "
29932 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29937 #: ../src/guestfs-actions.pod:6269
29938 msgid "guestfs_set_e2label"
29942 #: ../src/guestfs-actions.pod:6271
29946 " guestfs_set_e2label (guestfs_h *g,\n"
29947 " const char *device,\n"
29948 " const char *label);\n"
29953 #: ../src/guestfs-actions.pod:6280
29955 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29956 "the existing label on a filesystem."
29960 #: ../src/guestfs-actions.pod:6287
29961 msgid "guestfs_set_e2uuid"
29965 #: ../src/guestfs-actions.pod:6289
29969 " guestfs_set_e2uuid (guestfs_h *g,\n"
29970 " const char *device,\n"
29971 " const char *uuid);\n"
29976 #: ../src/guestfs-actions.pod:6299
29978 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29979 "the existing UUID of a filesystem."
29983 #: ../src/guestfs-actions.pod:6306
29984 msgid "guestfs_set_memsize"
29988 #: ../src/guestfs-actions.pod:6308
29992 " guestfs_set_memsize (guestfs_h *g,\n"
29998 #: ../src/guestfs-actions.pod:6312
30000 "This sets the memory size in megabytes allocated to the qemu subprocess. "
30001 "This only has any effect if called before C<guestfs_launch>."
30005 #: ../src/guestfs-actions.pod:6327
30006 msgid "guestfs_set_network"
30010 #: ../src/guestfs-actions.pod:6329
30014 " guestfs_set_network (guestfs_h *g,\n"
30020 #: ../src/guestfs-actions.pod:6339
30022 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30027 #: ../src/guestfs-actions.pod:6346
30028 msgid "guestfs_set_path"
30032 #: ../src/guestfs-actions.pod:6348
30036 " guestfs_set_path (guestfs_h *g,\n"
30037 " const char *searchpath);\n"
30042 #: ../src/guestfs-actions.pod:6363
30043 msgid "guestfs_set_pgroup"
30047 #: ../src/guestfs-actions.pod:6365
30051 " guestfs_set_pgroup (guestfs_h *g,\n"
30057 #: ../src/guestfs-actions.pod:6382
30058 msgid "guestfs_set_qemu"
30062 #: ../src/guestfs-actions.pod:6384
30066 " guestfs_set_qemu (guestfs_h *g,\n"
30067 " const char *qemu);\n"
30072 #: ../src/guestfs-actions.pod:6410
30073 msgid "guestfs_set_recovery_proc"
30077 #: ../src/guestfs-actions.pod:6412
30081 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30082 " int recoveryproc);\n"
30087 #: ../src/guestfs-actions.pod:6416
30089 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30090 "not create a recovery process. The purpose of the recovery process is to "
30091 "stop runaway qemu processes in the case where the main program aborts "
30096 #: ../src/guestfs-actions.pod:6421
30098 "This only has any effect if called before C<guestfs_launch>, and the default "
30103 #: ../src/guestfs-actions.pod:6434
30104 msgid "guestfs_set_selinux"
30108 #: ../src/guestfs-actions.pod:6436
30112 " guestfs_set_selinux (guestfs_h *g,\n"
30118 #: ../src/guestfs-actions.pod:6453
30119 msgid "guestfs_set_trace"
30123 #: ../src/guestfs-actions.pod:6455
30127 " guestfs_set_trace (guestfs_h *g,\n"
30133 #: ../src/guestfs-actions.pod:6469
30135 "Trace messages are normally sent to C<stderr>, unless you register a "
30136 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30140 #: ../src/guestfs-actions.pod:6477
30141 msgid "guestfs_set_verbose"
30145 #: ../src/guestfs-actions.pod:6479
30149 " guestfs_set_verbose (guestfs_h *g,\n"
30155 #: ../src/guestfs-actions.pod:6488
30157 "Verbose messages are normally sent to C<stderr>, unless you register a "
30158 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30162 #: ../src/guestfs-actions.pod:6496
30163 msgid "guestfs_setcon"
30167 #: ../src/guestfs-actions.pod:6498
30171 " guestfs_setcon (guestfs_h *g,\n"
30172 " const char *context);\n"
30177 #: ../src/guestfs-actions.pod:6511
30178 msgid "guestfs_setxattr"
30182 #: ../src/guestfs-actions.pod:6513
30186 " guestfs_setxattr (guestfs_h *g,\n"
30187 " const char *xattr,\n"
30188 " const char *val,\n"
30190 " const char *path);\n"
30195 #: ../src/guestfs-actions.pod:6524
30196 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30200 #: ../src/guestfs-actions.pod:6530
30201 msgid "guestfs_sfdisk"
30205 #: ../src/guestfs-actions.pod:6532
30209 " guestfs_sfdisk (guestfs_h *g,\n"
30210 " const char *device,\n"
30214 " char *const *lines);\n"
30219 #: ../src/guestfs-actions.pod:6560
30221 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30225 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6598
30226 #: ../src/guestfs-actions.pod:6631
30228 "This function is deprecated. In new code, use the L</guestfs_part_add> call "
30233 #: ../src/guestfs-actions.pod:6577
30234 msgid "guestfs_sfdiskM"
30238 #: ../src/guestfs-actions.pod:6579
30242 " guestfs_sfdiskM (guestfs_h *g,\n"
30243 " const char *device,\n"
30244 " char *const *lines);\n"
30249 #: ../src/guestfs-actions.pod:6584
30251 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30252 "partition sizes are specified in megabytes only (rounded to the nearest "
30253 "cylinder) and you don't need to specify the cyls, heads and sectors "
30254 "parameters which were rarely if ever used anyway."
30258 #: ../src/guestfs-actions.pod:6590
30260 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30261 "C<guestfs_part_disk>"
30265 #: ../src/guestfs-actions.pod:6607
30266 msgid "guestfs_sfdisk_N"
30270 #: ../src/guestfs-actions.pod:6609
30274 " guestfs_sfdisk_N (guestfs_h *g,\n"
30275 " const char *device,\n"
30280 " const char *line);\n"
30285 #: ../src/guestfs-actions.pod:6621
30287 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
30288 "for the cyls/heads/sectors parameters."
30292 #: ../src/guestfs-actions.pod:6624
30293 msgid "See also: C<guestfs_part_add>"
30297 #: ../src/guestfs-actions.pod:6640
30298 msgid "guestfs_sfdisk_disk_geometry"
30302 #: ../src/guestfs-actions.pod:6642
30306 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30307 " const char *device);\n"
30312 #: ../src/guestfs-actions.pod:6646
30314 "This displays the disk geometry of C<device> read from the partition table. "
30315 "Especially in the case where the underlying block device has been resized, "
30316 "this can be different from the kernel's idea of the geometry (see "
30317 "C<guestfs_sfdisk_kernel_geometry>)."
30321 #: ../src/guestfs-actions.pod:6659
30322 msgid "guestfs_sfdisk_kernel_geometry"
30326 #: ../src/guestfs-actions.pod:6661
30330 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30331 " const char *device);\n"
30336 #: ../src/guestfs-actions.pod:6675
30337 msgid "guestfs_sfdisk_l"
30341 #: ../src/guestfs-actions.pod:6677
30345 " guestfs_sfdisk_l (guestfs_h *g,\n"
30346 " const char *device);\n"
30351 #: ../src/guestfs-actions.pod:6685
30352 msgid "See also: C<guestfs_part_list>"
30356 #: ../src/guestfs-actions.pod:6690
30358 "This function is deprecated. In new code, use the L</guestfs_part_list> "
30363 #: ../src/guestfs-actions.pod:6699
30368 #: ../src/guestfs-actions.pod:6701
30372 " guestfs_sh (guestfs_h *g,\n"
30373 " const char *command);\n"
30378 #: ../src/guestfs-actions.pod:6708
30379 msgid "This is like C<guestfs_command>, but passes the command to:"
30383 #: ../src/guestfs-actions.pod:6716
30384 msgid "All the provisos about C<guestfs_command> apply to this call."
30388 #: ../src/guestfs-actions.pod:6723
30389 msgid "guestfs_sh_lines"
30393 #: ../src/guestfs-actions.pod:6725
30397 " guestfs_sh_lines (guestfs_h *g,\n"
30398 " const char *command);\n"
30403 #: ../src/guestfs-actions.pod:6729
30405 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30410 #: ../src/guestfs-actions.pod:6732
30411 msgid "See also: C<guestfs_command_lines>"
30415 #: ../src/guestfs-actions.pod:6740
30416 msgid "guestfs_sleep"
30420 #: ../src/guestfs-actions.pod:6742
30424 " guestfs_sleep (guestfs_h *g,\n"
30430 #: ../src/guestfs-actions.pod:6750
30431 msgid "(Added in 1.0.41)"
30435 #: ../src/guestfs-actions.pod:6752 ../src/guestfs-structs.pod:109
30436 msgid "guestfs_stat"
30440 #: ../src/guestfs-actions.pod:6754
30443 " struct guestfs_stat *\n"
30444 " guestfs_stat (guestfs_h *g,\n"
30445 " const char *path);\n"
30450 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-structs.pod:135
30451 msgid "guestfs_statvfs"
30455 #: ../src/guestfs-actions.pod:6770
30458 " struct guestfs_statvfs *\n"
30459 " guestfs_statvfs (guestfs_h *g,\n"
30460 " const char *path);\n"
30465 #: ../src/guestfs-actions.pod:6780
30467 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30468 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
30472 #: ../src/guestfs-actions.pod:6786
30473 msgid "guestfs_strings"
30477 #: ../src/guestfs-actions.pod:6788
30481 " guestfs_strings (guestfs_h *g,\n"
30482 " const char *path);\n"
30487 #: ../src/guestfs-actions.pod:6804
30488 msgid "guestfs_strings_e"
30492 #: ../src/guestfs-actions.pod:6806
30496 " guestfs_strings_e (guestfs_h *g,\n"
30497 " const char *encoding,\n"
30498 " const char *path);\n"
30503 #: ../src/guestfs-actions.pod:6811
30505 "This is like the C<guestfs_strings> command, but allows you to specify the "
30506 "encoding of strings that are looked for in the source file C<path>."
30510 #: ../src/guestfs-actions.pod:6821
30512 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30513 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30517 #: ../src/guestfs-actions.pod:6859
30518 msgid "guestfs_swapoff_device"
30522 #: ../src/guestfs-actions.pod:6861
30526 " guestfs_swapoff_device (guestfs_h *g,\n"
30527 " const char *device);\n"
30532 #: ../src/guestfs-actions.pod:6865
30534 "This command disables the libguestfs appliance swap device or partition "
30535 "named C<device>. See C<guestfs_swapon_device>."
30539 #: ../src/guestfs-actions.pod:6873
30540 msgid "guestfs_swapoff_file"
30544 #: ../src/guestfs-actions.pod:6875
30548 " guestfs_swapoff_file (guestfs_h *g,\n"
30549 " const char *file);\n"
30554 #: ../src/guestfs-actions.pod:6885
30555 msgid "guestfs_swapoff_label"
30559 #: ../src/guestfs-actions.pod:6887
30563 " guestfs_swapoff_label (guestfs_h *g,\n"
30564 " const char *label);\n"
30569 #: ../src/guestfs-actions.pod:6898
30570 msgid "guestfs_swapoff_uuid"
30574 #: ../src/guestfs-actions.pod:6900
30578 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30579 " const char *uuid);\n"
30584 #: ../src/guestfs-actions.pod:6911
30585 msgid "guestfs_swapon_device"
30589 #: ../src/guestfs-actions.pod:6913
30593 " guestfs_swapon_device (guestfs_h *g,\n"
30594 " const char *device);\n"
30599 #: ../src/guestfs-actions.pod:6917
30601 "This command enables the libguestfs appliance to use the swap device or "
30602 "partition named C<device>. The increased memory is made available for all "
30603 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30607 #: ../src/guestfs-actions.pod:6933
30608 msgid "guestfs_swapon_file"
30612 #: ../src/guestfs-actions.pod:6935
30616 " guestfs_swapon_file (guestfs_h *g,\n"
30617 " const char *file);\n"
30622 #: ../src/guestfs-actions.pod:6939
30624 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
30629 #: ../src/guestfs-actions.pod:6946
30630 msgid "guestfs_swapon_label"
30634 #: ../src/guestfs-actions.pod:6948
30638 " guestfs_swapon_label (guestfs_h *g,\n"
30639 " const char *label);\n"
30644 #: ../src/guestfs-actions.pod:6952
30646 "This command enables swap to a labeled swap partition. See "
30647 "C<guestfs_swapon_device> for other notes."
30651 #: ../src/guestfs-actions.pod:6959
30652 msgid "guestfs_swapon_uuid"
30656 #: ../src/guestfs-actions.pod:6961
30660 " guestfs_swapon_uuid (guestfs_h *g,\n"
30661 " const char *uuid);\n"
30666 #: ../src/guestfs-actions.pod:6965
30668 "This command enables swap to a swap partition with the given UUID. See "
30669 "C<guestfs_swapon_device> for other notes."
30673 #: ../src/guestfs-actions.pod:6972
30674 msgid "guestfs_sync"
30678 #: ../src/guestfs-actions.pod:6974
30682 " guestfs_sync (guestfs_h *g);\n"
30687 #: ../src/guestfs-actions.pod:6987
30688 msgid "guestfs_tail"
30692 #: ../src/guestfs-actions.pod:6989
30696 " guestfs_tail (guestfs_h *g,\n"
30697 " const char *path);\n"
30702 #: ../src/guestfs-actions.pod:7005
30703 msgid "guestfs_tail_n"
30707 #: ../src/guestfs-actions.pod:7007
30711 " guestfs_tail_n (guestfs_h *g,\n"
30713 " const char *path);\n"
30718 #: ../src/guestfs-actions.pod:7029
30719 msgid "guestfs_tar_in"
30723 #: ../src/guestfs-actions.pod:7031
30727 " guestfs_tar_in (guestfs_h *g,\n"
30728 " const char *tarfile,\n"
30729 " const char *directory);\n"
30734 #: ../src/guestfs-actions.pod:7039
30736 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30740 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:7061
30741 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7093
30742 msgid "(Added in 1.0.3)"
30746 #: ../src/guestfs-actions.pod:7046
30747 msgid "guestfs_tar_out"
30751 #: ../src/guestfs-actions.pod:7048
30755 " guestfs_tar_out (guestfs_h *g,\n"
30756 " const char *directory,\n"
30757 " const char *tarfile);\n"
30762 #: ../src/guestfs-actions.pod:7056
30764 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30765 "C<guestfs_txz_out>."
30769 #: ../src/guestfs-actions.pod:7063
30770 msgid "guestfs_tgz_in"
30774 #: ../src/guestfs-actions.pod:7065
30778 " guestfs_tgz_in (guestfs_h *g,\n"
30779 " const char *tarball,\n"
30780 " const char *directory);\n"
30785 #: ../src/guestfs-actions.pod:7073
30786 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30790 #: ../src/guestfs-actions.pod:7079
30791 msgid "guestfs_tgz_out"
30795 #: ../src/guestfs-actions.pod:7081
30799 " guestfs_tgz_out (guestfs_h *g,\n"
30800 " const char *directory,\n"
30801 " const char *tarball);\n"
30806 #: ../src/guestfs-actions.pod:7089
30807 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30811 #: ../src/guestfs-actions.pod:7095
30812 msgid "guestfs_touch"
30816 #: ../src/guestfs-actions.pod:7097
30820 " guestfs_touch (guestfs_h *g,\n"
30821 " const char *path);\n"
30826 #: ../src/guestfs-actions.pod:7112
30827 msgid "guestfs_truncate"
30831 #: ../src/guestfs-actions.pod:7114
30835 " guestfs_truncate (guestfs_h *g,\n"
30836 " const char *path);\n"
30841 #: ../src/guestfs-actions.pod:7125
30842 msgid "guestfs_truncate_size"
30846 #: ../src/guestfs-actions.pod:7127
30850 " guestfs_truncate_size (guestfs_h *g,\n"
30851 " const char *path,\n"
30852 " int64_t size);\n"
30857 #: ../src/guestfs-actions.pod:7135
30859 "If the current file size is less than C<size> then the file is extended to "
30860 "the required size with zero bytes. This creates a sparse file (ie. disk "
30861 "blocks are not allocated for the file until you write to it). To create a "
30862 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30866 #: ../src/guestfs-actions.pod:7145
30867 msgid "guestfs_tune2fs_l"
30871 #: ../src/guestfs-actions.pod:7147
30875 " guestfs_tune2fs_l (guestfs_h *g,\n"
30876 " const char *device);\n"
30881 #: ../src/guestfs-actions.pod:7167
30882 msgid "guestfs_txz_in"
30886 #: ../src/guestfs-actions.pod:7169
30890 " guestfs_txz_in (guestfs_h *g,\n"
30891 " const char *tarball,\n"
30892 " const char *directory);\n"
30897 #: ../src/guestfs-actions.pod:7181
30898 msgid "guestfs_txz_out"
30902 #: ../src/guestfs-actions.pod:7183
30906 " guestfs_txz_out (guestfs_h *g,\n"
30907 " const char *directory,\n"
30908 " const char *tarball);\n"
30913 #: ../src/guestfs-actions.pod:7195
30914 msgid "guestfs_umask"
30918 #: ../src/guestfs-actions.pod:7197
30922 " guestfs_umask (guestfs_h *g,\n"
30928 #: ../src/guestfs-actions.pod:7213
30930 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30931 "C<guestfs_mkdir>."
30935 #: ../src/guestfs-actions.pod:7222
30936 msgid "guestfs_umount"
30940 #: ../src/guestfs-actions.pod:7224
30944 " guestfs_umount (guestfs_h *g,\n"
30945 " const char *pathordevice);\n"
30950 #: ../src/guestfs-actions.pod:7236
30951 msgid "guestfs_umount_all"
30955 #: ../src/guestfs-actions.pod:7238
30959 " guestfs_umount_all (guestfs_h *g);\n"
30964 #: ../src/guestfs-actions.pod:7249
30965 msgid "guestfs_upload"
30969 #: ../src/guestfs-actions.pod:7251
30973 " guestfs_upload (guestfs_h *g,\n"
30974 " const char *filename,\n"
30975 " const char *remotefilename);\n"
30980 #: ../src/guestfs-actions.pod:7261
30981 msgid "See also C<guestfs_download>."
30985 #: ../src/guestfs-actions.pod:7272
30986 msgid "guestfs_upload_offset"
30990 #: ../src/guestfs-actions.pod:7274
30994 " guestfs_upload_offset (guestfs_h *g,\n"
30995 " const char *filename,\n"
30996 " const char *remotefilename,\n"
30997 " int64_t offset);\n"
31002 #: ../src/guestfs-actions.pod:7290
31004 "Note that there is no limit on the amount of data that can be uploaded with "
31005 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31006 "full amount unless an error occurs."
31010 #: ../src/guestfs-actions.pod:7295
31011 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31015 #: ../src/guestfs-actions.pod:7306
31016 msgid "guestfs_utimens"
31020 #: ../src/guestfs-actions.pod:7308
31024 " guestfs_utimens (guestfs_h *g,\n"
31025 " const char *path,\n"
31026 " int64_t atsecs,\n"
31027 " int64_t atnsecs,\n"
31028 " int64_t mtsecs,\n"
31029 " int64_t mtnsecs);\n"
31034 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-structs.pod:175
31035 msgid "guestfs_version"
31039 #: ../src/guestfs-actions.pod:7339
31042 " struct guestfs_version *\n"
31043 " guestfs_version (guestfs_h *g);\n"
31048 #: ../src/guestfs-actions.pod:7367
31050 "I<Note:> Don't use this call to test for availability of features. In "
31051 "enterprise distributions we backport features from later versions into "
31052 "earlier versions, making this an unreliable way to test for features. Use "
31053 "C<guestfs_available> instead."
31057 #: ../src/guestfs-actions.pod:7373
31059 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31060 "error. I<The caller must call C<guestfs_free_version> after use>."
31064 #: ../src/guestfs-actions.pod:7377
31065 msgid "(Added in 1.0.58)"
31069 #: ../src/guestfs-actions.pod:7379
31070 msgid "guestfs_vfs_label"
31074 #: ../src/guestfs-actions.pod:7381
31078 " guestfs_vfs_label (guestfs_h *g,\n"
31079 " const char *device);\n"
31084 #: ../src/guestfs-actions.pod:7390
31085 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31089 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7432
31090 msgid "(Added in 1.3.18)"
31094 #: ../src/guestfs-actions.pod:7397
31095 msgid "guestfs_vfs_type"
31099 #: ../src/guestfs-actions.pod:7399
31103 " guestfs_vfs_type (guestfs_h *g,\n"
31104 " const char *device);\n"
31109 #: ../src/guestfs-actions.pod:7416
31110 msgid "guestfs_vfs_uuid"
31114 #: ../src/guestfs-actions.pod:7418
31118 " guestfs_vfs_uuid (guestfs_h *g,\n"
31119 " const char *device);\n"
31124 #: ../src/guestfs-actions.pod:7427
31125 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31129 #: ../src/guestfs-actions.pod:7434
31130 msgid "guestfs_vg_activate"
31134 #: ../src/guestfs-actions.pod:7436
31138 " guestfs_vg_activate (guestfs_h *g,\n"
31140 " char *const *volgroups);\n"
31145 #: ../src/guestfs-actions.pod:7453
31146 msgid "guestfs_vg_activate_all"
31150 #: ../src/guestfs-actions.pod:7455
31154 " guestfs_vg_activate_all (guestfs_h *g,\n"
31155 " int activate);\n"
31160 #: ../src/guestfs-actions.pod:7468
31161 msgid "guestfs_vgcreate"
31165 #: ../src/guestfs-actions.pod:7470
31169 " guestfs_vgcreate (guestfs_h *g,\n"
31170 " const char *volgroup,\n"
31171 " char *const *physvols);\n"
31176 #: ../src/guestfs-actions.pod:7482
31177 msgid "guestfs_vglvuuids"
31181 #: ../src/guestfs-actions.pod:7484
31185 " guestfs_vglvuuids (guestfs_h *g,\n"
31186 " const char *vgname);\n"
31191 #: ../src/guestfs-actions.pod:7491
31193 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31194 "associate logical volumes and volume groups."
31198 #: ../src/guestfs-actions.pod:7494
31199 msgid "See also C<guestfs_vgpvuuids>."
31203 #: ../src/guestfs-actions.pod:7502
31204 msgid "guestfs_vgpvuuids"
31208 #: ../src/guestfs-actions.pod:7504
31212 " guestfs_vgpvuuids (guestfs_h *g,\n"
31213 " const char *vgname);\n"
31218 #: ../src/guestfs-actions.pod:7511
31220 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31221 "associate physical volumes and volume groups."
31225 #: ../src/guestfs-actions.pod:7514
31226 msgid "See also C<guestfs_vglvuuids>."
31230 #: ../src/guestfs-actions.pod:7522
31231 msgid "guestfs_vgremove"
31235 #: ../src/guestfs-actions.pod:7524
31239 " guestfs_vgremove (guestfs_h *g,\n"
31240 " const char *vgname);\n"
31245 #: ../src/guestfs-actions.pod:7537
31246 msgid "guestfs_vgrename"
31250 #: ../src/guestfs-actions.pod:7539
31254 " guestfs_vgrename (guestfs_h *g,\n"
31255 " const char *volgroup,\n"
31256 " const char *newvolgroup);\n"
31261 #: ../src/guestfs-actions.pod:7550
31262 msgid "guestfs_vgs"
31266 #: ../src/guestfs-actions.pod:7552
31270 " guestfs_vgs (guestfs_h *g);\n"
31275 #: ../src/guestfs-actions.pod:7561
31276 msgid "See also C<guestfs_vgs_full>."
31280 #: ../src/guestfs-actions.pod:7569
31281 msgid "guestfs_vgs_full"
31285 #: ../src/guestfs-actions.pod:7571
31288 " struct guestfs_lvm_vg_list *\n"
31289 " guestfs_vgs_full (guestfs_h *g);\n"
31294 #: ../src/guestfs-actions.pod:7577
31296 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31297 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31301 #: ../src/guestfs-actions.pod:7583
31302 msgid "guestfs_vgscan"
31306 #: ../src/guestfs-actions.pod:7585
31310 " guestfs_vgscan (guestfs_h *g);\n"
31315 #: ../src/guestfs-actions.pod:7595
31316 msgid "guestfs_vguuid"
31320 #: ../src/guestfs-actions.pod:7597
31324 " guestfs_vguuid (guestfs_h *g,\n"
31325 " const char *vgname);\n"
31330 #: ../src/guestfs-actions.pod:7608
31331 msgid "guestfs_wait_ready"
31335 #: ../src/guestfs-actions.pod:7610
31339 " guestfs_wait_ready (guestfs_h *g);\n"
31344 #: ../src/guestfs-actions.pod:7613
31345 msgid "This function is a no op."
31349 #: ../src/guestfs-actions.pod:7615
31351 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31352 "calling C<guestfs_launch> to wait for the launch to complete. However this "
31353 "is no longer necessary because C<guestfs_launch> now does the waiting."
31357 #: ../src/guestfs-actions.pod:7620
31359 "If you see any calls to this function in code then you can just remove them, "
31360 "unless you want to retain compatibility with older versions of the API."
31364 #: ../src/guestfs-actions.pod:7626
31366 "This function is deprecated. In new code, use the L</guestfs_launch> call "
31371 #: ../src/guestfs-actions.pod:7635
31372 msgid "guestfs_wc_c"
31376 #: ../src/guestfs-actions.pod:7637
31380 " guestfs_wc_c (guestfs_h *g,\n"
31381 " const char *path);\n"
31386 #: ../src/guestfs-actions.pod:7648
31387 msgid "guestfs_wc_l"
31391 #: ../src/guestfs-actions.pod:7650
31395 " guestfs_wc_l (guestfs_h *g,\n"
31396 " const char *path);\n"
31401 #: ../src/guestfs-actions.pod:7661
31402 msgid "guestfs_wc_w"
31406 #: ../src/guestfs-actions.pod:7663
31410 " guestfs_wc_w (guestfs_h *g,\n"
31411 " const char *path);\n"
31416 #: ../src/guestfs-actions.pod:7674
31417 msgid "guestfs_write"
31421 #: ../src/guestfs-actions.pod:7676
31425 " guestfs_write (guestfs_h *g,\n"
31426 " const char *path,\n"
31427 " const char *content,\n"
31428 " size_t content_size);\n"
31433 #: ../src/guestfs-actions.pod:7685
31434 msgid "See also C<guestfs_write_append>."
31438 #: ../src/guestfs-actions.pod:7694
31439 msgid "guestfs_write_append"
31443 #: ../src/guestfs-actions.pod:7696
31447 " guestfs_write_append (guestfs_h *g,\n"
31448 " const char *path,\n"
31449 " const char *content,\n"
31450 " size_t content_size);\n"
31455 #: ../src/guestfs-actions.pod:7705
31456 msgid "See also C<guestfs_write>."
31460 #: ../src/guestfs-actions.pod:7714
31461 msgid "guestfs_write_file"
31462 msgstr "guestfs_write_file"
31465 #: ../src/guestfs-actions.pod:7716
31469 " guestfs_write_file (guestfs_h *g,\n"
31470 " const char *path,\n"
31471 " const char *content,\n"
31476 " guestfs_write_file (guestfs_h *g,\n"
31477 " const char *path,\n"
31478 " const char *content,\n"
31483 #: ../src/guestfs-actions.pod:7738
31485 "This function is deprecated. In new code, use the L</guestfs_write> call "
31490 #: ../src/guestfs-actions.pod:7747
31491 msgid "guestfs_zegrep"
31492 msgstr "guestfs_zegrep"
31495 #: ../src/guestfs-actions.pod:7749
31499 " guestfs_zegrep (guestfs_h *g,\n"
31500 " const char *regex,\n"
31501 " const char *path);\n"
31505 " guestfs_zegrep (guestfs_h *g,\n"
31506 " const char *regex,\n"
31507 " const char *path);\n"
31511 #: ../src/guestfs-actions.pod:7766
31512 msgid "guestfs_zegrepi"
31513 msgstr "guestfs_zegrepi"
31516 #: ../src/guestfs-actions.pod:7768
31520 " guestfs_zegrepi (guestfs_h *g,\n"
31521 " const char *regex,\n"
31522 " const char *path);\n"
31526 " guestfs_zegrepi (guestfs_h *g,\n"
31527 " const char *regex,\n"
31528 " const char *path);\n"
31532 #: ../src/guestfs-actions.pod:7785
31533 msgid "guestfs_zero"
31534 msgstr "guestfs_zero"
31537 #: ../src/guestfs-actions.pod:7787
31541 " guestfs_zero (guestfs_h *g,\n"
31542 " const char *device);\n"
31546 " guestfs_zero (guestfs_h *g,\n"
31547 " const char *device);\n"
31551 #: ../src/guestfs-actions.pod:7801
31553 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31554 "C<guestfs_is_zero_device>"
31558 #: ../src/guestfs-actions.pod:7813
31559 msgid "guestfs_zero_device"
31560 msgstr "guestfs_zero_device"
31563 #: ../src/guestfs-actions.pod:7815
31567 " guestfs_zero_device (guestfs_h *g,\n"
31568 " const char *device);\n"
31572 " guestfs_zero_device (guestfs_h *g,\n"
31573 " const char *device);\n"
31577 #: ../src/guestfs-actions.pod:7819
31579 "This command writes zeroes over the entire C<device>. Compare with "
31580 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31584 #: ../src/guestfs-actions.pod:7837
31585 msgid "(Added in 1.3.1)"
31586 msgstr "(Додано у 1.3.1)"
31589 #: ../src/guestfs-actions.pod:7839
31590 msgid "guestfs_zerofree"
31591 msgstr "guestfs_zerofree"
31594 #: ../src/guestfs-actions.pod:7841
31598 " guestfs_zerofree (guestfs_h *g,\n"
31599 " const char *device);\n"
31603 " guestfs_zerofree (guestfs_h *g,\n"
31604 " const char *device);\n"
31608 #: ../src/guestfs-actions.pod:7860
31609 msgid "guestfs_zfgrep"
31610 msgstr "guestfs_zfgrep"
31613 #: ../src/guestfs-actions.pod:7862
31617 " guestfs_zfgrep (guestfs_h *g,\n"
31618 " const char *pattern,\n"
31619 " const char *path);\n"
31623 " guestfs_zfgrep (guestfs_h *g,\n"
31624 " const char *pattern,\n"
31625 " const char *path);\n"
31629 #: ../src/guestfs-actions.pod:7879
31630 msgid "guestfs_zfgrepi"
31631 msgstr "guestfs_zfgrepi"
31634 #: ../src/guestfs-actions.pod:7881
31638 " guestfs_zfgrepi (guestfs_h *g,\n"
31639 " const char *pattern,\n"
31640 " const char *path);\n"
31644 " guestfs_zfgrepi (guestfs_h *g,\n"
31645 " const char *pattern,\n"
31646 " const char *path);\n"
31650 #: ../src/guestfs-actions.pod:7898
31651 msgid "guestfs_zfile"
31652 msgstr "guestfs_zfile"
31655 #: ../src/guestfs-actions.pod:7900
31659 " guestfs_zfile (guestfs_h *g,\n"
31660 " const char *meth,\n"
31661 " const char *path);\n"
31665 " guestfs_zfile (guestfs_h *g,\n"
31666 " const char *meth,\n"
31667 " const char *path);\n"
31671 #: ../src/guestfs-actions.pod:7910
31673 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31678 #: ../src/guestfs-actions.pod:7916
31680 "This function is deprecated. In new code, use the L</guestfs_file> call "
31685 #: ../src/guestfs-actions.pod:7925
31686 msgid "guestfs_zgrep"
31687 msgstr "guestfs_zgrep"
31690 #: ../src/guestfs-actions.pod:7927
31694 " guestfs_zgrep (guestfs_h *g,\n"
31695 " const char *regex,\n"
31696 " const char *path);\n"
31700 " guestfs_zgrep (guestfs_h *g,\n"
31701 " const char *regex,\n"
31702 " const char *path);\n"
31706 #: ../src/guestfs-actions.pod:7944
31707 msgid "guestfs_zgrepi"
31708 msgstr "guestfs_zgrepi"
31711 #: ../src/guestfs-actions.pod:7946
31715 " guestfs_zgrepi (guestfs_h *g,\n"
31716 " const char *regex,\n"
31717 " const char *path);\n"
31721 " guestfs_zgrepi (guestfs_h *g,\n"
31722 " const char *regex,\n"
31723 " const char *path);\n"
31727 #: ../src/guestfs-availability.pod:3
31732 #: ../src/guestfs-availability.pod:5
31734 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31735 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31736 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31737 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31738 "L</guestfs_aug_save> L</guestfs_aug_set>"
31742 #: ../src/guestfs-availability.pod:21
31747 #: ../src/guestfs-availability.pod:23
31748 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31752 #: ../src/guestfs-availability.pod:26
31754 #| msgid "B<scrub>"
31759 #: ../src/guestfs-availability.pod:28
31760 msgid "The following functions: L</guestfs_grub_install>"
31764 #: ../src/guestfs-availability.pod:31
31766 msgstr "B<inotify>"
31769 #: ../src/guestfs-availability.pod:33
31771 "The following functions: L</guestfs_inotify_add_watch> L</"
31772 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31773 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31777 #: ../src/guestfs-availability.pod:41
31778 msgid "B<linuxfsuuid>"
31779 msgstr "B<linuxfsuuid>"
31782 #: ../src/guestfs-availability.pod:43
31784 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31785 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31789 #: ../src/guestfs-availability.pod:50
31790 msgid "B<linuxmodules>"
31791 msgstr "B<linuxmodules>"
31794 #: ../src/guestfs-availability.pod:52
31795 msgid "The following functions: L</guestfs_modprobe>"
31799 #: ../src/guestfs-availability.pod:55
31800 msgid "B<linuxxattrs>"
31801 msgstr "B<linuxxattrs>"
31804 #: ../src/guestfs-availability.pod:57
31806 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31807 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31808 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31809 "guestfs_setxattr>"
31813 #: ../src/guestfs-availability.pod:68
31818 #: ../src/guestfs-availability.pod:70
31820 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31821 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31822 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31826 #: ../src/guestfs-availability.pod:79
31831 #: ../src/guestfs-availability.pod:81
31833 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31834 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31835 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31836 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31837 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31838 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31839 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31843 #: ../src/guestfs-availability.pod:104
31848 #: ../src/guestfs-availability.pod:106
31850 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31851 "guestfs_mknod_b> L</guestfs_mknod_c>"
31855 #: ../src/guestfs-availability.pod:112
31860 #: ../src/guestfs-availability.pod:114
31861 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31865 #: ../src/guestfs-availability.pod:117
31866 msgid "B<ntfsprogs>"
31867 msgstr "B<ntfsprogs>"
31870 #: ../src/guestfs-availability.pod:119
31872 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31873 "L</guestfs_ntfsresize_size>"
31877 #: ../src/guestfs-availability.pod:124
31878 msgid "B<realpath>"
31879 msgstr "B<realpath>"
31882 #: ../src/guestfs-availability.pod:126
31883 msgid "The following functions: L</guestfs_realpath>"
31887 #: ../src/guestfs-availability.pod:129
31892 #: ../src/guestfs-availability.pod:131
31894 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31895 "guestfs_scrub_freespace>"
31899 #: ../src/guestfs-availability.pod:136
31901 msgstr "B<selinux>"
31904 #: ../src/guestfs-availability.pod:138
31905 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31909 #: ../src/guestfs-availability.pod:142
31914 #: ../src/guestfs-availability.pod:144
31915 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31919 #: ../src/guestfs-availability.pod:148
31920 msgid "B<zerofree>"
31921 msgstr "B<zerofree>"
31924 #: ../src/guestfs-availability.pod:150
31925 msgid "The following functions: L</guestfs_zerofree>"
31929 #: ../src/guestfs-structs.pod:1
31930 msgid "guestfs_int_bool"
31934 #: ../src/guestfs-structs.pod:3
31937 " struct guestfs_int_bool {\n"
31945 #: ../src/guestfs-structs.pod:8
31948 " struct guestfs_int_bool_list {\n"
31949 " uint32_t len; /* Number of elements in list. */\n"
31950 " struct guestfs_int_bool *val; /* Elements. */\n"
31956 #: ../src/guestfs-structs.pod:13
31959 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31960 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31965 #: ../src/guestfs-structs.pod:16
31966 msgid "guestfs_lvm_pv"
31970 #: ../src/guestfs-structs.pod:18
31973 " struct guestfs_lvm_pv {\n"
31974 " char *pv_name;\n"
31975 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31976 " char pv_uuid[32];\n"
31978 " uint64_t pv_size;\n"
31979 " uint64_t dev_size;\n"
31980 " uint64_t pv_free;\n"
31981 " uint64_t pv_used;\n"
31982 " char *pv_attr;\n"
31983 " int64_t pv_pe_count;\n"
31984 " int64_t pv_pe_alloc_count;\n"
31985 " char *pv_tags;\n"
31986 " uint64_t pe_start;\n"
31987 " int64_t pv_mda_count;\n"
31988 " uint64_t pv_mda_free;\n"
31994 #: ../src/guestfs-structs.pod:36
31997 " struct guestfs_lvm_pv_list {\n"
31998 " uint32_t len; /* Number of elements in list. */\n"
31999 " struct guestfs_lvm_pv *val; /* Elements. */\n"
32005 #: ../src/guestfs-structs.pod:41
32008 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32009 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32014 #: ../src/guestfs-structs.pod:44
32015 msgid "guestfs_lvm_vg"
32019 #: ../src/guestfs-structs.pod:46
32022 " struct guestfs_lvm_vg {\n"
32023 " char *vg_name;\n"
32024 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32025 " char vg_uuid[32];\n"
32027 " char *vg_attr;\n"
32028 " uint64_t vg_size;\n"
32029 " uint64_t vg_free;\n"
32030 " char *vg_sysid;\n"
32031 " uint64_t vg_extent_size;\n"
32032 " int64_t vg_extent_count;\n"
32033 " int64_t vg_free_count;\n"
32034 " int64_t max_lv;\n"
32035 " int64_t max_pv;\n"
32036 " int64_t pv_count;\n"
32037 " int64_t lv_count;\n"
32038 " int64_t snap_count;\n"
32039 " int64_t vg_seqno;\n"
32040 " char *vg_tags;\n"
32041 " int64_t vg_mda_count;\n"
32042 " uint64_t vg_mda_free;\n"
32048 #: ../src/guestfs-structs.pod:69
32051 " struct guestfs_lvm_vg_list {\n"
32052 " uint32_t len; /* Number of elements in list. */\n"
32053 " struct guestfs_lvm_vg *val; /* Elements. */\n"
32059 #: ../src/guestfs-structs.pod:74
32062 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32063 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32068 #: ../src/guestfs-structs.pod:77
32069 msgid "guestfs_lvm_lv"
32073 #: ../src/guestfs-structs.pod:79
32076 " struct guestfs_lvm_lv {\n"
32077 " char *lv_name;\n"
32078 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32079 " char lv_uuid[32];\n"
32080 " char *lv_attr;\n"
32081 " int64_t lv_major;\n"
32082 " int64_t lv_minor;\n"
32083 " int64_t lv_kernel_major;\n"
32084 " int64_t lv_kernel_minor;\n"
32085 " uint64_t lv_size;\n"
32086 " int64_t seg_count;\n"
32088 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32089 " float snap_percent;\n"
32090 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
32091 " float copy_percent;\n"
32092 " char *move_pv;\n"
32093 " char *lv_tags;\n"
32094 " char *mirror_log;\n"
32095 " char *modules;\n"
32101 #: ../src/guestfs-structs.pod:101
32104 " struct guestfs_lvm_lv_list {\n"
32105 " uint32_t len; /* Number of elements in list. */\n"
32106 " struct guestfs_lvm_lv *val; /* Elements. */\n"
32112 #: ../src/guestfs-structs.pod:106
32115 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32116 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32121 #: ../src/guestfs-structs.pod:111
32124 " struct guestfs_stat {\n"
32128 " int64_t nlink;\n"
32133 " int64_t blksize;\n"
32134 " int64_t blocks;\n"
32135 " int64_t atime;\n"
32136 " int64_t mtime;\n"
32137 " int64_t ctime;\n"
32143 #: ../src/guestfs-structs.pod:127
32146 " struct guestfs_stat_list {\n"
32147 " uint32_t len; /* Number of elements in list. */\n"
32148 " struct guestfs_stat *val; /* Elements. */\n"
32154 #: ../src/guestfs-structs.pod:132
32157 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32158 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32163 #: ../src/guestfs-structs.pod:137
32166 " struct guestfs_statvfs {\n"
32167 " int64_t bsize;\n"
32168 " int64_t frsize;\n"
32169 " int64_t blocks;\n"
32170 " int64_t bfree;\n"
32171 " int64_t bavail;\n"
32172 " int64_t files;\n"
32173 " int64_t ffree;\n"
32174 " int64_t favail;\n"
32177 " int64_t namemax;\n"
32183 #: ../src/guestfs-structs.pod:151
32186 " struct guestfs_statvfs_list {\n"
32187 " uint32_t len; /* Number of elements in list. */\n"
32188 " struct guestfs_statvfs *val; /* Elements. */\n"
32194 #: ../src/guestfs-structs.pod:156
32197 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32198 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32203 #: ../src/guestfs-structs.pod:159
32204 msgid "guestfs_dirent"
32208 #: ../src/guestfs-structs.pod:161
32211 " struct guestfs_dirent {\n"
32220 #: ../src/guestfs-structs.pod:167
32223 " struct guestfs_dirent_list {\n"
32224 " uint32_t len; /* Number of elements in list. */\n"
32225 " struct guestfs_dirent *val; /* Elements. */\n"
32231 #: ../src/guestfs-structs.pod:172
32234 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32235 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32240 #: ../src/guestfs-structs.pod:177
32243 " struct guestfs_version {\n"
32244 " int64_t major;\n"
32245 " int64_t minor;\n"
32246 " int64_t release;\n"
32253 #: ../src/guestfs-structs.pod:184
32256 " struct guestfs_version_list {\n"
32257 " uint32_t len; /* Number of elements in list. */\n"
32258 " struct guestfs_version *val; /* Elements. */\n"
32264 #: ../src/guestfs-structs.pod:189
32267 " void guestfs_free_version (struct guestfs_free_version *);\n"
32268 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32273 #: ../src/guestfs-structs.pod:192
32274 msgid "guestfs_xattr"
32278 #: ../src/guestfs-structs.pod:194
32281 " struct guestfs_xattr {\n"
32282 " char *attrname;\n"
32283 " /* The next two fields describe a byte array. */\n"
32284 " uint32_t attrval_len;\n"
32285 " char *attrval;\n"
32291 #: ../src/guestfs-structs.pod:201
32294 " struct guestfs_xattr_list {\n"
32295 " uint32_t len; /* Number of elements in list. */\n"
32296 " struct guestfs_xattr *val; /* Elements. */\n"
32302 #: ../src/guestfs-structs.pod:206
32305 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32306 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32311 #: ../src/guestfs-structs.pod:209
32312 msgid "guestfs_inotify_event"
32316 #: ../src/guestfs-structs.pod:211
32319 " struct guestfs_inotify_event {\n"
32320 " int64_t in_wd;\n"
32321 " uint32_t in_mask;\n"
32322 " uint32_t in_cookie;\n"
32323 " char *in_name;\n"
32329 #: ../src/guestfs-structs.pod:218
32332 " struct guestfs_inotify_event_list {\n"
32333 " uint32_t len; /* Number of elements in list. */\n"
32334 " struct guestfs_inotify_event *val; /* Elements. */\n"
32340 #: ../src/guestfs-structs.pod:223
32343 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32344 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32349 #: ../src/guestfs-structs.pod:226
32350 msgid "guestfs_partition"
32354 #: ../src/guestfs-structs.pod:228
32357 " struct guestfs_partition {\n"
32358 " int32_t part_num;\n"
32359 " uint64_t part_start;\n"
32360 " uint64_t part_end;\n"
32361 " uint64_t part_size;\n"
32367 #: ../src/guestfs-structs.pod:235
32370 " struct guestfs_partition_list {\n"
32371 " uint32_t len; /* Number of elements in list. */\n"
32372 " struct guestfs_partition *val; /* Elements. */\n"
32378 #: ../src/guestfs-structs.pod:240
32381 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32382 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32387 #: ../src/guestfs-structs.pod:243
32388 msgid "guestfs_application"
32392 #: ../src/guestfs-structs.pod:245
32395 " struct guestfs_application {\n"
32396 " char *app_name;\n"
32397 " char *app_display_name;\n"
32398 " int32_t app_epoch;\n"
32399 " char *app_version;\n"
32400 " char *app_release;\n"
32401 " char *app_install_path;\n"
32402 " char *app_trans_path;\n"
32403 " char *app_publisher;\n"
32404 " char *app_url;\n"
32405 " char *app_source_package;\n"
32406 " char *app_summary;\n"
32407 " char *app_description;\n"
32413 #: ../src/guestfs-structs.pod:260
32416 " struct guestfs_application_list {\n"
32417 " uint32_t len; /* Number of elements in list. */\n"
32418 " struct guestfs_application *val; /* Elements. */\n"
32424 #: ../src/guestfs-structs.pod:265
32427 " void guestfs_free_application (struct guestfs_free_application *);\n"
32428 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32433 #: ../src/guestfs.pod:5
32434 msgid "guestfs - Library for accessing and modifying virtual machine images"
32436 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32440 #: ../src/guestfs.pod:11
32443 " guestfs_h *g = guestfs_create ();\n"
32444 " guestfs_add_drive (g, \"guest.img\");\n"
32445 " guestfs_launch (g);\n"
32446 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32447 " guestfs_touch (g, \"/hello\");\n"
32448 " guestfs_umount (g, \"/\");\n"
32449 " guestfs_close (g);\n"
32452 " guestfs_h *g = guestfs_create ();\n"
32453 " guestfs_add_drive (g, \"guest.img\");\n"
32454 " guestfs_launch (g);\n"
32455 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32456 " guestfs_touch (g, \"/hello\");\n"
32457 " guestfs_umount (g, \"/\");\n"
32458 " guestfs_close (g);\n"
32462 #: ../src/guestfs.pod:25
32464 "Libguestfs is a library for accessing and modifying guest disk images. "
32465 "Amongst the things this is good for: making batch configuration changes to "
32466 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32467 "between virtualization systems (see also: virt-p2v), performing partial "
32468 "backups, performing partial guest clones, cloning guests and changing "
32469 "registry/UUID/hostname info, and much else besides."
32473 #: ../src/guestfs.pod:33
32475 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32476 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32477 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32482 #: ../src/guestfs.pod:38
32484 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32485 "what filesystem is in each LV, etc.). It can also run commands in the "
32486 "context of the guest. Also you can access filesystems over FUSE."
32490 #: ../src/guestfs.pod:43
32492 "Libguestfs is a library that can be linked with C and C++ management "
32493 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32494 "PHP, Haskell or C#). You can also use it from shell scripts or the command "
32499 #: ../src/guestfs.pod:48
32501 "You don't need to be root to use libguestfs, although obviously you do need "
32502 "enough permissions to access the disk images."
32506 #: ../src/guestfs.pod:51
32508 "Libguestfs is a large API because it can do many things. For a gentle "
32509 "introduction, please read the L</API OVERVIEW> section next."
32513 #: ../src/guestfs.pod:54
32515 "There are also some example programs in the L<guestfs-examples(3)> manual "
32520 #: ../src/guestfs.pod:57
32521 msgid "API OVERVIEW"
32525 #: ../src/guestfs.pod:59
32527 "This section provides a gentler overview of the libguestfs API. We also try "
32528 "to group API calls together, where that may not be obvious from reading "
32529 "about the individual calls in the main section of this manual."
32533 #: ../src/guestfs.pod:64
32538 #: ../src/guestfs.pod:66
32540 "Before you can use libguestfs calls, you have to create a handle. Then you "
32541 "must add at least one disk image to the handle, followed by launching the "
32542 "handle, then performing whatever operations you want, and finally closing "
32543 "the handle. By convention we use the single letter C<g> for the name of the "
32544 "handle variable, although of course you can use any name you want."
32548 #: ../src/guestfs.pod:73
32549 msgid "The general structure of all libguestfs-using programs looks like this:"
32553 #: ../src/guestfs.pod:76
32556 " guestfs_h *g = guestfs_create ();\n"
32559 " guestfs_h *g = guestfs_create ();\n"
32563 #: ../src/guestfs.pod:78
32566 " /* Call guestfs_add_drive additional times if there are\n"
32567 " * multiple disk images.\n"
32569 " guestfs_add_drive (g, \"guest.img\");\n"
32574 #: ../src/guestfs.pod:83
32577 " /* Most manipulation calls won't work until you've launched\n"
32578 " * the handle 'g'. You have to do this _after_ adding drives\n"
32579 " * and _before_ other commands.\n"
32581 " guestfs_launch (g);\n"
32586 #: ../src/guestfs.pod:89
32589 " /* Now you can examine what partitions, LVs etc are available.\n"
32591 " char **partitions = guestfs_list_partitions (g);\n"
32592 " char **logvols = guestfs_lvs (g);\n"
32595 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32597 " char **partitions = guestfs_list_partitions (g);\n"
32598 " char **logvols = guestfs_lvs (g);\n"
32602 #: ../src/guestfs.pod:94
32605 " /* To access a filesystem in the image, you must mount it.\n"
32607 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32610 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32612 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32616 #: ../src/guestfs.pod:98
32619 " /* Now you can perform filesystem actions on the guest\n"
32622 " guestfs_touch (g, \"/hello\");\n"
32627 #: ../src/guestfs.pod:103
32630 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
32631 " * it is done automatically when you close the handle. See\n"
32632 " * discussion of autosync in this page.\n"
32634 " guestfs_sync (g);\n"
32639 #: ../src/guestfs.pod:109
32642 " /* Close the handle 'g'. */\n"
32643 " guestfs_close (g);\n"
32646 " /* Закрити дескриптор 'g'. */\n"
32647 " guestfs_close (g);\n"
32651 #: ../src/guestfs.pod:112
32653 "The code above doesn't include any error checking. In real code you should "
32654 "check return values carefully for errors. In general all functions that "
32655 "return integers return C<-1> on error, and all functions that return "
32656 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
32657 "how to handle errors, and consult the documentation for each function call "
32658 "below to see precisely how they return error indications. See L<guestfs-"
32659 "examples(3)> for fully worked examples."
32663 #: ../src/guestfs.pod:121
32664 msgid "DISK IMAGES"
32665 msgstr "ОБРАЗИ ДИСКІВ"
32668 #: ../src/guestfs.pod:123
32670 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32671 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32672 "actual block device, or simply an empty file of zeroes that you have created "
32673 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
32678 #: ../src/guestfs.pod:129
32680 "The call you should use in modern code for adding drives is L</"
32681 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
32682 "specifying that the format is raw, do:"
32686 #: ../src/guestfs.pod:133
32689 " guestfs_add_drive_opts (g, filename,\n"
32690 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32694 " guestfs_add_drive_opts (g, filename,\n"
32695 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32700 #: ../src/guestfs.pod:137
32701 msgid "You can add a disk read-only using:"
32702 msgstr "Ви можете додати диск у режимі лише читання:"
32705 #: ../src/guestfs.pod:139
32708 " guestfs_add_drive_opts (g, filename,\n"
32709 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32710 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32714 " guestfs_add_drive_opts (g, filename,\n"
32715 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32716 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32721 #: ../src/guestfs.pod:144
32723 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
32724 "libguestfs won't modify the file."
32728 #: ../src/guestfs.pod:147
32730 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32731 "by a virtual machine. Adding it read-write will almost certainly cause disk "
32732 "corruption, but adding it read-only is safe."
32736 #: ../src/guestfs.pod:151
32738 "You must add at least one disk image, and you may add multiple disk images. "
32739 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32740 "first one you added), C</dev/sdb> (for the second one you added), etc."
32744 #: ../src/guestfs.pod:156
32746 "Once L</guestfs_launch> has been called you cannot add any more images. You "
32747 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32748 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
32752 #: ../src/guestfs.pod:161
32754 msgstr "МОНТУВАННЯ"
32757 #: ../src/guestfs.pod:163
32759 "Before you can read or write files, create directories and so on in a disk "
32760 "image that contains filesystems, you have to mount those filesystems using "
32761 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
32762 "a disk image contains (for example) one partition with a filesystem on that "
32763 "partition, then you can mount it directly:"
32767 #: ../src/guestfs.pod:170
32770 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32773 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32777 #: ../src/guestfs.pod:172
32779 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32780 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
32781 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
32782 "that these are libguestfs virtual devices, and are nothing to do with host "
32787 #: ../src/guestfs.pod:178
32789 "If you are given a disk image and you don't know what it contains then you "
32790 "have to find out. Libguestfs can do that too: use L</"
32791 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32792 "LVs, and either try mounting each to see what is mountable, or else examine "
32793 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
32794 "filesystems, use L</guestfs_list_filesystems>."
32798 #: ../src/guestfs.pod:186
32800 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32801 "L</INSPECTION> below). But you might find it easier to look at higher level "
32802 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32806 #: ../src/guestfs.pod:191
32808 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
32809 "several other variations of the C<guestfs_mount_*> call."
32813 #: ../src/guestfs.pod:194
32814 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32815 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32818 #: ../src/guestfs.pod:196
32820 "The majority of the libguestfs API consists of fairly low-level calls for "
32821 "accessing and modifying the files, directories, symlinks etc on mounted "
32822 "filesystems. There are over a hundred such calls which you can find listed "
32823 "in detail below in this man page, and we don't even pretend to cover them "
32824 "all in this overview."
32828 #: ../src/guestfs.pod:202
32830 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32833 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32834 "точкою монтування."
32837 #: ../src/guestfs.pod:205
32839 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32840 "the file called C<\"etc/passwd\"> then you could do:"
32842 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32843 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32847 #: ../src/guestfs.pod:208
32850 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32853 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32857 #: ../src/guestfs.pod:210
32859 "This would return C<data> as a newly allocated buffer containing the full "
32860 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32861 "or C<NULL> if there was an error."
32865 #: ../src/guestfs.pod:214
32867 "As another example, to create a top-level directory on that filesystem "
32868 "called C<\"var\"> you would do:"
32872 #: ../src/guestfs.pod:217
32875 " guestfs_mkdir (g, \"/var\");\n"
32878 " guestfs_mkdir (g, \"/var\");\n"
32882 #: ../src/guestfs.pod:219
32883 msgid "To create a symlink you could do:"
32884 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32887 #: ../src/guestfs.pod:221
32890 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32891 " \"/etc/rc3.d/S30portmap\");\n"
32894 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32895 " \"/etc/rc3.d/S30portmap\");\n"
32899 #: ../src/guestfs.pod:224
32901 "Libguestfs will reject attempts to use relative paths and there is no "
32902 "concept of a current working directory."
32906 #: ../src/guestfs.pod:227
32908 "Libguestfs can return errors in many situations: for example if the "
32909 "filesystem isn't writable, or if a file or directory that you requested "
32910 "doesn't exist. If you are using the C API (documented here) you have to "
32911 "check for those error conditions after each call. (Other language bindings "
32912 "turn these errors into exceptions)."
32916 #: ../src/guestfs.pod:233
32918 "File writes are affected by the per-handle umask, set by calling L</"
32919 "guestfs_umask> and defaulting to 022. See L</UMASK>."
32923 #: ../src/guestfs.pod:236
32924 msgid "PARTITIONING"
32925 msgstr "ПОДІЛ НА РОЗДІЛИ"
32928 #: ../src/guestfs.pod:238
32930 "Libguestfs contains API calls to read, create and modify partition tables on "
32935 #: ../src/guestfs.pod:241
32937 "In the common case where you want to create a single partition covering the "
32938 "whole disk, you should use the L</guestfs_part_disk> call:"
32942 #: ../src/guestfs.pod:245
32945 " const char *parttype = \"mbr\";\n"
32946 " if (disk_is_larger_than_2TB)\n"
32947 " parttype = \"gpt\";\n"
32948 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32951 " const char *parttype = \"mbr\";\n"
32952 " if (disk_is_larger_than_2TB)\n"
32953 " parttype = \"gpt\";\n"
32954 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32958 #: ../src/guestfs.pod:250
32960 "Obviously this effectively wipes anything that was on that disk image before."
32964 #: ../src/guestfs.pod:253
32969 #: ../src/guestfs.pod:255
32971 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32972 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
32973 "you familiarize yourself with the concepts of physical volumes, volume "
32974 "groups and logical volumes."
32978 #: ../src/guestfs.pod:260
32980 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32981 "tldp.org/HOWTO/LVM-HOWTO/>."
32985 #: ../src/guestfs.pod:263
32986 msgid "DOWNLOADING"
32987 msgstr "ОТРИМАННЯ ДАНИХ"
32990 #: ../src/guestfs.pod:265
32992 "Use L</guestfs_cat> to download small, text only files. This call is "
32993 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32994 "NUL (C<\\0>) characters. However the API is very simple to use."
32998 #: ../src/guestfs.pod:269
33000 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33001 "bit data, since it returns a (pointer, size) pair. However it is still "
33002 "limited to \"small\" files, less than 2 MB."
33006 #: ../src/guestfs.pod:273
33008 "L</guestfs_download> can be used to download any file, with no limits on "
33009 "content or size (even files larger than 4 GB)."
33013 #: ../src/guestfs.pod:276
33015 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33019 #: ../src/guestfs.pod:279
33021 msgstr "ВИВАНТАЖЕННЯ"
33024 #: ../src/guestfs.pod:281
33026 "It's often the case that you want to write a file or files to the disk image."
33030 #: ../src/guestfs.pod:284
33032 "To write a small file with fixed content, use L</guestfs_write>. To create "
33033 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33034 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
33035 "of other functions for creating test files, for example L</guestfs_fill> and "
33036 "L</guestfs_fill_pattern>."
33040 #: ../src/guestfs.pod:290
33042 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
33043 "file content or size (even files larger than 4 GB)."
33047 #: ../src/guestfs.pod:293
33049 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33053 #: ../src/guestfs.pod:295
33055 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33056 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33057 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
33058 "in a predictable way (eg. adding it last after all other drives) then you "
33059 "can get the device name from L</guestfs_list_devices> and mount it directly "
33060 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
33061 "portable between kernel versions, and they don't support labels or UUIDs. "
33062 "If you want to pre-build an image or you need to mount it using a label or "
33063 "UUID, use an ISO image instead."
33067 #: ../src/guestfs.pod:306
33069 msgstr "КОПІЮВАННЯ"
33072 #: ../src/guestfs.pod:308
33074 "There are various different commands for copying between files and devices "
33075 "and in and out of the guest filesystem. These are summarised in the table "
33080 #: ../src/guestfs.pod:314
33081 msgid "B<file> to B<file>"
33082 msgstr "B<файл> у B<файл>"
33085 #: ../src/guestfs.pod:316
33087 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33088 "directories recursively."
33092 #: ../src/guestfs.pod:319
33093 msgid "B<file or device> to B<file or device>"
33094 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33097 #: ../src/guestfs.pod:321
33099 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33100 "devices in the guest."
33104 #: ../src/guestfs.pod:324
33105 msgid "Example: duplicate the contents of an LV:"
33109 #: ../src/guestfs.pod:326
33112 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33115 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33119 #: ../src/guestfs.pod:328
33121 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33122 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
33123 "guestfs_copy_size>."
33127 #: ../src/guestfs.pod:332
33128 msgid "B<file on the host> to B<file or device>"
33132 #: ../src/guestfs.pod:334
33133 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
33137 #: ../src/guestfs.pod:336
33138 msgid "B<file or device> to B<file on the host>"
33142 #: ../src/guestfs.pod:338
33143 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
33147 #: ../src/guestfs.pod:342
33148 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33152 #: ../src/guestfs.pod:344
33154 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33155 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33156 "appears you can only upload and download to files. However many Un*x-like "
33157 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33158 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33159 "and arbitrary file descriptor N."
33163 #: ../src/guestfs.pod:352
33164 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33168 #: ../src/guestfs.pod:355
33171 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33174 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33178 #: ../src/guestfs.pod:357
33179 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33183 #: ../src/guestfs.pod:359
33186 " char devfd[64];\n"
33187 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33188 " guestfs_tar_out (g, \"/\", devfd);\n"
33191 " char devfd[64];\n"
33192 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33193 " guestfs_tar_out (g, \"/\", devfd);\n"
33197 #: ../src/guestfs.pod:363
33198 msgid "LISTING FILES"
33199 msgstr "СПИСКИ ФАЙЛІВ"
33202 #: ../src/guestfs.pod:365
33204 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33205 "L<guestfish(1)>-equivalent command C<ll>)."
33209 #: ../src/guestfs.pod:368
33211 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33212 "programs, as a flat list of strings."
33216 #: ../src/guestfs.pod:371
33218 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33219 "directory, plus additional information about each one. It is more "
33220 "equivalent to using the L<readdir(3)> call on a local filesystem."
33224 #: ../src/guestfs.pod:375
33226 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33230 #: ../src/guestfs.pod:378
33231 msgid "RUNNING COMMANDS"
33232 msgstr "ВИКОНАННЯ КОМАНД"
33235 #: ../src/guestfs.pod:380
33237 "Although libguestfs is primarily an API for manipulating files inside guest "
33238 "images, we also provide some limited facilities for running commands inside "
33243 #: ../src/guestfs.pod:384
33244 msgid "There are many limitations to this:"
33248 #: ../src/guestfs.pod:390
33250 "The kernel version that the command runs under will be different from what "
33255 #: ../src/guestfs.pod:395
33257 "If the command needs to communicate with daemons, then most likely they "
33258 "won't be running."
33262 #: ../src/guestfs.pod:400
33263 msgid "The command will be running in limited memory."
33267 #: ../src/guestfs.pod:404
33269 "The network may not be available unless you enable it (see L</"
33270 "guestfs_set_network>)."
33274 #: ../src/guestfs.pod:409
33275 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33279 #: ../src/guestfs.pod:413
33281 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33285 #: ../src/guestfs.pod:418
33287 "For SELinux guests, you may need to enable SELinux and load policy first. "
33288 "See L</SELINUX> in this manpage."
33292 #: ../src/guestfs.pod:423
33294 "I<Security:> It is not safe to run commands from untrusted, possibly "
33295 "malicious guests. These commands may attempt to exploit your program by "
33296 "sending unexpected output. They could also try to exploit the Linux kernel "
33297 "or qemu provided by the libguestfs appliance. They could use the network "
33298 "provided by the libguestfs appliance to bypass ordinary network partitions "
33299 "and firewalls. They could use the elevated privileges or different SELinux "
33300 "context of your program to their advantage."
33304 #: ../src/guestfs.pod:432
33306 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33307 "(a script which runs when the guest next boots normally), and to have this "
33308 "script run the commands you want in the normal context of the running guest, "
33309 "network security and so on. For information about other security issues, "
33310 "see L</SECURITY>."
33314 #: ../src/guestfs.pod:440
33316 "The two main API calls to run commands are L</guestfs_command> and L</"
33317 "guestfs_sh> (there are also variations)."
33321 #: ../src/guestfs.pod:443
33323 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33324 "shell globs, redirections, etc will work."
33328 #: ../src/guestfs.pod:446
33329 msgid "CONFIGURATION FILES"
33330 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33333 #: ../src/guestfs.pod:448
33335 "To read and write configuration files in Linux guest filesystems, we "
33336 "strongly recommend using Augeas. For example, Augeas understands how to "
33337 "read and write, say, a Linux shadow password file or X.org configuration "
33338 "file, and so avoids you having to write that code."
33342 #: ../src/guestfs.pod:453
33344 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
33345 "document Augeas itself here because there is excellent documentation on the "
33346 "L<http://augeas.net/> website."
33350 #: ../src/guestfs.pod:457
33352 "If you don't want to use Augeas (you fool!) then try calling L</"
33353 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33358 #: ../src/guestfs.pod:461
33363 #: ../src/guestfs.pod:463
33365 "We support SELinux guests. To ensure that labeling happens correctly in "
33366 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33370 #: ../src/guestfs.pod:471
33371 msgid "Before launching, do:"
33375 #: ../src/guestfs.pod:473
33378 " guestfs_set_selinux (g, 1);\n"
33381 " guestfs_set_selinux (g, 1);\n"
33385 #: ../src/guestfs.pod:477
33387 "After mounting the guest's filesystem(s), load the policy. This is best "
33388 "done by running the L<load_policy(8)> command in the guest itself:"
33392 #: ../src/guestfs.pod:481
33395 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33398 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33402 #: ../src/guestfs.pod:483
33404 "(Older versions of C<load_policy> require you to specify the name of the "
33409 #: ../src/guestfs.pod:488
33411 "Optionally, set the security context for the API. The correct security "
33412 "context to use can only be known by inspecting the guest. As an example:"
33416 #: ../src/guestfs.pod:492
33419 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33422 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33426 #: ../src/guestfs.pod:496
33427 msgid "This will work for running commands and editing existing files."
33431 #: ../src/guestfs.pod:498
33433 "When new files are created, you may need to label them explicitly, for "
33434 "example by running the external command C<restorecon pathname>."
33438 #: ../src/guestfs.pod:502
33443 #: ../src/guestfs.pod:504
33445 "Certain calls are affected by the current file mode creation mask (the "
33446 "\"umask\"). In particular ones which create files or directories, such as "
33447 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
33448 "either the default mode that the file is created with or modifies the mode "
33453 #: ../src/guestfs.pod:510
33455 "The default umask is C<022>, so files are created with modes such as C<0644> "
33456 "and directories with C<0755>."
33460 #: ../src/guestfs.pod:513
33462 "There are two ways to avoid being affected by umask. Either set umask to 0 "
33463 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
33464 "guestfs_chmod> after creating each file or directory."
33468 #: ../src/guestfs.pod:517
33469 msgid "For more information about umask, see L<umask(2)>."
33473 #: ../src/guestfs.pod:521
33475 "Libguestfs allows you to access Linux guests which have been encrypted using "
33476 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33477 "standard. This includes nearly all whole disk encryption systems used by "
33478 "modern Linux guests."
33482 #: ../src/guestfs.pod:527
33484 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33485 "returns the string C<crypto_LUKS>)."
33489 #: ../src/guestfs.pod:530
33491 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
33492 "will require the passphrase!"
33496 #: ../src/guestfs.pod:533
33498 "Opening a LUKS device creates a new device mapper device called C</dev/"
33499 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33500 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
33501 "from and encrypted to the underlying block device respectively."
33505 #: ../src/guestfs.pod:539
33507 "LVM volume groups on the device can be made visible by calling L</"
33508 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
33509 "(s) can now be mounted in the usual way."
33513 #: ../src/guestfs.pod:543
33515 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
33516 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33517 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
33518 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33519 "underlying encrypted block device)."
33523 #: ../src/guestfs.pod:550
33528 #: ../src/guestfs.pod:552
33530 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33531 "contains operating systems, an install CD or a live CD. (These APIs used to "
33532 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33533 "version 1.5.3 the most frequently used part of this library has been "
33534 "rewritten in C and moved into the core code)."
33538 #: ../src/guestfs.pod:559
33540 "Add all disks belonging to the unknown virtual machine and call L</"
33541 "guestfs_launch> in the usual way."
33545 #: ../src/guestfs.pod:562
33547 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
33548 "and certain heuristics, and returns a list of operating systems that were "
33549 "found. An empty list means none were found. A single element is the root "
33550 "filesystem of the operating system. For dual- or multi-boot guests, "
33551 "multiple roots can be returned, each one corresponding to a separate "
33552 "operating system. (Multi-boot virtual machines are extremely rare in the "
33553 "world of virtualization, but since this scenario can happen, we have built "
33554 "libguestfs to deal with it.)"
33558 #: ../src/guestfs.pod:571
33560 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33561 "to get additional details about that operating system. For example, call L</"
33562 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33563 "Windows and Linux-based operating systems respectively."
33567 #: ../src/guestfs.pod:577
33569 "Un*x-like and Linux-based operating systems usually consist of several "
33570 "filesystems which are mounted at boot time (for example, a separate boot "
33571 "partition mounted on C</boot>). The inspection rules are able to detect how "
33572 "filesystems correspond to mount points. Call "
33573 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
33574 "hash table like this example:"
33578 #: ../src/guestfs.pod:584
33581 " /boot => /dev/sda1\n"
33582 " / => /dev/vg_guest/lv_root\n"
33583 " /usr => /dev/vg_guest/lv_usr\n"
33586 " /boot => /dev/sda1\n"
33587 " / => /dev/vg_guest/lv_root\n"
33588 " /usr => /dev/vg_guest/lv_usr\n"
33592 #: ../src/guestfs.pod:588
33594 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33595 "filesystems as suggested."
33599 #: ../src/guestfs.pod:591
33601 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33602 "usr>). Sorting the keys of the hash by length, shortest first, should work."
33606 #: ../src/guestfs.pod:595
33608 "Inspection currently only works for some common operating systems. "
33609 "Contributors are welcome to send patches for other operating systems that we "
33610 "currently cannot detect."
33614 #: ../src/guestfs.pod:599
33616 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
33617 "for more details. The L</guestfs_inspect_os> function just ignores any "
33618 "encrypted devices."
33622 #: ../src/guestfs.pod:603
33624 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33625 "inspection and caches the results in the guest handle. Subsequent calls to "
33626 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33627 "read the disks. If you change the content of the guest disks, you can redo "
33628 "inspection by calling L</guestfs_inspect_os> again. (L</"
33629 "guestfs_inspect_list_applications> works a little differently from the other "
33630 "calls and does read the disks. See documentation for that function for "
33635 #: ../src/guestfs.pod:612
33636 msgid "INSPECTING INSTALL DISKS"
33640 #: ../src/guestfs.pod:614
33642 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33647 #: ../src/guestfs.pod:617
33649 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33650 "system, which currently can be C<installed> (a regular operating system) or "
33651 "C<installer> (some sort of install disk)."
33655 #: ../src/guestfs.pod:621
33657 "Further information is available about the operating system that can be "
33658 "installed using the regular inspection APIs like L</"
33659 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33663 #: ../src/guestfs.pod:626
33665 "Some additional information specific to installer disks is also available "
33666 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33667 "guestfs_inspect_is_multipart> calls."
33671 #: ../src/guestfs.pod:631
33672 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33676 #: ../src/guestfs.pod:633
33678 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
33679 "ntfs-3g.org/> driver."
33683 #: ../src/guestfs.pod:636
33684 msgid "DRIVE LETTERS AND PATHS"
33685 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33688 #: ../src/guestfs.pod:638
33690 "DOS and Windows still use drive letters, and the filesystems are always "
33691 "treated as case insensitive by Windows itself, and therefore you might find "
33692 "a Windows configuration file referring to a path like C<c:\\windows"
33693 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
33694 "might be referred to as C</WINDOWS/System32>."
33698 #: ../src/guestfs.pod:644
33700 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33701 "L</guestfs_inspect_get_drive_mappings>)"
33705 #: ../src/guestfs.pod:647
33707 "Dealing with separator characters (backslash vs forward slash) is outside "
33708 "the scope of libguestfs, but usually a simple character replacement will "
33713 #: ../src/guestfs.pod:651
33715 "To resolve the case insensitivity of paths, call L</"
33716 "guestfs_case_sensitive_path>."
33720 #: ../src/guestfs.pod:654
33721 msgid "ACCESSING THE WINDOWS REGISTRY"
33722 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33725 #: ../src/guestfs.pod:656
33727 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33728 "files, through the library C<hivex> which is part of the libguestfs project "
33729 "although ships as a separate tarball. You have to locate and download the "
33730 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
33731 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33732 "reg(1)> for more help on this issue."
33736 #: ../src/guestfs.pod:664
33737 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33738 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33741 #: ../src/guestfs.pod:666
33743 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33744 "provide something which looks like a Linux symlink. The way it tries to do "
33745 "the rewriting is described here:"
33749 #: ../src/guestfs.pod:670
33751 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33754 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33758 #: ../src/guestfs.pod:672
33760 "The essential problem is that ntfs-3g simply does not have enough "
33761 "information to do a correct job. NTFS links can contain drive letters and "
33762 "references to external device GUIDs that ntfs-3g has no way of resolving. "
33763 "It is almost certainly the case that libguestfs callers should ignore what "
33764 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33768 #: ../src/guestfs.pod:679
33770 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33771 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33772 "attribute, and read the raw reparse data from that (you can find the format "
33773 "documented in various places around the web)."
33777 #: ../src/guestfs.pod:684
33778 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33782 #: ../src/guestfs.pod:686
33784 "There are other useful extended attributes that can be read from ntfs-3g "
33785 "filesystems (using L</guestfs_getxattr>). See:"
33789 #: ../src/guestfs.pod:689
33791 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33793 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33796 #: ../src/guestfs.pod:691
33797 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33798 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33801 #: ../src/guestfs.pod:693
33803 "Although we don't want to discourage you from using the C API, we will "
33804 "mention here that the same API is also available in other languages."
33808 #: ../src/guestfs.pod:696
33810 "The API is broadly identical in all supported languages. This means that "
33811 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33812 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33813 "OCaml. In other words, a straightforward, predictable isomorphism between "
33818 #: ../src/guestfs.pod:702
33820 "Error messages are automatically transformed into exceptions if the language "
33825 #: ../src/guestfs.pod:705
33827 "We don't try to \"object orientify\" parts of the API in OO languages, "
33828 "although contributors are welcome to write higher level APIs above what we "
33829 "provide in their favourite languages if they wish."
33833 #: ../src/guestfs.pod:711
33838 #: ../src/guestfs.pod:713
33840 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
33841 "identical to the C API. C++ classes and exceptions are not used."
33845 #: ../src/guestfs.pod:717
33850 #: ../src/guestfs.pod:719
33852 "The C# bindings are highly experimental. Please read the warnings at the "
33853 "top of C<csharp/Libguestfs.cs>."
33857 #: ../src/guestfs.pod:722
33859 msgstr "B<Haskell>"
33862 #: ../src/guestfs.pod:724
33864 "This is the only language binding that is working but incomplete. Only "
33865 "calls which return simple integers have been bound in Haskell, and we are "
33866 "looking for help to complete this binding."
33870 #: ../src/guestfs.pod:728
33875 #: ../src/guestfs.pod:730
33877 "Full documentation is contained in the Javadoc which is distributed with "
33878 "libguestfs. For examples, see L<guestfs-java(3)>."
33882 #: ../src/guestfs.pod:733
33887 #: ../src/guestfs.pod:735
33888 msgid "See L<guestfs-ocaml(3)>."
33889 msgstr "Див. L<guestfs-ocaml(3)>."
33892 #: ../src/guestfs.pod:737
33897 #: ../src/guestfs.pod:739
33898 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33899 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33902 #: ../src/guestfs.pod:741
33907 #: ../src/guestfs.pod:743
33909 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33910 "the php-libguestfs package for your distribution."
33914 #: ../src/guestfs.pod:746
33915 msgid "The PHP binding only works correctly on 64 bit machines."
33919 #: ../src/guestfs.pod:748
33924 #: ../src/guestfs.pod:750
33925 msgid "See L<guestfs-python(3)>."
33926 msgstr "Див. L<guestfs-python(3)>."
33929 #: ../src/guestfs.pod:752
33934 #: ../src/guestfs.pod:754
33935 msgid "See L<guestfs-ruby(3)>."
33936 msgstr "Див. L<guestfs-ruby(3)>."
33939 #: ../src/guestfs.pod:756
33940 msgid "B<shell scripts>"
33941 msgstr "B<скрипти оболонки>"
33944 #: ../src/guestfs.pod:758
33945 msgid "See L<guestfish(1)>."
33946 msgstr "Див. L<guestfish(1)>."
33949 #: ../src/guestfs.pod:762
33950 msgid "LIBGUESTFS GOTCHAS"
33954 #: ../src/guestfs.pod:764
33956 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33957 "system [...] that works in the way it is documented but is counterintuitive "
33958 "and almost invites mistakes.\""
33962 #: ../src/guestfs.pod:768
33964 "Since we developed libguestfs and the associated tools, there are several "
33965 "things we would have designed differently, but are now stuck with for "
33966 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
33967 "release, you can expect these to change. Beware of them."
33971 #: ../src/guestfs.pod:776
33972 msgid "Autosync / forgetting to sync."
33976 #: ../src/guestfs.pod:778
33978 "I<Update:> Autosync is enabled by default for all API users starting from "
33979 "libguestfs 1.5.24. This section only applies to older versions."
33983 #: ../src/guestfs.pod:781
33985 "When modifying a filesystem from C or another language, you B<must> unmount "
33986 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33987 "libguestfs handle. You can also call:"
33991 #: ../src/guestfs.pod:785
33994 " guestfs_set_autosync (g, 1);\n"
33997 " guestfs_set_autosync (g, 1);\n"
34001 #: ../src/guestfs.pod:787
34003 "to have the unmount/sync done automatically for you when the handle 'g' is "
34004 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34008 #: ../src/guestfs.pod:791
34010 "If you forget to do this, then it is entirely possible that your changes "
34011 "won't be written out, or will be partially written, or (very rarely) that "
34012 "you'll get disk corruption."
34016 #: ../src/guestfs.pod:795
34018 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
34019 "guestfish scripts that forget to sync will work just fine, which can make "
34020 "this very puzzling if you are trying to debug a problem."
34024 #: ../src/guestfs.pod:799
34025 msgid "Mount option C<-o sync> should not be the default."
34029 #: ../src/guestfs.pod:801
34031 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
34032 "However C<-o sync> does not add any reliability benefit, but does have a "
34033 "very large performance impact."
34037 #: ../src/guestfs.pod:805
34039 "The work around is to use L</guestfs_mount_options> and set the mount "
34040 "options that you actually want to use."
34044 #: ../src/guestfs.pod:808
34045 msgid "Read-only should be the default."
34049 #: ../src/guestfs.pod:810
34051 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34052 "specify I<--rw> if you want to make changes to the image."
34056 #: ../src/guestfs.pod:813
34057 msgid "This would reduce the potential to corrupt live VM images."
34061 #: ../src/guestfs.pod:815
34063 "Note that many filesystems change the disk when you just mount and unmount, "
34064 "even if you didn't perform any writes. You need to use L</"
34065 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34069 #: ../src/guestfs.pod:819
34070 msgid "guestfish command line is hard to use."
34074 #: ../src/guestfs.pod:821
34076 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34077 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
34078 "exist, so it fails. In earlier versions of guestfish the error message was "
34079 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
34080 "we should have used C<guestfish -c command> to run commands."
34084 #: ../src/guestfs.pod:828
34085 msgid "guestfish megabyte modifiers don't work right on all commands"
34089 #: ../src/guestfs.pod:830
34091 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34092 "other modifiers). What guestfish actually does is to multiply the number "
34093 "part by the modifier part and pass the result to the C API. However this "
34094 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34095 "expecting some other unit (eg. megabytes)."
34099 #: ../src/guestfs.pod:837
34100 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
34104 #: ../src/guestfs.pod:839
34107 " lvcreate LV VG 100M\n"
34110 " lvcreate LV VG 100M\n"
34114 #: ../src/guestfs.pod:841
34116 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
34117 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34118 "megabytes * megabytes) logical volume. The error message you get from this "
34119 "is also a little obscure."
34123 #: ../src/guestfs.pod:846
34125 "This could be fixed in the generator by specially marking parameters and "
34126 "return values which take bytes or other units."
34130 #: ../src/guestfs.pod:849
34131 msgid "Ambiguity between devices and paths"
34135 #: ../src/guestfs.pod:851
34137 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34138 "sdb2>) and a similar pathname. A file might just happen to be called "
34139 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34143 #: ../src/guestfs.pod:856
34145 "In the current API we usually resolve this ambiguity by having two separate "
34146 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
34147 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34148 "detecting if the path supplied begins with C</dev/>."
34152 #: ../src/guestfs.pod:862
34154 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34155 "make paths/devices into structured names. One way to do this would be to "
34156 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34157 "aspect of grub. Another way would be to use a structured type, equivalent "
34158 "to this OCaml type:"
34162 #: ../src/guestfs.pod:868
34165 " type path = Path of string | Device of int | Partition of int * int\n"
34170 #: ../src/guestfs.pod:870
34171 msgid "which would allow you to pass arguments like:"
34175 #: ../src/guestfs.pod:872
34178 " Path \"/foo/bar\"\n"
34179 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
34180 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34181 " Path \"/dev/sdb2\" (* not a device *)\n"
34186 #: ../src/guestfs.pod:877
34188 "As you can see there are still problems to resolve even with this "
34189 "representation. Also consider how it might work in guestfish."
34193 #: ../src/guestfs.pod:882
34194 msgid "KEYS AND PASSPHRASES"
34195 msgstr "КЛЮЧІ І ПАРОЛІ"
34198 #: ../src/guestfs.pod:884
34200 "Certain libguestfs calls take a parameter that contains sensitive key "
34201 "material, passed in as a C string."
34205 #: ../src/guestfs.pod:887
34207 "In the future we would hope to change the libguestfs implementation so that "
34208 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34209 "swap. However this is I<not> done at the moment, because of the complexity "
34210 "of such an implementation."
34214 #: ../src/guestfs.pod:892
34216 "Therefore you should be aware that any key parameter you pass to libguestfs "
34217 "might end up being written out to the swap partition. If this is a concern, "
34218 "scrub the swap partition or don't use libguestfs on encrypted devices."
34222 #: ../src/guestfs.pod:897
34223 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34227 #: ../src/guestfs.pod:899
34229 "All high-level libguestfs actions are synchronous. If you want to use "
34230 "libguestfs asynchronously then you must create a thread."
34234 #: ../src/guestfs.pod:902
34236 "Only use the handle from a single thread. Either use the handle exclusively "
34237 "from one thread, or provide your own mutex so that two threads cannot issue "
34238 "calls on the same handle at the same time."
34242 #: ../src/guestfs.pod:906
34244 "See the graphical program guestfs-browser for one possible architecture for "
34245 "multithreaded programs using libvirt and libguestfs."
34249 #: ../src/guestfs.pod:909
34254 #: ../src/guestfs.pod:911
34256 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34261 #: ../src/guestfs.pod:914
34263 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34264 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34268 #: ../src/guestfs.pod:917
34270 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34271 "to change the directories that libguestfs will search in. The value is a "
34272 "colon-separated list of paths. The current directory is I<not> searched "
34273 "unless the path contains an empty element or C<.>. For example "
34274 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34275 "then C</usr/lib/guestfs>."
34279 #: ../src/guestfs.pod:924
34280 msgid "QEMU WRAPPERS"
34284 #: ../src/guestfs.pod:926
34286 "If you want to compile your own qemu, run qemu from a non-standard location, "
34287 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34292 #: ../src/guestfs.pod:930
34294 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34295 "last command in the shell script (so that qemu replaces the shell and "
34296 "becomes the direct child of the libguestfs-using program). If you don't do "
34297 "this, then the qemu process won't be cleaned up correctly."
34301 #: ../src/guestfs.pod:935
34303 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34308 #: ../src/guestfs.pod:938
34312 " qemudir=/home/rjones/d/qemu\n"
34313 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34317 " qemudir=/home/rjones/d/qemu\n"
34318 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34322 #: ../src/guestfs.pod:942
34324 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34325 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
34330 #: ../src/guestfs.pod:946
34333 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34336 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34340 #: ../src/guestfs.pod:948
34342 "Note that libguestfs also calls qemu with the -help and -version options in "
34343 "order to determine features."
34347 #: ../src/guestfs.pod:951
34348 msgid "ATTACHING TO RUNNING DAEMONS"
34349 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34352 #: ../src/guestfs.pod:953
34354 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34355 "babies. Use with caution."
34359 #: ../src/guestfs.pod:956
34361 "I<Note (2):> This section explains how to attach to a running daemon from a "
34362 "low level perspective. For most users, simply using virt tools such as "
34363 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34367 #: ../src/guestfs.pod:960
34368 msgid "Using guestfs_set_attach_method"
34369 msgstr "За допомогою guestfs_set_attach_method"
34372 #: ../src/guestfs.pod:962
34374 "By calling L</guestfs_set_attach_method> you can change how the library "
34375 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34376 "ARCHITECTURE> for some background)."
34380 #: ../src/guestfs.pod:966
34382 "The normal attach method is C<appliance>, where a small appliance is created "
34383 "containing the daemon, and then the library connects to this."
34387 #: ../src/guestfs.pod:969
34389 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34390 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34391 "daemon over the Unix domain socket."
34395 #: ../src/guestfs.pod:973
34397 "The normal use for this is to connect to a running virtual machine that "
34398 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34399 "files inside the live virtual machine."
34403 #: ../src/guestfs.pod:977
34404 msgid "Using guestfs_add_domain with live flag"
34405 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34408 #: ../src/guestfs.pod:979
34410 "L</guestfs_add_domain> provides some help for getting the correct attach "
34411 "method. If you pass the C<live> option to this function, then (if the "
34412 "virtual machine is running) it will examine the libvirt XML looking for a "
34413 "virtio-serial channel to connect to:"
34417 #: ../src/guestfs.pod:985
34424 " <channel type='unix'>\n"
34425 " <source mode='bind' path='/path/to/socket'/>\n"
34426 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34437 " <channel type='unix'>\n"
34438 " <source mode='bind' path='/path/to/socket'/>\n"
34439 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34447 #: ../src/guestfs.pod:997
34449 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34450 "method to C<unix:/path/to/socket>."
34454 #: ../src/guestfs.pod:1000
34456 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34457 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34458 "to attach to and modify live virtual machines."
34462 #: ../src/guestfs.pod:1004
34464 "The virtual machine needs to have been set up beforehand so that it has the "
34465 "virtio-serial channel and so that guestfsd is running inside it."
34469 #: ../src/guestfs.pod:1008
34470 msgid "ABI GUARANTEE"
34471 msgstr "ГАРАНТІЯ ЩОДО ABI"
34474 #: ../src/guestfs.pod:1010
34476 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34477 "actions as outlined in this section. Although we will deprecate some "
34478 "actions, for example if they get replaced by newer calls, we will keep the "
34479 "old actions forever. This allows you the developer to program in confidence "
34480 "against the libguestfs API."
34484 #: ../src/guestfs.pod:1016
34485 msgid "BLOCK DEVICE NAMING"
34486 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34489 #: ../src/guestfs.pod:1018
34491 "In the kernel there is now quite a profusion of schemata for naming block "
34492 "devices (in this context, by I<block device> I mean a physical or virtual "
34493 "hard drive). The original Linux IDE driver used names starting with C</dev/"
34494 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
34495 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
34496 "for the old IDE driver (particularly for SATA devices) those devices also "
34497 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
34498 "paravirtualized drivers. This has created several different naming systems, "
34499 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34503 #: ../src/guestfs.pod:1030
34505 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34506 "Linux kernel to access block devices. We can run a variety of appliances "
34507 "based on a variety of Linux kernels."
34511 #: ../src/guestfs.pod:1034
34513 "This causes a problem for libguestfs because many API calls use device or "
34514 "partition names. Working scripts and the recipe (example) scripts that we "
34515 "make available over the internet could fail if the naming scheme changes."
34519 #: ../src/guestfs.pod:1039
34521 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
34522 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34523 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34524 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34528 #: ../src/guestfs.pod:1045
34530 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
34531 "L</guestfs_list_partitions> and similar calls return the true names of the "
34532 "devices and partitions as known to the appliance."
34536 #: ../src/guestfs.pod:1050
34537 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34541 #: ../src/guestfs.pod:1052
34543 "Usually this translation is transparent. However in some (very rare) cases "
34544 "you may need to know the exact algorithm. Such cases include where you use "
34545 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34546 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34550 #: ../src/guestfs.pod:1058
34552 "The algorithm is applied only to I<parameters> which are known to be either "
34553 "device or partition names. Return values from functions such as L</"
34554 "guestfs_list_devices> are never changed."
34558 #: ../src/guestfs.pod:1066
34559 msgid "Is the string a parameter which is a device or partition name?"
34563 #: ../src/guestfs.pod:1070
34564 msgid "Does the string begin with C</dev/sd>?"
34565 msgstr "Чи починається рядок з C</dev/sd>?"
34568 #: ../src/guestfs.pod:1074
34570 "Does the named device exist? If so, we use that device. However if I<not> "
34571 "then we continue with this algorithm."
34575 #: ../src/guestfs.pod:1079
34576 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34580 #: ../src/guestfs.pod:1081
34581 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34585 #: ../src/guestfs.pod:1083
34586 msgid "If that named device exists, use it. If not, continue."
34590 #: ../src/guestfs.pod:1087
34591 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34595 #: ../src/guestfs.pod:1089
34596 msgid "If that named device exists, use it. If not, return an error."
34600 #: ../src/guestfs.pod:1093
34601 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34605 #: ../src/guestfs.pod:1095
34607 "Although the standard naming scheme and automatic translation is useful for "
34608 "simple programs and guestfish scripts, for larger programs it is best not to "
34609 "rely on this mechanism."
34613 #: ../src/guestfs.pod:1099
34615 "Where possible for maximum future portability programs using libguestfs "
34616 "should use these future-proof techniques:"
34620 #: ../src/guestfs.pod:1106
34622 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34623 "device names, and then use those names directly."
34627 #: ../src/guestfs.pod:1109
34629 "Since those device names exist by definition, they will never be translated."
34633 #: ../src/guestfs.pod:1114
34635 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34636 "filesystem labels."
34640 #: ../src/guestfs.pod:1119
34645 #: ../src/guestfs.pod:1121
34647 "This section discusses security implications of using libguestfs, "
34648 "particularly with untrusted or malicious guests or disk images."
34652 #: ../src/guestfs.pod:1124
34653 msgid "GENERAL SECURITY CONSIDERATIONS"
34654 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34657 #: ../src/guestfs.pod:1126
34659 "Be careful with any files or data that you download from a guest (by "
34660 "\"download\" we mean not just the L</guestfs_download> command but any "
34661 "command that reads files, filenames, directories or anything else from a "
34662 "disk image). An attacker could manipulate the data to fool your program "
34663 "into doing the wrong thing. Consider cases such as:"
34667 #: ../src/guestfs.pod:1136
34668 msgid "the data (file etc) not being present"
34672 #: ../src/guestfs.pod:1140
34673 msgid "being present but empty"
34677 #: ../src/guestfs.pod:1144
34678 msgid "being much larger than normal"
34682 #: ../src/guestfs.pod:1148
34683 msgid "containing arbitrary 8 bit data"
34687 #: ../src/guestfs.pod:1152
34688 msgid "being in an unexpected character encoding"
34692 #: ../src/guestfs.pod:1156
34693 msgid "containing homoglyphs."
34697 #: ../src/guestfs.pod:1160
34698 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34699 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34702 #: ../src/guestfs.pod:1162
34704 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34705 "(VFS) module can sometimes be escalated into exploits by deliberately "
34706 "creating a malicious, malformed filesystem. These exploits are very severe "
34707 "for two reasons. Firstly there are very many filesystem drivers in the "
34708 "kernel, and many of them are infrequently used and not much developer "
34709 "attention has been paid to the code. Linux userspace helps potential "
34710 "crackers by detecting the filesystem type and automatically choosing the "
34711 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34712 "the administrator. Secondly, a kernel-level exploit is like a local root "
34713 "exploit (worse in some ways), giving immediate and total access to the "
34714 "system right down to the hardware level."
34718 #: ../src/guestfs.pod:1175
34720 "That explains why you should never mount a filesystem from an untrusted "
34721 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
34722 "inside a qemu virtual machine, usually running as a non-root user. The "
34723 "attacker would need to write a filesystem which first exploited the kernel, "
34724 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34725 "the libguestfs protocol, and finally to be as serious as the host kernel "
34726 "exploit it would need to escalate its privileges to root. This multi-step "
34727 "escalation, performed by a static piece of data, is thought to be extremely "
34728 "hard to do, although we never say 'never' about security issues."
34732 #: ../src/guestfs.pod:1186
34734 "In any case callers can reduce the attack surface by forcing the filesystem "
34735 "type when mounting (use L</guestfs_mount_vfs>)."
34739 #: ../src/guestfs.pod:1189
34740 msgid "PROTOCOL SECURITY"
34741 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34744 #: ../src/guestfs.pod:1191
34746 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
34747 "defined upper message size. However a program that uses libguestfs must "
34748 "also take care - for example you can write a program that downloads a binary "
34749 "from a disk image and executes it locally, and no amount of protocol "
34750 "security will save you from the consequences."
34754 #: ../src/guestfs.pod:1197
34755 msgid "INSPECTION SECURITY"
34759 #: ../src/guestfs.pod:1199
34761 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34762 "directly from the guest, and these could contain any 8 bit data. Callers "
34763 "should be careful to escape these before printing them to a structured file "
34764 "(for example, use HTML escaping if creating a web page)."
34768 #: ../src/guestfs.pod:1205
34770 "Guest configuration may be altered in unusual ways by the administrator of "
34771 "the virtual machine, and may not reflect reality (particularly for untrusted "
34772 "or actively malicious guests). For example we parse the hostname from "
34773 "configuration files like C</etc/sysconfig/network> that we find in the "
34774 "guest, but the guest administrator can easily manipulate these files to "
34775 "provide the wrong hostname."
34779 #: ../src/guestfs.pod:1213
34781 "The inspection API parses guest configuration using two external libraries: "
34782 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
34783 "designed to be robust in the face of malicious data, although denial of "
34784 "service attacks are still possible, for example with oversized configuration "
34789 #: ../src/guestfs.pod:1219
34790 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34791 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34794 #: ../src/guestfs.pod:1221
34796 "Be very cautious about running commands from the guest. By running a "
34797 "command in the guest, you are giving CPU time to a binary that you do not "
34798 "control, under the same user account as the library, albeit wrapped in qemu "
34799 "virtualization. More information and alternatives can be found in the "
34800 "section L</RUNNING COMMANDS>."
34804 #: ../src/guestfs.pod:1227
34805 msgid "CVE-2010-3851"
34806 msgstr "CVE-2010-3851"
34809 #: ../src/guestfs.pod:1229
34810 msgid "https://bugzilla.redhat.com/642934"
34811 msgstr "https://bugzilla.redhat.com/642934"
34814 #: ../src/guestfs.pod:1231
34816 "This security bug concerns the automatic disk format detection that qemu "
34817 "does on disk images."
34821 #: ../src/guestfs.pod:1234
34823 "A raw disk image is just the raw bytes, there is no header. Other disk "
34824 "images like qcow2 contain a special header. Qemu deals with this by looking "
34825 "for one of the known headers, and if none is found then assuming the disk "
34826 "image must be raw."
34830 #: ../src/guestfs.pod:1239
34832 "This allows a guest which has been given a raw disk image to write some "
34833 "other header. At next boot (or when the disk image is accessed by "
34834 "libguestfs) qemu would do autodetection and think the disk image format was, "
34835 "say, qcow2 based on the header written by the guest."
34839 #: ../src/guestfs.pod:1244
34841 "This in itself would not be a problem, but qcow2 offers many features, one "
34842 "of which is to allow a disk image to refer to another image (called the "
34843 "\"backing disk\"). It does this by placing the path to the backing disk "
34844 "into the qcow2 header. This path is not validated and could point to any "
34845 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
34846 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34847 "control of the attacker."
34851 #: ../src/guestfs.pod:1252
34853 "In libguestfs this is rather hard to exploit except under two circumstances:"
34857 #: ../src/guestfs.pod:1259
34858 msgid "You have enabled the network or have opened the disk in write mode."
34862 #: ../src/guestfs.pod:1263
34864 "You are also running untrusted code from the guest (see L</RUNNING "
34869 #: ../src/guestfs.pod:1268
34871 "The way to avoid this is to specify the expected disk format when adding "
34872 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
34873 "should always do this if the disk is raw format, and it's a good idea for "
34878 #: ../src/guestfs.pod:1273
34880 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34881 "format is fetched from libvirt and passed through."
34885 #: ../src/guestfs.pod:1276
34887 "For libguestfs tools, use the I<--format> command line parameter as "
34892 #: ../src/guestfs.pod:1279
34893 msgid "CONNECTION MANAGEMENT"
34894 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34897 #: ../src/guestfs.pod:1281
34898 msgid "guestfs_h *"
34899 msgstr "guestfs_h *"
34902 #: ../src/guestfs.pod:1283
34904 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
34905 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
34906 "handle and release all resources used."
34910 #: ../src/guestfs.pod:1287
34912 "For information on using multiple handles and threads, see the section L</"
34913 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34917 #: ../src/guestfs.pod:1290
34918 msgid "guestfs_create"
34919 msgstr "guestfs_create"
34922 #: ../src/guestfs.pod:1292
34925 " guestfs_h *guestfs_create (void);\n"
34928 " guestfs_h *guestfs_create (void);\n"
34932 #: ../src/guestfs.pod:1294
34933 msgid "Create a connection handle."
34934 msgstr "Створити дескриптор з’єднання."
34937 #: ../src/guestfs.pod:1296
34939 "On success this returns a non-NULL pointer to a handle. On error it returns "
34944 #: ../src/guestfs.pod:1299
34946 "You have to \"configure\" the handle after creating it. This includes "
34947 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34948 "handle at least once."
34952 #: ../src/guestfs.pod:1303
34953 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34957 #: ../src/guestfs.pod:1305
34959 "You may also want to configure error handling for the handle. See the L</"
34960 "ERROR HANDLING> section below."
34964 #: ../src/guestfs.pod:1308
34965 msgid "guestfs_close"
34966 msgstr "guestfs_close"
34969 #: ../src/guestfs.pod:1310
34972 " void guestfs_close (guestfs_h *g);\n"
34975 " void guestfs_close (guestfs_h *g);\n"
34979 #: ../src/guestfs.pod:1312
34980 msgid "This closes the connection handle and frees up all resources used."
34984 #: ../src/guestfs.pod:1314
34986 "If autosync was set on the handle and the handle was launched, then this "
34987 "implicitly calls various functions to unmount filesystems and sync the "
34988 "disk. See L</guestfs_set_autosync> for more details."
34992 #: ../src/guestfs.pod:1318
34993 msgid "If a close callback was set on the handle, then it is called."
34997 #: ../src/guestfs.pod:1320
34998 msgid "ERROR HANDLING"
34999 msgstr "ОБРОБКА ПОМИЛОК"
35002 #: ../src/guestfs.pod:1322
35004 "API functions can return errors. For example, almost all functions that "
35005 "return C<int> will return C<-1> to indicate an error."
35009 #: ../src/guestfs.pod:1325
35011 "Additional information is available for errors: an error message string and "
35012 "optionally an error number (errno) if the thing that failed was a system "
35017 #: ../src/guestfs.pod:1329
35019 "You can get at the additional information about the last error on the handle "
35020 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35021 "up an error handler with L</guestfs_set_error_handler>."
35025 #: ../src/guestfs.pod:1334
35027 "When the handle is created, a default error handler is installed which "
35028 "prints the error message string to C<stderr>. For small short-running "
35029 "command line programs it is sufficient to do:"
35033 #: ../src/guestfs.pod:1338
35036 " if (guestfs_launch (g) == -1)\n"
35037 " exit (EXIT_FAILURE);\n"
35040 " if (guestfs_launch (g) == -1)\n"
35041 " exit (EXIT_FAILURE);\n"
35045 #: ../src/guestfs.pod:1341
35047 "since the default error handler will ensure that an error message has been "
35048 "printed to C<stderr> before the program exits."
35052 #: ../src/guestfs.pod:1344
35054 "For other programs the caller will almost certainly want to install an "
35055 "alternate error handler or do error handling in-line like this:"
35059 #: ../src/guestfs.pod:1347
35062 " g = guestfs_create ();\n"
35065 " g = guestfs_create ();\n"
35069 #: ../src/guestfs.pod:1349
35072 " /* This disables the default behaviour of printing errors\n"
35074 " guestfs_set_error_handler (g, NULL, NULL);\n"
35079 #: ../src/guestfs.pod:1353
35082 " if (guestfs_launch (g) == -1) {\n"
35083 " /* Examine the error message and print it etc. */\n"
35084 " char *msg = guestfs_last_error (g);\n"
35085 " int errnum = guestfs_last_errno (g);\n"
35086 " fprintf (stderr, \"%s\\n\", msg);\n"
35091 " if (guestfs_launch (g) == -1) {\n"
35092 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35093 " char *msg = guestfs_last_error (g);\n"
35094 " int errnum = guestfs_last_errno (g);\n"
35095 " fprintf (stderr, \"%s\\n\", msg);\n"
35101 #: ../src/guestfs.pod:1361
35103 "Out of memory errors are handled differently. The default action is to call "
35104 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
35105 "guestfs_set_out_of_memory_handler>."
35109 #: ../src/guestfs.pod:1365
35111 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35112 "because there is no handle if this happens there is no way to get additional "
35113 "error information. However L</guestfs_create> is supposed to be a "
35114 "lightweight operation which can only fail because of insufficient memory (it "
35115 "returns NULL in this case)."
35119 #: ../src/guestfs.pod:1371
35120 msgid "guestfs_last_error"
35121 msgstr "guestfs_last_error"
35124 #: ../src/guestfs.pod:1373
35127 " const char *guestfs_last_error (guestfs_h *g);\n"
35130 " const char *guestfs_last_error (guestfs_h *g);\n"
35134 #: ../src/guestfs.pod:1375
35136 "This returns the last error message that happened on C<g>. If there has not "
35137 "been an error since the handle was created, then this returns C<NULL>."
35141 #: ../src/guestfs.pod:1379
35143 "The lifetime of the returned string is until the next error occurs, or L</"
35144 "guestfs_close> is called."
35148 #: ../src/guestfs.pod:1382
35149 msgid "guestfs_last_errno"
35150 msgstr "guestfs_last_errno"
35153 #: ../src/guestfs.pod:1384
35156 " int guestfs_last_errno (guestfs_h *g);\n"
35159 " int guestfs_last_errno (guestfs_h *g);\n"
35163 #: ../src/guestfs.pod:1386
35164 msgid "This returns the last error number (errno) that happened on C<g>."
35168 #: ../src/guestfs.pod:1388
35169 msgid "If successful, an errno integer not equal to zero is returned."
35173 #: ../src/guestfs.pod:1390
35175 "If no error, this returns 0. This call can return 0 in three situations:"
35179 #: ../src/guestfs.pod:1397
35180 msgid "There has not been any error on the handle."
35184 #: ../src/guestfs.pod:1401
35186 "There has been an error but the errno was meaningless. This corresponds to "
35187 "the case where the error did not come from a failed system call, but for "
35188 "some other reason."
35192 #: ../src/guestfs.pod:1407
35194 "There was an error from a failed system call, but for some reason the errno "
35195 "was not captured and returned. This usually indicates a bug in libguestfs."
35199 #: ../src/guestfs.pod:1413
35201 "Libguestfs tries to convert the errno from inside the applicance into a "
35202 "corresponding errno for the caller (not entirely trivial: the appliance "
35203 "might be running a completely different operating system from the library "
35204 "and error numbers are not standardized across Un*xen). If this could not be "
35205 "done, then the error is translated to C<EINVAL>. In practice this should "
35206 "only happen in very rare circumstances."
35210 #: ../src/guestfs.pod:1421
35211 msgid "guestfs_set_error_handler"
35212 msgstr "guestfs_set_error_handler"
35215 #: ../src/guestfs.pod:1423
35218 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35220 " const char *msg);\n"
35221 " void guestfs_set_error_handler (guestfs_h *g,\n"
35222 " guestfs_error_handler_cb cb,\n"
35223 " void *opaque);\n"
35226 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35228 " const char *msg);\n"
35229 " void guestfs_set_error_handler (guestfs_h *g,\n"
35230 " guestfs_error_handler_cb cb,\n"
35231 " void *opaque);\n"
35235 #: ../src/guestfs.pod:1430
35237 "The callback C<cb> will be called if there is an error. The parameters "
35238 "passed to the callback are an opaque data pointer and the error message "
35243 #: ../src/guestfs.pod:1434
35245 "C<errno> is not passed to the callback. To get that the callback must call "
35246 "L</guestfs_last_errno>."
35250 #: ../src/guestfs.pod:1437
35252 "Note that the message string C<msg> is freed as soon as the callback "
35253 "function returns, so if you want to stash it somewhere you must make your "
35258 #: ../src/guestfs.pod:1441
35259 msgid "The default handler prints messages on C<stderr>."
35263 #: ../src/guestfs.pod:1443
35264 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35268 #: ../src/guestfs.pod:1445
35269 msgid "guestfs_get_error_handler"
35270 msgstr "guestfs_get_error_handler"
35273 #: ../src/guestfs.pod:1447
35276 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35277 " void **opaque_rtn);\n"
35280 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35281 " void **opaque_rtn);\n"
35285 #: ../src/guestfs.pod:1450
35286 msgid "Returns the current error handler callback."
35290 #: ../src/guestfs.pod:1452
35291 msgid "guestfs_set_out_of_memory_handler"
35292 msgstr "guestfs_set_out_of_memory_handler"
35295 #: ../src/guestfs.pod:1454
35298 #| " typedef void (*guestfs_abort_cb) (void);\n"
35299 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35300 #| " guestfs_abort_cb);\n"
35303 " typedef void (*guestfs_abort_cb) (void);\n"
35304 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35305 " guestfs_abort_cb);\n"
35308 " typedef void (*guestfs_abort_cb) (void);\n"
35309 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35310 " guestfs_abort_cb);\n"
35314 #: ../src/guestfs.pod:1458
35316 "The callback C<cb> will be called if there is an out of memory situation. "
35317 "I<Note this callback must not return>."
35321 #: ../src/guestfs.pod:1461
35322 msgid "The default is to call L<abort(3)>."
35326 #: ../src/guestfs.pod:1463
35328 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
35332 #: ../src/guestfs.pod:1466
35333 msgid "guestfs_get_out_of_memory_handler"
35334 msgstr "guestfs_get_out_of_memory_handler"
35337 #: ../src/guestfs.pod:1468
35340 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35343 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35347 #: ../src/guestfs.pod:1470
35348 msgid "This returns the current out of memory handler."
35352 #: ../src/guestfs.pod:1472
35354 msgstr "ВИКЛИКИ API"
35357 #: ../src/guestfs.pod:1476
35362 #: ../src/guestfs.pod:1478
35367 #: ../src/guestfs.pod:1480
35368 msgid "AVAILABILITY"
35369 msgstr "ДОСТУПНІСТЬ"
35372 #: ../src/guestfs.pod:1482
35373 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35374 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35377 #: ../src/guestfs.pod:1484
35379 "Using L</guestfs_available> you can test availability of the following "
35380 "groups of functions. This test queries the appliance to see if the "
35381 "appliance you are currently using supports the functionality."
35385 #: ../src/guestfs.pod:1489
35386 msgid "@AVAILABILITY@"
35387 msgstr "@AVAILABILITY@"
35390 #: ../src/guestfs.pod:1491
35391 msgid "GUESTFISH supported COMMAND"
35395 #: ../src/guestfs.pod:1493
35397 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35398 "prints out the available groups and whether they are supported by this build "
35399 "of libguestfs. Note however that you have to do C<run> first."
35403 #: ../src/guestfs.pod:1498
35404 msgid "SINGLE CALLS AT COMPILE TIME"
35408 #: ../src/guestfs.pod:1500
35410 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35411 "function, such as:"
35415 #: ../src/guestfs.pod:1503
35418 " #define LIBGUESTFS_HAVE_DD 1\n"
35421 " #define LIBGUESTFS_HAVE_DD 1\n"
35425 #: ../src/guestfs.pod:1505
35426 msgid "if L</guestfs_dd> is available."
35430 #: ../src/guestfs.pod:1507
35432 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35433 "function is available at compile time, we recommended using build tools such "
35434 "as autoconf or cmake. For example in autotools you could use:"
35438 #: ../src/guestfs.pod:1512
35441 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35442 " AC_CHECK_FUNCS([guestfs_dd])\n"
35445 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35446 " AC_CHECK_FUNCS([guestfs_dd])\n"
35450 #: ../src/guestfs.pod:1515
35452 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35457 #: ../src/guestfs.pod:1518
35458 msgid "SINGLE CALLS AT RUN TIME"
35462 #: ../src/guestfs.pod:1520
35464 "Testing at compile time doesn't guarantee that a function really exists in "
35465 "the library. The reason is that you might be dynamically linked against a "
35466 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
35467 "This situation unfortunately results in a segmentation fault, which is a "
35468 "shortcoming of the C dynamic linking system itself."
35472 #: ../src/guestfs.pod:1527
35474 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35475 "in this example program (note that you still need the compile time check as "
35480 #: ../src/guestfs.pod:1531
35483 " #include <stdio.h>\n"
35484 " #include <stdlib.h>\n"
35485 " #include <unistd.h>\n"
35486 " #include <dlfcn.h>\n"
35487 " #include <guestfs.h>\n"
35490 " #include <stdio.h>\n"
35491 " #include <stdlib.h>\n"
35492 " #include <unistd.h>\n"
35493 " #include <dlfcn.h>\n"
35494 " #include <guestfs.h>\n"
35498 #: ../src/guestfs.pod:1537
35503 " #ifdef LIBGUESTFS_HAVE_DD\n"
35505 " int has_function;\n"
35510 " #ifdef LIBGUESTFS_HAVE_DD\n"
35512 " int has_function;\n"
35516 #: ../src/guestfs.pod:1543
35519 " /* Test if the function guestfs_dd is really available. */\n"
35520 " dl = dlopen (NULL, RTLD_LAZY);\n"
35522 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35523 " exit (EXIT_FAILURE);\n"
35525 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35531 #: ../src/guestfs.pod:1552
35534 " if (!has_function)\n"
35535 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35537 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35538 " /* Now it's safe to call\n"
35539 " guestfs_dd (g, \"foo\", \"bar\");\n"
35543 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35550 #: ../src/guestfs.pod:1565
35552 "You may think the above is an awful lot of hassle, and it is. There are "
35553 "other ways outside of the C linking system to ensure that this kind of "
35554 "incompatibility never arises, such as using package versioning:"
35558 #: ../src/guestfs.pod:1570
35561 " Requires: libguestfs >= 1.0.80\n"
35566 #: ../src/guestfs.pod:1572
35567 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35571 #: ../src/guestfs.pod:1574
35573 "A recent feature of the API is the introduction of calls which take optional "
35574 "arguments. In C these are declared 3 ways. The main way is as a call which "
35575 "takes variable arguments (ie. C<...>), as in this example:"
35579 #: ../src/guestfs.pod:1579
35582 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35585 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35589 #: ../src/guestfs.pod:1581
35591 "Call this with a list of optional arguments, terminated by C<-1>. So to "
35592 "call with no optional arguments specified:"
35596 #: ../src/guestfs.pod:1584
35599 " guestfs_add_drive_opts (g, filename, -1);\n"
35602 " guestfs_add_drive_opts (g, filename, -1);\n"
35606 #: ../src/guestfs.pod:1586
35607 msgid "With a single optional argument:"
35611 #: ../src/guestfs.pod:1588
35614 " guestfs_add_drive_opts (g, filename,\n"
35615 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35619 " guestfs_add_drive_opts (g, filename,\n"
35620 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35625 #: ../src/guestfs.pod:1592
35630 #: ../src/guestfs.pod:1594
35633 " guestfs_add_drive_opts (g, filename,\n"
35634 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35635 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35639 " guestfs_add_drive_opts (g, filename,\n"
35640 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35641 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35646 #: ../src/guestfs.pod:1599
35648 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
35653 #: ../src/guestfs.pod:1602
35654 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35658 #: ../src/guestfs.pod:1604
35660 "The second variant has the same name with the suffix C<_va>, which works the "
35661 "same way but takes a C<va_list>. See the C manual for details. For the "
35662 "example function, this is declared:"
35666 #: ../src/guestfs.pod:1608
35669 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35670 " va_list args);\n"
35673 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35674 " va_list args);\n"
35678 #: ../src/guestfs.pod:1611
35679 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35683 #: ../src/guestfs.pod:1613
35685 "The third variant is useful where you need to construct these calls. You "
35686 "pass in a structure where you fill in the optional fields. The structure "
35687 "has a bitmask as the first element which you must set to indicate which "
35688 "fields you have filled in. For our example function the structure and call "
35693 #: ../src/guestfs.pod:1619
35696 " struct guestfs_add_drive_opts_argv {\n"
35697 " uint64_t bitmask;\n"
35699 " const char *format;\n"
35702 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35703 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35706 " struct guestfs_add_drive_opts_argv {\n"
35707 " uint64_t bitmask;\n"
35709 " const char *format;\n"
35712 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35713 " const struct guestfs_add_drive_opts_argv *optargs);\n"
35717 #: ../src/guestfs.pod:1628
35718 msgid "You could call it like this:"
35722 #: ../src/guestfs.pod:1630
35725 " struct guestfs_add_drive_opts_argv optargs = {\n"
35726 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35727 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35728 " .readonly = 1,\n"
35729 " .format = \"qcow2\"\n"
35733 " struct guestfs_add_drive_opts_argv optargs = {\n"
35734 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35735 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35736 " .readonly = 1,\n"
35737 " .format = \"qcow2\"\n"
35742 #: ../src/guestfs.pod:1637
35745 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35748 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35752 #: ../src/guestfs.pod:1645
35753 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35757 #: ../src/guestfs.pod:1650
35758 msgid "You do not need to fill in all fields of the structure."
35762 #: ../src/guestfs.pod:1654
35764 "There must be a one-to-one correspondence between fields of the structure "
35765 "that are filled in, and bits set in the bitmask."
35769 #: ../src/guestfs.pod:1659
35770 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35774 #: ../src/guestfs.pod:1661
35776 "In other languages, optional arguments are expressed in the way that is "
35777 "natural for that language. We refer you to the language-specific "
35778 "documentation for more details on that."
35782 #: ../src/guestfs.pod:1665
35783 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35787 #: ../src/guestfs.pod:1667
35788 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35792 #: ../src/guestfs.pod:1669
35794 "B<Note:> This section documents the generic event mechanism introduced in "
35795 "libguestfs 1.10, which you should use in new code if possible. The old "
35796 "functions C<guestfs_set_log_message_callback>, "
35797 "C<guestfs_set_subprocess_quit_callback>, "
35798 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35799 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35800 "page. Because of the ABI guarantee, the old functions continue to work."
35804 #: ../src/guestfs.pod:1678
35806 "Handles generate events when certain things happen, such as log messages "
35807 "being generated, progress messages during long-running operations, or the "
35808 "handle being closed. The API calls described below let you register a "
35809 "callback to be called when events happen. You can register multiple "
35810 "callbacks (for the same, different or overlapping sets of events), and "
35811 "individually remove callbacks. If callbacks are not removed, then they "
35812 "remain in force until the handle is closed."
35816 #: ../src/guestfs.pod:1686
35818 "In the current implementation, events are only generated synchronously: that "
35819 "means that events (and hence callbacks) can only happen while you are in the "
35820 "middle of making another libguestfs call. The callback is called in the "
35825 #: ../src/guestfs.pod:1691
35827 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35828 "unsigned integers, or a message buffer. Payloads are discussed later on."
35832 #: ../src/guestfs.pod:1695
35833 msgid "CLASSES OF EVENTS"
35837 #: ../src/guestfs.pod:1699
35838 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35842 #: ../src/guestfs.pod:1702
35844 "The callback function will be called while the handle is being closed "
35845 "(synchronously from L</guestfs_close>)."
35849 #: ../src/guestfs.pod:1705
35851 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35852 "handles that are open when the program exits. This means that this callback "
35853 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35854 "problems in higher-level languages (eg. if your HLL interpreter has already "
35855 "been cleaned up by the time this is called, and if your callback then jumps "
35856 "into some HLL function)."
35860 #: ../src/guestfs.pod:1712
35862 "If no callback is registered: the handle is closed without any callback "
35867 #: ../src/guestfs.pod:1715
35868 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35872 #: ../src/guestfs.pod:1718
35874 "The callback function will be called when the child process quits, either "
35875 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
35876 "corresponds to a transition from any state to the CONFIG state)."
35880 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
35881 msgid "If no callback is registered: the event is ignored."
35885 #: ../src/guestfs.pod:1724
35886 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35890 #: ../src/guestfs.pod:1727
35892 "The callback function will be called when the child process becomes ready "
35893 "first time after it has been launched. (This corresponds to a transition "
35894 "from LAUNCHING to the READY state)."
35898 #: ../src/guestfs.pod:1733
35899 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35903 #: ../src/guestfs.pod:1736
35905 "Some long-running operations can generate progress messages. If this "
35906 "callback is registered, then it will be called each time a progress message "
35907 "is generated (usually two seconds after the operation started, and three "
35908 "times per second thereafter until it completes, although the frequency may "
35909 "change in future versions)."
35913 #: ../src/guestfs.pod:1742
35915 "The callback receives in the payload four unsigned 64 bit numbers which are "
35916 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35920 #: ../src/guestfs.pod:1745
35922 "The units of C<total> are not defined, although for some operations C<total> "
35923 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35924 "or megabytes), and C<position> may be the portion which has been transferred."
35928 #: ../src/guestfs.pod:1750
35929 msgid "The only defined and stable parts of the API are:"
35933 #: ../src/guestfs.pod:1756
35935 "The callback can display to the user some type of progress bar or indicator "
35936 "which shows the ratio of C<position>:C<total>."
35940 #: ../src/guestfs.pod:1761
35941 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35945 #: ../src/guestfs.pod:1765
35947 "If any progress notification is sent during a call, then a final progress "
35948 "notification is always sent when C<position> = C<total> (I<unless> the call "
35949 "fails with an error)."
35953 #: ../src/guestfs.pod:1769
35955 "This is to simplify caller code, so callers can easily set the progress "
35956 "indicator to \"100%\" at the end of the operation, without requiring special "
35957 "code to detect this case."
35961 #: ../src/guestfs.pod:1775
35963 "For some calls we are unable to estimate the progress of the call, but we "
35964 "can still generate progress messages to indicate activity. This is known as "
35965 "\"pulse mode\", and is directly supported by certain progress bar "
35966 "implementations (eg. GtkProgressBar)."
35970 #: ../src/guestfs.pod:1780
35972 "For these calls, zero or more progress messages are generated with "
35973 "C<position = 0> and C<total = 1>, followed by a final message with "
35974 "C<position = total = 1>."
35978 #: ../src/guestfs.pod:1784
35980 "As noted above, if the call fails with an error then the final message may "
35981 "not be generated."
35985 #: ../src/guestfs.pod:1789
35987 "The callback also receives the procedure number (C<proc_nr>) and serial "
35988 "number (C<serial>) of the call. These are only useful for debugging "
35989 "protocol issues, and the callback can normally ignore them. The callback "
35990 "may want to print these numbers in error messages or debugging messages."
35994 #: ../src/guestfs.pod:1795
35995 msgid "If no callback is registered: progress messages are discarded."
35999 #: ../src/guestfs.pod:1797
36000 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36004 #: ../src/guestfs.pod:1800
36006 "The callback function is called whenever a log message is generated by qemu, "
36007 "the appliance kernel, guestfsd (daemon), or utility programs."
36011 #: ../src/guestfs.pod:1803
36013 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36014 "guestfs_launch>) then additional debug messages are generated."
36018 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
36020 "If no callback is registered: the messages are discarded unless the verbose "
36021 "flag is set in which case they are sent to stderr. You can override the "
36022 "printing of verbose messages to stderr by setting up a callback."
36026 #: ../src/guestfs.pod:1811
36027 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36031 #: ../src/guestfs.pod:1814
36033 "The callback function is called whenever a log message is generated by the "
36034 "library part of libguestfs."
36038 #: ../src/guestfs.pod:1817
36040 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36041 "messages are generated."
36045 #: ../src/guestfs.pod:1825
36046 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36050 #: ../src/guestfs.pod:1828
36052 "The callback function is called whenever a trace message is generated. This "
36053 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36057 #: ../src/guestfs.pod:1831
36059 "If no callback is registered: the messages are sent to stderr. You can "
36060 "override the printing of trace messages to stderr by setting up a callback."
36064 #: ../src/guestfs.pod:1837
36065 msgid "guestfs_set_event_callback"
36069 #: ../src/guestfs.pod:1839
36072 " int guestfs_set_event_callback (guestfs_h *g,\n"
36073 " guestfs_event_callback cb,\n"
36074 " uint64_t event_bitmask,\n"
36076 " void *opaque);\n"
36081 #: ../src/guestfs.pod:1845
36083 "This function registers a callback (C<cb>) for all event classes in the "
36084 "C<event_bitmask>."
36088 #: ../src/guestfs.pod:1848
36090 "For example, to register for all log message events, you could call this "
36091 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
36092 "To register a single callback for all possible classes of events, use "
36093 "C<GUESTFS_EVENT_ALL>."
36097 #: ../src/guestfs.pod:1854
36098 msgid "C<flags> should always be passed as 0."
36102 #: ../src/guestfs.pod:1856
36104 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
36105 "it for any purpose."
36109 #: ../src/guestfs.pod:1859
36111 "The return value is the event handle (an integer) which you can use to "
36112 "delete the callback (see below)."
36116 #: ../src/guestfs.pod:1862
36118 "If there is an error, this function returns C<-1>, and sets the error in the "
36119 "handle in the usual way (see L</guestfs_last_error> etc.)"
36123 #: ../src/guestfs.pod:1865
36125 "Callbacks remain in effect until they are deleted, or until the handle is "
36130 #: ../src/guestfs.pod:1868
36132 "In the case where multiple callbacks are registered for a particular event "
36133 "class, all of the callbacks are called. The order in which multiple "
36134 "callbacks are called is not defined."
36138 #: ../src/guestfs.pod:1872
36139 msgid "guestfs_delete_event_callback"
36143 #: ../src/guestfs.pod:1874
36146 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36151 #: ../src/guestfs.pod:1876
36153 "Delete a callback that was previously registered. C<event_handle> should be "
36154 "the integer that was returned by a previous call to "
36155 "C<guestfs_set_event_callback> on the same handle."
36159 #: ../src/guestfs.pod:1880
36160 msgid "guestfs_event_callback"
36164 #: ../src/guestfs.pod:1882
36167 " typedef void (*guestfs_event_callback) (\n"
36170 " uint64_t event,\n"
36171 " int event_handle,\n"
36173 " const char *buf, size_t buf_len,\n"
36174 " const uint64_t *array, size_t array_len);\n"
36179 #: ../src/guestfs.pod:1891
36181 "This is the type of the event callback function that you have to provide."
36185 #: ../src/guestfs.pod:1894
36187 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36188 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36189 "handle, and C<flags> which in the current API you should ignore."
36193 #: ../src/guestfs.pod:1898
36195 "The remaining parameters contain the event payload (if any). Each event may "
36196 "contain a payload, which usually relates to the event class, but for future "
36197 "proofing your code should be written to handle any payload for any event "
36202 #: ../src/guestfs.pod:1903
36204 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36205 "there is no message buffer). Note that this message buffer can contain "
36206 "arbitrary 8 bit data, including NUL bytes."
36210 #: ../src/guestfs.pod:1907
36212 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
36213 "moment this is only used for progress messages."
36217 #: ../src/guestfs.pod:1910
36218 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36222 #: ../src/guestfs.pod:1912
36224 "One motivation for the generic event API was to allow GUI programs to "
36225 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
36226 "unconditionally to C<stderr>."
36230 #: ../src/guestfs.pod:1916
36232 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36233 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
36234 "messages are not events; you must capture error messages separately)."
36238 #: ../src/guestfs.pod:1921
36240 "Programs have to set up a callback to capture the classes of events of "
36245 #: ../src/guestfs.pod:1924
36249 " guestfs_set_event_callback\n"
36250 " (g, message_callback,\n"
36251 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36252 " GUESTFS_EVENT_TRACE,\n"
36253 " 0, NULL) == -1)\n"
36254 " if (eh == -1) {\n"
36255 " // handle error in the usual way\n"
36261 #: ../src/guestfs.pod:1934
36263 "The callback can then direct messages to the appropriate place. In this "
36264 "example, messages are directed to syslog:"
36268 #: ../src/guestfs.pod:1937
36272 " message_callback (\n"
36275 " uint64_t event,\n"
36276 " int event_handle,\n"
36278 " const char *buf, size_t buf_len,\n"
36279 " const uint64_t *array, size_t array_len)\n"
36281 " const int priority = LOG_USER|LOG_INFO;\n"
36282 " if (buf_len > 0)\n"
36283 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36289 #: ../src/guestfs.pod:1952
36290 msgid "CANCELLING LONG TRANSFERS"
36294 #: ../src/guestfs.pod:1954
36296 "Some operations can be cancelled by the caller while they are in progress. "
36297 "Currently only operations that involve uploading or downloading data can be "
36298 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36299 "parameters in the generator)."
36303 #: ../src/guestfs.pod:1959
36304 msgid "guestfs_user_cancel"
36308 #: ../src/guestfs.pod:1961
36311 " void guestfs_user_cancel (guestfs_h *g);\n"
36316 #: ../src/guestfs.pod:1963
36318 "C<guestfs_user_cancel> cancels the current upload or download operation."
36322 #: ../src/guestfs.pod:1966
36324 "Unlike most other libguestfs calls, this function is signal safe and thread "
36325 "safe. You can call it from a signal handler or from another thread, without "
36326 "needing to do any locking."
36330 #: ../src/guestfs.pod:1970
36332 "The transfer that was in progress (if there is one) will stop shortly "
36333 "afterwards, and will return an error. The errno (see L</"
36334 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36335 "out if the operation was cancelled or failed because of another error."
36339 #: ../src/guestfs.pod:1976
36341 "No cleanup is performed: for example, if a file was being uploaded then "
36342 "after cancellation there may be a partially uploaded file. It is the "
36343 "caller's responsibility to clean up if necessary."
36347 #: ../src/guestfs.pod:1980
36348 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36352 #: ../src/guestfs.pod:1982
36354 "In an interactive text-based program, you might call it from a C<SIGINT> "
36355 "signal handler so that pressing C<^C> cancels the current operation. (You "
36356 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36357 "receive the C<^C> signal)."
36361 #: ../src/guestfs.pod:1987
36363 "In a graphical program, when the main thread is displaying a progress bar "
36364 "with a cancel button, wire up the cancel button to call this function."
36368 #: ../src/guestfs.pod:1991
36369 msgid "PRIVATE DATA AREA"
36373 #: ../src/guestfs.pod:1993
36375 "You can attach named pieces of private data to the libguestfs handle, fetch "
36376 "them by name, and walk over them, for the lifetime of the handle. This is "
36377 "called the private data area and is only available from the C API."
36381 #: ../src/guestfs.pod:1998
36382 msgid "To attach a named piece of data, use the following call:"
36386 #: ../src/guestfs.pod:2000
36389 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36392 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36396 #: ../src/guestfs.pod:2002
36398 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36399 "pointer (which can be C<NULL>). Any previous item with the same key is "
36404 #: ../src/guestfs.pod:2006
36406 "You can use any C<key> you want, but your key should I<not> start with an "
36407 "underscore character. Keys beginning with an underscore character are "
36408 "reserved for internal libguestfs purposes (eg. for implementing language "
36409 "bindings). It is recommended that you prefix the key with some unique "
36410 "string to avoid collisions with other users."
36414 #: ../src/guestfs.pod:2012
36415 msgid "To retrieve the pointer, use:"
36419 #: ../src/guestfs.pod:2014
36422 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36425 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36429 #: ../src/guestfs.pod:2016
36431 "This function returns C<NULL> if either no data is found associated with "
36432 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36437 #: ../src/guestfs.pod:2020
36439 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36440 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
36441 "all. In particular, libguestfs does I<not> try to free the data when the "
36442 "handle is closed. If the data must be freed, then the caller must either "
36443 "free it before calling L</guestfs_close> or must set up a close callback to "
36444 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36448 #: ../src/guestfs.pod:2027
36449 msgid "To walk over all entries, use these two functions:"
36453 #: ../src/guestfs.pod:2029
36456 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36461 #: ../src/guestfs.pod:2031
36464 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36469 #: ../src/guestfs.pod:2033
36471 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36472 "not have any particular meaning -- keys are not returned in any defined "
36473 "order). A pointer to the key is returned in C<*key_rtn> and the "
36474 "corresponding data pointer is returned from the function. C<NULL> is "
36475 "returned if there are no keys stored in the handle."
36479 #: ../src/guestfs.pod:2039
36481 "C<guestfs_next_private> returns the next key, pointer pair. The return "
36482 "value of this function is also C<NULL> is there are no further entries to "
36487 #: ../src/guestfs.pod:2043
36488 msgid "Notes about walking over entries:"
36492 #: ../src/guestfs.pod:2049
36494 "You must not call C<guestfs_set_private> while walking over the entries."
36498 #: ../src/guestfs.pod:2054
36500 "The handle maintains an internal iterator which is reset when you call "
36501 "C<guestfs_first_private>. This internal iterator is invalidated when you "
36502 "call C<guestfs_set_private>."
36506 #: ../src/guestfs.pod:2060
36507 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36511 #: ../src/guestfs.pod:2062
36514 " guestfs_set_private (g, key, NULL);\n"
36519 #: ../src/guestfs.pod:2064
36520 msgid "then that C<key> is not returned when walking."
36524 #: ../src/guestfs.pod:2068
36526 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36527 "C<guestfs_next_private> or C<guestfs_set_private>."
36531 #: ../src/guestfs.pod:2074
36533 "The following example code shows how to print all keys and data pointers "
36534 "that are associated with the handle C<g>:"
36538 #: ../src/guestfs.pod:2077
36541 " const char *key;\n"
36542 " void *data = guestfs_first_private (g, &key);\n"
36543 " while (data != NULL)\n"
36545 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36546 " data = guestfs_next_private (g, &key);\n"
36552 #: ../src/guestfs.pod:2085
36554 "More commonly you are only interested in keys that begin with an application-"
36555 "specific prefix C<foo_>. Modify the loop like so:"
36559 #: ../src/guestfs.pod:2088
36562 " const char *key;\n"
36563 " void *data = guestfs_first_private (g, &key);\n"
36564 " while (data != NULL)\n"
36566 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36567 " printf (\"key = %s, data = %p\\n\", key, data);\n"
36568 " data = guestfs_next_private (g, &key);\n"
36574 #: ../src/guestfs.pod:2097
36576 "If you need to modify keys while walking, then you have to jump back to the "
36577 "beginning of the loop. For example, to delete all keys prefixed with "
36582 #: ../src/guestfs.pod:2101
36585 " const char *key;\n"
36588 " data = guestfs_first_private (g, &key);\n"
36589 " while (data != NULL)\n"
36591 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36593 " guestfs_set_private (g, key, NULL);\n"
36594 " /* note that 'key' pointer is now invalid, and so is\n"
36595 " the internal iterator */\n"
36598 " data = guestfs_next_private (g, &key);\n"
36604 #: ../src/guestfs.pod:2117
36606 "Note that the above loop is guaranteed to terminate because the keys are "
36607 "being deleted, but other manipulations of keys within the loop might not "
36608 "terminate unless you also maintain an indication of which keys have been "
36613 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
36618 #: ../src/guestfs.pod:2124
36620 "<!-- old anchor for the next section --> <a name="
36621 "\"state_machine_and_low_level_event_api\"/>"
36623 "<!-- old anchor for the next section --> <a name="
36624 "\"state_machine_and_low_level_event_api\"/>"
36627 #: ../src/guestfs.pod:2129
36628 msgid "ARCHITECTURE"
36629 msgstr "АРХІТЕКТУРА"
36632 #: ../src/guestfs.pod:2131
36634 "Internally, libguestfs is implemented by running an appliance (a special "
36635 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
36636 "process of the main program."
36640 #: ../src/guestfs.pod:2135
36643 " ___________________\n"
36645 " | main program |\n"
36647 " | | child process / appliance\n"
36648 " | | __________________________\n"
36650 " +-------------------+ RPC | +-----------------+ |\n"
36651 " | libguestfs <--------------------> guestfsd | |\n"
36652 " | | | +-----------------+ |\n"
36653 " \\___________________/ | | Linux kernel | |\n"
36654 " | +--^--------------+ |\n"
36655 " \\_________|________________/\n"
36657 " _______v______\n"
36660 " | disk image |\n"
36661 " \\______________/\n"
36666 #: ../src/guestfs.pod:2155
36668 "The library, linked to the main program, creates the child process and hence "
36669 "the appliance in the L</guestfs_launch> function."
36673 #: ../src/guestfs.pod:2158
36675 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36676 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36677 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
36678 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
36679 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
36680 "attached to the qemu process which translates device access by the "
36681 "appliance's Linux kernel into accesses to the image."
36685 #: ../src/guestfs.pod:2167
36687 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
36688 "Although the disk image you are attached to might also be used by some "
36689 "virtual machine, libguestfs doesn't know or care about this. (But you will "
36690 "care if both libguestfs's qemu process and your virtual machine are trying "
36691 "to update the disk image at the same time, since these usually results in "
36692 "massive disk corruption)."
36696 #: ../src/guestfs.pod:2174
36697 msgid "STATE MACHINE"
36698 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36701 #: ../src/guestfs.pod:2176
36702 msgid "libguestfs uses a state machine to model the child process:"
36706 #: ../src/guestfs.pod:2178
36710 " guestfs_create\n"
36718 " / | \\ \\ guestfs_launch\n"
36719 " / | _\\__V______\n"
36721 " / | | LAUNCHING |\n"
36722 " / | \\___________/\n"
36724 " / | guestfs_launch\n"
36726 " ______ / __|____V\n"
36727 " / \\ ------> / \\\n"
36728 " | BUSY | | READY |\n"
36729 " \\______/ <------ \\________/\n"
36734 #: ../src/guestfs.pod:2200
36736 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36737 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36738 "(3) alternating between READY and BUSY as commands are issued to, and "
36739 "carried out by, the child process."
36743 #: ../src/guestfs.pod:2205
36745 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36746 "asynchronously at any time (eg. due to some internal error), and that causes "
36747 "the state to transition back to CONFIG."
36751 #: ../src/guestfs.pod:2209
36753 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36754 "issued when in the CONFIG state."
36758 #: ../src/guestfs.pod:2212
36760 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
36761 "L</guestfs_launch> blocks until the child process is READY to accept "
36762 "commands (or until some failure or timeout). L</guestfs_launch> internally "
36763 "moves the state from CONFIG to LAUNCHING while it is running."
36767 #: ../src/guestfs.pod:2218
36769 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36770 "state. These API calls block waiting for the command to be carried out (ie. "
36771 "the state to transition to BUSY and then back to READY). There are no non-"
36772 "blocking versions, and no way to issue more than one command per handle at "
36777 #: ../src/guestfs.pod:2224
36779 "Finally, the child process sends asynchronous messages back to the main "
36780 "program, such as kernel log messages. You can register a callback to "
36781 "receive these messages."
36785 #: ../src/guestfs.pod:2228
36790 #: ../src/guestfs.pod:2230
36791 msgid "APPLIANCE BOOT PROCESS"
36795 #: ../src/guestfs.pod:2232
36797 "This process has evolved and continues to evolve. The description here "
36798 "corresponds only to the current version of libguestfs and is provided for "
36799 "information only."
36803 #: ../src/guestfs.pod:2236
36805 "In order to follow the stages involved below, enable libguestfs debugging "
36806 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36810 #: ../src/guestfs.pod:2241
36812 #| msgid "C<appliance>"
36813 msgid "Create the appliance"
36814 msgstr "C<appliance>"
36817 #: ../src/guestfs.pod:2243
36819 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36820 "initrd and the appliance."
36824 #: ../src/guestfs.pod:2246
36826 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36827 "directory if C<TMPDIR> is set)."
36831 #: ../src/guestfs.pod:2249
36833 "For a complete description of how the appliance is created and cached, read "
36834 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36838 #: ../src/guestfs.pod:2253
36839 msgid "Start qemu and boot the kernel"
36843 #: ../src/guestfs.pod:2255
36844 msgid "qemu is invoked to boot the kernel."
36848 #: ../src/guestfs.pod:2257
36849 msgid "Run the initrd"
36853 #: ../src/guestfs.pod:2259
36855 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
36856 "appliance. The purpose of the initrd is to load enough kernel modules in "
36857 "order that the appliance itself can be mounted and started."
36861 #: ../src/guestfs.pod:2263
36863 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
36868 #: ../src/guestfs.pod:2266
36870 "When the initrd has started you will see messages showing that kernel "
36871 "modules are being loaded, similar to this:"
36875 #: ../src/guestfs.pod:2269
36878 " febootstrap: ext2 mini initrd starting up\n"
36879 " febootstrap: mounting /sys\n"
36880 " febootstrap: internal insmod libcrc32c.ko\n"
36881 " febootstrap: internal insmod crc32c-intel.ko\n"
36886 #: ../src/guestfs.pod:2274
36887 msgid "Find and mount the appliance device"
36891 #: ../src/guestfs.pod:2276
36893 "The appliance is a sparse file containing an ext2 filesystem which contains "
36894 "a familiar (although reduced in size) Linux operating system. It would "
36895 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
36899 #: ../src/guestfs.pod:2280
36901 "The regular disks being inspected by libguestfs are the first devices "
36902 "exposed by qemu (eg. as C</dev/vda>)."
36906 #: ../src/guestfs.pod:2283
36908 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
36909 "there was only one regular disk)."
36913 #: ../src/guestfs.pod:2286
36915 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
36916 "and switch root into the appliance, and run C</init> from the appliance."
36920 #: ../src/guestfs.pod:2290
36921 msgid "If this works successfully you will see messages such as:"
36925 #: ../src/guestfs.pod:2292
36928 " febootstrap: picked /sys/block/vdb/dev as root device\n"
36929 " febootstrap: creating /dev/root as block special 252:16\n"
36930 " febootstrap: mounting new root on /root\n"
36931 " febootstrap: chroot\n"
36932 " Starting /init script ...\n"
36937 #: ../src/guestfs.pod:2298
36939 "Note that C<Starting /init script ...> indicates that the appliance's init "
36940 "script is now running."
36944 #: ../src/guestfs.pod:2301
36945 msgid "Initialize the appliance"
36949 #: ../src/guestfs.pod:2303
36951 "The appliance itself now initializes itself. This involves starting certain "
36952 "processes like C<udev>, possibly printing some debug information, and "
36953 "finally running the daemon (C<guestfsd>)."
36957 #: ../src/guestfs.pod:2307
36959 #| msgid "C<daemon>"
36964 #: ../src/guestfs.pod:2309
36966 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
36971 #: ../src/guestfs.pod:2312
36974 #| " set-verbose true|false\n"
36977 " verbose daemon enabled\n"
36980 " set-verbose true|false\n"
36984 #: ../src/guestfs.pod:2314
36986 "The daemon expects to see a named virtio-serial port exposed by qemu and "
36987 "connected on the other end to the library."
36991 #: ../src/guestfs.pod:2317
36993 "The daemon connects to this port (and hence to the library) and sends a four "
36994 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
36995 "protocol (see below)."
36999 #: ../src/guestfs.pod:2323
37000 msgid "COMMUNICATION PROTOCOL"
37004 #: ../src/guestfs.pod:2325
37006 "Don't rely on using this protocol directly. This section documents how it "
37007 "currently works, but it may change at any time."
37011 #: ../src/guestfs.pod:2328
37013 "The protocol used to talk between the library and the daemon running inside "
37014 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37015 "1014, RFC 1832, RFC 4506)."
37019 #: ../src/guestfs.pod:2332
37021 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37022 "this file is automatically generated)."
37026 #: ../src/guestfs.pod:2335
37028 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37029 "and C<FileOut> parameters, which are handled with very simple request/reply "
37030 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
37031 "parameters, which use the same request and reply messages, but they may also "
37032 "be followed by files sent using a chunked encoding."
37036 #: ../src/guestfs.pod:2342
37037 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37041 #: ../src/guestfs.pod:2344
37042 msgid "For ordinary functions, the request message is:"
37046 #: ../src/guestfs.pod:2346
37049 " total length (header + arguments,\n"
37050 " but not including the length word itself)\n"
37051 " struct guestfs_message_header (encoded as XDR)\n"
37052 " struct guestfs_<foo>_args (encoded as XDR)\n"
37057 #: ../src/guestfs.pod:2351
37059 "The total length field allows the daemon to allocate a fixed size buffer "
37060 "into which it slurps the rest of the message. As a result, the total length "
37061 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37062 "effective size of any request is limited to somewhere under this size."
37066 #: ../src/guestfs.pod:2357
37068 "Note also that many functions don't take any arguments, in which case the "
37069 "C<guestfs_I<foo>_args> is completely omitted."
37073 #: ../src/guestfs.pod:2360
37075 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37076 "receiver knows what type of args structure to expect, or none at all."
37080 #: ../src/guestfs.pod:2364
37082 "For functions that take optional arguments, the optional arguments are "
37083 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37084 "arguments. A bitmask in the header indicates which optional arguments are "
37085 "meaningful. The bitmask is also checked to see if it contains bits set "
37086 "which the daemon does not know about (eg. if more optional arguments were "
37087 "added in a later version of the library), and this causes the call to be "
37092 #: ../src/guestfs.pod:2372
37093 msgid "The reply message for ordinary functions is:"
37097 #: ../src/guestfs.pod:2374
37100 " total length (header + ret,\n"
37101 " but not including the length word itself)\n"
37102 " struct guestfs_message_header (encoded as XDR)\n"
37103 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37108 #: ../src/guestfs.pod:2379
37110 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37111 "functions that return no formal return values."
37115 #: ../src/guestfs.pod:2382
37117 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37121 #: ../src/guestfs.pod:2385
37123 "In the case of an error, a flag is set in the header, and the reply message "
37124 "is slightly changed:"
37128 #: ../src/guestfs.pod:2388
37131 " total length (header + error,\n"
37132 " but not including the length word itself)\n"
37133 " struct guestfs_message_header (encoded as XDR)\n"
37134 " struct guestfs_message_error (encoded as XDR)\n"
37139 #: ../src/guestfs.pod:2393
37141 "The C<guestfs_message_error> structure contains the error message as a "
37146 #: ../src/guestfs.pod:2396
37147 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37151 #: ../src/guestfs.pod:2398
37153 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
37154 "The normal request message is sent (see above). However this is followed by "
37155 "a sequence of file chunks."
37159 #: ../src/guestfs.pod:2402
37162 " total length (header + arguments,\n"
37163 " but not including the length word itself,\n"
37164 " and not including the chunks)\n"
37165 " struct guestfs_message_header (encoded as XDR)\n"
37166 " struct guestfs_<foo>_args (encoded as XDR)\n"
37167 " sequence of chunks for FileIn param #0\n"
37168 " sequence of chunks for FileIn param #1 etc.\n"
37173 #: ../src/guestfs.pod:2410
37174 msgid "The \"sequence of chunks\" is:"
37178 #: ../src/guestfs.pod:2412
37181 " length of chunk (not including length word itself)\n"
37182 " struct guestfs_chunk (encoded as XDR)\n"
37183 " length of chunk\n"
37184 " struct guestfs_chunk (encoded as XDR)\n"
37186 " length of chunk\n"
37187 " struct guestfs_chunk (with data.data_len == 0)\n"
37192 #: ../src/guestfs.pod:2420
37194 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
37195 "is set in the final chunk to indicate either successful completion or early "
37200 #: ../src/guestfs.pod:2424
37202 "At time of writing there are no functions that have more than one FileIn "
37203 "parameter. However this is (theoretically) supported, by sending the "
37204 "sequence of chunks for each FileIn parameter one after another (from left to "
37209 #: ../src/guestfs.pod:2429
37211 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37212 "transfer. The library does this by sending a chunk with a special flag set "
37213 "to indicate cancellation. When the daemon sees this, it cancels the whole "
37214 "RPC, does I<not> send any reply, and goes back to reading the next request."
37218 #: ../src/guestfs.pod:2435
37220 "The daemon may also cancel. It does this by writing a special word "
37221 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
37222 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37223 "cancel chunk). The special word is chosen so that even if cancellation "
37224 "happens right at the end of the transfer (after the library has finished "
37225 "writing and has started listening for the reply), the \"spurious\" cancel "
37226 "flag will not be confused with the reply message."
37230 #: ../src/guestfs.pod:2444
37232 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37233 "limit), and also files where the size is not known in advance (eg. from "
37234 "pipes or sockets). However the chunks are rather small "
37235 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37236 "to keep much in memory."
37240 #: ../src/guestfs.pod:2450
37241 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37245 #: ../src/guestfs.pod:2452
37247 "The protocol for FileOut parameters is exactly the same as for FileIn "
37248 "parameters, but with the roles of daemon and library reversed."
37252 #: ../src/guestfs.pod:2455
37255 " total length (header + ret,\n"
37256 " but not including the length word itself,\n"
37257 " and not including the chunks)\n"
37258 " struct guestfs_message_header (encoded as XDR)\n"
37259 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37260 " sequence of chunks for FileOut param #0\n"
37261 " sequence of chunks for FileOut param #1 etc.\n"
37266 #: ../src/guestfs.pod:2463
37267 msgid "INITIAL MESSAGE"
37271 #: ../src/guestfs.pod:2465
37273 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37274 "which indicates that the guest and daemon is alive. This is what L</"
37275 "guestfs_launch> waits for."
37279 #: ../src/guestfs.pod:2469
37280 msgid "PROGRESS NOTIFICATION MESSAGES"
37284 #: ../src/guestfs.pod:2471
37286 "The daemon may send progress notification messages at any time. These are "
37287 "distinguished by the normal length word being replaced by "
37288 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37292 #: ../src/guestfs.pod:2475
37294 "The library turns them into progress callbacks (see L</"
37295 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37300 #: ../src/guestfs.pod:2479
37302 "The daemon self-limits the frequency of progress messages it sends (see "
37303 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
37308 #: ../src/guestfs.pod:2483
37309 msgid "LIBGUESTFS VERSION NUMBERS"
37313 #: ../src/guestfs.pod:2485
37315 "Since April 2010, libguestfs has started to make separate development and "
37316 "stable releases, along with corresponding branches in our git repository. "
37317 "These separate releases can be identified by version number:"
37321 #: ../src/guestfs.pod:2490
37324 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
37325 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37331 " | `-------- sub-version\n"
37333 " `------ always '1' because we don't change the ABI\n"
37338 #: ../src/guestfs.pod:2501
37339 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37343 #: ../src/guestfs.pod:2503
37345 "As time passes we cherry pick fixes from the development branch and backport "
37346 "those into the stable branch, the effect being that the stable branch should "
37347 "get more stable and less buggy over time. So the stable releases are ideal "
37348 "for people who don't need new features but would just like the software to "
37353 #: ../src/guestfs.pod:2509
37354 msgid "Our criteria for backporting changes are:"
37358 #: ../src/guestfs.pod:2515
37360 "Documentation changes which don't affect any code are backported unless the "
37361 "documentation refers to a future feature which is not in stable."
37365 #: ../src/guestfs.pod:2521
37367 "Bug fixes which are not controversial, fix obvious problems, and have been "
37368 "well tested are backported."
37372 #: ../src/guestfs.pod:2526
37374 "Simple rearrangements of code which shouldn't affect how it works get "
37375 "backported. This is so that the code in the two branches doesn't get too "
37376 "far out of step, allowing us to backport future fixes more easily."
37380 #: ../src/guestfs.pod:2532
37382 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37383 "exceptional case: the new feature is required in order to implement an "
37384 "important bug fix."
37388 #: ../src/guestfs.pod:2538
37390 "A new stable branch starts when we think the new features in development are "
37391 "substantial and compelling enough over the current stable branch to warrant "
37392 "it. When that happens we create new stable and development versions 1.N.0 "
37393 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
37394 "stable at this point, but by backporting fixes from development, that branch "
37395 "will stabilize over time."
37399 #: ../src/guestfs.pod:2546
37400 msgid "EXTENDING LIBGUESTFS"
37404 #: ../src/guestfs.pod:2548
37405 msgid "ADDING A NEW API ACTION"
37409 #: ../src/guestfs.pod:2550
37411 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37412 "documentation) are generated, and this makes it easy to extend the "
37417 #: ../src/guestfs.pod:2554
37418 msgid "To add a new API action there are two changes:"
37422 #: ../src/guestfs.pod:2560
37424 "You need to add a description of the call (name, parameters, return type, "
37425 "tests, documentation) to C<generator/generator_actions.ml>."
37429 #: ../src/guestfs.pod:2563
37431 "There are two sorts of API action, depending on whether the call goes "
37432 "through to the daemon in the appliance, or is serviced entirely by the "
37433 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
37434 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
37435 "an example of the latter, since a trace flag is maintained in the handle and "
37436 "all tracing is done on the library side."
37440 #: ../src/guestfs.pod:2571
37442 "Most new actions are of the first type, and get added to the "
37443 "C<daemon_functions> list. Each function has a unique procedure number used "
37444 "in the RPC protocol which is assigned to that action when we publish "
37445 "libguestfs and cannot be reused. Take the latest procedure number and "
37450 #: ../src/guestfs.pod:2577
37452 "For library-only actions of the second type, add to the "
37453 "C<non_daemon_functions> list. Since these functions are serviced by the "
37454 "library and do not travel over the RPC mechanism to the daemon, these "
37455 "functions do not need a procedure number, and so the procedure number is set "
37460 #: ../src/guestfs.pod:2585
37461 msgid "Implement the action (in C):"
37465 #: ../src/guestfs.pod:2587
37467 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37468 "C<daemon/> directory."
37472 #: ../src/guestfs.pod:2590
37474 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37475 "(note: double underscore) in the C<src/> directory."
37479 #: ../src/guestfs.pod:2593
37480 msgid "In either case, use another function as an example of what to do."
37484 #: ../src/guestfs.pod:2597
37485 msgid "After making these changes, use C<make> to compile."
37489 #: ../src/guestfs.pod:2599
37491 "Note that you don't need to implement the RPC, language bindings, manual "
37492 "pages or anything else. It's all automatically generated from the OCaml "
37497 #: ../src/guestfs.pod:2603
37498 msgid "ADDING TESTS FOR AN API ACTION"
37502 #: ../src/guestfs.pod:2605
37504 "You can supply zero or as many tests as you want per API call. The tests "
37505 "can either be added as part of the API description (C<generator/"
37506 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37507 "into C<regressions/>. Note that adding a script to C<regressions/> is "
37508 "slower, so if possible use the first method."
37512 #: ../src/guestfs.pod:2611
37514 "The following describes the test environment used when you add an API test "
37515 "in C<generator_actions.ml>."
37519 #: ../src/guestfs.pod:2614
37520 msgid "The test environment has 4 block devices:"
37524 #: ../src/guestfs.pod:2618
37525 msgid "C</dev/sda> 500MB"
37526 msgstr "C</dev/sda> 500 МБ"
37529 #: ../src/guestfs.pod:2620
37530 msgid "General block device for testing."
37534 #: ../src/guestfs.pod:2622
37535 msgid "C</dev/sdb> 50MB"
37536 msgstr "C</dev/sdb> 50 МБ"
37539 #: ../src/guestfs.pod:2624
37541 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37546 #: ../src/guestfs.pod:2627
37547 msgid "C</dev/sdc> 10MB"
37548 msgstr "C</dev/sdc> 10 МБ"
37551 #: ../src/guestfs.pod:2629
37552 msgid "Used in a few tests where two block devices are needed."
37556 #: ../src/guestfs.pod:2631
37557 msgid "C</dev/sdd>"
37558 msgstr "C</dev/sdd>"
37561 #: ../src/guestfs.pod:2633
37562 msgid "ISO with fixed content (see C<images/test.iso>)."
37566 #: ../src/guestfs.pod:2637
37568 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37569 "appliance and block devices are reused between tests. So don't try testing "
37570 "L</guestfs_kill_subprocess> :-x"
37574 #: ../src/guestfs.pod:2641
37576 "Each test starts with an initial scenario, selected using one of the "
37577 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
37578 "initialize the disks mentioned above in a particular way as documented in "
37579 "C<generator_types.ml>. You should not assume anything about the previous "
37580 "contents of other disks that are not initialized."
37584 #: ../src/guestfs.pod:2647
37586 "You can add a prerequisite clause to any individual test. This is a run-"
37587 "time check, which, if it fails, causes the test to be skipped. Useful if "
37588 "testing a command which might not work on all variations of libguestfs "
37589 "builds. A test that has prerequisite of C<Always> means to run "
37594 #: ../src/guestfs.pod:2653
37596 "In addition, packagers can skip individual tests by setting environment "
37597 "variables before running C<make check>."
37601 #: ../src/guestfs.pod:2656
37604 " SKIP_TEST_<CMD>_<NUM>=1\n"
37609 #: ../src/guestfs.pod:2658
37610 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37614 #: ../src/guestfs.pod:2660
37619 #: ../src/guestfs.pod:2662
37622 " SKIP_TEST_<CMD>=1\n"
37627 #: ../src/guestfs.pod:2664
37628 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37632 #: ../src/guestfs.pod:2666
37633 msgid "Packagers can run only certain tests by setting for example:"
37637 #: ../src/guestfs.pod:2668
37640 " TEST_ONLY=\"vfs_type zerofree\"\n"
37645 #: ../src/guestfs.pod:2670
37647 "See C<capitests/tests.c> for more details of how these environment variables "
37652 #: ../src/guestfs.pod:2673
37653 msgid "DEBUGGING NEW API ACTIONS"
37657 #: ../src/guestfs.pod:2675
37658 msgid "Test new actions work before submitting them."
37662 #: ../src/guestfs.pod:2677
37663 msgid "You can use guestfish to try out new commands."
37667 #: ../src/guestfs.pod:2679
37669 "Debugging the daemon is a problem because it runs inside a minimal "
37670 "environment. However you can fprintf messages in the daemon to stderr, and "
37671 "they will show up if you use C<guestfish -v>."
37675 #: ../src/guestfs.pod:2683
37676 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37680 #: ../src/guestfs.pod:2685
37682 "Our C source code generally adheres to some basic code-formatting "
37683 "conventions. The existing code base is not totally consistent on this "
37684 "front, but we do prefer that contributed code be formatted similarly. In "
37685 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37686 "indentation level, and other than that, follow the K&R style."
37690 #: ../src/guestfs.pod:2691
37692 "If you use Emacs, add the following to one of one of your start-up files (e."
37693 "g., ~/.emacs), to help ensure that you get indentation right:"
37697 #: ../src/guestfs.pod:2694
37700 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37701 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37702 " (add-hook 'find-file-hook\n"
37703 " '(lambda () (if (and buffer-file-name\n"
37704 " (string-match \"/libguestfs\\\\>\"\n"
37705 " (buffer-file-name))\n"
37706 " (not (string-equal mode-name \"Change Log\"))\n"
37707 " (not (string-equal mode-name \"Makefile\")))\n"
37708 " (setq indent-tabs-mode nil))))\n"
37713 #: ../src/guestfs.pod:2704
37716 " ;;; When editing C sources in libguestfs, use this style.\n"
37717 " (defun libguestfs-c-mode ()\n"
37718 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
37720 " (c-set-style \"K&R\")\n"
37721 " (setq c-indent-level 2)\n"
37722 " (setq c-basic-offset 2))\n"
37723 " (add-hook 'c-mode-hook\n"
37724 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37725 " (buffer-file-name))\n"
37726 " (libguestfs-c-mode))))\n"
37731 #: ../src/guestfs.pod:2716
37732 msgid "Enable warnings when compiling (and fix any problems this finds):"
37736 #: ../src/guestfs.pod:2719
37739 " ./configure --enable-gcc-warnings\n"
37742 " ./configure --enable-gcc-warnings\n"
37746 #: ../src/guestfs.pod:2721
37747 msgid "Useful targets are:"
37751 #: ../src/guestfs.pod:2723
37754 " make syntax-check # checks the syntax of the C code\n"
37755 " make check # runs the test suite\n"
37760 #: ../src/guestfs.pod:2726
37761 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37765 #: ../src/guestfs.pod:2728
37767 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37768 "which are used to do shell quoting."
37772 #: ../src/guestfs.pod:2733
37777 #: ../src/guestfs.pod:2735
37779 "Simple shell quoted string. Any spaces or other shell characters are "
37784 #: ../src/guestfs.pod:2738
37789 #: ../src/guestfs.pod:2740
37791 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37796 #: ../src/guestfs.pod:2747
37799 " asprintf (&cmd, \"cat %R\", path);\n"
37804 #: ../src/guestfs.pod:2749
37805 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37809 #: ../src/guestfs.pod:2751
37811 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37812 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
37813 "they are not passed via the shell (instead, straight to exec). You probably "
37814 "want to use the C<sysroot_path()> function however."
37818 #: ../src/guestfs.pod:2757
37819 msgid "SUBMITTING YOUR NEW API ACTIONS"
37823 #: ../src/guestfs.pod:2759
37825 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37826 "libguestfs> and CC to L<rjones@redhat.com>."
37830 #: ../src/guestfs.pod:2763
37831 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37835 #: ../src/guestfs.pod:2765
37836 msgid "We support i18n (gettext anyhow) in the library."
37840 #: ../src/guestfs.pod:2767
37842 "However many messages come from the daemon, and we don't translate those at "
37843 "the moment. One reason is that the appliance generally has all locale files "
37844 "removed from it, because they take up a lot of space. So we'd have to readd "
37845 "some of those, as well as copying our PO files into the appliance."
37849 #: ../src/guestfs.pod:2773
37851 "Debugging messages are never translated, since they are intended for the "
37856 #: ../src/guestfs.pod:2776
37857 msgid "SOURCE CODE SUBDIRECTORIES"
37861 #: ../src/guestfs.pod:2782
37862 msgid "The libguestfs appliance, build scripts and so on."
37866 #: ../src/guestfs.pod:2784
37867 msgid "C<capitests>"
37868 msgstr "C<capitests>"
37871 #: ../src/guestfs.pod:2786
37872 msgid "Automated tests of the C API."
37876 #: ../src/guestfs.pod:2788
37881 #: ../src/guestfs.pod:2790
37883 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37888 #: ../src/guestfs.pod:2793
37893 #: ../src/guestfs.pod:2795
37895 "Safety and liveness tests of components that libguestfs depends upon (not of "
37896 "libguestfs itself). Mainly this is for qemu and the kernel."
37900 #: ../src/guestfs.pod:2798
37902 msgstr "C<contrib>"
37905 #: ../src/guestfs.pod:2800
37906 msgid "Outside contributions, experimental parts."
37910 #: ../src/guestfs.pod:2802
37915 #: ../src/guestfs.pod:2804
37917 "The daemon that runs inside the libguestfs appliance and carries out actions."
37921 #: ../src/guestfs.pod:2807
37926 #: ../src/guestfs.pod:2809
37927 msgid "L<virt-df(1)> command and documentation."
37931 #: ../src/guestfs.pod:2811
37936 #: ../src/guestfs.pod:2813
37937 msgid "L<virt-edit(1)> command and documentation."
37941 #: ../src/guestfs.pod:2815
37942 msgid "C<examples>"
37943 msgstr "C<examples>"
37946 #: ../src/guestfs.pod:2817
37947 msgid "C API example code."
37948 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37951 #: ../src/guestfs.pod:2819
37956 #: ../src/guestfs.pod:2821
37958 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37959 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37960 "L<virt-tar-out(1)>."
37964 #: ../src/guestfs.pod:2825
37969 #: ../src/guestfs.pod:2827
37971 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37975 #: ../src/guestfs.pod:2829
37976 msgid "C<generator>"
37977 msgstr "C<generator>"
37980 #: ../src/guestfs.pod:2831
37982 "The crucially important generator, used to automatically generate large "
37983 "amounts of boilerplate C code for things like RPC and bindings."
37987 #: ../src/guestfs.pod:2834
37992 #: ../src/guestfs.pod:2836
37993 msgid "Files used by the test suite."
37997 #: ../src/guestfs.pod:2838
37998 msgid "Some \"phony\" guest images which we test against."
38002 #: ../src/guestfs.pod:2840
38003 msgid "C<inspector>"
38004 msgstr "C<inspector>"
38007 #: ../src/guestfs.pod:2842
38008 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38012 #: ../src/guestfs.pod:2844
38017 #: ../src/guestfs.pod:2846
38018 msgid "Logo used on the website. The fish is called Arthur by the way."
38022 #: ../src/guestfs.pod:2848
38027 #: ../src/guestfs.pod:2850
38028 msgid "M4 macros used by autoconf."
38032 #: ../src/guestfs.pod:2852
38037 #: ../src/guestfs.pod:2854
38038 msgid "Translations of simple gettext strings."
38039 msgstr "Переклади простих рядків gettext."
38042 #: ../src/guestfs.pod:2856
38044 msgstr "C<po-docs>"
38047 #: ../src/guestfs.pod:2858
38049 "The build infrastructure and PO files for translations of manpages and POD "
38050 "files. Eventually this will be combined with the C<po> directory, but that "
38051 "is rather complicated."
38055 #: ../src/guestfs.pod:2862
38056 msgid "C<regressions>"
38057 msgstr "C<regressions>"
38060 #: ../src/guestfs.pod:2864
38061 msgid "Regression tests."
38062 msgstr "Тести на регресії."
38065 #: ../src/guestfs.pod:2866
38070 #: ../src/guestfs.pod:2868
38071 msgid "L<virt-rescue(1)> command and documentation."
38075 #: ../src/guestfs.pod:2870
38080 #: ../src/guestfs.pod:2872
38081 msgid "Source code to the C library."
38085 #: ../src/guestfs.pod:2874
38090 #: ../src/guestfs.pod:2876
38091 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
38095 #: ../src/guestfs.pod:2878
38096 msgid "C<test-tool>"
38097 msgstr "C<test-tool>"
38100 #: ../src/guestfs.pod:2880
38102 "Test tool for end users to test if their qemu/kernel combination will work "
38107 #: ../src/guestfs.pod:2883
38112 #: ../src/guestfs.pod:2885
38114 msgstr "C<haskell>"
38117 #: ../src/guestfs.pod:2887
38122 #: ../src/guestfs.pod:2889
38127 #: ../src/guestfs.pod:2891
38132 #: ../src/guestfs.pod:2893
38137 #: ../src/guestfs.pod:2895
38142 #: ../src/guestfs.pod:2897
38147 #: ../src/guestfs.pod:2899
38148 msgid "Language bindings."
38149 msgstr "Прив’язки до мов програмування."
38152 #: ../src/guestfs.pod:2903
38153 msgid "MAKING A STABLE RELEASE"
38157 #: ../src/guestfs.pod:2905
38159 "When we make a stable release, there are several steps documented here. See "
38160 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38165 #: ../src/guestfs.pod:2913
38167 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38171 #: ../src/guestfs.pod:2918
38172 msgid "Finalize RELEASE-NOTES."
38176 #: ../src/guestfs.pod:2922
38177 msgid "Update ROADMAP."
38181 #: ../src/guestfs.pod:2926
38182 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38186 #: ../src/guestfs.pod:2930
38187 msgid "Push and pull from Transifex."
38191 #: ../src/guestfs.pod:2932
38196 #: ../src/guestfs.pod:2934
38204 #: ../src/guestfs.pod:2936
38205 msgid "to push the latest POT files to Transifex. Then run:"
38209 #: ../src/guestfs.pod:2938
38217 #: ../src/guestfs.pod:2940
38218 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38222 #: ../src/guestfs.pod:2944
38224 "Create new stable and development directories under L<http://libguestfs.org/"
38229 #: ../src/guestfs.pod:2949
38230 msgid "Create the branch in git:"
38234 #: ../src/guestfs.pod:2951
38237 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38238 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38239 " git branch stable-1.XX\n"
38240 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38245 #: ../src/guestfs.pod:2958
38250 #: ../src/guestfs.pod:2960
38251 msgid "PROTOCOL LIMITS"
38252 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38255 #: ../src/guestfs.pod:2962
38257 "Internally libguestfs uses a message-based protocol to pass API calls and "
38258 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38259 "plenty more detail about this). The maximum message size used by the "
38260 "protocol is slightly less than 4 MB. For some API calls you may need to be "
38261 "aware of this limit. The API calls which may be affected are individually "
38262 "documented, with a link back to this section of the documentation."
38266 #: ../src/guestfs.pod:2970
38268 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38269 "a simple string. Because this string is at some point internally encoded as "
38270 "a message, the maximum size that it can return is slightly under 4 MB. If "
38271 "the requested file is larger than this then you will get an error."
38275 #: ../src/guestfs.pod:2976
38277 "In order to transfer large files into and out of the guest filesystem, you "
38278 "need to use particular calls that support this. The sections L</UPLOADING> "
38279 "and L</DOWNLOADING> document how to do this."
38283 #: ../src/guestfs.pod:2980
38285 "You might also consider mounting the disk image using our FUSE filesystem "
38286 "support (L<guestmount(1)>)."
38290 #: ../src/guestfs.pod:2983
38291 msgid "MAXIMUM NUMBER OF DISKS"
38295 #: ../src/guestfs.pod:2985
38296 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38300 #: ../src/guestfs.pod:2988
38302 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38303 "slots. However febootstrap only understands disks with names C</dev/vda> "
38304 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38309 #: ../src/guestfs.pod:2993
38311 "We are working to substantially raise this limit in future versions but it "
38312 "requires complex changes to qemu."
38316 #: ../src/guestfs.pod:2996
38318 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38319 "disks (add and remove disks after calling L</guestfs_launch>). This also "
38320 "requires changes to qemu."
38324 #: ../src/guestfs.pod:3000
38325 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38329 #: ../src/guestfs.pod:3002
38330 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38334 #: ../src/guestfs.pod:3004
38336 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38337 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38341 #: ../src/guestfs.pod:3007
38343 "If you attach a disk with more than 15 partitions, the extra partitions are "
38344 "ignored by libguestfs."
38348 #: ../src/guestfs.pod:3010
38349 msgid "MAXIMUM SIZE OF A DISK"
38353 #: ../src/guestfs.pod:3012
38354 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38358 #: ../src/guestfs.pod:3014
38360 "We have tested block devices up to 1 exabyte (2**60 or "
38361 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38366 #: ../src/guestfs.pod:3018
38368 "Although libguestfs probably does not impose any limit, the underlying host "
38369 "storage will. If you store disk images on a host ext4 filesystem, then the "
38370 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38371 "TB). If you store disk images as host logical volumes then you are limited "
38372 "by the maximum size of an LV."
38376 #: ../src/guestfs.pod:3024
38378 "For the hugest disk image files, we recommend using XFS on the host for "
38383 #: ../src/guestfs.pod:3027
38384 msgid "MAXIMUM SIZE OF A PARTITION"
38388 #: ../src/guestfs.pod:3029
38390 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38391 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
38392 "address a partition located beyond 2 TB on the disk."
38396 #: ../src/guestfs.pod:3033
38398 "It is recommended that you use GPT partitions on disks which are larger than "
38399 "this size. GPT uses 64 bit sector numbers and so can address partitions "
38400 "which are theoretically larger than the largest disk we could support."
38404 #: ../src/guestfs.pod:3038
38405 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38409 #: ../src/guestfs.pod:3040
38411 "This depends on the filesystem type. libguestfs itself does not impose any "
38412 "known limit. Consult Wikipedia or the filesystem documentation to find out "
38413 "what these limits are."
38417 #: ../src/guestfs.pod:3044
38418 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38422 #: ../src/guestfs.pod:3046
38424 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38425 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38426 "uploads and downloads."
38430 #: ../src/guestfs.pod:3050
38431 msgid "INSPECTION LIMITS"
38435 #: ../src/guestfs.pod:3052
38437 "The inspection code has several arbitrary limits on things like the size of "
38438 "Windows Registry hive it will read, and the length of product name. These "
38439 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38440 "memory and disk space on the host, and should not be reached in practice. "
38441 "See the source code for more information."
38445 #: ../src/guestfs.pod:3078
38447 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
38448 "effect as calling C<guestfs_set_verbose (g, 1)>."
38452 #: ../src/guestfs.pod:3090
38454 "Set the path that libguestfs uses to search for a supermin appliance. See "
38455 "the discussion of paths in section L</PATH> above."
38459 #: ../src/guestfs.pod:3099
38460 msgid "See also L</QEMU WRAPPERS> above."
38464 #: ../src/guestfs.pod:3103
38466 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
38467 "effect as calling C<guestfs_set_trace (g, 1)>."
38471 #: ../src/guestfs.pod:3121
38473 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38474 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38475 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38476 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38477 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38478 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38479 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38480 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38484 #: ../src/guestfs.pod:3151
38486 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38487 "(8)>, L<disktype(1)>."
38491 #: ../src/guestfs.pod:3158 ../tools/virt-make-fs.pl:553
38492 #: ../tools/virt-win-reg.pl:761
38497 #: ../src/guestfs.pod:3160
38498 msgid "To get a list of bugs against libguestfs use this link:"
38500 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38504 #: ../src/guestfs.pod:3162
38506 "L<https://bugzilla.redhat.com/buglist.cgi?"
38507 "component=libguestfs&product=Virtualization+Tools>"
38509 "L<https://bugzilla.redhat.com/buglist.cgi?"
38510 "component=libguestfs&product=Virtualization+Tools>"
38513 #: ../src/guestfs.pod:3164
38514 msgid "To report a new bug against libguestfs use this link:"
38515 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38518 #: ../src/guestfs.pod:3166
38520 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38521 "component=libguestfs&product=Virtualization+Tools>"
38523 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38524 "component=libguestfs&product=Virtualization+Tools>"
38527 #: ../src/guestfs.pod:3168
38528 msgid "When reporting a bug, please check:"
38532 #: ../src/guestfs.pod:3174
38533 msgid "That the bug hasn't been reported already."
38537 #: ../src/guestfs.pod:3178
38538 msgid "That you are testing a recent version."
38542 #: ../src/guestfs.pod:3182
38543 msgid "Describe the bug accurately, and give a way to reproduce it."
38547 #: ../src/guestfs.pod:3186
38549 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38554 #: ../test-tool/libguestfs-test-tool.pod:5
38555 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38559 #: ../test-tool/libguestfs-test-tool.pod:9
38562 " libguestfs-test-tool [--options]\n"
38567 #: ../test-tool/libguestfs-test-tool.pod:13
38569 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38570 "to check basic libguestfs functionality is working. This is needed because "
38571 "libguestfs occasionally breaks for reasons beyond our control: usually "
38572 "because of changes in the underlying qemu or kernel packages, or the host "
38577 #: ../test-tool/libguestfs-test-tool.pod:19
38578 msgid "If you suspect a problem in libguestfs, then just run:"
38582 #: ../test-tool/libguestfs-test-tool.pod:21
38585 " libguestfs-test-tool\n"
38590 #: ../test-tool/libguestfs-test-tool.pod:23
38591 msgid "It will print lots of diagnostic messages."
38595 #: ../test-tool/libguestfs-test-tool.pod:25
38596 msgid "If it runs to completion successfully, you will see this near the end:"
38600 #: ../test-tool/libguestfs-test-tool.pod:27
38603 " ===== TEST FINISHED OK =====\n"
38608 #: ../test-tool/libguestfs-test-tool.pod:29
38609 msgid "and the test tool will exit with code 0."
38613 #: ../test-tool/libguestfs-test-tool.pod:31
38615 "If it fails (and/or exits with non-zero error code), please paste the "
38616 "I<complete, unedited> output of the test tool into a bug report. More "
38617 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38622 #: ../test-tool/libguestfs-test-tool.pod:42
38623 msgid "Display short usage information and exit."
38627 #: ../test-tool/libguestfs-test-tool.pod:44
38629 #| msgid "I<--qemu qemu_binary>"
38630 msgid "B<--qemu qemu_binary>"
38631 msgstr "I<--qemu виконуваний_файл_qemu>"
38634 #: ../test-tool/libguestfs-test-tool.pod:46
38636 "If you have downloaded another qemu binary, point this option at the full "
38637 "path of the binary to try it."
38641 #: ../test-tool/libguestfs-test-tool.pod:49
38643 #| msgid "I<--qemu qemu_binary>"
38644 msgid "B<--qemudir qemu_source_dir>"
38645 msgstr "I<--qemu виконуваний_файл_qemu>"
38648 #: ../test-tool/libguestfs-test-tool.pod:51
38650 "If you have compiled qemu from source, point this option at the source "
38651 "directory to try it."
38655 #: ../test-tool/libguestfs-test-tool.pod:54
38660 #: ../test-tool/libguestfs-test-tool.pod:56
38662 #| msgid "I<--timeout N>"
38663 msgid "B<--timeout N>"
38664 msgstr "I<--timeout N>"
38667 #: ../test-tool/libguestfs-test-tool.pod:58
38669 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
38670 "minutes) which does not usually need to be adjusted."
38674 #: ../test-tool/libguestfs-test-tool.pod:63
38675 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38679 #: ../test-tool/libguestfs-test-tool.pod:65
38681 "If you have compiled another version of qemu from source and would like to "
38682 "try that, then you can use the I<--qemudir> option to point to the qemu "
38683 "source directory."
38687 #: ../test-tool/libguestfs-test-tool.pod:69
38689 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38690 "option to point to the binary."
38694 #: ../test-tool/libguestfs-test-tool.pod:72
38696 "Note when using these options, you can ignore the business of qemu wrapper "
38697 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38698 "wrapper script for you if one is needed."
38702 #: ../test-tool/libguestfs-test-tool.pod:76
38703 msgid "TRYING OUT A DIFFERENT KERNEL"
38707 #: ../test-tool/libguestfs-test-tool.pod:78
38709 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38710 "libguestfs tries. You do this by setting the environment variables "
38711 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38715 #: ../test-tool/libguestfs-test-tool.pod:82
38717 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38722 #: ../test-tool/libguestfs-test-tool.pod:85
38723 msgid "SELF-DIAGNOSIS"
38727 #: ../test-tool/libguestfs-test-tool.pod:87
38729 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38730 "produced by libguestfs-test-tool and/or possible errors."
38734 #: ../test-tool/libguestfs-test-tool.pod:92
38736 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38737 "I<1> if there was an error."
38741 #: ../test-tool/libguestfs-test-tool.pod:97
38743 "For the full list of environment variables which may affect libguestfs, "
38744 "please see the L<guestfs(3)> manual page."
38748 #: ../test-tool/libguestfs-test-tool.pod:102
38749 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38753 #: ../tools/virt-list-filesystems.pl:32
38755 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38759 #: ../tools/virt-list-filesystems.pl:36
38762 " virt-list-filesystems [--options] domname\n"
38767 #: ../tools/virt-list-filesystems.pl:38
38770 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38775 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38777 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
38782 #: ../tools/virt-list-filesystems.pl:45
38784 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38785 "are contained in a virtual machine or disk image."
38789 #: ../tools/virt-list-filesystems.pl:49
38791 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38792 "functionality. For more complex cases you should look at the L<guestfish(1)"
38797 #: ../tools/virt-list-filesystems.pl:112
38799 "With this option, C<virt-list-filesystems> displays the type of each "
38800 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38804 #: ../tools/virt-list-filesystems.pl:119
38806 #| msgid "B<-a image>"
38808 msgstr "B<-a образ>"
38811 #: ../tools/virt-list-filesystems.pl:123
38813 "Normally we only show mountable filesystems. If this option is given then "
38814 "swap devices are shown too."
38818 #: ../tools/virt-list-filesystems.pl:197
38820 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38821 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38822 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38825 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38826 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38829 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38830 msgid "Copyright (C) 2009 Red Hat Inc."
38831 msgstr "© Red Hat Inc., 2009"
38834 #: ../tools/virt-list-partitions.pl:32
38836 "virt-list-partitions - List partitions in a virtual machine or disk image"
38840 #: ../tools/virt-list-partitions.pl:36
38843 " virt-list-partitions [--options] domname\n"
38846 " virt-list-partitions [--параметри] назва_домену\n"
38850 #: ../tools/virt-list-partitions.pl:38
38853 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38856 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38860 #: ../tools/virt-list-partitions.pl:45
38862 "C<virt-list-partitions> is a command line tool to list the partitions that "
38863 "are contained in a virtual machine or disk image. It is mainly useful as a "
38864 "first step to using L<virt-resize(1)>."
38868 #: ../tools/virt-list-partitions.pl:50
38870 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38871 "functionality. For more complex cases you should look at the L<guestfish(1)"
38876 #: ../tools/virt-list-partitions.pl:113
38877 msgid "Show sizes in human-readable form (eg. \"1G\")."
38881 #: ../tools/virt-list-partitions.pl:123
38883 "With this option, C<virt-list-partitions> displays the type and size of each "
38884 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38888 #: ../tools/virt-list-partitions.pl:130
38893 #: ../tools/virt-list-partitions.pl:132
38895 #| msgid "B<-t> | B<--total>"
38897 msgstr "B<-t> | B<--total>"
38900 #: ../tools/virt-list-partitions.pl:134
38902 "Display the total size of each block device (as a separate row or rows)."
38906 #: ../tools/virt-list-partitions.pl:267
38908 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38909 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38910 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38912 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38913 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38914 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38917 #: ../tools/virt-list-partitions.pl:283
38918 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38919 msgstr "© Red Hat Inc., 2009–2010"
38922 #: ../tools/virt-make-fs.pl:37
38923 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38927 #: ../tools/virt-make-fs.pl:41
38930 " virt-make-fs [--options] input.tar output.img\n"
38935 #: ../tools/virt-make-fs.pl:43
38938 " virt-make-fs [--options] input.tar.gz output.img\n"
38943 #: ../tools/virt-make-fs.pl:45
38946 " virt-make-fs [--options] directory output.img\n"
38951 #: ../tools/virt-make-fs.pl:49
38953 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38954 "archive or some files in a directory. It is similar to tools like L<mkisofs"
38955 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
38956 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38957 "you want to attach these filesystems to existing virtual machines (eg. to "
38958 "import large amounts of read-only data to a VM)."
38962 #: ../tools/virt-make-fs.pl:57
38963 msgid "Basic usage is:"
38967 #: ../tools/virt-make-fs.pl:59
38970 " virt-make-fs input output\n"
38975 #: ../tools/virt-make-fs.pl:61
38977 "where C<input> is either a directory containing files that you want to add, "
38978 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38979 "C<output> is a disk image. The input type is detected automatically. The "
38980 "output disk image defaults to a raw ext2 image unless you specify extra "
38981 "flags (see L</OPTIONS> below)."
38985 #: ../tools/virt-make-fs.pl:67
38986 msgid "EXTRA SPACE"
38990 #: ../tools/virt-make-fs.pl:69
38992 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38993 "the files that it contains, but might have extra space. Depending on how "
38994 "you are going to use the output, you might think this extra space is wasted "
38995 "and want to minimize it, or you might want to leave space so that more files "
38996 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
38997 "but you can use the I<--size> flag to leave space in the filesystem if you "
39002 #: ../tools/virt-make-fs.pl:77
39004 "An alternative way to leave extra space but not make the output image any "
39005 "bigger is to use an alternative disk image format (instead of the default "
39006 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39007 "image format (check your hypervisor supports this before using it). This "
39008 "allows you to choose a large I<--size> but the extra space won't actually be "
39009 "allocated in the image until you try to store something in it."
39013 #: ../tools/virt-make-fs.pl:85
39015 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39016 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39017 "to build another image from scratch."
39021 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39022 #: ../tools/virt-make-fs.pl:142
39027 #: ../tools/virt-make-fs.pl:91
39030 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39033 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39037 #: ../tools/virt-make-fs.pl:93
39038 msgid "FILESYSTEM TYPE"
39039 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39042 #: ../tools/virt-make-fs.pl:95
39044 "The default filesystem type is C<ext2>. Just about any filesystem type that "
39045 "libguestfs supports can be used (but I<not> read-only formats like "
39046 "ISO9660). Here are some of the more common choices:"
39050 #: ../tools/virt-make-fs.pl:101
39055 #: ../tools/virt-make-fs.pl:103
39057 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
39058 "you are not going to use the filesystem in a way that requires the journal, "
39059 "then this is just wasted overhead."
39063 #: ../tools/virt-make-fs.pl:107
39064 msgid "I<ntfs> or I<vfat>"
39065 msgstr "I<ntfs> або I<vfat>"
39068 #: ../tools/virt-make-fs.pl:109
39069 msgid "Useful if exporting data to a Windows guest."
39073 #: ../tools/virt-make-fs.pl:111
39075 "I<Note for vfat>: The tar archive or local directory must only contain files "
39076 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
39077 "program running within libguestfs is unable to change the ownership of non-"
39078 "root files, since vfat itself does not support this."
39082 #: ../tools/virt-make-fs.pl:116
39087 #: ../tools/virt-make-fs.pl:118
39089 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39090 "total filesystem size."
39094 #: ../tools/virt-make-fs.pl:125
39097 " virt-make-fs --type=minix input minixfs.img\n"
39102 #: ../tools/virt-make-fs.pl:127
39103 msgid "TO PARTITION OR NOT TO PARTITION"
39107 #: ../tools/virt-make-fs.pl:129
39108 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39112 #: ../tools/virt-make-fs.pl:131
39114 "Adding a partition can make the disk image more compatible with certain "
39115 "virtualized operating systems which don't expect to see a filesystem "
39116 "directly located on a block device (Linux doesn't care and will happily "
39117 "handle both types)."
39121 #: ../tools/virt-make-fs.pl:136
39123 "On the other hand, if you have a partition table then the output image is no "
39124 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
39125 "directly on a partitioned disk image. (However libguestfs tools such as "
39126 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39130 #: ../tools/virt-make-fs.pl:144
39131 msgid "Add an MBR partition:"
39135 #: ../tools/virt-make-fs.pl:146
39138 " virt-make-fs --partition -- input disk.img\n"
39143 #: ../tools/virt-make-fs.pl:148
39145 "If the output disk image could be terabyte-sized or larger, it's better to "
39146 "use an EFI/GPT-compatible partition table:"
39150 #: ../tools/virt-make-fs.pl:151
39153 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39158 #: ../tools/virt-make-fs.pl:179
39159 msgid "Enable debugging information."
39160 msgstr "Увімкнути виведення діагностичних даних."
39163 #: ../tools/virt-make-fs.pl:185
39164 msgid "B<--size=E<lt>NE<gt>>"
39165 msgstr "B<--size=E<lt>NE<gt>>"
39168 #: ../tools/virt-make-fs.pl:187
39169 msgid "B<--size=+E<lt>NE<gt>>"
39170 msgstr "B<--size=+E<lt>NE<gt>>"
39173 #: ../tools/virt-make-fs.pl:189
39174 msgid "B<-s E<lt>NE<gt>>"
39175 msgstr "B<-s E<lt>NE<gt>>"
39178 #: ../tools/virt-make-fs.pl:191
39179 msgid "B<-s +E<lt>NE<gt>>"
39180 msgstr "B<-s +E<lt>NE<gt>>"
39183 #: ../tools/virt-make-fs.pl:193
39185 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39189 #: ../tools/virt-make-fs.pl:196
39191 "If this option is I<not> given, then the output image will be just large "
39192 "enough to contain all the files, with not much wasted space."
39196 #: ../tools/virt-make-fs.pl:199
39198 "To choose a fixed size output disk, specify an absolute number followed by b/"
39199 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39200 "Petabytes or Exabytes. This must be large enough to contain all the input "
39201 "files, else you will get an error."
39205 #: ../tools/virt-make-fs.pl:204
39207 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39208 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39209 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
39210 "the input files, and (approximately) an extra 200 MB free space."
39214 #: ../tools/virt-make-fs.pl:210
39216 "Note that virt-make-fs estimates free space, and therefore will not produce "
39217 "filesystems containing precisely the free space requested. (It is much more "
39218 "expensive and time-consuming to produce a filesystem which has precisely the "
39219 "desired free space)."
39223 #: ../tools/virt-make-fs.pl:219
39224 msgid "B<--format=E<lt>fmtE<gt>>"
39228 #: ../tools/virt-make-fs.pl:221
39229 msgid "B<-F E<lt>fmtE<gt>>"
39233 #: ../tools/virt-make-fs.pl:223
39234 msgid "Choose the output disk image format."
39238 #: ../tools/virt-make-fs.pl:225
39239 msgid "The default is C<raw> (raw disk image)."
39243 #: ../tools/virt-make-fs.pl:227
39245 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
39246 "that would really make sense here is C<qcow2>."
39250 #: ../tools/virt-make-fs.pl:234
39251 msgid "B<--type=E<lt>fsE<gt>>"
39255 #: ../tools/virt-make-fs.pl:236
39256 msgid "B<-t E<lt>fsE<gt>>"
39260 #: ../tools/virt-make-fs.pl:238
39261 msgid "Choose the output filesystem type."
39265 #: ../tools/virt-make-fs.pl:240
39266 msgid "The default is C<ext2>."
39267 msgstr "Типовим значенням є C<ext2>."
39270 #: ../tools/virt-make-fs.pl:242
39272 "Any filesystem which is supported read-write by libguestfs can be used here."
39276 #: ../tools/virt-make-fs.pl:249
39277 msgid "B<--partition>"
39278 msgstr "B<--partition>"
39281 #: ../tools/virt-make-fs.pl:251
39282 msgid "B<--partition=E<lt>parttypeE<gt>>"
39286 #: ../tools/virt-make-fs.pl:253
39288 "If specified, this flag adds an MBR partition table to the output disk image."
39292 #: ../tools/virt-make-fs.pl:256
39294 "You can change the partition table type, eg. I<--partition=gpt> for large "
39299 #: ../tools/virt-make-fs.pl:259
39301 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39302 "might consider the next parameter to be the partition type. For example:"
39306 #: ../tools/virt-make-fs.pl:263
39309 " virt-make-fs --partition input.tar ...\n"
39314 #: ../tools/virt-make-fs.pl:265
39316 "would cause virt-make-fs to think you wanted to use a partition type of "
39317 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
39318 "dash) between options and the input file argument:"
39322 #: ../tools/virt-make-fs.pl:269
39325 " virt-make-fs --partition -- input.tar ...\n"
39328 " virt-make-fs --partition -- input.tar ...\n"
39332 #: ../tools/virt-make-fs.pl:541
39334 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39335 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39336 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39338 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39339 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39340 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39343 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39345 "When reporting bugs, please enable debugging and capture the I<complete> "
39350 #: ../tools/virt-make-fs.pl:558
39353 " export LIBGUESTFS_DEBUG=1\n"
39354 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39357 " export LIBGUESTFS_DEBUG=1\n"
39358 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39362 #: ../tools/virt-make-fs.pl:561
39364 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39369 #: ../tools/virt-tar.pl:33
39370 msgid "virt-tar - Extract or upload files to a virtual machine"
39374 #: ../tools/virt-tar.pl:37
39377 " virt-tar [--options] -x domname directory tarball\n"
39382 #: ../tools/virt-tar.pl:39
39385 " virt-tar [--options] -u domname tarball directory\n"
39390 #: ../tools/virt-tar.pl:41
39393 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39398 #: ../tools/virt-tar.pl:43
39401 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39406 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39411 #: ../tools/virt-tar.pl:47
39413 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39414 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39418 #: ../tools/virt-tar.pl:52
39419 msgid "Download C</home> from the VM into a local tarball:"
39423 #: ../tools/virt-tar.pl:54
39426 " virt-tar -x domname /home home.tar\n"
39431 #: ../tools/virt-tar.pl:56
39434 " virt-tar -zx domname /home home.tar.gz\n"
39439 #: ../tools/virt-tar.pl:58
39440 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39444 #: ../tools/virt-tar.pl:60
39447 " virt-tar -u domname uploadstuff.tar /tmp\n"
39452 #: ../tools/virt-tar.pl:62
39455 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39460 #: ../tools/virt-tar.pl:66
39462 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39463 "virtual machines. If you do this, you risk disk corruption in the VM. "
39464 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39468 #: ../tools/virt-tar.pl:71
39470 "You can use I<-x> (extract) on live virtual machines, but you might get "
39471 "inconsistent results or errors if there is filesystem activity inside the "
39472 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
39473 "work, but the only way to guarantee consistent results is if the virtual "
39474 "machine is shut down."
39478 #: ../tools/virt-tar.pl:79
39480 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39481 "parts of a guest filesystem. There are many possibilities: making backups, "
39482 "uploading data files, snooping on guest activity, fixing or customizing "
39487 #: ../tools/virt-tar.pl:84
39489 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
39490 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
39491 "should look at the L<guestfish(1)> tool."
39495 #: ../tools/virt-tar.pl:88
39497 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39498 "its contents (recursively) from the virtual machine into a local tarball. "
39499 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39500 "virtual machine. You cannot use these two options together."
39504 #: ../tools/virt-tar.pl:94
39506 "In addition, you may need to use the I<-z> (gZip) option to enable "
39507 "compression. When uploading, you have to specify I<-z> if the upload file "
39508 "is compressed because virt-tar won't detect this on its own."
39512 #: ../tools/virt-tar.pl:98
39514 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
39515 "example it cannot do PKZip files or bzip2 compression. If you want that "
39516 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
39517 "the L<libguestfs(3)> API)."
39521 #: ../tools/virt-tar.pl:160
39523 #| msgid "B<--format>"
39524 msgid "B<--extract>"
39525 msgstr "B<--format>"
39528 #: ../tools/virt-tar.pl:162
39530 #| msgid "download"
39531 msgid "B<--download>"
39535 #: ../tools/virt-tar.pl:164
39540 #: ../tools/virt-tar.pl:166
39542 #| msgid "B<-u> | B<--upload>"
39543 msgid "B<--upload>"
39544 msgstr "B<-u> | B<--upload>"
39547 #: ../tools/virt-tar.pl:168
39549 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39554 #: ../tools/virt-tar.pl:171
39556 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
39557 "Please read the L</WARNING> section above before using this option."
39561 #: ../tools/virt-tar.pl:175
39562 msgid "You must specify exactly one of these options."
39566 #: ../tools/virt-tar.pl:181
39571 #: ../tools/virt-tar.pl:183
39573 #| msgid "B<-z> | B<--gzip>"
39575 msgstr "B<-z> | B<--gzip>"
39578 #: ../tools/virt-tar.pl:185
39579 msgid "Specify that the input or output tarball is gzip-compressed."
39583 #: ../tools/virt-tar.pl:298
39585 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39586 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39587 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39590 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39591 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39592 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39596 #: ../tools/virt-win-reg.pl:37
39598 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39602 #: ../tools/virt-win-reg.pl:41
39605 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39610 #: ../tools/virt-win-reg.pl:43
39613 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39618 #: ../tools/virt-win-reg.pl:45
39621 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39626 #: ../tools/virt-win-reg.pl:47
39629 " virt-win-reg --merge domname [input.reg ...]\n"
39634 #: ../tools/virt-win-reg.pl:49
39637 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39642 #: ../tools/virt-win-reg.pl:53
39644 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39645 "virtual machines. If you do this, you I<will> get irreversible disk "
39646 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
39647 "but doesn't catch all cases."
39651 #: ../tools/virt-win-reg.pl:58
39653 "Modifying the Windows Registry is an inherently risky operation. The format "
39654 "is deliberately obscure and undocumented, and Registry changes can leave the "
39655 "system unbootable. Therefore when using the I<--merge> option, make sure "
39656 "you have a reliable backup first."
39660 #: ../tools/virt-win-reg.pl:65
39662 "This program can export and merge Windows Registry entries from a Windows "
39667 #: ../tools/virt-win-reg.pl:68
39669 "The first parameter is the libvirt guest name or the raw disk image of a "
39674 #: ../tools/virt-win-reg.pl:71
39676 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39677 "exported (recursively). For example:"
39681 #: ../tools/virt-win-reg.pl:74
39684 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39689 #: ../tools/virt-win-reg.pl:76
39691 "You can also display single values from within registry keys, for example:"
39695 #: ../tools/virt-win-reg.pl:79
39698 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39699 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39700 " Windows 7 Enterprise\n"
39705 #: ../tools/virt-win-reg.pl:83
39707 "With I<--merge>, you can merge a textual regedit file into the Windows "
39712 #: ../tools/virt-win-reg.pl:86
39715 " $ virt-win-reg --merge Windows7 changes.reg\n"
39720 #: ../tools/virt-win-reg.pl:90
39722 "This program is only meant for simple access to the registry. If you want "
39723 "to do complicated things with the registry, we suggest you download the "
39724 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39725 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39726 "L<hivexregedit(1)>."
39730 #: ../tools/virt-win-reg.pl:159
39732 msgstr "B<--merge>"
39735 #: ../tools/virt-win-reg.pl:161
39737 "In merge mode, this merges a textual regedit file into the Windows Registry "
39738 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
39739 "displays or exports Registry entries instead."
39743 #: ../tools/virt-win-reg.pl:165
39745 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39746 "result in disk corruption. However exporting (without this flag) is always "
39751 #: ../tools/virt-win-reg.pl:173
39752 msgid "B<--encoding> UTF-16LE|ASCII"
39756 #: ../tools/virt-win-reg.pl:175
39758 "When merging (only), you may need to specify the encoding for strings to be "
39759 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
39760 "(3)/ENCODING STRINGS>."
39764 #: ../tools/virt-win-reg.pl:179
39766 "The default is to use UTF-16LE, which should work with recent versions of "
39771 #: ../tools/virt-win-reg.pl:186
39772 msgid "B<--unsafe-printable-strings>"
39776 #: ../tools/virt-win-reg.pl:188
39778 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39779 "instead of hex sequences. Remove the final zero codepoint from strings if "
39784 #: ../tools/virt-win-reg.pl:192
39786 "This is unsafe and does not preserve the fidelity of strings in the original "
39787 "Registry for various reasons:"
39791 #: ../tools/virt-win-reg.pl:199
39793 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
39794 "other encodings will be corrupted by this transformation."
39798 #: ../tools/virt-win-reg.pl:204
39800 "Assumes that everything which has type 1 or 2 is really a string and that "
39801 "everything else is not a string, but the type field in real Registries is "
39806 #: ../tools/virt-win-reg.pl:210
39808 "Loses information about whether a zero codepoint followed the string in the "
39813 #: ../tools/virt-win-reg.pl:215
39815 "This all happens because the Registry itself contains no information about "
39816 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39820 #: ../tools/virt-win-reg.pl:219
39822 "You should only use this option for quick hacking and debugging of the "
39823 "Registry contents, and I<never> use it if the output is going to be passed "
39824 "into another program or stored in another Registry."
39828 #: ../tools/virt-win-reg.pl:556
39829 msgid "SUPPORTED SYSTEMS"
39833 #: ../tools/virt-win-reg.pl:558
39835 "The program currently supports Windows NT-derived guests starting with "
39836 "Windows XP through to at least Windows 7."
39840 #: ../tools/virt-win-reg.pl:561
39841 msgid "The following Registry keys are supported:"
39845 #: ../tools/virt-win-reg.pl:565
39846 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39850 #: ../tools/virt-win-reg.pl:567
39851 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39855 #: ../tools/virt-win-reg.pl:569
39856 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39860 #: ../tools/virt-win-reg.pl:571
39861 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39865 #: ../tools/virt-win-reg.pl:573
39866 msgid "C<HKEY_USERS\\.DEFAULT>"
39870 #: ../tools/virt-win-reg.pl:575
39871 msgid "C<HKEY_USERS\\I<SID>>"
39875 #: ../tools/virt-win-reg.pl:577
39876 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39880 #: ../tools/virt-win-reg.pl:579
39881 msgid "C<HKEY_USERS\\I<username>>"
39885 #: ../tools/virt-win-reg.pl:581
39887 "where I<username> is a local user name (this is a libguestfs extension)."
39891 #: ../tools/virt-win-reg.pl:585
39893 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39898 #: ../tools/virt-win-reg.pl:588
39900 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39901 "supported (there is no \"current user\")."
39905 #: ../tools/virt-win-reg.pl:591
39910 #: ../tools/virt-win-reg.pl:593
39912 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39913 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
39914 "style line endings. Since Windows regedit files are often in UTF-16LE with "
39915 "Windows-style line endings, you may need to reencode the whole file before "
39916 "or after processing."
39920 #: ../tools/virt-win-reg.pl:599
39922 "To reencode a file from Windows format to Linux (before processing it with "
39923 "the I<--merge> option), you would do something like this:"
39927 #: ../tools/virt-win-reg.pl:602
39930 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39935 #: ../tools/virt-win-reg.pl:604
39937 "To go in the opposite direction, after exporting and before sending the file "
39938 "to a Windows user, do something like this:"
39942 #: ../tools/virt-win-reg.pl:607
39945 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39950 #: ../tools/virt-win-reg.pl:609
39951 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39955 #: ../tools/virt-win-reg.pl:611
39957 "If you are unsure about the current encoding, use the L<file(1)> command. "
39958 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39959 "style (CRLF) line endings, like this:"
39963 #: ../tools/virt-win-reg.pl:615
39966 " $ file software.reg\n"
39967 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39968 " with CRLF line terminators\n"
39973 #: ../tools/virt-win-reg.pl:619
39974 msgid "This file would need conversion before you could I<--merge> it."
39978 #: ../tools/virt-win-reg.pl:621
39979 msgid "CurrentControlSet etc."
39983 #: ../tools/virt-win-reg.pl:623
39985 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39986 "Registry at the level of the hive file, and therefore you cannot modify "
39991 #: ../tools/virt-win-reg.pl:627
39993 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
39994 "circumstances it might refer to another control set. The way to find out is "
39995 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39999 #: ../tools/virt-win-reg.pl:631
40002 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40003 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40004 " \"Current\"=dword:00000001\n"
40005 " \"Default\"=dword:00000001\n"
40006 " \"Failed\"=dword:00000000\n"
40007 " \"LastKnownGood\"=dword:00000002\n"
40012 #: ../tools/virt-win-reg.pl:638
40013 msgid "\"Current\" is the one which Windows will choose when it boots."
40017 #: ../tools/virt-win-reg.pl:640
40019 "Similarly, other C<Current...> keys in the path may need to be replaced."
40023 #: ../tools/virt-win-reg.pl:643
40024 msgid "WINDOWS TIPS"
40028 #: ../tools/virt-win-reg.pl:645
40030 "Note that some of these tips modify the guest disk image. The guest I<must> "
40031 "be shut off, else you will get disk corruption."
40035 #: ../tools/virt-win-reg.pl:648
40036 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40040 #: ../tools/virt-win-reg.pl:650
40042 "Prepare a DOS batch script, VBScript or executable. Upload this using "
40043 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
40044 "is uploaded into C<C:\\>:"
40048 #: ../tools/virt-win-reg.pl:654
40051 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40056 #: ../tools/virt-win-reg.pl:656
40057 msgid "Prepare a regedit file containing the registry change:"
40061 #: ../tools/virt-win-reg.pl:658
40064 " cat > test.reg <<'EOF'\n"
40065 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40066 " \"Test\"=\"c:\\\\test.bat\"\n"
40072 #: ../tools/virt-win-reg.pl:663
40074 "In this example we use the key C<RunOnce> which means that the script will "
40075 "run precisely once when the first user logs in. If you want it to run every "
40076 "time a user logs in, replace C<RunOnce> with C<Run>."
40080 #: ../tools/virt-win-reg.pl:667
40081 msgid "Now update the registry:"
40085 #: ../tools/virt-win-reg.pl:669
40088 " virt-win-reg --merge WindowsGuest test.reg\n"
40093 #: ../tools/virt-win-reg.pl:671
40094 msgid "INSTALLING A SERVICE"
40098 #: ../tools/virt-win-reg.pl:673
40100 "This section assumes you are familiar with Windows services, and you either "
40101 "have a program which handles the Windows Service Control Protocol directly "
40102 "or you want to run any program using a service wrapper like SrvAny or the "
40107 #: ../tools/virt-win-reg.pl:678
40109 "First upload the program and optionally the service wrapper. In this case "
40110 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
40114 #: ../tools/virt-win-reg.pl:682
40117 " guestfish -i -d WindowsGuest <<EOF\n"
40118 " upload rhsrvany.exe /rhsrvany.exe\n"
40119 " upload test.exe /test.exe\n"
40125 #: ../tools/virt-win-reg.pl:687
40127 "Prepare a regedit file containing the registry changes. In this example, "
40128 "the first registry change is needed for the service itself or the service "
40129 "wrapper (if used). The second registry change is only needed because I am "
40130 "using the RHSrvAny service wrapper."
40134 #: ../tools/virt-win-reg.pl:692
40137 " cat > service.reg <<'EOF'\n"
40138 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40139 " \"Type\"=dword:00000010\n"
40140 " \"Start\"=dword:00000002\n"
40141 " \"ErrorControl\"=dword:00000001\n"
40142 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40143 " \"DisplayName\"=\"RHSrvAny\"\n"
40144 " \"ObjectName\"=\"NetworkService\"\n"
40149 #: ../tools/virt-win-reg.pl:701
40152 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40153 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40154 " \"PWD\"=\"c:\\\\Temp\"\n"
40160 #: ../tools/virt-win-reg.pl:712
40162 "For use of C<ControlSet001> see the section above in this manual page. You "
40163 "may need to adjust this according to the control set that is in use by the "
40168 #: ../tools/virt-win-reg.pl:718
40170 "C<\"ObjectName\"> controls the privileges that the service will have. An "
40171 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40172 "privileged account."
40176 #: ../tools/virt-win-reg.pl:724
40178 "For the meaning of the magic numbers, see this Microsoft KB article: "
40179 "L<http://support.microsoft.com/kb/103000>."
40183 #: ../tools/virt-win-reg.pl:729
40184 msgid "Update the registry:"
40188 #: ../tools/virt-win-reg.pl:731
40191 " virt-win-reg --merge WindowsGuest service.reg\n"
40196 #: ../tools/virt-win-reg.pl:735
40198 "Be careful when passing parameters containing C<\\> (backslash) in the "
40199 "shell. Usually you will have to use 'single quotes' or double backslashes "
40200 "(but not both) to protect them from the shell."
40204 #: ../tools/virt-win-reg.pl:739
40205 msgid "Paths and value names are case-insensitive."
40209 #: ../tools/virt-win-reg.pl:748
40211 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40212 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40213 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40217 #: ../tools/virt-win-reg.pl:766
40220 " export LIBGUESTFS_DEBUG=1\n"
40221 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40226 #: ../tools/virt-win-reg.pl:769
40228 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40232 #~ msgid "I<--help>"
40233 #~ msgstr "I<--help>"
40235 #~ msgid "EXIT CODE"
40236 #~ msgstr "КОД ВИХОДУ"
40238 #~ msgid "B<-a> | B<--all>"
40239 #~ msgstr "B<-a> | B<--all>"
40241 #~ msgid "B<-x> | B<--extract> | B<--download>"
40242 #~ msgstr "B<-x> | B<--extract> | B<--download>"