d38d6a5a072071a021bf664b699c048030dc84fa
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-08-28 17:57+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\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"
20
21 #. type: =head1
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
36 msgid "NAME"
37 msgstr "НАЗВА"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
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
59 msgid "SYNOPSIS"
60 msgstr "КОРОТКИЙ ОПИС"
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, fuzzy, no-wrap
65 #| msgid ""
66 #| " virt-list-partitions [--options] domname\n"
67 #| "\n"
68 msgid ""
69 " virt-cat [--options] -d domname file [file ...]\n"
70 "\n"
71 msgstr ""
72 " virt-list-partitions [--параметри] назва_домену\n"
73 "\n"
74
75 #. type: verbatim
76 #: ../cat/virt-cat.pod:11
77 #, fuzzy, no-wrap
78 #| msgid ""
79 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
80 #| "\n"
81 msgid ""
82 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
83 "\n"
84 msgstr ""
85 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
86 "\n"
87
88 #. type: textblock
89 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
90 #: ../inspector/virt-inspector.pod:13
91 msgid "Old-style:"
92 msgstr ""
93
94 #. type: verbatim
95 #: ../cat/virt-cat.pod:15
96 #, no-wrap
97 msgid ""
98 " virt-cat domname file\n"
99 "\n"
100 msgstr ""
101
102 #. type: verbatim
103 #: ../cat/virt-cat.pod:17
104 #, no-wrap
105 msgid ""
106 " virt-cat disk.img file\n"
107 "\n"
108 msgstr ""
109
110 #. type: =head1
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
125 msgid "DESCRIPTION"
126 msgstr "ОПИС"
127
128 #. type: textblock
129 #: ../cat/virt-cat.pod:21
130 msgid ""
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)."
133 msgstr ""
134
135 #. type: textblock
136 #: ../cat/virt-cat.pod:24
137 msgid ""
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 '/')."
141 msgstr ""
142
143 #. type: textblock
144 #: ../cat/virt-cat.pod:28
145 msgid ""
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)."
149 msgstr ""
150
151 #. type: =head1
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
158 msgid "EXAMPLES"
159 msgstr "ПРИКЛАДИ"
160
161 #. type: textblock
162 #: ../cat/virt-cat.pod:34
163 msgid ""
164 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../cat/virt-cat.pod:37
169 #, no-wrap
170 msgid ""
171 " virt-cat -d mydomain /etc/fstab\n"
172 "\n"
173 msgstr ""
174
175 #. type: textblock
176 #: ../cat/virt-cat.pod:39
177 msgid "List syslog messages from a VM disk image file:"
178 msgstr ""
179
180 #. type: verbatim
181 #: ../cat/virt-cat.pod:41
182 #, no-wrap
183 msgid ""
184 " virt-cat -a disk.img /var/log/messages | tail\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../cat/virt-cat.pod:43
190 msgid "Find out what DHCP IP address a VM acquired:"
191 msgstr ""
192
193 #. type: verbatim
194 #: ../cat/virt-cat.pod:45
195 #, no-wrap
196 msgid ""
197 " virt-cat -d mydomain /var/log/messages | \\\n"
198 "   grep 'dhclient: bound to' | tail\n"
199 "\n"
200 msgstr ""
201
202 #. type: textblock
203 #: ../cat/virt-cat.pod:48
204 msgid "Find out what packages were recently installed:"
205 msgstr ""
206
207 #. type: verbatim
208 #: ../cat/virt-cat.pod:50
209 #, no-wrap
210 msgid ""
211 " virt-cat -d mydomain /var/log/yum.log | tail\n"
212 "\n"
213 msgstr ""
214
215 #. type: textblock
216 #: ../cat/virt-cat.pod:52
217 msgid "Find out who is logged on inside a virtual machine:"
218 msgstr ""
219
220 #. type: verbatim
221 #: ../cat/virt-cat.pod:54
222 #, no-wrap
223 msgid ""
224 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
225 " who /tmp/utmp\n"
226 "\n"
227 msgstr ""
228
229 #. type: textblock
230 #: ../cat/virt-cat.pod:57
231 msgid "or who was logged on:"
232 msgstr ""
233
234 #. type: verbatim
235 #: ../cat/virt-cat.pod:59
236 #, no-wrap
237 msgid ""
238 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
239 " last -f /tmp/wtmp\n"
240 "\n"
241 msgstr ""
242
243 #. type: =head1
244 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
245 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
246 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
247 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
248 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
249 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
250 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
251 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
252 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
253 #: ../tools/virt-win-reg.pl:96
254 msgid "OPTIONS"
255 msgstr "ПАРАМЕТРИ"
256
257 #. type: =item
258 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
259 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
260 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
261 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
262 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
263 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
264 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
265 msgid "B<--help>"
266 msgstr "B<--help>"
267
268 #. type: textblock
269 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
270 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
271 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
272 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
273 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
274 #: ../tools/virt-win-reg.pl:106
275 msgid "Display brief help."
276 msgstr ""
277
278 #. type: =item
279 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
280 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
281 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
282 #, fuzzy
283 #| msgid "B<-f file>"
284 msgid "B<-a> file"
285 msgstr "B<-f файл>"
286
287 #. type: =item
288 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
289 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
290 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
291 #, fuzzy
292 #| msgid "B<--add image>"
293 msgid "B<--add> file"
294 msgstr "B<--add образ>"
295
296 #. type: textblock
297 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
298 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
299 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
300 msgid ""
301 "Add I<file> which should be a disk image from a virtual machine.  If the "
302 "virtual machine has multiple block devices, you must supply all of them with "
303 "separate I<-a> options."
304 msgstr ""
305
306 #. type: textblock
307 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
308 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
309 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
310 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
311 msgid ""
312 "The format of the disk image is auto-detected.  To override this and force a "
313 "particular format use the I<--format=..> option."
314 msgstr ""
315
316 #. type: =item
317 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
318 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
319 #, fuzzy
320 #| msgid "B<-c URI>"
321 msgid "B<-c> URI"
322 msgstr "B<-c адреса>"
323
324 #. type: =item
325 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
326 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
327 #, fuzzy
328 #| msgid "B<--connect URI>"
329 msgid "B<--connect> URI"
330 msgstr "B<--connect адреса>"
331
332 #. type: textblock
333 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
334 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
335 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
336 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
337 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
338 msgid ""
339 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
340 "to the default libvirt hypervisor."
341 msgstr ""
342
343 #. type: textblock
344 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
345 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
346 msgid ""
347 "If you specify guest block devices directly (I<-a>), then libvirt is not "
348 "used at all."
349 msgstr ""
350
351 #. type: =item
352 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
353 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
354 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
355 msgid "B<-d> guest"
356 msgstr ""
357
358 #. type: =item
359 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
360 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
361 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
362 msgid "B<--domain> guest"
363 msgstr ""
364
365 #. type: textblock
366 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
367 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
368 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
369 msgid ""
370 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
371 "instead of names."
372 msgstr ""
373
374 #. type: =item
375 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
376 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
377 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
378 msgid "B<--echo-keys>"
379 msgstr "B<--echo-keys>"
380
381 #. type: textblock
382 #: ../cat/virt-cat.pod:100
383 msgid ""
384 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
385 "so you cannot see what you are typing.  If you are not worried about Tempest "
386 "attacks and there is no one else in the room you can specify this flag to "
387 "see what you are typing."
388 msgstr ""
389
390 #. type: =item
391 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
392 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
393 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
394 #: ../rescue/virt-rescue.pod:124
395 msgid "B<--format=raw|qcow2|..>"
396 msgstr "B<--format=raw|qcow2|..>"
397
398 #. type: =item
399 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
400 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
401 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
402 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
403 msgid "B<--format>"
404 msgstr "B<--format>"
405
406 #. type: textblock
407 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
408 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
409 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
410 #: ../rescue/virt-rescue.pod:128
411 msgid ""
412 "The default for the I<-a> option is to auto-detect the format of the disk "
413 "image.  Using this forces the disk format for I<-a> options which follow on "
414 "the command line.  Using I<--format> with no argument switches back to auto-"
415 "detection for subsequent I<-a> options."
416 msgstr ""
417
418 #. type: textblock
419 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
420 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
421 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
422 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
423 #: ../src/guestfs.pod:2668
424 msgid "For example:"
425 msgstr "Приклад:"
426
427 #. type: verbatim
428 #: ../cat/virt-cat.pod:116
429 #, fuzzy, no-wrap
430 #| msgid ""
431 #| " guestfish --format=raw -a disk.img\n"
432 #| "\n"
433 msgid ""
434 " virt-cat --format=raw -a disk.img file\n"
435 "\n"
436 msgstr ""
437 " guestfish --format=raw -a disk.img\n"
438 "\n"
439
440 #. type: textblock
441 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
442 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
443 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
444 msgid "forces raw format (no auto-detection) for C<disk.img>."
445 msgstr ""
446
447 #. type: verbatim
448 #: ../cat/virt-cat.pod:120
449 #, fuzzy, no-wrap
450 #| msgid ""
451 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
452 #| "\n"
453 msgid ""
454 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
455 "\n"
456 msgstr ""
457 " guestfish --format=raw -a disk.img --format -a another.img\n"
458 "\n"
459
460 #. type: textblock
461 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
462 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
463 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
464 msgid ""
465 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
466 "detection for C<another.img>."
467 msgstr ""
468
469 #. type: textblock
470 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
471 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
472 #: ../rescue/virt-rescue.pod:144
473 msgid ""
474 "If you have untrusted raw-format guest disk images, you should use this "
475 "option to specify the disk format.  This avoids a possible security problem "
476 "with malicious guests (CVE-2010-3851)."
477 msgstr ""
478
479 #. type: =item
480 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
481 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
482 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
483 msgid "B<--keys-from-stdin>"
484 msgstr "B<--keys-from-stdin>"
485
486 #. type: textblock
487 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
488 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
489 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
490 msgid ""
491 "Read key or passphrase parameters from stdin.  The default is to try to read "
492 "passphrases from the user by opening C</dev/tty>."
493 msgstr ""
494
495 #. type: =item
496 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
497 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
498 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
499 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
500 msgid "B<-v>"
501 msgstr "B<-v>"
502
503 #. type: =item
504 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
505 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
506 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
507 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
508 msgid "B<--verbose>"
509 msgstr "B<--verbose>"
510
511 #. type: textblock
512 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
513 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
514 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
515 msgid "Enable verbose messages for debugging."
516 msgstr ""
517
518 #. type: =item
519 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
520 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
521 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
522 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
523 #: ../resize/virt-resize.pod:484
524 msgid "B<-V>"
525 msgstr "B<-V>"
526
527 #. type: =item
528 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
529 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
530 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
531 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
532 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
533 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
534 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
535 msgid "B<--version>"
536 msgstr "B<--version>"
537
538 #. type: textblock
539 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
540 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
541 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
542 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
543 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
544 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
545 msgid "Display version number and exit."
546 msgstr "Показати дані щодо версії і завершити роботу."
547
548 #. type: =item
549 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
550 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
551 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
552 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
553 #: ../tools/virt-tar.pl:158
554 msgid "B<-x>"
555 msgstr "B<-x>"
556
557 #. type: textblock
558 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
559 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
560 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
561 msgid "Enable tracing of libguestfs API calls."
562 msgstr ""
563
564 #. type: =head1
565 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
566 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
567 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
568 msgstr ""
569
570 #. type: textblock
571 #: ../cat/virt-cat.pod:154
572 msgid "Previous versions of virt-cat allowed you to write either:"
573 msgstr ""
574
575 #. type: verbatim
576 #: ../cat/virt-cat.pod:156
577 #, fuzzy, no-wrap
578 #| msgid ""
579 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
580 #| "\n"
581 msgid ""
582 " virt-cat disk.img [disk.img ...] file\n"
583 "\n"
584 msgstr ""
585 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
586 "\n"
587
588 #. type: textblock
589 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
590 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
591 #, fuzzy
592 #| msgid "or:"
593 msgid "or"
594 msgstr "або:"
595
596 #. type: verbatim
597 #: ../cat/virt-cat.pod:160
598 #, no-wrap
599 msgid ""
600 " virt-cat guestname file\n"
601 "\n"
602 msgstr ""
603
604 #. type: textblock
605 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
606 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
607 msgid ""
608 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
609 "the confusing case where a disk image might have the same name as a guest."
610 msgstr ""
611
612 #. type: textblock
613 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
614 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
615 msgid "For compatibility the old style is still supported."
616 msgstr ""
617
618 #. type: =head1
619 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
620 msgid "USING GUESTFISH"
621 msgstr ""
622
623 #. type: textblock
624 #: ../cat/virt-cat.pod:170
625 msgid ""
626 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
627 "C<virt-cat> doesn't work."
628 msgstr ""
629
630 #. type: textblock
631 #: ../cat/virt-cat.pod:173
632 msgid "Using C<virt-cat> is approximately equivalent to doing:"
633 msgstr ""
634
635 #. type: verbatim
636 #: ../cat/virt-cat.pod:175
637 #, fuzzy, no-wrap
638 #| msgid ""
639 #| " guestfish --ro -d myguest -i\n"
640 #| "\n"
641 msgid ""
642 " guestfish --ro -i -d domname download file -\n"
643 "\n"
644 msgstr ""
645 " guestfish --ro -d myguest -i\n"
646 "\n"
647
648 #. type: textblock
649 #: ../cat/virt-cat.pod:177
650 msgid ""
651 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
652 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
653 msgstr ""
654
655 #. type: textblock
656 #: ../cat/virt-cat.pod:181
657 msgid ""
658 "The command above uses libguestfs's guest inspection feature and so does not "
659 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
660 "disk images that don't contain guests.  To display a file from a disk image "
661 "directly, use:"
662 msgstr ""
663
664 #. type: verbatim
665 #: ../cat/virt-cat.pod:186
666 #, fuzzy, no-wrap
667 #| msgid ""
668 #| " guestfish [--ro] -i disk.img\n"
669 #| "\n"
670 msgid ""
671 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
672 "\n"
673 msgstr ""
674 " guestfish [--ro] -i disk.img\n"
675 "\n"
676
677 #. type: textblock
678 #: ../cat/virt-cat.pod:188
679 msgid ""
680 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
681 "the disk image, and C<file> is the full path to the file."
682 msgstr ""
683
684 #. type: =head1
685 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
686 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
687 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:262
688 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
689 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
690 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
691 msgid "SHELL QUOTING"
692 msgstr ""
693
694 #. type: textblock
695 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
696 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
697 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:264
698 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
699 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
700 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
701 msgid ""
702 "Libvirt guest names can contain arbitrary characters, some of which have "
703 "meaning to the shell such as C<#> and space.  You may need to quote or "
704 "escape these characters on the command line.  See the shell manual page L<sh"
705 "(1)> for details."
706 msgstr ""
707
708 #. type: =head1
709 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
710 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
711 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
712 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
713 #: ../test-tool/libguestfs-test-tool.pod:77
714 msgid "EXIT STATUS"
715 msgstr ""
716
717 #. type: textblock
718 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
719 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
720 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
721 #: ../resize/virt-resize.pod:610
722 msgid ""
723 "This program returns 0 if successful, or non-zero if there was an error."
724 msgstr ""
725
726 #. type: =head1
727 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
728 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
729 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
730 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
731 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
732 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
733 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
734 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
735 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
736 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
737 #: ../src/guestfs.pod:3042 ../test-tool/libguestfs-test-tool.pod:87
738 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
739 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
740 #: ../tools/virt-win-reg.pl:746
741 msgid "SEE ALSO"
742 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
743
744 #. type: textblock
745 #: ../cat/virt-cat.pod:205
746 #, fuzzy
747 #| msgid ""
748 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
749 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
750 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
751 msgid ""
752 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
753 "tar-out(1)>, L<http://libguestfs.org/>."
754 msgstr ""
755 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
756 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
757 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
758
759 #. type: =head1
760 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
761 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
762 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:634
763 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
764 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
765 #: ../tools/virt-win-reg.pl:772
766 msgid "AUTHOR"
767 msgstr "АВТОР"
768
769 #. type: textblock
770 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
771 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
772 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294
773 #: ../resize/virt-resize.pod:636 ../tools/virt-list-filesystems.pl:210
774 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
775 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
776 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
777 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
778
779 #. type: =head1
780 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
781 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
782 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
783 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
784 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
785 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
786 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61
787 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
788 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
789 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:51
790 #: ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:97
791 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
792 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
793 #: ../tools/virt-win-reg.pl:776
794 msgid "COPYRIGHT"
795 msgstr "АВТОРСЬКІ ПРАВА"
796
797 #. type: textblock
798 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
799 #: ../resize/virt-resize.pod:640
800 #, fuzzy
801 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
802 msgid "Copyright (C) 2010-2011 Red Hat Inc."
803 msgstr "© Red Hat Inc., 2009–2010"
804
805 #. type: textblock
806 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
807 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
808 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
809 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
810 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
811 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300
812 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:102
813 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
814 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
815 #: ../tools/virt-win-reg.pl:780
816 msgid ""
817 "This program is free software; you can redistribute it and/or modify it "
818 "under the terms of the GNU General Public License as published by the Free "
819 "Software Foundation; either version 2 of the License, or (at your option) "
820 "any later version."
821 msgstr ""
822
823 #. type: textblock
824 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
825 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
826 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
827 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
828 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
829 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305
830 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:107
831 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
832 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
833 #: ../tools/virt-win-reg.pl:785
834 msgid ""
835 "This program is distributed in the hope that it will be useful, but WITHOUT "
836 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
837 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
838 "more details."
839 msgstr ""
840 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
841 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
842 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
843 "дізнатися з GNU General Public License."
844
845 #. type: textblock
846 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
847 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
848 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
849 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
850 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
851 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310
852 #: ../resize/virt-resize.pod:652 ../test-tool/libguestfs-test-tool.pod:112
853 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
854 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
855 #: ../tools/virt-win-reg.pl:790
856 msgid ""
857 "You should have received a copy of the GNU General Public License along with "
858 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
859 "Ave, Cambridge, MA 02139, USA."
860 msgstr ""
861
862 #. type: textblock
863 #: ../cat/virt-filesystems.pod:5
864 msgid ""
865 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
866 "virtual machine or disk image"
867 msgstr ""
868
869 #. type: verbatim
870 #: ../cat/virt-filesystems.pod:9
871 #, fuzzy, no-wrap
872 #| msgid ""
873 #| " virt-list-partitions [--options] domname\n"
874 #| "\n"
875 msgid ""
876 " virt-filesystems [--options] -d domname\n"
877 "\n"
878 msgstr ""
879 " virt-list-partitions [--параметри] назва_домену\n"
880 "\n"
881
882 #. type: verbatim
883 #: ../cat/virt-filesystems.pod:11
884 #, fuzzy, no-wrap
885 #| msgid ""
886 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
887 #| "\n"
888 msgid ""
889 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
890 "\n"
891 msgstr ""
892 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
893 "\n"
894
895 #. type: textblock
896 #: ../cat/virt-filesystems.pod:15
897 msgid ""
898 "This tool allows you to discover filesystems, partitions, logical volumes, "
899 "and their sizes in a disk image or virtual machine.  It is a replacement for "
900 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
901 msgstr ""
902
903 #. type: textblock
904 #: ../cat/virt-filesystems.pod:20
905 msgid ""
906 "One use for this tool is from shell scripts to iterate over all filesystems "
907 "from a disk image:"
908 msgstr ""
909
910 #. type: verbatim
911 #: ../cat/virt-filesystems.pod:23
912 #, no-wrap
913 msgid ""
914 " for fs in $(virt-filesystems -a disk.img); do\n"
915 "   # ...\n"
916 " done\n"
917 "\n"
918 msgstr ""
919
920 #. type: textblock
921 #: ../cat/virt-filesystems.pod:27
922 msgid ""
923 "Another use is to list partitions before using another tool to modify those "
924 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
925 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
926 msgstr ""
927
928 #. type: textblock
929 #: ../cat/virt-filesystems.pod:32
930 msgid ""
931 "Various command line options control what this program displays.  You need "
932 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
933 "guest respectively.  If you just specify that then the program shows "
934 "filesystems found, one per line, like this:"
935 msgstr ""
936
937 #. type: verbatim
938 #: ../cat/virt-filesystems.pod:37
939 #, no-wrap
940 msgid ""
941 " $ virt-filesystems -a disk.img\n"
942 " /dev/sda1\n"
943 " /dev/vg_guest/lv_root\n"
944 "\n"
945 msgstr ""
946
947 #. type: textblock
948 #: ../cat/virt-filesystems.pod:41
949 msgid ""
950 "If you add I<-l> or I<--long> then the output includes extra information:"
951 msgstr ""
952
953 #. type: verbatim
954 #: ../cat/virt-filesystems.pod:44
955 #, no-wrap
956 msgid ""
957 " $ virt-filesystems -a disk.img -l\n"
958 " Name                   Type         VFS   Label  Size\n"
959 " /dev/sda1              filesystem   ext4  boot   524288000\n"
960 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
961 "\n"
962 msgstr ""
963
964 #. type: textblock
965 #: ../cat/virt-filesystems.pod:49
966 msgid ""
967 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
968 "shown as well:"
969 msgstr ""
970
971 #. type: verbatim
972 #: ../cat/virt-filesystems.pod:52
973 #, no-wrap
974 msgid ""
975 " $ virt-filesystems -a disk.img --extra\n"
976 " /dev/sda1\n"
977 " /dev/vg_guest/lv_root\n"
978 " /dev/vg_guest/lv_swap\n"
979 " /dev/vg_guest/lv_data\n"
980 "\n"
981 msgstr ""
982
983 #. type: textblock
984 #: ../cat/virt-filesystems.pod:58
985 msgid ""
986 "If you add I<--partitions> then partitions are shown instead of filesystems:"
987 msgstr ""
988
989 #. type: verbatim
990 #: ../cat/virt-filesystems.pod:60
991 #, no-wrap
992 msgid ""
993 " $ virt-filesystems -a disk.img --partitions\n"
994 " /dev/sda1\n"
995 " /dev/sda2\n"
996 "\n"
997 msgstr ""
998
999 #. type: textblock
1000 #: ../cat/virt-filesystems.pod:64
1001 msgid ""
1002 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1003 "volumes>, I<--block-devices> to list those items."
1004 msgstr ""
1005
1006 #. type: textblock
1007 #: ../cat/virt-filesystems.pod:67
1008 msgid ""
1009 "You can use these options in combination as well (if you want a combination "
1010 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1011 "items fall into several categories (eg. C</dev/sda1> might be both a "
1012 "partition and a filesystem).  These items are listed several times.  To get "
1013 "a list which includes absolutely everything that virt-filesystems knows "
1014 "about, use the I<--all> option."
1015 msgstr ""
1016
1017 #. type: textblock
1018 #: ../cat/virt-filesystems.pod:74
1019 msgid ""
1020 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1021 "uuid> option to display device and filesystem UUIDs in the long output."
1022 msgstr ""
1023
1024 #. type: textblock
1025 #: ../cat/virt-filesystems.pod:78
1026 msgid ""
1027 "I<--all --long --uuid> is a useful combination to display all possible "
1028 "information about everything."
1029 msgstr ""
1030
1031 #. type: verbatim
1032 #: ../cat/virt-filesystems.pod:81
1033 #, no-wrap
1034 msgid ""
1035 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1036 " Name      Type       VFS  Label           Size Parent   UUID\n"
1037 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1038 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1039 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1040 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1041 " /dev/sda  device     -    -               20G  -        -\n"
1042 "\n"
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../cat/virt-filesystems.pod:89
1047 msgid ""
1048 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1049 msgstr ""
1050
1051 #. type: =item
1052 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1053 #, fuzzy
1054 #| msgid "B<--help>"
1055 msgid "B<--all>"
1056 msgstr "B<--help>"
1057
1058 #. type: textblock
1059 #: ../cat/virt-filesystems.pod:112
1060 msgid ""
1061 "Display everything.  This is currently the same as specifying these options: "
1062 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1063 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1064 "added to this list in future)."
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-filesystems.pod:117
1069 #, fuzzy
1070 #| msgid "See also L</is-lv>."
1071 msgid "See also I<--long>."
1072 msgstr "Див. також L</is-lv>."
1073
1074 #. type: =item
1075 #: ../cat/virt-filesystems.pod:119
1076 #, fuzzy
1077 #| msgid "B<--live>"
1078 msgid "B<--blkdevs>"
1079 msgstr "B<--live>"
1080
1081 #. type: =item
1082 #: ../cat/virt-filesystems.pod:121
1083 #, fuzzy
1084 #| msgid "is-blockdev"
1085 msgid "B<--block-devices>"
1086 msgstr "is-blockdev"
1087
1088 #. type: textblock
1089 #: ../cat/virt-filesystems.pod:123
1090 #, fuzzy
1091 #| msgid "is-blockdev"
1092 msgid "Display block devices."
1093 msgstr "is-blockdev"
1094
1095 #. type: =item
1096 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1097 #, fuzzy
1098 #| msgid "B<--csh>"
1099 msgid "B<--csv>"
1100 msgstr "B<--csh>"
1101
1102 #. type: textblock
1103 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1104 msgid ""
1105 "Write out the results in CSV format (comma-separated values).  This format "
1106 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1107 "ABOUT CSV FORMAT> below."
1108 msgstr ""
1109
1110 #. type: textblock
1111 #: ../cat/virt-filesystems.pod:150
1112 msgid ""
1113 "When prompting for keys and passphrases, virt-filesystems normally turns "
1114 "echoing off so you cannot see what you are typing.  If you are not worried "
1115 "about Tempest attacks and there is no one else in the room you can specify "
1116 "this flag to see what you are typing."
1117 msgstr ""
1118
1119 #. type: =item
1120 #: ../cat/virt-filesystems.pod:155
1121 #, fuzzy
1122 #| msgid "B<--ro>"
1123 msgid "B<--extra>"
1124 msgstr "B<--ro>"
1125
1126 #. type: textblock
1127 #: ../cat/virt-filesystems.pod:157
1128 msgid ""
1129 "This causes filesystems that are not ordinary, mountable filesystems to be "
1130 "displayed.  This category includes swapspace, and filesystems that are empty "
1131 "or contain unknown data."
1132 msgstr ""
1133
1134 #. type: textblock
1135 #: ../cat/virt-filesystems.pod:161
1136 msgid "This option implies I<--filesystems>."
1137 msgstr ""
1138
1139 #. type: =item
1140 #: ../cat/virt-filesystems.pod:163
1141 #, fuzzy
1142 #| msgid "list-filesystems"
1143 msgid "B<--filesystems>"
1144 msgstr "list-filesystems"
1145
1146 #. type: textblock
1147 #: ../cat/virt-filesystems.pod:165
1148 msgid ""
1149 "Display mountable filesystems.  If no display option was selected then this "
1150 "option is implied."
1151 msgstr ""
1152
1153 #. type: textblock
1154 #: ../cat/virt-filesystems.pod:168
1155 msgid "With I<--extra>, non-mountable filesystems are shown too."
1156 msgstr ""
1157
1158 #. type: verbatim
1159 #: ../cat/virt-filesystems.pod:181
1160 #, fuzzy, no-wrap
1161 #| msgid ""
1162 #| " guestfish --format=raw -a disk.img\n"
1163 #| "\n"
1164 msgid ""
1165 " virt-filesystems --format=raw -a disk.img\n"
1166 "\n"
1167 msgstr ""
1168 " guestfish --format=raw -a disk.img\n"
1169 "\n"
1170
1171 #. type: verbatim
1172 #: ../cat/virt-filesystems.pod:185
1173 #, fuzzy, no-wrap
1174 #| msgid ""
1175 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1176 #| "\n"
1177 msgid ""
1178 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1179 "\n"
1180 msgstr ""
1181 " guestfish --format=raw -a disk.img --format -a another.img\n"
1182 "\n"
1183
1184 #. type: =item
1185 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1186 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1187 #: ../tools/virt-list-partitions.pl:109
1188 msgid "B<-h>"
1189 msgstr "B<-h>"
1190
1191 #. type: =item
1192 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1193 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1194 #, fuzzy
1195 #| msgid "B<-h> | B<--human-readable>"
1196 msgid "B<--human-readable>"
1197 msgstr "B<-h> | B<--human-readable>"
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:198
1201 msgid "In I<--long> mode, display sizes in human-readable format."
1202 msgstr ""
1203
1204 #. type: =item
1205 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1206 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1207 msgid "B<-l>"
1208 msgstr ""
1209
1210 #. type: =item
1211 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1212 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1213 #, fuzzy
1214 #| msgid "B<--ro>"
1215 msgid "B<--long>"
1216 msgstr "B<--ro>"
1217
1218 #. type: textblock
1219 #: ../cat/virt-filesystems.pod:209
1220 msgid "Display extra columns of data (\"long format\")."
1221 msgstr ""
1222
1223 #. type: textblock
1224 #: ../cat/virt-filesystems.pod:211
1225 msgid "A title row is added unless you also specify I<--no-title>."
1226 msgstr ""
1227
1228 #. type: textblock
1229 #: ../cat/virt-filesystems.pod:213
1230 msgid ""
1231 "The extra columns displayed depend on what output you select, and the "
1232 "ordering of columns may change in future versions.  Use the title row, I<--"
1233 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1234 "programs."
1235 msgstr ""
1236
1237 #. type: textblock
1238 #: ../cat/virt-filesystems.pod:218
1239 msgid ""
1240 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1241 "default is to show raw numbers of I<bytes>."
1242 msgstr ""
1243
1244 #. type: textblock
1245 #: ../cat/virt-filesystems.pod:221
1246 msgid "Use I<--uuid> to display UUIDs too."
1247 msgstr ""
1248
1249 #. type: =item
1250 #: ../cat/virt-filesystems.pod:223
1251 #, fuzzy
1252 #| msgid "B<--live>"
1253 msgid "B<--lvs>"
1254 msgstr "B<--live>"
1255
1256 #. type: =item
1257 #: ../cat/virt-filesystems.pod:225
1258 #, fuzzy
1259 #| msgid "B<--live>"
1260 msgid "B<--logvols>"
1261 msgstr "B<--live>"
1262
1263 #. type: =item
1264 #: ../cat/virt-filesystems.pod:227
1265 #, fuzzy
1266 #| msgid "B<--live>"
1267 msgid "B<--logical-volumes>"
1268 msgstr "B<--live>"
1269
1270 #. type: textblock
1271 #: ../cat/virt-filesystems.pod:229
1272 msgid ""
1273 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1274 "of whether the LVs contain filesystems."
1275 msgstr ""
1276
1277 #. type: =item
1278 #: ../cat/virt-filesystems.pod:232
1279 #, fuzzy
1280 #| msgid "B<--listen>"
1281 msgid "B<--no-title>"
1282 msgstr "B<--listen>"
1283
1284 #. type: textblock
1285 #: ../cat/virt-filesystems.pod:234
1286 msgid "In I<--long> mode, don't add a title row."
1287 msgstr ""
1288
1289 #. type: textblock
1290 #: ../cat/virt-filesystems.pod:236
1291 msgid ""
1292 "Note that the order of the columns is not fixed, and may change in future "
1293 "versions of virt-filesystems, so using this option may give you unexpected "
1294 "surprises."
1295 msgstr ""
1296
1297 #. type: =item
1298 #: ../cat/virt-filesystems.pod:240
1299 #, fuzzy
1300 #| msgid "B<--partition>"
1301 msgid "B<--parts>"
1302 msgstr "B<--partition>"
1303
1304 #. type: =item
1305 #: ../cat/virt-filesystems.pod:242
1306 #, fuzzy
1307 #| msgid "B<--partition>"
1308 msgid "B<--partitions>"
1309 msgstr "B<--partition>"
1310
1311 #. type: textblock
1312 #: ../cat/virt-filesystems.pod:244
1313 msgid ""
1314 "Display partitions.  In this mode, these are displayed irrespective of "
1315 "whether the partitions contain filesystems."
1316 msgstr ""
1317
1318 #. type: =item
1319 #: ../cat/virt-filesystems.pod:247
1320 #, fuzzy
1321 #| msgid "B<--csh>"
1322 msgid "B<--pvs>"
1323 msgstr "B<--csh>"
1324
1325 #. type: =item
1326 #: ../cat/virt-filesystems.pod:249
1327 #, fuzzy
1328 #| msgid "B<--verbose>"
1329 msgid "B<--physvols>"
1330 msgstr "B<--verbose>"
1331
1332 #. type: =item
1333 #: ../cat/virt-filesystems.pod:251
1334 msgid "B<--physical-volumes>"
1335 msgstr ""
1336
1337 #. type: textblock
1338 #: ../cat/virt-filesystems.pod:253
1339 msgid "Display LVM physical volumes."
1340 msgstr ""
1341
1342 #. type: =item
1343 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1344 #, fuzzy
1345 #| msgid "B<--live>"
1346 msgid "B<--uuid>"
1347 msgstr "B<--live>"
1348
1349 #. type: =item
1350 #: ../cat/virt-filesystems.pod:257
1351 #, fuzzy
1352 #| msgid "B<--csh>"
1353 msgid "B<--uuids>"
1354 msgstr "B<--csh>"
1355
1356 #. type: textblock
1357 #: ../cat/virt-filesystems.pod:259
1358 msgid "In I<--long> mode, display UUIDs as well."
1359 msgstr ""
1360
1361 #. type: =item
1362 #: ../cat/virt-filesystems.pod:273
1363 #, fuzzy
1364 #| msgid "B<--csh>"
1365 msgid "B<--vgs>"
1366 msgstr "B<--csh>"
1367
1368 #. type: =item
1369 #: ../cat/virt-filesystems.pod:275
1370 #, fuzzy
1371 #| msgid "B<--verbose>"
1372 msgid "B<--volgroups>"
1373 msgstr "B<--verbose>"
1374
1375 #. type: =item
1376 #: ../cat/virt-filesystems.pod:277
1377 #, fuzzy
1378 #| msgid "B<--verbose>"
1379 msgid "B<--volume-groups>"
1380 msgstr "B<--verbose>"
1381
1382 #. type: textblock
1383 #: ../cat/virt-filesystems.pod:279
1384 msgid "Display LVM volume groups."
1385 msgstr ""
1386
1387 #. type: =head1
1388 #: ../cat/virt-filesystems.pod:287
1389 msgid "COLUMNS"
1390 msgstr ""
1391
1392 #. type: textblock
1393 #: ../cat/virt-filesystems.pod:289
1394 msgid ""
1395 "Note that columns in the output are subject to reordering and change in "
1396 "future versions of this tool."
1397 msgstr ""
1398
1399 #. type: =item
1400 #: ../cat/virt-filesystems.pod:294
1401 msgid "B<Name>"
1402 msgstr ""
1403
1404 #. type: textblock
1405 #: ../cat/virt-filesystems.pod:296
1406 msgid "The filesystem, partition, block device or LVM name."
1407 msgstr ""
1408
1409 #. type: textblock
1410 #: ../cat/virt-filesystems.pod:298
1411 msgid ""
1412 "For device and partition names these are displayed as canonical libguestfs "
1413 "names, so that for example C</dev/sda2> is the second partition on the first "
1414 "device."
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-filesystems.pod:302
1419 msgid ""
1420 "If the I<--long> option is B<not> specified, then only the name column is "
1421 "shown in the output."
1422 msgstr ""
1423
1424 #. type: =item
1425 #: ../cat/virt-filesystems.pod:305
1426 #, fuzzy
1427 #| msgid "B<-N type>"
1428 msgid "B<Type>"
1429 msgstr "B<-N тип>"
1430
1431 #. type: textblock
1432 #: ../cat/virt-filesystems.pod:307
1433 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1434 msgstr ""
1435
1436 #. type: =item
1437 #: ../cat/virt-filesystems.pod:309
1438 msgid "B<VFS>"
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../cat/virt-filesystems.pod:311
1443 msgid ""
1444 "If there is a filesystem, then this column displays the filesystem type if "
1445 "one could be detected, eg. C<ext4>."
1446 msgstr ""
1447
1448 #. type: =item
1449 #: ../cat/virt-filesystems.pod:314
1450 msgid "B<Label>"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../cat/virt-filesystems.pod:316
1455 msgid ""
1456 "If the object has a label (used for identifying and mounting filesystems) "
1457 "then this column contains the label."
1458 msgstr ""
1459
1460 #. type: =item
1461 #: ../cat/virt-filesystems.pod:319
1462 #, fuzzy
1463 #| msgid "B<part_size>"
1464 msgid "B<Size>"
1465 msgstr "B<part_size>"
1466
1467 #. type: textblock
1468 #: ../cat/virt-filesystems.pod:321
1469 msgid ""
1470 "The size of the object in bytes.  If the I<--human> option is used then the "
1471 "size is displayed in a human-readable form."
1472 msgstr ""
1473
1474 #. type: =item
1475 #: ../cat/virt-filesystems.pod:324
1476 msgid "B<Parent>"
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-filesystems.pod:326
1481 msgid ""
1482 "The parent column records the parent relationship between objects.  For "
1483 "example, if the object is a partition, then this column contains the name of "
1484 "the containing device.  If the object is a logical volume, then this column "
1485 "is the name of the volume group."
1486 msgstr ""
1487
1488 #. type: =item
1489 #: ../cat/virt-filesystems.pod:331
1490 msgid "B<UUID>"
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-filesystems.pod:333
1495 msgid ""
1496 "If the object has a UUID (used for identifying and mounting filesystems and "
1497 "block devices) then this column contains the UUID as a string."
1498 msgstr ""
1499
1500 #. type: textblock
1501 #: ../cat/virt-filesystems.pod:337
1502 msgid "The UUID is only displayed if the I<--uuid> option is given."
1503 msgstr ""
1504
1505 #. type: =head1
1506 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1507 #: ../df/virt-df.pod:191
1508 msgid "NOTE ABOUT CSV FORMAT"
1509 msgstr ""
1510
1511 #. type: textblock
1512 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1513 #: ../df/virt-df.pod:193
1514 msgid ""
1515 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1516 "should be easy to parse, but it is definitely not easy to parse."
1517 msgstr ""
1518
1519 #. type: textblock
1520 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1521 #: ../df/virt-df.pod:196
1522 msgid ""
1523 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1524 "reliably.  This example has two columns:"
1525 msgstr ""
1526
1527 #. type: verbatim
1528 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1529 #: ../df/virt-df.pod:199
1530 #, no-wrap
1531 msgid ""
1532 " \"foo,bar\",baz\n"
1533 "\n"
1534 msgstr ""
1535
1536 #. type: textblock
1537 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1538 #: ../df/virt-df.pod:201
1539 msgid ""
1540 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1541 "reliably.  This example has one row:"
1542 msgstr ""
1543
1544 #. type: verbatim
1545 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1546 #: ../df/virt-df.pod:204
1547 #, no-wrap
1548 msgid ""
1549 " \"foo\n"
1550 " bar\",baz\n"
1551 "\n"
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1556 #: ../df/virt-df.pod:207
1557 msgid ""
1558 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1559 "packaged in major Linux distributions)."
1560 msgstr ""
1561
1562 #. type: textblock
1563 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1564 #: ../df/virt-df.pod:210
1565 msgid ""
1566 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1567 "or Python's built-in csv library)."
1568 msgstr ""
1569
1570 #. type: textblock
1571 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1572 #: ../df/virt-df.pod:213
1573 msgid "Most spreadsheets and databases can import CSV directly."
1574 msgstr ""
1575
1576 #. type: textblock
1577 #: ../cat/virt-filesystems.pod:379
1578 #, fuzzy
1579 #| msgid ""
1580 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1581 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1582 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1583 msgid ""
1584 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1585 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1586 "libguestfs.org/>."
1587 msgstr ""
1588 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1589 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1590 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1591
1592 #. type: textblock
1593 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1594 #: ../tools/virt-win-reg.pl:778
1595 msgid "Copyright (C) 2010 Red Hat Inc."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-ls.pod:5
1600 msgid "virt-ls - List files in a virtual machine"
1601 msgstr ""
1602
1603 #. type: verbatim
1604 #: ../cat/virt-ls.pod:9
1605 #, no-wrap
1606 msgid ""
1607 " virt-ls [--options] -d domname directory [directory ...]\n"
1608 "\n"
1609 msgstr ""
1610
1611 #. type: verbatim
1612 #: ../cat/virt-ls.pod:11
1613 #, fuzzy, no-wrap
1614 #| msgid ""
1615 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1616 #| "\n"
1617 msgid ""
1618 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1619 "\n"
1620 msgstr ""
1621 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1622 "\n"
1623
1624 #. type: textblock
1625 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1626 msgid "Old style:"
1627 msgstr ""
1628
1629 #. type: verbatim
1630 #: ../cat/virt-ls.pod:15
1631 #, fuzzy, no-wrap
1632 #| msgid ""
1633 #| " virt-list-partitions [--options] domname\n"
1634 #| "\n"
1635 msgid ""
1636 " virt-ls [--options] domname directory\n"
1637 "\n"
1638 msgstr ""
1639 " virt-list-partitions [--параметри] назва_домену\n"
1640 "\n"
1641
1642 #. type: verbatim
1643 #: ../cat/virt-ls.pod:17
1644 #, fuzzy, no-wrap
1645 #| msgid ""
1646 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1647 #| "\n"
1648 msgid ""
1649 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1650 "\n"
1651 msgstr ""
1652 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1653 "\n"
1654
1655 #. type: textblock
1656 #: ../cat/virt-ls.pod:21
1657 msgid ""
1658 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1659 "more from a virtual machine or disk image."
1660 msgstr ""
1661
1662 #. type: textblock
1663 #: ../cat/virt-ls.pod:24
1664 msgid ""
1665 "Multiple directory names can be given, in which case the output from each is "
1666 "concatenated."
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-ls.pod:27
1671 msgid ""
1672 "To list directories from a libvirt guest use the I<-d> option to specify the "
1673 "name of the guest.  For a disk image, use the I<-a> option."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-ls.pod:31
1678 msgid ""
1679 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1680 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1681 "(3)> API."
1682 msgstr ""
1683
1684 #. type: textblock
1685 #: ../cat/virt-ls.pod:37
1686 msgid "Get a list of all files and directories in a virtual machine:"
1687 msgstr ""
1688
1689 #. type: verbatim
1690 #: ../cat/virt-ls.pod:39
1691 #, fuzzy, no-wrap
1692 #| msgid ""
1693 #| " guestfish --ro -d myguest -i\n"
1694 #| "\n"
1695 msgid ""
1696 " virt-ls -R -d guest /\n"
1697 "\n"
1698 msgstr ""
1699 " guestfish --ro -d myguest -i\n"
1700 "\n"
1701
1702 #. type: textblock
1703 #: ../cat/virt-ls.pod:41
1704 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1705 msgstr ""
1706
1707 #. type: verbatim
1708 #: ../cat/virt-ls.pod:43
1709 #, no-wrap
1710 msgid ""
1711 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1712 "\n"
1713 msgstr ""
1714
1715 #. type: textblock
1716 #: ../cat/virt-ls.pod:45
1717 msgid "List all public-writable directories in a Linux virtual machine:"
1718 msgstr ""
1719
1720 #. type: verbatim
1721 #: ../cat/virt-ls.pod:47
1722 #, no-wrap
1723 msgid ""
1724 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1725 "\n"
1726 msgstr ""
1727
1728 #. type: textblock
1729 #: ../cat/virt-ls.pod:49
1730 msgid "List all Unix domain sockets in a Linux virtual machine:"
1731 msgstr ""
1732
1733 #. type: verbatim
1734 #: ../cat/virt-ls.pod:51
1735 #, no-wrap
1736 msgid ""
1737 " virt-ls -lR -d guest / | grep '^s'\n"
1738 "\n"
1739 msgstr ""
1740
1741 #. type: textblock
1742 #: ../cat/virt-ls.pod:53
1743 msgid "List all regular files with filenames ending in '.png':"
1744 msgstr ""
1745
1746 #. type: verbatim
1747 #: ../cat/virt-ls.pod:55
1748 #, no-wrap
1749 msgid ""
1750 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1751 "\n"
1752 msgstr ""
1753
1754 #. type: textblock
1755 #: ../cat/virt-ls.pod:57
1756 msgid "To display files larger than 10MB in home directories:"
1757 msgstr ""
1758
1759 #. type: verbatim
1760 #: ../cat/virt-ls.pod:59
1761 #, no-wrap
1762 msgid ""
1763 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1764 "\n"
1765 msgstr ""
1766
1767 #. type: textblock
1768 #: ../cat/virt-ls.pod:61
1769 msgid "Find everything modified in the last 7 days:"
1770 msgstr ""
1771
1772 #. type: verbatim
1773 #: ../cat/virt-ls.pod:63
1774 #, no-wrap
1775 msgid ""
1776 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1777 "\n"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-ls.pod:65
1782 msgid "Find regular files modified in the last 24 hours:"
1783 msgstr ""
1784
1785 #. type: verbatim
1786 #: ../cat/virt-ls.pod:67
1787 #, no-wrap
1788 msgid ""
1789 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1790 "\n"
1791 msgstr ""
1792
1793 #. type: =head2
1794 #: ../cat/virt-ls.pod:69
1795 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1796 msgstr ""
1797
1798 #. type: textblock
1799 #: ../cat/virt-ls.pod:71
1800 msgid ""
1801 "Find the differences between files in a guest and an earlier snapshot of the "
1802 "same guest."
1803 msgstr ""
1804
1805 #. type: verbatim
1806 #: ../cat/virt-ls.pod:74
1807 #, no-wrap
1808 msgid ""
1809 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1810 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1811 " diff -u old new | less\n"
1812 "\n"
1813 msgstr ""
1814
1815 #. type: textblock
1816 #: ../cat/virt-ls.pod:78
1817 msgid ""
1818 "The commands above won't find files where the content has changed but the "
1819 "metadata (eg. file size and modification date) is the same.  To do that, you "
1820 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1821 "checksum> can be quite slow since it has to read and compute a checksum of "
1822 "every regular file in the virtual machine."
1823 msgstr ""
1824
1825 #. type: =head1
1826 #: ../cat/virt-ls.pod:84
1827 msgid "OUTPUT MODES"
1828 msgstr ""
1829
1830 #. type: textblock
1831 #: ../cat/virt-ls.pod:86
1832 msgid ""
1833 "C<virt-ls> has four output modes, controlled by different combinations of "
1834 "the I<-l> and I<-R> options."
1835 msgstr ""
1836
1837 #. type: =head2
1838 #: ../cat/virt-ls.pod:89
1839 msgid "SIMPLE LISTING"
1840 msgstr ""
1841
1842 #. type: textblock
1843 #: ../cat/virt-ls.pod:91
1844 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1845 msgstr ""
1846
1847 #. type: verbatim
1848 #: ../cat/virt-ls.pod:93
1849 #, no-wrap
1850 msgid ""
1851 " $ virt-ls -d guest /\n"
1852 " bin\n"
1853 " boot\n"
1854 " [etc.]\n"
1855 "\n"
1856 msgstr ""
1857
1858 #. type: =head2
1859 #: ../cat/virt-ls.pod:98
1860 #, fuzzy
1861 #| msgid "MOUNTING"
1862 msgid "LONG LISTING"
1863 msgstr "МОНТУВАННЯ"
1864
1865 #. type: textblock
1866 #: ../cat/virt-ls.pod:100
1867 msgid ""
1868 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1869 "(more specifically, like the C<guestfs_ll> function)."
1870 msgstr ""
1871
1872 #. type: verbatim
1873 #: ../cat/virt-ls.pod:103
1874 #, no-wrap
1875 msgid ""
1876 " $ virt-ls -l -d guest /\n"
1877 " total 204\n"
1878 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1879 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1880 " [etc.]\n"
1881 "\n"
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:109
1886 msgid ""
1887 "Note that while this is useful for displaying a directory, do not try "
1888 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1889 "instead."
1890 msgstr ""
1891
1892 #. type: =head2
1893 #: ../cat/virt-ls.pod:113
1894 msgid "RECURSIVE LISTING"
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-ls.pod:115
1899 msgid ""
1900 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1901 "and directories recursively:"
1902 msgstr ""
1903
1904 #. type: verbatim
1905 #: ../cat/virt-ls.pod:118
1906 #, no-wrap
1907 msgid ""
1908 " $ virt-ls -R -d guest /tmp\n"
1909 " foo\n"
1910 " foo/bar\n"
1911 " [etc.]\n"
1912 "\n"
1913 msgstr ""
1914
1915 #. type: textblock
1916 #: ../cat/virt-ls.pod:123
1917 msgid ""
1918 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1919 "converts C<\\0> characters to C<\\n>."
1920 msgstr ""
1921
1922 #. type: =head2
1923 #: ../cat/virt-ls.pod:126
1924 msgid "RECURSIVE LONG LISTING"
1925 msgstr ""
1926
1927 #. type: textblock
1928 #: ../cat/virt-ls.pod:128
1929 msgid ""
1930 "Using I<-lR> options together changes the output to display directories "
1931 "recursively, with file stats, and optionally other features such as "
1932 "checksums and extended attributes."
1933 msgstr ""
1934
1935 #. type: textblock
1936 #: ../cat/virt-ls.pod:132
1937 msgid ""
1938 "Most of the interesting features of C<virt-ls> are only available when using "
1939 "I<-lR> mode."
1940 msgstr ""
1941
1942 #. type: textblock
1943 #: ../cat/virt-ls.pod:135
1944 msgid ""
1945 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1946 "you cannot use the output in another program (because filenames can contain "
1947 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1948 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1949 "on you by creating filenames with embedded newline characters.  To B<safely> "
1950 "parse the output in another program, use the I<--csv> (Comma-Separated "
1951 "Values) option."
1952 msgstr ""
1953
1954 #. type: textblock
1955 #: ../cat/virt-ls.pod:143
1956 msgid ""
1957 "Note that this output format is completely unrelated to the C<ls -lR> "
1958 "command."
1959 msgstr ""
1960
1961 #. type: verbatim
1962 #: ../cat/virt-ls.pod:146
1963 #, no-wrap
1964 msgid ""
1965 " $ virt-ls -lR -d guest /bin\n"
1966 " d 0555       4096 /bin\n"
1967 " - 0755        123 /bin/alsaunmute\n"
1968 " - 0755      28328 /bin/arch\n"
1969 " l 0777          4 /bin/awk -> gawk\n"
1970 " - 0755      27216 /bin/basename\n"
1971 " - 0755     943360 /bin/bash\n"
1972 " [etc.]\n"
1973 "\n"
1974 msgstr ""
1975
1976 #. type: textblock
1977 #: ../cat/virt-ls.pod:155
1978 msgid "These basic fields are always shown:"
1979 msgstr ""
1980
1981 #. type: =item
1982 #: ../cat/virt-ls.pod:159
1983 #, fuzzy
1984 #| msgid "vfs-type"
1985 msgid "type"
1986 msgstr "vfs-type"
1987
1988 #. type: textblock
1989 #: ../cat/virt-ls.pod:161
1990 msgid ""
1991 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1992 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1993 "link), C<s> (socket) or C<u> (unknown)."
1994 msgstr ""
1995
1996 #. type: =item
1997 #: ../cat/virt-ls.pod:171
1998 #, fuzzy
1999 #| msgid "version"
2000 msgid "permissions"
2001 msgstr "version"
2002
2003 #. type: textblock
2004 #: ../cat/virt-ls.pod:173
2005 msgid "The Unix permissions, displayed as a 4 digit octal number."
2006 msgstr ""
2007
2008 #. type: =item
2009 #: ../cat/virt-ls.pod:175
2010 #, fuzzy
2011 #| msgid "filesize"
2012 msgid "size"
2013 msgstr "filesize"
2014
2015 #. type: textblock
2016 #: ../cat/virt-ls.pod:177
2017 msgid ""
2018 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2019 "readable> option is given, in which case this is shown as a human-readable "
2020 "number."
2021 msgstr ""
2022
2023 #. type: =head2
2024 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
2025 msgid "path"
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../cat/virt-ls.pod:183
2030 msgid "The full path of the file or directory."
2031 msgstr ""
2032
2033 #. type: =item
2034 #: ../cat/virt-ls.pod:185
2035 #, fuzzy
2036 #| msgid "readlink"
2037 msgid "link"
2038 msgstr "readlink"
2039
2040 #. type: textblock
2041 #: ../cat/virt-ls.pod:187
2042 msgid "For symbolic links only, the link target."
2043 msgstr ""
2044
2045 #. type: textblock
2046 #: ../cat/virt-ls.pod:191
2047 msgid ""
2048 "In I<-lR> mode, additional command line options enable the display of more "
2049 "fields."
2050 msgstr ""
2051
2052 #. type: textblock
2053 #: ../cat/virt-ls.pod:194
2054 msgid ""
2055 "With the I<--uids> flag, these additional fields are displayed before the "
2056 "path:"
2057 msgstr ""
2058
2059 #. type: =item
2060 #: ../cat/virt-ls.pod:199
2061 #, fuzzy
2062 #| msgid "lvuuid"
2063 msgid "uid"
2064 msgstr "lvuuid"
2065
2066 #. type: =item
2067 #: ../cat/virt-ls.pod:201
2068 #, fuzzy
2069 #| msgid "vguuid"
2070 msgid "gid"
2071 msgstr "vguuid"
2072
2073 #. type: textblock
2074 #: ../cat/virt-ls.pod:203
2075 msgid ""
2076 "The UID and GID of the owner of the file (displayed numerically).  Note "
2077 "these only make sense in the context of a Unix-like guest."
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:208
2082 msgid "With the I<--times> flag, these additional fields are displayed:"
2083 msgstr ""
2084
2085 #. type: =item
2086 #: ../cat/virt-ls.pod:212
2087 #, fuzzy
2088 #| msgid "time"
2089 msgid "atime"
2090 msgstr "time"
2091
2092 #. type: textblock
2093 #: ../cat/virt-ls.pod:214
2094 msgid "The time of last access."
2095 msgstr ""
2096
2097 #. type: =item
2098 #: ../cat/virt-ls.pod:216
2099 #, fuzzy
2100 #| msgid "time"
2101 msgid "mtime"
2102 msgstr "time"
2103
2104 #. type: textblock
2105 #: ../cat/virt-ls.pod:218
2106 msgid "The time of last modification."
2107 msgstr ""
2108
2109 #. type: =item
2110 #: ../cat/virt-ls.pod:220
2111 #, fuzzy
2112 #| msgid "time"
2113 msgid "ctime"
2114 msgstr "time"
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:222
2118 msgid "The time of last status change."
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../cat/virt-ls.pod:226
2123 msgid ""
2124 "The time fields are displayed as string dates and times, unless one of the "
2125 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2126 msgstr ""
2127
2128 #. type: textblock
2129 #: ../cat/virt-ls.pod:229
2130 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2131 msgstr ""
2132
2133 #. type: =item
2134 #: ../cat/virt-ls.pod:233
2135 #, fuzzy
2136 #| msgid "zero-device"
2137 msgid "device"
2138 msgstr "zero-device"
2139
2140 #. type: textblock
2141 #: ../cat/virt-ls.pod:235
2142 msgid ""
2143 "The device containing the file (displayed as major:minor).  This may not "
2144 "match devices as known to the guest."
2145 msgstr ""
2146
2147 #. type: =item
2148 #: ../cat/virt-ls.pod:238
2149 msgid "inode"
2150 msgstr ""
2151
2152 #. type: textblock
2153 #: ../cat/virt-ls.pod:240
2154 msgid "The inode number."
2155 msgstr ""
2156
2157 #. type: =item
2158 #: ../cat/virt-ls.pod:242
2159 #, fuzzy
2160 #| msgid "readlink"
2161 msgid "nlink"
2162 msgstr "readlink"
2163
2164 #. type: textblock
2165 #: ../cat/virt-ls.pod:244
2166 msgid "The number of hard links."
2167 msgstr ""
2168
2169 #. type: =item
2170 #: ../cat/virt-ls.pod:246
2171 msgid "rdev"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:248
2176 msgid ""
2177 "For block and char special files, the device (displayed as major:minor)."
2178 msgstr ""
2179
2180 #. type: =item
2181 #: ../cat/virt-ls.pod:251
2182 #, fuzzy
2183 #| msgid "C<blocksize>"
2184 msgid "blocks"
2185 msgstr "C<blocksize>"
2186
2187 #. type: textblock
2188 #: ../cat/virt-ls.pod:253
2189 msgid "The number of 512 byte blocks allocated to the file."
2190 msgstr ""
2191
2192 #. type: textblock
2193 #: ../cat/virt-ls.pod:257
2194 msgid ""
2195 "With the I<--checksum> flag, the checksum of the file contents is shown "
2196 "(only for regular files).  Computing file checksums can take a considerable "
2197 "amount of time."
2198 msgstr ""
2199
2200 #. type: =item
2201 #: ../cat/virt-ls.pod:280
2202 #, fuzzy
2203 #| msgid "checksum"
2204 msgid "B<--checksum>"
2205 msgstr "checksum"
2206
2207 #. type: =item
2208 #: ../cat/virt-ls.pod:282
2209 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2210 msgstr ""
2211
2212 #. type: textblock
2213 #: ../cat/virt-ls.pod:284
2214 msgid ""
2215 "Display checksum over file contents for regular files.  With no argument, "
2216 "this defaults to using I<md5>.  Using an argument, you can select the "
2217 "checksum type to use."
2218 msgstr ""
2219
2220 #. type: textblock
2221 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2222 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2223 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2224 msgid ""
2225 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2226 "LISTING> above."
2227 msgstr ""
2228
2229 #. type: textblock
2230 #: ../cat/virt-ls.pod:316
2231 msgid ""
2232 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2233 "so you cannot see what you are typing.  If you are not worried about Tempest "
2234 "attacks and there is no one else in the room you can specify this flag to "
2235 "see what you are typing."
2236 msgstr ""
2237
2238 #. type: =item
2239 #: ../cat/virt-ls.pod:321
2240 #, fuzzy
2241 #| msgid "B<--no-dest-paths>"
2242 msgid "B<--extra-stats>"
2243 msgstr "B<--no-dest-paths>"
2244
2245 #. type: textblock
2246 #: ../cat/virt-ls.pod:323
2247 msgid "Display extra stats."
2248 msgstr ""
2249
2250 #. type: verbatim
2251 #: ../cat/virt-ls.pod:339
2252 #, fuzzy, no-wrap
2253 #| msgid ""
2254 #| " guestfish --format=raw -a disk.img\n"
2255 #| "\n"
2256 msgid ""
2257 " virt-ls --format=raw -a disk.img /dir\n"
2258 "\n"
2259 msgstr ""
2260 " guestfish --format=raw -a disk.img\n"
2261 "\n"
2262
2263 #. type: verbatim
2264 #: ../cat/virt-ls.pod:343
2265 #, fuzzy, no-wrap
2266 #| msgid ""
2267 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2268 #| "\n"
2269 msgid ""
2270 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2271 "\n"
2272 msgstr ""
2273 " guestfish --format=raw -a disk.img --format -a another.img\n"
2274 "\n"
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:356
2278 msgid "Display file sizes in human-readable format."
2279 msgstr ""
2280
2281 #. type: =item
2282 #: ../cat/virt-ls.pod:370
2283 msgid "B<-R>"
2284 msgstr ""
2285
2286 #. type: =item
2287 #: ../cat/virt-ls.pod:372
2288 #, fuzzy
2289 #| msgid "B<--live>"
2290 msgid "B<--recursive>"
2291 msgstr "B<--live>"
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:374
2295 msgid ""
2296 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2297 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2298 "LISTING>."
2299 msgstr ""
2300
2301 #. type: textblock
2302 #: ../cat/virt-ls.pod:378
2303 msgid ""
2304 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2305 "LONG LISTING>."
2306 msgstr ""
2307
2308 #. type: textblock
2309 #: ../cat/virt-ls.pod:381
2310 msgid ""
2311 "C<virt-ls -R> produces a recursive list of files starting at the named "
2312 "directory.  See L</RECURSIVE LISTING>."
2313 msgstr ""
2314
2315 #. type: textblock
2316 #: ../cat/virt-ls.pod:384
2317 msgid ""
2318 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2319 "parsed.  See L</RECURSIVE LONG LISTING>."
2320 msgstr ""
2321
2322 #. type: =item
2323 #: ../cat/virt-ls.pod:387
2324 #, fuzzy
2325 #| msgid "B<--live>"
2326 msgid "B<--times>"
2327 msgstr "B<--live>"
2328
2329 #. type: textblock
2330 #: ../cat/virt-ls.pod:389
2331 msgid "Display time fields."
2332 msgstr ""
2333
2334 #. type: =item
2335 #: ../cat/virt-ls.pod:394
2336 #, fuzzy
2337 #| msgid "B<--echo-keys>"
2338 msgid "B<--time-days>"
2339 msgstr "B<--echo-keys>"
2340
2341 #. type: textblock
2342 #: ../cat/virt-ls.pod:396
2343 msgid "Display time fields as days before now (negative if in the future)."
2344 msgstr ""
2345
2346 #. type: textblock
2347 #: ../cat/virt-ls.pod:398
2348 msgid ""
2349 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2350 "of the file is between 0 and 86399 seconds."
2351 msgstr ""
2352
2353 #. type: =item
2354 #: ../cat/virt-ls.pod:404
2355 #, fuzzy
2356 #| msgid "B<--live>"
2357 msgid "B<--time-relative>"
2358 msgstr "B<--live>"
2359
2360 #. type: textblock
2361 #: ../cat/virt-ls.pod:406
2362 msgid "Display time fields as seconds before now (negative if in the future)."
2363 msgstr ""
2364
2365 #. type: =item
2366 #: ../cat/virt-ls.pod:411
2367 #, fuzzy
2368 #| msgid "I<--timeout N>"
2369 msgid "B<--time-t>"
2370 msgstr "I<--timeout N>"
2371
2372 #. type: textblock
2373 #: ../cat/virt-ls.pod:413
2374 msgid "Display time fields as seconds since the Unix epoch."
2375 msgstr ""
2376
2377 #. type: =item
2378 #: ../cat/virt-ls.pod:418
2379 #, fuzzy
2380 #| msgid "B<--csh>"
2381 msgid "B<--uids>"
2382 msgstr "B<--csh>"
2383
2384 #. type: textblock
2385 #: ../cat/virt-ls.pod:420
2386 msgid "Display UID and GID fields."
2387 msgstr ""
2388
2389 #. type: textblock
2390 #: ../cat/virt-ls.pod:445
2391 msgid "Previous versions of virt-ls allowed you to write either:"
2392 msgstr ""
2393
2394 #. type: verbatim
2395 #: ../cat/virt-ls.pod:447
2396 #, fuzzy, no-wrap
2397 #| msgid ""
2398 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2399 #| "\n"
2400 msgid ""
2401 " virt-ls disk.img [disk.img ...] /dir\n"
2402 "\n"
2403 msgstr ""
2404 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2405 "\n"
2406
2407 #. type: verbatim
2408 #: ../cat/virt-ls.pod:451
2409 #, fuzzy, no-wrap
2410 #| msgid ""
2411 #| " inspect-get-hostname root\n"
2412 #| "\n"
2413 msgid ""
2414 " virt-ls guestname /dir\n"
2415 "\n"
2416 msgstr ""
2417 " inspect-get-hostname корінь\n"
2418 "\n"
2419
2420 #. type: textblock
2421 #: ../cat/virt-ls.pod:497
2422 #, fuzzy
2423 #| msgid ""
2424 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2425 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2426 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2427 msgid ""
2428 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2429 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2430 "L<http://libguestfs.org/>."
2431 msgstr ""
2432 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2433 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2434 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2435
2436 #. type: textblock
2437 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2438 #: ../rescue/virt-rescue.pod:298
2439 #, fuzzy
2440 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2441 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2442 msgstr "© Red Hat Inc., 2009–2010"
2443
2444 #. type: textblock
2445 #: ../df/virt-df.pod:5
2446 msgid "virt-df - Display free space on virtual filesystems"
2447 msgstr ""
2448
2449 #. type: verbatim
2450 #: ../df/virt-df.pod:9
2451 #, fuzzy, no-wrap
2452 #| msgid ""
2453 #| " virt-list-partitions [--options] domname\n"
2454 #| "\n"
2455 msgid ""
2456 " virt-df [--options]\n"
2457 "\n"
2458 msgstr ""
2459 " virt-list-partitions [--параметри] назва_домену\n"
2460 "\n"
2461
2462 #. type: verbatim
2463 #: ../df/virt-df.pod:11
2464 #, fuzzy, no-wrap
2465 #| msgid ""
2466 #| " virt-list-partitions [--options] domname\n"
2467 #| "\n"
2468 msgid ""
2469 " virt-df [--options] -d domname\n"
2470 "\n"
2471 msgstr ""
2472 " virt-list-partitions [--параметри] назва_домену\n"
2473 "\n"
2474
2475 #. type: verbatim
2476 #: ../df/virt-df.pod:13
2477 #, fuzzy, no-wrap
2478 #| msgid ""
2479 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2480 #| "\n"
2481 msgid ""
2482 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2483 "\n"
2484 msgstr ""
2485 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2486 "\n"
2487
2488 #. type: verbatim
2489 #: ../df/virt-df.pod:17
2490 #, fuzzy, no-wrap
2491 #| msgid ""
2492 #| " virt-list-partitions [--options] domname\n"
2493 #| "\n"
2494 msgid ""
2495 " virt-df [--options] domname\n"
2496 "\n"
2497 msgstr ""
2498 " virt-list-partitions [--параметри] назва_домену\n"
2499 "\n"
2500
2501 #. type: verbatim
2502 #: ../df/virt-df.pod:19
2503 #, fuzzy, no-wrap
2504 #| msgid ""
2505 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2506 #| "\n"
2507 msgid ""
2508 " virt-df [--options] disk.img [disk.img ...]\n"
2509 "\n"
2510 msgstr ""
2511 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2512 "\n"
2513
2514 #. type: textblock
2515 #: ../df/virt-df.pod:23
2516 msgid ""
2517 "C<virt-df> is a command line tool to display free space on virtual machine "
2518 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2519 "allocated to a virtual machine, but can look inside disk images to see how "
2520 "much space is really being used."
2521 msgstr ""
2522
2523 #. type: textblock
2524 #: ../df/virt-df.pod:28
2525 msgid ""
2526 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2527 "to get a list of all active and inactive guests, and performs a C<df>-type "
2528 "operation on each one in turn, printing out the results."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../df/virt-df.pod:32
2533 msgid ""
2534 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2535 "type operation on either the single named libvirt domain, or on the disk "
2536 "image(s) listed on the command line (which must all belong to a single VM).  "
2537 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2538 "guest>.  If you want to run on multiple guests, then you have to invoke "
2539 "C<virt-df> multiple times."
2540 msgstr ""
2541
2542 #. type: textblock
2543 #: ../df/virt-df.pod:39
2544 msgid ""
2545 "Use the I<--csv> option to get a format which can be easily parsed by other "
2546 "programs.  Other options are similar to the standard L<df(1)> command."
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../df/virt-df.pod:45
2551 msgid ""
2552 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2553 "output human-readable:"
2554 msgstr ""
2555
2556 #. type: verbatim
2557 #: ../df/virt-df.pod:48
2558 #, no-wrap
2559 msgid ""
2560 " # virt-df -d F14x64 -h\n"
2561 " Filesystem                       Size     Used  Available  Use%\n"
2562 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2563 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2564 "\n"
2565 msgstr ""
2566
2567 #. type: textblock
2568 #: ../df/virt-df.pod:53
2569 msgid "Show disk usage for a disk image file called C<test.img>:"
2570 msgstr ""
2571
2572 #. type: verbatim
2573 #: ../df/virt-df.pod:55
2574 #, no-wrap
2575 msgid ""
2576 " $ virt-df -a test1.img\n"
2577 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2578 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2579 "\n"
2580 msgstr ""
2581
2582 #. type: verbatim
2583 #: ../df/virt-df.pod:112
2584 #, fuzzy, no-wrap
2585 #| msgid ""
2586 #| " guestfish --format=raw -a disk.img\n"
2587 #| "\n"
2588 msgid ""
2589 " virt-df --format=raw -a disk.img\n"
2590 "\n"
2591 msgstr ""
2592 " guestfish --format=raw -a disk.img\n"
2593 "\n"
2594
2595 #. type: verbatim
2596 #: ../df/virt-df.pod:116
2597 #, fuzzy, no-wrap
2598 #| msgid ""
2599 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2600 #| "\n"
2601 msgid ""
2602 " virt-df --format=raw -a disk.img --format -a another.img\n"
2603 "\n"
2604 msgstr ""
2605 " guestfish --format=raw -a disk.img --format -a another.img\n"
2606 "\n"
2607
2608 #. type: textblock
2609 #: ../df/virt-df.pod:129
2610 msgid "Print sizes in human-readable format."
2611 msgstr ""
2612
2613 #. type: textblock
2614 #: ../df/virt-df.pod:131
2615 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2616 msgstr ""
2617
2618 #. type: =item
2619 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2620 msgid "B<-i>"
2621 msgstr "B<-i>"
2622
2623 #. type: =item
2624 #: ../df/virt-df.pod:135
2625 #, fuzzy
2626 #| msgid "B<--live>"
2627 msgid "B<--inodes>"
2628 msgstr "B<--live>"
2629
2630 #. type: textblock
2631 #: ../df/virt-df.pod:137
2632 msgid "Print inodes instead of blocks."
2633 msgstr ""
2634
2635 #. type: =item
2636 #: ../df/virt-df.pod:139
2637 #, fuzzy
2638 #| msgid "B<--merge>"
2639 msgid "B<--one-per-guest>"
2640 msgstr "B<--merge>"
2641
2642 #. type: textblock
2643 #: ../df/virt-df.pod:141
2644 msgid ""
2645 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2646 "disks from several guests to a single libguestfs appliance."
2647 msgstr ""
2648
2649 #. type: textblock
2650 #: ../df/virt-df.pod:144
2651 msgid "You might use this option in the following circumstances:"
2652 msgstr ""
2653
2654 #. type: =item
2655 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2656 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2657 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2658 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2659 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2660 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2661 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2662 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2663 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2664 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2665 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2666 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2667 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2668 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2669 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2670 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2671 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2672 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2673 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2674 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2675 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2676 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2677 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2678 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2679 #: ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397
2680 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2681 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2682 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2683 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2684 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2685 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2686 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2687 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2688 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2689 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2690 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2691 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2692 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2693 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2694 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2695 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2696 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2697 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2698 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2699 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2700 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2701 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2702 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2703 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2704 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2705 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2063 ../src/guestfs.pod:2068
2706 #: ../src/guestfs.pod:2074 ../src/guestfs.pod:2082 ../src/guestfs.pod:2436
2707 #: ../src/guestfs.pod:2442 ../src/guestfs.pod:2447 ../src/guestfs.pod:2453
2708 #: ../src/guestfs.pod:2834 ../src/guestfs.pod:2839 ../src/guestfs.pod:2843
2709 #: ../src/guestfs.pod:2847 ../src/guestfs.pod:2851 ../src/guestfs.pod:2865
2710 #: ../src/guestfs.pod:2870 ../src/guestfs.pod:3095 ../src/guestfs.pod:3099
2711 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3107
2712 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2713 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2714 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2715 msgid "*"
2716 msgstr "*"
2717
2718 #. type: textblock
2719 #: ../df/virt-df.pod:150
2720 msgid ""
2721 "If you think an untrusted guest might actively try to exploit the libguestfs "
2722 "appliance kernel, then this prevents one guest from interfering with the "
2723 "stats printed for another guest."
2724 msgstr ""
2725
2726 #. type: textblock
2727 #: ../df/virt-df.pod:156
2728 msgid ""
2729 "If the kernel has a bug which stops it from accessing a filesystem in one "
2730 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2731 "and report stats for further guests."
2732 msgstr ""
2733
2734 #. type: textblock
2735 #: ../df/virt-df.pod:165
2736 msgid ""
2737 "Print UUIDs instead of names.  This is useful for following a guest even "
2738 "when the guest is migrated or renamed, or when two guests happen to have the "
2739 "same name."
2740 msgstr ""
2741
2742 #. type: textblock
2743 #: ../df/virt-df.pod:169
2744 msgid ""
2745 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2746 "images, we still print the disk image name even when this option is "
2747 "specified."
2748 msgstr ""
2749
2750 #. type: textblock
2751 #: ../df/virt-df.pod:229
2752 msgid ""
2753 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2754 "libguestfs.org/>."
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../edit/virt-edit.pod:5
2759 msgid "virt-edit - Edit a file in a virtual machine"
2760 msgstr ""
2761
2762 #. type: verbatim
2763 #: ../edit/virt-edit.pod:9
2764 #, fuzzy, no-wrap
2765 #| msgid ""
2766 #| " virt-list-partitions [--options] domname\n"
2767 #| "\n"
2768 msgid ""
2769 " virt-edit [--options] -d domname file [file ...]\n"
2770 "\n"
2771 msgstr ""
2772 " virt-list-partitions [--параметри] назва_домену\n"
2773 "\n"
2774
2775 #. type: verbatim
2776 #: ../edit/virt-edit.pod:11
2777 #, fuzzy, no-wrap
2778 #| msgid ""
2779 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2780 #| "\n"
2781 msgid ""
2782 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2783 "\n"
2784 msgstr ""
2785 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2786 "\n"
2787
2788 #. type: verbatim
2789 #: ../edit/virt-edit.pod:13
2790 #, no-wrap
2791 msgid ""
2792 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2793 "\n"
2794 msgstr ""
2795
2796 #. type: verbatim
2797 #: ../edit/virt-edit.pod:17
2798 #, no-wrap
2799 msgid ""
2800 " virt-edit domname file\n"
2801 "\n"
2802 msgstr ""
2803
2804 #. type: verbatim
2805 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2806 #, fuzzy, no-wrap
2807 #| msgid ""
2808 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2809 #| "\n"
2810 msgid ""
2811 " virt-edit disk.img [disk.img ...] file\n"
2812 "\n"
2813 msgstr ""
2814 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2815 "\n"
2816
2817 #. type: =head1
2818 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2819 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2820 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2821 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2822 msgid "WARNING"
2823 msgstr "ПОПЕРЕДЖЕННЯ"
2824
2825 #. type: textblock
2826 #: ../edit/virt-edit.pod:23
2827 msgid ""
2828 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2829 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2830 "doing this, but doesn't catch all cases."
2831 msgstr ""
2832
2833 #. type: textblock
2834 #: ../edit/virt-edit.pod:29
2835 msgid ""
2836 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2837 "exists in the named virtual machine (or disk image)."
2838 msgstr ""
2839
2840 #. type: textblock
2841 #: ../edit/virt-edit.pod:32
2842 msgid ""
2843 "Multiple filenames can be given, in which case they are each edited in "
2844 "turn.  Each filename must be a full path, starting at the root directory "
2845 "(starting with '/')."
2846 msgstr ""
2847
2848 #. type: textblock
2849 #: ../edit/virt-edit.pod:36
2850 msgid "If you want to just view a file, use L<virt-cat(1)>."
2851 msgstr ""
2852
2853 #. type: textblock
2854 #: ../edit/virt-edit.pod:38
2855 msgid ""
2856 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2857 "USING GUESTFISH> below)."
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../edit/virt-edit.pod:41
2862 msgid ""
2863 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2864 "that and much more."
2865 msgstr ""
2866
2867 #. type: textblock
2868 #: ../edit/virt-edit.pod:46
2869 msgid "Edit the named files interactively:"
2870 msgstr ""
2871
2872 #. type: verbatim
2873 #: ../edit/virt-edit.pod:48
2874 #, no-wrap
2875 msgid ""
2876 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2877 "\n"
2878 msgstr ""
2879
2880 #. type: verbatim
2881 #: ../edit/virt-edit.pod:50
2882 #, no-wrap
2883 msgid ""
2884 " virt-edit -d mydomain /etc/passwd\n"
2885 "\n"
2886 msgstr ""
2887
2888 #. type: textblock
2889 #: ../edit/virt-edit.pod:52
2890 msgid "For Windows guests, some Windows paths are understood:"
2891 msgstr ""
2892
2893 #. type: verbatim
2894 #: ../edit/virt-edit.pod:54
2895 #, no-wrap
2896 msgid ""
2897 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2898 "\n"
2899 msgstr ""
2900
2901 #. type: textblock
2902 #: ../edit/virt-edit.pod:56
2903 msgid ""
2904 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2905 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2906 msgstr ""
2907
2908 #. type: verbatim
2909 #: ../edit/virt-edit.pod:60
2910 #, no-wrap
2911 msgid ""
2912 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2913 "\n"
2914 msgstr ""
2915
2916 #. type: =item
2917 #: ../edit/virt-edit.pod:81
2918 msgid "B<-b> extension"
2919 msgstr ""
2920
2921 #. type: =item
2922 #: ../edit/virt-edit.pod:83
2923 msgid "B<--backup> extension"
2924 msgstr ""
2925
2926 #. type: textblock
2927 #: ../edit/virt-edit.pod:85
2928 msgid ""
2929 "Create a backup of the original file I<in the guest disk image>.  The backup "
2930 "has the original filename with C<extension> added."
2931 msgstr ""
2932
2933 #. type: textblock
2934 #: ../edit/virt-edit.pod:88
2935 msgid ""
2936 "Usually the first character of C<extension> would be a dot C<.> so you would "
2937 "write:"
2938 msgstr ""
2939
2940 #. type: verbatim
2941 #: ../edit/virt-edit.pod:91
2942 #, no-wrap
2943 msgid ""
2944 " virt-edit -b .orig [etc]\n"
2945 "\n"
2946 msgstr ""
2947
2948 #. type: textblock
2949 #: ../edit/virt-edit.pod:93
2950 msgid "By default, no backup file is made."
2951 msgstr ""
2952
2953 #. type: =item
2954 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2955 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2956 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2957 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2958 msgid "B<-c URI>"
2959 msgstr "B<-c адреса>"
2960
2961 #. type: =item
2962 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2963 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2964 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2965 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2966 msgid "B<--connect URI>"
2967 msgstr "B<--connect адреса>"
2968
2969 #. type: textblock
2970 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2971 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2972 #: ../tools/virt-win-reg.pl:135
2973 msgid ""
2974 "If you specify guest block devices directly, then libvirt is not used at all."
2975 msgstr ""
2976
2977 #. type: textblock
2978 #: ../edit/virt-edit.pod:114
2979 msgid ""
2980 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2981 "off so you cannot see what you are typing.  If you are not worried about "
2982 "Tempest attacks and there is no one else in the room you can specify this "
2983 "flag to see what you are typing."
2984 msgstr ""
2985
2986 #. type: =item
2987 #: ../edit/virt-edit.pod:119
2988 msgid "B<-e> EXPR"
2989 msgstr ""
2990
2991 #. type: =item
2992 #: ../edit/virt-edit.pod:121
2993 #, fuzzy
2994 #| msgid "B<--help>"
2995 msgid "B<--expr> EXPR"
2996 msgstr "B<--help>"
2997
2998 #. type: textblock
2999 #: ../edit/virt-edit.pod:123
3000 msgid ""
3001 "Instead of launching the external editor, non-interactively apply the Perl "
3002 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3003 "EDITING> below."
3004 msgstr ""
3005
3006 #. type: textblock
3007 #: ../edit/virt-edit.pod:127
3008 msgid ""
3009 "Be careful to properly quote the expression to prevent it from being altered "
3010 "by the shell."
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../edit/virt-edit.pod:130
3015 msgid "Note that this option is only available when Perl 5 is installed."
3016 msgstr ""
3017
3018 #. type: =item
3019 #: ../edit/virt-edit.pod:132
3020 #, fuzzy
3021 #| msgid "B<--format=raw|qcow2|..>"
3022 msgid "B<--format> raw|qcow2|..."
3023 msgstr "B<--format=raw|qcow2|..>"
3024
3025 #. type: verbatim
3026 #: ../edit/virt-edit.pod:143
3027 #, fuzzy, no-wrap
3028 #| msgid ""
3029 #| " guestfish --format=raw -a disk.img\n"
3030 #| "\n"
3031 msgid ""
3032 " virt-edit --format=raw -a disk.img file\n"
3033 "\n"
3034 msgstr ""
3035 " guestfish --format=raw -a disk.img\n"
3036 "\n"
3037
3038 #. type: verbatim
3039 #: ../edit/virt-edit.pod:147
3040 #, fuzzy, no-wrap
3041 #| msgid ""
3042 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3043 #| "\n"
3044 msgid ""
3045 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3046 "\n"
3047 msgstr ""
3048 " guestfish --format=raw -a disk.img --format -a another.img\n"
3049 "\n"
3050
3051 #. type: textblock
3052 #: ../edit/virt-edit.pod:181
3053 msgid "Previous versions of virt-edit allowed you to write either:"
3054 msgstr ""
3055
3056 #. type: verbatim
3057 #: ../edit/virt-edit.pod:187
3058 #, fuzzy, no-wrap
3059 #| msgid ""
3060 #| " edit filename\n"
3061 #| "\n"
3062 msgid ""
3063 " virt-edit guestname file\n"
3064 "\n"
3065 msgstr ""
3066 " edit назва_файла\n"
3067 "\n"
3068
3069 #. type: =head1
3070 #: ../edit/virt-edit.pod:195
3071 msgid "NON-INTERACTIVE EDITING"
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../edit/virt-edit.pod:197
3076 msgid ""
3077 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3078 "administrator can interactively edit the file."
3079 msgstr ""
3080
3081 #. type: textblock
3082 #: ../edit/virt-edit.pod:200
3083 msgid ""
3084 "There are two ways also to use C<virt-edit> from scripts in order to make "
3085 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3086 "like this, it's less error-prone to write scripts directly using the "
3087 "libguestfs API and Augeas for configuration file editing.)"
3088 msgstr ""
3089
3090 #. type: textblock
3091 #: ../edit/virt-edit.pod:206
3092 msgid ""
3093 "The first method is to temporarily set C<$EDITOR> to any script or program "
3094 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3095 "update C<tmpfile> in place however it likes."
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../edit/virt-edit.pod:210
3100 msgid ""
3101 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3102 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3103 "instances of C<foo> with C<bar> in a file:"
3104 msgstr ""
3105
3106 #. type: verbatim
3107 #: ../edit/virt-edit.pod:214
3108 #, no-wrap
3109 msgid ""
3110 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3111 "\n"
3112 msgstr ""
3113
3114 #. type: textblock
3115 #: ../edit/virt-edit.pod:216
3116 msgid ""
3117 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3118 "For example to delete root's password you could do:"
3119 msgstr ""
3120
3121 #. type: verbatim
3122 #: ../edit/virt-edit.pod:219
3123 #, no-wrap
3124 msgid ""
3125 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3126 "\n"
3127 msgstr ""
3128
3129 #. type: textblock
3130 #: ../edit/virt-edit.pod:221
3131 msgid ""
3132 "What really happens is that the snippet is evaluated as a Perl expression "
3133 "for each line of the file.  The line, including the final C<\\n>, is passed "
3134 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../edit/virt-edit.pod:226
3139 msgid ""
3140 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3141 "C<apache> user account from the password file you can do:"
3142 msgstr ""
3143
3144 #. type: verbatim
3145 #: ../edit/virt-edit.pod:229
3146 #, no-wrap
3147 msgid ""
3148 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3149 "\n"
3150 msgstr ""
3151
3152 #. type: textblock
3153 #: ../edit/virt-edit.pod:231
3154 msgid ""
3155 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3156 "the end of the file is rather difficult this way since there is no concept "
3157 "of \"last line of the file\" - your expression just doesn't get called "
3158 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3159 "want to do this."
3160 msgstr ""
3161
3162 #. type: textblock
3163 #: ../edit/virt-edit.pod:237
3164 msgid ""
3165 "The variable C<$lineno> contains the current line number.  As is "
3166 "traditional, the first line in the file is number C<1>."
3167 msgstr ""
3168
3169 #. type: textblock
3170 #: ../edit/virt-edit.pod:240
3171 msgid ""
3172 "The return value from the expression is ignored, but the expression may call "
3173 "C<die> in order to abort the whole program, leaving the original file "
3174 "untouched."
3175 msgstr ""
3176
3177 #. type: textblock
3178 #: ../edit/virt-edit.pod:244
3179 msgid ""
3180 "Remember when matching the end of a line that C<$_> may contain the final C<"
3181 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3182 "newline then neither of these.  Thus to match or substitute some text at the "
3183 "end of a line, use this regular expression:"
3184 msgstr ""
3185
3186 #. type: verbatim
3187 #: ../edit/virt-edit.pod:249
3188 #, no-wrap
3189 msgid ""
3190 " /some text(\\r?\\n)?$/\n"
3191 "\n"
3192 msgstr ""
3193
3194 #. type: textblock
3195 #: ../edit/virt-edit.pod:251
3196 msgid ""
3197 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3198 "$_> itself (since that would remove all newlines from the file):"
3199 msgstr ""
3200
3201 #. type: verbatim
3202 #: ../edit/virt-edit.pod:255
3203 #, no-wrap
3204 msgid ""
3205 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3206 "\n"
3207 msgstr ""
3208
3209 #. type: =head1
3210 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3211 msgid "WINDOWS PATHS"
3212 msgstr ""
3213
3214 #. type: textblock
3215 #: ../edit/virt-edit.pod:259
3216 msgid ""
3217 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3218 "paths (eg. C<E:\\foo\\bar.txt>)."
3219 msgstr ""
3220
3221 #. type: textblock
3222 #: ../edit/virt-edit.pod:262
3223 msgid "If and only if the guest is running Windows then:"
3224 msgstr ""
3225
3226 #. type: textblock
3227 #: ../edit/virt-edit.pod:268
3228 msgid ""
3229 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3230 "to the correct filesystem."
3231 msgstr ""
3232
3233 #. type: textblock
3234 #: ../edit/virt-edit.pod:273
3235 msgid ""
3236 "Any backslash (C<\\>) characters in the path are replaced with forward "
3237 "slashes so that libguestfs can process it."
3238 msgstr ""
3239
3240 #. type: textblock
3241 #: ../edit/virt-edit.pod:278
3242 msgid ""
3243 "The path is resolved case insensitively to locate the file that should be "
3244 "edited."
3245 msgstr ""
3246
3247 #. type: textblock
3248 #: ../edit/virt-edit.pod:283
3249 msgid "There are some known shortcomings:"
3250 msgstr ""
3251
3252 #. type: textblock
3253 #: ../edit/virt-edit.pod:289
3254 msgid "Some NTFS symbolic links may not be followed correctly."
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../edit/virt-edit.pod:293
3259 msgid "NTFS junction points that cross filesystems are not followed."
3260 msgstr ""
3261
3262 #. type: textblock
3263 #: ../edit/virt-edit.pod:299
3264 msgid ""
3265 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3266 "C<virt-edit> doesn't work."
3267 msgstr ""
3268
3269 #. type: textblock
3270 #: ../edit/virt-edit.pod:302
3271 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3272 msgstr ""
3273
3274 #. type: verbatim
3275 #: ../edit/virt-edit.pod:304
3276 #, fuzzy, no-wrap
3277 #| msgid ""
3278 #| " guestfish --ro -d myguest -i\n"
3279 #| "\n"
3280 msgid ""
3281 " guestfish --rw -i -d domname edit /file\n"
3282 "\n"
3283 msgstr ""
3284 " guestfish --ro -d myguest -i\n"
3285 "\n"
3286
3287 #. type: textblock
3288 #: ../edit/virt-edit.pod:306
3289 msgid ""
3290 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3291 "path to the file."
3292 msgstr ""
3293
3294 #. type: textblock
3295 #: ../edit/virt-edit.pod:309
3296 msgid ""
3297 "The command above uses libguestfs's guest inspection feature and so does not "
3298 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3299 "disk images that don't contain guests.  To edit a file on a disk image "
3300 "directly, use:"
3301 msgstr ""
3302
3303 #. type: verbatim
3304 #: ../edit/virt-edit.pod:314
3305 #, fuzzy, no-wrap
3306 #| msgid ""
3307 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3308 #| "\n"
3309 msgid ""
3310 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3311 "\n"
3312 msgstr ""
3313 " guestfish --format=raw -a disk.img --format -a another.img\n"
3314 "\n"
3315
3316 #. type: textblock
3317 #: ../edit/virt-edit.pod:316
3318 msgid ""
3319 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3320 "the disk image to edit, and C</file> is the full path to the file."
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../edit/virt-edit.pod:320
3325 msgid ""
3326 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3327 "C<write> or C<upload> instead:"
3328 msgstr ""
3329
3330 #. type: verbatim
3331 #: ../edit/virt-edit.pod:323
3332 #, fuzzy, no-wrap
3333 #| msgid ""
3334 #| " guestfish --ro -d myguest -i\n"
3335 #| "\n"
3336 msgid ""
3337 " guestfish --rw -i -d domname touch /newfile\n"
3338 "\n"
3339 msgstr ""
3340 " guestfish --ro -d myguest -i\n"
3341 "\n"
3342
3343 #. type: verbatim
3344 #: ../edit/virt-edit.pod:325
3345 #, no-wrap
3346 msgid ""
3347 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3348 "\n"
3349 msgstr ""
3350
3351 #. type: verbatim
3352 #: ../edit/virt-edit.pod:327
3353 #, no-wrap
3354 msgid ""
3355 " guestfish --rw -i -d domname upload localfile /newfile\n"
3356 "\n"
3357 msgstr ""
3358
3359 #. type: =head1
3360 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3361 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2981
3362 #: ../test-tool/libguestfs-test-tool.pod:82
3363 msgid "ENVIRONMENT VARIABLES"
3364 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3365
3366 #. type: =item
3367 #: ../edit/virt-edit.pod:333
3368 #, fuzzy
3369 #| msgid "EDITOR"
3370 msgid "C<EDITOR>"
3371 msgstr "РЕДАКТОР"
3372
3373 #. type: textblock
3374 #: ../edit/virt-edit.pod:335
3375 msgid ""
3376 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3377 "\"emacs -nw\">"
3378 msgstr ""
3379
3380 #. type: textblock
3381 #: ../edit/virt-edit.pod:338
3382 msgid "If not set, C<vi> is used."
3383 msgstr ""
3384
3385 #. type: textblock
3386 #: ../edit/virt-edit.pod:356
3387 #, fuzzy
3388 #| msgid ""
3389 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3390 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3391 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3392 msgid ""
3393 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3394 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3395 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3396 msgstr ""
3397 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3398 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3399 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3400
3401 #. type: textblock
3402 #: ../examples/guestfs-examples.pod:5
3403 msgid "guestfs-examples - Examples of using libguestfs from C"
3404 msgstr ""
3405
3406 #. type: verbatim
3407 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3408 #, no-wrap
3409 msgid ""
3410 " #include <guestfs.h>\n"
3411 " \n"
3412 msgstr ""
3413 " #include <guestfs.h>\n"
3414 " \n"
3415
3416 #. type: verbatim
3417 #: ../examples/guestfs-examples.pod:11
3418 #, no-wrap
3419 msgid ""
3420 " guestfs_h *g = guestfs_create ();\n"
3421 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3422 " guestfs_launch (g);\n"
3423 "\n"
3424 msgstr ""
3425
3426 #. type: verbatim
3427 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3428 #, no-wrap
3429 msgid ""
3430 " cc prog.c -o prog -lguestfs\n"
3431 "or:\n"
3432 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3433 "\n"
3434 msgstr ""
3435 " cc prog.c -o prog -lguestfs\n"
3436 "або:\n"
3437 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3438 "\n"
3439
3440 #. type: textblock
3441 #: ../examples/guestfs-examples.pod:21
3442 msgid ""
3443 "This manual page contains examples of calling libguestfs from the C "
3444 "programming language.  If you are not familiar with using libguestfs, you "
3445 "also need to read L<guestfs(3)>."
3446 msgstr ""
3447
3448 #. type: =head1
3449 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3450 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3451 #: ../python/examples/guestfs-python.pod:34
3452 #: ../ruby/examples/guestfs-ruby.pod:28
3453 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3454 msgstr ""
3455
3456 #. type: textblock
3457 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3458 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3459 #: ../python/examples/guestfs-python.pod:36
3460 #: ../ruby/examples/guestfs-ruby.pod:30
3461 #, fuzzy
3462 #| msgid "EXAMPLE"
3463 msgid "@EXAMPLE1@"
3464 msgstr "ПРИКЛАД"
3465
3466 #. type: =head1
3467 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3468 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3469 #: ../python/examples/guestfs-python.pod:38
3470 #: ../ruby/examples/guestfs-ruby.pod:32
3471 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3472 msgstr ""
3473
3474 #. type: textblock
3475 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3476 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3477 #: ../python/examples/guestfs-python.pod:40
3478 #: ../ruby/examples/guestfs-ruby.pod:34
3479 #, fuzzy
3480 #| msgid "EXAMPLE"
3481 msgid "@EXAMPLE2@"
3482 msgstr "ПРИКЛАД"
3483
3484 #. type: textblock
3485 #: ../examples/guestfs-examples.pod:35
3486 #, fuzzy
3487 #| msgid ""
3488 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3489 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3490 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3491 msgid ""
3492 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3493 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3494 "libguestfs.org/>."
3495 msgstr ""
3496 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3497 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3498 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3499
3500 #. type: =head1
3501 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3502 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3503 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3504 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3505 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3506 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3507 #: ../python/examples/guestfs-python.pod:53
3508 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3114
3509 #: ../test-tool/libguestfs-test-tool.pod:93
3510 msgid "AUTHORS"
3511 msgstr "АВТОРИ"
3512
3513 #. type: textblock
3514 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3515 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3516 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3517 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3518 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3519 #: ../perl/examples/guestfs-perl.pod:53
3520 #: ../python/examples/guestfs-python.pod:55
3521 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3116
3522 #: ../test-tool/libguestfs-test-tool.pod:95
3523 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3524 msgstr ""
3525
3526 #. type: textblock
3527 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3528 #: ../python/examples/guestfs-python.pod:59
3529 #: ../ruby/examples/guestfs-ruby.pod:53
3530 #, fuzzy
3531 #| msgid "Copyright (C) 2009 Red Hat Inc."
3532 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3533 msgstr "© Red Hat Inc., 2009"
3534
3535 #. type: textblock
3536 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3537 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3538 #: ../perl/examples/guestfs-perl.pod:59
3539 #: ../python/examples/guestfs-python.pod:61
3540 #: ../ruby/examples/guestfs-ruby.pod:55
3541 msgid ""
3542 "The examples in this manual page may be freely copied, modified and "
3543 "distributed without any restrictions."
3544 msgstr ""
3545
3546 #. type: textblock
3547 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3548 #: ../java/examples/guestfs-java.pod:68
3549 #: ../ocaml/examples/guestfs-ocaml.pod:101
3550 #: ../perl/examples/guestfs-perl.pod:62
3551 #: ../python/examples/guestfs-python.pod:64
3552 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3123
3553 msgid ""
3554 "This library is free software; you can redistribute it and/or modify it "
3555 "under the terms of the GNU Lesser General Public License as published by the "
3556 "Free Software Foundation; either version 2 of the License, or (at your "
3557 "option) any later version."
3558 msgstr ""
3559
3560 #. type: textblock
3561 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3562 #: ../java/examples/guestfs-java.pod:73
3563 #: ../ocaml/examples/guestfs-ocaml.pod:106
3564 #: ../perl/examples/guestfs-perl.pod:67
3565 #: ../python/examples/guestfs-python.pod:69
3566 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3128
3567 msgid ""
3568 "This library is distributed in the hope that it will be useful, but WITHOUT "
3569 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3570 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3571 "for more details."
3572 msgstr ""
3573
3574 #. type: textblock
3575 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3576 #: ../java/examples/guestfs-java.pod:78
3577 #: ../ocaml/examples/guestfs-ocaml.pod:111
3578 #: ../perl/examples/guestfs-perl.pod:72
3579 #: ../python/examples/guestfs-python.pod:74
3580 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3133
3581 msgid ""
3582 "You should have received a copy of the GNU Lesser General Public License "
3583 "along with this library; if not, write to the Free Software Foundation, "
3584 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3585 msgstr ""
3586
3587 #. type: =end
3588 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3589 msgid "comment"
3590 msgstr ""
3591
3592 #. type: textblock
3593 #: ../examples/guestfs-recipes.pod:5
3594 msgid ""
3595 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3596 "here.  The only way which works for both sorts of output is to just write "
3597 "the URL directly.  Do NOT use L<...> for URLs."
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../examples/guestfs-recipes.pod:9
3602 msgid ""
3603 "We break with tradition here and don't use ALL CAPS for the section "
3604 "headings, as this makes them much easier to read."
3605 msgstr ""
3606
3607 #. type: textblock
3608 #: ../examples/guestfs-recipes.pod:16
3609 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3610 msgstr ""
3611
3612 #. type: textblock
3613 #: ../examples/guestfs-recipes.pod:20
3614 msgid ""
3615 "This page contains recipes for and links to things you can do using "
3616 "libguestfs, L<guestfish(1)> and the virt tools."
3617 msgstr ""
3618
3619 #. type: =head1
3620 #: ../examples/guestfs-recipes.pod:23
3621 msgid "Audit a virtual machine for setuid files"
3622 msgstr ""
3623
3624 #. type: textblock
3625 #: ../examples/guestfs-recipes.pod:25
3626 msgid ""
3627 "The link below contains a small program which can be used to audit a Linux "
3628 "virtual machine to see what setuid and setgid files it contains."
3629 msgstr ""
3630
3631 #. type: textblock
3632 #: ../examples/guestfs-recipes.pod:28
3633 msgid ""
3634 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3635 "files/#content"
3636 msgstr ""
3637
3638 #. type: =head1
3639 #: ../examples/guestfs-recipes.pod:30
3640 msgid "Change the background image in a Windows XP VM"
3641 msgstr ""
3642
3643 #. type: textblock
3644 #: ../examples/guestfs-recipes.pod:32
3645 msgid ""
3646 "The links below explain how to use L<guestfish(1)> to change the background "
3647 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3648 "be substantially different for each version of Windows."
3649 msgstr ""
3650
3651 #. type: textblock
3652 #: ../examples/guestfs-recipes.pod:37
3653 msgid ""
3654 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3655 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3656 msgstr ""
3657
3658 #. type: =head1
3659 #: ../examples/guestfs-recipes.pod:40
3660 msgid "Cloning a virtual machine (Linux)"
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../examples/guestfs-recipes.pod:42
3665 msgid ""
3666 "The guestfish technique described in the link below works well for most "
3667 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3668 "slightly."
3669 msgstr ""
3670
3671 #. type: textblock
3672 #: ../examples/guestfs-recipes.pod:46
3673 msgid ""
3674 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3675 "vm/#content"
3676 msgstr ""
3677
3678 #. type: textblock
3679 #: ../examples/guestfs-recipes.pod:48
3680 msgid ""
3681 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3682 "discussion."
3683 msgstr ""
3684
3685 #. type: textblock
3686 #: ../examples/guestfs-recipes.pod:51
3687 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3688 msgstr ""
3689
3690 #. type: =head1
3691 #: ../examples/guestfs-recipes.pod:53
3692 msgid "Cloning a virtual machine (Windows)"
3693 msgstr ""
3694
3695 #. type: textblock
3696 #: ../examples/guestfs-recipes.pod:55
3697 msgid ""
3698 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3699 "straightforward.  Currently there is code in the Aeolus Oz project which "
3700 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3701 "we may add sysprepping ability."
3702 msgstr ""
3703
3704 #. type: textblock
3705 #: ../examples/guestfs-recipes.pod:60
3706 msgid ""
3707 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3708 "list/2011-May/msg00019.html"
3709 msgstr ""
3710
3711 #. type: =head1
3712 #: ../examples/guestfs-recipes.pod:63
3713 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3714 msgstr ""
3715
3716 #. type: textblock
3717 #: ../examples/guestfs-recipes.pod:65
3718 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3719 msgstr ""
3720
3721 #. type: verbatim
3722 #: ../examples/guestfs-recipes.pod:67
3723 #, no-wrap
3724 msgid ""
3725 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3726 "\n"
3727 msgstr ""
3728
3729 #. type: textblock
3730 #: ../examples/guestfs-recipes.pod:69
3731 msgid "To export just a subdirectory, eg. C</files>, do:"
3732 msgstr ""
3733
3734 #. type: verbatim
3735 #: ../examples/guestfs-recipes.pod:71
3736 #, no-wrap
3737 msgid ""
3738 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3739 "\n"
3740 msgstr ""
3741
3742 #. type: =head1
3743 #: ../examples/guestfs-recipes.pod:73
3744 msgid "Create empty disk images"
3745 msgstr ""
3746
3747 #. type: textblock
3748 #: ../examples/guestfs-recipes.pod:75
3749 msgid ""
3750 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3751 "The useful guide below explains the options available."
3752 msgstr ""
3753
3754 #. type: textblock
3755 #: ../examples/guestfs-recipes.pod:78
3756 msgid ""
3757 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3758 "#content"
3759 msgstr ""
3760
3761 #. type: =head1
3762 #: ../examples/guestfs-recipes.pod:80
3763 msgid "Dump raw filesystem content from inside a disk image or VM"
3764 msgstr ""
3765
3766 #. type: textblock
3767 #: ../examples/guestfs-recipes.pod:82
3768 msgid ""
3769 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3770 "filesystem content from any filesystem in a disk image or a VM (even one "
3771 "which is encrypted or buried inside an LV):"
3772 msgstr ""
3773
3774 #. type: verbatim
3775 #: ../examples/guestfs-recipes.pod:86
3776 #, fuzzy, no-wrap
3777 #| msgid ""
3778 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3779 #| "\n"
3780 msgid ""
3781 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3782 "\n"
3783 msgstr ""
3784 " guestfish --format=raw -a disk.img --format -a another.img\n"
3785 "\n"
3786
3787 #. type: verbatim
3788 #: ../examples/guestfs-recipes.pod:88
3789 #, no-wrap
3790 msgid ""
3791 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3792 "\n"
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../examples/guestfs-recipes.pod:90
3797 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3798 msgstr ""
3799
3800 #. type: =head1
3801 #: ../examples/guestfs-recipes.pod:92
3802 msgid "Edit grub configuration in a VM"
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../examples/guestfs-recipes.pod:94
3807 msgid "You can use this to:"
3808 msgstr ""
3809
3810 #. type: textblock
3811 #: ../examples/guestfs-recipes.pod:100
3812 msgid "Fix a virtual machine that does not boot."
3813 msgstr ""
3814
3815 #. type: textblock
3816 #: ../examples/guestfs-recipes.pod:104
3817 msgid "Change which kernel is used to boot the VM."
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../examples/guestfs-recipes.pod:108
3822 msgid "Change kernel command line options."
3823 msgstr ""
3824
3825 #. type: textblock
3826 #: ../examples/guestfs-recipes.pod:112
3827 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3828 msgstr ""
3829
3830 #. type: verbatim
3831 #: ../examples/guestfs-recipes.pod:114
3832 #, no-wrap
3833 msgid ""
3834 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3835 "\n"
3836 msgstr ""
3837
3838 #. type: textblock
3839 #: ../examples/guestfs-recipes.pod:116
3840 msgid ""
3841 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3842 "this:"
3843 msgstr ""
3844
3845 #. type: verbatim
3846 #: ../examples/guestfs-recipes.pod:119
3847 #, no-wrap
3848 msgid ""
3849 " virt-rescue -d BrokenGuest\n"
3850 "\n"
3851 msgstr ""
3852
3853 #. type: =head1
3854 #: ../examples/guestfs-recipes.pod:121
3855 msgid "Export any directory from a VM"
3856 msgstr ""
3857
3858 #. type: textblock
3859 #: ../examples/guestfs-recipes.pod:123
3860 msgid ""
3861 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3862 msgstr ""
3863
3864 #. type: verbatim
3865 #: ../examples/guestfs-recipes.pod:126
3866 #, fuzzy, no-wrap
3867 #| msgid ""
3868 #| " copy-out /home .\n"
3869 #| "\n"
3870 msgid ""
3871 " virt-copy-out -d Guest /home .\n"
3872 "\n"
3873 msgstr ""
3874 " copy-out /home .\n"
3875 "\n"
3876
3877 #. type: textblock
3878 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3879 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3880 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922
3881 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640
3882 #: ../tools/virt-win-reg.pl:706
3883 msgid "Notes:"
3884 msgstr "Нотатки:"
3885
3886 #. type: textblock
3887 #: ../examples/guestfs-recipes.pod:134
3888 msgid ""
3889 "The final dot of the command is not a printing error.  It means we want to "
3890 "copy out to the current directory."
3891 msgstr ""
3892
3893 #. type: textblock
3894 #: ../examples/guestfs-recipes.pod:139
3895 msgid "This creates a directory called C<home> under the current directory."
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../examples/guestfs-recipes.pod:143
3900 msgid ""
3901 "If the guest is a Windows guest then you can use drive letters and "
3902 "backslashes, but you must prefix the path with C<win:> and quote it to "
3903 "protect it from the shell, like this:"
3904 msgstr ""
3905
3906 #. type: verbatim
3907 #: ../examples/guestfs-recipes.pod:147
3908 #, no-wrap
3909 msgid ""
3910 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3911 "\n"
3912 msgstr ""
3913
3914 #. type: textblock
3915 #: ../examples/guestfs-recipes.pod:149
3916 msgid "To get the output as a compressed tarball, do:"
3917 msgstr ""
3918
3919 #. type: verbatim
3920 #: ../examples/guestfs-recipes.pod:151
3921 #, no-wrap
3922 msgid ""
3923 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3924 "\n"
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../examples/guestfs-recipes.pod:153
3929 msgid ""
3930 "Although it sounds tempting, this is usually not a reliable way to get a "
3931 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3932 "org/FAQ.html#backup"
3933 msgstr ""
3934
3935 #. type: =head1
3936 #: ../examples/guestfs-recipes.pod:157
3937 msgid "Find out which user is using the most space"
3938 msgstr ""
3939
3940 #. type: textblock
3941 #: ../examples/guestfs-recipes.pod:159
3942 msgid ""
3943 "This simple script examines a Linux guest to find out which user is using "
3944 "the most space in their home directory:"
3945 msgstr ""
3946
3947 #. type: verbatim
3948 #: ../examples/guestfs-recipes.pod:162
3949 #, fuzzy, no-wrap
3950 #| msgid ""
3951 #| " #!/usr/bin/guestfish -f\n"
3952 #| "\n"
3953 msgid ""
3954 " #!/bin/sh -\n"
3955 " \n"
3956 msgstr ""
3957 " #!/usr/bin/guestfish -f\n"
3958 "\n"
3959
3960 #. type: verbatim
3961 #: ../examples/guestfs-recipes.pod:164
3962 #, fuzzy, no-wrap
3963 #| msgid ""
3964 #| " set-qemu qemu\n"
3965 #| "\n"
3966 msgid ""
3967 " set -e\n"
3968 " \n"
3969 msgstr ""
3970 " set-qemu qemu\n"
3971 "\n"
3972
3973 #. type: verbatim
3974 #: ../examples/guestfs-recipes.pod:166
3975 #, no-wrap
3976 msgid ""
3977 " vm=\"$1\"\n"
3978 " dir=/home\n"
3979 " \n"
3980 msgstr ""
3981
3982 #. type: verbatim
3983 #: ../examples/guestfs-recipes.pod:169
3984 #, fuzzy, no-wrap
3985 #| msgid ""
3986 #| " guestfish --ro -d myguest -i\n"
3987 #| "\n"
3988 msgid ""
3989 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3990 " \n"
3991 msgstr ""
3992 " guestfish --ro -d myguest -i\n"
3993 "\n"
3994
3995 #. type: verbatim
3996 #: ../examples/guestfs-recipes.pod:171
3997 #, no-wrap
3998 msgid ""
3999 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4000 "     echo -n \"$dir/$d\"\n"
4001 "     echo -ne '\\t'\n"
4002 "     guestfish --remote du \"$dir/$d\";\n"
4003 " done | sort -nr -k 2\n"
4004 " \n"
4005 msgstr ""
4006
4007 #. type: verbatim
4008 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4009 #, no-wrap
4010 msgid ""
4011 " guestfish --remote exit\n"
4012 "\n"
4013 msgstr ""
4014
4015 #. type: =head1
4016 #: ../examples/guestfs-recipes.pod:179
4017 msgid "Get DHCP address from a VM"
4018 msgstr ""
4019
4020 #. type: textblock
4021 #: ../examples/guestfs-recipes.pod:181
4022 msgid ""
4023 "The link below explains the many different possible techniques for getting "
4024 "the last assigned DHCP address of a virtual machine."
4025 msgstr ""
4026
4027 #. type: textblock
4028 #: ../examples/guestfs-recipes.pod:184
4029 msgid ""
4030 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4031 "a-virtual-machine-disk-image/#content"
4032 msgstr ""
4033
4034 #. type: textblock
4035 #: ../examples/guestfs-recipes.pod:186
4036 msgid ""
4037 "In the libguestfs source examples directory you will find the latest version "
4038 "of the C<virt-dhcp-address.c> program."
4039 msgstr ""
4040
4041 #. type: =head1
4042 #: ../examples/guestfs-recipes.pod:189
4043 msgid "Get the operating system product name string"
4044 msgstr ""
4045
4046 #. type: textblock
4047 #: ../examples/guestfs-recipes.pod:191
4048 msgid "Save the following script into a file called C<product-name.sh>:"
4049 msgstr ""
4050
4051 #. type: verbatim
4052 #: ../examples/guestfs-recipes.pod:193
4053 #, fuzzy, no-wrap
4054 #| msgid ""
4055 #| " eval \"`guestfish --listen`\"\n"
4056 #| " guestfish --remote add-ro disk.img\n"
4057 #| " guestfish --remote run\n"
4058 #| " guestfish --remote lvs\n"
4059 #| "\n"
4060 msgid ""
4061 " #!/bin/sh -\n"
4062 " set -e\n"
4063 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4064 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4065 " guestfish --remote inspect-get-product-name \"$root\"\n"
4066 " guestfish --remote exit\n"
4067 "\n"
4068 msgstr ""
4069 " eval \"`guestfish --listen`\"\n"
4070 " guestfish --remote add-ro disk.img\n"
4071 " guestfish --remote run\n"
4072 " guestfish --remote lvs\n"
4073 "\n"
4074
4075 #. type: textblock
4076 #: ../examples/guestfs-recipes.pod:200
4077 msgid "Make the script executable and run it on a named guest:"
4078 msgstr ""
4079
4080 #. type: verbatim
4081 #: ../examples/guestfs-recipes.pod:202
4082 #, no-wrap
4083 msgid ""
4084 " # product-name.sh RHEL60x64\n"
4085 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4086 "\n"
4087 msgstr ""
4088
4089 #. type: textblock
4090 #: ../examples/guestfs-recipes.pod:205
4091 msgid ""
4092 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4093 "C<xpath> command line tool or from your favourite programming language:"
4094 msgstr ""
4095
4096 #. type: verbatim
4097 #: ../examples/guestfs-recipes.pod:209
4098 #, no-wrap
4099 msgid ""
4100 " # virt-inspector RHEL60x64 > xml\n"
4101 " # xpath '//product_name' < xml\n"
4102 " Found 1 nodes:\n"
4103 " -- NODE --\n"
4104 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4105 "\n"
4106 msgstr ""
4107
4108 #. type: =head1
4109 #: ../examples/guestfs-recipes.pod:215
4110 msgid "Get the default boot kernel for a Linux VM"
4111 msgstr ""
4112
4113 #. type: textblock
4114 #: ../examples/guestfs-recipes.pod:217
4115 msgid ""
4116 "The link below contains a program to print the default boot kernel for a "
4117 "Linux VM."
4118 msgstr ""
4119
4120 #. type: textblock
4121 #: ../examples/guestfs-recipes.pod:220
4122 msgid ""
4123 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4124 "kernel-for-a-vm/#content"
4125 msgstr ""
4126
4127 #. type: textblock
4128 #: ../examples/guestfs-recipes.pod:222
4129 msgid ""
4130 "It uses Augeas, and the technique is generally applicable for many different "
4131 "tasks, such as:"
4132 msgstr ""
4133
4134 #. type: textblock
4135 #: ../examples/guestfs-recipes.pod:229
4136 msgid "listing the user accounts in the guest"
4137 msgstr ""
4138
4139 #. type: textblock
4140 #: ../examples/guestfs-recipes.pod:233
4141 msgid "what repositories is it configured to use"
4142 msgstr ""
4143
4144 #. type: textblock
4145 #: ../examples/guestfs-recipes.pod:237
4146 msgid "what NTP servers does it connect to"
4147 msgstr ""
4148
4149 #. type: textblock
4150 #: ../examples/guestfs-recipes.pod:241
4151 msgid "what were the boot messages last time it booted"
4152 msgstr ""
4153
4154 #. type: textblock
4155 #: ../examples/guestfs-recipes.pod:245
4156 msgid "listing who was logged in recently"
4157 msgstr ""
4158
4159 #. type: textblock
4160 #: ../examples/guestfs-recipes.pod:249
4161 msgid "http://augeas.net/"
4162 msgstr ""
4163
4164 #. type: =head1
4165 #: ../examples/guestfs-recipes.pod:251
4166 msgid "Install RPMs in a guest"
4167 msgstr ""
4168
4169 #. type: textblock
4170 #: ../examples/guestfs-recipes.pod:253
4171 msgid ""
4172 "The link below contains a method to install RPMs in a guest.  In fact the "
4173 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4174 "installs them next time the guest is booted.  You could use this technique "
4175 "to install vital security updates in an offline guest."
4176 msgstr ""
4177
4178 #. type: textblock
4179 #: ../examples/guestfs-recipes.pod:259
4180 msgid ""
4181 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4182 msgstr ""
4183
4184 #. type: =head1
4185 #: ../examples/guestfs-recipes.pod:261
4186 msgid "List applications installed in a VM"
4187 msgstr ""
4188
4189 #. type: textblock
4190 #: ../examples/guestfs-recipes.pod:263
4191 msgid "Save the following to a file C<list-apps.sh>:"
4192 msgstr ""
4193
4194 #. type: verbatim
4195 #: ../examples/guestfs-recipes.pod:265
4196 #, fuzzy, no-wrap
4197 #| msgid ""
4198 #| " eval \"`guestfish --listen`\"\n"
4199 #| " guestfish --remote add-ro disk.img\n"
4200 #| " guestfish --remote run\n"
4201 #| " guestfish --remote lvs\n"
4202 #| "\n"
4203 msgid ""
4204 " #!/bin/sh -\n"
4205 " set -e\n"
4206 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4207 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4208 " guestfish --remote inspect-list-applications \"$root\"\n"
4209 " guestfish --remote exit\n"
4210 "\n"
4211 msgstr ""
4212 " eval \"`guestfish --listen`\"\n"
4213 " guestfish --remote add-ro disk.img\n"
4214 " guestfish --remote run\n"
4215 " guestfish --remote lvs\n"
4216 "\n"
4217
4218 #. type: textblock
4219 #: ../examples/guestfs-recipes.pod:272
4220 msgid ""
4221 "Make the file executable and then you can run it on any named virtual "
4222 "machine:"
4223 msgstr ""
4224
4225 #. type: verbatim
4226 #: ../examples/guestfs-recipes.pod:275
4227 #, no-wrap
4228 msgid ""
4229 " # list-apps.sh WinGuest\n"
4230 " [0] = {\n"
4231 "   app_name: Mozilla Firefox (3.6.12)\n"
4232 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4233 "   app_epoch: 0\n"
4234 "   app_version: 3.6.12 (en-GB)\n"
4235 "   app_release:\n"
4236 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4237 "   app_trans_path:\n"
4238 "   app_publisher: Mozilla\n"
4239 "   app_url: http://www.mozilla.com/en-GB/\n"
4240 "   app_source_package:\n"
4241 "   app_summary:\n"
4242 "   app_description: Mozilla Firefox\n"
4243 " }\n"
4244 " [1] = {\n"
4245 "   app_name: VLC media player\n"
4246 "   app_display_name: VLC media player 1.1.5\n"
4247 "   app_epoch: 0\n"
4248 "   app_version: 1.1.5\n"
4249 "   app_release:\n"
4250 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4251 "   app_trans_path:\n"
4252 "   app_publisher: VideoLAN\n"
4253 "   app_url: http://www.videolan.org/\n"
4254 "   app_source_package:\n"
4255 "   app_summary:\n"
4256 "   app_description:\n"
4257 " }\n"
4258 "\n"
4259 msgstr ""
4260
4261 #. type: textblock
4262 #: ../examples/guestfs-recipes.pod:305
4263 msgid ""
4264 "If you want to run the script on disk images (instead of libvirt virtual "
4265 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4266 ">."
4267 msgstr ""
4268
4269 #. type: =head1
4270 #: ../examples/guestfs-recipes.pod:309
4271 msgid "List files and directories in a VM"
4272 msgstr ""
4273
4274 #. type: textblock
4275 #: ../examples/guestfs-recipes.pod:311
4276 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4277 msgstr ""
4278
4279 #. type: verbatim
4280 #: ../examples/guestfs-recipes.pod:313
4281 #, fuzzy, no-wrap
4282 #| msgid ""
4283 #| " guestfish --ro -d myguest -i\n"
4284 #| "\n"
4285 msgid ""
4286 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4287 "\n"
4288 msgstr ""
4289 " guestfish --ro -d myguest -i\n"
4290 "\n"
4291
4292 #. type: =head1
4293 #: ../examples/guestfs-recipes.pod:315
4294 msgid "List services in a Windows VM"
4295 msgstr ""
4296
4297 #. type: textblock
4298 #: ../examples/guestfs-recipes.pod:317
4299 msgid ""
4300 "The link below contains a script that can be used to list out the services "
4301 "from a Windows VM, and whether those services run at boot time or are loaded "
4302 "on demand."
4303 msgstr ""
4304
4305 #. type: textblock
4306 #: ../examples/guestfs-recipes.pod:321
4307 msgid ""
4308 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4309 "#content"
4310 msgstr ""
4311
4312 #. type: =head1
4313 #: ../examples/guestfs-recipes.pod:323
4314 msgid "Make a disk image sparse"
4315 msgstr ""
4316
4317 #. type: textblock
4318 #: ../examples/guestfs-recipes.pod:325
4319 msgid ""
4320 "The link below contains some guides for making a disk image sparse (or "
4321 "reintroducing sparseness)."
4322 msgstr ""
4323
4324 #. type: textblock
4325 #: ../examples/guestfs-recipes.pod:328
4326 msgid ""
4327 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4328 msgstr ""
4329
4330 #. type: =head1
4331 #: ../examples/guestfs-recipes.pod:330
4332 msgid "Monitor disk usage over time"
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../examples/guestfs-recipes.pod:332
4337 msgid ""
4338 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4339 "The link below contains a guide."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../examples/guestfs-recipes.pod:335
4344 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4345 msgstr ""
4346
4347 #. type: =head1
4348 #: ../examples/guestfs-recipes.pod:337
4349 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4350 msgstr ""
4351
4352 #. type: textblock
4353 #: ../examples/guestfs-recipes.pod:339
4354 msgid ""
4355 "L<guestfish(1)> plus the tools described in the link below can be used to "
4356 "read out the Windows Event Log from any virtual machine running Windows "
4357 "Vista or a later version."
4358 msgstr ""
4359
4360 #. type: textblock
4361 #: ../examples/guestfs-recipes.pod:343
4362 msgid ""
4363 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4364 "guestfish/#content"
4365 msgstr ""
4366
4367 #. type: =head1
4368 #: ../examples/guestfs-recipes.pod:345
4369 msgid "Remove root password (Linux)"
4370 msgstr ""
4371
4372 #. type: textblock
4373 #: ../examples/guestfs-recipes.pod:347
4374 msgid ""
4375 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4376 "files.  One use is to remove the root password from a Linux guest:"
4377 msgstr ""
4378
4379 #. type: verbatim
4380 #: ../examples/guestfs-recipes.pod:350
4381 #, no-wrap
4382 msgid ""
4383 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4384 "\n"
4385 msgstr ""
4386
4387 #. type: =head1
4388 #: ../examples/guestfs-recipes.pod:352
4389 msgid "Remove Administrator password (Windows)"
4390 msgstr ""
4391
4392 #. type: textblock
4393 #: ../examples/guestfs-recipes.pod:354
4394 msgid ""
4395 "The link below contains one technique for removing the Administrator "
4396 "password from a Windows VM, or to be more precise, it gives you a command "
4397 "prompt the next time you log in which you can use to bypass any security:"
4398 msgstr ""
4399
4400 #. type: textblock
4401 #: ../examples/guestfs-recipes.pod:359
4402 msgid ""
4403 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4404 "administrator-password-with-guestfish/"
4405 msgstr ""
4406
4407 #. type: =head1
4408 #: ../examples/guestfs-recipes.pod:361
4409 msgid "Unpack a live CD"
4410 msgstr ""
4411
4412 #. type: textblock
4413 #: ../examples/guestfs-recipes.pod:363
4414 msgid ""
4415 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4416 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4417 "layers, as outlined in the guide below."
4418 msgstr ""
4419
4420 #. type: textblock
4421 #: ../examples/guestfs-recipes.pod:367
4422 msgid ""
4423 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4424 "cd/#content"
4425 msgstr ""
4426
4427 #. type: =head1
4428 #: ../examples/guestfs-recipes.pod:369
4429 msgid "Uploading and downloading files"
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../examples/guestfs-recipes.pod:371
4434 msgid ""
4435 "The link below contains general tips on uploading (copying in)  and "
4436 "downloading (copying out) files from VMs."
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../examples/guestfs-recipes.pod:374
4441 msgid ""
4442 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4443 msgstr ""
4444
4445 #. type: =head1
4446 #: ../examples/guestfs-recipes.pod:376
4447 msgid "Use libguestfs tools on VMware ESX guests"
4448 msgstr ""
4449
4450 #. type: textblock
4451 #: ../examples/guestfs-recipes.pod:378
4452 msgid ""
4453 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4454 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4455 msgstr ""
4456
4457 #. type: textblock
4458 #: ../examples/guestfs-recipes.pod:382
4459 msgid ""
4460 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4461 "guests/#content"
4462 msgstr ""
4463
4464 #. type: textblock
4465 #: ../examples/guestfs-recipes.pod:386
4466 #, fuzzy
4467 #| msgid ""
4468 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4469 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4470 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4471 msgid ""
4472 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4473 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4474 "(3)>, L<http://libguestfs.org/>."
4475 msgstr ""
4476 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4477 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4478 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4479
4480 #. type: textblock
4481 #: ../examples/guestfs-recipes.pod:402
4482 #, fuzzy
4483 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4484 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4485 msgstr "© Red Hat Inc., 2009–2010"
4486
4487 #. type: =head2
4488 #: ../fish/guestfish-actions.pod:1
4489 msgid "add-cdrom"
4490 msgstr ""
4491
4492 #. type: verbatim
4493 #: ../fish/guestfish-actions.pod:3
4494 #, no-wrap
4495 msgid ""
4496 " add-cdrom filename\n"
4497 "\n"
4498 msgstr ""
4499
4500 #. type: textblock
4501 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4502 msgid "This function adds a virtual CD-ROM disk image to the guest."
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4507 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4508 msgstr ""
4509
4510 #. type: textblock
4511 #: ../fish/guestfish-actions.pod:15
4512 msgid ""
4513 "This call checks for the existence of C<filename>.  This stops you from "
4514 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4515 "and C<http:> URLs.  To specify those, use the general L</config> call "
4516 "instead."
4517 msgstr ""
4518
4519 #. type: textblock
4520 #: ../fish/guestfish-actions.pod:22
4521 msgid ""
4522 "If you just want to add an ISO file (often you use this as an efficient way "
4523 "to transfer large files into the guest), then you should probably use L</add-"
4524 "drive-ro> instead."
4525 msgstr ""
4526
4527 #. type: textblock
4528 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4529 #: ../fish/guestfish-actions.pod:177
4530 msgid ""
4531 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4532 "instead."
4533 msgstr ""
4534
4535 #. type: textblock
4536 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4537 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4538 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4539 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4540 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4541 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4542 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4543 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4544 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4545 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4546 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4547 #: ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926
4548 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255
4549 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565
4550 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662
4551 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703
4552 #: ../src/guestfs-actions.pod:7886
4553 msgid ""
4554 "Deprecated functions will not be removed from the API, but the fact that "
4555 "they are deprecated indicates that there are problems with correct use of "
4556 "these functions."
4557 msgstr ""
4558
4559 #. type: =head2
4560 #: ../fish/guestfish-actions.pod:35
4561 msgid "add-domain"
4562 msgstr "add-domain"
4563
4564 #. type: =head2
4565 #: ../fish/guestfish-actions.pod:37
4566 msgid "domain"
4567 msgstr ""
4568
4569 #. type: verbatim
4570 #: ../fish/guestfish-actions.pod:39
4571 #, no-wrap
4572 msgid ""
4573 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4574 "\n"
4575 msgstr ""
4576
4577 #. type: textblock
4578 #: ../fish/guestfish-actions.pod:41
4579 msgid ""
4580 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4581 "It works by connecting to libvirt, requesting the domain and domain XML from "
4582 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4583 msgstr ""
4584
4585 #. type: textblock
4586 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4587 msgid ""
4588 "The number of disks added is returned.  This operation is atomic: if an "
4589 "error is returned, then no disks are added."
4590 msgstr ""
4591
4592 #. type: textblock
4593 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4594 msgid ""
4595 "This function does some minimal checks to make sure the libvirt domain is "
4596 "not running (unless C<readonly> is true).  In a future version we will try "
4597 "to acquire the libvirt lock on each disk."
4598 msgstr ""
4599
4600 #. type: textblock
4601 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4602 msgid ""
4603 "Disks must be accessible locally.  This often means that adding disks from a "
4604 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4605 "unless those disks are accessible via the same device path locally too."
4606 msgstr ""
4607
4608 #. type: textblock
4609 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4610 msgid ""
4611 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4612 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4613 "libvirt URI (or one set through an environment variable, see the libvirt "
4614 "documentation for full details)."
4615 msgstr ""
4616
4617 #. type: textblock
4618 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4619 msgid ""
4620 "The optional C<live> flag controls whether this call will try to connect to "
4621 "a running virtual machine C<guestfsd> process if it sees a suitable "
4622 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4623 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4624 "DAEMONS> for more information."
4625 msgstr ""
4626
4627 #. type: textblock
4628 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4629 msgid ""
4630 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4631 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4632 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4633 "as usual."
4634 msgstr ""
4635
4636 #. type: textblock
4637 #: ../fish/guestfish-actions.pod:76
4638 msgid ""
4639 "The other optional parameters are passed directly through to L</add-drive-"
4640 "opts>."
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4645 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4646 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4647 #: ../fish/guestfish-actions.pod:3447
4648 msgid ""
4649 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4650 msgstr ""
4651
4652 #. type: =head2
4653 #: ../fish/guestfish-actions.pod:81
4654 msgid "add-drive"
4655 msgstr "add-drive"
4656
4657 #. type: verbatim
4658 #: ../fish/guestfish-actions.pod:83
4659 #, no-wrap
4660 msgid ""
4661 " add-drive filename\n"
4662 "\n"
4663 msgstr ""
4664 " add-drive назва_файла\n"
4665 "\n"
4666
4667 #. type: textblock
4668 #: ../fish/guestfish-actions.pod:85
4669 msgid ""
4670 "This function is the equivalent of calling L</add-drive-opts> with no "
4671 "optional parameters, so the disk is added writable, with the format being "
4672 "detected automatically."
4673 msgstr ""
4674
4675 #. type: textblock
4676 #: ../fish/guestfish-actions.pod:89
4677 msgid ""
4678 "Automatic detection of the format opens you up to a potential security hole "
4679 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4680 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4681 "you should think about replacing calls to this function with calls to L</add-"
4682 "drive-opts>, and specifying the format."
4683 msgstr ""
4684
4685 #. type: =head2
4686 #: ../fish/guestfish-actions.pod:96
4687 msgid "add-drive-opts"
4688 msgstr "add-drive-opts"
4689
4690 #. type: =head2
4691 #: ../fish/guestfish-actions.pod:98
4692 msgid "add"
4693 msgstr "add"
4694
4695 #. type: verbatim
4696 #: ../fish/guestfish-actions.pod:100
4697 #, no-wrap
4698 msgid ""
4699 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4700 "\n"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4705 msgid ""
4706 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4707 "The first time you call this function, the disk appears as C</dev/sda>, the "
4708 "second time as C</dev/sdb>, and so on."
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4713 msgid ""
4714 "You don't necessarily need to be root when using libguestfs.  However you "
4715 "obviously do need sufficient permissions to access the filename for whatever "
4716 "operations you want to perform (ie. read access if you just want to read the "
4717 "image or write access if you want to modify the image)."
4718 msgstr ""
4719
4720 #. type: textblock
4721 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4722 msgid "This call checks that C<filename> exists."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4727 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4728 msgid "The optional arguments are:"
4729 msgstr ""
4730
4731 #. type: =item
4732 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4733 msgid "C<readonly>"
4734 msgstr "C<readonly>"
4735
4736 #. type: textblock
4737 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4738 msgid ""
4739 "If true then the image is treated as read-only.  Writes are still allowed, "
4740 "but they are stored in a temporary snapshot overlay which is discarded at "
4741 "the end.  The disk that you add is not modified."
4742 msgstr ""
4743
4744 #. type: =item
4745 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4746 msgid "C<format>"
4747 msgstr "C<format>"
4748
4749 #. type: textblock
4750 #: ../fish/guestfish-actions.pod:127
4751 msgid ""
4752 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4753 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4754 "include C<raw> and C<qcow2>."
4755 msgstr ""
4756
4757 #. type: textblock
4758 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4759 msgid ""
4760 "Automatic detection of the format opens you up to a potential security hole "
4761 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4762 "RHBZ#642934.  Specifying the format closes this security hole."
4763 msgstr ""
4764
4765 #. type: =item
4766 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4767 msgid "C<iface>"
4768 msgstr "C<iface>"
4769
4770 #. type: textblock
4771 #: ../fish/guestfish-actions.pod:138
4772 msgid ""
4773 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4774 "add-drive-with-if> call (q.v.)"
4775 msgstr ""
4776
4777 #. type: =head2
4778 #: ../fish/guestfish-actions.pod:145
4779 msgid "add-drive-ro"
4780 msgstr "add-drive-ro"
4781
4782 #. type: =head2
4783 #: ../fish/guestfish-actions.pod:147
4784 msgid "add-ro"
4785 msgstr "add-ro"
4786
4787 #. type: verbatim
4788 #: ../fish/guestfish-actions.pod:149
4789 #, no-wrap
4790 msgid ""
4791 " add-drive-ro filename\n"
4792 "\n"
4793 msgstr ""
4794
4795 #. type: textblock
4796 #: ../fish/guestfish-actions.pod:151
4797 msgid ""
4798 "This function is the equivalent of calling L</add-drive-opts> with the "
4799 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4800 "is added read-only, with the format being detected automatically."
4801 msgstr ""
4802
4803 #. type: =head2
4804 #: ../fish/guestfish-actions.pod:156
4805 msgid "add-drive-ro-with-if"
4806 msgstr ""
4807
4808 #. type: verbatim
4809 #: ../fish/guestfish-actions.pod:158
4810 #, no-wrap
4811 msgid ""
4812 " add-drive-ro-with-if filename iface\n"
4813 "\n"
4814 msgstr ""
4815
4816 #. type: textblock
4817 #: ../fish/guestfish-actions.pod:160
4818 msgid ""
4819 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4820 "interface emulation to use at run time."
4821 msgstr ""
4822
4823 #. type: =head2
4824 #: ../fish/guestfish-actions.pod:170
4825 msgid "add-drive-with-if"
4826 msgstr ""
4827
4828 #. type: verbatim
4829 #: ../fish/guestfish-actions.pod:172
4830 #, no-wrap
4831 msgid ""
4832 " add-drive-with-if filename iface\n"
4833 "\n"
4834 msgstr ""
4835
4836 #. type: textblock
4837 #: ../fish/guestfish-actions.pod:174
4838 msgid ""
4839 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4840 "interface emulation to use at run time."
4841 msgstr ""
4842
4843 #. type: =head2
4844 #: ../fish/guestfish-actions.pod:184
4845 msgid "aug-clear"
4846 msgstr ""
4847
4848 #. type: verbatim
4849 #: ../fish/guestfish-actions.pod:186
4850 #, no-wrap
4851 msgid ""
4852 " aug-clear augpath\n"
4853 "\n"
4854 msgstr ""
4855
4856 #. type: textblock
4857 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4858 msgid ""
4859 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4860 "L<augtool(1)> C<clear> command."
4861 msgstr ""
4862
4863 #. type: =head2
4864 #: ../fish/guestfish-actions.pod:191
4865 msgid "aug-close"
4866 msgstr ""
4867
4868 #. type: verbatim
4869 #: ../fish/guestfish-actions.pod:193
4870 #, no-wrap
4871 msgid ""
4872 " aug-close\n"
4873 "\n"
4874 msgstr ""
4875
4876 #. type: textblock
4877 #: ../fish/guestfish-actions.pod:195
4878 msgid ""
4879 "Close the current Augeas handle and free up any resources used by it.  After "
4880 "calling this, you have to call L</aug-init> again before you can use any "
4881 "other Augeas functions."
4882 msgstr ""
4883
4884 #. type: =head2
4885 #: ../fish/guestfish-actions.pod:200
4886 msgid "aug-defnode"
4887 msgstr ""
4888
4889 #. type: verbatim
4890 #: ../fish/guestfish-actions.pod:202
4891 #, no-wrap
4892 msgid ""
4893 " aug-defnode name expr val\n"
4894 "\n"
4895 msgstr ""
4896
4897 #. type: textblock
4898 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4899 msgid ""
4900 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4901 msgstr ""
4902
4903 #. type: textblock
4904 #: ../fish/guestfish-actions.pod:207
4905 msgid ""
4906 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4907 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4908 "containing that single node."
4909 msgstr ""
4910
4911 #. type: textblock
4912 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4913 msgid ""
4914 "On success this returns a pair containing the number of nodes in the "
4915 "nodeset, and a boolean flag if a node was created."
4916 msgstr ""
4917
4918 #. type: =head2
4919 #: ../fish/guestfish-actions.pod:215
4920 msgid "aug-defvar"
4921 msgstr ""
4922
4923 #. type: verbatim
4924 #: ../fish/guestfish-actions.pod:217
4925 #, no-wrap
4926 msgid ""
4927 " aug-defvar name expr\n"
4928 "\n"
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4933 msgid ""
4934 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4935 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4936 msgstr ""
4937
4938 #. type: textblock
4939 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4940 msgid ""
4941 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4942 "evaluates to something which is not a nodeset."
4943 msgstr ""
4944
4945 #. type: =head2
4946 #: ../fish/guestfish-actions.pod:226
4947 msgid "aug-get"
4948 msgstr ""
4949
4950 #. type: verbatim
4951 #: ../fish/guestfish-actions.pod:228
4952 #, no-wrap
4953 msgid ""
4954 " aug-get augpath\n"
4955 "\n"
4956 msgstr ""
4957
4958 #. type: textblock
4959 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4960 msgid ""
4961 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4962 "node, the C<value> is returned."
4963 msgstr ""
4964
4965 #. type: =head2
4966 #: ../fish/guestfish-actions.pod:233
4967 msgid "aug-init"
4968 msgstr ""
4969
4970 #. type: verbatim
4971 #: ../fish/guestfish-actions.pod:235
4972 #, no-wrap
4973 msgid ""
4974 " aug-init root flags\n"
4975 "\n"
4976 msgstr ""
4977
4978 #. type: textblock
4979 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4980 msgid ""
4981 "Create a new Augeas handle for editing configuration files.  If there was "
4982 "any previous Augeas handle associated with this guestfs session, then it is "
4983 "closed."
4984 msgstr ""
4985
4986 #. type: textblock
4987 #: ../fish/guestfish-actions.pod:241
4988 msgid "You must call this before using any other L</aug-*> commands."
4989 msgstr ""
4990
4991 #. type: textblock
4992 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4993 msgid ""
4994 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4995 msgstr ""
4996
4997 #. type: textblock
4998 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4999 msgid ""
5000 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5001 "logical I<or> of the following integers:"
5002 msgstr ""
5003
5004 #. type: =item
5005 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5006 msgid "C<AUG_SAVE_BACKUP> = 1"
5007 msgstr "C<AUG_SAVE_BACKUP> = 1"
5008
5009 #. type: textblock
5010 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5011 msgid "Keep the original file with a C<.augsave> extension."
5012 msgstr ""
5013
5014 #. type: =item
5015 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5016 msgid "C<AUG_SAVE_NEWFILE> = 2"
5017 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5018
5019 #. type: textblock
5020 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5021 msgid ""
5022 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5023 "original.  Overrides C<AUG_SAVE_BACKUP>."
5024 msgstr ""
5025
5026 #. type: =item
5027 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5028 msgid "C<AUG_TYPE_CHECK> = 4"
5029 msgstr "C<AUG_TYPE_CHECK> = 4"
5030
5031 #. type: textblock
5032 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5033 msgid "Typecheck lenses."
5034 msgstr ""
5035
5036 #. type: textblock
5037 #: ../fish/guestfish-actions.pod:266
5038 msgid ""
5039 "This option is only useful when debugging Augeas lenses.  Use of this option "
5040 "may require additional memory for the libguestfs appliance.  You may need to "
5041 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5042 msgstr ""
5043
5044 #. type: =item
5045 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5046 msgid "C<AUG_NO_STDINC> = 8"
5047 msgstr "C<AUG_NO_STDINC> = 8"
5048
5049 #. type: textblock
5050 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5051 msgid "Do not use standard load path for modules."
5052 msgstr ""
5053
5054 #. type: =item
5055 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5056 msgid "C<AUG_SAVE_NOOP> = 16"
5057 msgstr "C<AUG_SAVE_NOOP> = 16"
5058
5059 #. type: textblock
5060 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5061 msgid "Make save a no-op, just record what would have been changed."
5062 msgstr ""
5063
5064 #. type: =item
5065 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5066 msgid "C<AUG_NO_LOAD> = 32"
5067 msgstr "C<AUG_NO_LOAD> = 32"
5068
5069 #. type: textblock
5070 #: ../fish/guestfish-actions.pod:281
5071 msgid "Do not load the tree in L</aug-init>."
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../fish/guestfish-actions.pod:285
5076 msgid "To close the handle, you can call L</aug-close>."
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5081 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5082 msgstr ""
5083
5084 #. type: =head2
5085 #: ../fish/guestfish-actions.pod:289
5086 msgid "aug-insert"
5087 msgstr ""
5088
5089 #. type: verbatim
5090 #: ../fish/guestfish-actions.pod:291
5091 #, no-wrap
5092 msgid ""
5093 " aug-insert augpath label true|false\n"
5094 "\n"
5095 msgstr ""
5096
5097 #. type: textblock
5098 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5099 msgid ""
5100 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5101 "or after C<path> (depending on the boolean flag C<before>)."
5102 msgstr ""
5103
5104 #. type: textblock
5105 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5106 msgid ""
5107 "C<path> must match exactly one existing node in the tree, and C<label> must "
5108 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5109 msgstr ""
5110
5111 #. type: =head2
5112 #: ../fish/guestfish-actions.pod:301
5113 msgid "aug-load"
5114 msgstr ""
5115
5116 #. type: verbatim
5117 #: ../fish/guestfish-actions.pod:303
5118 #, no-wrap
5119 msgid ""
5120 " aug-load\n"
5121 "\n"
5122 msgstr ""
5123
5124 #. type: textblock
5125 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5126 msgid "Load files into the tree."
5127 msgstr "Завантажити файли до ієрархії."
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5131 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5132 msgstr ""
5133
5134 #. type: =head2
5135 #: ../fish/guestfish-actions.pod:310
5136 msgid "aug-ls"
5137 msgstr ""
5138
5139 #. type: verbatim
5140 #: ../fish/guestfish-actions.pod:312
5141 #, no-wrap
5142 msgid ""
5143 " aug-ls augpath\n"
5144 "\n"
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../fish/guestfish-actions.pod:314
5149 msgid ""
5150 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5151 "resulting nodes into alphabetical order."
5152 msgstr ""
5153
5154 #. type: =head2
5155 #: ../fish/guestfish-actions.pod:317
5156 msgid "aug-match"
5157 msgstr ""
5158
5159 #. type: verbatim
5160 #: ../fish/guestfish-actions.pod:319
5161 #, no-wrap
5162 msgid ""
5163 " aug-match augpath\n"
5164 "\n"
5165 msgstr ""
5166
5167 #. type: textblock
5168 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5169 msgid ""
5170 "Returns a list of paths which match the path expression C<path>.  The "
5171 "returned paths are sufficiently qualified so that they match exactly one "
5172 "node in the current tree."
5173 msgstr ""
5174
5175 #. type: =head2
5176 #: ../fish/guestfish-actions.pod:325
5177 msgid "aug-mv"
5178 msgstr ""
5179
5180 #. type: verbatim
5181 #: ../fish/guestfish-actions.pod:327
5182 #, no-wrap
5183 msgid ""
5184 " aug-mv src dest\n"
5185 "\n"
5186 msgstr ""
5187
5188 #. type: textblock
5189 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5190 msgid ""
5191 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5192 "C<dest> is overwritten if it exists."
5193 msgstr ""
5194
5195 #. type: =head2
5196 #: ../fish/guestfish-actions.pod:332
5197 msgid "aug-rm"
5198 msgstr ""
5199
5200 #. type: verbatim
5201 #: ../fish/guestfish-actions.pod:334
5202 #, no-wrap
5203 msgid ""
5204 " aug-rm augpath\n"
5205 "\n"
5206 msgstr ""
5207
5208 #. type: textblock
5209 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5210 msgid "Remove C<path> and all of its children."
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5215 msgid "On success this returns the number of entries which were removed."
5216 msgstr ""
5217
5218 #. type: =head2
5219 #: ../fish/guestfish-actions.pod:340
5220 msgid "aug-save"
5221 msgstr ""
5222
5223 #. type: verbatim
5224 #: ../fish/guestfish-actions.pod:342
5225 #, no-wrap
5226 msgid ""
5227 " aug-save\n"
5228 "\n"
5229 msgstr ""
5230
5231 #. type: textblock
5232 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5233 msgid "This writes all pending changes to disk."
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../fish/guestfish-actions.pod:346
5238 msgid ""
5239 "The flags which were passed to L</aug-init> affect exactly how files are "
5240 "saved."
5241 msgstr ""
5242
5243 #. type: =head2
5244 #: ../fish/guestfish-actions.pod:349
5245 msgid "aug-set"
5246 msgstr ""
5247
5248 #. type: verbatim
5249 #: ../fish/guestfish-actions.pod:351
5250 #, no-wrap
5251 msgid ""
5252 " aug-set augpath val\n"
5253 "\n"
5254 msgstr ""
5255
5256 #. type: textblock
5257 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5258 msgid "Set the value associated with C<path> to C<val>."
5259 msgstr ""
5260
5261 #. type: textblock
5262 #: ../fish/guestfish-actions.pod:355
5263 msgid ""
5264 "In the Augeas API, it is possible to clear a node by setting the value to "
5265 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5266 "this call.  Instead you must use the L</aug-clear> call."
5267 msgstr ""
5268
5269 #. type: =head2
5270 #: ../fish/guestfish-actions.pod:360
5271 msgid "available"
5272 msgstr ""
5273
5274 #. type: verbatim
5275 #: ../fish/guestfish-actions.pod:362
5276 #, no-wrap
5277 msgid ""
5278 " available 'groups ...'\n"
5279 "\n"
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5284 msgid ""
5285 "This command is used to check the availability of some groups of "
5286 "functionality in the appliance, which not all builds of the libguestfs "
5287 "appliance will be able to provide."
5288 msgstr ""
5289
5290 #. type: textblock
5291 #: ../fish/guestfish-actions.pod:368
5292 msgid ""
5293 "The libguestfs groups, and the functions that those groups correspond to, "
5294 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5295 "runtime by calling L</available-all-groups>."
5296 msgstr ""
5297
5298 #. type: textblock
5299 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5300 msgid ""
5301 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5302 "\"]> would check for the availability of the Linux inotify functions and "
5303 "Augeas (configuration file editing) functions."
5304 msgstr ""
5305
5306 #. type: textblock
5307 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5308 msgid "The command returns no error if I<all> requested groups are available."
5309 msgstr ""
5310
5311 #. type: textblock
5312 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5313 msgid ""
5314 "It fails with an error if one or more of the requested groups is unavailable "
5315 "in the appliance."
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5320 msgid ""
5321 "If an unknown group name is included in the list of groups then an error is "
5322 "always returned."
5323 msgstr ""
5324
5325 #. type: textblock
5326 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5327 msgid "I<Notes:>"
5328 msgstr "I<Нотатки:>"
5329
5330 #. type: textblock
5331 #: ../fish/guestfish-actions.pod:392
5332 msgid "You must call L</launch> before calling this function."
5333 msgstr ""
5334
5335 #. type: textblock
5336 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5337 msgid ""
5338 "The reason is because we don't know what groups are supported by the "
5339 "appliance/daemon until it is running and can be queried."
5340 msgstr ""
5341
5342 #. type: textblock
5343 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5344 msgid ""
5345 "If a group of functions is available, this does not necessarily mean that "
5346 "they will work.  You still have to check for errors when calling individual "
5347 "API functions even if they are available."
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5352 msgid ""
5353 "It is usually the job of distro packagers to build complete functionality "
5354 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5355 "with all requirements satisfied, will support everything."
5356 msgstr ""
5357
5358 #. type: textblock
5359 #: ../fish/guestfish-actions.pod:414
5360 msgid ""
5361 "This call was added in version C<1.0.80>.  In previous versions of "
5362 "libguestfs all you could do would be to speculatively execute a command to "
5363 "find out if the daemon implemented it.  See also L</version>."
5364 msgstr ""
5365
5366 #. type: =head2
5367 #: ../fish/guestfish-actions.pod:421
5368 msgid "available-all-groups"
5369 msgstr ""
5370
5371 #. type: verbatim
5372 #: ../fish/guestfish-actions.pod:423
5373 #, no-wrap
5374 msgid ""
5375 " available-all-groups\n"
5376 "\n"
5377 msgstr ""
5378
5379 #. type: textblock
5380 #: ../fish/guestfish-actions.pod:425
5381 msgid ""
5382 "This command returns a list of all optional groups that this daemon knows "
5383 "about.  Note this returns both supported and unsupported groups.  To find "
5384 "out which ones the daemon can actually support you have to call L</"
5385 "available> on each member of the returned list."
5386 msgstr ""
5387
5388 #. type: textblock
5389 #: ../fish/guestfish-actions.pod:431
5390 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5391 msgstr ""
5392
5393 #. type: =head2
5394 #: ../fish/guestfish-actions.pod:433
5395 msgid "base64-in"
5396 msgstr ""
5397
5398 #. type: verbatim
5399 #: ../fish/guestfish-actions.pod:435
5400 #, no-wrap
5401 msgid ""
5402 " base64-in (base64file|-) filename\n"
5403 "\n"
5404 msgstr ""
5405
5406 #. type: textblock
5407 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5408 msgid ""
5409 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5410 msgstr ""
5411
5412 #. type: textblock
5413 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5414 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5415 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5416 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5417 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5418 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5419 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5420 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5421 msgstr ""
5422
5423 #. type: =head2
5424 #: ../fish/guestfish-actions.pod:442
5425 msgid "base64-out"
5426 msgstr ""
5427
5428 #. type: verbatim
5429 #: ../fish/guestfish-actions.pod:444
5430 #, no-wrap
5431 msgid ""
5432 " base64-out filename (base64file|-)\n"
5433 "\n"
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5438 msgid ""
5439 "This command downloads the contents of C<filename>, writing it out to local "
5440 "file C<base64file> encoded as base64."
5441 msgstr ""
5442
5443 #. type: =head2
5444 #: ../fish/guestfish-actions.pod:451
5445 msgid "blockdev-flushbufs"
5446 msgstr ""
5447
5448 #. type: verbatim
5449 #: ../fish/guestfish-actions.pod:453
5450 #, no-wrap
5451 msgid ""
5452 " blockdev-flushbufs device\n"
5453 "\n"
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5458 msgid ""
5459 "This tells the kernel to flush internal buffers associated with C<device>."
5460 msgstr ""
5461
5462 #. type: textblock
5463 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5464 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5465 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5466 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5467 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5468 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5469 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5470 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5471 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5472 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5473 msgid "This uses the L<blockdev(8)> command."
5474 msgstr ""
5475
5476 #. type: =head2
5477 #: ../fish/guestfish-actions.pod:460
5478 msgid "blockdev-getbsz"
5479 msgstr ""
5480
5481 #. type: verbatim
5482 #: ../fish/guestfish-actions.pod:462
5483 #, no-wrap
5484 msgid ""
5485 " blockdev-getbsz device\n"
5486 "\n"
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5491 msgid "This returns the block size of a device."
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5496 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5497 msgid ""
5498 "(Note this is different from both I<size in blocks> and I<filesystem block "
5499 "size>)."
5500 msgstr ""
5501
5502 #. type: =head2
5503 #: ../fish/guestfish-actions.pod:471
5504 msgid "blockdev-getro"
5505 msgstr ""
5506
5507 #. type: verbatim
5508 #: ../fish/guestfish-actions.pod:473
5509 #, no-wrap
5510 msgid ""
5511 " blockdev-getro device\n"
5512 "\n"
5513 msgstr ""
5514
5515 #. type: textblock
5516 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5517 msgid ""
5518 "Returns a boolean indicating if the block device is read-only (true if read-"
5519 "only, false if not)."
5520 msgstr ""
5521
5522 #. type: =head2
5523 #: ../fish/guestfish-actions.pod:480
5524 msgid "blockdev-getsize64"
5525 msgstr ""
5526
5527 #. type: verbatim
5528 #: ../fish/guestfish-actions.pod:482
5529 #, no-wrap
5530 msgid ""
5531 " blockdev-getsize64 device\n"
5532 "\n"
5533 msgstr ""
5534
5535 #. type: textblock
5536 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5537 msgid "This returns the size of the device in bytes."
5538 msgstr ""
5539
5540 #. type: textblock
5541 #: ../fish/guestfish-actions.pod:486
5542 msgid "See also L</blockdev-getsz>."
5543 msgstr ""
5544
5545 #. type: =head2
5546 #: ../fish/guestfish-actions.pod:490
5547 msgid "blockdev-getss"
5548 msgstr ""
5549
5550 #. type: verbatim
5551 #: ../fish/guestfish-actions.pod:492
5552 #, no-wrap
5553 msgid ""
5554 " blockdev-getss device\n"
5555 "\n"
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5560 msgid ""
5561 "This returns the size of sectors on a block device.  Usually 512, but can be "
5562 "larger for modern devices."
5563 msgstr ""
5564
5565 #. type: textblock
5566 #: ../fish/guestfish-actions.pod:497
5567 msgid ""
5568 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5569 msgstr ""
5570
5571 #. type: =head2
5572 #: ../fish/guestfish-actions.pod:502
5573 msgid "blockdev-getsz"
5574 msgstr ""
5575
5576 #. type: verbatim
5577 #: ../fish/guestfish-actions.pod:504
5578 #, no-wrap
5579 msgid ""
5580 " blockdev-getsz device\n"
5581 "\n"
5582 msgstr ""
5583
5584 #. type: textblock
5585 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5586 msgid ""
5587 "This returns the size of the device in units of 512-byte sectors (even if "
5588 "the sectorsize isn't 512 bytes ... weird)."
5589 msgstr ""
5590
5591 #. type: textblock
5592 #: ../fish/guestfish-actions.pod:509
5593 msgid ""
5594 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5595 "blockdev-getsize64> for the more useful I<size in bytes>."
5596 msgstr ""
5597
5598 #. type: =head2
5599 #: ../fish/guestfish-actions.pod:515
5600 msgid "blockdev-rereadpt"
5601 msgstr ""
5602
5603 #. type: verbatim
5604 #: ../fish/guestfish-actions.pod:517
5605 #, no-wrap
5606 msgid ""
5607 " blockdev-rereadpt device\n"
5608 "\n"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5613 msgid "Reread the partition table on C<device>."
5614 msgstr ""
5615
5616 #. type: =head2
5617 #: ../fish/guestfish-actions.pod:523
5618 msgid "blockdev-setbsz"
5619 msgstr ""
5620
5621 #. type: verbatim
5622 #: ../fish/guestfish-actions.pod:525
5623 #, no-wrap
5624 msgid ""
5625 " blockdev-setbsz device blocksize\n"
5626 "\n"
5627 msgstr ""
5628
5629 #. type: textblock
5630 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5631 msgid "This sets the block size of a device."
5632 msgstr ""
5633
5634 #. type: =head2
5635 #: ../fish/guestfish-actions.pod:534
5636 msgid "blockdev-setro"
5637 msgstr ""
5638
5639 #. type: verbatim
5640 #: ../fish/guestfish-actions.pod:536
5641 #, no-wrap
5642 msgid ""
5643 " blockdev-setro device\n"
5644 "\n"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5649 msgid "Sets the block device named C<device> to read-only."
5650 msgstr ""
5651
5652 #. type: =head2
5653 #: ../fish/guestfish-actions.pod:542
5654 msgid "blockdev-setrw"
5655 msgstr ""
5656
5657 #. type: verbatim
5658 #: ../fish/guestfish-actions.pod:544
5659 #, no-wrap
5660 msgid ""
5661 " blockdev-setrw device\n"
5662 "\n"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5667 msgid "Sets the block device named C<device> to read-write."
5668 msgstr ""
5669
5670 #. type: =head2
5671 #: ../fish/guestfish-actions.pod:550
5672 msgid "btrfs-filesystem-resize"
5673 msgstr ""
5674
5675 #. type: verbatim
5676 #: ../fish/guestfish-actions.pod:552
5677 #, no-wrap
5678 msgid ""
5679 " btrfs-filesystem-resize mountpoint [size:..]\n"
5680 "\n"
5681 msgstr ""
5682
5683 #. type: textblock
5684 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5685 msgid "This command resizes a btrfs filesystem."
5686 msgstr ""
5687
5688 #. type: textblock
5689 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5690 msgid ""
5691 "Note that unlike other resize calls, the filesystem has to be mounted and "
5692 "the parameter is the mountpoint not the device (this is a requirement of "
5693 "btrfs itself)."
5694 msgstr ""
5695
5696 #. type: textblock
5697 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5698 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5699 msgid "The optional parameters are:"
5700 msgstr ""
5701
5702 #. type: =item
5703 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5704 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5705 msgid "C<size>"
5706 msgstr ""
5707
5708 #. type: textblock
5709 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5710 msgid ""
5711 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5712 "resized to the maximum size."
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5717 msgid "See also L<btrfs(8)>."
5718 msgstr ""
5719
5720 #. type: =head2
5721 #: ../fish/guestfish-actions.pod:575
5722 msgid "case-sensitive-path"
5723 msgstr ""
5724
5725 #. type: verbatim
5726 #: ../fish/guestfish-actions.pod:577
5727 #, no-wrap
5728 msgid ""
5729 " case-sensitive-path path\n"
5730 "\n"
5731 msgstr ""
5732
5733 #. type: textblock
5734 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5735 msgid ""
5736 "This can be used to resolve case insensitive paths on a filesystem which is "
5737 "case sensitive.  The use case is to resolve paths which you have read from "
5738 "Windows configuration files or the Windows Registry, to the true path."
5739 msgstr ""
5740
5741 #. type: textblock
5742 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5743 msgid ""
5744 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5745 "(and probably others), which is that although the underlying filesystem is "
5746 "case-insensitive, the driver exports the filesystem to Linux as case-"
5747 "sensitive."
5748 msgstr ""
5749
5750 #. type: textblock
5751 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5752 msgid ""
5753 "One consequence of this is that special directories such as C<c:\\windows> "
5754 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5755 "precise details of how they were created.  In Windows itself this would not "
5756 "be a problem."
5757 msgstr ""
5758
5759 #. type: textblock
5760 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5761 msgid ""
5762 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5763 "#posixfilenames1>"
5764 msgstr ""
5765
5766 #. type: textblock
5767 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5768 msgid ""
5769 "This function resolves the true case of each element in the path and returns "
5770 "the case-sensitive path."
5771 msgstr ""
5772
5773 #. type: textblock
5774 #: ../fish/guestfish-actions.pod:601
5775 msgid ""
5776 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5777 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5778 "the directories were originally created under Windows)."
5779 msgstr ""
5780
5781 #. type: textblock
5782 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5783 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../fish/guestfish-actions.pod:609
5788 msgid "See also L</realpath>."
5789 msgstr ""
5790
5791 #. type: =head2
5792 #: ../fish/guestfish-actions.pod:611
5793 msgid "cat"
5794 msgstr "cat"
5795
5796 #. type: verbatim
5797 #: ../fish/guestfish-actions.pod:613
5798 #, no-wrap
5799 msgid ""
5800 " cat path\n"
5801 "\n"
5802 msgstr ""
5803 " cat шлях\n"
5804 "\n"
5805
5806 #. type: textblock
5807 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5808 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5809 msgid "Return the contents of the file named C<path>."
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../fish/guestfish-actions.pod:617
5814 msgid ""
5815 "Note that this function cannot correctly handle binary files (specifically, "
5816 "files containing C<\\0> character which is treated as end of string).  For "
5817 "those you need to use the L</read-file> or L</download> functions which have "
5818 "a more complex interface."
5819 msgstr ""
5820
5821 #. type: textblock
5822 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5823 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5824 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5825 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5826 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5827 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5828 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5829 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5830 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5831 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5832 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5833 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5834 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5835 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5836 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5837 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5838 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5839 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5840 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5841 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5842 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5843 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5844 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5845 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5846 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5847 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5848 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5849 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5850 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720
5851 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5852 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5853 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5854 msgid ""
5855 "Because of the message protocol, there is a transfer limit of somewhere "
5856 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5857 msgstr ""
5858
5859 #. type: =head2
5860 #: ../fish/guestfish-actions.pod:625
5861 msgid "checksum"
5862 msgstr "checksum"
5863
5864 #. type: verbatim
5865 #: ../fish/guestfish-actions.pod:627
5866 #, no-wrap
5867 msgid ""
5868 " checksum csumtype path\n"
5869 "\n"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5874 msgid ""
5875 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5876 msgstr ""
5877
5878 #. type: textblock
5879 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5880 msgid ""
5881 "The type of checksum to compute is given by the C<csumtype> parameter which "
5882 "must have one of the following values:"
5883 msgstr ""
5884
5885 #. type: =item
5886 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5887 msgid "C<crc>"
5888 msgstr "C<crc>"
5889
5890 #. type: textblock
5891 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5892 msgid ""
5893 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5894 "C<cksum> command."
5895 msgstr ""
5896
5897 #. type: =item
5898 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5899 msgid "C<md5>"
5900 msgstr "C<md5>"
5901
5902 #. type: textblock
5903 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5904 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5905 msgstr ""
5906
5907 #. type: =item
5908 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5909 msgid "C<sha1>"
5910 msgstr "C<sha1>"
5911
5912 #. type: textblock
5913 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5914 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5915 msgstr ""
5916
5917 #. type: =item
5918 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5919 msgid "C<sha224>"
5920 msgstr "C<sha224>"
5921
5922 #. type: textblock
5923 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5924 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5925 msgstr ""
5926
5927 #. type: =item
5928 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5929 msgid "C<sha256>"
5930 msgstr "C<sha256>"
5931
5932 #. type: textblock
5933 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5934 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5935 msgstr ""
5936
5937 #. type: =item
5938 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5939 msgid "C<sha384>"
5940 msgstr "C<sha384>"
5941
5942 #. type: textblock
5943 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5944 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5945 msgstr ""
5946
5947 #. type: =item
5948 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5949 msgid "C<sha512>"
5950 msgstr "C<sha512>"
5951
5952 #. type: textblock
5953 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5954 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5955 msgstr ""
5956
5957 #. type: textblock
5958 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5959 msgid "The checksum is returned as a printable string."
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:670
5964 msgid "To get the checksum for a device, use L</checksum-device>."
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:672
5969 msgid "To get the checksums for many files, use L</checksums-out>."
5970 msgstr ""
5971
5972 #. type: =head2
5973 #: ../fish/guestfish-actions.pod:674
5974 msgid "checksum-device"
5975 msgstr "checksum-device"
5976
5977 #. type: verbatim
5978 #: ../fish/guestfish-actions.pod:676
5979 #, no-wrap
5980 msgid ""
5981 " checksum-device csumtype device\n"
5982 "\n"
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../fish/guestfish-actions.pod:678
5987 msgid ""
5988 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5989 "device named C<device>.  For the types of checksums supported see the L</"
5990 "checksum> command."
5991 msgstr ""
5992
5993 #. type: =head2
5994 #: ../fish/guestfish-actions.pod:682
5995 msgid "checksums-out"
5996 msgstr ""
5997
5998 #. type: verbatim
5999 #: ../fish/guestfish-actions.pod:684
6000 #, no-wrap
6001 msgid ""
6002 " checksums-out csumtype directory (sumsfile|-)\n"
6003 "\n"
6004 msgstr ""
6005
6006 #. type: textblock
6007 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6008 msgid ""
6009 "This command computes the checksums of all regular files in C<directory> and "
6010 "then emits a list of those checksums to the local output file C<sumsfile>."
6011 msgstr ""
6012
6013 #. type: textblock
6014 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6015 msgid ""
6016 "This can be used for verifying the integrity of a virtual machine.  However "
6017 "to be properly secure you should pay attention to the output of the checksum "
6018 "command (it uses the ones from GNU coreutils).  In particular when the "
6019 "filename is not printable, coreutils uses a special backslash syntax.  For "
6020 "more information, see the GNU coreutils info file."
6021 msgstr ""
6022
6023 #. type: =head2
6024 #: ../fish/guestfish-actions.pod:700
6025 msgid "chmod"
6026 msgstr "chmod"
6027
6028 #. type: verbatim
6029 #: ../fish/guestfish-actions.pod:702
6030 #, no-wrap
6031 msgid ""
6032 " chmod mode path\n"
6033 "\n"
6034 msgstr ""
6035
6036 #. type: textblock
6037 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6038 msgid ""
6039 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6040 "supported."
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6045 msgid ""
6046 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6047 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6048 "C<700>."
6049 msgstr ""
6050
6051 #. type: textblock
6052 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
6053 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
6054 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
6055 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
6056 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
6057 msgid "The mode actually set is affected by the umask."
6058 msgstr ""
6059
6060 #. type: =head2
6061 #: ../fish/guestfish-actions.pod:713
6062 msgid "chown"
6063 msgstr "chown"
6064
6065 #. type: verbatim
6066 #: ../fish/guestfish-actions.pod:715
6067 #, no-wrap
6068 msgid ""
6069 " chown owner group path\n"
6070 "\n"
6071 msgstr ""
6072
6073 #. type: textblock
6074 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6075 msgid "Change the file owner to C<owner> and group to C<group>."
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
6080 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
6081 msgid ""
6082 "Only numeric uid and gid are supported.  If you want to use names, you will "
6083 "need to locate and parse the password file yourself (Augeas support makes "
6084 "this relatively easy)."
6085 msgstr ""
6086
6087 #. type: =head2
6088 #: ../fish/guestfish-actions.pod:723
6089 msgid "command"
6090 msgstr ""
6091
6092 #. type: verbatim
6093 #: ../fish/guestfish-actions.pod:725
6094 #, no-wrap
6095 msgid ""
6096 " command 'arguments ...'\n"
6097 "\n"
6098 msgstr ""
6099
6100 #. type: textblock
6101 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6102 msgid ""
6103 "This call runs a command from the guest filesystem.  The filesystem must be "
6104 "mounted, and must contain a compatible operating system (ie. something "
6105 "Linux, with the same or compatible processor architecture)."
6106 msgstr ""
6107
6108 #. type: textblock
6109 #: ../fish/guestfish-actions.pod:732
6110 msgid ""
6111 "The single parameter is an argv-style list of arguments.  The first element "
6112 "is the name of the program to run.  Subsequent elements are parameters.  The "
6113 "list must be non-empty (ie. must contain a program name).  Note that the "
6114 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6115 msgstr ""
6116
6117 #. type: textblock
6118 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6119 msgid "The return value is anything printed to I<stdout> by the command."
6120 msgstr ""
6121
6122 #. type: textblock
6123 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6124 msgid ""
6125 "If the command returns a non-zero exit status, then this function returns an "
6126 "error message.  The error message string is the content of I<stderr> from "
6127 "the command."
6128 msgstr ""
6129
6130 #. type: textblock
6131 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6132 msgid ""
6133 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6134 "bin>.  If you require a program from another location, you should provide "
6135 "the full path in the first parameter."
6136 msgstr ""
6137
6138 #. type: textblock
6139 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6140 msgid ""
6141 "Shared libraries and data files required by the program must be available on "
6142 "filesystems which are mounted in the correct places.  It is the caller's "
6143 "responsibility to ensure all filesystems that are needed are mounted at the "
6144 "right locations."
6145 msgstr ""
6146
6147 #. type: =head2
6148 #: ../fish/guestfish-actions.pod:760
6149 msgid "command-lines"
6150 msgstr ""
6151
6152 #. type: verbatim
6153 #: ../fish/guestfish-actions.pod:762
6154 #, no-wrap
6155 msgid ""
6156 " command-lines 'arguments ...'\n"
6157 "\n"
6158 msgstr ""
6159
6160 #. type: textblock
6161 #: ../fish/guestfish-actions.pod:764
6162 msgid ""
6163 "This is the same as L</command>, but splits the result into a list of lines."
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:767
6168 msgid "See also: L</sh-lines>"
6169 msgstr ""
6170
6171 #. type: =head2
6172 #: ../fish/guestfish-actions.pod:772
6173 msgid "config"
6174 msgstr ""
6175
6176 #. type: verbatim
6177 #: ../fish/guestfish-actions.pod:774
6178 #, no-wrap
6179 msgid ""
6180 " config qemuparam qemuvalue\n"
6181 "\n"
6182 msgstr ""
6183
6184 #. type: textblock
6185 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6186 msgid ""
6187 "This can be used to add arbitrary qemu command line parameters of the form "
6188 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6189 "setting some parameters which would interfere with parameters that we use."
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6194 msgid "The first character of C<param> string must be a C<-> (dash)."
6195 msgstr ""
6196
6197 #. type: textblock
6198 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6199 msgid "C<value> can be NULL."
6200 msgstr ""
6201
6202 #. type: =head2
6203 #: ../fish/guestfish-actions.pod:785
6204 msgid "copy-size"
6205 msgstr ""
6206
6207 #. type: verbatim
6208 #: ../fish/guestfish-actions.pod:787
6209 #, no-wrap
6210 msgid ""
6211 " copy-size src dest size\n"
6212 "\n"
6213 msgstr ""
6214
6215 #. type: textblock
6216 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6217 msgid ""
6218 "This command copies exactly C<size> bytes from one source device or file "
6219 "C<src> to another destination device or file C<dest>."
6220 msgstr ""
6221
6222 #. type: textblock
6223 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6224 msgid ""
6225 "Note this will fail if the source is too short or if the destination is not "
6226 "large enough."
6227 msgstr ""
6228
6229 #. type: =head2
6230 #: ../fish/guestfish-actions.pod:795
6231 msgid "cp"
6232 msgstr "cp"
6233
6234 #. type: verbatim
6235 #: ../fish/guestfish-actions.pod:797
6236 #, no-wrap
6237 msgid ""
6238 " cp src dest\n"
6239 "\n"
6240 msgstr ""
6241
6242 #. type: textblock
6243 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6244 msgid ""
6245 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6246 "destination filename or destination directory."
6247 msgstr ""
6248
6249 #. type: =head2
6250 #: ../fish/guestfish-actions.pod:802
6251 msgid "cp-a"
6252 msgstr "cp-a"
6253
6254 #. type: verbatim
6255 #: ../fish/guestfish-actions.pod:804
6256 #, no-wrap
6257 msgid ""
6258 " cp-a src dest\n"
6259 "\n"
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6264 msgid ""
6265 "This copies a file or directory from C<src> to C<dest> recursively using the "
6266 "C<cp -a> command."
6267 msgstr ""
6268
6269 #. type: =head2
6270 #: ../fish/guestfish-actions.pod:809
6271 msgid "dd"
6272 msgstr "dd"
6273
6274 #. type: verbatim
6275 #: ../fish/guestfish-actions.pod:811
6276 #, no-wrap
6277 msgid ""
6278 " dd src dest\n"
6279 "\n"
6280 msgstr ""
6281
6282 #. type: textblock
6283 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6284 msgid ""
6285 "This command copies from one source device or file C<src> to another "
6286 "destination device or file C<dest>.  Normally you would use this to copy to "
6287 "or from a device or partition, for example to duplicate a filesystem."
6288 msgstr ""
6289
6290 #. type: textblock
6291 #: ../fish/guestfish-actions.pod:818
6292 msgid ""
6293 "If the destination is a device, it must be as large or larger than the "
6294 "source file or device, otherwise the copy will fail.  This command cannot do "
6295 "partial copies (see L</copy-size>)."
6296 msgstr ""
6297
6298 #. type: =head2
6299 #: ../fish/guestfish-actions.pod:822
6300 msgid "df"
6301 msgstr "df"
6302
6303 #. type: verbatim
6304 #: ../fish/guestfish-actions.pod:824
6305 #, no-wrap
6306 msgid ""
6307 " df\n"
6308 "\n"
6309 msgstr ""
6310 " df\n"
6311 "\n"
6312
6313 #. type: textblock
6314 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6315 msgid "This command runs the C<df> command to report disk space used."
6316 msgstr ""
6317
6318 #. type: textblock
6319 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6320 msgid ""
6321 "This command is mostly useful for interactive sessions.  It is I<not> "
6322 "intended that you try to parse the output string.  Use L</statvfs> from "
6323 "programs."
6324 msgstr ""
6325
6326 #. type: =head2
6327 #: ../fish/guestfish-actions.pod:832
6328 msgid "df-h"
6329 msgstr "df-h"
6330
6331 #. type: verbatim
6332 #: ../fish/guestfish-actions.pod:834
6333 #, no-wrap
6334 msgid ""
6335 " df-h\n"
6336 "\n"
6337 msgstr ""
6338 " df-h\n"
6339 "\n"
6340
6341 #. type: textblock
6342 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6343 msgid ""
6344 "This command runs the C<df -h> command to report disk space used in human-"
6345 "readable format."
6346 msgstr ""
6347
6348 #. type: =head2
6349 #: ../fish/guestfish-actions.pod:843
6350 msgid "dmesg"
6351 msgstr "dmesg"
6352
6353 #. type: verbatim
6354 #: ../fish/guestfish-actions.pod:845
6355 #, no-wrap
6356 msgid ""
6357 " dmesg\n"
6358 "\n"
6359 msgstr ""
6360 " dmesg\n"
6361 "\n"
6362
6363 #. type: textblock
6364 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6365 msgid ""
6366 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6367 "This is sometimes useful for extended debugging of problems."
6368 msgstr ""
6369
6370 #. type: textblock
6371 #: ../fish/guestfish-actions.pod:851
6372 msgid ""
6373 "Another way to get the same information is to enable verbose messages with "
6374 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6375 "before running the program."
6376 msgstr ""
6377
6378 #. type: =head2
6379 #: ../fish/guestfish-actions.pod:856
6380 msgid "download"
6381 msgstr "download"
6382
6383 #. type: verbatim
6384 #: ../fish/guestfish-actions.pod:858
6385 #, no-wrap
6386 msgid ""
6387 " download remotefilename (filename|-)\n"
6388 "\n"
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6393 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6394 msgid ""
6395 "Download file C<remotefilename> and save it as C<filename> on the local "
6396 "machine."
6397 msgstr ""
6398
6399 #. type: textblock
6400 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
6401 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
6402 msgid "C<filename> can also be a named pipe."
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../fish/guestfish-actions.pod:865
6407 msgid "See also L</upload>, L</cat>."
6408 msgstr ""
6409
6410 #. type: =head2
6411 #: ../fish/guestfish-actions.pod:869
6412 msgid "download-offset"
6413 msgstr "download-offset"
6414
6415 #. type: verbatim
6416 #: ../fish/guestfish-actions.pod:871
6417 #, no-wrap
6418 msgid ""
6419 " download-offset remotefilename (filename|-) offset size\n"
6420 "\n"
6421 msgstr ""
6422
6423 #. type: textblock
6424 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6425 msgid ""
6426 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6427 "region must be within the file or device)."
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:879
6432 msgid ""
6433 "Note that there is no limit on the amount of data that can be downloaded "
6434 "with this call, unlike with L</pread>, and this call always reads the full "
6435 "amount unless an error occurs."
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:884
6440 msgid "See also L</download>, L</pread>."
6441 msgstr ""
6442
6443 #. type: =head2
6444 #: ../fish/guestfish-actions.pod:888
6445 msgid "drop-caches"
6446 msgstr ""
6447
6448 #. type: verbatim
6449 #: ../fish/guestfish-actions.pod:890
6450 #, no-wrap
6451 msgid ""
6452 " drop-caches whattodrop\n"
6453 "\n"
6454 msgstr ""
6455
6456 #. type: textblock
6457 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6458 msgid ""
6459 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6460 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6461 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6462 msgstr ""
6463
6464 #. type: textblock
6465 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6466 msgid "Setting C<whattodrop> to 3 should drop everything."
6467 msgstr ""
6468
6469 #. type: textblock
6470 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6471 msgid ""
6472 "This automatically calls L<sync(2)> before the operation, so that the "
6473 "maximum guest memory is freed."
6474 msgstr ""
6475
6476 #. type: =head2
6477 #: ../fish/guestfish-actions.pod:902
6478 msgid "du"
6479 msgstr "du"
6480
6481 #. type: verbatim
6482 #: ../fish/guestfish-actions.pod:904
6483 #, no-wrap
6484 msgid ""
6485 " du path\n"
6486 "\n"
6487 msgstr ""
6488 " du шлях\n"
6489 "\n"
6490
6491 #. type: textblock
6492 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6493 msgid ""
6494 "This command runs the C<du -s> command to estimate file space usage for "
6495 "C<path>."
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6500 msgid ""
6501 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6502 "estimate includes the contents of the directory and all subdirectories "
6503 "(recursively)."
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6508 msgid ""
6509 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6510 msgstr ""
6511
6512 #. type: =head2
6513 #: ../fish/guestfish-actions.pod:916
6514 msgid "e2fsck-f"
6515 msgstr "e2fsck-f"
6516
6517 #. type: verbatim
6518 #: ../fish/guestfish-actions.pod:918
6519 #, no-wrap
6520 msgid ""
6521 " e2fsck-f device\n"
6522 "\n"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6527 msgid ""
6528 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6529 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6530 "clean (I<-f>)."
6531 msgstr ""
6532
6533 #. type: textblock
6534 #: ../fish/guestfish-actions.pod:924
6535 msgid ""
6536 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6537 "should use L</fsck>."
6538 msgstr ""
6539
6540 #. type: =head2
6541 #: ../fish/guestfish-actions.pod:927
6542 msgid "echo-daemon"
6543 msgstr ""
6544
6545 #. type: verbatim
6546 #: ../fish/guestfish-actions.pod:929
6547 #, no-wrap
6548 msgid ""
6549 " echo-daemon 'words ...'\n"
6550 "\n"
6551 msgstr ""
6552
6553 #. type: textblock
6554 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6555 msgid ""
6556 "This command concatenates the list of C<words> passed with single spaces "
6557 "between them and returns the resulting string."
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6562 msgid "You can use this command to test the connection through to the daemon."
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:936
6567 msgid "See also L</ping-daemon>."
6568 msgstr ""
6569
6570 #. type: =head2
6571 #: ../fish/guestfish-actions.pod:938
6572 msgid "egrep"
6573 msgstr "egrep"
6574
6575 #. type: verbatim
6576 #: ../fish/guestfish-actions.pod:940
6577 #, no-wrap
6578 msgid ""
6579 " egrep regex path\n"
6580 "\n"
6581 msgstr ""
6582
6583 #. type: textblock
6584 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6585 msgid ""
6586 "This calls the external C<egrep> program and returns the matching lines."
6587 msgstr ""
6588
6589 #. type: =head2
6590 #: ../fish/guestfish-actions.pod:948
6591 msgid "egrepi"
6592 msgstr "egrepi"
6593
6594 #. type: verbatim
6595 #: ../fish/guestfish-actions.pod:950
6596 #, no-wrap
6597 msgid ""
6598 " egrepi regex path\n"
6599 "\n"
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6604 msgid ""
6605 "This calls the external C<egrep -i> program and returns the matching lines."
6606 msgstr ""
6607
6608 #. type: =head2
6609 #: ../fish/guestfish-actions.pod:958
6610 msgid "equal"
6611 msgstr "equal"
6612
6613 #. type: verbatim
6614 #: ../fish/guestfish-actions.pod:960
6615 #, no-wrap
6616 msgid ""
6617 " equal file1 file2\n"
6618 "\n"
6619 msgstr ""
6620 " equal файл1 файл2\n"
6621 "\n"
6622
6623 #. type: textblock
6624 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6625 msgid ""
6626 "This compares the two files C<file1> and C<file2> and returns true if their "
6627 "content is exactly equal, or false otherwise."
6628 msgstr ""
6629
6630 #. type: textblock
6631 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6632 msgid "The external L<cmp(1)> program is used for the comparison."
6633 msgstr ""
6634
6635 #. type: =head2
6636 #: ../fish/guestfish-actions.pod:967
6637 msgid "exists"
6638 msgstr "exists"
6639
6640 #. type: verbatim
6641 #: ../fish/guestfish-actions.pod:969
6642 #, no-wrap
6643 msgid ""
6644 " exists path\n"
6645 "\n"
6646 msgstr ""
6647 " exists шлях\n"
6648 "\n"
6649
6650 #. type: textblock
6651 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6652 msgid ""
6653 "This returns C<true> if and only if there is a file, directory (or anything) "
6654 "with the given C<path> name."
6655 msgstr ""
6656
6657 #. type: textblock
6658 #: ../fish/guestfish-actions.pod:974
6659 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6660 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6661
6662 #. type: =head2
6663 #: ../fish/guestfish-actions.pod:976
6664 msgid "fallocate"
6665 msgstr "fallocate"
6666
6667 #. type: verbatim
6668 #: ../fish/guestfish-actions.pod:978
6669 #, no-wrap
6670 msgid ""
6671 " fallocate path len\n"
6672 "\n"
6673 msgstr ""
6674 " fallocate шлях довжина\n"
6675 "\n"
6676
6677 #. type: textblock
6678 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6679 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6680 msgid ""
6681 "This command preallocates a file (containing zero bytes) named C<path> of "
6682 "size C<len> bytes.  If the file exists already, it is overwritten."
6683 msgstr ""
6684
6685 #. type: textblock
6686 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6687 msgid ""
6688 "Do not confuse this with the guestfish-specific C<alloc> command which "
6689 "allocates a file in the host and attaches it as a device."
6690 msgstr ""
6691
6692 #. type: textblock
6693 #: ../fish/guestfish-actions.pod:988
6694 msgid ""
6695 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6696 "instead."
6697 msgstr ""
6698
6699 #. type: =head2
6700 #: ../fish/guestfish-actions.pod:995
6701 msgid "fallocate64"
6702 msgstr "fallocate64"
6703
6704 #. type: verbatim
6705 #: ../fish/guestfish-actions.pod:997
6706 #, no-wrap
6707 msgid ""
6708 " fallocate64 path len\n"
6709 "\n"
6710 msgstr ""
6711 " fallocate64 шлях довжина\n"
6712 "\n"
6713
6714 #. type: textblock
6715 #: ../fish/guestfish-actions.pod:1003
6716 msgid ""
6717 "Note that this call allocates disk blocks for the file.  To create a sparse "
6718 "file use L</truncate-size> instead."
6719 msgstr ""
6720
6721 #. type: textblock
6722 #: ../fish/guestfish-actions.pod:1006
6723 msgid ""
6724 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6725 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6726 "maximum size of files created through that call to 1GB."
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6731 msgid ""
6732 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6733 "commands which create a file in the host and attach it as a device."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:1015
6738 msgid "fgrep"
6739 msgstr "fgrep"
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:1017
6743 #, no-wrap
6744 msgid ""
6745 " fgrep pattern path\n"
6746 "\n"
6747 msgstr ""
6748 " fgrep шаблон шлях\n"
6749 "\n"
6750
6751 #. type: textblock
6752 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6753 msgid ""
6754 "This calls the external C<fgrep> program and returns the matching lines."
6755 msgstr ""
6756
6757 #. type: =head2
6758 #: ../fish/guestfish-actions.pod:1025
6759 msgid "fgrepi"
6760 msgstr "fgrepi"
6761
6762 #. type: verbatim
6763 #: ../fish/guestfish-actions.pod:1027
6764 #, no-wrap
6765 msgid ""
6766 " fgrepi pattern path\n"
6767 "\n"
6768 msgstr ""
6769 " fgrepi шаблон шлях\n"
6770 "\n"
6771
6772 #. type: textblock
6773 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6774 msgid ""
6775 "This calls the external C<fgrep -i> program and returns the matching lines."
6776 msgstr ""
6777
6778 #. type: =head2
6779 #: ../fish/guestfish-actions.pod:1035
6780 msgid "file"
6781 msgstr "file"
6782
6783 #. type: verbatim
6784 #: ../fish/guestfish-actions.pod:1037
6785 #, no-wrap
6786 msgid ""
6787 " file path\n"
6788 "\n"
6789 msgstr ""
6790 " file шлях\n"
6791 "\n"
6792
6793 #. type: textblock
6794 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6795 msgid ""
6796 "This call uses the standard L<file(1)> command to determine the type or "
6797 "contents of the file."
6798 msgstr ""
6799
6800 #. type: textblock
6801 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6802 msgid ""
6803 "This call will also transparently look inside various types of compressed "
6804 "file."
6805 msgstr ""
6806
6807 #. type: textblock
6808 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6809 msgid ""
6810 "The exact command which runs is C<file -zb path>.  Note in particular that "
6811 "the filename is not prepended to the output (the I<-b> option)."
6812 msgstr ""
6813
6814 #. type: textblock
6815 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6816 msgid ""
6817 "The output depends on the output of the underlying L<file(1)> command and it "
6818 "can change in future in ways beyond our control.  In other words, the output "
6819 "is not guaranteed by the ABI."
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:1053
6824 msgid ""
6825 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6826 "(etc), L</is-zero>."
6827 msgstr ""
6828
6829 #. type: =head2
6830 #: ../fish/guestfish-actions.pod:1056
6831 msgid "file-architecture"
6832 msgstr "file-architecture"
6833
6834 #. type: verbatim
6835 #: ../fish/guestfish-actions.pod:1058
6836 #, no-wrap
6837 msgid ""
6838 " file-architecture filename\n"
6839 "\n"
6840 msgstr ""
6841 " file-architecture назва_файла\n"
6842 "\n"
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6846 msgid ""
6847 "This detects the architecture of the binary C<filename>, and returns it if "
6848 "known."
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6853 msgid "Currently defined architectures are:"
6854 msgstr ""
6855
6856 #. type: =item
6857 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6858 msgid "\"i386\""
6859 msgstr "\"i386\""
6860
6861 #. type: textblock
6862 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6863 msgid ""
6864 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6865 "irrespective of the precise processor requirements of the binary."
6866 msgstr ""
6867
6868 #. type: =item
6869 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6870 msgid "\"x86_64\""
6871 msgstr "\"x86_64\""
6872
6873 #. type: textblock
6874 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6875 msgid "64 bit x86-64."
6876 msgstr ""
6877
6878 #. type: =item
6879 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6880 msgid "\"sparc\""
6881 msgstr ""
6882
6883 #. type: textblock
6884 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6885 msgid "32 bit SPARC."
6886 msgstr ""
6887
6888 #. type: =item
6889 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6890 msgid "\"sparc64\""
6891 msgstr ""
6892
6893 #. type: textblock
6894 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6895 msgid "64 bit SPARC V9 and above."
6896 msgstr ""
6897
6898 #. type: =item
6899 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6900 msgid "\"ia64\""
6901 msgstr "\"ia64\""
6902
6903 #. type: textblock
6904 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6905 msgid "Intel Itanium."
6906 msgstr "Intel Itanium."
6907
6908 #. type: =item
6909 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6910 msgid "\"ppc\""
6911 msgstr ""
6912
6913 #. type: textblock
6914 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6915 msgid "32 bit Power PC."
6916 msgstr ""
6917
6918 #. type: =item
6919 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6920 msgid "\"ppc64\""
6921 msgstr ""
6922
6923 #. type: textblock
6924 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6925 msgid "64 bit Power PC."
6926 msgstr ""
6927
6928 #. type: textblock
6929 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6930 msgid "Libguestfs may return other architecture strings in future."
6931 msgstr ""
6932
6933 #. type: textblock
6934 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6935 msgid "The function works on at least the following types of files:"
6936 msgstr ""
6937
6938 #. type: textblock
6939 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6940 msgid "many types of Un*x and Linux binary"
6941 msgstr ""
6942
6943 #. type: textblock
6944 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6945 msgid "many types of Un*x and Linux shared library"
6946 msgstr ""
6947
6948 #. type: textblock
6949 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6950 msgid "Windows Win32 and Win64 binaries"
6951 msgstr ""
6952
6953 #. type: textblock
6954 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6955 msgid "Windows Win32 and Win64 DLLs"
6956 msgstr ""
6957
6958 #. type: textblock
6959 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6960 msgid "Win32 binaries and DLLs return C<i386>."
6961 msgstr ""
6962
6963 #. type: textblock
6964 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6965 msgid "Win64 binaries and DLLs return C<x86_64>."
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6970 msgid "Linux kernel modules"
6971 msgstr ""
6972
6973 #. type: textblock
6974 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6975 msgid "Linux new-style initrd images"
6976 msgstr ""
6977
6978 #. type: textblock
6979 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6980 msgid "some non-x86 Linux vmlinuz kernels"
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6985 msgid "What it can't do currently:"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6990 msgid "static libraries (libfoo.a)"
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6995 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6996 msgstr ""
6997
6998 #. type: textblock
6999 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
7000 msgid "x86 Linux vmlinuz kernels"
7001 msgstr ""
7002
7003 #. type: textblock
7004 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
7005 msgid ""
7006 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7007 "compressed code, and are horribly hard to unpack.  If you want to find the "
7008 "architecture of a kernel, use the architecture of the associated initrd or "
7009 "kernel module(s) instead."
7010 msgstr ""
7011
7012 #. type: =head2
7013 #: ../fish/guestfish-actions.pod:1161
7014 msgid "filesize"
7015 msgstr "filesize"
7016
7017 #. type: verbatim
7018 #: ../fish/guestfish-actions.pod:1163
7019 #, no-wrap
7020 msgid ""
7021 " filesize file\n"
7022 "\n"
7023 msgstr ""
7024 " filesize файл\n"
7025 "\n"
7026
7027 #. type: textblock
7028 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7029 msgid "This command returns the size of C<file> in bytes."
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1167
7034 msgid ""
7035 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7036 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7037 msgstr ""
7038
7039 #. type: =head2
7040 #: ../fish/guestfish-actions.pod:1171
7041 msgid "fill"
7042 msgstr "fill"
7043
7044 #. type: verbatim
7045 #: ../fish/guestfish-actions.pod:1173
7046 #, no-wrap
7047 msgid ""
7048 " fill c len path\n"
7049 "\n"
7050 msgstr ""
7051
7052 #. type: textblock
7053 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7054 msgid ""
7055 "This command creates a new file called C<path>.  The initial content of the "
7056 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7057 "[0..255]>."
7058 msgstr ""
7059
7060 #. type: textblock
7061 #: ../fish/guestfish-actions.pod:1179
7062 msgid ""
7063 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7064 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7065 "L</fill-pattern>."
7066 msgstr ""
7067
7068 #. type: =head2
7069 #: ../fish/guestfish-actions.pod:1184
7070 msgid "fill-pattern"
7071 msgstr "fill-pattern"
7072
7073 #. type: verbatim
7074 #: ../fish/guestfish-actions.pod:1186
7075 #, no-wrap
7076 msgid ""
7077 " fill-pattern pattern len path\n"
7078 "\n"
7079 msgstr ""
7080
7081 #. type: textblock
7082 #: ../fish/guestfish-actions.pod:1188
7083 msgid ""
7084 "This function is like L</fill> except that it creates a new file of length "
7085 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7086 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7087 "bytes."
7088 msgstr ""
7089
7090 #. type: =head2
7091 #: ../fish/guestfish-actions.pod:1193
7092 msgid "find"
7093 msgstr "find"
7094
7095 #. type: verbatim
7096 #: ../fish/guestfish-actions.pod:1195
7097 #, no-wrap
7098 msgid ""
7099 " find directory\n"
7100 "\n"
7101 msgstr ""
7102 " find каталог\n"
7103 "\n"
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7107 msgid ""
7108 "This command lists out all files and directories, recursively, starting at "
7109 "C<directory>.  It is essentially equivalent to running the shell command "
7110 "C<find directory -print> but some post-processing happens on the output, "
7111 "described below."
7112 msgstr ""
7113
7114 #. type: textblock
7115 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7116 msgid ""
7117 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7118 "structure was:"
7119 msgstr ""
7120
7121 #. type: verbatim
7122 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7123 #, no-wrap
7124 msgid ""
7125 " /tmp/a\n"
7126 " /tmp/b\n"
7127 " /tmp/c/d\n"
7128 "\n"
7129 msgstr ""
7130
7131 #. type: textblock
7132 #: ../fish/guestfish-actions.pod:1209
7133 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7134 msgstr ""
7135
7136 #. type: verbatim
7137 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7138 #, no-wrap
7139 msgid ""
7140 " a\n"
7141 " b\n"
7142 " c\n"
7143 " c/d\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7149 msgid "If C<directory> is not a directory, then this command returns an error."
7150 msgstr ""
7151
7152 #. type: textblock
7153 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7154 msgid "The returned list is sorted."
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:1222
7159 msgid "See also L</find0>."
7160 msgstr "Див. також L</find0>."
7161
7162 #. type: =head2
7163 #: ../fish/guestfish-actions.pod:1227
7164 msgid "find0"
7165 msgstr "find0"
7166
7167 #. type: verbatim
7168 #: ../fish/guestfish-actions.pod:1229
7169 #, no-wrap
7170 msgid ""
7171 " find0 directory (files|-)\n"
7172 "\n"
7173 msgstr ""
7174 " find0 каталог (файли|-)\n"
7175 "\n"
7176
7177 #. type: textblock
7178 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7179 msgid ""
7180 "This command lists out all files and directories, recursively, starting at "
7181 "C<directory>, placing the resulting list in the external file called "
7182 "C<files>."
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../fish/guestfish-actions.pod:1235
7187 msgid ""
7188 "This command works the same way as L</find> with the following exceptions:"
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7193 msgid "The resulting list is written to an external file."
7194 msgstr ""
7195
7196 #. type: textblock
7197 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7198 msgid ""
7199 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7200 "L<find(1)> option I<-print0>."
7201 msgstr ""
7202
7203 #. type: textblock
7204 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7205 msgid "This command is not limited in the number of names that it can return."
7206 msgstr ""
7207
7208 #. type: textblock
7209 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7210 msgid "The result list is not sorted."
7211 msgstr ""
7212
7213 #. type: =head2
7214 #: ../fish/guestfish-actions.pod:1262
7215 msgid "findfs-label"
7216 msgstr "findfs-label"
7217
7218 #. type: verbatim
7219 #: ../fish/guestfish-actions.pod:1264
7220 #, no-wrap
7221 msgid ""
7222 " findfs-label label\n"
7223 "\n"
7224 msgstr ""
7225 " findfs-label мітка\n"
7226 "\n"
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7230 msgid ""
7231 "This command searches the filesystems and returns the one which has the "
7232 "given label.  An error is returned if no such filesystem can be found."
7233 msgstr ""
7234
7235 #. type: textblock
7236 #: ../fish/guestfish-actions.pod:1270
7237 msgid "To find the label of a filesystem, use L</vfs-label>."
7238 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7239
7240 #. type: =head2
7241 #: ../fish/guestfish-actions.pod:1272
7242 msgid "findfs-uuid"
7243 msgstr "findfs-uuid"
7244
7245 #. type: verbatim
7246 #: ../fish/guestfish-actions.pod:1274
7247 #, no-wrap
7248 msgid ""
7249 " findfs-uuid uuid\n"
7250 "\n"
7251 msgstr ""
7252 " findfs-uuid uuid\n"
7253 "\n"
7254
7255 #. type: textblock
7256 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7257 msgid ""
7258 "This command searches the filesystems and returns the one which has the "
7259 "given UUID.  An error is returned if no such filesystem can be found."
7260 msgstr ""
7261
7262 #. type: textblock
7263 #: ../fish/guestfish-actions.pod:1280
7264 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7265 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7266
7267 #. type: =head2
7268 #: ../fish/guestfish-actions.pod:1282
7269 msgid "fsck"
7270 msgstr "fsck"
7271
7272 #. type: verbatim
7273 #: ../fish/guestfish-actions.pod:1284
7274 #, no-wrap
7275 msgid ""
7276 " fsck fstype device\n"
7277 "\n"
7278 msgstr ""
7279 " fsck тип_файлової_системи пристрій\n"
7280 "\n"
7281
7282 #. type: textblock
7283 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7284 msgid ""
7285 "This runs the filesystem checker (fsck) on C<device> which should have "
7286 "filesystem type C<fstype>."
7287 msgstr ""
7288
7289 #. type: textblock
7290 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7291 msgid ""
7292 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7293 "codes from C<fsck>."
7294 msgstr ""
7295
7296 #. type: textblock
7297 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7298 msgid "Multiple status codes can be summed together."
7299 msgstr ""
7300
7301 #. type: textblock
7302 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7303 msgid ""
7304 "A non-zero return code can mean \"success\", for example if errors have been "
7305 "corrected on the filesystem."
7306 msgstr ""
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7310 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7315 msgid ""
7316 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7317 msgstr ""
7318
7319 #. type: =head2
7320 #: ../fish/guestfish-actions.pod:1314
7321 msgid "get-append"
7322 msgstr "get-append"
7323
7324 #. type: verbatim
7325 #: ../fish/guestfish-actions.pod:1316
7326 #, no-wrap
7327 msgid ""
7328 " get-append\n"
7329 "\n"
7330 msgstr ""
7331 " get-append\n"
7332 "\n"
7333
7334 #. type: textblock
7335 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7336 msgid ""
7337 "Return the additional kernel options which are added to the guest kernel "
7338 "command line."
7339 msgstr ""
7340
7341 #. type: textblock
7342 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7343 msgid "If C<NULL> then no options are added."
7344 msgstr ""
7345
7346 #. type: =head2
7347 #: ../fish/guestfish-actions.pod:1323
7348 msgid "get-attach-method"
7349 msgstr "get-attach-method"
7350
7351 #. type: verbatim
7352 #: ../fish/guestfish-actions.pod:1325
7353 #, no-wrap
7354 msgid ""
7355 " get-attach-method\n"
7356 "\n"
7357 msgstr ""
7358 " get-attach-method\n"
7359 "\n"
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:1327
7363 msgid "Return the current attach method.  See L</set-attach-method>."
7364 msgstr ""
7365
7366 #. type: =head2
7367 #: ../fish/guestfish-actions.pod:1329
7368 msgid "get-autosync"
7369 msgstr "get-autosync"
7370
7371 #. type: verbatim
7372 #: ../fish/guestfish-actions.pod:1331
7373 #, no-wrap
7374 msgid ""
7375 " get-autosync\n"
7376 "\n"
7377 msgstr ""
7378 " get-autosync\n"
7379 "\n"
7380
7381 #. type: textblock
7382 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7383 msgid "Get the autosync flag."
7384 msgstr ""
7385
7386 #. type: =head2
7387 #: ../fish/guestfish-actions.pod:1335
7388 msgid "get-direct"
7389 msgstr "get-direct"
7390
7391 #. type: verbatim
7392 #: ../fish/guestfish-actions.pod:1337
7393 #, no-wrap
7394 msgid ""
7395 " get-direct\n"
7396 "\n"
7397 msgstr ""
7398 " get-direct\n"
7399 "\n"
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7403 msgid "Return the direct appliance mode flag."
7404 msgstr ""
7405
7406 #. type: =head2
7407 #: ../fish/guestfish-actions.pod:1341
7408 msgid "get-e2label"
7409 msgstr "get-e2label"
7410
7411 #. type: verbatim
7412 #: ../fish/guestfish-actions.pod:1343
7413 #, no-wrap
7414 msgid ""
7415 " get-e2label device\n"
7416 "\n"
7417 msgstr ""
7418 " get-e2label пристрій\n"
7419 "\n"
7420
7421 #. type: textblock
7422 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
7423 msgid ""
7424 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7425 msgstr ""
7426
7427 #. type: textblock
7428 #: ../fish/guestfish-actions.pod:1348
7429 msgid ""
7430 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7431 "instead."
7432 msgstr ""
7433
7434 #. type: =head2
7435 #: ../fish/guestfish-actions.pod:1355
7436 msgid "get-e2uuid"
7437 msgstr "get-e2uuid"
7438
7439 #. type: verbatim
7440 #: ../fish/guestfish-actions.pod:1357
7441 #, no-wrap
7442 msgid ""
7443 " get-e2uuid device\n"
7444 "\n"
7445 msgstr ""
7446 " get-e2uuid пристрій\n"
7447 "\n"
7448
7449 #. type: textblock
7450 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
7451 msgid ""
7452 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7453 msgstr ""
7454
7455 #. type: textblock
7456 #: ../fish/guestfish-actions.pod:1362
7457 msgid ""
7458 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7459 "instead."
7460 msgstr ""
7461
7462 #. type: =head2
7463 #: ../fish/guestfish-actions.pod:1369
7464 msgid "get-memsize"
7465 msgstr "get-memsize"
7466
7467 #. type: verbatim
7468 #: ../fish/guestfish-actions.pod:1371
7469 #, no-wrap
7470 msgid ""
7471 " get-memsize\n"
7472 "\n"
7473 msgstr ""
7474 " get-memsize\n"
7475 "\n"
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7479 msgid ""
7480 "This gets the memory size in megabytes allocated to the qemu subprocess."
7481 msgstr ""
7482
7483 #. type: textblock
7484 #: ../fish/guestfish-actions.pod:1376
7485 msgid ""
7486 "If L</set-memsize> was not called on this handle, and if "
7487 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7488 "value for memsize."
7489 msgstr ""
7490
7491 #. type: textblock
7492 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7493 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7494 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7495 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7496 msgid ""
7497 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7498 msgstr ""
7499
7500 #. type: =head2
7501 #: ../fish/guestfish-actions.pod:1383
7502 msgid "get-network"
7503 msgstr "get-network"
7504
7505 #. type: verbatim
7506 #: ../fish/guestfish-actions.pod:1385
7507 #, no-wrap
7508 msgid ""
7509 " get-network\n"
7510 "\n"
7511 msgstr ""
7512 " get-network\n"
7513 "\n"
7514
7515 #. type: textblock
7516 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7517 msgid "This returns the enable network flag."
7518 msgstr ""
7519
7520 #. type: =head2
7521 #: ../fish/guestfish-actions.pod:1389
7522 msgid "get-path"
7523 msgstr "get-path"
7524
7525 #. type: verbatim
7526 #: ../fish/guestfish-actions.pod:1391
7527 #, no-wrap
7528 msgid ""
7529 " get-path\n"
7530 "\n"
7531 msgstr ""
7532 " get-path\n"
7533 "\n"
7534
7535 #. type: textblock
7536 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7537 msgid "Return the current search path."
7538 msgstr ""
7539
7540 #. type: textblock
7541 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7542 msgid ""
7543 "This is always non-NULL.  If it wasn't set already, then this will return "
7544 "the default path."
7545 msgstr ""
7546
7547 #. type: =head2
7548 #: ../fish/guestfish-actions.pod:1398
7549 msgid "get-pgroup"
7550 msgstr ""
7551
7552 #. type: verbatim
7553 #: ../fish/guestfish-actions.pod:1400
7554 #, no-wrap
7555 msgid ""
7556 " get-pgroup\n"
7557 "\n"
7558 msgstr ""
7559
7560 #. type: textblock
7561 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7562 msgid "This returns the process group flag."
7563 msgstr ""
7564
7565 #. type: =head2
7566 #: ../fish/guestfish-actions.pod:1404
7567 msgid "get-pid"
7568 msgstr "get-pid"
7569
7570 #. type: =head2
7571 #: ../fish/guestfish-actions.pod:1406
7572 msgid "pid"
7573 msgstr ""
7574
7575 #. type: verbatim
7576 #: ../fish/guestfish-actions.pod:1408
7577 #, no-wrap
7578 msgid ""
7579 " get-pid\n"
7580 "\n"
7581 msgstr ""
7582 " get-pid\n"
7583 "\n"
7584
7585 #. type: textblock
7586 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7587 msgid ""
7588 "Return the process ID of the qemu subprocess.  If there is no qemu "
7589 "subprocess, then this will return an error."
7590 msgstr ""
7591
7592 #. type: textblock
7593 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7594 msgid "This is an internal call used for debugging and testing."
7595 msgstr ""
7596
7597 #. type: =head2
7598 #: ../fish/guestfish-actions.pod:1415
7599 msgid "get-qemu"
7600 msgstr "get-qemu"
7601
7602 #. type: verbatim
7603 #: ../fish/guestfish-actions.pod:1417
7604 #, no-wrap
7605 msgid ""
7606 " get-qemu\n"
7607 "\n"
7608 msgstr ""
7609 " get-qemu\n"
7610 "\n"
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7614 msgid "Return the current qemu binary."
7615 msgstr ""
7616
7617 #. type: textblock
7618 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7619 msgid ""
7620 "This is always non-NULL.  If it wasn't set already, then this will return "
7621 "the default qemu binary name."
7622 msgstr ""
7623
7624 #. type: =head2
7625 #: ../fish/guestfish-actions.pod:1424
7626 msgid "get-recovery-proc"
7627 msgstr "get-recovery-proc"
7628
7629 #. type: verbatim
7630 #: ../fish/guestfish-actions.pod:1426
7631 #, no-wrap
7632 msgid ""
7633 " get-recovery-proc\n"
7634 "\n"
7635 msgstr ""
7636 " get-recovery-proc\n"
7637 "\n"
7638
7639 #. type: textblock
7640 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7641 msgid "Return the recovery process enabled flag."
7642 msgstr ""
7643
7644 #. type: =head2
7645 #: ../fish/guestfish-actions.pod:1430
7646 msgid "get-selinux"
7647 msgstr "get-selinux"
7648
7649 #. type: verbatim
7650 #: ../fish/guestfish-actions.pod:1432
7651 #, no-wrap
7652 msgid ""
7653 " get-selinux\n"
7654 "\n"
7655 msgstr ""
7656 " get-selinux\n"
7657 "\n"
7658
7659 #. type: textblock
7660 #: ../fish/guestfish-actions.pod:1434
7661 msgid ""
7662 "This returns the current setting of the selinux flag which is passed to the "
7663 "appliance at boot time.  See L</set-selinux>."
7664 msgstr ""
7665
7666 #. type: =head2
7667 #: ../fish/guestfish-actions.pod:1440
7668 msgid "get-state"
7669 msgstr "get-state"
7670
7671 #. type: verbatim
7672 #: ../fish/guestfish-actions.pod:1442
7673 #, no-wrap
7674 msgid ""
7675 " get-state\n"
7676 "\n"
7677 msgstr ""
7678 " get-state\n"
7679 "\n"
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7683 msgid ""
7684 "This returns the current state as an opaque integer.  This is only useful "
7685 "for printing debug and internal error messages."
7686 msgstr ""
7687
7688 #. type: textblock
7689 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7690 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7691 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7692 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7693 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7694 msgid "For more information on states, see L<guestfs(3)>."
7695 msgstr ""
7696
7697 #. type: =head2
7698 #: ../fish/guestfish-actions.pod:1449
7699 msgid "get-trace"
7700 msgstr "get-trace"
7701
7702 #. type: verbatim
7703 #: ../fish/guestfish-actions.pod:1451
7704 #, no-wrap
7705 msgid ""
7706 " get-trace\n"
7707 "\n"
7708 msgstr ""
7709 " get-trace\n"
7710 "\n"
7711
7712 #. type: textblock
7713 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7714 msgid "Return the command trace flag."
7715 msgstr ""
7716
7717 #. type: =head2
7718 #: ../fish/guestfish-actions.pod:1455
7719 msgid "get-umask"
7720 msgstr "get-umask"
7721
7722 #. type: verbatim
7723 #: ../fish/guestfish-actions.pod:1457
7724 #, no-wrap
7725 msgid ""
7726 " get-umask\n"
7727 "\n"
7728 msgstr ""
7729 " get-umask\n"
7730 "\n"
7731
7732 #. type: textblock
7733 #: ../fish/guestfish-actions.pod:1459
7734 msgid ""
7735 "Return the current umask.  By default the umask is C<022> unless it has been "
7736 "set by calling L</umask>."
7737 msgstr ""
7738
7739 #. type: =head2
7740 #: ../fish/guestfish-actions.pod:1462
7741 msgid "get-verbose"
7742 msgstr "get-verbose"
7743
7744 #. type: verbatim
7745 #: ../fish/guestfish-actions.pod:1464
7746 #, no-wrap
7747 msgid ""
7748 " get-verbose\n"
7749 "\n"
7750 msgstr ""
7751 " get-verbose\n"
7752 "\n"
7753
7754 #. type: textblock
7755 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7756 msgid "This returns the verbose messages flag."
7757 msgstr ""
7758
7759 #. type: =head2
7760 #: ../fish/guestfish-actions.pod:1468
7761 msgid "getcon"
7762 msgstr "getcon"
7763
7764 #. type: verbatim
7765 #: ../fish/guestfish-actions.pod:1470
7766 #, no-wrap
7767 msgid ""
7768 " getcon\n"
7769 "\n"
7770 msgstr ""
7771 " getcon\n"
7772 "\n"
7773
7774 #. type: textblock
7775 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7776 msgid "This gets the SELinux security context of the daemon."
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../fish/guestfish-actions.pod:1474
7781 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7782 msgstr ""
7783
7784 #. type: =head2
7785 #: ../fish/guestfish-actions.pod:1477
7786 msgid "getxattr"
7787 msgstr "getxattr"
7788
7789 #. type: verbatim
7790 #: ../fish/guestfish-actions.pod:1479
7791 #, no-wrap
7792 msgid ""
7793 " getxattr path name\n"
7794 "\n"
7795 msgstr ""
7796 " getxattr шлях назва\n"
7797 "\n"
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1481
7801 msgid ""
7802 "Get a single extended attribute from file C<path> named C<name>.  This call "
7803 "follows symlinks.  If you want to lookup an extended attribute for the "
7804 "symlink itself, use L</lgetxattr>."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7809 msgid ""
7810 "Normally it is better to get all extended attributes from a file in one go "
7811 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7812 "buggy and do not provide a way to list out attributes.  For these "
7813 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7814 "attributes you want in advance and call this function."
7815 msgstr ""
7816
7817 #. type: textblock
7818 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7819 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7820 msgid ""
7821 "Extended attribute values are blobs of binary data.  If there is no extended "
7822 "attribute named C<name>, this returns an error."
7823 msgstr ""
7824
7825 #. type: textblock
7826 #: ../fish/guestfish-actions.pod:1495
7827 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7828 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7829
7830 #. type: =head2
7831 #: ../fish/guestfish-actions.pod:1497
7832 msgid "getxattrs"
7833 msgstr "getxattrs"
7834
7835 #. type: verbatim
7836 #: ../fish/guestfish-actions.pod:1499
7837 #, no-wrap
7838 msgid ""
7839 " getxattrs path\n"
7840 "\n"
7841 msgstr ""
7842 " getxattrs шлях\n"
7843 "\n"
7844
7845 #. type: textblock
7846 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7847 msgid ""
7848 "This call lists the extended attributes of the file or directory C<path>."
7849 msgstr ""
7850
7851 #. type: textblock
7852 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7853 msgid ""
7854 "At the system call level, this is a combination of the L<listxattr(2)> and "
7855 "L<getxattr(2)> calls."
7856 msgstr ""
7857
7858 #. type: textblock
7859 #: ../fish/guestfish-actions.pod:1507
7860 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7861 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7862
7863 #. type: =head2
7864 #: ../fish/guestfish-actions.pod:1509
7865 msgid "glob-expand"
7866 msgstr "glob-expand"
7867
7868 #. type: verbatim
7869 #: ../fish/guestfish-actions.pod:1511
7870 #, no-wrap
7871 msgid ""
7872 " glob-expand pattern\n"
7873 "\n"
7874 msgstr ""
7875 " glob-expand шаблон\n"
7876 "\n"
7877
7878 #. type: textblock
7879 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7880 msgid ""
7881 "This command searches for all the pathnames matching C<pattern> according to "
7882 "the wildcard expansion rules used by the shell."
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7887 msgid ""
7888 "If no paths match, then this returns an empty list (note: not an error)."
7889 msgstr ""
7890
7891 #. type: textblock
7892 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7893 msgid ""
7894 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7895 "GLOB_BRACE>.  See that manual page for more details."
7896 msgstr ""
7897
7898 #. type: =head2
7899 #: ../fish/guestfish-actions.pod:1524
7900 msgid "grep"
7901 msgstr "grep"
7902
7903 #. type: verbatim
7904 #: ../fish/guestfish-actions.pod:1526
7905 #, no-wrap
7906 msgid ""
7907 " grep regex path\n"
7908 "\n"
7909 msgstr ""
7910 " grepi формальний_вираз шлях\n"
7911 "\n"
7912
7913 #. type: textblock
7914 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7915 msgid "This calls the external C<grep> program and returns the matching lines."
7916 msgstr ""
7917
7918 #. type: =head2
7919 #: ../fish/guestfish-actions.pod:1534
7920 msgid "grepi"
7921 msgstr "grepi"
7922
7923 #. type: verbatim
7924 #: ../fish/guestfish-actions.pod:1536
7925 #, no-wrap
7926 msgid ""
7927 " grepi regex path\n"
7928 "\n"
7929 msgstr ""
7930 " grepi формальний_вираз шлях\n"
7931 "\n"
7932
7933 #. type: textblock
7934 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7935 msgid ""
7936 "This calls the external C<grep -i> program and returns the matching lines."
7937 msgstr ""
7938
7939 #. type: =head2
7940 #: ../fish/guestfish-actions.pod:1544
7941 msgid "grub-install"
7942 msgstr "grub-install"
7943
7944 #. type: verbatim
7945 #: ../fish/guestfish-actions.pod:1546
7946 #, no-wrap
7947 msgid ""
7948 " grub-install root device\n"
7949 "\n"
7950 msgstr ""
7951 " grub-install кореневий пристрій\n"
7952 "\n"
7953
7954 #. type: textblock
7955 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7956 msgid ""
7957 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7958 "the root directory being C<root>."
7959 msgstr ""
7960
7961 #. type: textblock
7962 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7963 msgid ""
7964 "Note: If grub-install reports the error \"No suitable drive was found in the "
7965 "generated device map.\" it may be that you need to create a C</boot/grub/"
7966 "device.map> file first that contains the mapping between grub device names "
7967 "and Linux device names.  It is usually sufficient to create a file "
7968 "containing:"
7969 msgstr ""
7970
7971 #. type: verbatim
7972 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7973 #, no-wrap
7974 msgid ""
7975 " (hd0) /dev/vda\n"
7976 "\n"
7977 msgstr ""
7978
7979 #. type: textblock
7980 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7981 msgid "replacing C</dev/vda> with the name of the installation device."
7982 msgstr ""
7983
7984 #. type: =head2
7985 #: ../fish/guestfish-actions.pod:1562
7986 msgid "head"
7987 msgstr "head"
7988
7989 #. type: verbatim
7990 #: ../fish/guestfish-actions.pod:1564
7991 #, no-wrap
7992 msgid ""
7993 " head path\n"
7994 "\n"
7995 msgstr ""
7996 " head шлях\n"
7997 "\n"
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
8001 msgid ""
8002 "This command returns up to the first 10 lines of a file as a list of strings."
8003 msgstr ""
8004
8005 #. type: =head2
8006 #: ../fish/guestfish-actions.pod:1572
8007 msgid "head-n"
8008 msgstr "head-n"
8009
8010 #. type: verbatim
8011 #: ../fish/guestfish-actions.pod:1574
8012 #, no-wrap
8013 msgid ""
8014 " head-n nrlines path\n"
8015 "\n"
8016 msgstr ""
8017
8018 #. type: textblock
8019 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
8020 msgid ""
8021 "If the parameter C<nrlines> is a positive number, this returns the first "
8022 "C<nrlines> lines of the file C<path>."
8023 msgstr ""
8024
8025 #. type: textblock
8026 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
8027 msgid ""
8028 "If the parameter C<nrlines> is a negative number, this returns lines from "
8029 "the file C<path>, excluding the last C<nrlines> lines."
8030 msgstr ""
8031
8032 #. type: textblock
8033 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
8034 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
8035 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8036 msgstr ""
8037
8038 #. type: =head2
8039 #: ../fish/guestfish-actions.pod:1587
8040 msgid "hexdump"
8041 msgstr "hexdump"
8042
8043 #. type: verbatim
8044 #: ../fish/guestfish-actions.pod:1589
8045 #, no-wrap
8046 msgid ""
8047 " hexdump path\n"
8048 "\n"
8049 msgstr ""
8050 " hexdump шлях\n"
8051 "\n"
8052
8053 #. type: textblock
8054 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
8055 msgid ""
8056 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8057 "readable, canonical hex dump of the file."
8058 msgstr ""
8059
8060 #. type: =head2
8061 #: ../fish/guestfish-actions.pod:1597
8062 msgid "initrd-cat"
8063 msgstr "initrd-cat"
8064
8065 #. type: verbatim
8066 #: ../fish/guestfish-actions.pod:1599
8067 #, no-wrap
8068 msgid ""
8069 " initrd-cat initrdpath filename\n"
8070 "\n"
8071 msgstr ""
8072 " initrd-cat шлях_initrd назва_файла\n"
8073 "\n"
8074
8075 #. type: textblock
8076 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
8077 msgid ""
8078 "This command unpacks the file C<filename> from the initrd file called "
8079 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8080 "character."
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
8085 msgid ""
8086 "For example, in guestfish you could use the following command to examine the "
8087 "boot script (usually called C</init>)  contained in a Linux initrd or "
8088 "initramfs image:"
8089 msgstr ""
8090
8091 #. type: verbatim
8092 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
8093 #, no-wrap
8094 msgid ""
8095 " initrd-cat /boot/initrd-<version>.img init\n"
8096 "\n"
8097 msgstr ""
8098
8099 #. type: textblock
8100 #: ../fish/guestfish-actions.pod:1611
8101 msgid "See also L</initrd-list>."
8102 msgstr "Див. також L</initrd-list>."
8103
8104 #. type: =head2
8105 #: ../fish/guestfish-actions.pod:1616
8106 msgid "initrd-list"
8107 msgstr "initrd-list"
8108
8109 #. type: verbatim
8110 #: ../fish/guestfish-actions.pod:1618
8111 #, no-wrap
8112 msgid ""
8113 " initrd-list path\n"
8114 "\n"
8115 msgstr ""
8116 " initrd-list шлях\n"
8117 "\n"
8118
8119 #. type: textblock
8120 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
8121 msgid "This command lists out files contained in an initrd."
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
8126 msgid ""
8127 "The files are listed without any initial C</> character.  The files are "
8128 "listed in the order they appear (not necessarily alphabetical).  Directory "
8129 "names are listed as separate items."
8130 msgstr ""
8131
8132 #. type: textblock
8133 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
8134 msgid ""
8135 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8136 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8137 "files)."
8138 msgstr ""
8139
8140 #. type: =head2
8141 #: ../fish/guestfish-actions.pod:1630
8142 msgid "inotify-add-watch"
8143 msgstr "inotify-add-watch"
8144
8145 #. type: verbatim
8146 #: ../fish/guestfish-actions.pod:1632
8147 #, no-wrap
8148 msgid ""
8149 " inotify-add-watch path mask\n"
8150 "\n"
8151 msgstr ""
8152 " inotify-add-watch шлях маска\n"
8153 "\n"
8154
8155 #. type: textblock
8156 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
8157 msgid "Watch C<path> for the events listed in C<mask>."
8158 msgstr ""
8159
8160 #. type: textblock
8161 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
8162 msgid ""
8163 "Note that if C<path> is a directory then events within that directory are "
8164 "watched, but this does I<not> happen recursively (in subdirectories)."
8165 msgstr ""
8166
8167 #. type: textblock
8168 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
8169 msgid ""
8170 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8171 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8172 msgstr ""
8173
8174 #. type: =head2
8175 #: ../fish/guestfish-actions.pod:1644
8176 msgid "inotify-close"
8177 msgstr "inotify-close"
8178
8179 #. type: verbatim
8180 #: ../fish/guestfish-actions.pod:1646
8181 #, no-wrap
8182 msgid ""
8183 " inotify-close\n"
8184 "\n"
8185 msgstr ""
8186 " inotify-close\n"
8187 "\n"
8188
8189 #. type: textblock
8190 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
8191 msgid ""
8192 "This closes the inotify handle which was previously opened by inotify_init.  "
8193 "It removes all watches, throws away any pending events, and deallocates all "
8194 "resources."
8195 msgstr ""
8196
8197 #. type: =head2
8198 #: ../fish/guestfish-actions.pod:1652
8199 msgid "inotify-files"
8200 msgstr "inotify-files"
8201
8202 #. type: verbatim
8203 #: ../fish/guestfish-actions.pod:1654
8204 #, no-wrap
8205 msgid ""
8206 " inotify-files\n"
8207 "\n"
8208 msgstr ""
8209 " inotify-files\n"
8210 "\n"
8211
8212 #. type: textblock
8213 #: ../fish/guestfish-actions.pod:1656
8214 msgid ""
8215 "This function is a helpful wrapper around L</inotify-read> which just "
8216 "returns a list of pathnames of objects that were touched.  The returned "
8217 "pathnames are sorted and deduplicated."
8218 msgstr ""
8219
8220 #. type: =head2
8221 #: ../fish/guestfish-actions.pod:1660
8222 msgid "inotify-init"
8223 msgstr "inotify-init"
8224
8225 #. type: verbatim
8226 #: ../fish/guestfish-actions.pod:1662
8227 #, no-wrap
8228 msgid ""
8229 " inotify-init maxevents\n"
8230 "\n"
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
8235 msgid ""
8236 "This command creates a new inotify handle.  The inotify subsystem can be "
8237 "used to notify events which happen to objects in the guest filesystem."
8238 msgstr ""
8239
8240 #. type: textblock
8241 #: ../fish/guestfish-actions.pod:1668
8242 msgid ""
8243 "C<maxevents> is the maximum number of events which will be queued up between "
8244 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8245 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8246 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8247 "but records the fact that it threw them away by setting a flag "
8248 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8249 msgstr ""
8250
8251 #. type: textblock
8252 #: ../fish/guestfish-actions.pod:1678
8253 msgid ""
8254 "Before any events are generated, you have to add some watches to the "
8255 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8256 "L</inotify-watch-all>."
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../fish/guestfish-actions.pod:1684
8261 msgid ""
8262 "Queued up events should be read periodically by calling L</inotify-read> (or "
8263 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8264 "If you don't read the events out often enough then you risk the internal "
8265 "queue overflowing."
8266 msgstr ""
8267
8268 #. type: textblock
8269 #: ../fish/guestfish-actions.pod:1691
8270 msgid ""
8271 "The handle should be closed after use by calling L</inotify-close>.  This "
8272 "also removes any watches automatically."
8273 msgstr ""
8274
8275 #. type: textblock
8276 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
8277 msgid ""
8278 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8279 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8280 "that there is one global inotify handle per libguestfs instance."
8281 msgstr ""
8282
8283 #. type: =head2
8284 #: ../fish/guestfish-actions.pod:1700
8285 msgid "inotify-read"
8286 msgstr "inotify-read"
8287
8288 #. type: verbatim
8289 #: ../fish/guestfish-actions.pod:1702
8290 #, no-wrap
8291 msgid ""
8292 " inotify-read\n"
8293 "\n"
8294 msgstr ""
8295 " inotify-read\n"
8296 "\n"
8297
8298 #. type: textblock
8299 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8300 msgid ""
8301 "Return the complete queue of events that have happened since the previous "
8302 "read call."
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
8307 msgid "If no events have happened, this returns an empty list."
8308 msgstr ""
8309
8310 #. type: textblock
8311 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
8312 msgid ""
8313 "I<Note>: In order to make sure that all events have been read, you must call "
8314 "this function repeatedly until it returns an empty list.  The reason is that "
8315 "the call will read events up to the maximum appliance-to-host message size "
8316 "and leave remaining events in the queue."
8317 msgstr ""
8318
8319 #. type: =head2
8320 #: ../fish/guestfish-actions.pod:1715
8321 msgid "inotify-rm-watch"
8322 msgstr "inotify-rm-watch"
8323
8324 #. type: verbatim
8325 #: ../fish/guestfish-actions.pod:1717
8326 #, no-wrap
8327 msgid ""
8328 " inotify-rm-watch wd\n"
8329 "\n"
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:1719
8334 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8335 msgstr ""
8336
8337 #. type: =head2
8338 #: ../fish/guestfish-actions.pod:1722
8339 msgid "inspect-get-arch"
8340 msgstr "inspect-get-arch"
8341
8342 #. type: verbatim
8343 #: ../fish/guestfish-actions.pod:1724
8344 #, no-wrap
8345 msgid ""
8346 " inspect-get-arch root\n"
8347 "\n"
8348 msgstr ""
8349 " inspect-get-arch корінь\n"
8350 "\n"
8351
8352 #. type: textblock
8353 #: ../fish/guestfish-actions.pod:1726
8354 msgid ""
8355 "This returns the architecture of the inspected operating system.  The "
8356 "possible return values are listed under L</file-architecture>."
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
8361 msgid ""
8362 "If the architecture could not be determined, then the string C<unknown> is "
8363 "returned."
8364 msgstr ""
8365
8366 #. type: textblock
8367 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
8368 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
8369 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
8370 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
8371 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
8372 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
8373 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
8374 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
8375 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
8376 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
8377 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
8378 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
8379 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
8380 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
8381 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
8382 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
8383 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
8384 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8385 msgstr ""
8386
8387 #. type: =head2
8388 #: ../fish/guestfish-actions.pod:1735
8389 msgid "inspect-get-distro"
8390 msgstr "inspect-get-distro"
8391
8392 #. type: verbatim
8393 #: ../fish/guestfish-actions.pod:1737
8394 #, no-wrap
8395 msgid ""
8396 " inspect-get-distro root\n"
8397 "\n"
8398 msgstr ""
8399 " inspect-get-distro корінь\n"
8400 "\n"
8401
8402 #. type: textblock
8403 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
8404 msgid ""
8405 "This returns the distro (distribution) of the inspected operating system."
8406 msgstr ""
8407
8408 #. type: textblock
8409 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
8410 msgid "Currently defined distros are:"
8411 msgstr ""
8412
8413 #. type: =item
8414 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
8415 msgid "\"archlinux\""
8416 msgstr "\"archlinux\""
8417
8418 #. type: textblock
8419 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
8420 msgid "Arch Linux."
8421 msgstr "Arch Linux."
8422
8423 #. type: =item
8424 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
8425 msgid "\"centos\""
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
8430 msgid "CentOS."
8431 msgstr ""
8432
8433 #. type: =item
8434 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
8435 msgid "\"debian\""
8436 msgstr "\"debian\""
8437
8438 #. type: textblock
8439 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
8440 msgid "Debian."
8441 msgstr "Debian."
8442
8443 #. type: =item
8444 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
8445 msgid "\"fedora\""
8446 msgstr "\"fedora\""
8447
8448 #. type: textblock
8449 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
8450 msgid "Fedora."
8451 msgstr "Fedora."
8452
8453 #. type: =item
8454 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
8455 msgid "\"gentoo\""
8456 msgstr "\"gentoo\""
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8460 msgid "Gentoo."
8461 msgstr "Gentoo."
8462
8463 #. type: =item
8464 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
8465 msgid "\"linuxmint\""
8466 msgstr "\"linuxmint\""
8467
8468 #. type: textblock
8469 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8470 msgid "Linux Mint."
8471 msgstr "Linux Mint."
8472
8473 #. type: =item
8474 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8475 msgid "\"mandriva\""
8476 msgstr "\"mandriva\""
8477
8478 #. type: textblock
8479 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8480 msgid "Mandriva."
8481 msgstr "Mandriva."
8482
8483 #. type: =item
8484 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8485 msgid "\"meego\""
8486 msgstr "\"meego\""
8487
8488 #. type: textblock
8489 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8490 msgid "MeeGo."
8491 msgstr "MeeGo."
8492
8493 #. type: =item
8494 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8495 msgid "\"pardus\""
8496 msgstr "\"pardus\""
8497
8498 #. type: textblock
8499 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8500 msgid "Pardus."
8501 msgstr "Pardus."
8502
8503 #. type: =item
8504 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8505 msgid "\"redhat-based\""
8506 msgstr "\"redhat-based\""
8507
8508 #. type: textblock
8509 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8510 msgid "Some Red Hat-derived distro."
8511 msgstr "Дистрибутив, що походить від Red Hat."
8512
8513 #. type: =item
8514 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8515 msgid "\"rhel\""
8516 msgstr "\"rhel\""
8517
8518 #. type: textblock
8519 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8520 msgid "Red Hat Enterprise Linux."
8521 msgstr ""
8522
8523 #. type: =item
8524 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8525 msgid "\"scientificlinux\""
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8530 msgid "Scientific Linux."
8531 msgstr ""
8532
8533 #. type: =item
8534 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8535 msgid "\"slackware\""
8536 msgstr ""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8540 msgid "Slackware."
8541 msgstr ""
8542
8543 #. type: =item
8544 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8545 msgid "\"ubuntu\""
8546 msgstr "\"ubuntu\""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8550 msgid "Ubuntu."
8551 msgstr "Ubuntu."
8552
8553 #. type: =item
8554 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8555 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8556 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8557 msgid "\"unknown\""
8558 msgstr "\"unknown\""
8559
8560 #. type: textblock
8561 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8562 msgid "The distro could not be determined."
8563 msgstr "Дистрибутив, тип якого не вдалося визначити."
8564
8565 #. type: =item
8566 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8567 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8568 msgid "\"windows\""
8569 msgstr "\"windows\""
8570
8571 #. type: textblock
8572 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8573 msgid ""
8574 "Windows does not have distributions.  This string is returned if the OS type "
8575 "is Windows."
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8580 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8581 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8582 msgid ""
8583 "Future versions of libguestfs may return other strings here.  The caller "
8584 "should be prepared to handle any string."
8585 msgstr ""
8586
8587 #. type: =head2
8588 #: ../fish/guestfish-actions.pod:1818
8589 msgid "inspect-get-drive-mappings"
8590 msgstr ""
8591
8592 #. type: verbatim
8593 #: ../fish/guestfish-actions.pod:1820
8594 #, no-wrap
8595 msgid ""
8596 " inspect-get-drive-mappings root\n"
8597 "\n"
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8602 msgid ""
8603 "This call is useful for Windows which uses a primitive system of assigning "
8604 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8605 "Windows Registry to find out how disks/partitions are mapped to drive "
8606 "letters, and returns a hash table as in the example below:"
8607 msgstr ""
8608
8609 #. type: verbatim
8610 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8611 #, no-wrap
8612 msgid ""
8613 " C      =>     /dev/vda2\n"
8614 " E      =>     /dev/vdb1\n"
8615 " F      =>     /dev/vdc1\n"
8616 "\n"
8617 msgstr ""
8618
8619 #. type: textblock
8620 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8621 msgid ""
8622 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8623 "and just contains the drive letter, without the customary colon separator "
8624 "character."
8625 msgstr ""
8626
8627 #. type: textblock
8628 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8629 msgid ""
8630 "In future we may support other operating systems that also used drive "
8631 "letters, but the keys for those might not be case insensitive and might be "
8632 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8633 "C<h1> etc."
8634 msgstr ""
8635
8636 #. type: textblock
8637 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8638 msgid ""
8639 "For Windows guests, currently only hard drive mappings are returned.  "
8640 "Removable disks (eg. DVD-ROMs) are ignored."
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8645 msgid ""
8646 "For guests that do not use drive mappings, or if the drive mappings could "
8647 "not be determined, this returns an empty hash table."
8648 msgstr ""
8649
8650 #. type: textblock
8651 #: ../fish/guestfish-actions.pod:1847
8652 msgid ""
8653 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8654 "get-mountpoints>, L</inspect-get-filesystems>."
8655 msgstr ""
8656
8657 #. type: =head2
8658 #: ../fish/guestfish-actions.pod:1851
8659 msgid "inspect-get-filesystems"
8660 msgstr "inspect-get-filesystems"
8661
8662 #. type: verbatim
8663 #: ../fish/guestfish-actions.pod:1853
8664 #, no-wrap
8665 msgid ""
8666 " inspect-get-filesystems root\n"
8667 "\n"
8668 msgstr ""
8669 " inspect-get-filesystems корінь\n"
8670 "\n"
8671
8672 #. type: textblock
8673 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8674 msgid ""
8675 "This returns a list of all the filesystems that we think are associated with "
8676 "this operating system.  This includes the root filesystem, other ordinary "
8677 "filesystems, and non-mounted devices like swap partitions."
8678 msgstr ""
8679
8680 #. type: textblock
8681 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8682 msgid ""
8683 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8684 "to be shared between operating systems."
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../fish/guestfish-actions.pod:1863
8689 msgid ""
8690 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8691 "get-mountpoints>."
8692 msgstr ""
8693
8694 #. type: =head2
8695 #: ../fish/guestfish-actions.pod:1866
8696 msgid "inspect-get-format"
8697 msgstr "inspect-get-format"
8698
8699 #. type: verbatim
8700 #: ../fish/guestfish-actions.pod:1868
8701 #, no-wrap
8702 msgid ""
8703 " inspect-get-format root\n"
8704 "\n"
8705 msgstr ""
8706 " inspect-get-format корінь\n"
8707 "\n"
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8711 msgid ""
8712 "This returns the format of the inspected operating system.  You can use it "
8713 "to detect install images, live CDs and similar."
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8718 msgid "Currently defined formats are:"
8719 msgstr ""
8720
8721 #. type: =item
8722 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8723 msgid "\"installed\""
8724 msgstr "\"installed\""
8725
8726 #. type: textblock
8727 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8728 msgid "This is an installed operating system."
8729 msgstr "Це встановлена операційна система."
8730
8731 #. type: =item
8732 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8733 msgid "\"installer\""
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8738 msgid ""
8739 "The disk image being inspected is not an installed operating system, but a "
8740 "I<bootable> install disk, live CD, or similar."
8741 msgstr ""
8742
8743 #. type: textblock
8744 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8745 msgid "The format of this disk image is not known."
8746 msgstr ""
8747
8748 #. type: =head2
8749 #: ../fish/guestfish-actions.pod:1897
8750 msgid "inspect-get-hostname"
8751 msgstr "inspect-get-hostname"
8752
8753 #. type: verbatim
8754 #: ../fish/guestfish-actions.pod:1899
8755 #, no-wrap
8756 msgid ""
8757 " inspect-get-hostname root\n"
8758 "\n"
8759 msgstr ""
8760 " inspect-get-hostname корінь\n"
8761 "\n"
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8765 msgid ""
8766 "This function returns the hostname of the operating system as found by "
8767 "inspection of the guest's configuration files."
8768 msgstr ""
8769
8770 #. type: textblock
8771 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8772 msgid ""
8773 "If the hostname could not be determined, then the string C<unknown> is "
8774 "returned."
8775 msgstr ""
8776
8777 #. type: =head2
8778 #: ../fish/guestfish-actions.pod:1909
8779 msgid "inspect-get-icon"
8780 msgstr ""
8781
8782 #. type: verbatim
8783 #: ../fish/guestfish-actions.pod:1911
8784 #, no-wrap
8785 msgid ""
8786 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8787 "\n"
8788 msgstr ""
8789
8790 #. type: textblock
8791 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8792 msgid ""
8793 "This function returns an icon corresponding to the inspected operating "
8794 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8795 "to PNG if necessary)."
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8800 msgid ""
8801 "If it was not possible to get an icon this function returns a zero-length "
8802 "(non-NULL) buffer.  I<Callers must check for this case>."
8803 msgstr ""
8804
8805 #. type: textblock
8806 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8807 msgid ""
8808 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8809 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8810 "this file will be returned.  You can disable favicons by passing the "
8811 "optional C<favicon> boolean as false (default is true)."
8812 msgstr ""
8813
8814 #. type: textblock
8815 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8816 msgid ""
8817 "If finding the favicon fails, then we look in other places in the guest for "
8818 "a suitable icon."
8819 msgstr ""
8820
8821 #. type: textblock
8822 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8823 msgid ""
8824 "If the optional C<highquality> boolean is true then only high quality icons "
8825 "are returned, which means only icons of high resolution with an alpha "
8826 "channel.  The default (false) is to return any icon we can, even if it is of "
8827 "substandard quality."
8828 msgstr ""
8829
8830 #. type: textblock
8831 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8832 msgid ""
8833 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8834 "before you call this, since it needs to read information from the guest "
8835 "filesystem during the call."
8836 msgstr ""
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8840 msgid ""
8841 "B<Security:> The icon data comes from the untrusted guest, and should be "
8842 "treated with caution.  PNG files have been known to contain exploits.  "
8843 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8844 "trying to process or display the icon."
8845 msgstr ""
8846
8847 #. type: textblock
8848 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8849 msgid ""
8850 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8851 "tries to return the largest, highest quality icon available.  The "
8852 "application must scale the icon to the required size."
8853 msgstr ""
8854
8855 #. type: textblock
8856 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8857 msgid ""
8858 "Extracting icons from Windows guests requires the external C<wrestool> "
8859 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8860 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8861 "installed separately."
8862 msgstr ""
8863
8864 #. type: textblock
8865 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8866 msgid ""
8867 "Operating system icons are usually trademarks.  Seek legal advice before "
8868 "using trademarks in applications."
8869 msgstr ""
8870
8871 #. type: =head2
8872 #: ../fish/guestfish-actions.pod:1975
8873 msgid "inspect-get-major-version"
8874 msgstr "inspect-get-major-version"
8875
8876 #. type: verbatim
8877 #: ../fish/guestfish-actions.pod:1977
8878 #, no-wrap
8879 msgid ""
8880 " inspect-get-major-version root\n"
8881 "\n"
8882 msgstr ""
8883 " inspect-get-major-version корінь\n"
8884 "\n"
8885
8886 #. type: textblock
8887 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8888 msgid ""
8889 "This returns the major version number of the inspected operating system."
8890 msgstr ""
8891
8892 #. type: textblock
8893 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8894 msgid ""
8895 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8896 "popular public names used by the operating system.  Notably the operating "
8897 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8898 "1).  You can find out the real versions corresponding to releases of Windows "
8899 "by consulting Wikipedia or MSDN."
8900 msgstr ""
8901
8902 #. type: textblock
8903 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8904 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8905 msgid "If the version could not be determined, then C<0> is returned."
8906 msgstr ""
8907
8908 #. type: =head2
8909 #: ../fish/guestfish-actions.pod:1993
8910 msgid "inspect-get-minor-version"
8911 msgstr "inspect-get-minor-version"
8912
8913 #. type: verbatim
8914 #: ../fish/guestfish-actions.pod:1995
8915 #, no-wrap
8916 msgid ""
8917 " inspect-get-minor-version root\n"
8918 "\n"
8919 msgstr ""
8920 " inspect-get-minor-version корінь\n"
8921 "\n"
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8925 msgid ""
8926 "This returns the minor version number of the inspected operating system."
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:2002
8931 msgid ""
8932 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8933 "get-major-version>."
8934 msgstr ""
8935
8936 #. type: =head2
8937 #: ../fish/guestfish-actions.pod:2005
8938 msgid "inspect-get-mountpoints"
8939 msgstr "inspect-get-mountpoints"
8940
8941 #. type: verbatim
8942 #: ../fish/guestfish-actions.pod:2007
8943 #, no-wrap
8944 msgid ""
8945 " inspect-get-mountpoints root\n"
8946 "\n"
8947 msgstr ""
8948 " inspect-get-mountpoints корінь\n"
8949 "\n"
8950
8951 #. type: textblock
8952 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8953 msgid ""
8954 "This returns a hash of where we think the filesystems associated with this "
8955 "operating system should be mounted.  Callers should note that this is at "
8956 "best an educated guess made by reading configuration files such as C</etc/"
8957 "fstab>.  I<In particular note> that this may return filesystems which are "
8958 "non-existent or not mountable and callers should be prepared to handle or "
8959 "ignore failures if they try to mount them."
8960 msgstr ""
8961
8962 #. type: textblock
8963 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8964 msgid ""
8965 "Each element in the returned hashtable has a key which is the path of the "
8966 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8967 "mounted there (eg. C</dev/sda1>)."
8968 msgstr ""
8969
8970 #. type: textblock
8971 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8972 msgid ""
8973 "Non-mounted devices such as swap devices are I<not> returned in this list."
8974 msgstr ""
8975
8976 #. type: textblock
8977 #: ../fish/guestfish-actions.pod:2026
8978 msgid ""
8979 "For operating systems like Windows which still use drive letters, this call "
8980 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8981 "information about the mapping of drive letters to partitions, see L</inspect-"
8982 "get-drive-mappings>."
8983 msgstr ""
8984
8985 #. type: textblock
8986 #: ../fish/guestfish-actions.pod:2032
8987 msgid ""
8988 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8989 "get-filesystems>."
8990 msgstr ""
8991
8992 #. type: =head2
8993 #: ../fish/guestfish-actions.pod:2035
8994 msgid "inspect-get-package-format"
8995 msgstr "inspect-get-package-format"
8996
8997 #. type: verbatim
8998 #: ../fish/guestfish-actions.pod:2037
8999 #, no-wrap
9000 msgid ""
9001 " inspect-get-package-format root\n"
9002 "\n"
9003 msgstr ""
9004 " inspect-get-package-format корінь\n"
9005 "\n"
9006
9007 #. type: textblock
9008 #: ../fish/guestfish-actions.pod:2039
9009 msgid ""
9010 "This function and L</inspect-get-package-management> return the package "
9011 "format and package management tool used by the inspected operating system.  "
9012 "For example for Fedora these functions would return C<rpm> (package format) "
9013 "and C<yum> (package management)."
9014 msgstr ""
9015
9016 #. type: textblock
9017 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
9018 msgid ""
9019 "This returns the string C<unknown> if we could not determine the package "
9020 "format I<or> if the operating system does not have a real packaging system "
9021 "(eg. Windows)."
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
9026 msgid ""
9027 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9028 "Future versions of libguestfs may return other strings."
9029 msgstr ""
9030
9031 #. type: =head2
9032 #: ../fish/guestfish-actions.pod:2054
9033 msgid "inspect-get-package-management"
9034 msgstr "inspect-get-package-management"
9035
9036 #. type: verbatim
9037 #: ../fish/guestfish-actions.pod:2056
9038 #, no-wrap
9039 msgid ""
9040 " inspect-get-package-management root\n"
9041 "\n"
9042 msgstr ""
9043 " inspect-get-package-management корінь\n"
9044 "\n"
9045
9046 #. type: textblock
9047 #: ../fish/guestfish-actions.pod:2058
9048 msgid ""
9049 "L</inspect-get-package-format> and this function return the package format "
9050 "and package management tool used by the inspected operating system.  For "
9051 "example for Fedora these functions would return C<rpm> (package format) and "
9052 "C<yum> (package management)."
9053 msgstr ""
9054
9055 #. type: textblock
9056 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
9057 msgid ""
9058 "This returns the string C<unknown> if we could not determine the package "
9059 "management tool I<or> if the operating system does not have a real packaging "
9060 "system (eg. Windows)."
9061 msgstr ""
9062
9063 #. type: textblock
9064 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
9065 msgid ""
9066 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9067 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9068 "libguestfs may return other strings."
9069 msgstr ""
9070
9071 #. type: =head2
9072 #: ../fish/guestfish-actions.pod:2075
9073 msgid "inspect-get-product-name"
9074 msgstr "inspect-get-product-name"
9075
9076 #. type: verbatim
9077 #: ../fish/guestfish-actions.pod:2077
9078 #, no-wrap
9079 msgid ""
9080 " inspect-get-product-name root\n"
9081 "\n"
9082 msgstr ""
9083 " inspect-get-product-name корінь\n"
9084 "\n"
9085
9086 #. type: textblock
9087 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9088 msgid ""
9089 "This returns the product name of the inspected operating system.  The "
9090 "product name is generally some freeform string which can be displayed to the "
9091 "user, but should not be parsed by programs."
9092 msgstr ""
9093
9094 #. type: textblock
9095 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
9096 msgid ""
9097 "If the product name could not be determined, then the string C<unknown> is "
9098 "returned."
9099 msgstr ""
9100
9101 #. type: =head2
9102 #: ../fish/guestfish-actions.pod:2089
9103 msgid "inspect-get-product-variant"
9104 msgstr ""
9105
9106 #. type: verbatim
9107 #: ../fish/guestfish-actions.pod:2091
9108 #, no-wrap
9109 msgid ""
9110 " inspect-get-product-variant root\n"
9111 "\n"
9112 msgstr ""
9113
9114 #. type: textblock
9115 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
9116 msgid "This returns the product variant of the inspected operating system."
9117 msgstr ""
9118
9119 #. type: textblock
9120 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
9121 msgid ""
9122 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9123 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9124 "is usually a string such as C<Client> or C<Server> (other values are "
9125 "possible).  This can be used to distinguish consumer and enterprise versions "
9126 "of Windows that have the same version number (for example, Windows 7 and "
9127 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9128 "the latter is C<Server>)."
9129 msgstr ""
9130
9131 #. type: textblock
9132 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
9133 msgid ""
9134 "For enterprise Linux guests, in future we intend this to return the product "
9135 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9136 "implemented at present."
9137 msgstr ""
9138
9139 #. type: textblock
9140 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
9141 msgid ""
9142 "If the product variant could not be determined, then the string C<unknown> "
9143 "is returned."
9144 msgstr ""
9145
9146 #. type: textblock
9147 #: ../fish/guestfish-actions.pod:2112
9148 msgid ""
9149 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9150 "get-product-name>, L</inspect-get-major-version>."
9151 msgstr ""
9152
9153 #. type: =head2
9154 #: ../fish/guestfish-actions.pod:2116
9155 msgid "inspect-get-roots"
9156 msgstr "inspect-get-roots"
9157
9158 #. type: verbatim
9159 #: ../fish/guestfish-actions.pod:2118
9160 #, no-wrap
9161 msgid ""
9162 " inspect-get-roots\n"
9163 "\n"
9164 msgstr ""
9165 " inspect-get-roots\n"
9166 "\n"
9167
9168 #. type: textblock
9169 #: ../fish/guestfish-actions.pod:2120
9170 msgid ""
9171 "This function is a convenient way to get the list of root devices, as "
9172 "returned from a previous call to L</inspect-os>, but without redoing the "
9173 "whole inspection process."
9174 msgstr ""
9175
9176 #. type: textblock
9177 #: ../fish/guestfish-actions.pod:2124
9178 msgid ""
9179 "This returns an empty list if either no root devices were found or the "
9180 "caller has not called L</inspect-os>."
9181 msgstr ""
9182
9183 #. type: =head2
9184 #: ../fish/guestfish-actions.pod:2129
9185 msgid "inspect-get-type"
9186 msgstr "inspect-get-type"
9187
9188 #. type: verbatim
9189 #: ../fish/guestfish-actions.pod:2131
9190 #, no-wrap
9191 msgid ""
9192 " inspect-get-type root\n"
9193 "\n"
9194 msgstr ""
9195 " inspect-get-type корінь\n"
9196 "\n"
9197
9198 #. type: textblock
9199 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9200 msgid ""
9201 "This returns the type of the inspected operating system.  Currently defined "
9202 "types are:"
9203 msgstr ""
9204
9205 #. type: =item
9206 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
9207 msgid "\"linux\""
9208 msgstr "\"linux\""
9209
9210 #. type: textblock
9211 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
9212 msgid "Any Linux-based operating system."
9213 msgstr ""
9214
9215 #. type: textblock
9216 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
9217 msgid "Any Microsoft Windows operating system."
9218 msgstr ""
9219
9220 #. type: =item
9221 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
9222 msgid "\"freebsd\""
9223 msgstr "\"freebsd\""
9224
9225 #. type: textblock
9226 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
9227 msgid "FreeBSD."
9228 msgstr "FreeBSD."
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
9232 msgid "The operating system type could not be determined."
9233 msgstr ""
9234
9235 #. type: =head2
9236 #: ../fish/guestfish-actions.pod:2161
9237 msgid "inspect-get-windows-current-control-set"
9238 msgstr ""
9239
9240 #. type: verbatim
9241 #: ../fish/guestfish-actions.pod:2163
9242 #, no-wrap
9243 msgid ""
9244 " inspect-get-windows-current-control-set root\n"
9245 "\n"
9246 msgstr ""
9247
9248 #. type: textblock
9249 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
9250 msgid ""
9251 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9252 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
9257 msgid ""
9258 "This call assumes that the guest is Windows and that the Registry could be "
9259 "examined by inspection.  If this is not the case then an error is returned."
9260 msgstr ""
9261
9262 #. type: =head2
9263 #: ../fish/guestfish-actions.pod:2174
9264 msgid "inspect-get-windows-systemroot"
9265 msgstr "inspect-get-windows-systemroot"
9266
9267 #. type: verbatim
9268 #: ../fish/guestfish-actions.pod:2176
9269 #, no-wrap
9270 msgid ""
9271 " inspect-get-windows-systemroot root\n"
9272 "\n"
9273 msgstr ""
9274 " inspect-get-windows-systemroot корінь\n"
9275 "\n"
9276
9277 #. type: textblock
9278 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
9279 msgid ""
9280 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9281 "is a directory path such as C</WINDOWS>."
9282 msgstr ""
9283
9284 #. type: textblock
9285 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
9286 msgid ""
9287 "This call assumes that the guest is Windows and that the systemroot could be "
9288 "determined by inspection.  If this is not the case then an error is returned."
9289 msgstr ""
9290
9291 #. type: =head2
9292 #: ../fish/guestfish-actions.pod:2187
9293 msgid "inspect-is-live"
9294 msgstr "inspect-is-live"
9295
9296 #. type: verbatim
9297 #: ../fish/guestfish-actions.pod:2189
9298 #, no-wrap
9299 msgid ""
9300 " inspect-is-live root\n"
9301 "\n"
9302 msgstr ""
9303 " inspect-is-live корінь\n"
9304 "\n"
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:2191
9308 msgid ""
9309 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9310 "then this returns true if a live image was detected on the disk."
9311 msgstr ""
9312
9313 #. type: =head2
9314 #: ../fish/guestfish-actions.pod:2197
9315 msgid "inspect-is-multipart"
9316 msgstr "inspect-is-multipart"
9317
9318 #. type: verbatim
9319 #: ../fish/guestfish-actions.pod:2199
9320 #, no-wrap
9321 msgid ""
9322 " inspect-is-multipart root\n"
9323 "\n"
9324 msgstr ""
9325 " inspect-is-multipart корінь\n"
9326 "\n"
9327
9328 #. type: textblock
9329 #: ../fish/guestfish-actions.pod:2201
9330 msgid ""
9331 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9332 "then this returns true if the disk is part of a set."
9333 msgstr ""
9334
9335 #. type: =head2
9336 #: ../fish/guestfish-actions.pod:2207
9337 msgid "inspect-is-netinst"
9338 msgstr "inspect-is-netinst"
9339
9340 #. type: verbatim
9341 #: ../fish/guestfish-actions.pod:2209
9342 #, no-wrap
9343 msgid ""
9344 " inspect-is-netinst root\n"
9345 "\n"
9346 msgstr ""
9347 " inspect-is-netinst корінь\n"
9348 "\n"
9349
9350 #. type: textblock
9351 #: ../fish/guestfish-actions.pod:2211
9352 msgid ""
9353 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9354 "then this returns true if the disk is a network installer, ie. not a self-"
9355 "contained install CD but one which is likely to require network access to "
9356 "complete the install."
9357 msgstr ""
9358
9359 #. type: =head2
9360 #: ../fish/guestfish-actions.pod:2219
9361 msgid "inspect-list-applications"
9362 msgstr "inspect-list-applications"
9363
9364 #. type: verbatim
9365 #: ../fish/guestfish-actions.pod:2221
9366 #, no-wrap
9367 msgid ""
9368 " inspect-list-applications root\n"
9369 "\n"
9370 msgstr ""
9371 " inspect-list-applications кореневий_каталог\n"
9372 "\n"
9373
9374 #. type: textblock
9375 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
9376 msgid "Return the list of applications installed in the operating system."
9377 msgstr ""
9378
9379 #. type: textblock
9380 #: ../fish/guestfish-actions.pod:2225
9381 msgid ""
9382 "I<Note:> This call works differently from other parts of the inspection "
9383 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9384 "then mount up the disks, before calling this.  Listing applications is a "
9385 "significantly more difficult operation which requires access to the full "
9386 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9387 "are just returning data cached in the libguestfs handle, this call actually "
9388 "reads parts of the mounted filesystems during the call."
9389 msgstr ""
9390
9391 #. type: textblock
9392 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
9393 msgid ""
9394 "This returns an empty list if the inspection code was not able to determine "
9395 "the list of applications."
9396 msgstr ""
9397
9398 #. type: textblock
9399 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
9400 msgid "The application structure contains the following fields:"
9401 msgstr ""
9402
9403 #. type: =item
9404 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9405 msgid "C<app_name>"
9406 msgstr "C<app_name>"
9407
9408 #. type: textblock
9409 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9410 msgid ""
9411 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9412 "guests, this is the package name."
9413 msgstr ""
9414
9415 #. type: =item
9416 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9417 msgid "C<app_display_name>"
9418 msgstr "C<app_display_name>"
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9422 msgid ""
9423 "The display name of the application, sometimes localized to the install "
9424 "language of the guest operating system."
9425 msgstr ""
9426
9427 #. type: textblock
9428 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9429 msgid ""
9430 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9431 "to display something can use C<app_name> instead."
9432 msgstr ""
9433
9434 #. type: =item
9435 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9436 msgid "C<app_epoch>"
9437 msgstr "C<app_epoch>"
9438
9439 #. type: textblock
9440 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9441 msgid ""
9442 "For package managers which use epochs, this contains the epoch of the "
9443 "package (an integer).  If unavailable, this is returned as C<0>."
9444 msgstr ""
9445
9446 #. type: =item
9447 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9448 msgid "C<app_version>"
9449 msgstr "C<app_version>"
9450
9451 #. type: textblock
9452 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9453 msgid ""
9454 "The version string of the application or package.  If unavailable this is "
9455 "returned as an empty string C<\"\">."
9456 msgstr ""
9457
9458 #. type: =item
9459 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
9460 msgid "C<app_release>"
9461 msgstr "C<app_release>"
9462
9463 #. type: textblock
9464 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
9465 msgid ""
9466 "The release string of the application or package, for package managers that "
9467 "use this.  If unavailable this is returned as an empty string C<\"\">."
9468 msgstr ""
9469
9470 #. type: =item
9471 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9472 msgid "C<app_install_path>"
9473 msgstr "C<app_install_path>"
9474
9475 #. type: textblock
9476 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9477 msgid ""
9478 "The installation path of the application (on operating systems such as "
9479 "Windows which use installation paths).  This path is in the format used by "
9480 "the guest operating system, it is not a libguestfs path."
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9485 msgid "If unavailable this is returned as an empty string C<\"\">."
9486 msgstr ""
9487
9488 #. type: =item
9489 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9490 msgid "C<app_trans_path>"
9491 msgstr "C<app_trans_path>"
9492
9493 #. type: textblock
9494 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9495 msgid ""
9496 "The install path translated into a libguestfs path.  If unavailable this is "
9497 "returned as an empty string C<\"\">."
9498 msgstr ""
9499
9500 #. type: =item
9501 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
9502 msgid "C<app_publisher>"
9503 msgstr "C<app_publisher>"
9504
9505 #. type: textblock
9506 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9507 msgid ""
9508 "The name of the publisher of the application, for package managers that use "
9509 "this.  If unavailable this is returned as an empty string C<\"\">."
9510 msgstr ""
9511
9512 #. type: =item
9513 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9514 msgid "C<app_url>"
9515 msgstr "C<app_url>"
9516
9517 #. type: textblock
9518 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9519 msgid ""
9520 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9521 "returned as an empty string C<\"\">."
9522 msgstr ""
9523
9524 #. type: =item
9525 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9526 msgid "C<app_source_package>"
9527 msgstr "C<app_source_package>"
9528
9529 #. type: textblock
9530 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9531 msgid ""
9532 "For packaging systems which support this, the name of the source package.  "
9533 "If unavailable this is returned as an empty string C<\"\">."
9534 msgstr ""
9535
9536 #. type: =item
9537 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9538 msgid "C<app_summary>"
9539 msgstr "C<app_summary>"
9540
9541 #. type: textblock
9542 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9543 msgid ""
9544 "A short (usually one line) description of the application or package.  If "
9545 "unavailable this is returned as an empty string C<\"\">."
9546 msgstr ""
9547
9548 #. type: =item
9549 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9550 msgid "C<app_description>"
9551 msgstr "C<app_description>"
9552
9553 #. type: textblock
9554 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9555 msgid ""
9556 "A longer description of the application or package.  If unavailable this is "
9557 "returned as an empty string C<\"\">."
9558 msgstr ""
9559
9560 #. type: =head2
9561 #: ../fish/guestfish-actions.pod:2315
9562 msgid "inspect-os"
9563 msgstr "inspect-os"
9564
9565 #. type: verbatim
9566 #: ../fish/guestfish-actions.pod:2317
9567 #, no-wrap
9568 msgid ""
9569 " inspect-os\n"
9570 "\n"
9571 msgstr ""
9572 " inspect-os\n"
9573 "\n"
9574
9575 #. type: textblock
9576 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9577 msgid ""
9578 "This function uses other libguestfs functions and certain heuristics to "
9579 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9580 "for operating systems."
9581 msgstr ""
9582
9583 #. type: textblock
9584 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9585 msgid "The list returned is empty if no operating systems were found."
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9590 msgid ""
9591 "If one operating system was found, then this returns a list with a single "
9592 "element, which is the name of the root filesystem of this operating system.  "
9593 "It is also possible for this function to return a list containing more than "
9594 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9595 "element being the root filesystem of one of the operating systems."
9596 msgstr ""
9597
9598 #. type: textblock
9599 #: ../fish/guestfish-actions.pod:2332
9600 msgid ""
9601 "You can pass the root string(s) returned to other L</inspect-get-*> "
9602 "functions in order to query further information about each operating system, "
9603 "such as the name and version."
9604 msgstr ""
9605
9606 #. type: textblock
9607 #: ../fish/guestfish-actions.pod:2337
9608 msgid ""
9609 "This function uses other libguestfs features such as L</mount-ro> and L</"
9610 "umount-all> in order to mount and unmount filesystems and look at the "
9611 "contents.  This should be called with no disks currently mounted.  The "
9612 "function may also use Augeas, so any existing Augeas handle will be closed."
9613 msgstr ""
9614
9615 #. type: textblock
9616 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9617 msgid ""
9618 "This function cannot decrypt encrypted disks.  The caller must do that first "
9619 "(supplying the necessary keys) if the disk is encrypted."
9620 msgstr ""
9621
9622 #. type: textblock
9623 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9624 #: ../fish/guestfish-actions.pod:2606
9625 msgid "See also L</list-filesystems>."
9626 msgstr "Див. також L</list-filesystems>."
9627
9628 #. type: =head2
9629 #: ../fish/guestfish-actions.pod:2351
9630 msgid "is-blockdev"
9631 msgstr "is-blockdev"
9632
9633 #. type: verbatim
9634 #: ../fish/guestfish-actions.pod:2353
9635 #, no-wrap
9636 msgid ""
9637 " is-blockdev path\n"
9638 "\n"
9639 msgstr ""
9640 " is-blockdev шлях\n"
9641 "\n"
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9645 msgid ""
9646 "This returns C<true> if and only if there is a block device with the given "
9647 "C<path> name."
9648 msgstr ""
9649
9650 #. type: textblock
9651 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9652 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9653 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9654 #: ../fish/guestfish-actions.pod:2457
9655 msgid "See also L</stat>."
9656 msgstr "Див. також L</stat>."
9657
9658 #. type: =head2
9659 #: ../fish/guestfish-actions.pod:2360
9660 msgid "is-busy"
9661 msgstr "is-busy"
9662
9663 #. type: verbatim
9664 #: ../fish/guestfish-actions.pod:2362
9665 #, no-wrap
9666 msgid ""
9667 " is-busy\n"
9668 "\n"
9669 msgstr ""
9670 " is-busy\n"
9671 "\n"
9672
9673 #. type: textblock
9674 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9675 msgid ""
9676 "This returns true iff this handle is busy processing a command (in the "
9677 "C<BUSY> state)."
9678 msgstr ""
9679
9680 #. type: =head2
9681 #: ../fish/guestfish-actions.pod:2369
9682 msgid "is-chardev"
9683 msgstr "is-chardev"
9684
9685 #. type: verbatim
9686 #: ../fish/guestfish-actions.pod:2371
9687 #, no-wrap
9688 msgid ""
9689 " is-chardev path\n"
9690 "\n"
9691 msgstr ""
9692 " is-chardev шлях\n"
9693 "\n"
9694
9695 #. type: textblock
9696 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9697 msgid ""
9698 "This returns C<true> if and only if there is a character device with the "
9699 "given C<path> name."
9700 msgstr ""
9701
9702 #. type: =head2
9703 #: ../fish/guestfish-actions.pod:2378
9704 msgid "is-config"
9705 msgstr "is-config"
9706
9707 #. type: verbatim
9708 #: ../fish/guestfish-actions.pod:2380
9709 #, no-wrap
9710 msgid ""
9711 " is-config\n"
9712 "\n"
9713 msgstr ""
9714 " is-config\n"
9715 "\n"
9716
9717 #. type: textblock
9718 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9719 msgid ""
9720 "This returns true iff this handle is being configured (in the C<CONFIG> "
9721 "state)."
9722 msgstr ""
9723
9724 #. type: =head2
9725 #: ../fish/guestfish-actions.pod:2387
9726 msgid "is-dir"
9727 msgstr "is-dir"
9728
9729 #. type: verbatim
9730 #: ../fish/guestfish-actions.pod:2389
9731 #, no-wrap
9732 msgid ""
9733 " is-dir path\n"
9734 "\n"
9735 msgstr ""
9736 " is-dir шлях\n"
9737 "\n"
9738
9739 #. type: textblock
9740 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9741 msgid ""
9742 "This returns C<true> if and only if there is a directory with the given "
9743 "C<path> name.  Note that it returns false for other objects like files."
9744 msgstr ""
9745
9746 #. type: =head2
9747 #: ../fish/guestfish-actions.pod:2397
9748 msgid "is-fifo"
9749 msgstr "is-fifo"
9750
9751 #. type: verbatim
9752 #: ../fish/guestfish-actions.pod:2399
9753 #, no-wrap
9754 msgid ""
9755 " is-fifo path\n"
9756 "\n"
9757 msgstr ""
9758 " is-fifo шлях\n"
9759 "\n"
9760
9761 #. type: textblock
9762 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9763 msgid ""
9764 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9765 "given C<path> name."
9766 msgstr ""
9767
9768 #. type: =head2
9769 #: ../fish/guestfish-actions.pod:2406
9770 msgid "is-file"
9771 msgstr "is-file"
9772
9773 #. type: verbatim
9774 #: ../fish/guestfish-actions.pod:2408
9775 #, no-wrap
9776 msgid ""
9777 " is-file path\n"
9778 "\n"
9779 msgstr ""
9780 " is-file шлях\n"
9781 "\n"
9782
9783 #. type: textblock
9784 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9785 msgid ""
9786 "This returns C<true> if and only if there is a regular file with the given "
9787 "C<path> name.  Note that it returns false for other objects like directories."
9788 msgstr ""
9789
9790 #. type: =head2
9791 #: ../fish/guestfish-actions.pod:2416
9792 msgid "is-launching"
9793 msgstr "is-launching"
9794
9795 #. type: verbatim
9796 #: ../fish/guestfish-actions.pod:2418
9797 #, no-wrap
9798 msgid ""
9799 " is-launching\n"
9800 "\n"
9801 msgstr ""
9802 " is-launching\n"
9803 "\n"
9804
9805 #. type: textblock
9806 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9807 msgid ""
9808 "This returns true iff this handle is launching the subprocess (in the "
9809 "C<LAUNCHING> state)."
9810 msgstr ""
9811
9812 #. type: =head2
9813 #: ../fish/guestfish-actions.pod:2425
9814 msgid "is-lv"
9815 msgstr "is-lv"
9816
9817 #. type: verbatim
9818 #: ../fish/guestfish-actions.pod:2427
9819 #, no-wrap
9820 msgid ""
9821 " is-lv device\n"
9822 "\n"
9823 msgstr ""
9824 " is-lv пристрій\n"
9825 "\n"
9826
9827 #. type: textblock
9828 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9829 msgid ""
9830 "This command tests whether C<device> is a logical volume, and returns true "
9831 "iff this is the case."
9832 msgstr ""
9833
9834 #. type: =head2
9835 #: ../fish/guestfish-actions.pod:2432
9836 msgid "is-ready"
9837 msgstr "is-ready"
9838
9839 #. type: verbatim
9840 #: ../fish/guestfish-actions.pod:2434
9841 #, no-wrap
9842 msgid ""
9843 " is-ready\n"
9844 "\n"
9845 msgstr ""
9846 " is-ready\n"
9847 "\n"
9848
9849 #. type: textblock
9850 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9851 msgid ""
9852 "This returns true iff this handle is ready to accept commands (in the "
9853 "C<READY> state)."
9854 msgstr ""
9855
9856 #. type: =head2
9857 #: ../fish/guestfish-actions.pod:2441
9858 msgid "is-socket"
9859 msgstr "is-socket"
9860
9861 #. type: verbatim
9862 #: ../fish/guestfish-actions.pod:2443
9863 #, no-wrap
9864 msgid ""
9865 " is-socket path\n"
9866 "\n"
9867 msgstr ""
9868 " is-socket шлях\n"
9869 "\n"
9870
9871 #. type: textblock
9872 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9873 msgid ""
9874 "This returns C<true> if and only if there is a Unix domain socket with the "
9875 "given C<path> name."
9876 msgstr ""
9877
9878 #. type: =head2
9879 #: ../fish/guestfish-actions.pod:2450
9880 msgid "is-symlink"
9881 msgstr "is-symlink"
9882
9883 #. type: verbatim
9884 #: ../fish/guestfish-actions.pod:2452
9885 #, no-wrap
9886 msgid ""
9887 " is-symlink path\n"
9888 "\n"
9889 msgstr ""
9890 " is-symlink шлях\n"
9891 "\n"
9892
9893 #. type: textblock
9894 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9895 msgid ""
9896 "This returns C<true> if and only if there is a symbolic link with the given "
9897 "C<path> name."
9898 msgstr ""
9899
9900 #. type: =head2
9901 #: ../fish/guestfish-actions.pod:2459
9902 msgid "is-zero"
9903 msgstr ""
9904
9905 #. type: verbatim
9906 #: ../fish/guestfish-actions.pod:2461
9907 #, no-wrap
9908 msgid ""
9909 " is-zero path\n"
9910 "\n"
9911 msgstr ""
9912
9913 #. type: textblock
9914 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9915 msgid ""
9916 "This returns true iff the file exists and the file is empty or it contains "
9917 "all zero bytes."
9918 msgstr ""
9919
9920 #. type: =head2
9921 #: ../fish/guestfish-actions.pod:2466
9922 msgid "is-zero-device"
9923 msgstr ""
9924
9925 #. type: verbatim
9926 #: ../fish/guestfish-actions.pod:2468
9927 #, no-wrap
9928 msgid ""
9929 " is-zero-device device\n"
9930 "\n"
9931 msgstr ""
9932
9933 #. type: textblock
9934 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9935 msgid "This returns true iff the device exists and contains all zero bytes."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9940 msgid "Note that for large devices this can take a long time to run."
9941 msgstr ""
9942
9943 #. type: =head2
9944 #: ../fish/guestfish-actions.pod:2474
9945 msgid "kill-subprocess"
9946 msgstr "kill-subprocess"
9947
9948 #. type: verbatim
9949 #: ../fish/guestfish-actions.pod:2476
9950 #, no-wrap
9951 msgid ""
9952 " kill-subprocess\n"
9953 "\n"
9954 msgstr ""
9955 " kill-subprocess\n"
9956 "\n"
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9960 msgid "This kills the qemu subprocess.  You should never need to call this."
9961 msgstr ""
9962
9963 #. type: =head2
9964 #: ../fish/guestfish-actions.pod:2480
9965 msgid "launch"
9966 msgstr "launch"
9967
9968 #. type: =head2
9969 #: ../fish/guestfish-actions.pod:2482
9970 msgid "run"
9971 msgstr ""
9972
9973 #. type: verbatim
9974 #: ../fish/guestfish-actions.pod:2484
9975 #, no-wrap
9976 msgid ""
9977 " launch\n"
9978 "\n"
9979 msgstr ""
9980 " launch\n"
9981 "\n"
9982
9983 #. type: textblock
9984 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9985 msgid ""
9986 "Internally libguestfs is implemented by running a virtual machine using "
9987 "L<qemu(1)>."
9988 msgstr ""
9989
9990 #. type: textblock
9991 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9992 msgid ""
9993 "You should call this after configuring the handle (eg. adding drives) but "
9994 "before performing any actions."
9995 msgstr ""
9996
9997 #. type: =head2
9998 #: ../fish/guestfish-actions.pod:2492
9999 msgid "lchown"
10000 msgstr "lchown"
10001
10002 #. type: verbatim
10003 #: ../fish/guestfish-actions.pod:2494
10004 #, no-wrap
10005 msgid ""
10006 " lchown owner group path\n"
10007 "\n"
10008 msgstr ""
10009 " lchown власник група шлях\n"
10010 "\n"
10011
10012 #. type: textblock
10013 #: ../fish/guestfish-actions.pod:2496
10014 msgid ""
10015 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10016 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10017 "target."
10018 msgstr ""
10019
10020 #. type: =head2
10021 #: ../fish/guestfish-actions.pod:2504
10022 msgid "lgetxattr"
10023 msgstr "lgetxattr"
10024
10025 #. type: verbatim
10026 #: ../fish/guestfish-actions.pod:2506
10027 #, no-wrap
10028 msgid ""
10029 " lgetxattr path name\n"
10030 "\n"
10031 msgstr ""
10032 " lgetxattr шлях назва\n"
10033 "\n"
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
10037 msgid ""
10038 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10039 "is a symlink, then this call returns an extended attribute from the symlink."
10040 msgstr ""
10041
10042 #. type: textblock
10043 #: ../fish/guestfish-actions.pod:2522
10044 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10045 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10046
10047 #. type: =head2
10048 #: ../fish/guestfish-actions.pod:2524
10049 msgid "lgetxattrs"
10050 msgstr "lgetxattrs"
10051
10052 #. type: verbatim
10053 #: ../fish/guestfish-actions.pod:2526
10054 #, no-wrap
10055 msgid ""
10056 " lgetxattrs path\n"
10057 "\n"
10058 msgstr ""
10059 " lgetxattrs шлях\n"
10060 "\n"
10061
10062 #. type: textblock
10063 #: ../fish/guestfish-actions.pod:2528
10064 msgid ""
10065 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10066 "it returns the extended attributes of the link itself."
10067 msgstr ""
10068
10069 #. type: =head2
10070 #: ../fish/guestfish-actions.pod:2532
10071 msgid "list-9p"
10072 msgstr ""
10073
10074 #. type: verbatim
10075 #: ../fish/guestfish-actions.pod:2534
10076 #, no-wrap
10077 msgid ""
10078 " list-9p\n"
10079 "\n"
10080 msgstr ""
10081
10082 #. type: textblock
10083 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
10084 msgid ""
10085 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10086 "returned."
10087 msgstr ""
10088
10089 #. type: =head2
10090 #: ../fish/guestfish-actions.pod:2539
10091 msgid "list-devices"
10092 msgstr "list-devices"
10093
10094 #. type: verbatim
10095 #: ../fish/guestfish-actions.pod:2541
10096 #, no-wrap
10097 msgid ""
10098 " list-devices\n"
10099 "\n"
10100 msgstr ""
10101 " list-devices\n"
10102 "\n"
10103
10104 #. type: textblock
10105 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
10106 msgid "List all the block devices."
10107 msgstr ""
10108
10109 #. type: textblock
10110 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
10111 msgid "The full block device names are returned, eg. C</dev/sda>."
10112 msgstr ""
10113
10114 #. type: =head2
10115 #: ../fish/guestfish-actions.pod:2549
10116 msgid "list-dm-devices"
10117 msgstr ""
10118
10119 #. type: verbatim
10120 #: ../fish/guestfish-actions.pod:2551
10121 #, no-wrap
10122 msgid ""
10123 " list-dm-devices\n"
10124 "\n"
10125 msgstr ""
10126
10127 #. type: textblock
10128 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
10129 msgid "List all device mapper devices."
10130 msgstr ""
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:2555
10134 msgid ""
10135 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10136 "previous call to L</luks-open>."
10137 msgstr ""
10138
10139 #. type: textblock
10140 #: ../fish/guestfish-actions.pod:2558
10141 msgid ""
10142 "Device mapper devices which correspond to logical volumes are I<not> "
10143 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10144 msgstr ""
10145
10146 #. type: =head2
10147 #: ../fish/guestfish-actions.pod:2562
10148 msgid "list-filesystems"
10149 msgstr "list-filesystems"
10150
10151 #. type: verbatim
10152 #: ../fish/guestfish-actions.pod:2564
10153 #, no-wrap
10154 msgid ""
10155 " list-filesystems\n"
10156 "\n"
10157 msgstr ""
10158 " list-filesystems\n"
10159 "\n"
10160
10161 #. type: textblock
10162 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
10163 msgid ""
10164 "This inspection command looks for filesystems on partitions, block devices "
10165 "and logical volumes, returning a list of devices containing filesystems and "
10166 "their type."
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
10171 msgid ""
10172 "The return value is a hash, where the keys are the devices containing "
10173 "filesystems, and the values are the filesystem types.  For example:"
10174 msgstr ""
10175
10176 #. type: verbatim
10177 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10178 #, no-wrap
10179 msgid ""
10180 " \"/dev/sda1\" => \"ntfs\"\n"
10181 " \"/dev/sda2\" => \"ext2\"\n"
10182 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10183 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10184 "\n"
10185 msgstr ""
10186
10187 #. type: textblock
10188 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
10189 msgid ""
10190 "The value can have the special value \"unknown\", meaning the content of the "
10191 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10192 msgstr ""
10193
10194 #. type: textblock
10195 #: ../fish/guestfish-actions.pod:2583
10196 msgid ""
10197 "This command runs other libguestfs commands, which might include L</mount> "
10198 "and L</umount>, and therefore you should use this soon after launch and only "
10199 "when nothing is mounted."
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../fish/guestfish-actions.pod:2587
10204 msgid ""
10205 "Not all of the filesystems returned will be mountable.  In particular, swap "
10206 "partitions are returned in the list.  Also this command does not check that "
10207 "each filesystem found is valid and mountable, and some filesystems might be "
10208 "mountable but require special options.  Filesystems may not all belong to a "
10209 "single logical operating system (use L</inspect-os> to look for OSes)."
10210 msgstr ""
10211
10212 #. type: =head2
10213 #: ../fish/guestfish-actions.pod:2595
10214 msgid "list-partitions"
10215 msgstr "list-partitions"
10216
10217 #. type: verbatim
10218 #: ../fish/guestfish-actions.pod:2597
10219 #, no-wrap
10220 msgid ""
10221 " list-partitions\n"
10222 "\n"
10223 msgstr ""
10224 " list-partitions\n"
10225 "\n"
10226
10227 #. type: textblock
10228 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
10229 msgid "List all the partitions detected on all block devices."
10230 msgstr ""
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
10234 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10235 msgstr ""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:2603
10239 msgid ""
10240 "This does not return logical volumes.  For that you will need to call L</"
10241 "lvs>."
10242 msgstr ""
10243
10244 #. type: =head2
10245 #: ../fish/guestfish-actions.pod:2608
10246 msgid "ll"
10247 msgstr "ll"
10248
10249 #. type: verbatim
10250 #: ../fish/guestfish-actions.pod:2610
10251 #, no-wrap
10252 msgid ""
10253 " ll directory\n"
10254 "\n"
10255 msgstr ""
10256 " ll каталог\n"
10257 "\n"
10258
10259 #. type: textblock
10260 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
10261 msgid ""
10262 "List the files in C<directory> (relative to the root directory, there is no "
10263 "cwd) in the format of 'ls -la'."
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
10268 msgid ""
10269 "This command is mostly useful for interactive sessions.  It is I<not> "
10270 "intended that you try to parse the output string."
10271 msgstr ""
10272
10273 #. type: =head2
10274 #: ../fish/guestfish-actions.pod:2618
10275 msgid "ln"
10276 msgstr "ln"
10277
10278 #. type: verbatim
10279 #: ../fish/guestfish-actions.pod:2620
10280 #, no-wrap
10281 msgid ""
10282 " ln target linkname\n"
10283 "\n"
10284 msgstr ""
10285 " ln призначення назва_посилання\n"
10286 "\n"
10287
10288 #. type: textblock
10289 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
10290 msgid "This command creates a hard link using the C<ln> command."
10291 msgstr ""
10292
10293 #. type: =head2
10294 #: ../fish/guestfish-actions.pod:2624
10295 msgid "ln-f"
10296 msgstr "ln-f"
10297
10298 #. type: verbatim
10299 #: ../fish/guestfish-actions.pod:2626
10300 #, no-wrap
10301 msgid ""
10302 " ln-f target linkname\n"
10303 "\n"
10304 msgstr ""
10305 " ln-f призначення назва_посилання\n"
10306 "\n"
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
10310 msgid ""
10311 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10312 "option removes the link (C<linkname>) if it exists already."
10313 msgstr ""
10314
10315 #. type: =head2
10316 #: ../fish/guestfish-actions.pod:2631
10317 msgid "ln-s"
10318 msgstr "ln-s"
10319
10320 #. type: verbatim
10321 #: ../fish/guestfish-actions.pod:2633
10322 #, no-wrap
10323 msgid ""
10324 " ln-s target linkname\n"
10325 "\n"
10326 msgstr ""
10327 " ln-s призначення назва_посилання\n"
10328 "\n"
10329
10330 #. type: textblock
10331 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
10332 msgid "This command creates a symbolic link using the C<ln -s> command."
10333 msgstr ""
10334
10335 #. type: =head2
10336 #: ../fish/guestfish-actions.pod:2637
10337 msgid "ln-sf"
10338 msgstr "ln-sf"
10339
10340 #. type: verbatim
10341 #: ../fish/guestfish-actions.pod:2639
10342 #, no-wrap
10343 msgid ""
10344 " ln-sf target linkname\n"
10345 "\n"
10346 msgstr ""
10347 " ln-sf призначення назва_посилання\n"
10348 "\n"
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
10352 msgid ""
10353 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10354 "option removes the link (C<linkname>) if it exists already."
10355 msgstr ""
10356
10357 #. type: =head2
10358 #: ../fish/guestfish-actions.pod:2644
10359 msgid "lremovexattr"
10360 msgstr "lremovexattr"
10361
10362 #. type: verbatim
10363 #: ../fish/guestfish-actions.pod:2646
10364 #, no-wrap
10365 msgid ""
10366 " lremovexattr xattr path\n"
10367 "\n"
10368 msgstr ""
10369
10370 #. type: textblock
10371 #: ../fish/guestfish-actions.pod:2648
10372 msgid ""
10373 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10374 "it removes an extended attribute of the link itself."
10375 msgstr ""
10376
10377 #. type: =head2
10378 #: ../fish/guestfish-actions.pod:2652
10379 msgid "ls"
10380 msgstr "ls"
10381
10382 #. type: verbatim
10383 #: ../fish/guestfish-actions.pod:2654
10384 #, no-wrap
10385 msgid ""
10386 " ls directory\n"
10387 "\n"
10388 msgstr ""
10389 " ls каталог\n"
10390 "\n"
10391
10392 #. type: textblock
10393 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
10394 msgid ""
10395 "List the files in C<directory> (relative to the root directory, there is no "
10396 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10397 msgstr ""
10398
10399 #. type: textblock
10400 #: ../fish/guestfish-actions.pod:2660
10401 msgid ""
10402 "This command is mostly useful for interactive sessions.  Programs should "
10403 "probably use L</readdir> instead."
10404 msgstr ""
10405
10406 #. type: =head2
10407 #: ../fish/guestfish-actions.pod:2663
10408 msgid "lsetxattr"
10409 msgstr "lsetxattr"
10410
10411 #. type: verbatim
10412 #: ../fish/guestfish-actions.pod:2665
10413 #, no-wrap
10414 msgid ""
10415 " lsetxattr xattr val vallen path\n"
10416 "\n"
10417 msgstr ""
10418
10419 #. type: textblock
10420 #: ../fish/guestfish-actions.pod:2667
10421 msgid ""
10422 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10423 "sets an extended attribute of the link itself."
10424 msgstr ""
10425
10426 #. type: =head2
10427 #: ../fish/guestfish-actions.pod:2671
10428 msgid "lstat"
10429 msgstr "lstat"
10430
10431 #. type: verbatim
10432 #: ../fish/guestfish-actions.pod:2673
10433 #, no-wrap
10434 msgid ""
10435 " lstat path\n"
10436 "\n"
10437 msgstr ""
10438 " lstat шлях\n"
10439 "\n"
10440
10441 #. type: textblock
10442 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
10443 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
10444 msgid "Returns file information for the given C<path>."
10445 msgstr ""
10446
10447 #. type: textblock
10448 #: ../fish/guestfish-actions.pod:2677
10449 msgid ""
10450 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10451 "the link is stat-ed, not the file it refers to."
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
10456 msgid "This is the same as the C<lstat(2)> system call."
10457 msgstr ""
10458
10459 #. type: =head2
10460 #: ../fish/guestfish-actions.pod:2683
10461 msgid "lstatlist"
10462 msgstr "lstatlist"
10463
10464 #. type: verbatim
10465 #: ../fish/guestfish-actions.pod:2685
10466 #, no-wrap
10467 msgid ""
10468 " lstatlist path 'names ...'\n"
10469 "\n"
10470 msgstr ""
10471
10472 #. type: textblock
10473 #: ../fish/guestfish-actions.pod:2687
10474 msgid ""
10475 "This call allows you to perform the L</lstat> operation on multiple files, "
10476 "where all files are in the directory C<path>.  C<names> is the list of files "
10477 "from this directory."
10478 msgstr ""
10479
10480 #. type: textblock
10481 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
10482 msgid ""
10483 "On return you get a list of stat structs, with a one-to-one correspondence "
10484 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10485 "then the C<ino> field of that structure is set to C<-1>."
10486 msgstr ""
10487
10488 #. type: textblock
10489 #: ../fish/guestfish-actions.pod:2696
10490 msgid ""
10491 "This call is intended for programs that want to efficiently list a directory "
10492 "contents without making many round-trips.  See also L</lxattrlist> for a "
10493 "similarly efficient call for getting extended attributes.  Very long "
10494 "directory listings might cause the protocol message size to be exceeded, "
10495 "causing this call to fail.  The caller must split up such requests into "
10496 "smaller groups of names."
10497 msgstr ""
10498
10499 #. type: =head2
10500 #: ../fish/guestfish-actions.pod:2704
10501 msgid "luks-add-key"
10502 msgstr "luks-add-key"
10503
10504 #. type: verbatim
10505 #: ../fish/guestfish-actions.pod:2706
10506 #, no-wrap
10507 msgid ""
10508 " luks-add-key device keyslot\n"
10509 "\n"
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
10514 msgid ""
10515 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10516 "existing key, and is used to access the device.  C<newkey> is the new key to "
10517 "add.  C<keyslot> is the key slot that will be replaced."
10518 msgstr ""
10519
10520 #. type: textblock
10521 #: ../fish/guestfish-actions.pod:2713
10522 msgid ""
10523 "Note that if C<keyslot> already contains a key, then this command will "
10524 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10525 msgstr ""
10526
10527 #. type: textblock
10528 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
10529 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
10530 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
10531 msgid ""
10532 "This command has one or more key or passphrase parameters.  Guestfish will "
10533 "prompt for these separately."
10534 msgstr ""
10535
10536 #. type: =head2
10537 #: ../fish/guestfish-actions.pod:2720
10538 msgid "luks-close"
10539 msgstr "luks-close"
10540
10541 #. type: verbatim
10542 #: ../fish/guestfish-actions.pod:2722
10543 #, no-wrap
10544 msgid ""
10545 " luks-close device\n"
10546 "\n"
10547 msgstr ""
10548 " luks-close пристрій\n"
10549 "\n"
10550
10551 #. type: textblock
10552 #: ../fish/guestfish-actions.pod:2724
10553 msgid ""
10554 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10555 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10556 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10557 "block device."
10558 msgstr ""
10559
10560 #. type: =head2
10561 #: ../fish/guestfish-actions.pod:2730
10562 msgid "luks-format"
10563 msgstr "luks-format"
10564
10565 #. type: verbatim
10566 #: ../fish/guestfish-actions.pod:2732
10567 #, no-wrap
10568 msgid ""
10569 " luks-format device keyslot\n"
10570 "\n"
10571 msgstr ""
10572
10573 #. type: textblock
10574 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
10575 msgid ""
10576 "This command erases existing data on C<device> and formats the device as a "
10577 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10578 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10579 msgstr ""
10580
10581 #. type: textblock
10582 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
10583 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
10584 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
10585 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
10586 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
10587 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
10588 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
10589 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580
10590 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
10591 msgid ""
10592 "B<This command is dangerous.  Without careful use you can easily destroy all "
10593 "your data>."
10594 msgstr ""
10595
10596 #. type: =head2
10597 #: ../fish/guestfish-actions.pod:2745
10598 msgid "luks-format-cipher"
10599 msgstr "luks-format-cipher"
10600
10601 #. type: verbatim
10602 #: ../fish/guestfish-actions.pod:2747
10603 #, no-wrap
10604 msgid ""
10605 " luks-format-cipher device keyslot cipher\n"
10606 "\n"
10607 msgstr ""
10608
10609 #. type: textblock
10610 #: ../fish/guestfish-actions.pod:2749
10611 msgid ""
10612 "This command is the same as L</luks-format> but it also allows you to set "
10613 "the C<cipher> used."
10614 msgstr ""
10615
10616 #. type: =head2
10617 #: ../fish/guestfish-actions.pod:2758
10618 msgid "luks-kill-slot"
10619 msgstr "luks-kill-slot"
10620
10621 #. type: verbatim
10622 #: ../fish/guestfish-actions.pod:2760
10623 #, no-wrap
10624 msgid ""
10625 " luks-kill-slot device keyslot\n"
10626 "\n"
10627 msgstr ""
10628
10629 #. type: textblock
10630 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10631 msgid ""
10632 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10633 "device C<device>.  C<key> must be one of the I<other> keys."
10634 msgstr ""
10635
10636 #. type: =head2
10637 #: ../fish/guestfish-actions.pod:2769
10638 msgid "luks-open"
10639 msgstr "luks-open"
10640
10641 #. type: verbatim
10642 #: ../fish/guestfish-actions.pod:2771
10643 #, no-wrap
10644 msgid ""
10645 " luks-open device mapname\n"
10646 "\n"
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10651 msgid ""
10652 "This command opens a block device which has been encrypted according to the "
10653 "Linux Unified Key Setup (LUKS) standard."
10654 msgstr ""
10655
10656 #. type: textblock
10657 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10658 msgid "C<device> is the encrypted block device or partition."
10659 msgstr ""
10660
10661 #. type: textblock
10662 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10663 msgid ""
10664 "The caller must supply one of the keys associated with the LUKS block "
10665 "device, in the C<key> parameter."
10666 msgstr ""
10667
10668 #. type: textblock
10669 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10670 msgid ""
10671 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10672 "writes to this block device are decrypted from and encrypted to the "
10673 "underlying C<device> respectively."
10674 msgstr ""
10675
10676 #. type: textblock
10677 #: ../fish/guestfish-actions.pod:2785
10678 msgid ""
10679 "If this block device contains LVM volume groups, then calling L</vgscan> "
10680 "followed by L</vg-activate-all> will make them visible."
10681 msgstr ""
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:2789
10685 msgid "Use L</list-dm-devices> to list all device mapper devices."
10686 msgstr ""
10687
10688 #. type: =head2
10689 #: ../fish/guestfish-actions.pod:2795
10690 msgid "luks-open-ro"
10691 msgstr "luks-open-ro"
10692
10693 #. type: verbatim
10694 #: ../fish/guestfish-actions.pod:2797
10695 #, no-wrap
10696 msgid ""
10697 " luks-open-ro device mapname\n"
10698 "\n"
10699 msgstr ""
10700
10701 #. type: textblock
10702 #: ../fish/guestfish-actions.pod:2799
10703 msgid ""
10704 "This is the same as L</luks-open> except that a read-only mapping is created."
10705 msgstr ""
10706
10707 #. type: =head2
10708 #: ../fish/guestfish-actions.pod:2805
10709 msgid "lvcreate"
10710 msgstr "lvcreate"
10711
10712 #. type: verbatim
10713 #: ../fish/guestfish-actions.pod:2807
10714 #, no-wrap
10715 msgid ""
10716 " lvcreate logvol volgroup mbytes\n"
10717 "\n"
10718 msgstr ""
10719
10720 #. type: textblock
10721 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10722 msgid ""
10723 "This creates an LVM logical volume called C<logvol> on the volume group "
10724 "C<volgroup>, with C<size> megabytes."
10725 msgstr ""
10726
10727 #. type: =head2
10728 #: ../fish/guestfish-actions.pod:2812
10729 msgid "lvm-canonical-lv-name"
10730 msgstr "lvm-canonical-lv-name"
10731
10732 #. type: verbatim
10733 #: ../fish/guestfish-actions.pod:2814
10734 #, no-wrap
10735 msgid ""
10736 " lvm-canonical-lv-name lvname\n"
10737 "\n"
10738 msgstr ""
10739
10740 #. type: textblock
10741 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10742 msgid ""
10743 "This converts alternative naming schemes for LVs that you might find to the "
10744 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10745 "LV>."
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10750 msgid ""
10751 "This command returns an error if the C<lvname> parameter does not refer to a "
10752 "logical volume."
10753 msgstr ""
10754
10755 #. type: textblock
10756 #: ../fish/guestfish-actions.pod:2823
10757 msgid "See also L</is-lv>."
10758 msgstr "Див. також L</is-lv>."
10759
10760 #. type: =head2
10761 #: ../fish/guestfish-actions.pod:2825
10762 msgid "lvm-clear-filter"
10763 msgstr "lvm-clear-filter"
10764
10765 #. type: verbatim
10766 #: ../fish/guestfish-actions.pod:2827
10767 #, no-wrap
10768 msgid ""
10769 " lvm-clear-filter\n"
10770 "\n"
10771 msgstr ""
10772 " lvm-clear-filter\n"
10773 "\n"
10774
10775 #. type: textblock
10776 #: ../fish/guestfish-actions.pod:2829
10777 msgid ""
10778 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10779 "block device."
10780 msgstr ""
10781
10782 #. type: textblock
10783 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10784 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10785 msgid ""
10786 "This command also clears the LVM cache and performs a volume group scan."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:2835
10791 msgid "lvm-remove-all"
10792 msgstr "lvm-remove-all"
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:2837
10796 #, no-wrap
10797 msgid ""
10798 " lvm-remove-all\n"
10799 "\n"
10800 msgstr ""
10801 " lvm-remove-all\n"
10802 "\n"
10803
10804 #. type: textblock
10805 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10806 msgid ""
10807 "This command removes all LVM logical volumes, volume groups and physical "
10808 "volumes."
10809 msgstr ""
10810
10811 #. type: =head2
10812 #: ../fish/guestfish-actions.pod:2845
10813 msgid "lvm-set-filter"
10814 msgstr "lvm-set-filter"
10815
10816 #. type: verbatim
10817 #: ../fish/guestfish-actions.pod:2847
10818 #, no-wrap
10819 msgid ""
10820 " lvm-set-filter 'devices ...'\n"
10821 "\n"
10822 msgstr ""
10823 " lvm-set-filter 'пристрої...'\n"
10824 "\n"
10825
10826 #. type: textblock
10827 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10828 msgid ""
10829 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10830 "block devices in the list C<devices>, and will ignore all other attached "
10831 "block devices."
10832 msgstr ""
10833
10834 #. type: textblock
10835 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10836 msgid ""
10837 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10838 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10839 "there are two types of duplication possible: either cloned PVs/VGs which "
10840 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10841 "same name.  In normal operation you cannot create this situation, but you "
10842 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10843 "inside the LVM metadata."
10844 msgstr ""
10845
10846 #. type: textblock
10847 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10848 msgid "You can filter whole block devices or individual partitions."
10849 msgstr ""
10850
10851 #. type: textblock
10852 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10853 msgid ""
10854 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10855 "filesystem), even if you are not filtering out that VG."
10856 msgstr ""
10857
10858 #. type: =head2
10859 #: ../fish/guestfish-actions.pod:2872
10860 msgid "lvremove"
10861 msgstr "lvremove"
10862
10863 #. type: verbatim
10864 #: ../fish/guestfish-actions.pod:2874
10865 #, no-wrap
10866 msgid ""
10867 " lvremove device\n"
10868 "\n"
10869 msgstr ""
10870 " lvremove пристрій\n"
10871 "\n"
10872
10873 #. type: textblock
10874 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10875 msgid ""
10876 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10877 "LV, such as C</dev/VG/LV>."
10878 msgstr ""
10879
10880 #. type: textblock
10881 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10882 msgid ""
10883 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10884 "dev/VG>."
10885 msgstr ""
10886
10887 #. type: =head2
10888 #: ../fish/guestfish-actions.pod:2882
10889 msgid "lvrename"
10890 msgstr "lvrename"
10891
10892 #. type: verbatim
10893 #: ../fish/guestfish-actions.pod:2884
10894 #, no-wrap
10895 msgid ""
10896 " lvrename logvol newlogvol\n"
10897 "\n"
10898 msgstr ""
10899
10900 #. type: textblock
10901 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10902 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10903 msgstr ""
10904
10905 #. type: =head2
10906 #: ../fish/guestfish-actions.pod:2888
10907 msgid "lvresize"
10908 msgstr "lvresize"
10909
10910 #. type: verbatim
10911 #: ../fish/guestfish-actions.pod:2890
10912 #, no-wrap
10913 msgid ""
10914 " lvresize device mbytes\n"
10915 "\n"
10916 msgstr ""
10917
10918 #. type: textblock
10919 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10920 msgid ""
10921 "This resizes (expands or shrinks) an existing LVM logical volume to "
10922 "C<mbytes>.  When reducing, data in the reduced part is lost."
10923 msgstr ""
10924
10925 #. type: =head2
10926 #: ../fish/guestfish-actions.pod:2896
10927 msgid "lvresize-free"
10928 msgstr "lvresize-free"
10929
10930 #. type: verbatim
10931 #: ../fish/guestfish-actions.pod:2898
10932 #, no-wrap
10933 msgid ""
10934 " lvresize-free lv percent\n"
10935 "\n"
10936 msgstr ""
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10940 msgid ""
10941 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10942 "remaining free space in the volume group.  Commonly you would call this with "
10943 "pc = 100 which expands the logical volume as much as possible, using all "
10944 "remaining free space in the volume group."
10945 msgstr ""
10946
10947 #. type: =head2
10948 #: ../fish/guestfish-actions.pod:2906
10949 msgid "lvs"
10950 msgstr "lvs"
10951
10952 #. type: verbatim
10953 #: ../fish/guestfish-actions.pod:2908
10954 #, no-wrap
10955 msgid ""
10956 " lvs\n"
10957 "\n"
10958 msgstr ""
10959 " lvs\n"
10960 "\n"
10961
10962 #. type: textblock
10963 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10964 msgid ""
10965 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10966 "(8)> command."
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10971 msgid ""
10972 "This returns a list of the logical volume device names (eg. C</dev/"
10973 "VolGroup00/LogVol00>)."
10974 msgstr ""
10975
10976 #. type: textblock
10977 #: ../fish/guestfish-actions.pod:2916
10978 msgid "See also L</lvs-full>, L</list-filesystems>."
10979 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10980
10981 #. type: =head2
10982 #: ../fish/guestfish-actions.pod:2918
10983 msgid "lvs-full"
10984 msgstr "lvs-full"
10985
10986 #. type: verbatim
10987 #: ../fish/guestfish-actions.pod:2920
10988 #, no-wrap
10989 msgid ""
10990 " lvs-full\n"
10991 "\n"
10992 msgstr ""
10993 " lvs-full\n"
10994 "\n"
10995
10996 #. type: textblock
10997 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10998 msgid ""
10999 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11000 "(8)> command.  The \"full\" version includes all fields."
11001 msgstr ""
11002
11003 #. type: =head2
11004 #: ../fish/guestfish-actions.pod:2925
11005 msgid "lvuuid"
11006 msgstr "lvuuid"
11007
11008 #. type: verbatim
11009 #: ../fish/guestfish-actions.pod:2927
11010 #, no-wrap
11011 msgid ""
11012 " lvuuid device\n"
11013 "\n"
11014 msgstr ""
11015 " lvuuid пристрій\n"
11016 "\n"
11017
11018 #. type: textblock
11019 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
11020 msgid "This command returns the UUID of the LVM LV C<device>."
11021 msgstr ""
11022
11023 #. type: =head2
11024 #: ../fish/guestfish-actions.pod:2931
11025 msgid "lxattrlist"
11026 msgstr "lxattrlist"
11027
11028 #. type: verbatim
11029 #: ../fish/guestfish-actions.pod:2933
11030 #, no-wrap
11031 msgid ""
11032 " lxattrlist path 'names ...'\n"
11033 "\n"
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
11038 msgid ""
11039 "This call allows you to get the extended attributes of multiple files, where "
11040 "all files are in the directory C<path>.  C<names> is the list of files from "
11041 "this directory."
11042 msgstr ""
11043
11044 #. type: textblock
11045 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
11046 msgid ""
11047 "On return you get a flat list of xattr structs which must be interpreted "
11048 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11049 "C<attrval> in this struct is zero-length to indicate there was an error "
11050 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11051 "number (the number of following attributes for this file, which could be C<"
11052 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11053 "for the first named file.  This repeats for the second and subsequent files."
11054 msgstr ""
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:2949
11058 msgid ""
11059 "This call is intended for programs that want to efficiently list a directory "
11060 "contents without making many round-trips.  See also L</lstatlist> for a "
11061 "similarly efficient call for getting standard stats.  Very long directory "
11062 "listings might cause the protocol message size to be exceeded, causing this "
11063 "call to fail.  The caller must split up such requests into smaller groups of "
11064 "names."
11065 msgstr ""
11066
11067 #. type: =head2
11068 #: ../fish/guestfish-actions.pod:2957
11069 msgid "mkdir"
11070 msgstr "mkdir"
11071
11072 #. type: verbatim
11073 #: ../fish/guestfish-actions.pod:2959
11074 #, no-wrap
11075 msgid ""
11076 " mkdir path\n"
11077 "\n"
11078 msgstr ""
11079 " mkdir шлях\n"
11080 "\n"
11081
11082 #. type: textblock
11083 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
11084 msgid "Create a directory named C<path>."
11085 msgstr ""
11086
11087 #. type: =head2
11088 #: ../fish/guestfish-actions.pod:2963
11089 msgid "mkdir-mode"
11090 msgstr "mkdir-mode"
11091
11092 #. type: verbatim
11093 #: ../fish/guestfish-actions.pod:2965
11094 #, no-wrap
11095 msgid ""
11096 " mkdir-mode path mode\n"
11097 "\n"
11098 msgstr ""
11099 " mkdir-mode шлях режим\n"
11100 "\n"
11101
11102 #. type: textblock
11103 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
11104 msgid ""
11105 "This command creates a directory, setting the initial permissions of the "
11106 "directory to C<mode>."
11107 msgstr ""
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
11111 msgid ""
11112 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11113 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11114 "other ways."
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:2974
11119 msgid "See also L</mkdir>, L</umask>"
11120 msgstr "Див. також L</mkdir>, L</umask>"
11121
11122 #. type: =head2
11123 #: ../fish/guestfish-actions.pod:2976
11124 msgid "mkdir-p"
11125 msgstr "mkdir-p"
11126
11127 #. type: verbatim
11128 #: ../fish/guestfish-actions.pod:2978
11129 #, no-wrap
11130 msgid ""
11131 " mkdir-p path\n"
11132 "\n"
11133 msgstr ""
11134 " mkdir-p шлях\n"
11135 "\n"
11136
11137 #. type: textblock
11138 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
11139 msgid ""
11140 "Create a directory named C<path>, creating any parent directories as "
11141 "necessary.  This is like the C<mkdir -p> shell command."
11142 msgstr ""
11143
11144 #. type: =head2
11145 #: ../fish/guestfish-actions.pod:2983
11146 msgid "mkdtemp"
11147 msgstr "mkdtemp"
11148
11149 #. type: verbatim
11150 #: ../fish/guestfish-actions.pod:2985
11151 #, no-wrap
11152 msgid ""
11153 " mkdtemp template\n"
11154 "\n"
11155 msgstr ""
11156 " mkdtemp шаблон\n"
11157 "\n"
11158
11159 #. type: textblock
11160 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11161 msgid ""
11162 "This command creates a temporary directory.  The C<template> parameter "
11163 "should be a full pathname for the temporary directory name with the final "
11164 "six characters being \"XXXXXX\"."
11165 msgstr ""
11166
11167 #. type: textblock
11168 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
11169 msgid ""
11170 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11171 "being suitable for Windows filesystems."
11172 msgstr ""
11173
11174 #. type: textblock
11175 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
11176 msgid "The name of the temporary directory that was created is returned."
11177 msgstr ""
11178
11179 #. type: textblock
11180 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
11181 msgid "The temporary directory is created with mode 0700 and is owned by root."
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
11186 msgid ""
11187 "The caller is responsible for deleting the temporary directory and its "
11188 "contents after use."
11189 msgstr ""
11190
11191 #. type: textblock
11192 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
11193 msgid "See also: L<mkdtemp(3)>"
11194 msgstr ""
11195
11196 #. type: =head2
11197 #: ../fish/guestfish-actions.pod:3006
11198 msgid "mke2fs-J"
11199 msgstr "mke2fs-J"
11200
11201 #. type: verbatim
11202 #: ../fish/guestfish-actions.pod:3008
11203 #, no-wrap
11204 msgid ""
11205 " mke2fs-J fstype blocksize device journal\n"
11206 "\n"
11207 msgstr ""
11208
11209 #. type: textblock
11210 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
11211 msgid ""
11212 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11213 "C<journal>.  It is equivalent to the command:"
11214 msgstr ""
11215
11216 #. type: verbatim
11217 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
11218 #, no-wrap
11219 msgid ""
11220 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11221 "\n"
11222 msgstr ""
11223 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11224 "\n"
11225
11226 #. type: textblock
11227 #: ../fish/guestfish-actions.pod:3016
11228 msgid "See also L</mke2journal>."
11229 msgstr "Див. також L</mke2journal>."
11230
11231 #. type: =head2
11232 #: ../fish/guestfish-actions.pod:3018
11233 msgid "mke2fs-JL"
11234 msgstr "mke2fs-JL"
11235
11236 #. type: verbatim
11237 #: ../fish/guestfish-actions.pod:3020
11238 #, no-wrap
11239 msgid ""
11240 " mke2fs-JL fstype blocksize device label\n"
11241 "\n"
11242 msgstr ""
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
11246 msgid ""
11247 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11248 "the journal labeled C<label>."
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../fish/guestfish-actions.pod:3025
11253 msgid "See also L</mke2journal-L>."
11254 msgstr "Див. також L</mke2journal-L>."
11255
11256 #. type: =head2
11257 #: ../fish/guestfish-actions.pod:3027
11258 msgid "mke2fs-JU"
11259 msgstr "mke2fs-JU"
11260
11261 #. type: verbatim
11262 #: ../fish/guestfish-actions.pod:3029
11263 #, no-wrap
11264 msgid ""
11265 " mke2fs-JU fstype blocksize device uuid\n"
11266 "\n"
11267 msgstr ""
11268
11269 #. type: textblock
11270 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
11271 msgid ""
11272 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11273 "the journal with UUID C<uuid>."
11274 msgstr ""
11275
11276 #. type: textblock
11277 #: ../fish/guestfish-actions.pod:3034
11278 msgid "See also L</mke2journal-U>."
11279 msgstr "Див. також L</mke2journal-U>."
11280
11281 #. type: =head2
11282 #: ../fish/guestfish-actions.pod:3036
11283 msgid "mke2journal"
11284 msgstr "mke2journal"
11285
11286 #. type: verbatim
11287 #: ../fish/guestfish-actions.pod:3038
11288 #, no-wrap
11289 msgid ""
11290 " mke2journal blocksize device\n"
11291 "\n"
11292 msgstr ""
11293
11294 #. type: textblock
11295 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
11296 msgid ""
11297 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11298 "command:"
11299 msgstr ""
11300
11301 #. type: verbatim
11302 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
11303 #, no-wrap
11304 msgid ""
11305 " mke2fs -O journal_dev -b blocksize device\n"
11306 "\n"
11307 msgstr ""
11308
11309 #. type: =head2
11310 #: ../fish/guestfish-actions.pod:3045
11311 msgid "mke2journal-L"
11312 msgstr "mke2journal-L"
11313
11314 #. type: verbatim
11315 #: ../fish/guestfish-actions.pod:3047
11316 #, no-wrap
11317 msgid ""
11318 " mke2journal-L blocksize label device\n"
11319 "\n"
11320 msgstr ""
11321
11322 #. type: textblock
11323 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
11324 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11325 msgstr ""
11326
11327 #. type: =head2
11328 #: ../fish/guestfish-actions.pod:3051
11329 msgid "mke2journal-U"
11330 msgstr "mke2journal-U"
11331
11332 #. type: verbatim
11333 #: ../fish/guestfish-actions.pod:3053
11334 #, no-wrap
11335 msgid ""
11336 " mke2journal-U blocksize uuid device\n"
11337 "\n"
11338 msgstr ""
11339
11340 #. type: textblock
11341 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
11342 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11343 msgstr ""
11344
11345 #. type: =head2
11346 #: ../fish/guestfish-actions.pod:3057
11347 msgid "mkfifo"
11348 msgstr "mkfifo"
11349
11350 #. type: verbatim
11351 #: ../fish/guestfish-actions.pod:3059
11352 #, no-wrap
11353 msgid ""
11354 " mkfifo mode path\n"
11355 "\n"
11356 msgstr ""
11357 " mkfifo режим шлях\n"
11358 "\n"
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:3061
11362 msgid ""
11363 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11364 "is just a convenient wrapper around L</mknod>."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:3067
11369 msgid "mkfs"
11370 msgstr "mkfs"
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:3069
11374 #, no-wrap
11375 msgid ""
11376 " mkfs fstype device\n"
11377 "\n"
11378 msgstr ""
11379 " mkfs тип_файлової_системи пристрій\n"
11380 "\n"
11381
11382 #. type: textblock
11383 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
11384 msgid ""
11385 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11386 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11387 msgstr ""
11388
11389 #. type: =head2
11390 #: ../fish/guestfish-actions.pod:3075
11391 msgid "mkfs-b"
11392 msgstr "mkfs-b"
11393
11394 #. type: verbatim
11395 #: ../fish/guestfish-actions.pod:3077
11396 #, no-wrap
11397 msgid ""
11398 " mkfs-b fstype blocksize device\n"
11399 "\n"
11400 msgstr ""
11401
11402 #. type: textblock
11403 #: ../fish/guestfish-actions.pod:3079
11404 msgid ""
11405 "This call is similar to L</mkfs>, but it allows you to control the block "
11406 "size of the resulting filesystem.  Supported block sizes depend on the "
11407 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11408 msgstr ""
11409
11410 #. type: textblock
11411 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
11412 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
11413 msgid ""
11414 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11415 "cluster size."
11416 msgstr ""
11417
11418 #. type: textblock
11419 #: ../fish/guestfish-actions.pod:3087
11420 msgid ""
11421 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11422 "instead."
11423 msgstr ""
11424
11425 #. type: =head2
11426 #: ../fish/guestfish-actions.pod:3094
11427 msgid "mkfs-opts"
11428 msgstr "mkfs-opts"
11429
11430 #. type: verbatim
11431 #: ../fish/guestfish-actions.pod:3096
11432 #, no-wrap
11433 msgid ""
11434 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11435 "\n"
11436 msgstr ""
11437
11438 #. type: textblock
11439 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
11440 msgid ""
11441 "This function creates a filesystem on C<device>.  The filesystem type is "
11442 "C<fstype>, for example C<ext3>."
11443 msgstr ""
11444
11445 #. type: =item
11446 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
11447 msgid "C<blocksize>"
11448 msgstr "C<blocksize>"
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
11452 msgid ""
11453 "The filesystem block size.  Supported block sizes depend on the filesystem "
11454 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11455 "filesystems."
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
11460 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11461 msgstr ""
11462
11463 #. type: =item
11464 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
11465 msgid "C<features>"
11466 msgstr "C<features>"
11467
11468 #. type: textblock
11469 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
11470 msgid "This passes the I<-O> parameter to the external mkfs program."
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11475 msgid ""
11476 "For certain filesystem types, this allows extra filesystem features to be "
11477 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11478 msgstr ""
11479
11480 #. type: textblock
11481 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11482 msgid ""
11483 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11484 "type."
11485 msgstr ""
11486
11487 #. type: =item
11488 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11489 msgid "C<inode>"
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11494 msgid ""
11495 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11496 "sets the inode size (only for ext2/3/4 filesystems at present)."
11497 msgstr ""
11498
11499 #. type: =item
11500 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
11501 msgid "C<sectorsize>"
11502 msgstr ""
11503
11504 #. type: textblock
11505 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
11506 msgid ""
11507 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11508 "sets sector size for ufs filesystem."
11509 msgstr ""
11510
11511 #. type: =head2
11512 #: ../fish/guestfish-actions.pod:3141
11513 msgid "mkmountpoint"
11514 msgstr "mkmountpoint"
11515
11516 #. type: verbatim
11517 #: ../fish/guestfish-actions.pod:3143
11518 #, no-wrap
11519 msgid ""
11520 " mkmountpoint exemptpath\n"
11521 "\n"
11522 msgstr ""
11523
11524 #. type: textblock
11525 #: ../fish/guestfish-actions.pod:3145
11526 msgid ""
11527 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11528 "to create extra mountpoints before mounting the first filesystem."
11529 msgstr ""
11530
11531 #. type: textblock
11532 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
11533 msgid ""
11534 "These calls are I<only> necessary in some very limited circumstances, mainly "
11535 "the case where you want to mount a mix of unrelated and/or read-only "
11536 "filesystems together."
11537 msgstr ""
11538
11539 #. type: textblock
11540 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11541 msgid ""
11542 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11543 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11544 "inside that.  You can unpack this as follows in guestfish:"
11545 msgstr ""
11546
11547 #. type: verbatim
11548 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
11549 #, no-wrap
11550 msgid ""
11551 " add-ro Fedora-11-i686-Live.iso\n"
11552 " run\n"
11553 " mkmountpoint /cd\n"
11554 " mkmountpoint /sqsh\n"
11555 " mkmountpoint /ext3fs\n"
11556 " mount /dev/sda /cd\n"
11557 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11558 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11559 "\n"
11560 msgstr ""
11561 " add-ro Fedora-11-i686-Live.iso\n"
11562 " run\n"
11563 " mkmountpoint /cd\n"
11564 " mkmountpoint /sqsh\n"
11565 " mkmountpoint /ext3fs\n"
11566 " mount /dev/sda /cd\n"
11567 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11568 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11569 "\n"
11570
11571 #. type: textblock
11572 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
11573 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11574 msgstr ""
11575
11576 #. type: textblock
11577 #: ../fish/guestfish-actions.pod:3169
11578 msgid ""
11579 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11580 "unexpected errors if you try to mix these calls.  It is safest to manually "
11581 "unmount filesystems and remove mountpoints after use."
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:3173
11586 msgid ""
11587 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11588 "for this to work for manual mountpoints, you must ensure that the innermost "
11589 "mountpoints have the longest pathnames, as in the example code above."
11590 msgstr ""
11591
11592 #. type: textblock
11593 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
11594 msgid ""
11595 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11596 msgstr ""
11597
11598 #. type: textblock
11599 #: ../fish/guestfish-actions.pod:3180
11600 msgid ""
11601 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11602 "L</umount-all> to be called when the handle is closed which can also trigger "
11603 "these issues."
11604 msgstr ""
11605
11606 #. type: =head2
11607 #: ../fish/guestfish-actions.pod:3184
11608 msgid "mknod"
11609 msgstr "mknod"
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:3186
11613 #, no-wrap
11614 msgid ""
11615 " mknod mode devmajor devminor path\n"
11616 "\n"
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
11621 msgid ""
11622 "This call creates block or character special devices, or named pipes (FIFOs)."
11623 msgstr ""
11624
11625 #. type: textblock
11626 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
11627 msgid ""
11628 "The C<mode> parameter should be the mode, using the standard constants.  "
11629 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11630 "used when creating block and character special devices."
11631 msgstr ""
11632
11633 #. type: textblock
11634 #: ../fish/guestfish-actions.pod:3196
11635 msgid ""
11636 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11637 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11638 "regular file).  These constants are available in the standard Linux header "
11639 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11640 "wrappers around this command which bitwise OR in the appropriate constant "
11641 "for you."
11642 msgstr ""
11643
11644 #. type: =head2
11645 #: ../fish/guestfish-actions.pod:3206
11646 msgid "mknod-b"
11647 msgstr "mknod-b"
11648
11649 #. type: verbatim
11650 #: ../fish/guestfish-actions.pod:3208
11651 #, no-wrap
11652 msgid ""
11653 " mknod-b mode devmajor devminor path\n"
11654 "\n"
11655 msgstr ""
11656
11657 #. type: textblock
11658 #: ../fish/guestfish-actions.pod:3210
11659 msgid ""
11660 "This call creates a block device node called C<path> with mode C<mode> and "
11661 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11662 "wrapper around L</mknod>."
11663 msgstr ""
11664
11665 #. type: =head2
11666 #: ../fish/guestfish-actions.pod:3216
11667 msgid "mknod-c"
11668 msgstr "mknod-c"
11669
11670 #. type: verbatim
11671 #: ../fish/guestfish-actions.pod:3218
11672 #, no-wrap
11673 msgid ""
11674 " mknod-c mode devmajor devminor path\n"
11675 "\n"
11676 msgstr ""
11677
11678 #. type: textblock
11679 #: ../fish/guestfish-actions.pod:3220
11680 msgid ""
11681 "This call creates a char device node called C<path> with mode C<mode> and "
11682 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11683 "wrapper around L</mknod>."
11684 msgstr ""
11685
11686 #. type: =head2
11687 #: ../fish/guestfish-actions.pod:3226
11688 msgid "mkswap"
11689 msgstr "mkswap"
11690
11691 #. type: verbatim
11692 #: ../fish/guestfish-actions.pod:3228
11693 #, no-wrap
11694 msgid ""
11695 " mkswap device\n"
11696 "\n"
11697 msgstr ""
11698 " mkswap пристрій\n"
11699 "\n"
11700
11701 #. type: textblock
11702 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11703 msgid "Create a swap partition on C<device>."
11704 msgstr ""
11705
11706 #. type: =head2
11707 #: ../fish/guestfish-actions.pod:3232
11708 msgid "mkswap-L"
11709 msgstr "mkswap-L"
11710
11711 #. type: verbatim
11712 #: ../fish/guestfish-actions.pod:3234
11713 #, no-wrap
11714 msgid ""
11715 " mkswap-L label device\n"
11716 "\n"
11717 msgstr ""
11718 " mkswap-L мітка пристрій\n"
11719 "\n"
11720
11721 #. type: textblock
11722 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11723 msgid "Create a swap partition on C<device> with label C<label>."
11724 msgstr ""
11725
11726 #. type: textblock
11727 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11728 msgid ""
11729 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11730 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11731 "or swap tools."
11732 msgstr ""
11733
11734 #. type: =head2
11735 #: ../fish/guestfish-actions.pod:3242
11736 msgid "mkswap-U"
11737 msgstr "mkswap-U"
11738
11739 #. type: verbatim
11740 #: ../fish/guestfish-actions.pod:3244
11741 #, no-wrap
11742 msgid ""
11743 " mkswap-U uuid device\n"
11744 "\n"
11745 msgstr ""
11746 " mkswap-U uuid пристрій\n"
11747 "\n"
11748
11749 #. type: textblock
11750 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11751 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11752 msgstr ""
11753
11754 #. type: =head2
11755 #: ../fish/guestfish-actions.pod:3248
11756 msgid "mkswap-file"
11757 msgstr "mkswap-file"
11758
11759 #. type: verbatim
11760 #: ../fish/guestfish-actions.pod:3250
11761 #, no-wrap
11762 msgid ""
11763 " mkswap-file path\n"
11764 "\n"
11765 msgstr ""
11766 " mkswap-file шлях\n"
11767 "\n"
11768
11769 #. type: textblock
11770 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11771 msgid "Create a swap file."
11772 msgstr "Створити файл резервної пам’яті."
11773
11774 #. type: textblock
11775 #: ../fish/guestfish-actions.pod:3254
11776 msgid ""
11777 "This command just writes a swap file signature to an existing file.  To "
11778 "create the file itself, use something like L</fallocate>."
11779 msgstr ""
11780
11781 #. type: =head2
11782 #: ../fish/guestfish-actions.pod:3257
11783 msgid "modprobe"
11784 msgstr "modprobe"
11785
11786 #. type: verbatim
11787 #: ../fish/guestfish-actions.pod:3259
11788 #, no-wrap
11789 msgid ""
11790 " modprobe modulename\n"
11791 "\n"
11792 msgstr ""
11793 " modprobe назва_модуля\n"
11794 "\n"
11795
11796 #. type: textblock
11797 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11798 msgid "This loads a kernel module in the appliance."
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11803 msgid ""
11804 "The kernel module must have been whitelisted when libguestfs was built (see "
11805 "C<appliance/kmod.whitelist.in> in the source)."
11806 msgstr ""
11807
11808 #. type: =head2
11809 #: ../fish/guestfish-actions.pod:3266
11810 msgid "mount"
11811 msgstr "mount"
11812
11813 #. type: verbatim
11814 #: ../fish/guestfish-actions.pod:3268
11815 #, no-wrap
11816 msgid ""
11817 " mount device mountpoint\n"
11818 "\n"
11819 msgstr ""
11820 " mount пристрій точка_монтування\n"
11821 "\n"
11822
11823 #. type: textblock
11824 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
11825 msgid ""
11826 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11827 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11828 "those block devices contain partitions, they will have the usual names (eg. "
11829 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11830 msgstr ""
11831
11832 #. type: textblock
11833 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11834 msgid ""
11835 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11836 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11837 "mounted on directories which already exist."
11838 msgstr ""
11839
11840 #. type: textblock
11841 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
11842 msgid ""
11843 "The mounted filesystem is writable, if we have sufficient permissions on the "
11844 "underlying device."
11845 msgstr ""
11846
11847 #. type: textblock
11848 #: ../fish/guestfish-actions.pod:3284
11849 msgid ""
11850 "B<Important note:> When you use this call, the filesystem options C<sync> "
11851 "and C<noatime> are set implicitly.  This was originally done because we "
11852 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11853 "very large negative performance impact and negligible effect on "
11854 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11855 "code that needs performance, and instead use L</mount-options> (use an empty "
11856 "string for the first parameter if you don't want any options)."
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:3294
11861 msgid ""
11862 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11863 "instead."
11864 msgstr ""
11865
11866 #. type: =head2
11867 #: ../fish/guestfish-actions.pod:3301
11868 msgid "mount-9p"
11869 msgstr ""
11870
11871 #. type: verbatim
11872 #: ../fish/guestfish-actions.pod:3303
11873 #, no-wrap
11874 msgid ""
11875 " mount-9p mounttag mountpoint [options:..]\n"
11876 "\n"
11877 msgstr ""
11878
11879 #. type: textblock
11880 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11881 msgid ""
11882 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11883 "C<mountpoint>."
11884 msgstr ""
11885
11886 #. type: textblock
11887 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11888 msgid ""
11889 "If required, C<trans=virtio> will be automatically added to the options.  "
11890 "Any other options required can be passed in the optional C<options> "
11891 "parameter."
11892 msgstr ""
11893
11894 #. type: =head2
11895 #: ../fish/guestfish-actions.pod:3314
11896 msgid "mount-loop"
11897 msgstr "mount-loop"
11898
11899 #. type: verbatim
11900 #: ../fish/guestfish-actions.pod:3316
11901 #, no-wrap
11902 msgid ""
11903 " mount-loop file mountpoint\n"
11904 "\n"
11905 msgstr ""
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11909 msgid ""
11910 "This command lets you mount C<file> (a filesystem image in a file) on a "
11911 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11912 "mountpoint>."
11913 msgstr ""
11914
11915 #. type: =head2
11916 #: ../fish/guestfish-actions.pod:3322
11917 msgid "mount-options"
11918 msgstr "mount-options"
11919
11920 #. type: verbatim
11921 #: ../fish/guestfish-actions.pod:3324
11922 #, no-wrap
11923 msgid ""
11924 " mount-options options device mountpoint\n"
11925 "\n"
11926 msgstr ""
11927
11928 #. type: textblock
11929 #: ../fish/guestfish-actions.pod:3326
11930 msgid ""
11931 "This is the same as the L</mount> command, but it allows you to set the "
11932 "mount options as for the L<mount(8)> I<-o> flag."
11933 msgstr ""
11934
11935 #. type: textblock
11936 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11937 msgid ""
11938 "If the C<options> parameter is an empty string, then no options are passed "
11939 "(all options default to whatever the filesystem uses)."
11940 msgstr ""
11941
11942 #. type: =head2
11943 #: ../fish/guestfish-actions.pod:3334
11944 msgid "mount-ro"
11945 msgstr "mount-ro"
11946
11947 #. type: verbatim
11948 #: ../fish/guestfish-actions.pod:3336
11949 #, no-wrap
11950 msgid ""
11951 " mount-ro device mountpoint\n"
11952 "\n"
11953 msgstr ""
11954 " mount-ro пристрій точка_монтування\n"
11955 "\n"
11956
11957 #. type: textblock
11958 #: ../fish/guestfish-actions.pod:3338
11959 msgid ""
11960 "This is the same as the L</mount> command, but it mounts the filesystem with "
11961 "the read-only (I<-o ro>) flag."
11962 msgstr ""
11963
11964 #. type: =head2
11965 #: ../fish/guestfish-actions.pod:3341
11966 msgid "mount-vfs"
11967 msgstr "mount-vfs"
11968
11969 #. type: verbatim
11970 #: ../fish/guestfish-actions.pod:3343
11971 #, no-wrap
11972 msgid ""
11973 " mount-vfs options vfstype device mountpoint\n"
11974 "\n"
11975 msgstr ""
11976
11977 #. type: textblock
11978 #: ../fish/guestfish-actions.pod:3345
11979 msgid ""
11980 "This is the same as the L</mount> command, but it allows you to set both the "
11981 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11982 msgstr ""
11983
11984 #. type: =head2
11985 #: ../fish/guestfish-actions.pod:3349
11986 msgid "mountpoints"
11987 msgstr "mountpoints"
11988
11989 #. type: verbatim
11990 #: ../fish/guestfish-actions.pod:3351
11991 #, no-wrap
11992 msgid ""
11993 " mountpoints\n"
11994 "\n"
11995 msgstr ""
11996 " mountpoints\n"
11997 "\n"
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:3353
12001 msgid ""
12002 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12003 "This one returns a hash table (map) of device name to directory where the "
12004 "device is mounted."
12005 msgstr ""
12006
12007 #. type: =head2
12008 #: ../fish/guestfish-actions.pod:3357
12009 msgid "mounts"
12010 msgstr "mounts"
12011
12012 #. type: verbatim
12013 #: ../fish/guestfish-actions.pod:3359
12014 #, no-wrap
12015 msgid ""
12016 " mounts\n"
12017 "\n"
12018 msgstr ""
12019 " mounts\n"
12020 "\n"
12021
12022 #. type: textblock
12023 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12024 msgid ""
12025 "This returns the list of currently mounted filesystems.  It returns the list "
12026 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
12031 msgid "Some internal mounts are not shown."
12032 msgstr ""
12033
12034 #. type: textblock
12035 #: ../fish/guestfish-actions.pod:3366
12036 msgid "See also: L</mountpoints>"
12037 msgstr "Див. також L</mountpoints>"
12038
12039 #. type: =head2
12040 #: ../fish/guestfish-actions.pod:3368
12041 msgid "mv"
12042 msgstr "mv"
12043
12044 #. type: verbatim
12045 #: ../fish/guestfish-actions.pod:3370
12046 #, no-wrap
12047 msgid ""
12048 " mv src dest\n"
12049 "\n"
12050 msgstr ""
12051 " mv джерело призначення\n"
12052 "\n"
12053
12054 #. type: textblock
12055 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
12056 msgid ""
12057 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12058 "destination filename or destination directory."
12059 msgstr ""
12060
12061 #. type: =head2
12062 #: ../fish/guestfish-actions.pod:3375
12063 msgid "ntfs-3g-probe"
12064 msgstr "ntfs-3g-probe"
12065
12066 #. type: verbatim
12067 #: ../fish/guestfish-actions.pod:3377
12068 #, no-wrap
12069 msgid ""
12070 " ntfs-3g-probe true|false device\n"
12071 "\n"
12072 msgstr ""
12073
12074 #. type: textblock
12075 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
12076 msgid ""
12077 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12078 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12079 "write, and some cannot be mounted at all)."
12080 msgstr ""
12081
12082 #. type: textblock
12083 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
12084 msgid ""
12085 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12086 "can be mounted read-write.  Set it to false if you want to test if the "
12087 "volume can be mounted read-only."
12088 msgstr ""
12089
12090 #. type: textblock
12091 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
12092 msgid ""
12093 "The return value is an integer which C<0> if the operation would succeed, or "
12094 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12095 msgstr ""
12096
12097 #. type: =head2
12098 #: ../fish/guestfish-actions.pod:3391
12099 msgid "ntfsresize"
12100 msgstr "ntfsresize"
12101
12102 #. type: verbatim
12103 #: ../fish/guestfish-actions.pod:3393
12104 #, no-wrap
12105 msgid ""
12106 " ntfsresize device\n"
12107 "\n"
12108 msgstr ""
12109 " ntfsresize пристрій\n"
12110 "\n"
12111
12112 #. type: textblock
12113 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
12114 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
12115 msgid ""
12116 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12117 "size of the underlying device."
12118 msgstr ""
12119
12120 #. type: textblock
12121 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
12122 msgid ""
12123 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12124 "consistency check (for safety).  You have to boot into Windows to perform "
12125 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12126 "resize filesystems which have been marked in this way.  So in effect it is "
12127 "not possible to call ntfsresize multiple times on a single filesystem "
12128 "without booting into Windows between each resize."
12129 msgstr ""
12130
12131 #. type: textblock
12132 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
12133 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
12134 msgid "See also L<ntfsresize(8)>."
12135 msgstr ""
12136
12137 #. type: textblock
12138 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
12139 msgid ""
12140 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12141 "call instead."
12142 msgstr ""
12143
12144 #. type: =head2
12145 #: ../fish/guestfish-actions.pod:3415
12146 msgid "ntfsresize-opts"
12147 msgstr ""
12148
12149 #. type: verbatim
12150 #: ../fish/guestfish-actions.pod:3417
12151 #, no-wrap
12152 msgid ""
12153 " ntfsresize-opts device [size:..] [force:..]\n"
12154 "\n"
12155 msgstr ""
12156
12157 #. type: textblock
12158 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12159 msgid ""
12160 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12161 "resized to fit the container (eg. partition)."
12162 msgstr ""
12163
12164 #. type: =item
12165 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
12166 msgid "C<force>"
12167 msgstr ""
12168
12169 #. type: textblock
12170 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
12171 msgid ""
12172 "If this option is true, then force the resize of the filesystem even if the "
12173 "filesystem is marked as requiring a consistency check."
12174 msgstr ""
12175
12176 #. type: textblock
12177 #: ../fish/guestfish-actions.pod:3436
12178 msgid ""
12179 "After the resize operation, the filesystem is always marked as requiring a "
12180 "consistency check (for safety).  You have to boot into Windows to perform "
12181 "this check and clear this condition.  If you I<don't> set the C<force> "
12182 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12183 "a single filesystem without booting into Windows between each resize."
12184 msgstr ""
12185
12186 #. type: =head2
12187 #: ../fish/guestfish-actions.pod:3449
12188 msgid "ntfsresize-size"
12189 msgstr "ntfsresize-size"
12190
12191 #. type: verbatim
12192 #: ../fish/guestfish-actions.pod:3451
12193 #, no-wrap
12194 msgid ""
12195 " ntfsresize-size device size\n"
12196 "\n"
12197 msgstr ""
12198
12199 #. type: textblock
12200 #: ../fish/guestfish-actions.pod:3453
12201 msgid ""
12202 "This command is the same as L</ntfsresize> except that it allows you to "
12203 "specify the new size (in bytes) explicitly."
12204 msgstr ""
12205
12206 #. type: =head2
12207 #: ../fish/guestfish-actions.pod:3463
12208 msgid "part-add"
12209 msgstr "part-add"
12210
12211 #. type: verbatim
12212 #: ../fish/guestfish-actions.pod:3465
12213 #, no-wrap
12214 msgid ""
12215 " part-add device prlogex startsect endsect\n"
12216 "\n"
12217 msgstr ""
12218
12219 #. type: textblock
12220 #: ../fish/guestfish-actions.pod:3467
12221 msgid ""
12222 "This command adds a partition to C<device>.  If there is no partition table "
12223 "on the device, call L</part-init> first."
12224 msgstr ""
12225
12226 #. type: textblock
12227 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12228 msgid ""
12229 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12230 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12231 "C<logical>) and C<e> (or C<extended>) partition types."
12232 msgstr ""
12233
12234 #. type: textblock
12235 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
12236 msgid ""
12237 "C<startsect> and C<endsect> are the start and end of the partition in "
12238 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12239 "from the end of the disk (C<-1> is the last sector)."
12240 msgstr ""
12241
12242 #. type: textblock
12243 #: ../fish/guestfish-actions.pod:3479
12244 msgid ""
12245 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12246 "part-disk> to do that."
12247 msgstr ""
12248
12249 #. type: =head2
12250 #: ../fish/guestfish-actions.pod:3482
12251 msgid "part-del"
12252 msgstr "part-del"
12253
12254 #. type: verbatim
12255 #: ../fish/guestfish-actions.pod:3484
12256 #, no-wrap
12257 msgid ""
12258 " part-del device partnum\n"
12259 "\n"
12260 msgstr ""
12261
12262 #. type: textblock
12263 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
12264 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
12269 msgid ""
12270 "Note that in the case of MBR partitioning, deleting an extended partition "
12271 "also deletes any logical partitions it contains."
12272 msgstr ""
12273
12274 #. type: =head2
12275 #: ../fish/guestfish-actions.pod:3492
12276 msgid "part-disk"
12277 msgstr "part-disk"
12278
12279 #. type: verbatim
12280 #: ../fish/guestfish-actions.pod:3494
12281 #, no-wrap
12282 msgid ""
12283 " part-disk device parttype\n"
12284 "\n"
12285 msgstr ""
12286 " part-disk пристрій тип_розділу\n"
12287 "\n"
12288
12289 #. type: textblock
12290 #: ../fish/guestfish-actions.pod:3496
12291 msgid ""
12292 "This command is simply a combination of L</part-init> followed by L</part-"
12293 "add> to create a single primary partition covering the whole disk."
12294 msgstr ""
12295
12296 #. type: textblock
12297 #: ../fish/guestfish-actions.pod:3500
12298 msgid ""
12299 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12300 "possible values are described in L</part-init>."
12301 msgstr ""
12302
12303 #. type: =head2
12304 #: ../fish/guestfish-actions.pod:3506
12305 msgid "part-get-bootable"
12306 msgstr "part-get-bootable"
12307
12308 #. type: verbatim
12309 #: ../fish/guestfish-actions.pod:3508
12310 #, no-wrap
12311 msgid ""
12312 " part-get-bootable device partnum\n"
12313 "\n"
12314 msgstr ""
12315
12316 #. type: textblock
12317 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
12318 msgid ""
12319 "This command returns true if the partition C<partnum> on C<device> has the "
12320 "bootable flag set."
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../fish/guestfish-actions.pod:3513
12325 msgid "See also L</part-set-bootable>."
12326 msgstr "Див. також L</part-set-bootable>."
12327
12328 #. type: =head2
12329 #: ../fish/guestfish-actions.pod:3515
12330 msgid "part-get-mbr-id"
12331 msgstr "part-get-mbr-id"
12332
12333 #. type: verbatim
12334 #: ../fish/guestfish-actions.pod:3517
12335 #, no-wrap
12336 msgid ""
12337 " part-get-mbr-id device partnum\n"
12338 "\n"
12339 msgstr ""
12340
12341 #. type: textblock
12342 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
12343 msgid ""
12344 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12345 "partition C<partnum>."
12346 msgstr ""
12347
12348 #. type: textblock
12349 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
12350 msgid ""
12351 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12352 "undefined results for other partition table types (see L</part-get-"
12353 "parttype>)."
12354 msgstr ""
12355
12356 #. type: =head2
12357 #: ../fish/guestfish-actions.pod:3526
12358 msgid "part-get-parttype"
12359 msgstr "part-get-parttype"
12360
12361 #. type: verbatim
12362 #: ../fish/guestfish-actions.pod:3528
12363 #, no-wrap
12364 msgid ""
12365 " part-get-parttype device\n"
12366 "\n"
12367 msgstr ""
12368 " part-get-parttype пристрій\n"
12369 "\n"
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
12373 msgid ""
12374 "This command examines the partition table on C<device> and returns the "
12375 "partition table type (format) being used."
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:3533
12380 msgid ""
12381 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12382 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12383 "possible, although unusual.  See L</part-init> for a full list."
12384 msgstr ""
12385
12386 #. type: =head2
12387 #: ../fish/guestfish-actions.pod:3538
12388 msgid "part-init"
12389 msgstr "part-init"
12390
12391 #. type: verbatim
12392 #: ../fish/guestfish-actions.pod:3540
12393 #, no-wrap
12394 msgid ""
12395 " part-init device parttype\n"
12396 "\n"
12397 msgstr ""
12398
12399 #. type: textblock
12400 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
12401 msgid ""
12402 "This creates an empty partition table on C<device> of one of the partition "
12403 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12404 "(for large disks)."
12405 msgstr ""
12406
12407 #. type: textblock
12408 #: ../fish/guestfish-actions.pod:3546
12409 msgid ""
12410 "Initially there are no partitions.  Following this, you should call L</part-"
12411 "add> for each partition required."
12412 msgstr ""
12413
12414 #. type: textblock
12415 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
12416 msgid "Possible values for C<parttype> are:"
12417 msgstr ""
12418
12419 #. type: =item
12420 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
12421 msgid "B<efi>"
12422 msgstr ""
12423
12424 #. type: =item
12425 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
12426 msgid "B<gpt>"
12427 msgstr ""
12428
12429 #. type: textblock
12430 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
12431 msgid "Intel EFI / GPT partition table."
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
12436 msgid ""
12437 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12438 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12439 "the C<mbr> format."
12440 msgstr ""
12441
12442 #. type: =item
12443 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
12444 msgid "B<mbr>"
12445 msgstr ""
12446
12447 #. type: =item
12448 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
12449 msgid "B<msdos>"
12450 msgstr ""
12451
12452 #. type: textblock
12453 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
12454 msgid ""
12455 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12456 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12457 "TB.  For large disks we recommend using C<gpt>."
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12462 msgid ""
12463 "Other partition table types that may work but are not supported include:"
12464 msgstr ""
12465
12466 #. type: =item
12467 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12468 msgid "B<aix>"
12469 msgstr "B<aix>"
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12473 msgid "AIX disk labels."
12474 msgstr "Мітки дисків AIX."
12475
12476 #. type: =item
12477 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12478 #, fuzzy
12479 #| msgid "B<amiga> | B<rdb>"
12480 msgid "B<amiga>"
12481 msgstr "B<amiga> | B<rdb>"
12482
12483 #. type: =item
12484 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12485 msgid "B<rdb>"
12486 msgstr ""
12487
12488 #. type: textblock
12489 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12490 msgid "Amiga \"Rigid Disk Block\" format."
12491 msgstr "Формат \"Rigid Disk Block\" Amiga."
12492
12493 #. type: =item
12494 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12495 msgid "B<bsd>"
12496 msgstr "B<bsd>"
12497
12498 #. type: textblock
12499 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12500 msgid "BSD disk labels."
12501 msgstr "Мітки дисків BSD."
12502
12503 #. type: =item
12504 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12505 msgid "B<dasd>"
12506 msgstr "B<dasd>"
12507
12508 #. type: textblock
12509 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
12510 msgid "DASD, used on IBM mainframes."
12511 msgstr "DASD, використовувалися у мейнфреймах IBM."
12512
12513 #. type: =item
12514 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
12515 msgid "B<dvh>"
12516 msgstr "B<dvh>"
12517
12518 #. type: textblock
12519 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
12520 msgid "MIPS/SGI volumes."
12521 msgstr "Томи MIPS/SGI."
12522
12523 #. type: =item
12524 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12525 msgid "B<mac>"
12526 msgstr "B<mac>"
12527
12528 #. type: textblock
12529 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12530 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12531 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12532
12533 #. type: =item
12534 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12535 msgid "B<pc98>"
12536 msgstr "B<pc98>"
12537
12538 #. type: textblock
12539 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12540 msgid "NEC PC-98 format, common in Japan apparently."
12541 msgstr "Формат NEC PC-98, поширений у Японії."
12542
12543 #. type: =item
12544 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12545 msgid "B<sun>"
12546 msgstr "B<sun>"
12547
12548 #. type: textblock
12549 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12550 msgid "Sun disk labels."
12551 msgstr "Мітки дисків Sun."
12552
12553 #. type: =head2
12554 #: ../fish/guestfish-actions.pod:3615
12555 msgid "part-list"
12556 msgstr "part-list"
12557
12558 #. type: verbatim
12559 #: ../fish/guestfish-actions.pod:3617
12560 #, no-wrap
12561 msgid ""
12562 " part-list device\n"
12563 "\n"
12564 msgstr ""
12565 " part-list device\n"
12566 "\n"
12567
12568 #. type: textblock
12569 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
12570 msgid ""
12571 "This command parses the partition table on C<device> and returns the list of "
12572 "partitions found."
12573 msgstr ""
12574
12575 #. type: textblock
12576 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
12577 msgid "The fields in the returned structure are:"
12578 msgstr ""
12579
12580 #. type: =item
12581 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
12582 msgid "B<part_num>"
12583 msgstr "B<part_num>"
12584
12585 #. type: textblock
12586 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
12587 msgid "Partition number, counting from 1."
12588 msgstr ""
12589
12590 #. type: =item
12591 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12592 msgid "B<part_start>"
12593 msgstr "B<part_start>"
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:3632
12597 msgid ""
12598 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12599 "the device's sector size, see L</blockdev-getss>."
12600 msgstr ""
12601
12602 #. type: =item
12603 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
12604 msgid "B<part_end>"
12605 msgstr "B<part_end>"
12606
12607 #. type: textblock
12608 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
12609 msgid "End of the partition in bytes."
12610 msgstr ""
12611
12612 #. type: =item
12613 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
12614 msgid "B<part_size>"
12615 msgstr "B<part_size>"
12616
12617 #. type: textblock
12618 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12619 msgid "Size of the partition in bytes."
12620 msgstr ""
12621
12622 #. type: =head2
12623 #: ../fish/guestfish-actions.pod:3645
12624 msgid "part-set-bootable"
12625 msgstr "part-set-bootable"
12626
12627 #. type: verbatim
12628 #: ../fish/guestfish-actions.pod:3647
12629 #, no-wrap
12630 msgid ""
12631 " part-set-bootable device partnum true|false\n"
12632 "\n"
12633 msgstr ""
12634
12635 #. type: textblock
12636 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
12637 msgid ""
12638 "This sets the bootable flag on partition numbered C<partnum> on device "
12639 "C<device>.  Note that partitions are numbered from 1."
12640 msgstr ""
12641
12642 #. type: textblock
12643 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
12644 msgid ""
12645 "The bootable flag is used by some operating systems (notably Windows) to "
12646 "determine which partition to boot from.  It is by no means universally "
12647 "recognized."
12648 msgstr ""
12649
12650 #. type: =head2
12651 #: ../fish/guestfish-actions.pod:3656
12652 msgid "part-set-mbr-id"
12653 msgstr "part-set-mbr-id"
12654
12655 #. type: verbatim
12656 #: ../fish/guestfish-actions.pod:3658
12657 #, no-wrap
12658 msgid ""
12659 " part-set-mbr-id device partnum idbyte\n"
12660 "\n"
12661 msgstr ""
12662
12663 #. type: textblock
12664 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
12665 msgid ""
12666 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12667 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12668 "documentation are in fact hexadecimal numbers, but usually documented "
12669 "without any leading \"0x\" which might be confusing."
12670 msgstr ""
12671
12672 #. type: =head2
12673 #: ../fish/guestfish-actions.pod:3670
12674 msgid "part-set-name"
12675 msgstr "part-set-name"
12676
12677 #. type: verbatim
12678 #: ../fish/guestfish-actions.pod:3672
12679 #, no-wrap
12680 msgid ""
12681 " part-set-name device partnum name\n"
12682 "\n"
12683 msgstr ""
12684
12685 #. type: textblock
12686 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12687 msgid ""
12688 "This sets the partition name on partition numbered C<partnum> on device "
12689 "C<device>.  Note that partitions are numbered from 1."
12690 msgstr ""
12691
12692 #. type: textblock
12693 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12694 msgid ""
12695 "The partition name can only be set on certain types of partition table.  "
12696 "This works on C<gpt> but not on C<mbr> partitions."
12697 msgstr ""
12698
12699 #. type: =head2
12700 #: ../fish/guestfish-actions.pod:3680
12701 msgid "part-to-dev"
12702 msgstr "part-to-dev"
12703
12704 #. type: verbatim
12705 #: ../fish/guestfish-actions.pod:3682
12706 #, no-wrap
12707 msgid ""
12708 " part-to-dev partition\n"
12709 "\n"
12710 msgstr ""
12711 " part-to-dev розділ\n"
12712 "\n"
12713
12714 #. type: textblock
12715 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12716 msgid ""
12717 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12718 "partition number, returning the device name (eg. \"/dev/sdb\")."
12719 msgstr ""
12720
12721 #. type: textblock
12722 #: ../fish/guestfish-actions.pod:3688
12723 msgid ""
12724 "The named partition must exist, for example as a string returned from L</"
12725 "list-partitions>."
12726 msgstr ""
12727
12728 #. type: =head2
12729 #: ../fish/guestfish-actions.pod:3691
12730 msgid "ping-daemon"
12731 msgstr "ping-daemon"
12732
12733 #. type: verbatim
12734 #: ../fish/guestfish-actions.pod:3693
12735 #, no-wrap
12736 msgid ""
12737 " ping-daemon\n"
12738 "\n"
12739 msgstr ""
12740 " ping-daemon\n"
12741 "\n"
12742
12743 #. type: textblock
12744 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12745 msgid ""
12746 "This is a test probe into the guestfs daemon running inside the qemu "
12747 "subprocess.  Calling this function checks that the daemon responds to the "
12748 "ping message, without affecting the daemon or attached block device(s) in "
12749 "any other way."
12750 msgstr ""
12751
12752 #. type: =head2
12753 #: ../fish/guestfish-actions.pod:3700
12754 msgid "pread"
12755 msgstr "pread"
12756
12757 #. type: verbatim
12758 #: ../fish/guestfish-actions.pod:3702
12759 #, no-wrap
12760 msgid ""
12761 " pread path count offset\n"
12762 "\n"
12763 msgstr ""
12764
12765 #. type: textblock
12766 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12767 msgid ""
12768 "This command lets you read part of a file.  It reads C<count> bytes of the "
12769 "file, starting at C<offset>, from file C<path>."
12770 msgstr ""
12771
12772 #. type: textblock
12773 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12774 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12775 msgid ""
12776 "This may read fewer bytes than requested.  For further details see the "
12777 "L<pread(2)> system call."
12778 msgstr ""
12779
12780 #. type: textblock
12781 #: ../fish/guestfish-actions.pod:3710
12782 msgid "See also L</pwrite>, L</pread-device>."
12783 msgstr "Див. також L</pwrite>, L</pread-device>."
12784
12785 #. type: =head2
12786 #: ../fish/guestfish-actions.pod:3715
12787 msgid "pread-device"
12788 msgstr "pread-device"
12789
12790 #. type: verbatim
12791 #: ../fish/guestfish-actions.pod:3717
12792 #, no-wrap
12793 msgid ""
12794 " pread-device device count offset\n"
12795 "\n"
12796 msgstr ""
12797
12798 #. type: textblock
12799 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12800 msgid ""
12801 "This command lets you read part of a file.  It reads C<count> bytes of "
12802 "C<device>, starting at C<offset>."
12803 msgstr ""
12804
12805 #. type: textblock
12806 #: ../fish/guestfish-actions.pod:3725
12807 msgid "See also L</pread>."
12808 msgstr "Див. також L</pread>."
12809
12810 #. type: =head2
12811 #: ../fish/guestfish-actions.pod:3730
12812 msgid "pvcreate"
12813 msgstr "pvcreate"
12814
12815 #. type: verbatim
12816 #: ../fish/guestfish-actions.pod:3732
12817 #, no-wrap
12818 msgid ""
12819 " pvcreate device\n"
12820 "\n"
12821 msgstr ""
12822 " pvcreate пристрій\n"
12823 "\n"
12824
12825 #. type: textblock
12826 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12827 msgid ""
12828 "This creates an LVM physical volume on the named C<device>, where C<device> "
12829 "should usually be a partition name such as C</dev/sda1>."
12830 msgstr ""
12831
12832 #. type: =head2
12833 #: ../fish/guestfish-actions.pod:3738
12834 msgid "pvremove"
12835 msgstr "pvremove"
12836
12837 #. type: verbatim
12838 #: ../fish/guestfish-actions.pod:3740
12839 #, no-wrap
12840 msgid ""
12841 " pvremove device\n"
12842 "\n"
12843 msgstr ""
12844 " pvremove пристрій\n"
12845 "\n"
12846
12847 #. type: textblock
12848 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12849 msgid ""
12850 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12851 "it."
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12856 msgid ""
12857 "The implementation uses the C<pvremove> command which refuses to wipe "
12858 "physical volumes that contain any volume groups, so you have to remove those "
12859 "first."
12860 msgstr ""
12861
12862 #. type: =head2
12863 #: ../fish/guestfish-actions.pod:3749
12864 msgid "pvresize"
12865 msgstr "pvresize"
12866
12867 #. type: verbatim
12868 #: ../fish/guestfish-actions.pod:3751
12869 #, no-wrap
12870 msgid ""
12871 " pvresize device\n"
12872 "\n"
12873 msgstr ""
12874 " pvresize пристрій\n"
12875 "\n"
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12879 msgid ""
12880 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12881 "the new size of the underlying device."
12882 msgstr ""
12883
12884 #. type: =head2
12885 #: ../fish/guestfish-actions.pod:3756
12886 msgid "pvresize-size"
12887 msgstr "pvresize-size"
12888
12889 #. type: verbatim
12890 #: ../fish/guestfish-actions.pod:3758
12891 #, no-wrap
12892 msgid ""
12893 " pvresize-size device size\n"
12894 "\n"
12895 msgstr ""
12896
12897 #. type: textblock
12898 #: ../fish/guestfish-actions.pod:3760
12899 msgid ""
12900 "This command is the same as L</pvresize> except that it allows you to "
12901 "specify the new size (in bytes) explicitly."
12902 msgstr ""
12903
12904 #. type: =head2
12905 #: ../fish/guestfish-actions.pod:3763
12906 msgid "pvs"
12907 msgstr "pvs"
12908
12909 #. type: verbatim
12910 #: ../fish/guestfish-actions.pod:3765
12911 #, no-wrap
12912 msgid ""
12913 " pvs\n"
12914 "\n"
12915 msgstr ""
12916 " pvs\n"
12917 "\n"
12918
12919 #. type: textblock
12920 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12921 msgid ""
12922 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12923 "(8)> command."
12924 msgstr ""
12925
12926 #. type: textblock
12927 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12928 msgid ""
12929 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12930 "sda2>)."
12931 msgstr ""
12932
12933 #. type: textblock
12934 #: ../fish/guestfish-actions.pod:3773
12935 msgid "See also L</pvs-full>."
12936 msgstr "Див. також L</pvs-full>."
12937
12938 #. type: =head2
12939 #: ../fish/guestfish-actions.pod:3775
12940 msgid "pvs-full"
12941 msgstr "pvs-full"
12942
12943 #. type: verbatim
12944 #: ../fish/guestfish-actions.pod:3777
12945 #, no-wrap
12946 msgid ""
12947 " pvs-full\n"
12948 "\n"
12949 msgstr ""
12950 " pvs-full\n"
12951 "\n"
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12955 msgid ""
12956 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12957 "(8)> command.  The \"full\" version includes all fields."
12958 msgstr ""
12959
12960 #. type: =head2
12961 #: ../fish/guestfish-actions.pod:3782
12962 msgid "pvuuid"
12963 msgstr "pvuuid"
12964
12965 #. type: verbatim
12966 #: ../fish/guestfish-actions.pod:3784
12967 #, no-wrap
12968 msgid ""
12969 " pvuuid device\n"
12970 "\n"
12971 msgstr ""
12972 " pvuuid пристрій\n"
12973 "\n"
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12977 msgid "This command returns the UUID of the LVM PV C<device>."
12978 msgstr ""
12979
12980 #. type: =head2
12981 #: ../fish/guestfish-actions.pod:3788
12982 msgid "pwrite"
12983 msgstr "pwrite"
12984
12985 #. type: verbatim
12986 #: ../fish/guestfish-actions.pod:3790
12987 #, no-wrap
12988 msgid ""
12989 " pwrite path content offset\n"
12990 "\n"
12991 msgstr ""
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12995 msgid ""
12996 "This command writes to part of a file.  It writes the data buffer C<content> "
12997 "to the file C<path> starting at offset C<offset>."
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
13002 msgid ""
13003 "This command implements the L<pwrite(2)> system call, and like that system "
13004 "call it may not write the full data requested.  The return value is the "
13005 "number of bytes that were actually written to the file.  This could even be "
13006 "0, although short writes are unlikely for regular files in ordinary "
13007 "circumstances."
13008 msgstr ""
13009
13010 #. type: textblock
13011 #: ../fish/guestfish-actions.pod:3801
13012 msgid "See also L</pread>, L</pwrite-device>."
13013 msgstr "Див. також L</pread>, L</pwrite-device>."
13014
13015 #. type: =head2
13016 #: ../fish/guestfish-actions.pod:3806
13017 msgid "pwrite-device"
13018 msgstr "pwrite-device"
13019
13020 #. type: verbatim
13021 #: ../fish/guestfish-actions.pod:3808
13022 #, no-wrap
13023 msgid ""
13024 " pwrite-device device content offset\n"
13025 "\n"
13026 msgstr ""
13027
13028 #. type: textblock
13029 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
13030 msgid ""
13031 "This command writes to part of a device.  It writes the data buffer "
13032 "C<content> to C<device> starting at offset C<offset>."
13033 msgstr ""
13034
13035 #. type: textblock
13036 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
13037 msgid ""
13038 "This command implements the L<pwrite(2)> system call, and like that system "
13039 "call it may not write the full data requested (although short writes to disk "
13040 "devices and partitions are probably impossible with standard Linux kernels)."
13041 msgstr ""
13042
13043 #. type: textblock
13044 #: ../fish/guestfish-actions.pod:3818
13045 msgid "See also L</pwrite>."
13046 msgstr "Див. також L</pwrite>."
13047
13048 #. type: =head2
13049 #: ../fish/guestfish-actions.pod:3823
13050 msgid "read-file"
13051 msgstr "read-file"
13052
13053 #. type: verbatim
13054 #: ../fish/guestfish-actions.pod:3825
13055 #, no-wrap
13056 msgid ""
13057 " read-file path\n"
13058 "\n"
13059 msgstr ""
13060 " read-file шлях\n"
13061 "\n"
13062
13063 #. type: textblock
13064 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
13065 msgid "This calls returns the contents of the file C<path> as a buffer."
13066 msgstr ""
13067
13068 #. type: textblock
13069 #: ../fish/guestfish-actions.pod:3830
13070 msgid ""
13071 "Unlike L</cat>, this function can correctly handle files that contain "
13072 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13073 "is limited in the total size of file that can be handled."
13074 msgstr ""
13075
13076 #. type: =head2
13077 #: ../fish/guestfish-actions.pod:3838
13078 msgid "read-lines"
13079 msgstr "read-lines"
13080
13081 #. type: verbatim
13082 #: ../fish/guestfish-actions.pod:3840
13083 #, no-wrap
13084 msgid ""
13085 " read-lines path\n"
13086 "\n"
13087 msgstr ""
13088 " read-lines шлях\n"
13089 "\n"
13090
13091 #. type: textblock
13092 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
13093 msgid ""
13094 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13095 "C<CRLF> character sequences are I<not> returned."
13096 msgstr ""
13097
13098 #. type: textblock
13099 #: ../fish/guestfish-actions.pod:3847
13100 msgid ""
13101 "Note that this function cannot correctly handle binary files (specifically, "
13102 "files containing C<\\0> character which is treated as end of line).  For "
13103 "those you need to use the L</read-file> function which has a more complex "
13104 "interface."
13105 msgstr ""
13106
13107 #. type: =head2
13108 #: ../fish/guestfish-actions.pod:3852
13109 msgid "readdir"
13110 msgstr "readdir"
13111
13112 #. type: verbatim
13113 #: ../fish/guestfish-actions.pod:3854
13114 #, no-wrap
13115 msgid ""
13116 " readdir dir\n"
13117 "\n"
13118 msgstr ""
13119 " readdir каталог\n"
13120 "\n"
13121
13122 #. type: textblock
13123 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
13124 msgid "This returns the list of directory entries in directory C<dir>."
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
13129 msgid ""
13130 "All entries in the directory are returned, including C<.> and C<..>.  The "
13131 "entries are I<not> sorted, but returned in the same order as the underlying "
13132 "filesystem."
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13137 msgid ""
13138 "Also this call returns basic file type information about each file.  The "
13139 "C<ftyp> field will contain one of the following characters:"
13140 msgstr ""
13141
13142 #. type: =item
13143 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
13144 msgid "'b'"
13145 msgstr "'b'"
13146
13147 #. type: textblock
13148 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
13149 msgid "Block special"
13150 msgstr "Блоковий особливий"
13151
13152 #. type: =item
13153 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
13154 msgid "'c'"
13155 msgstr "'c'"
13156
13157 #. type: textblock
13158 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
13159 msgid "Char special"
13160 msgstr "Символьний особливий"
13161
13162 #. type: =item
13163 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
13164 msgid "'d'"
13165 msgstr "'d'"
13166
13167 #. type: textblock
13168 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
13169 msgid "Directory"
13170 msgstr "Каталог"
13171
13172 #. type: =item
13173 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
13174 msgid "'f'"
13175 msgstr "'f'"
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
13179 msgid "FIFO (named pipe)"
13180 msgstr "FIFO (іменований канал)"
13181
13182 #. type: =item
13183 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
13184 msgid "'l'"
13185 msgstr "'l'"
13186
13187 #. type: textblock
13188 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
13189 msgid "Symbolic link"
13190 msgstr "Символічне посилання"
13191
13192 #. type: =item
13193 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
13194 msgid "'r'"
13195 msgstr "'r'"
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13199 msgid "Regular file"
13200 msgstr "Звичайний файл"
13201
13202 #. type: =item
13203 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13204 msgid "'s'"
13205 msgstr "'s'"
13206
13207 #. type: textblock
13208 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13209 msgid "Socket"
13210 msgstr "Сокет"
13211
13212 #. type: =item
13213 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13214 msgid "'u'"
13215 msgstr "'u'"
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13219 msgid "Unknown file type"
13220 msgstr "Невідомий тип файла"
13221
13222 #. type: =item
13223 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13224 msgid "'?'"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13229 msgid ""
13230 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13231 msgstr ""
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:3906
13235 msgid ""
13236 "This function is primarily intended for use by programs.  To get a simple "
13237 "list of names, use L</ls>.  To get a printable directory for human "
13238 "consumption, use L</ll>."
13239 msgstr ""
13240
13241 #. type: =head2
13242 #: ../fish/guestfish-actions.pod:3910
13243 msgid "readlink"
13244 msgstr "readlink"
13245
13246 #. type: verbatim
13247 #: ../fish/guestfish-actions.pod:3912
13248 #, no-wrap
13249 msgid ""
13250 " readlink path\n"
13251 "\n"
13252 msgstr ""
13253 " readlink шлях\n"
13254 "\n"
13255
13256 #. type: textblock
13257 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
13258 msgid "This command reads the target of a symbolic link."
13259 msgstr ""
13260
13261 #. type: =head2
13262 #: ../fish/guestfish-actions.pod:3916
13263 msgid "readlinklist"
13264 msgstr "readlinklist"
13265
13266 #. type: verbatim
13267 #: ../fish/guestfish-actions.pod:3918
13268 #, no-wrap
13269 msgid ""
13270 " readlinklist path 'names ...'\n"
13271 "\n"
13272 msgstr ""
13273
13274 #. type: textblock
13275 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
13276 msgid ""
13277 "This call allows you to do a C<readlink> operation on multiple files, where "
13278 "all files are in the directory C<path>.  C<names> is the list of files from "
13279 "this directory."
13280 msgstr ""
13281
13282 #. type: textblock
13283 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
13284 msgid ""
13285 "On return you get a list of strings, with a one-to-one correspondence to the "
13286 "C<names> list.  Each string is the value of the symbolic link."
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
13291 msgid ""
13292 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13293 "result string is the empty string C<\"\">.  However the whole operation is "
13294 "completed even if there were C<readlink(2)> errors, and so you can call this "
13295 "function with names where you don't know if they are symbolic links already "
13296 "(albeit slightly less efficient)."
13297 msgstr ""
13298
13299 #. type: textblock
13300 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
13301 msgid ""
13302 "This call is intended for programs that want to efficiently list a directory "
13303 "contents without making many round-trips.  Very long directory listings "
13304 "might cause the protocol message size to be exceeded, causing this call to "
13305 "fail.  The caller must split up such requests into smaller groups of names."
13306 msgstr ""
13307
13308 #. type: =head2
13309 #: ../fish/guestfish-actions.pod:3942
13310 msgid "realpath"
13311 msgstr "realpath"
13312
13313 #. type: verbatim
13314 #: ../fish/guestfish-actions.pod:3944
13315 #, no-wrap
13316 msgid ""
13317 " realpath path\n"
13318 "\n"
13319 msgstr ""
13320 " realpath шлях\n"
13321 "\n"
13322
13323 #. type: textblock
13324 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
13325 msgid ""
13326 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13327 "has no C<.>, C<..> or symbolic link path elements."
13328 msgstr ""
13329
13330 #. type: =head2
13331 #: ../fish/guestfish-actions.pod:3949
13332 msgid "removexattr"
13333 msgstr "removexattr"
13334
13335 #. type: verbatim
13336 #: ../fish/guestfish-actions.pod:3951
13337 #, no-wrap
13338 msgid ""
13339 " removexattr xattr path\n"
13340 "\n"
13341 msgstr ""
13342
13343 #. type: textblock
13344 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
13345 msgid ""
13346 "This call removes the extended attribute named C<xattr> of the file C<path>."
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../fish/guestfish-actions.pod:3956
13351 msgid "See also: L</lremovexattr>, L<attr(5)>."
13352 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13353
13354 #. type: =head2
13355 #: ../fish/guestfish-actions.pod:3958
13356 msgid "resize2fs"
13357 msgstr "resize2fs"
13358
13359 #. type: verbatim
13360 #: ../fish/guestfish-actions.pod:3960
13361 #, no-wrap
13362 msgid ""
13363 " resize2fs device\n"
13364 "\n"
13365 msgstr ""
13366 " resize2fs пристрій\n"
13367 "\n"
13368
13369 #. type: textblock
13370 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
13371 msgid ""
13372 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13373 "underlying device."
13374 msgstr ""
13375
13376 #. type: textblock
13377 #: ../fish/guestfish-actions.pod:3965
13378 msgid ""
13379 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13380 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13381 "gives an error about this and sometimes not.  In any case, it is always safe "
13382 "to call L</e2fsck-f> before calling this function."
13383 msgstr ""
13384
13385 #. type: =head2
13386 #: ../fish/guestfish-actions.pod:3971
13387 msgid "resize2fs-M"
13388 msgstr "resize2fs-M"
13389
13390 #. type: verbatim
13391 #: ../fish/guestfish-actions.pod:3973
13392 #, no-wrap
13393 msgid ""
13394 " resize2fs-M device\n"
13395 "\n"
13396 msgstr ""
13397 " resize2fs-M пристрій\n"
13398 "\n"
13399
13400 #. type: textblock
13401 #: ../fish/guestfish-actions.pod:3975
13402 msgid ""
13403 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13404 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13405 "command."
13406 msgstr ""
13407
13408 #. type: textblock
13409 #: ../fish/guestfish-actions.pod:3979
13410 msgid ""
13411 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13412 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13413 "multiplied together, give the resulting size of the minimal filesystem in "
13414 "bytes."
13415 msgstr ""
13416
13417 #. type: =head2
13418 #: ../fish/guestfish-actions.pod:3984
13419 msgid "resize2fs-size"
13420 msgstr "resize2fs-size"
13421
13422 #. type: verbatim
13423 #: ../fish/guestfish-actions.pod:3986
13424 #, no-wrap
13425 msgid ""
13426 " resize2fs-size device size\n"
13427 "\n"
13428 msgstr ""
13429
13430 #. type: textblock
13431 #: ../fish/guestfish-actions.pod:3988
13432 msgid ""
13433 "This command is the same as L</resize2fs> except that it allows you to "
13434 "specify the new size (in bytes) explicitly."
13435 msgstr ""
13436
13437 #. type: =head2
13438 #: ../fish/guestfish-actions.pod:3991
13439 msgid "rm"
13440 msgstr "rm"
13441
13442 #. type: verbatim
13443 #: ../fish/guestfish-actions.pod:3993
13444 #, no-wrap
13445 msgid ""
13446 " rm path\n"
13447 "\n"
13448 msgstr ""
13449 " rm шлях\n"
13450 "\n"
13451
13452 #. type: textblock
13453 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
13454 msgid "Remove the single file C<path>."
13455 msgstr ""
13456
13457 #. type: =head2
13458 #: ../fish/guestfish-actions.pod:3997
13459 msgid "rm-rf"
13460 msgstr "rm-rf"
13461
13462 #. type: verbatim
13463 #: ../fish/guestfish-actions.pod:3999
13464 #, no-wrap
13465 msgid ""
13466 " rm-rf path\n"
13467 "\n"
13468 msgstr ""
13469 " rm-rf шлях\n"
13470 "\n"
13471
13472 #. type: textblock
13473 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
13474 msgid ""
13475 "Remove the file or directory C<path>, recursively removing the contents if "
13476 "its a directory.  This is like the C<rm -rf> shell command."
13477 msgstr ""
13478
13479 #. type: =head2
13480 #: ../fish/guestfish-actions.pod:4005
13481 msgid "rmdir"
13482 msgstr "rmdir"
13483
13484 #. type: verbatim
13485 #: ../fish/guestfish-actions.pod:4007
13486 #, no-wrap
13487 msgid ""
13488 " rmdir path\n"
13489 "\n"
13490 msgstr ""
13491 " rmdir шлях\n"
13492 "\n"
13493
13494 #. type: textblock
13495 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
13496 msgid "Remove the single directory C<path>."
13497 msgstr ""
13498
13499 #. type: =head2
13500 #: ../fish/guestfish-actions.pod:4011
13501 msgid "rmmountpoint"
13502 msgstr "rmmountpoint"
13503
13504 #. type: verbatim
13505 #: ../fish/guestfish-actions.pod:4013
13506 #, no-wrap
13507 msgid ""
13508 " rmmountpoint exemptpath\n"
13509 "\n"
13510 msgstr ""
13511
13512 #. type: textblock
13513 #: ../fish/guestfish-actions.pod:4015
13514 msgid ""
13515 "This calls removes a mountpoint that was previously created with L</"
13516 "mkmountpoint>.  See L</mkmountpoint> for full details."
13517 msgstr ""
13518
13519 #. type: =head2
13520 #: ../fish/guestfish-actions.pod:4019
13521 msgid "scrub-device"
13522 msgstr "scrub-device"
13523
13524 #. type: verbatim
13525 #: ../fish/guestfish-actions.pod:4021
13526 #, no-wrap
13527 msgid ""
13528 " scrub-device device\n"
13529 "\n"
13530 msgstr ""
13531 " scrub-device пристрій\n"
13532 "\n"
13533
13534 #. type: textblock
13535 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
13536 msgid ""
13537 "This command writes patterns over C<device> to make data retrieval more "
13538 "difficult."
13539 msgstr ""
13540
13541 #. type: textblock
13542 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
13543 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
13544 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
13545 msgid ""
13546 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13547 "more details."
13548 msgstr ""
13549
13550 #. type: =head2
13551 #: ../fish/guestfish-actions.pod:4032
13552 msgid "scrub-file"
13553 msgstr "scrub-file"
13554
13555 #. type: verbatim
13556 #: ../fish/guestfish-actions.pod:4034
13557 #, no-wrap
13558 msgid ""
13559 " scrub-file file\n"
13560 "\n"
13561 msgstr ""
13562 " scrub-file файл\n"
13563 "\n"
13564
13565 #. type: textblock
13566 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
13567 msgid ""
13568 "This command writes patterns over a file to make data retrieval more "
13569 "difficult."
13570 msgstr ""
13571
13572 #. type: textblock
13573 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
13574 msgid "The file is I<removed> after scrubbing."
13575 msgstr ""
13576
13577 #. type: =head2
13578 #: ../fish/guestfish-actions.pod:4044
13579 msgid "scrub-freespace"
13580 msgstr "scrub-freespace"
13581
13582 #. type: verbatim
13583 #: ../fish/guestfish-actions.pod:4046
13584 #, no-wrap
13585 msgid ""
13586 " scrub-freespace dir\n"
13587 "\n"
13588 msgstr ""
13589 " scrub-freespace каталог\n"
13590 "\n"
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:4048
13594 msgid ""
13595 "This command creates the directory C<dir> and then fills it with files until "
13596 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13597 "deletes them.  The intention is to scrub any free space on the partition "
13598 "containing C<dir>."
13599 msgstr ""
13600
13601 #. type: =head2
13602 #: ../fish/guestfish-actions.pod:4057
13603 msgid "set-append"
13604 msgstr "set-append"
13605
13606 #. type: =head2
13607 #: ../fish/guestfish-actions.pod:4059
13608 msgid "append"
13609 msgstr ""
13610
13611 #. type: verbatim
13612 #: ../fish/guestfish-actions.pod:4061
13613 #, no-wrap
13614 msgid ""
13615 " set-append append\n"
13616 "\n"
13617 msgstr ""
13618
13619 #. type: textblock
13620 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
13621 msgid ""
13622 "This function is used to add additional options to the guest kernel command "
13623 "line."
13624 msgstr ""
13625
13626 #. type: textblock
13627 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
13628 msgid ""
13629 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13630 "environment variable."
13631 msgstr ""
13632
13633 #. type: textblock
13634 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
13635 msgid ""
13636 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13637 "(libguestfs always adds a few of its own)."
13638 msgstr ""
13639
13640 #. type: =head2
13641 #: ../fish/guestfish-actions.pod:4072
13642 msgid "set-attach-method"
13643 msgstr "set-attach-method"
13644
13645 #. type: =head2
13646 #: ../fish/guestfish-actions.pod:4074
13647 msgid "attach-method"
13648 msgstr ""
13649
13650 #. type: verbatim
13651 #: ../fish/guestfish-actions.pod:4076
13652 #, no-wrap
13653 msgid ""
13654 " set-attach-method attachmethod\n"
13655 "\n"
13656 msgstr ""
13657
13658 #. type: textblock
13659 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13660 msgid ""
13661 "Set the method that libguestfs uses to connect to the back end guestfsd "
13662 "daemon.  Possible methods are:"
13663 msgstr ""
13664
13665 #. type: =item
13666 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13667 #: ../src/guestfs.pod:2703
13668 msgid "C<appliance>"
13669 msgstr "C<appliance>"
13670
13671 #. type: textblock
13672 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13673 msgid ""
13674 "Launch an appliance and connect to it.  This is the ordinary method and the "
13675 "default."
13676 msgstr ""
13677
13678 #. type: =item
13679 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
13680 msgid "C<unix:I<path>>"
13681 msgstr "C<unix:I<шлях>>"
13682
13683 #. type: textblock
13684 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
13685 msgid "Connect to the Unix domain socket I<path>."
13686 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13687
13688 #. type: textblock
13689 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
13690 msgid ""
13691 "This method lets you connect to an existing daemon or (using virtio-serial) "
13692 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13693 "RUNNING DAEMONS>."
13694 msgstr ""
13695
13696 #. type: =head2
13697 #: ../fish/guestfish-actions.pod:4098
13698 msgid "set-autosync"
13699 msgstr "set-autosync"
13700
13701 #. type: =head2
13702 #: ../fish/guestfish-actions.pod:4100
13703 msgid "autosync"
13704 msgstr "autosync"
13705
13706 #. type: verbatim
13707 #: ../fish/guestfish-actions.pod:4102
13708 #, no-wrap
13709 msgid ""
13710 " set-autosync true|false\n"
13711 "\n"
13712 msgstr ""
13713 " set-autosync true|false\n"
13714 "\n"
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13718 msgid ""
13719 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13720 "effort attempt to make filesystems consistent and synchronized when the "
13721 "handle is closed (also if the program exits without closing handles)."
13722 msgstr ""
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13726 msgid ""
13727 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13728 "disabled by default)."
13729 msgstr ""
13730
13731 #. type: =head2
13732 #: ../fish/guestfish-actions.pod:4112
13733 msgid "set-direct"
13734 msgstr "set-direct"
13735
13736 #. type: =head2
13737 #: ../fish/guestfish-actions.pod:4114
13738 msgid "direct"
13739 msgstr "direct"
13740
13741 #. type: verbatim
13742 #: ../fish/guestfish-actions.pod:4116
13743 #, no-wrap
13744 msgid ""
13745 " set-direct true|false\n"
13746 "\n"
13747 msgstr ""
13748 " set-direct true|false\n"
13749 "\n"
13750
13751 #. type: textblock
13752 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13753 msgid ""
13754 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13755 "passed directly through to the appliance once it is launched."
13756 msgstr ""
13757
13758 #. type: textblock
13759 #: ../fish/guestfish-actions.pod:4122
13760 msgid ""
13761 "One consequence of this is that log messages aren't caught by the library "
13762 "and handled by L</set-log-message-callback>, but go straight to stdout."
13763 msgstr ""
13764
13765 #. type: textblock
13766 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13767 msgid "You probably don't want to use this unless you know what you are doing."
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13772 msgid "The default is disabled."
13773 msgstr ""
13774
13775 #. type: =head2
13776 #: ../fish/guestfish-actions.pod:4131
13777 msgid "set-e2label"
13778 msgstr "set-e2label"
13779
13780 #. type: verbatim
13781 #: ../fish/guestfish-actions.pod:4133
13782 #, no-wrap
13783 msgid ""
13784 " set-e2label device label\n"
13785 "\n"
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13790 msgid ""
13791 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13792 "C<label>.  Filesystem labels are limited to 16 characters."
13793 msgstr ""
13794
13795 #. type: textblock
13796 #: ../fish/guestfish-actions.pod:4139
13797 msgid ""
13798 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13799 "label on a filesystem."
13800 msgstr ""
13801
13802 #. type: =head2
13803 #: ../fish/guestfish-actions.pod:4142
13804 msgid "set-e2uuid"
13805 msgstr "set-e2uuid"
13806
13807 #. type: verbatim
13808 #: ../fish/guestfish-actions.pod:4144
13809 #, no-wrap
13810 msgid ""
13811 " set-e2uuid device uuid\n"
13812 "\n"
13813 msgstr ""
13814
13815 #. type: textblock
13816 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13817 msgid ""
13818 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13819 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13820 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:4151
13825 msgid ""
13826 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13827 "UUID of a filesystem."
13828 msgstr ""
13829
13830 #. type: =head2
13831 #: ../fish/guestfish-actions.pod:4154
13832 msgid "set-memsize"
13833 msgstr "set-memsize"
13834
13835 #. type: =head2
13836 #: ../fish/guestfish-actions.pod:4156
13837 msgid "memsize"
13838 msgstr ""
13839
13840 #. type: verbatim
13841 #: ../fish/guestfish-actions.pod:4158
13842 #, no-wrap
13843 msgid ""
13844 " set-memsize memsize\n"
13845 "\n"
13846 msgstr ""
13847
13848 #. type: textblock
13849 #: ../fish/guestfish-actions.pod:4160
13850 msgid ""
13851 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13852 "This only has any effect if called before L</launch>."
13853 msgstr ""
13854
13855 #. type: textblock
13856 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13857 msgid ""
13858 "You can also change this by setting the environment variable "
13859 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13860 msgstr ""
13861
13862 #. type: =head2
13863 #: ../fish/guestfish-actions.pod:4171
13864 msgid "set-network"
13865 msgstr "set-network"
13866
13867 #. type: =head2
13868 #: ../fish/guestfish-actions.pod:4173
13869 msgid "network"
13870 msgstr "network"
13871
13872 #. type: verbatim
13873 #: ../fish/guestfish-actions.pod:4175
13874 #, no-wrap
13875 msgid ""
13876 " set-network true|false\n"
13877 "\n"
13878 msgstr ""
13879 " set-network true|false\n"
13880 "\n"
13881
13882 #. type: textblock
13883 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13884 msgid ""
13885 "If C<network> is true, then the network is enabled in the libguestfs "
13886 "appliance.  The default is false."
13887 msgstr ""
13888
13889 #. type: textblock
13890 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13891 msgid ""
13892 "This affects whether commands are able to access the network (see L<guestfs"
13893 "(3)/RUNNING COMMANDS>)."
13894 msgstr ""
13895
13896 #. type: textblock
13897 #: ../fish/guestfish-actions.pod:4183
13898 msgid ""
13899 "You must call this before calling L</launch>, otherwise it has no effect."
13900 msgstr ""
13901
13902 #. type: =head2
13903 #: ../fish/guestfish-actions.pod:4186
13904 msgid "set-path"
13905 msgstr "set-path"
13906
13907 #. type: verbatim
13908 #: ../fish/guestfish-actions.pod:4190
13909 #, no-wrap
13910 msgid ""
13911 " set-path searchpath\n"
13912 "\n"
13913 msgstr ""
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13917 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13922 msgid ""
13923 "The default is C<$libdir/guestfs> unless overridden by setting "
13924 "C<LIBGUESTFS_PATH> environment variable."
13925 msgstr ""
13926
13927 #. type: textblock
13928 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13929 msgid "Setting C<path> to C<NULL> restores the default path."
13930 msgstr ""
13931
13932 #. type: =head2
13933 #: ../fish/guestfish-actions.pod:4199
13934 msgid "set-pgroup"
13935 msgstr ""
13936
13937 #. type: =head2
13938 #: ../fish/guestfish-actions.pod:4201
13939 msgid "pgroup"
13940 msgstr ""
13941
13942 #. type: verbatim
13943 #: ../fish/guestfish-actions.pod:4203
13944 #, no-wrap
13945 msgid ""
13946 " set-pgroup true|false\n"
13947 "\n"
13948 msgstr ""
13949
13950 #. type: textblock
13951 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13952 msgid ""
13953 "If C<pgroup> is true, child processes are placed into their own process "
13954 "group."
13955 msgstr ""
13956
13957 #. type: textblock
13958 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13959 msgid ""
13960 "The practical upshot of this is that signals like C<SIGINT> (from users "
13961 "pressing C<^C>) won't be received by the child process."
13962 msgstr ""
13963
13964 #. type: textblock
13965 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13966 msgid ""
13967 "The default for this flag is false, because usually you want C<^C> to kill "
13968 "the subprocess."
13969 msgstr ""
13970
13971 #. type: =head2
13972 #: ../fish/guestfish-actions.pod:4214
13973 msgid "set-qemu"
13974 msgstr "set-qemu"
13975
13976 #. type: =head2
13977 #: ../fish/guestfish-actions.pod:4216
13978 msgid "qemu"
13979 msgstr "qemu"
13980
13981 #. type: verbatim
13982 #: ../fish/guestfish-actions.pod:4218
13983 #, no-wrap
13984 msgid ""
13985 " set-qemu qemu\n"
13986 "\n"
13987 msgstr ""
13988 " set-qemu qemu\n"
13989 "\n"
13990
13991 #. type: textblock
13992 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13993 msgid "Set the qemu binary that we will use."
13994 msgstr ""
13995
13996 #. type: textblock
13997 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13998 msgid ""
13999 "The default is chosen when the library was compiled by the configure script."
14000 msgstr ""
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
14004 msgid ""
14005 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14006 "variable."
14007 msgstr ""
14008
14009 #. type: textblock
14010 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
14011 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14012 msgstr ""
14013
14014 #. type: textblock
14015 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
14016 msgid ""
14017 "Note that you should call this function as early as possible after creating "
14018 "the handle.  This is because some pre-launch operations depend on testing "
14019 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14020 "don't retest features, and so you might see inconsistent results.  Using the "
14021 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14022 "the qemu binary at the same time as the handle is created."
14023 msgstr ""
14024
14025 #. type: =head2
14026 #: ../fish/guestfish-actions.pod:4238
14027 msgid "set-recovery-proc"
14028 msgstr "set-recovery-proc"
14029
14030 #. type: =head2
14031 #: ../fish/guestfish-actions.pod:4240
14032 msgid "recovery-proc"
14033 msgstr "recovery-proc"
14034
14035 #. type: verbatim
14036 #: ../fish/guestfish-actions.pod:4242
14037 #, no-wrap
14038 msgid ""
14039 " set-recovery-proc true|false\n"
14040 "\n"
14041 msgstr ""
14042 " set-recovery-proc true|false\n"
14043 "\n"
14044
14045 #. type: textblock
14046 #: ../fish/guestfish-actions.pod:4244
14047 msgid ""
14048 "If this is called with the parameter C<false> then L</launch> does not "
14049 "create a recovery process.  The purpose of the recovery process is to stop "
14050 "runaway qemu processes in the case where the main program aborts abruptly."
14051 msgstr ""
14052
14053 #. type: textblock
14054 #: ../fish/guestfish-actions.pod:4249
14055 msgid ""
14056 "This only has any effect if called before L</launch>, and the default is "
14057 "true."
14058 msgstr ""
14059
14060 #. type: textblock
14061 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
14062 msgid ""
14063 "About the only time when you would want to disable this is if the main "
14064 "process will fork itself into the background (\"daemonize\" itself).  In "
14065 "this case the recovery process thinks that the main program has disappeared "
14066 "and so kills qemu, which is not very helpful."
14067 msgstr ""
14068
14069 #. type: =head2
14070 #: ../fish/guestfish-actions.pod:4258
14071 msgid "set-selinux"
14072 msgstr "set-selinux"
14073
14074 #. type: =head2
14075 #: ../fish/guestfish-actions.pod:4260
14076 msgid "selinux"
14077 msgstr "selinux"
14078
14079 #. type: verbatim
14080 #: ../fish/guestfish-actions.pod:4262
14081 #, no-wrap
14082 msgid ""
14083 " set-selinux true|false\n"
14084 "\n"
14085 msgstr ""
14086 " set-selinux true|false\n"
14087 "\n"
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
14091 msgid ""
14092 "This sets the selinux flag that is passed to the appliance at boot time.  "
14093 "The default is C<selinux=0> (disabled)."
14094 msgstr ""
14095
14096 #. type: textblock
14097 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
14098 msgid ""
14099 "Note that if SELinux is enabled, it is always in Permissive mode "
14100 "(C<enforcing=0>)."
14101 msgstr ""
14102
14103 #. type: =head2
14104 #: ../fish/guestfish-actions.pod:4273
14105 msgid "set-trace"
14106 msgstr "set-trace"
14107
14108 #. type: =head2
14109 #: ../fish/guestfish-actions.pod:4275
14110 msgid "trace"
14111 msgstr "trace"
14112
14113 #. type: verbatim
14114 #: ../fish/guestfish-actions.pod:4277
14115 #, no-wrap
14116 msgid ""
14117 " set-trace true|false\n"
14118 "\n"
14119 msgstr ""
14120 " set-trace true|false\n"
14121 "\n"
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
14125 msgid ""
14126 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14127 "return values are traced."
14128 msgstr ""
14129
14130 #. type: textblock
14131 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
14132 msgid ""
14133 "If you want to trace C API calls into libguestfs (and other libraries) then "
14134 "possibly a better way is to use the external ltrace(1) command."
14135 msgstr ""
14136
14137 #. type: textblock
14138 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
14139 msgid ""
14140 "Command traces are disabled unless the environment variable "
14141 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14142 msgstr ""
14143
14144 #. type: textblock
14145 #: ../fish/guestfish-actions.pod:4289
14146 msgid ""
14147 "Trace messages are normally sent to C<stderr>, unless you register a "
14148 "callback to send them somewhere else (see L</set-event-callback>)."
14149 msgstr ""
14150
14151 #. type: =head2
14152 #: ../fish/guestfish-actions.pod:4293
14153 msgid "set-verbose"
14154 msgstr "set-verbose"
14155
14156 #. type: =head2
14157 #: ../fish/guestfish-actions.pod:4295
14158 msgid "verbose"
14159 msgstr ""
14160
14161 #. type: verbatim
14162 #: ../fish/guestfish-actions.pod:4297
14163 #, no-wrap
14164 msgid ""
14165 " set-verbose true|false\n"
14166 "\n"
14167 msgstr ""
14168 " set-verbose true|false\n"
14169 "\n"
14170
14171 #. type: textblock
14172 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
14173 msgid "If C<verbose> is true, this turns on verbose messages."
14174 msgstr ""
14175
14176 #. type: textblock
14177 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
14178 msgid ""
14179 "Verbose messages are disabled unless the environment variable "
14180 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14181 msgstr ""
14182
14183 #. type: textblock
14184 #: ../fish/guestfish-actions.pod:4304
14185 msgid ""
14186 "Verbose messages are normally sent to C<stderr>, unless you register a "
14187 "callback to send them somewhere else (see L</set-event-callback>)."
14188 msgstr ""
14189
14190 #. type: =head2
14191 #: ../fish/guestfish-actions.pod:4308
14192 msgid "setcon"
14193 msgstr "setcon"
14194
14195 #. type: verbatim
14196 #: ../fish/guestfish-actions.pod:4310
14197 #, no-wrap
14198 msgid ""
14199 " setcon context\n"
14200 "\n"
14201 msgstr ""
14202 " setcon контекст\n"
14203 "\n"
14204
14205 #. type: textblock
14206 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
14207 msgid ""
14208 "This sets the SELinux security context of the daemon to the string "
14209 "C<context>."
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
14214 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14215 msgstr ""
14216
14217 #. type: =head2
14218 #: ../fish/guestfish-actions.pod:4317
14219 msgid "setxattr"
14220 msgstr "setxattr"
14221
14222 #. type: verbatim
14223 #: ../fish/guestfish-actions.pod:4319
14224 #, no-wrap
14225 msgid ""
14226 " setxattr xattr val vallen path\n"
14227 "\n"
14228 msgstr ""
14229
14230 #. type: textblock
14231 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
14232 msgid ""
14233 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14234 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14235 msgstr ""
14236
14237 #. type: textblock
14238 #: ../fish/guestfish-actions.pod:4325
14239 msgid "See also: L</lsetxattr>, L<attr(5)>."
14240 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14241
14242 #. type: =head2
14243 #: ../fish/guestfish-actions.pod:4327
14244 msgid "sfdisk"
14245 msgstr "sfdisk"
14246
14247 #. type: verbatim
14248 #: ../fish/guestfish-actions.pod:4329
14249 #, no-wrap
14250 msgid ""
14251 " sfdisk device cyls heads sectors 'lines ...'\n"
14252 "\n"
14253 msgstr ""
14254
14255 #. type: textblock
14256 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
14257 msgid ""
14258 "This is a direct interface to the L<sfdisk(8)> program for creating "
14259 "partitions on block devices."
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
14264 msgid "C<device> should be a block device, for example C</dev/sda>."
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
14269 msgid ""
14270 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14271 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14272 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14273 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14274 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14275 "the kernel) cannot work out the right geometry and you will need to tell it."
14276 msgstr ""
14277
14278 #. type: textblock
14279 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
14280 msgid ""
14281 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14282 "refer to the L<sfdisk(8)> manpage."
14283 msgstr ""
14284
14285 #. type: textblock
14286 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
14287 msgid ""
14288 "To create a single partition occupying the whole disk, you would pass "
14289 "C<lines> as a single element list, when the single element being the string "
14290 "C<,> (comma)."
14291 msgstr ""
14292
14293 #. type: textblock
14294 #: ../fish/guestfish-actions.pod:4351
14295 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14296 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14297
14298 #. type: textblock
14299 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
14300 #: ../fish/guestfish-actions.pod:4402
14301 msgid ""
14302 "I<This function is deprecated.> In new code, use the L</part_add> call "
14303 "instead."
14304 msgstr ""
14305
14306 #. type: =head2
14307 #: ../fish/guestfish-actions.pod:4364
14308 msgid "sfdiskM"
14309 msgstr "sfdiskM"
14310
14311 #. type: verbatim
14312 #: ../fish/guestfish-actions.pod:4366
14313 #, no-wrap
14314 msgid ""
14315 " sfdiskM device 'lines ...'\n"
14316 "\n"
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:4368
14321 msgid ""
14322 "This is a simplified interface to the L</sfdisk> command, where partition "
14323 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14324 "you don't need to specify the cyls, heads and sectors parameters which were "
14325 "rarely if ever used anyway."
14326 msgstr ""
14327
14328 #. type: textblock
14329 #: ../fish/guestfish-actions.pod:4374
14330 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14331 msgstr ""
14332 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14333
14334 #. type: =head2
14335 #: ../fish/guestfish-actions.pod:4387
14336 msgid "sfdisk-N"
14337 msgstr "sfdisk-N"
14338
14339 #. type: verbatim
14340 #: ../fish/guestfish-actions.pod:4389
14341 #, no-wrap
14342 msgid ""
14343 " sfdisk-N device partnum cyls heads sectors line\n"
14344 "\n"
14345 msgstr ""
14346
14347 #. type: textblock
14348 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
14349 msgid ""
14350 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14351 "(note: C<n> counts from 1)."
14352 msgstr ""
14353
14354 #. type: textblock
14355 #: ../fish/guestfish-actions.pod:4394
14356 msgid ""
14357 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14358 "cyls/heads/sectors parameters."
14359 msgstr ""
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:4397
14363 msgid "See also: L</part-add>"
14364 msgstr "Див. також L</part-add>"
14365
14366 #. type: =head2
14367 #: ../fish/guestfish-actions.pod:4409
14368 msgid "sfdisk-disk-geometry"
14369 msgstr "sfdisk-disk-geometry"
14370
14371 #. type: verbatim
14372 #: ../fish/guestfish-actions.pod:4411
14373 #, no-wrap
14374 msgid ""
14375 " sfdisk-disk-geometry device\n"
14376 "\n"
14377 msgstr ""
14378 " sfdisk-disk-geometry пристрій\n"
14379 "\n"
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:4413
14383 msgid ""
14384 "This displays the disk geometry of C<device> read from the partition table.  "
14385 "Especially in the case where the underlying block device has been resized, "
14386 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14387 "kernel-geometry>)."
14388 msgstr ""
14389
14390 #. type: textblock
14391 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
14392 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
14393 msgid "The result is in human-readable format, and not designed to be parsed."
14394 msgstr ""
14395
14396 #. type: =head2
14397 #: ../fish/guestfish-actions.pod:4421
14398 msgid "sfdisk-kernel-geometry"
14399 msgstr "sfdisk-kernel-geometry"
14400
14401 #. type: verbatim
14402 #: ../fish/guestfish-actions.pod:4423
14403 #, no-wrap
14404 msgid ""
14405 " sfdisk-kernel-geometry device\n"
14406 "\n"
14407 msgstr ""
14408 " sfdisk-kernel-geometry пристрій\n"
14409 "\n"
14410
14411 #. type: textblock
14412 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
14413 msgid "This displays the kernel's idea of the geometry of C<device>."
14414 msgstr ""
14415
14416 #. type: =head2
14417 #: ../fish/guestfish-actions.pod:4430
14418 msgid "sfdisk-l"
14419 msgstr "sfdisk-l"
14420
14421 #. type: verbatim
14422 #: ../fish/guestfish-actions.pod:4432
14423 #, no-wrap
14424 msgid ""
14425 " sfdisk-l device\n"
14426 "\n"
14427 msgstr ""
14428 " sfdisk-l пристрій\n"
14429 "\n"
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
14433 msgid ""
14434 "This displays the partition table on C<device>, in the human-readable output "
14435 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14436 msgstr ""
14437
14438 #. type: textblock
14439 #: ../fish/guestfish-actions.pod:4438
14440 msgid "See also: L</part-list>"
14441 msgstr "Див. також L</part-list>"
14442
14443 #. type: textblock
14444 #: ../fish/guestfish-actions.pod:4440
14445 msgid ""
14446 "I<This function is deprecated.> In new code, use the L</part_list> call "
14447 "instead."
14448 msgstr ""
14449
14450 #. type: =head2
14451 #: ../fish/guestfish-actions.pod:4447
14452 msgid "sh"
14453 msgstr "sh"
14454
14455 #. type: verbatim
14456 #: ../fish/guestfish-actions.pod:4449
14457 #, no-wrap
14458 msgid ""
14459 " sh command\n"
14460 "\n"
14461 msgstr ""
14462 " sh команда\n"
14463 "\n"
14464
14465 #. type: textblock
14466 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14467 msgid ""
14468 "This call runs a command from the guest filesystem via the guest's C</bin/"
14469 "sh>."
14470 msgstr ""
14471
14472 #. type: textblock
14473 #: ../fish/guestfish-actions.pod:4454
14474 msgid "This is like L</command>, but passes the command to:"
14475 msgstr ""
14476
14477 #. type: verbatim
14478 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
14479 #, no-wrap
14480 msgid ""
14481 " /bin/sh -c \"command\"\n"
14482 "\n"
14483 msgstr ""
14484
14485 #. type: textblock
14486 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
14487 msgid ""
14488 "Depending on the guest's shell, this usually results in wildcards being "
14489 "expanded, shell expressions being interpolated and so on."
14490 msgstr ""
14491
14492 #. type: textblock
14493 #: ../fish/guestfish-actions.pod:4462
14494 msgid "All the provisos about L</command> apply to this call."
14495 msgstr ""
14496
14497 #. type: =head2
14498 #: ../fish/guestfish-actions.pod:4464
14499 msgid "sh-lines"
14500 msgstr "sh-lines"
14501
14502 #. type: verbatim
14503 #: ../fish/guestfish-actions.pod:4466
14504 #, no-wrap
14505 msgid ""
14506 " sh-lines command\n"
14507 "\n"
14508 msgstr ""
14509 " sh-lines команда\n"
14510 "\n"
14511
14512 #. type: textblock
14513 #: ../fish/guestfish-actions.pod:4468
14514 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14515 msgstr ""
14516
14517 #. type: textblock
14518 #: ../fish/guestfish-actions.pod:4471
14519 msgid "See also: L</command-lines>"
14520 msgstr "Див. також L</command-lines>"
14521
14522 #. type: =head2
14523 #: ../fish/guestfish-actions.pod:4473
14524 msgid "sleep"
14525 msgstr "sleep"
14526
14527 #. type: verbatim
14528 #: ../fish/guestfish-actions.pod:4475
14529 #, no-wrap
14530 msgid ""
14531 " sleep secs\n"
14532 "\n"
14533 msgstr ""
14534 " sleep час_у_секундах\n"
14535 "\n"
14536
14537 #. type: textblock
14538 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
14539 msgid "Sleep for C<secs> seconds."
14540 msgstr ""
14541
14542 #. type: =head2
14543 #: ../fish/guestfish-actions.pod:4479
14544 msgid "stat"
14545 msgstr "stat"
14546
14547 #. type: verbatim
14548 #: ../fish/guestfish-actions.pod:4481
14549 #, no-wrap
14550 msgid ""
14551 " stat path\n"
14552 "\n"
14553 msgstr ""
14554 " stat шлях\n"
14555 "\n"
14556
14557 #. type: textblock
14558 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
14559 msgid "This is the same as the C<stat(2)> system call."
14560 msgstr ""
14561
14562 #. type: =head2
14563 #: ../fish/guestfish-actions.pod:4487
14564 msgid "statvfs"
14565 msgstr "statvfs"
14566
14567 #. type: verbatim
14568 #: ../fish/guestfish-actions.pod:4489
14569 #, no-wrap
14570 msgid ""
14571 " statvfs path\n"
14572 "\n"
14573 msgstr ""
14574 " statvfs шлях\n"
14575 "\n"
14576
14577 #. type: textblock
14578 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
14579 msgid ""
14580 "Returns file system statistics for any mounted file system.  C<path> should "
14581 "be a file or directory in the mounted file system (typically it is the mount "
14582 "point itself, but it doesn't need to be)."
14583 msgstr ""
14584
14585 #. type: textblock
14586 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
14587 msgid "This is the same as the C<statvfs(2)> system call."
14588 msgstr ""
14589
14590 #. type: =head2
14591 #: ../fish/guestfish-actions.pod:4497
14592 msgid "strings"
14593 msgstr "strings"
14594
14595 #. type: verbatim
14596 #: ../fish/guestfish-actions.pod:4499
14597 #, no-wrap
14598 msgid ""
14599 " strings path\n"
14600 "\n"
14601 msgstr ""
14602 " strings шлях\n"
14603 "\n"
14604
14605 #. type: textblock
14606 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
14607 msgid ""
14608 "This runs the L<strings(1)> command on a file and returns the list of "
14609 "printable strings found."
14610 msgstr ""
14611
14612 #. type: =head2
14613 #: ../fish/guestfish-actions.pod:4507
14614 msgid "strings-e"
14615 msgstr "strings-e"
14616
14617 #. type: verbatim
14618 #: ../fish/guestfish-actions.pod:4509
14619 #, no-wrap
14620 msgid ""
14621 " strings-e encoding path\n"
14622 "\n"
14623 msgstr ""
14624 " strings-e кодування шлях\n"
14625 "\n"
14626
14627 #. type: textblock
14628 #: ../fish/guestfish-actions.pod:4511
14629 msgid ""
14630 "This is like the L</strings> command, but allows you to specify the encoding "
14631 "of strings that are looked for in the source file C<path>."
14632 msgstr ""
14633
14634 #. type: textblock
14635 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
14636 msgid "Allowed encodings are:"
14637 msgstr "Можливими кодуваннями є:"
14638
14639 #. type: =item
14640 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14641 msgid "s"
14642 msgstr "s"
14643
14644 #. type: textblock
14645 #: ../fish/guestfish-actions.pod:4521
14646 msgid ""
14647 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14648 "ISO-8859-X (this is what L</strings> uses)."
14649 msgstr ""
14650
14651 #. type: =item
14652 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
14653 msgid "S"
14654 msgstr "S"
14655
14656 #. type: textblock
14657 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
14658 msgid "Single 8-bit-byte characters."
14659 msgstr "Окремі 8-бітові-байтові символи."
14660
14661 #. type: =item
14662 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14663 msgid "b"
14664 msgstr "b"
14665
14666 #. type: textblock
14667 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14668 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14669 msgstr ""
14670
14671 #. type: =item
14672 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14673 msgid "l (lower case letter L)"
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14678 msgid ""
14679 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14680 "examining binaries in Windows guests."
14681 msgstr ""
14682
14683 #. type: =item
14684 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
14685 msgid "B"
14686 msgstr "B"
14687
14688 #. type: textblock
14689 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
14690 msgid "32-bit big endian such as UCS-4BE."
14691 msgstr ""
14692
14693 #. type: =item
14694 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
14695 msgid "L"
14696 msgstr "L"
14697
14698 #. type: textblock
14699 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
14700 msgid "32-bit little endian such as UCS-4LE."
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14705 msgid "The returned strings are transcoded to UTF-8."
14706 msgstr ""
14707
14708 #. type: =head2
14709 #: ../fish/guestfish-actions.pod:4553
14710 msgid "swapoff-device"
14711 msgstr "swapoff-device"
14712
14713 #. type: verbatim
14714 #: ../fish/guestfish-actions.pod:4555
14715 #, no-wrap
14716 msgid ""
14717 " swapoff-device device\n"
14718 "\n"
14719 msgstr ""
14720 " swapoff-device пристрій\n"
14721 "\n"
14722
14723 #. type: textblock
14724 #: ../fish/guestfish-actions.pod:4557
14725 msgid ""
14726 "This command disables the libguestfs appliance swap device or partition "
14727 "named C<device>.  See L</swapon-device>."
14728 msgstr ""
14729
14730 #. type: =head2
14731 #: ../fish/guestfish-actions.pod:4561
14732 msgid "swapoff-file"
14733 msgstr "swapoff-file"
14734
14735 #. type: verbatim
14736 #: ../fish/guestfish-actions.pod:4563
14737 #, no-wrap
14738 msgid ""
14739 " swapoff-file file\n"
14740 "\n"
14741 msgstr ""
14742 " swapoff-file файл\n"
14743 "\n"
14744
14745 #. type: textblock
14746 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
14747 msgid "This command disables the libguestfs appliance swap on file."
14748 msgstr ""
14749
14750 #. type: =head2
14751 #: ../fish/guestfish-actions.pod:4567
14752 msgid "swapoff-label"
14753 msgstr "swapoff-label"
14754
14755 #. type: verbatim
14756 #: ../fish/guestfish-actions.pod:4569
14757 #, no-wrap
14758 msgid ""
14759 " swapoff-label label\n"
14760 "\n"
14761 msgstr ""
14762 " swapoff-label мітка\n"
14763 "\n"
14764
14765 #. type: textblock
14766 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14767 msgid ""
14768 "This command disables the libguestfs appliance swap on labeled swap "
14769 "partition."
14770 msgstr ""
14771
14772 #. type: =head2
14773 #: ../fish/guestfish-actions.pod:4574
14774 msgid "swapoff-uuid"
14775 msgstr "swapoff-uuid"
14776
14777 #. type: verbatim
14778 #: ../fish/guestfish-actions.pod:4576
14779 #, no-wrap
14780 msgid ""
14781 " swapoff-uuid uuid\n"
14782 "\n"
14783 msgstr ""
14784 " swapoff-uuid uuid\n"
14785 "\n"
14786
14787 #. type: textblock
14788 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14789 msgid ""
14790 "This command disables the libguestfs appliance swap partition with the given "
14791 "UUID."
14792 msgstr ""
14793
14794 #. type: =head2
14795 #: ../fish/guestfish-actions.pod:4581
14796 msgid "swapon-device"
14797 msgstr "swapon-device"
14798
14799 #. type: verbatim
14800 #: ../fish/guestfish-actions.pod:4583
14801 #, no-wrap
14802 msgid ""
14803 " swapon-device device\n"
14804 "\n"
14805 msgstr ""
14806 " swapon-device пристрій\n"
14807 "\n"
14808
14809 #. type: textblock
14810 #: ../fish/guestfish-actions.pod:4585
14811 msgid ""
14812 "This command enables the libguestfs appliance to use the swap device or "
14813 "partition named C<device>.  The increased memory is made available for all "
14814 "commands, for example those run using L</command> or L</sh>."
14815 msgstr ""
14816
14817 #. type: textblock
14818 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14819 msgid ""
14820 "Note that you should not swap to existing guest swap partitions unless you "
14821 "know what you are doing.  They may contain hibernation information, or other "
14822 "information that the guest doesn't want you to trash.  You also risk leaking "
14823 "information about the host to the guest this way.  Instead, attach a new "
14824 "host device to the guest and swap on that."
14825 msgstr ""
14826
14827 #. type: =head2
14828 #: ../fish/guestfish-actions.pod:4597
14829 msgid "swapon-file"
14830 msgstr "swapon-file"
14831
14832 #. type: verbatim
14833 #: ../fish/guestfish-actions.pod:4599
14834 #, no-wrap
14835 msgid ""
14836 " swapon-file file\n"
14837 "\n"
14838 msgstr ""
14839 " swapon-file файл\n"
14840 "\n"
14841
14842 #. type: textblock
14843 #: ../fish/guestfish-actions.pod:4601
14844 msgid ""
14845 "This command enables swap to a file.  See L</swapon-device> for other notes."
14846 msgstr ""
14847
14848 #. type: =head2
14849 #: ../fish/guestfish-actions.pod:4604
14850 msgid "swapon-label"
14851 msgstr "swapon-label"
14852
14853 #. type: verbatim
14854 #: ../fish/guestfish-actions.pod:4606
14855 #, no-wrap
14856 msgid ""
14857 " swapon-label label\n"
14858 "\n"
14859 msgstr ""
14860 " swapon-label мітка\n"
14861 "\n"
14862
14863 #. type: textblock
14864 #: ../fish/guestfish-actions.pod:4608
14865 msgid ""
14866 "This command enables swap to a labeled swap partition.  See L</swapon-"
14867 "device> for other notes."
14868 msgstr ""
14869
14870 #. type: =head2
14871 #: ../fish/guestfish-actions.pod:4611
14872 msgid "swapon-uuid"
14873 msgstr "swapon-uuid"
14874
14875 #. type: verbatim
14876 #: ../fish/guestfish-actions.pod:4613
14877 #, no-wrap
14878 msgid ""
14879 " swapon-uuid uuid\n"
14880 "\n"
14881 msgstr ""
14882 " swapon-uuid uuid\n"
14883 "\n"
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-actions.pod:4615
14887 msgid ""
14888 "This command enables swap to a swap partition with the given UUID.  See L</"
14889 "swapon-device> for other notes."
14890 msgstr ""
14891
14892 #. type: =head2
14893 #: ../fish/guestfish-actions.pod:4618
14894 msgid "sync"
14895 msgstr "sync"
14896
14897 #. type: verbatim
14898 #: ../fish/guestfish-actions.pod:4620
14899 #, no-wrap
14900 msgid ""
14901 " sync\n"
14902 "\n"
14903 msgstr ""
14904 " sync\n"
14905 "\n"
14906
14907 #. type: textblock
14908 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14909 msgid ""
14910 "This syncs the disk, so that any writes are flushed through to the "
14911 "underlying disk image."
14912 msgstr ""
14913
14914 #. type: textblock
14915 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14916 msgid ""
14917 "You should always call this if you have modified a disk image, before "
14918 "closing the handle."
14919 msgstr ""
14920
14921 #. type: =head2
14922 #: ../fish/guestfish-actions.pod:4628
14923 msgid "tail"
14924 msgstr "tail"
14925
14926 #. type: verbatim
14927 #: ../fish/guestfish-actions.pod:4630
14928 #, no-wrap
14929 msgid ""
14930 " tail path\n"
14931 "\n"
14932 msgstr ""
14933 " tail шлях\n"
14934 "\n"
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14938 msgid ""
14939 "This command returns up to the last 10 lines of a file as a list of strings."
14940 msgstr ""
14941
14942 #. type: =head2
14943 #: ../fish/guestfish-actions.pod:4638
14944 msgid "tail-n"
14945 msgstr "tail-n"
14946
14947 #. type: verbatim
14948 #: ../fish/guestfish-actions.pod:4640
14949 #, no-wrap
14950 msgid ""
14951 " tail-n nrlines path\n"
14952 "\n"
14953 msgstr ""
14954
14955 #. type: textblock
14956 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14957 msgid ""
14958 "If the parameter C<nrlines> is a positive number, this returns the last "
14959 "C<nrlines> lines of the file C<path>."
14960 msgstr ""
14961
14962 #. type: textblock
14963 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14964 msgid ""
14965 "If the parameter C<nrlines> is a negative number, this returns lines from "
14966 "the file C<path>, starting with the C<-nrlines>th line."
14967 msgstr ""
14968
14969 #. type: =head2
14970 #: ../fish/guestfish-actions.pod:4653
14971 msgid "tar-in"
14972 msgstr "tar-in"
14973
14974 #. type: verbatim
14975 #: ../fish/guestfish-actions.pod:4655
14976 #, no-wrap
14977 msgid ""
14978 " tar-in (tarfile|-) directory\n"
14979 "\n"
14980 msgstr ""
14981 " tar-in (файл_tar|-) каталог\n"
14982 "\n"
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14986 msgid ""
14987 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14988 "tar file) into C<directory>."
14989 msgstr ""
14990
14991 #. type: textblock
14992 #: ../fish/guestfish-actions.pod:4660
14993 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14994 msgstr ""
14995
14996 #. type: =head2
14997 #: ../fish/guestfish-actions.pod:4665
14998 msgid "tar-out"
14999 msgstr "tar-out"
15000
15001 #. type: verbatim
15002 #: ../fish/guestfish-actions.pod:4667
15003 #, no-wrap
15004 msgid ""
15005 " tar-out directory (tarfile|-)\n"
15006 "\n"
15007 msgstr ""
15008 " tar-out каталог (файл tar|-)\n"
15009 "\n"
15010
15011 #. type: textblock
15012 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
15013 msgid ""
15014 "This command packs the contents of C<directory> and downloads it to local "
15015 "file C<tarfile>."
15016 msgstr ""
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4672
15020 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15021 msgstr ""
15022
15023 #. type: =head2
15024 #: ../fish/guestfish-actions.pod:4677
15025 msgid "tgz-in"
15026 msgstr "tgz-in"
15027
15028 #. type: verbatim
15029 #: ../fish/guestfish-actions.pod:4679
15030 #, no-wrap
15031 msgid ""
15032 " tgz-in (tarball|-) directory\n"
15033 "\n"
15034 msgstr ""
15035 " tgz-in (архів tar|-) каталог\n"
15036 "\n"
15037
15038 #. type: textblock
15039 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
15040 msgid ""
15041 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15042 "tar file) into C<directory>."
15043 msgstr ""
15044
15045 #. type: textblock
15046 #: ../fish/guestfish-actions.pod:4684
15047 msgid "To upload an uncompressed tarball, use L</tar-in>."
15048 msgstr ""
15049
15050 #. type: =head2
15051 #: ../fish/guestfish-actions.pod:4688
15052 msgid "tgz-out"
15053 msgstr "tgz-out"
15054
15055 #. type: verbatim
15056 #: ../fish/guestfish-actions.pod:4690
15057 #, no-wrap
15058 msgid ""
15059 " tgz-out directory (tarball|-)\n"
15060 "\n"
15061 msgstr ""
15062 " tgz-out каталог (архів tar|-)\n"
15063 "\n"
15064
15065 #. type: textblock
15066 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
15067 msgid ""
15068 "This command packs the contents of C<directory> and downloads it to local "
15069 "file C<tarball>."
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4695
15074 msgid "To download an uncompressed tarball, use L</tar-out>."
15075 msgstr ""
15076
15077 #. type: =head2
15078 #: ../fish/guestfish-actions.pod:4699
15079 msgid "touch"
15080 msgstr "touch"
15081
15082 #. type: verbatim
15083 #: ../fish/guestfish-actions.pod:4701
15084 #, no-wrap
15085 msgid ""
15086 " touch path\n"
15087 "\n"
15088 msgstr ""
15089 " touch шлях\n"
15090 "\n"
15091
15092 #. type: textblock
15093 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
15094 msgid ""
15095 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15096 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15097 "length file."
15098 msgstr ""
15099
15100 #. type: textblock
15101 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
15102 msgid ""
15103 "This command only works on regular files, and will fail on other file types "
15104 "such as directories, symbolic links, block special etc."
15105 msgstr ""
15106
15107 #. type: =head2
15108 #: ../fish/guestfish-actions.pod:4710
15109 msgid "truncate"
15110 msgstr "truncate"
15111
15112 #. type: verbatim
15113 #: ../fish/guestfish-actions.pod:4712
15114 #, no-wrap
15115 msgid ""
15116 " truncate path\n"
15117 "\n"
15118 msgstr ""
15119 " truncate шлях\n"
15120 "\n"
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
15124 msgid ""
15125 "This command truncates C<path> to a zero-length file.  The file must exist "
15126 "already."
15127 msgstr ""
15128
15129 #. type: =head2
15130 #: ../fish/guestfish-actions.pod:4717
15131 msgid "truncate-size"
15132 msgstr "truncate-size"
15133
15134 #. type: verbatim
15135 #: ../fish/guestfish-actions.pod:4719
15136 #, no-wrap
15137 msgid ""
15138 " truncate-size path size\n"
15139 "\n"
15140 msgstr ""
15141 " truncate-size шлях розмір\n"
15142 "\n"
15143
15144 #. type: textblock
15145 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
15146 msgid ""
15147 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15148 "already."
15149 msgstr ""
15150
15151 #. type: textblock
15152 #: ../fish/guestfish-actions.pod:4724
15153 msgid ""
15154 "If the current file size is less than C<size> then the file is extended to "
15155 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15156 "blocks are not allocated for the file until you write to it).  To create a "
15157 "non-sparse file of zeroes, use L</fallocate64> instead."
15158 msgstr ""
15159
15160 #. type: =head2
15161 #: ../fish/guestfish-actions.pod:4730
15162 msgid "tune2fs-l"
15163 msgstr "tune2fs-l"
15164
15165 #. type: verbatim
15166 #: ../fish/guestfish-actions.pod:4732
15167 #, no-wrap
15168 msgid ""
15169 " tune2fs-l device\n"
15170 "\n"
15171 msgstr ""
15172 " tune2fs-l пристрій\n"
15173 "\n"
15174
15175 #. type: textblock
15176 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
15177 msgid ""
15178 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15179 "C<device>."
15180 msgstr ""
15181
15182 #. type: textblock
15183 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
15184 msgid ""
15185 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15186 "for more details.  The list of fields returned isn't clearly defined, and "
15187 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15188 "and the filesystem itself."
15189 msgstr ""
15190
15191 #. type: =head2
15192 #: ../fish/guestfish-actions.pod:4742
15193 msgid "txz-in"
15194 msgstr "txz-in"
15195
15196 #. type: verbatim
15197 #: ../fish/guestfish-actions.pod:4744
15198 #, no-wrap
15199 msgid ""
15200 " txz-in (tarball|-) directory\n"
15201 "\n"
15202 msgstr ""
15203 " txz-in (архів tar|-) каталог\n"
15204 "\n"
15205
15206 #. type: textblock
15207 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
15208 msgid ""
15209 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15210 "tar file) into C<directory>."
15211 msgstr ""
15212
15213 #. type: =head2
15214 #: ../fish/guestfish-actions.pod:4751
15215 msgid "txz-out"
15216 msgstr "txz-out"
15217
15218 #. type: verbatim
15219 #: ../fish/guestfish-actions.pod:4753
15220 #, no-wrap
15221 msgid ""
15222 " txz-out directory (tarball|-)\n"
15223 "\n"
15224 msgstr ""
15225 " txz-out каталог (архів tar|-)\n"
15226 "\n"
15227
15228 #. type: textblock
15229 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
15230 msgid ""
15231 "This command packs the contents of C<directory> and downloads it to local "
15232 "file C<tarball> (as an xz compressed tar archive)."
15233 msgstr ""
15234
15235 #. type: =head2
15236 #: ../fish/guestfish-actions.pod:4760
15237 msgid "umask"
15238 msgstr "umask"
15239
15240 #. type: verbatim
15241 #: ../fish/guestfish-actions.pod:4762
15242 #, no-wrap
15243 msgid ""
15244 " umask mask\n"
15245 "\n"
15246 msgstr ""
15247 " umask маска\n"
15248 "\n"
15249
15250 #. type: textblock
15251 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
15252 msgid ""
15253 "This function sets the mask used for creating new files and device nodes to "
15254 "C<mask & 0777>."
15255 msgstr ""
15256
15257 #. type: textblock
15258 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15259 msgid ""
15260 "Typical umask values would be C<022> which creates new files with "
15261 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15262 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15263 msgstr ""
15264
15265 #. type: textblock
15266 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
15267 msgid ""
15268 "The default umask is C<022>.  This is important because it means that "
15269 "directories and device nodes will be created with C<0644> or C<0755> mode "
15270 "even if you specify C<0777>."
15271 msgstr ""
15272
15273 #. type: textblock
15274 #: ../fish/guestfish-actions.pod:4776
15275 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15276 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15277
15278 #. type: textblock
15279 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
15280 msgid "This call returns the previous umask."
15281 msgstr ""
15282
15283 #. type: =head2
15284 #: ../fish/guestfish-actions.pod:4781
15285 msgid "umount"
15286 msgstr "umount"
15287
15288 #. type: =head2
15289 #: ../fish/guestfish-actions.pod:4783
15290 msgid "unmount"
15291 msgstr "unmount"
15292
15293 #. type: verbatim
15294 #: ../fish/guestfish-actions.pod:4785
15295 #, no-wrap
15296 msgid ""
15297 " umount pathordevice\n"
15298 "\n"
15299 msgstr ""
15300 " umount шлях_або_пристрій\n"
15301 "\n"
15302
15303 #. type: textblock
15304 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
15305 msgid ""
15306 "This unmounts the given filesystem.  The filesystem may be specified either "
15307 "by its mountpoint (path) or the device which contains the filesystem."
15308 msgstr ""
15309
15310 #. type: =head2
15311 #: ../fish/guestfish-actions.pod:4791
15312 msgid "umount-all"
15313 msgstr "umount-all"
15314
15315 #. type: =head2
15316 #: ../fish/guestfish-actions.pod:4793
15317 msgid "unmount-all"
15318 msgstr "unmount-all"
15319
15320 #. type: verbatim
15321 #: ../fish/guestfish-actions.pod:4795
15322 #, no-wrap
15323 msgid ""
15324 " umount-all\n"
15325 "\n"
15326 msgstr ""
15327 " umount-all\n"
15328 "\n"
15329
15330 #. type: textblock
15331 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
15332 msgid "This unmounts all mounted filesystems."
15333 msgstr ""
15334
15335 #. type: textblock
15336 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
15337 msgid "Some internal mounts are not unmounted by this call."
15338 msgstr ""
15339
15340 #. type: =head2
15341 #: ../fish/guestfish-actions.pod:4801
15342 msgid "upload"
15343 msgstr "upload"
15344
15345 #. type: verbatim
15346 #: ../fish/guestfish-actions.pod:4803
15347 #, no-wrap
15348 msgid ""
15349 " upload (filename|-) remotefilename\n"
15350 "\n"
15351 msgstr ""
15352 " upload (назва_файла|-) назва_віддаленого_файла\n"
15353 "\n"
15354
15355 #. type: textblock
15356 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
15357 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
15358 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15359 msgstr ""
15360
15361 #. type: textblock
15362 #: ../fish/guestfish-actions.pod:4810
15363 msgid "See also L</download>."
15364 msgstr "Див. також L</download>."
15365
15366 #. type: =head2
15367 #: ../fish/guestfish-actions.pod:4814
15368 msgid "upload-offset"
15369 msgstr "upload-offset"
15370
15371 #. type: verbatim
15372 #: ../fish/guestfish-actions.pod:4816
15373 #, no-wrap
15374 msgid ""
15375 " upload-offset (filename|-) remotefilename offset\n"
15376 "\n"
15377 msgstr ""
15378 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15379 "\n"
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
15383 msgid ""
15384 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15385 "The intention is to overwrite parts of existing files or devices, although "
15386 "if a non-existant file is specified then it is created with a \"hole\" "
15387 "before C<offset>.  The size of the data written is implicit in the size of "
15388 "the source C<filename>."
15389 msgstr ""
15390
15391 #. type: textblock
15392 #: ../fish/guestfish-actions.pod:4828
15393 msgid ""
15394 "Note that there is no limit on the amount of data that can be uploaded with "
15395 "this call, unlike with L</pwrite>, and this call always writes the full "
15396 "amount unless an error occurs."
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:4833
15401 msgid "See also L</upload>, L</pwrite>."
15402 msgstr "Див. також L</upload>, L</pwrite>."
15403
15404 #. type: =head2
15405 #: ../fish/guestfish-actions.pod:4837
15406 msgid "utimens"
15407 msgstr "utimens"
15408
15409 #. type: verbatim
15410 #: ../fish/guestfish-actions.pod:4839
15411 #, no-wrap
15412 msgid ""
15413 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15414 "\n"
15415 msgstr ""
15416
15417 #. type: textblock
15418 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
15419 msgid "This command sets the timestamps of a file with nanosecond precision."
15420 msgstr ""
15421
15422 #. type: textblock
15423 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
15424 msgid ""
15425 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15426 "from the epoch."
15427 msgstr ""
15428
15429 #. type: textblock
15430 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
15431 msgid ""
15432 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15433 "nanoseconds from the epoch."
15434 msgstr ""
15435
15436 #. type: textblock
15437 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
15438 msgid ""
15439 "If the C<*nsecs> field contains the special value C<-1> then the "
15440 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15441 "ignored in this case)."
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
15446 msgid ""
15447 "If the C<*nsecs> field contains the special value C<-2> then the "
15448 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15449 "in this case)."
15450 msgstr ""
15451
15452 #. type: =head2
15453 #: ../fish/guestfish-actions.pod:4858
15454 msgid "version"
15455 msgstr "version"
15456
15457 #. type: verbatim
15458 #: ../fish/guestfish-actions.pod:4860
15459 #, no-wrap
15460 msgid ""
15461 " version\n"
15462 "\n"
15463 msgstr ""
15464 " version\n"
15465 "\n"
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
15469 msgid ""
15470 "Return the libguestfs version number that the program is linked against."
15471 msgstr ""
15472
15473 #. type: textblock
15474 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15475 msgid ""
15476 "Note that because of dynamic linking this is not necessarily the version of "
15477 "libguestfs that you compiled against.  You can compile the program, and then "
15478 "at runtime dynamically link against a completely different C<libguestfs.so> "
15479 "library."
15480 msgstr ""
15481
15482 #. type: textblock
15483 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
15484 msgid ""
15485 "This call was added in version C<1.0.58>.  In previous versions of "
15486 "libguestfs there was no way to get the version number.  From C code you can "
15487 "use dynamic linker functions to find out if this symbol exists (if it "
15488 "doesn't, then it's an earlier version)."
15489 msgstr ""
15490
15491 #. type: textblock
15492 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
15493 msgid ""
15494 "The call returns a structure with four elements.  The first three (C<major>, "
15495 "C<minor> and C<release>) are numbers and correspond to the usual version "
15496 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15497 "but may be used for distro-specific information."
15498 msgstr ""
15499
15500 #. type: textblock
15501 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
15502 msgid ""
15503 "To construct the original version string: C<$major.$minor.$release$extra>"
15504 msgstr ""
15505
15506 #. type: textblock
15507 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
15508 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../fish/guestfish-actions.pod:4887
15513 msgid ""
15514 "I<Note:> Don't use this call to test for availability of features.  In "
15515 "enterprise distributions we backport features from later versions into "
15516 "earlier versions, making this an unreliable way to test for features.  Use "
15517 "L</available> instead."
15518 msgstr ""
15519
15520 #. type: =head2
15521 #: ../fish/guestfish-actions.pod:4893
15522 msgid "vfs-label"
15523 msgstr "vfs-label"
15524
15525 #. type: verbatim
15526 #: ../fish/guestfish-actions.pod:4895
15527 #, no-wrap
15528 msgid ""
15529 " vfs-label device\n"
15530 "\n"
15531 msgstr ""
15532 " vfs-label пристрій\n"
15533 "\n"
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
15537 msgid "This returns the filesystem label of the filesystem on C<device>."
15538 msgstr ""
15539
15540 #. type: textblock
15541 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
15542 msgid "If the filesystem is unlabeled, this returns the empty string."
15543 msgstr ""
15544
15545 #. type: textblock
15546 #: ../fish/guestfish-actions.pod:4902
15547 msgid "To find a filesystem from the label, use L</findfs-label>."
15548 msgstr ""
15549
15550 #. type: =head2
15551 #: ../fish/guestfish-actions.pod:4904
15552 msgid "vfs-type"
15553 msgstr "vfs-type"
15554
15555 #. type: verbatim
15556 #: ../fish/guestfish-actions.pod:4906
15557 #, no-wrap
15558 msgid ""
15559 " vfs-type device\n"
15560 "\n"
15561 msgstr ""
15562 " vfs-type пристрій\n"
15563 "\n"
15564
15565 #. type: textblock
15566 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
15567 msgid ""
15568 "This command gets the filesystem type corresponding to the filesystem on "
15569 "C<device>."
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
15574 msgid ""
15575 "For most filesystems, the result is the name of the Linux VFS module which "
15576 "would be used to mount this filesystem if you mounted it without specifying "
15577 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15578 msgstr ""
15579
15580 #. type: =head2
15581 #: ../fish/guestfish-actions.pod:4916
15582 msgid "vfs-uuid"
15583 msgstr "vfs-uuid"
15584
15585 #. type: verbatim
15586 #: ../fish/guestfish-actions.pod:4918
15587 #, no-wrap
15588 msgid ""
15589 " vfs-uuid device\n"
15590 "\n"
15591 msgstr ""
15592 " vfs-uuid пристрій\n"
15593 "\n"
15594
15595 #. type: textblock
15596 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
15597 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15598 msgstr ""
15599
15600 #. type: textblock
15601 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
15602 msgid "If the filesystem does not have a UUID, this returns the empty string."
15603 msgstr ""
15604
15605 #. type: textblock
15606 #: ../fish/guestfish-actions.pod:4925
15607 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15608 msgstr ""
15609
15610 #. type: =head2
15611 #: ../fish/guestfish-actions.pod:4927
15612 msgid "vg-activate"
15613 msgstr "vg-activate"
15614
15615 #. type: verbatim
15616 #: ../fish/guestfish-actions.pod:4929
15617 #, no-wrap
15618 msgid ""
15619 " vg-activate true|false 'volgroups ...'\n"
15620 "\n"
15621 msgstr ""
15622
15623 #. type: textblock
15624 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15625 msgid ""
15626 "This command activates or (if C<activate> is false) deactivates all logical "
15627 "volumes in the listed volume groups C<volgroups>."
15628 msgstr ""
15629
15630 #. type: textblock
15631 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
15632 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15633 msgstr ""
15634
15635 #. type: textblock
15636 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
15637 msgid ""
15638 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15639 "activated or deactivated."
15640 msgstr ""
15641
15642 #. type: =head2
15643 #: ../fish/guestfish-actions.pod:4939
15644 msgid "vg-activate-all"
15645 msgstr "vg-activate-all"
15646
15647 #. type: verbatim
15648 #: ../fish/guestfish-actions.pod:4941
15649 #, no-wrap
15650 msgid ""
15651 " vg-activate-all true|false\n"
15652 "\n"
15653 msgstr ""
15654 " vg-activate-all true|false\n"
15655 "\n"
15656
15657 #. type: textblock
15658 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
15659 msgid ""
15660 "This command activates or (if C<activate> is false) deactivates all logical "
15661 "volumes in all volume groups."
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
15666 msgid "This command is the same as running C<vgchange -a y|n>"
15667 msgstr ""
15668
15669 #. type: =head2
15670 #: ../fish/guestfish-actions.pod:4948
15671 msgid "vgcreate"
15672 msgstr "vgcreate"
15673
15674 #. type: verbatim
15675 #: ../fish/guestfish-actions.pod:4950
15676 #, no-wrap
15677 msgid ""
15678 " vgcreate volgroup 'physvols ...'\n"
15679 "\n"
15680 msgstr ""
15681
15682 #. type: textblock
15683 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
15684 msgid ""
15685 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15686 "of physical volumes C<physvols>."
15687 msgstr ""
15688
15689 #. type: =head2
15690 #: ../fish/guestfish-actions.pod:4955
15691 msgid "vglvuuids"
15692 msgstr "vglvuuids"
15693
15694 #. type: verbatim
15695 #: ../fish/guestfish-actions.pod:4957
15696 #, no-wrap
15697 msgid ""
15698 " vglvuuids vgname\n"
15699 "\n"
15700 msgstr ""
15701
15702 #. type: textblock
15703 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
15704 msgid ""
15705 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15706 "volumes created in this volume group."
15707 msgstr ""
15708
15709 #. type: textblock
15710 #: ../fish/guestfish-actions.pod:4962
15711 msgid ""
15712 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15713 "logical volumes and volume groups."
15714 msgstr ""
15715
15716 #. type: textblock
15717 #: ../fish/guestfish-actions.pod:4965
15718 msgid "See also L</vgpvuuids>."
15719 msgstr "Див. також L</vgpvuuids>."
15720
15721 #. type: =head2
15722 #: ../fish/guestfish-actions.pod:4967
15723 msgid "vgpvuuids"
15724 msgstr "vgpvuuids"
15725
15726 #. type: verbatim
15727 #: ../fish/guestfish-actions.pod:4969
15728 #, no-wrap
15729 msgid ""
15730 " vgpvuuids vgname\n"
15731 "\n"
15732 msgstr ""
15733
15734 #. type: textblock
15735 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
15736 msgid ""
15737 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15738 "volumes that this volume group resides on."
15739 msgstr ""
15740
15741 #. type: textblock
15742 #: ../fish/guestfish-actions.pod:4974
15743 msgid ""
15744 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15745 "physical volumes and volume groups."
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4977
15750 msgid "See also L</vglvuuids>."
15751 msgstr "Див. також L</vglvuuids>."
15752
15753 #. type: =head2
15754 #: ../fish/guestfish-actions.pod:4979
15755 msgid "vgremove"
15756 msgstr "vgremove"
15757
15758 #. type: verbatim
15759 #: ../fish/guestfish-actions.pod:4981
15760 #, no-wrap
15761 msgid ""
15762 " vgremove vgname\n"
15763 "\n"
15764 msgstr ""
15765
15766 #. type: textblock
15767 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
15768 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15769 msgstr ""
15770
15771 #. type: textblock
15772 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
15773 msgid ""
15774 "This also forcibly removes all logical volumes in the volume group (if any)."
15775 msgstr ""
15776
15777 #. type: =head2
15778 #: ../fish/guestfish-actions.pod:4988
15779 msgid "vgrename"
15780 msgstr "vgrename"
15781
15782 #. type: verbatim
15783 #: ../fish/guestfish-actions.pod:4990
15784 #, no-wrap
15785 msgid ""
15786 " vgrename volgroup newvolgroup\n"
15787 "\n"
15788 msgstr ""
15789
15790 #. type: textblock
15791 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
15792 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15793 msgstr ""
15794
15795 #. type: =head2
15796 #: ../fish/guestfish-actions.pod:4994
15797 msgid "vgs"
15798 msgstr "vgs"
15799
15800 #. type: verbatim
15801 #: ../fish/guestfish-actions.pod:4996
15802 #, no-wrap
15803 msgid ""
15804 " vgs\n"
15805 "\n"
15806 msgstr ""
15807 " vgs\n"
15808 "\n"
15809
15810 #. type: textblock
15811 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
15812 msgid ""
15813 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15814 "> command."
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15819 msgid ""
15820 "This returns a list of just the volume group names that were detected (eg. "
15821 "C<VolGroup00>)."
15822 msgstr ""
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-actions.pod:5004
15826 msgid "See also L</vgs-full>."
15827 msgstr "Див. також L</vgs-full>."
15828
15829 #. type: =head2
15830 #: ../fish/guestfish-actions.pod:5006
15831 msgid "vgs-full"
15832 msgstr "vgs-full"
15833
15834 #. type: verbatim
15835 #: ../fish/guestfish-actions.pod:5008
15836 #, no-wrap
15837 msgid ""
15838 " vgs-full\n"
15839 "\n"
15840 msgstr ""
15841 " vgs-full\n"
15842 "\n"
15843
15844 #. type: textblock
15845 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15846 msgid ""
15847 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15848 "> command.  The \"full\" version includes all fields."
15849 msgstr ""
15850
15851 #. type: =head2
15852 #: ../fish/guestfish-actions.pod:5013
15853 msgid "vgscan"
15854 msgstr "vgscan"
15855
15856 #. type: verbatim
15857 #: ../fish/guestfish-actions.pod:5015
15858 #, no-wrap
15859 msgid ""
15860 " vgscan\n"
15861 "\n"
15862 msgstr ""
15863 " vgscan\n"
15864 "\n"
15865
15866 #. type: textblock
15867 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15868 msgid ""
15869 "This rescans all block devices and rebuilds the list of LVM physical "
15870 "volumes, volume groups and logical volumes."
15871 msgstr ""
15872
15873 #. type: =head2
15874 #: ../fish/guestfish-actions.pod:5020
15875 msgid "vguuid"
15876 msgstr "vguuid"
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish-actions.pod:5022
15880 #, no-wrap
15881 msgid ""
15882 " vguuid vgname\n"
15883 "\n"
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15888 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15889 msgstr ""
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:5026
15893 msgid "wc-c"
15894 msgstr "wc-c"
15895
15896 #. type: verbatim
15897 #: ../fish/guestfish-actions.pod:5028
15898 #, no-wrap
15899 msgid ""
15900 " wc-c path\n"
15901 "\n"
15902 msgstr ""
15903 " wc-c шлях\n"
15904 "\n"
15905
15906 #. type: textblock
15907 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15908 msgid ""
15909 "This command counts the characters in a file, using the C<wc -c> external "
15910 "command."
15911 msgstr ""
15912
15913 #. type: =head2
15914 #: ../fish/guestfish-actions.pod:5033
15915 msgid "wc-l"
15916 msgstr "wc-l"
15917
15918 #. type: verbatim
15919 #: ../fish/guestfish-actions.pod:5035
15920 #, no-wrap
15921 msgid ""
15922 " wc-l path\n"
15923 "\n"
15924 msgstr ""
15925 " wc-l шлях\n"
15926 "\n"
15927
15928 #. type: textblock
15929 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15930 msgid ""
15931 "This command counts the lines in a file, using the C<wc -l> external command."
15932 msgstr ""
15933
15934 #. type: =head2
15935 #: ../fish/guestfish-actions.pod:5040
15936 msgid "wc-w"
15937 msgstr "wc-w"
15938
15939 #. type: verbatim
15940 #: ../fish/guestfish-actions.pod:5042
15941 #, no-wrap
15942 msgid ""
15943 " wc-w path\n"
15944 "\n"
15945 msgstr ""
15946 " wc-w шлях\n"
15947 "\n"
15948
15949 #. type: textblock
15950 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15951 msgid ""
15952 "This command counts the words in a file, using the C<wc -w> external command."
15953 msgstr ""
15954
15955 #. type: =head2
15956 #: ../fish/guestfish-actions.pod:5047
15957 msgid "write"
15958 msgstr "write"
15959
15960 #. type: verbatim
15961 #: ../fish/guestfish-actions.pod:5049
15962 #, no-wrap
15963 msgid ""
15964 " write path content\n"
15965 "\n"
15966 msgstr ""
15967 " write шлях дані\n"
15968 "\n"
15969
15970 #. type: textblock
15971 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15972 msgid ""
15973 "This call creates a file called C<path>.  The content of the file is the "
15974 "string C<content> (which can contain any 8 bit data)."
15975 msgstr ""
15976
15977 #. type: textblock
15978 #: ../fish/guestfish-actions.pod:5054
15979 msgid "See also L</write-append>."
15980 msgstr ""
15981
15982 #. type: =head2
15983 #: ../fish/guestfish-actions.pod:5059
15984 msgid "write-append"
15985 msgstr ""
15986
15987 #. type: verbatim
15988 #: ../fish/guestfish-actions.pod:5061
15989 #, no-wrap
15990 msgid ""
15991 " write-append path content\n"
15992 "\n"
15993 msgstr ""
15994
15995 #. type: textblock
15996 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15997 msgid ""
15998 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15999 "not exist, then a new file is created."
16000 msgstr ""
16001
16002 #. type: textblock
16003 #: ../fish/guestfish-actions.pod:5066
16004 msgid "See also L</write>."
16005 msgstr ""
16006
16007 #. type: =head2
16008 #: ../fish/guestfish-actions.pod:5071
16009 msgid "write-file"
16010 msgstr "write-file"
16011
16012 #. type: verbatim
16013 #: ../fish/guestfish-actions.pod:5073
16014 #, no-wrap
16015 msgid ""
16016 " write-file path content size\n"
16017 "\n"
16018 msgstr ""
16019
16020 #. type: textblock
16021 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
16022 msgid ""
16023 "This call creates a file called C<path>.  The contents of the file is the "
16024 "string C<content> (which can contain any 8 bit data), with length C<size>."
16025 msgstr ""
16026
16027 #. type: textblock
16028 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
16029 msgid ""
16030 "As a special case, if C<size> is C<0> then the length is calculated using "
16031 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
16036 msgid ""
16037 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16038 "I<not> work, even if the length is specified."
16039 msgstr ""
16040
16041 #. type: textblock
16042 #: ../fish/guestfish-actions.pod:5089
16043 msgid ""
16044 "I<This function is deprecated.> In new code, use the L</write> call instead."
16045 msgstr ""
16046
16047 #. type: =head2
16048 #: ../fish/guestfish-actions.pod:5096
16049 msgid "zegrep"
16050 msgstr "zegrep"
16051
16052 #. type: verbatim
16053 #: ../fish/guestfish-actions.pod:5098
16054 #, no-wrap
16055 msgid ""
16056 " zegrep regex path\n"
16057 "\n"
16058 msgstr ""
16059 " zegrep формальний_вираз шлях\n"
16060 "\n"
16061
16062 #. type: textblock
16063 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
16064 msgid ""
16065 "This calls the external C<zegrep> program and returns the matching lines."
16066 msgstr ""
16067
16068 #. type: =head2
16069 #: ../fish/guestfish-actions.pod:5106
16070 msgid "zegrepi"
16071 msgstr "zegrepi"
16072
16073 #. type: verbatim
16074 #: ../fish/guestfish-actions.pod:5108
16075 #, no-wrap
16076 msgid ""
16077 " zegrepi regex path\n"
16078 "\n"
16079 msgstr ""
16080
16081 #. type: textblock
16082 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
16083 msgid ""
16084 "This calls the external C<zegrep -i> program and returns the matching lines."
16085 msgstr ""
16086
16087 #. type: =head2
16088 #: ../fish/guestfish-actions.pod:5116
16089 msgid "zero"
16090 msgstr "zero"
16091
16092 #. type: verbatim
16093 #: ../fish/guestfish-actions.pod:5118
16094 #, no-wrap
16095 msgid ""
16096 " zero device\n"
16097 "\n"
16098 msgstr ""
16099 " zero пристрій\n"
16100 "\n"
16101
16102 #. type: textblock
16103 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
16104 msgid "This command writes zeroes over the first few blocks of C<device>."
16105 msgstr ""
16106
16107 #. type: textblock
16108 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
16109 msgid ""
16110 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16111 "securely wipe the device).  It should be sufficient to remove any partition "
16112 "tables, filesystem superblocks and so on."
16113 msgstr ""
16114
16115 #. type: textblock
16116 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
16117 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
16118 msgid ""
16119 "If blocks are already zero, then this command avoids writing zeroes.  This "
16120 "prevents the underlying device from becoming non-sparse or growing "
16121 "unnecessarily."
16122 msgstr ""
16123
16124 #. type: textblock
16125 #: ../fish/guestfish-actions.pod:5130
16126 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16127 msgstr ""
16128
16129 #. type: =head2
16130 #: ../fish/guestfish-actions.pod:5133
16131 msgid "zero-device"
16132 msgstr "zero-device"
16133
16134 #. type: verbatim
16135 #: ../fish/guestfish-actions.pod:5135
16136 #, no-wrap
16137 msgid ""
16138 " zero-device device\n"
16139 "\n"
16140 msgstr ""
16141 " zero-device пристрій\n"
16142 "\n"
16143
16144 #. type: textblock
16145 #: ../fish/guestfish-actions.pod:5137
16146 msgid ""
16147 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16148 "which just zeroes the first few blocks of a device."
16149 msgstr ""
16150
16151 #. type: =head2
16152 #: ../fish/guestfish-actions.pod:5148
16153 msgid "zerofree"
16154 msgstr "zerofree"
16155
16156 #. type: verbatim
16157 #: ../fish/guestfish-actions.pod:5150
16158 #, no-wrap
16159 msgid ""
16160 " zerofree device\n"
16161 "\n"
16162 msgstr ""
16163 " zerofree пристрій\n"
16164 "\n"
16165
16166 #. type: textblock
16167 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
16168 msgid ""
16169 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16170 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16171 "possible to compress the filesystem more effectively."
16172 msgstr ""
16173
16174 #. type: textblock
16175 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
16176 msgid "You should B<not> run this program if the filesystem is mounted."
16177 msgstr ""
16178
16179 #. type: textblock
16180 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
16181 msgid ""
16182 "It is possible that using this program can damage the filesystem or data on "
16183 "the filesystem."
16184 msgstr ""
16185
16186 #. type: =head2
16187 #: ../fish/guestfish-actions.pod:5163
16188 msgid "zfgrep"
16189 msgstr "zfgrep"
16190
16191 #. type: verbatim
16192 #: ../fish/guestfish-actions.pod:5165
16193 #, no-wrap
16194 msgid ""
16195 " zfgrep pattern path\n"
16196 "\n"
16197 msgstr ""
16198 " zfgrep шаблон шлях\n"
16199 "\n"
16200
16201 #. type: textblock
16202 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
16203 msgid ""
16204 "This calls the external C<zfgrep> program and returns the matching lines."
16205 msgstr ""
16206
16207 #. type: =head2
16208 #: ../fish/guestfish-actions.pod:5173
16209 msgid "zfgrepi"
16210 msgstr "zfgrepi"
16211
16212 #. type: verbatim
16213 #: ../fish/guestfish-actions.pod:5175
16214 #, no-wrap
16215 msgid ""
16216 " zfgrepi pattern path\n"
16217 "\n"
16218 msgstr ""
16219 " zfgrepi шаблон шлях\n"
16220 "\n"
16221
16222 #. type: textblock
16223 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
16224 msgid ""
16225 "This calls the external C<zfgrep -i> program and returns the matching lines."
16226 msgstr ""
16227
16228 #. type: =head2
16229 #: ../fish/guestfish-actions.pod:5183
16230 msgid "zfile"
16231 msgstr "zfile"
16232
16233 #. type: verbatim
16234 #: ../fish/guestfish-actions.pod:5185
16235 #, no-wrap
16236 msgid ""
16237 " zfile meth path\n"
16238 "\n"
16239 msgstr ""
16240 " zfile метод шлях\n"
16241 "\n"
16242
16243 #. type: textblock
16244 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
16245 msgid ""
16246 "This command runs C<file> after first decompressing C<path> using C<method>."
16247 msgstr ""
16248
16249 #. type: textblock
16250 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
16251 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16252 msgstr ""
16253
16254 #. type: textblock
16255 #: ../fish/guestfish-actions.pod:5192
16256 msgid ""
16257 "Since 1.0.63, use L</file> instead which can now process compressed files."
16258 msgstr ""
16259
16260 #. type: textblock
16261 #: ../fish/guestfish-actions.pod:5195
16262 msgid ""
16263 "I<This function is deprecated.> In new code, use the L</file> call instead."
16264 msgstr ""
16265
16266 #. type: =head2
16267 #: ../fish/guestfish-actions.pod:5202
16268 msgid "zgrep"
16269 msgstr "zgrep"
16270
16271 #. type: verbatim
16272 #: ../fish/guestfish-actions.pod:5204
16273 #, no-wrap
16274 msgid ""
16275 " zgrep regex path\n"
16276 "\n"
16277 msgstr ""
16278 " zgrep формальний_вираз шлях\n"
16279 "\n"
16280
16281 #. type: textblock
16282 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
16283 msgid ""
16284 "This calls the external C<zgrep> program and returns the matching lines."
16285 msgstr ""
16286
16287 #. type: =head2
16288 #: ../fish/guestfish-actions.pod:5212
16289 msgid "zgrepi"
16290 msgstr "zgrepi"
16291
16292 #. type: verbatim
16293 #: ../fish/guestfish-actions.pod:5214
16294 #, no-wrap
16295 msgid ""
16296 " zgrepi regex path\n"
16297 "\n"
16298 msgstr ""
16299 " zgrepi формальний_вираз шлях\n"
16300 "\n"
16301
16302 #. type: textblock
16303 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
16304 msgid ""
16305 "This calls the external C<zgrep -i> program and returns the matching lines."
16306 msgstr ""
16307
16308 #. type: =head2
16309 #: ../fish/guestfish-commands.pod:1
16310 msgid "alloc"
16311 msgstr "alloc"
16312
16313 #. type: =head2
16314 #: ../fish/guestfish-commands.pod:3
16315 msgid "allocate"
16316 msgstr ""
16317
16318 #. type: verbatim
16319 #: ../fish/guestfish-commands.pod:5
16320 #, no-wrap
16321 msgid ""
16322 " alloc filename size\n"
16323 "\n"
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish-commands.pod:7
16328 msgid ""
16329 "This creates an empty (zeroed) file of the given size, and then adds so it "
16330 "can be further examined."
16331 msgstr ""
16332
16333 #. type: textblock
16334 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16335 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16336 msgstr ""
16337
16338 #. type: textblock
16339 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16340 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16341 msgstr ""
16342
16343 #. type: textblock
16344 #: ../fish/guestfish-commands.pod:14
16345 msgid ""
16346 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16347 "image, see L</PREPARED DISK IMAGES>."
16348 msgstr ""
16349
16350 #. type: =head2
16351 #: ../fish/guestfish-commands.pod:17
16352 msgid "copy-in"
16353 msgstr "copy-in"
16354
16355 #. type: verbatim
16356 #: ../fish/guestfish-commands.pod:19
16357 #, no-wrap
16358 msgid ""
16359 " copy-in local [local ...] /remotedir\n"
16360 "\n"
16361 msgstr ""
16362
16363 #. type: textblock
16364 #: ../fish/guestfish-commands.pod:21
16365 msgid ""
16366 "C<copy-in> copies local files or directories recursively into the disk "
16367 "image, placing them in the directory called C</remotedir> (which must "
16368 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16369 "other commands as necessary."
16370 msgstr ""
16371
16372 #. type: textblock
16373 #: ../fish/guestfish-commands.pod:26
16374 msgid ""
16375 "Multiple local files and directories can be specified, but the last "
16376 "parameter must always be a remote directory.  Wildcards cannot be used."
16377 msgstr ""
16378
16379 #. type: =head2
16380 #: ../fish/guestfish-commands.pod:30
16381 msgid "copy-out"
16382 msgstr "copy-out"
16383
16384 #. type: verbatim
16385 #: ../fish/guestfish-commands.pod:32
16386 #, no-wrap
16387 msgid ""
16388 " copy-out remote [remote ...] localdir\n"
16389 "\n"
16390 msgstr ""
16391
16392 #. type: textblock
16393 #: ../fish/guestfish-commands.pod:34
16394 msgid ""
16395 "C<copy-out> copies remote files or directories recursively out of the disk "
16396 "image, placing them on the host disk in a local directory called C<localdir> "
16397 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16398 "download>, L</tar-out> and other commands as necessary."
16399 msgstr ""
16400
16401 #. type: textblock
16402 #: ../fish/guestfish-commands.pod:40
16403 msgid ""
16404 "Multiple remote files and directories can be specified, but the last "
16405 "parameter must always be a local directory.  To download to the current "
16406 "directory, use C<.> as in:"
16407 msgstr ""
16408
16409 #. type: verbatim
16410 #: ../fish/guestfish-commands.pod:44
16411 #, no-wrap
16412 msgid ""
16413 " copy-out /home .\n"
16414 "\n"
16415 msgstr ""
16416 " copy-out /home .\n"
16417 "\n"
16418
16419 #. type: textblock
16420 #: ../fish/guestfish-commands.pod:46
16421 msgid ""
16422 "Wildcards cannot be used in the ordinary command, but you can use them with "
16423 "the help of L</glob> like this:"
16424 msgstr ""
16425
16426 #. type: verbatim
16427 #: ../fish/guestfish-commands.pod:49
16428 #, no-wrap
16429 msgid ""
16430 " glob copy-out /home/* .\n"
16431 "\n"
16432 msgstr ""
16433 " glob copy-out /home/* .\n"
16434 "\n"
16435
16436 #. type: =head2
16437 #: ../fish/guestfish-commands.pod:51
16438 msgid "display"
16439 msgstr ""
16440
16441 #. type: verbatim
16442 #: ../fish/guestfish-commands.pod:53
16443 #, no-wrap
16444 msgid ""
16445 " display filename\n"
16446 "\n"
16447 msgstr ""
16448
16449 #. type: textblock
16450 #: ../fish/guestfish-commands.pod:55
16451 msgid ""
16452 "Use C<display> (a graphical display program) to display an image file.  It "
16453 "downloads the file, and runs C<display> on it."
16454 msgstr ""
16455
16456 #. type: textblock
16457 #: ../fish/guestfish-commands.pod:58
16458 msgid ""
16459 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16460 "environment variable.  For example to use the GNOME display program:"
16461 msgstr ""
16462
16463 #. type: verbatim
16464 #: ../fish/guestfish-commands.pod:61
16465 #, no-wrap
16466 msgid ""
16467 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16468 "\n"
16469 msgstr ""
16470
16471 #. type: textblock
16472 #: ../fish/guestfish-commands.pod:63
16473 msgid "See also L<display(1)>."
16474 msgstr ""
16475
16476 #. type: =head2
16477 #: ../fish/guestfish-commands.pod:65
16478 msgid "echo"
16479 msgstr "echo"
16480
16481 #. type: verbatim
16482 #: ../fish/guestfish-commands.pod:67
16483 #, no-wrap
16484 msgid ""
16485 " echo [params ...]\n"
16486 "\n"
16487 msgstr ""
16488 " echo [параметри...]\n"
16489 "\n"
16490
16491 #. type: textblock
16492 #: ../fish/guestfish-commands.pod:69
16493 msgid "This echos the parameters to the terminal."
16494 msgstr ""
16495
16496 #. type: =head2
16497 #: ../fish/guestfish-commands.pod:71
16498 msgid "edit"
16499 msgstr "edit"
16500
16501 #. type: =head2
16502 #: ../fish/guestfish-commands.pod:73
16503 msgid "vi"
16504 msgstr "vi"
16505
16506 #. type: =head2
16507 #: ../fish/guestfish-commands.pod:75
16508 msgid "emacs"
16509 msgstr "emacs"
16510
16511 #. type: verbatim
16512 #: ../fish/guestfish-commands.pod:77
16513 #, no-wrap
16514 msgid ""
16515 " edit filename\n"
16516 "\n"
16517 msgstr ""
16518 " edit назва_файла\n"
16519 "\n"
16520
16521 #. type: textblock
16522 #: ../fish/guestfish-commands.pod:79
16523 msgid ""
16524 "This is used to edit a file.  It downloads the file, edits it locally using "
16525 "your editor, then uploads the result."
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../fish/guestfish-commands.pod:82
16530 msgid ""
16531 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16532 "or C<emacs> you will get those corresponding editors."
16533 msgstr ""
16534
16535 #. type: =head2
16536 #: ../fish/guestfish-commands.pod:86
16537 msgid "glob"
16538 msgstr "glob"
16539
16540 #. type: verbatim
16541 #: ../fish/guestfish-commands.pod:88
16542 #, no-wrap
16543 msgid ""
16544 " glob command args...\n"
16545 "\n"
16546 msgstr ""
16547 " glob команда параметри...\n"
16548 "\n"
16549
16550 #. type: textblock
16551 #: ../fish/guestfish-commands.pod:90
16552 msgid ""
16553 "Expand wildcards in any paths in the args list, and run C<command> "
16554 "repeatedly on each matching path."
16555 msgstr ""
16556
16557 #. type: textblock
16558 #: ../fish/guestfish-commands.pod:93
16559 msgid "See L</WILDCARDS AND GLOBBING>."
16560 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16561
16562 #. type: =head2
16563 #: ../fish/guestfish-commands.pod:95
16564 msgid "hexedit"
16565 msgstr "hexedit"
16566
16567 #. type: verbatim
16568 #: ../fish/guestfish-commands.pod:97
16569 #, no-wrap
16570 msgid ""
16571 " hexedit <filename|device>\n"
16572 " hexedit <filename|device> <max>\n"
16573 " hexedit <filename|device> <start> <max>\n"
16574 "\n"
16575 msgstr ""
16576
16577 #. type: textblock
16578 #: ../fish/guestfish-commands.pod:101
16579 msgid ""
16580 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16581 "device."
16582 msgstr ""
16583
16584 #. type: textblock
16585 #: ../fish/guestfish-commands.pod:104
16586 msgid ""
16587 "This command works by downloading potentially the whole file or device, "
16588 "editing it locally, then uploading it.  If the file or device is large, you "
16589 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16590 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16591 "usual modifiers allowed such as C<1M> (1 megabyte)."
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../fish/guestfish-commands.pod:111
16596 msgid "For example to edit the first few sectors of a disk you might do:"
16597 msgstr ""
16598
16599 #. type: verbatim
16600 #: ../fish/guestfish-commands.pod:114
16601 #, no-wrap
16602 msgid ""
16603 " hexedit /dev/sda 1M\n"
16604 "\n"
16605 msgstr ""
16606 " hexedit /dev/sda 1M\n"
16607 "\n"
16608
16609 #. type: textblock
16610 #: ../fish/guestfish-commands.pod:116
16611 msgid ""
16612 "which would allow you to edit anywhere within the first megabyte of the disk."
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish-commands.pod:119
16617 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16618 msgstr ""
16619
16620 #. type: verbatim
16621 #: ../fish/guestfish-commands.pod:121
16622 #, no-wrap
16623 msgid ""
16624 " hexedit /dev/sda1 0x400 0x400\n"
16625 "\n"
16626 msgstr ""
16627 " hexedit /dev/sda1 0x400 0x400\n"
16628 "\n"
16629
16630 #. type: textblock
16631 #: ../fish/guestfish-commands.pod:123
16632 msgid "(assuming the superblock is in the standard location)."
16633 msgstr ""
16634
16635 #. type: textblock
16636 #: ../fish/guestfish-commands.pod:125
16637 msgid ""
16638 "This command requires the external L<hexedit(1)> program.  You can specify "
16639 "another program to use by setting the C<HEXEDITOR> environment variable."
16640 msgstr ""
16641
16642 #. type: textblock
16643 #: ../fish/guestfish-commands.pod:129
16644 msgid "See also L</hexdump>."
16645 msgstr "Див. також L</hexdump>."
16646
16647 #. type: =head2
16648 #: ../fish/guestfish-commands.pod:131
16649 msgid "lcd"
16650 msgstr "lcd"
16651
16652 #. type: verbatim
16653 #: ../fish/guestfish-commands.pod:133
16654 #, no-wrap
16655 msgid ""
16656 " lcd directory\n"
16657 "\n"
16658 msgstr ""
16659
16660 #. type: textblock
16661 #: ../fish/guestfish-commands.pod:135
16662 msgid ""
16663 "Change the local directory, ie. the current directory of guestfish itself."
16664 msgstr ""
16665
16666 #. type: textblock
16667 #: ../fish/guestfish-commands.pod:138
16668 msgid "Note that C<!cd> won't do what you might expect."
16669 msgstr ""
16670
16671 #. type: =head2
16672 #: ../fish/guestfish-commands.pod:140
16673 msgid "man"
16674 msgstr "man"
16675
16676 #. type: =head2
16677 #: ../fish/guestfish-commands.pod:142
16678 msgid "manual"
16679 msgstr ""
16680
16681 #. type: verbatim
16682 #: ../fish/guestfish-commands.pod:144
16683 #, no-wrap
16684 msgid ""
16685 "  man\n"
16686 "\n"
16687 msgstr ""
16688 "  man\n"
16689 "\n"
16690
16691 #. type: textblock
16692 #: ../fish/guestfish-commands.pod:146
16693 msgid "Opens the manual page for guestfish."
16694 msgstr ""
16695
16696 #. type: =head2
16697 #: ../fish/guestfish-commands.pod:148
16698 msgid "more"
16699 msgstr "more"
16700
16701 #. type: =head2
16702 #: ../fish/guestfish-commands.pod:150
16703 msgid "less"
16704 msgstr "less"
16705
16706 #. type: verbatim
16707 #: ../fish/guestfish-commands.pod:152
16708 #, no-wrap
16709 msgid ""
16710 " more filename\n"
16711 "\n"
16712 msgstr ""
16713
16714 #. type: verbatim
16715 #: ../fish/guestfish-commands.pod:154
16716 #, no-wrap
16717 msgid ""
16718 " less filename\n"
16719 "\n"
16720 msgstr ""
16721
16722 #. type: textblock
16723 #: ../fish/guestfish-commands.pod:156
16724 msgid "This is used to view a file."
16725 msgstr ""
16726
16727 #. type: textblock
16728 #: ../fish/guestfish-commands.pod:158
16729 msgid ""
16730 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16731 "C<less> you will get the C<less> command specifically."
16732 msgstr ""
16733
16734 #. type: =head2
16735 #: ../fish/guestfish-commands.pod:161
16736 msgid "reopen"
16737 msgstr "reopen"
16738
16739 #. type: verbatim
16740 #: ../fish/guestfish-commands.pod:163
16741 #, no-wrap
16742 msgid ""
16743 "  reopen\n"
16744 "\n"
16745 msgstr ""
16746
16747 #. type: textblock
16748 #: ../fish/guestfish-commands.pod:165
16749 msgid ""
16750 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16751 "normally, because the handle is closed properly when guestfish exits.  "
16752 "However this is occasionally useful for testing."
16753 msgstr ""
16754
16755 #. type: =head2
16756 #: ../fish/guestfish-commands.pod:169
16757 msgid "setenv"
16758 msgstr ""
16759
16760 #. type: verbatim
16761 #: ../fish/guestfish-commands.pod:171
16762 #, no-wrap
16763 msgid ""
16764 "  setenv VAR value\n"
16765 "\n"
16766 msgstr ""
16767
16768 #. type: textblock
16769 #: ../fish/guestfish-commands.pod:173
16770 msgid "Set the environment variable C<VAR> to the string C<value>."
16771 msgstr ""
16772
16773 #. type: textblock
16774 #: ../fish/guestfish-commands.pod:175
16775 msgid ""
16776 "To print the value of an environment variable use a shell command such as:"
16777 msgstr ""
16778
16779 #. type: verbatim
16780 #: ../fish/guestfish-commands.pod:178
16781 #, no-wrap
16782 msgid ""
16783 " !echo $VAR\n"
16784 "\n"
16785 msgstr ""
16786
16787 #. type: =head2
16788 #: ../fish/guestfish-commands.pod:180
16789 msgid "sparse"
16790 msgstr "sparse"
16791
16792 #. type: verbatim
16793 #: ../fish/guestfish-commands.pod:182
16794 #, no-wrap
16795 msgid ""
16796 " sparse filename size\n"
16797 "\n"
16798 msgstr ""
16799
16800 #. type: textblock
16801 #: ../fish/guestfish-commands.pod:184
16802 msgid ""
16803 "This creates an empty sparse file of the given size, and then adds so it can "
16804 "be further examined."
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../fish/guestfish-commands.pod:187
16809 msgid ""
16810 "In all respects it works the same as the L</alloc> command, except that the "
16811 "image file is allocated sparsely, which means that disk blocks are not "
16812 "assigned to the file until they are needed.  Sparse disk files only use "
16813 "space when written to, but they are slower and there is a danger you could "
16814 "run out of real disk space during a write operation."
16815 msgstr ""
16816
16817 #. type: =head2
16818 #: ../fish/guestfish-commands.pod:197
16819 msgid "supported"
16820 msgstr "supported"
16821
16822 #. type: verbatim
16823 #: ../fish/guestfish-commands.pod:199
16824 #, no-wrap
16825 msgid ""
16826 " supported\n"
16827 "\n"
16828 msgstr ""
16829 " supported\n"
16830 "\n"
16831
16832 #. type: textblock
16833 #: ../fish/guestfish-commands.pod:201
16834 msgid ""
16835 "This command returns a list of the optional groups known to the daemon, and "
16836 "indicates which ones are supported by this build of the libguestfs appliance."
16837 msgstr ""
16838
16839 #. type: textblock
16840 #: ../fish/guestfish-commands.pod:205
16841 msgid "See also L<guestfs(3)/AVAILABILITY>."
16842 msgstr ""
16843
16844 #. type: =head2
16845 #: ../fish/guestfish-commands.pod:207
16846 msgid "time"
16847 msgstr "time"
16848
16849 #. type: verbatim
16850 #: ../fish/guestfish-commands.pod:209
16851 #, no-wrap
16852 msgid ""
16853 " time command args...\n"
16854 "\n"
16855 msgstr ""
16856
16857 #. type: textblock
16858 #: ../fish/guestfish-commands.pod:211
16859 msgid ""
16860 "Run the command as usual, but print the elapsed time afterwards.  This can "
16861 "be useful for benchmarking operations."
16862 msgstr ""
16863
16864 #. type: =head2
16865 #: ../fish/guestfish-commands.pod:214
16866 msgid "unsetenv"
16867 msgstr ""
16868
16869 #. type: verbatim
16870 #: ../fish/guestfish-commands.pod:216
16871 #, no-wrap
16872 msgid ""
16873 "  unsetenv VAR\n"
16874 "\n"
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../fish/guestfish-commands.pod:218
16879 msgid "Remove C<VAR> from the environment."
16880 msgstr ""
16881
16882 #. type: textblock
16883 #: ../fish/guestfish.pod:5
16884 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16885 msgstr ""
16886
16887 #. type: verbatim
16888 #: ../fish/guestfish.pod:9
16889 #, no-wrap
16890 msgid ""
16891 " guestfish [--options] [commands]\n"
16892 "\n"
16893 msgstr ""
16894
16895 #. type: verbatim
16896 #: ../fish/guestfish.pod:11
16897 #, no-wrap
16898 msgid ""
16899 " guestfish\n"
16900 "\n"
16901 msgstr ""
16902
16903 #. type: verbatim
16904 #: ../fish/guestfish.pod:13
16905 #, no-wrap
16906 msgid ""
16907 " guestfish [--ro|--rw] -a disk.img\n"
16908 "\n"
16909 msgstr ""
16910
16911 #. type: verbatim
16912 #: ../fish/guestfish.pod:15
16913 #, no-wrap
16914 msgid ""
16915 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16916 "\n"
16917 msgstr ""
16918
16919 #. type: verbatim
16920 #: ../fish/guestfish.pod:17
16921 #, no-wrap
16922 msgid ""
16923 " guestfish -d libvirt-domain\n"
16924 "\n"
16925 msgstr ""
16926
16927 #. type: verbatim
16928 #: ../fish/guestfish.pod:19
16929 #, no-wrap
16930 msgid ""
16931 " guestfish [--ro|--rw] -a disk.img -i\n"
16932 "\n"
16933 msgstr ""
16934
16935 #. type: verbatim
16936 #: ../fish/guestfish.pod:21
16937 #, no-wrap
16938 msgid ""
16939 " guestfish -d libvirt-domain -i\n"
16940 "\n"
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish.pod:25
16945 msgid ""
16946 "Using guestfish in read/write mode on live virtual machines can be "
16947 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16948 "option to use guestfish safely if the disk image or virtual machine might be "
16949 "live."
16950 msgstr ""
16951
16952 #. type: textblock
16953 #: ../fish/guestfish.pod:32
16954 msgid ""
16955 "Guestfish is a shell and command-line tool for examining and modifying "
16956 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16957 "functionality of the guestfs API, see L<guestfs(3)>."
16958 msgstr ""
16959
16960 #. type: textblock
16961 #: ../fish/guestfish.pod:36
16962 msgid ""
16963 "Guestfish gives you structured access to the libguestfs API, from shell "
16964 "scripts or the command line or interactively.  If you want to rescue a "
16965 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16966 "command."
16967 msgstr ""
16968
16969 #. type: =head2
16970 #: ../fish/guestfish.pod:43
16971 msgid "As an interactive shell"
16972 msgstr ""
16973
16974 #. type: verbatim
16975 #: ../fish/guestfish.pod:45
16976 #, no-wrap
16977 msgid ""
16978 " $ guestfish\n"
16979 " \n"
16980 msgstr ""
16981
16982 #. type: verbatim
16983 #: ../fish/guestfish.pod:47
16984 #, no-wrap
16985 msgid ""
16986 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16987 " editing virtual machine filesystems.\n"
16988 " \n"
16989 msgstr ""
16990
16991 #. type: verbatim
16992 #: ../fish/guestfish.pod:50
16993 #, no-wrap
16994 msgid ""
16995 " Type: 'help' for a list of commands\n"
16996 "       'man' to read the manual\n"
16997 "       'quit' to quit the shell\n"
16998 " \n"
16999 msgstr ""
17000
17001 #. type: verbatim
17002 #: ../fish/guestfish.pod:54
17003 #, no-wrap
17004 msgid ""
17005 " ><fs> add-ro disk.img\n"
17006 " ><fs> run\n"
17007 " ><fs> list-filesystems\n"
17008 " /dev/sda1: ext4\n"
17009 " /dev/vg_guest/lv_root: ext4\n"
17010 " /dev/vg_guest/lv_swap: swap\n"
17011 " ><fs> mount /dev/vg_guest/lv_root /\n"
17012 " ><fs> cat /etc/fstab\n"
17013 " # /etc/fstab\n"
17014 " # Created by anaconda\n"
17015 " [...]\n"
17016 " ><fs> exit\n"
17017 "\n"
17018 msgstr ""
17019
17020 #. type: =head2
17021 #: ../fish/guestfish.pod:67
17022 msgid "From shell scripts"
17023 msgstr ""
17024
17025 #. type: textblock
17026 #: ../fish/guestfish.pod:69
17027 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17028 msgstr ""
17029
17030 #. type: verbatim
17031 #: ../fish/guestfish.pod:71
17032 #, no-wrap
17033 msgid ""
17034 " guestfish <<_EOF_\n"
17035 " add disk.img\n"
17036 " run\n"
17037 " mount /dev/vg_guest/lv_root /\n"
17038 " write /etc/motd \"Welcome, new users\"\n"
17039 " _EOF_\n"
17040 "\n"
17041 msgstr ""
17042
17043 #. type: textblock
17044 #: ../fish/guestfish.pod:78
17045 msgid "List the LVM logical volumes in a disk image:"
17046 msgstr ""
17047
17048 #. type: verbatim
17049 #: ../fish/guestfish.pod:80
17050 #, no-wrap
17051 msgid ""
17052 " guestfish -a disk.img --ro <<_EOF_\n"
17053 " run\n"
17054 " lvs\n"
17055 " _EOF_\n"
17056 "\n"
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish.pod:85
17061 msgid "List all the filesystems in a disk image:"
17062 msgstr ""
17063
17064 #. type: verbatim
17065 #: ../fish/guestfish.pod:87
17066 #, no-wrap
17067 msgid ""
17068 " guestfish -a disk.img --ro <<_EOF_\n"
17069 " run\n"
17070 " list-filesystems\n"
17071 " _EOF_\n"
17072 "\n"
17073 msgstr ""
17074
17075 #. type: =head2
17076 #: ../fish/guestfish.pod:92
17077 msgid "On one command line"
17078 msgstr ""
17079
17080 #. type: textblock
17081 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17082 msgid "Update C</etc/resolv.conf> in a guest:"
17083 msgstr ""
17084
17085 #. type: verbatim
17086 #: ../fish/guestfish.pod:96
17087 #, no-wrap
17088 msgid ""
17089 " guestfish \\\n"
17090 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17091 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17092 "\n"
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../fish/guestfish.pod:100
17097 msgid "Edit C</boot/grub/grub.conf> interactively:"
17098 msgstr ""
17099
17100 #. type: verbatim
17101 #: ../fish/guestfish.pod:102
17102 #, no-wrap
17103 msgid ""
17104 " guestfish --rw --add disk.img \\\n"
17105 "   --mount /dev/vg_guest/lv_root \\\n"
17106 "   --mount /dev/sda1:/boot \\\n"
17107 "   edit /boot/grub/grub.conf\n"
17108 "\n"
17109 msgstr ""
17110
17111 #. type: =head2
17112 #: ../fish/guestfish.pod:107
17113 msgid "Mount disks automatically"
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish.pod:109
17118 msgid ""
17119 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17120 msgstr ""
17121
17122 #. type: verbatim
17123 #: ../fish/guestfish.pod:112
17124 #, no-wrap
17125 msgid ""
17126 " guestfish --ro -a disk.img -i cat /etc/group\n"
17127 "\n"
17128 msgstr ""
17129
17130 #. type: verbatim
17131 #: ../fish/guestfish.pod:114
17132 #, no-wrap
17133 msgid ""
17134 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17135 "\n"
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish.pod:116
17140 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17141 msgstr ""
17142
17143 #. type: verbatim
17144 #: ../fish/guestfish.pod:118
17145 #, no-wrap
17146 msgid ""
17147 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17148 "\n"
17149 msgstr ""
17150
17151 #. type: =head2
17152 #: ../fish/guestfish.pod:120
17153 msgid "As a script interpreter"
17154 msgstr ""
17155
17156 #. type: textblock
17157 #: ../fish/guestfish.pod:122
17158 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17159 msgstr ""
17160
17161 #. type: verbatim
17162 #: ../fish/guestfish.pod:124
17163 #, no-wrap
17164 msgid ""
17165 " #!/usr/bin/guestfish -f\n"
17166 " sparse test1.img 100M\n"
17167 " run\n"
17168 " part-disk /dev/sda mbr\n"
17169 " mkfs ext2 /dev/sda1\n"
17170 "\n"
17171 msgstr ""
17172
17173 #. type: =head2
17174 #: ../fish/guestfish.pod:130
17175 msgid "Start with a prepared disk"
17176 msgstr ""
17177
17178 #. type: textblock
17179 #: ../fish/guestfish.pod:132
17180 msgid ""
17181 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17182 "single ext2-formatted partition:"
17183 msgstr ""
17184
17185 #. type: verbatim
17186 #: ../fish/guestfish.pod:135
17187 #, no-wrap
17188 msgid ""
17189 " guestfish -N fs\n"
17190 "\n"
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../fish/guestfish.pod:137
17195 msgid "To list what is available do:"
17196 msgstr ""
17197
17198 #. type: verbatim
17199 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17200 #, no-wrap
17201 msgid ""
17202 " guestfish -N help | less\n"
17203 "\n"
17204 msgstr ""
17205
17206 #. type: =head2
17207 #: ../fish/guestfish.pod:141
17208 msgid "Remote control"
17209 msgstr "Дистанційне керування"
17210
17211 #. type: verbatim
17212 #: ../fish/guestfish.pod:143
17213 #, no-wrap
17214 msgid ""
17215 " eval \"`guestfish --listen`\"\n"
17216 " guestfish --remote add-ro disk.img\n"
17217 " guestfish --remote run\n"
17218 " guestfish --remote lvs\n"
17219 "\n"
17220 msgstr ""
17221 " eval \"`guestfish --listen`\"\n"
17222 " guestfish --remote add-ro disk.img\n"
17223 " guestfish --remote run\n"
17224 " guestfish --remote lvs\n"
17225 "\n"
17226
17227 #. type: textblock
17228 #: ../fish/guestfish.pod:154
17229 msgid "Displays general help on options."
17230 msgstr ""
17231
17232 #. type: =item
17233 #: ../fish/guestfish.pod:158
17234 msgid "B<--cmd-help>"
17235 msgstr "B<--cmd-help>"
17236
17237 #. type: textblock
17238 #: ../fish/guestfish.pod:160
17239 msgid "Lists all available guestfish commands."
17240 msgstr ""
17241
17242 #. type: =item
17243 #: ../fish/guestfish.pod:162
17244 msgid "B<-h cmd>"
17245 msgstr "B<-h команда>"
17246
17247 #. type: =item
17248 #: ../fish/guestfish.pod:164
17249 msgid "B<--cmd-help cmd>"
17250 msgstr "B<--cmd-help команда>"
17251
17252 #. type: textblock
17253 #: ../fish/guestfish.pod:166
17254 msgid "Displays detailed help on a single command C<cmd>."
17255 msgstr ""
17256
17257 #. type: =item
17258 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17259 msgid "B<-a image>"
17260 msgstr "B<-a образ>"
17261
17262 #. type: =item
17263 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17264 msgid "B<--add image>"
17265 msgstr "B<--add образ>"
17266
17267 #. type: textblock
17268 #: ../fish/guestfish.pod:172
17269 msgid "Add a block device or virtual machine image to the shell."
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish.pod:177
17274 msgid ""
17275 "Using this flag is mostly equivalent to using the C<add> command, with "
17276 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17277 "the I<--format=...> flag was given."
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17282 msgid ""
17283 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17284 "URI to use.  The default is to use the default libvirt connection."
17285 msgstr ""
17286
17287 #. type: =item
17288 #: ../fish/guestfish.pod:189
17289 msgid "B<--csh>"
17290 msgstr "B<--csh>"
17291
17292 #. type: textblock
17293 #: ../fish/guestfish.pod:191
17294 msgid ""
17295 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17296 "section L</REMOTE CONTROL AND CSH> below."
17297 msgstr ""
17298
17299 #. type: =item
17300 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17301 msgid "B<-d libvirt-domain>"
17302 msgstr "B<-d домен-libvirt>"
17303
17304 #. type: =item
17305 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17306 msgid "B<--domain libvirt-domain>"
17307 msgstr "B<--domain домен-libvirt>"
17308
17309 #. type: textblock
17310 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17311 msgid ""
17312 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17313 "used, then any libvirt domain can be used.  However in write mode, only "
17314 "libvirt domains which are shut down can be named here."
17315 msgstr ""
17316
17317 #. type: textblock
17318 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17319 msgid "Domain UUIDs can be used instead of names."
17320 msgstr ""
17321
17322 #. type: textblock
17323 #: ../fish/guestfish.pod:204
17324 msgid ""
17325 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17326 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17327 "if the I<--format:...> flag was given."
17328 msgstr ""
17329
17330 #. type: =item
17331 #: ../fish/guestfish.pod:208
17332 msgid "B<-D>"
17333 msgstr "B<-D>"
17334
17335 #. type: =item
17336 #: ../fish/guestfish.pod:210
17337 msgid "B<--no-dest-paths>"
17338 msgstr "B<--no-dest-paths>"
17339
17340 #. type: textblock
17341 #: ../fish/guestfish.pod:212
17342 msgid ""
17343 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17344 "to hit the tab key to complete paths on the guest filesystem, but this "
17345 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17346 "allow this feature to be disabled."
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17351 msgid ""
17352 "When prompting for keys and passphrases, guestfish normally turns echoing "
17353 "off so you cannot see what you are typing.  If you are not worried about "
17354 "Tempest attacks and there is no one else in the room you can specify this "
17355 "flag to see what you are typing."
17356 msgstr ""
17357
17358 #. type: =item
17359 #: ../fish/guestfish.pod:224
17360 msgid "B<-f file>"
17361 msgstr "B<-f файл>"
17362
17363 #. type: =item
17364 #: ../fish/guestfish.pod:226
17365 msgid "B<--file file>"
17366 msgstr "B<--file файл>"
17367
17368 #. type: textblock
17369 #: ../fish/guestfish.pod:228
17370 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17371 msgstr ""
17372
17373 #. type: verbatim
17374 #: ../fish/guestfish.pod:231
17375 #, no-wrap
17376 msgid ""
17377 " #!/usr/bin/guestfish -f\n"
17378 "\n"
17379 msgstr ""
17380 " #!/usr/bin/guestfish -f\n"
17381 "\n"
17382
17383 #. type: verbatim
17384 #: ../fish/guestfish.pod:244
17385 #, no-wrap
17386 msgid ""
17387 " guestfish --format=raw -a disk.img\n"
17388 "\n"
17389 msgstr ""
17390 " guestfish --format=raw -a disk.img\n"
17391 "\n"
17392
17393 #. type: verbatim
17394 #: ../fish/guestfish.pod:248
17395 #, no-wrap
17396 msgid ""
17397 " guestfish --format=raw -a disk.img --format -a another.img\n"
17398 "\n"
17399 msgstr ""
17400 " guestfish --format=raw -a disk.img --format -a another.img\n"
17401 "\n"
17402
17403 #. type: textblock
17404 #: ../fish/guestfish.pod:253
17405 msgid ""
17406 "If you have untrusted raw-format guest disk images, you should use this "
17407 "option to specify the disk format.  This avoids a possible security problem "
17408 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17409 msgstr ""
17410
17411 #. type: =item
17412 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17413 msgid "B<--inspector>"
17414 msgstr "B<--inspector>"
17415
17416 #. type: textblock
17417 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17418 msgid ""
17419 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17420 "system and mount filesystems as they would be mounted on the real virtual "
17421 "machine."
17422 msgstr ""
17423
17424 #. type: textblock
17425 #: ../fish/guestfish.pod:266
17426 msgid "Typical usage is either:"
17427 msgstr ""
17428
17429 #. type: verbatim
17430 #: ../fish/guestfish.pod:268
17431 #, no-wrap
17432 msgid ""
17433 " guestfish -d myguest -i\n"
17434 "\n"
17435 msgstr ""
17436 " guestfish -d myguest -i\n"
17437 "\n"
17438
17439 #. type: textblock
17440 #: ../fish/guestfish.pod:270
17441 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17442 msgstr ""
17443
17444 #. type: verbatim
17445 #: ../fish/guestfish.pod:272
17446 #, no-wrap
17447 msgid ""
17448 " guestfish --ro -d myguest -i\n"
17449 "\n"
17450 msgstr ""
17451 " guestfish --ro -d myguest -i\n"
17452 "\n"
17453
17454 #. type: textblock
17455 #: ../fish/guestfish.pod:274
17456 msgid "(for active domains, readonly), or specify the block device directly:"
17457 msgstr ""
17458
17459 #. type: verbatim
17460 #: ../fish/guestfish.pod:276
17461 #, no-wrap
17462 msgid ""
17463 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17464 "\n"
17465 msgstr ""
17466 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17467 "\n"
17468
17469 #. type: textblock
17470 #: ../fish/guestfish.pod:278
17471 msgid ""
17472 "Note that the command line syntax changed slightly over older versions of "
17473 "guestfish.  You can still use the old syntax:"
17474 msgstr ""
17475
17476 #. type: verbatim
17477 #: ../fish/guestfish.pod:281
17478 #, no-wrap
17479 msgid ""
17480 " guestfish [--ro] -i disk.img\n"
17481 "\n"
17482 msgstr ""
17483 " guestfish [--ro] -i disk.img\n"
17484 "\n"
17485
17486 #. type: verbatim
17487 #: ../fish/guestfish.pod:283
17488 #, no-wrap
17489 msgid ""
17490 " guestfish [--ro] -i libvirt-domain\n"
17491 "\n"
17492 msgstr ""
17493
17494 #. type: textblock
17495 #: ../fish/guestfish.pod:285
17496 msgid ""
17497 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17498 "then using other commands to mount the filesystems that were found."
17499 msgstr ""
17500
17501 #. type: =item
17502 #: ../fish/guestfish.pod:294
17503 msgid "B<--listen>"
17504 msgstr "B<--listen>"
17505
17506 #. type: textblock
17507 #: ../fish/guestfish.pod:296
17508 msgid ""
17509 "Fork into the background and listen for remote commands.  See section L</"
17510 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17511 msgstr ""
17512
17513 #. type: =item
17514 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17515 msgid "B<--live>"
17516 msgstr "B<--live>"
17517
17518 #. type: textblock
17519 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17520 msgid ""
17521 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17522 "ATTACHING TO RUNNING DAEMONS>)."
17523 msgstr ""
17524
17525 #. type: =item
17526 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17527 msgid "B<-m dev[:mountpoint[:options]]>"
17528 msgstr ""
17529
17530 #. type: =item
17531 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17532 msgid "B<--mount dev[:mountpoint[:options]]>"
17533 msgstr ""
17534
17535 #. type: textblock
17536 #: ../fish/guestfish.pod:308
17537 msgid "Mount the named partition or logical volume on the given mountpoint."
17538 msgstr ""
17539
17540 #. type: textblock
17541 #: ../fish/guestfish.pod:310
17542 msgid "If the mountpoint is omitted, it defaults to C</>."
17543 msgstr ""
17544
17545 #. type: textblock
17546 #: ../fish/guestfish.pod:312
17547 msgid "You have to mount something on C</> before most commands will work."
17548 msgstr ""
17549
17550 #. type: textblock
17551 #: ../fish/guestfish.pod:314
17552 msgid ""
17553 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17554 "launched."
17555 msgstr ""
17556
17557 #. type: textblock
17558 #: ../fish/guestfish.pod:317
17559 msgid ""
17560 "If you don't know what filesystems a disk image contains, you can either run "
17561 "guestfish without this option, then list the partitions, filesystems and LVs "
17562 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17563 "commands), or you can use the L<virt-filesystems(1)> program."
17564 msgstr ""
17565
17566 #. type: textblock
17567 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17568 msgid ""
17569 "The third (and rarely used) part of the mount parameter is the list of mount "
17570 "options used to mount the underlying filesystem.  If this is not given, then "
17571 "the mount options are either the empty string or C<ro> (the latter if the "
17572 "I<--ro> flag is used).  By specifying the mount options, you override this "
17573 "default choice.  Probably the only time you would use this is to enable ACLs "
17574 "and/or extended attributes if the filesystem can support them:"
17575 msgstr ""
17576
17577 #. type: verbatim
17578 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17579 #, no-wrap
17580 msgid ""
17581 " -m /dev/sda1:/:acl,user_xattr\n"
17582 "\n"
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish.pod:333
17587 msgid "Using this flag is equivalent to using the C<mount-options> command."
17588 msgstr ""
17589
17590 #. type: =item
17591 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17592 #: ../resize/virt-resize.pod:358
17593 msgid "B<-n>"
17594 msgstr "B<-n>"
17595
17596 #. type: =item
17597 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17598 msgid "B<--no-sync>"
17599 msgstr "B<--no-sync>"
17600
17601 #. type: textblock
17602 #: ../fish/guestfish.pod:339
17603 msgid ""
17604 "Disable autosync.  This is enabled by default.  See the discussion of "
17605 "autosync in the L<guestfs(3)> manpage."
17606 msgstr ""
17607
17608 #. type: =item
17609 #: ../fish/guestfish.pod:342
17610 msgid "B<-N type>"
17611 msgstr "B<-N тип>"
17612
17613 #. type: =item
17614 #: ../fish/guestfish.pod:344
17615 msgid "B<--new type>"
17616 msgstr "B<--new тип>"
17617
17618 #. type: =item
17619 #: ../fish/guestfish.pod:346
17620 msgid "B<-N help>"
17621 msgstr "B<-N help>"
17622
17623 #. type: textblock
17624 #: ../fish/guestfish.pod:348
17625 msgid ""
17626 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17627 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17628 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17629 "IMAGES> below."
17630 msgstr ""
17631
17632 #. type: =item
17633 #: ../fish/guestfish.pod:353
17634 msgid "B<--progress-bars>"
17635 msgstr "B<--progress-bars>"
17636
17637 #. type: textblock
17638 #: ../fish/guestfish.pod:355
17639 msgid "Enable progress bars, even when guestfish is used non-interactively."
17640 msgstr ""
17641
17642 #. type: textblock
17643 #: ../fish/guestfish.pod:357
17644 msgid ""
17645 "Progress bars are enabled by default when guestfish is used as an "
17646 "interactive shell."
17647 msgstr ""
17648
17649 #. type: =item
17650 #: ../fish/guestfish.pod:360
17651 msgid "B<--no-progress-bars>"
17652 msgstr "B<--no-progress-bars>"
17653
17654 #. type: textblock
17655 #: ../fish/guestfish.pod:362
17656 msgid "Disable progress bars."
17657 msgstr ""
17658
17659 #. type: =item
17660 #: ../fish/guestfish.pod:364
17661 msgid "B<--remote[=pid]>"
17662 msgstr "B<--remote[=pid]>"
17663
17664 #. type: textblock
17665 #: ../fish/guestfish.pod:366
17666 msgid ""
17667 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17668 "CONTROL GUESTFISH OVER A SOCKET> below."
17669 msgstr ""
17670
17671 #. type: =item
17672 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17673 #: ../rescue/virt-rescue.pod:161
17674 msgid "B<-r>"
17675 msgstr "B<-r>"
17676
17677 #. type: =item
17678 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17679 #: ../rescue/virt-rescue.pod:163
17680 msgid "B<--ro>"
17681 msgstr "B<--ro>"
17682
17683 #. type: textblock
17684 #: ../fish/guestfish.pod:373
17685 msgid ""
17686 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17687 "mounts are done read-only."
17688 msgstr ""
17689
17690 #. type: textblock
17691 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17692 msgid ""
17693 "The option must always be used if the disk image or virtual machine might be "
17694 "running, and is generally recommended in cases where you don't need write "
17695 "access to the disk."
17696 msgstr ""
17697
17698 #. type: textblock
17699 #: ../fish/guestfish.pod:380
17700 msgid ""
17701 "Note that prepared disk images created with I<-N> are not affected by this "
17702 "option.  Also commands like C<add> are not affected - you have to specify "
17703 "the C<readonly:true> option explicitly if you need it."
17704 msgstr ""
17705
17706 #. type: textblock
17707 #: ../fish/guestfish.pod:384
17708 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17709 msgstr ""
17710
17711 #. type: =item
17712 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17713 #: ../rescue/virt-rescue.pod:173
17714 msgid "B<--selinux>"
17715 msgstr "B<--selinux>"
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:388
17719 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17720 msgstr ""
17721
17722 #. type: textblock
17723 #: ../fish/guestfish.pod:394
17724 msgid ""
17725 "Enable very verbose messages.  This is particularly useful if you find a bug."
17726 msgstr ""
17727
17728 #. type: textblock
17729 #: ../fish/guestfish.pod:401
17730 msgid "Display the guestfish / libguestfs version number and exit."
17731 msgstr ""
17732
17733 #. type: =item
17734 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17735 #: ../rescue/virt-rescue.pod:190
17736 msgid "B<-w>"
17737 msgstr "B<-w>"
17738
17739 #. type: =item
17740 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17741 #: ../rescue/virt-rescue.pod:192
17742 msgid "B<--rw>"
17743 msgstr "B<--rw>"
17744
17745 #. type: textblock
17746 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17747 msgid ""
17748 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17749 "mounts are done read-write."
17750 msgstr ""
17751
17752 #. type: textblock
17753 #: ../fish/guestfish.pod:410
17754 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17755 msgstr ""
17756
17757 #. type: textblock
17758 #: ../fish/guestfish.pod:414
17759 msgid "Echo each command before executing it."
17760 msgstr ""
17761
17762 #. type: =head1
17763 #: ../fish/guestfish.pod:418
17764 msgid "COMMANDS ON COMMAND LINE"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish.pod:420
17769 msgid ""
17770 "Any additional (non-option) arguments are treated as commands to execute."
17771 msgstr ""
17772
17773 #. type: textblock
17774 #: ../fish/guestfish.pod:423
17775 msgid ""
17776 "Commands to execute should be separated by a colon (C<:>), where the colon "
17777 "is a separate parameter.  Thus:"
17778 msgstr ""
17779
17780 #. type: verbatim
17781 #: ../fish/guestfish.pod:426
17782 #, no-wrap
17783 msgid ""
17784 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17785 "\n"
17786 msgstr ""
17787
17788 #. type: textblock
17789 #: ../fish/guestfish.pod:428
17790 msgid ""
17791 "If there are no additional arguments, then we enter a shell, either an "
17792 "interactive shell with a prompt (if the input is a terminal) or a non-"
17793 "interactive shell."
17794 msgstr ""
17795
17796 #. type: textblock
17797 #: ../fish/guestfish.pod:432
17798 msgid ""
17799 "In either command line mode or non-interactive shell, the first command that "
17800 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17801 "prompt) if a command fails, you can continue to enter commands."
17802 msgstr ""
17803
17804 #. type: =head1
17805 #: ../fish/guestfish.pod:437
17806 msgid "USING launch (OR run)"
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../fish/guestfish.pod:439
17811 msgid ""
17812 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17813 "then launch it, then mount any disks you need, and finally issue actions/"
17814 "commands.  So the general order of the day is:"
17815 msgstr ""
17816
17817 #. type: textblock
17818 #: ../fish/guestfish.pod:447
17819 msgid "add or -a/--add"
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish.pod:451
17824 msgid "launch (aka run)"
17825 msgstr ""
17826
17827 #. type: textblock
17828 #: ../fish/guestfish.pod:455
17829 msgid "mount or -m/--mount"
17830 msgstr ""
17831
17832 #. type: textblock
17833 #: ../fish/guestfish.pod:459
17834 msgid "any other commands"
17835 msgstr ""
17836
17837 #. type: textblock
17838 #: ../fish/guestfish.pod:463
17839 msgid ""
17840 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17841 "guest before mounting or performing any other commands."
17842 msgstr ""
17843
17844 #. type: textblock
17845 #: ../fish/guestfish.pod:466
17846 msgid ""
17847 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17848 "I<--new> options were given then C<run> is done automatically, simply "
17849 "because guestfish can't perform the action you asked for without doing this."
17850 msgstr ""
17851
17852 #. type: =head1
17853 #: ../fish/guestfish.pod:471
17854 msgid "OPENING DISKS FOR READ AND WRITE"
17855 msgstr ""
17856
17857 #. type: textblock
17858 #: ../fish/guestfish.pod:473
17859 msgid ""
17860 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17861 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17862 "I<-i> and I<-m> open disk images read-only or for writing."
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish.pod:478
17867 msgid ""
17868 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17869 "opening disk images supplied on the command line for write.  To open a disk "
17870 "image read-only you have to do I<-a image --ro>."
17871 msgstr ""
17872
17873 #. type: textblock
17874 #: ../fish/guestfish.pod:482
17875 msgid ""
17876 "This matters: If you accidentally open a live VM disk image writable then "
17877 "you will cause irreversible disk corruption."
17878 msgstr ""
17879
17880 #. type: textblock
17881 #: ../fish/guestfish.pod:485
17882 msgid ""
17883 "In a future libguestfs we intend to change the default the other way.  Disk "
17884 "images will be opened read-only.  You will have to either specify "
17885 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17886 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17887 "access for disk images specified by those other command line options."
17888 msgstr ""
17889
17890 #. type: textblock
17891 #: ../fish/guestfish.pod:492
17892 msgid ""
17893 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17894 "which does nothing (it is already the default).  However it is highly "
17895 "recommended that you use this option to indicate that you need write access, "
17896 "and prepare your scripts for the day when this option will be required for "
17897 "write access."
17898 msgstr ""
17899
17900 #. type: textblock
17901 #: ../fish/guestfish.pod:498
17902 msgid ""
17903 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17904 "other libguestfs program apart from guestfish and guestmount."
17905 msgstr ""
17906
17907 #. type: =head1
17908 #: ../fish/guestfish.pod:501
17909 msgid "QUOTING"
17910 msgstr ""
17911
17912 #. type: textblock
17913 #: ../fish/guestfish.pod:503
17914 msgid ""
17915 "You can quote ordinary parameters using either single or double quotes.  For "
17916 "example:"
17917 msgstr ""
17918
17919 #. type: verbatim
17920 #: ../fish/guestfish.pod:506
17921 #, no-wrap
17922 msgid ""
17923 " add \"file with a space.img\"\n"
17924 "\n"
17925 msgstr ""
17926
17927 #. type: verbatim
17928 #: ../fish/guestfish.pod:508
17929 #, no-wrap
17930 msgid ""
17931 " rm '/file name'\n"
17932 "\n"
17933 msgstr ""
17934
17935 #. type: verbatim
17936 #: ../fish/guestfish.pod:510
17937 #, no-wrap
17938 msgid ""
17939 " rm '/\"'\n"
17940 "\n"
17941 msgstr ""
17942
17943 #. type: textblock
17944 #: ../fish/guestfish.pod:512
17945 msgid ""
17946 "A few commands require a list of strings to be passed.  For these, use a "
17947 "whitespace-separated list, enclosed in quotes.  Strings containing "
17948 "whitespace to be passed through must be enclosed in single quotes.  A "
17949 "literal single quote must be escaped with a backslash."
17950 msgstr ""
17951
17952 #. type: verbatim
17953 #: ../fish/guestfish.pod:517
17954 #, no-wrap
17955 msgid ""
17956 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17957 " command \"/bin/echo 'foo      bar'\"\n"
17958 " command \"/bin/echo \\'foo\\'\"\n"
17959 "\n"
17960 msgstr ""
17961
17962 #. type: =head2
17963 #: ../fish/guestfish.pod:521
17964 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17965 msgstr ""
17966
17967 #. type: textblock
17968 #: ../fish/guestfish.pod:523
17969 msgid ""
17970 "In double-quoted arguments (only) use backslash to insert special characters:"
17971 msgstr ""
17972
17973 #. type: =item
17974 #: ../fish/guestfish.pod:528
17975 msgid "C<\\a>"
17976 msgstr ""
17977
17978 #. type: textblock
17979 #: ../fish/guestfish.pod:530
17980 msgid "Alert (bell) character."
17981 msgstr ""
17982
17983 #. type: =item
17984 #: ../fish/guestfish.pod:532
17985 msgid "C<\\b>"
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../fish/guestfish.pod:534
17990 msgid "Backspace character."
17991 msgstr ""
17992
17993 #. type: =item
17994 #: ../fish/guestfish.pod:536
17995 msgid "C<\\f>"
17996 msgstr ""
17997
17998 #. type: textblock
17999 #: ../fish/guestfish.pod:538
18000 msgid "Form feed character."
18001 msgstr ""
18002
18003 #. type: =item
18004 #: ../fish/guestfish.pod:540
18005 msgid "C<\\n>"
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish.pod:542
18010 msgid "Newline character."
18011 msgstr ""
18012
18013 #. type: =item
18014 #: ../fish/guestfish.pod:544
18015 msgid "C<\\r>"
18016 msgstr ""
18017
18018 #. type: textblock
18019 #: ../fish/guestfish.pod:546
18020 msgid "Carriage return character."
18021 msgstr ""
18022
18023 #. type: =item
18024 #: ../fish/guestfish.pod:548
18025 msgid "C<\\t>"
18026 msgstr ""
18027
18028 #. type: textblock
18029 #: ../fish/guestfish.pod:550
18030 msgid "Horizontal tab character."
18031 msgstr ""
18032
18033 #. type: =item
18034 #: ../fish/guestfish.pod:552
18035 msgid "C<\\v>"
18036 msgstr ""
18037
18038 #. type: textblock
18039 #: ../fish/guestfish.pod:554
18040 msgid "Vertical tab character."
18041 msgstr ""
18042
18043 #. type: =item
18044 #: ../fish/guestfish.pod:556
18045 msgid "C<\\\">"
18046 msgstr ""
18047
18048 #. type: textblock
18049 #: ../fish/guestfish.pod:558
18050 msgid "A literal double quote character."
18051 msgstr ""
18052
18053 #. type: =item
18054 #: ../fish/guestfish.pod:560
18055 msgid "C<\\ooo>"
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/guestfish.pod:562
18060 msgid ""
18061 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18062 "(unlike C)."
18063 msgstr ""
18064
18065 #. type: =item
18066 #: ../fish/guestfish.pod:565
18067 msgid "C<\\xhh>"
18068 msgstr ""
18069
18070 #. type: textblock
18071 #: ../fish/guestfish.pod:567
18072 msgid ""
18073 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18074 msgstr ""
18075
18076 #. type: textblock
18077 #: ../fish/guestfish.pod:570
18078 msgid ""
18079 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18080 "strings."
18081 msgstr ""
18082
18083 #. type: =item
18084 #: ../fish/guestfish.pod:573
18085 msgid "C<\\\\>"
18086 msgstr ""
18087
18088 #. type: textblock
18089 #: ../fish/guestfish.pod:575
18090 msgid "A literal backslash character."
18091 msgstr ""
18092
18093 #. type: =head1
18094 #: ../fish/guestfish.pod:579
18095 msgid "OPTIONAL ARGUMENTS"
18096 msgstr ""
18097
18098 #. type: textblock
18099 #: ../fish/guestfish.pod:581
18100 msgid ""
18101 "Some commands take optional arguments.  These arguments appear in this "
18102 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18103 msgstr ""
18104
18105 #. type: verbatim
18106 #: ../fish/guestfish.pod:585
18107 #, no-wrap
18108 msgid ""
18109 " add-drive-opts filename\n"
18110 "\n"
18111 msgstr ""
18112
18113 #. type: verbatim
18114 #: ../fish/guestfish.pod:587
18115 #, no-wrap
18116 msgid ""
18117 " add-drive-opts filename readonly:true\n"
18118 "\n"
18119 msgstr ""
18120
18121 #. type: verbatim
18122 #: ../fish/guestfish.pod:589
18123 #, no-wrap
18124 msgid ""
18125 " add-drive-opts filename format:qcow2 readonly:false\n"
18126 "\n"
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish.pod:591
18131 msgid ""
18132 "Each optional argument can appear at most once.  All optional arguments must "
18133 "appear after the required ones."
18134 msgstr ""
18135
18136 #. type: =head1
18137 #: ../fish/guestfish.pod:594
18138 msgid "NUMBERS"
18139 msgstr "ЧИСЛА"
18140
18141 #. type: textblock
18142 #: ../fish/guestfish.pod:596
18143 msgid ""
18144 "This section applies to all commands which can take integers as parameters."
18145 msgstr ""
18146
18147 #. type: =head2
18148 #: ../fish/guestfish.pod:599
18149 msgid "SIZE SUFFIX"
18150 msgstr ""
18151
18152 #. type: textblock
18153 #: ../fish/guestfish.pod:601
18154 msgid ""
18155 "When the command takes a parameter measured in bytes, you can use one of the "
18156 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18157 msgstr ""
18158
18159 #. type: =item
18160 #: ../fish/guestfish.pod:607
18161 msgid "B<k> or B<K> or B<KiB>"
18162 msgstr "B<k>, B<K> або B<KiB>"
18163
18164 #. type: textblock
18165 #: ../fish/guestfish.pod:609
18166 msgid "The size in kilobytes (multiplied by 1024)."
18167 msgstr ""
18168
18169 #. type: =item
18170 #: ../fish/guestfish.pod:611
18171 msgid "B<KB>"
18172 msgstr "B<KB>"
18173
18174 #. type: textblock
18175 #: ../fish/guestfish.pod:613
18176 msgid "The size in SI 1000 byte units."
18177 msgstr ""
18178
18179 #. type: =item
18180 #: ../fish/guestfish.pod:615
18181 msgid "B<M> or B<MiB>"
18182 msgstr "B<M> або B<MiB>"
18183
18184 #. type: textblock
18185 #: ../fish/guestfish.pod:617
18186 msgid "The size in megabytes (multiplied by 1048576)."
18187 msgstr ""
18188
18189 #. type: =item
18190 #: ../fish/guestfish.pod:619
18191 msgid "B<MB>"
18192 msgstr "B<MB>"
18193
18194 #. type: textblock
18195 #: ../fish/guestfish.pod:621
18196 msgid "The size in SI 1000000 byte units."
18197 msgstr ""
18198
18199 #. type: =item
18200 #: ../fish/guestfish.pod:623
18201 msgid "B<G> or B<GiB>"
18202 msgstr "B<G> або B<GiB>"
18203
18204 #. type: textblock
18205 #: ../fish/guestfish.pod:625
18206 msgid "The size in gigabytes (multiplied by 2**30)."
18207 msgstr "Розмір у гігабайтах (з множником 2**30)."
18208
18209 #. type: =item
18210 #: ../fish/guestfish.pod:627
18211 msgid "B<GB>"
18212 msgstr "B<GB>"
18213
18214 #. type: textblock
18215 #: ../fish/guestfish.pod:629
18216 msgid "The size in SI 10**9 byte units."
18217 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18218
18219 #. type: =item
18220 #: ../fish/guestfish.pod:631
18221 msgid "B<T> or B<TiB>"
18222 msgstr "B<T> або B<TiB>"
18223
18224 #. type: textblock
18225 #: ../fish/guestfish.pod:633
18226 msgid "The size in terabytes (multiplied by 2**40)."
18227 msgstr "Розмір у терабайтах (з множником 2**40)."
18228
18229 #. type: =item
18230 #: ../fish/guestfish.pod:635
18231 msgid "B<TB>"
18232 msgstr "B<TB>"
18233
18234 #. type: textblock
18235 #: ../fish/guestfish.pod:637
18236 msgid "The size in SI 10**12 byte units."
18237 msgstr ""
18238
18239 #. type: =item
18240 #: ../fish/guestfish.pod:639
18241 msgid "B<P> or B<PiB>"
18242 msgstr "B<P> або B<PiB>"
18243
18244 #. type: textblock
18245 #: ../fish/guestfish.pod:641
18246 msgid "The size in petabytes (multiplied by 2**50)."
18247 msgstr ""
18248
18249 #. type: =item
18250 #: ../fish/guestfish.pod:643
18251 msgid "B<PB>"
18252 msgstr "B<PB>"
18253
18254 #. type: textblock
18255 #: ../fish/guestfish.pod:645
18256 msgid "The size in SI 10**15 byte units."
18257 msgstr ""
18258
18259 #. type: =item
18260 #: ../fish/guestfish.pod:647
18261 msgid "B<E> or B<EiB>"
18262 msgstr "B<E> або B<EiB>"
18263
18264 #. type: textblock
18265 #: ../fish/guestfish.pod:649
18266 msgid "The size in exabytes (multiplied by 2**60)."
18267 msgstr ""
18268
18269 #. type: =item
18270 #: ../fish/guestfish.pod:651
18271 msgid "B<EB>"
18272 msgstr "B<EB>"
18273
18274 #. type: textblock
18275 #: ../fish/guestfish.pod:653
18276 msgid "The size in SI 10**18 byte units."
18277 msgstr ""
18278
18279 #. type: =item
18280 #: ../fish/guestfish.pod:655
18281 msgid "B<Z> or B<ZiB>"
18282 msgstr "B<Z> або B<ZiB>"
18283
18284 #. type: textblock
18285 #: ../fish/guestfish.pod:657
18286 msgid "The size in zettabytes (multiplied by 2**70)."
18287 msgstr ""
18288
18289 #. type: =item
18290 #: ../fish/guestfish.pod:659
18291 msgid "B<ZB>"
18292 msgstr "B<ZB>"
18293
18294 #. type: textblock
18295 #: ../fish/guestfish.pod:661
18296 msgid "The size in SI 10**21 byte units."
18297 msgstr ""
18298
18299 #. type: =item
18300 #: ../fish/guestfish.pod:663
18301 msgid "B<Y> or B<YiB>"
18302 msgstr "B<Y> або B<YiB>"
18303
18304 #. type: textblock
18305 #: ../fish/guestfish.pod:665
18306 msgid "The size in yottabytes (multiplied by 2**80)."
18307 msgstr ""
18308
18309 #. type: =item
18310 #: ../fish/guestfish.pod:667
18311 msgid "B<YB>"
18312 msgstr "B<YB>"
18313
18314 #. type: textblock
18315 #: ../fish/guestfish.pod:669
18316 msgid "The size in SI 10**24 byte units."
18317 msgstr ""
18318
18319 #. type: verbatim
18320 #: ../fish/guestfish.pod:675
18321 #, no-wrap
18322 msgid ""
18323 " truncate-size /file 1G\n"
18324 "\n"
18325 msgstr ""
18326
18327 #. type: textblock
18328 #: ../fish/guestfish.pod:677
18329 msgid "would truncate the file to 1 gigabyte."
18330 msgstr ""
18331
18332 #. type: textblock
18333 #: ../fish/guestfish.pod:679
18334 msgid ""
18335 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18336 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18337 "suffix will probably not do what you expect."
18338 msgstr ""
18339
18340 #. type: =head2
18341 #: ../fish/guestfish.pod:683
18342 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish.pod:685
18347 msgid ""
18348 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18349 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18350 msgstr ""
18351
18352 #. type: verbatim
18353 #: ../fish/guestfish.pod:688
18354 #, no-wrap
18355 msgid ""
18356 " 1234      decimal number 1234\n"
18357 " 02322     octal number, equivalent to decimal 1234\n"
18358 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18359 "\n"
18360 msgstr ""
18361
18362 #. type: textblock
18363 #: ../fish/guestfish.pod:692
18364 msgid ""
18365 "When using the C<chmod> command, you almost always want to specify an octal "
18366 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18367 "L<chmod(1)> program):"
18368 msgstr ""
18369
18370 #. type: verbatim
18371 #: ../fish/guestfish.pod:696
18372 #, no-wrap
18373 msgid ""
18374 " chmod 0777 /public  # OK\n"
18375 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18376 "\n"
18377 msgstr ""
18378
18379 #. type: textblock
18380 #: ../fish/guestfish.pod:699
18381 msgid ""
18382 "Commands that return numbers usually print them in decimal, but some "
18383 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18384 "octal, preceeded by C<0>)."
18385 msgstr ""
18386
18387 #. type: =head1
18388 #: ../fish/guestfish.pod:703
18389 msgid "WILDCARDS AND GLOBBING"
18390 msgstr ""
18391
18392 #. type: textblock
18393 #: ../fish/guestfish.pod:705
18394 msgid ""
18395 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18396 "(globbing) by default.  So for example the following will not do what you "
18397 "expect:"
18398 msgstr ""
18399
18400 #. type: verbatim
18401 #: ../fish/guestfish.pod:709
18402 #, no-wrap
18403 msgid ""
18404 " rm-rf /home/*\n"
18405 "\n"
18406 msgstr ""
18407
18408 #. type: textblock
18409 #: ../fish/guestfish.pod:711
18410 msgid ""
18411 "Assuming you don't have a directory called literally C</home/*> then the "
18412 "above command will return an error."
18413 msgstr ""
18414
18415 #. type: textblock
18416 #: ../fish/guestfish.pod:714
18417 msgid "To perform wildcard expansion, use the C<glob> command."
18418 msgstr ""
18419
18420 #. type: verbatim
18421 #: ../fish/guestfish.pod:716
18422 #, no-wrap
18423 msgid ""
18424 " glob rm-rf /home/*\n"
18425 "\n"
18426 msgstr ""
18427
18428 #. type: textblock
18429 #: ../fish/guestfish.pod:718
18430 msgid ""
18431 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18432 "many times), equivalent to:"
18433 msgstr ""
18434
18435 #. type: verbatim
18436 #: ../fish/guestfish.pod:721
18437 #, no-wrap
18438 msgid ""
18439 " rm-rf /home/jim\n"
18440 " rm-rf /home/joe\n"
18441 " rm-rf /home/mary\n"
18442 "\n"
18443 msgstr ""
18444
18445 #. type: textblock
18446 #: ../fish/guestfish.pod:725
18447 msgid "C<glob> only works on simple guest paths and not on device names."
18448 msgstr ""
18449
18450 #. type: textblock
18451 #: ../fish/guestfish.pod:727
18452 msgid ""
18453 "If you have several parameters, each containing a wildcard, then glob will "
18454 "perform a Cartesian product."
18455 msgstr ""
18456
18457 #. type: =head1
18458 #: ../fish/guestfish.pod:730
18459 msgid "COMMENTS"
18460 msgstr "КОМЕНТАРІ"
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:732
18464 msgid ""
18465 "Any line which starts with a I<#> character is treated as a comment and "
18466 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18467 "a command.  For example:"
18468 msgstr ""
18469
18470 #. type: verbatim
18471 #: ../fish/guestfish.pod:736
18472 #, no-wrap
18473 msgid ""
18474 " # this is a comment\n"
18475 "         # this is a comment\n"
18476 " foo # NOT a comment\n"
18477 "\n"
18478 msgstr ""
18479
18480 #. type: textblock
18481 #: ../fish/guestfish.pod:740
18482 msgid "Blank lines are also ignored."
18483 msgstr ""
18484
18485 #. type: =head1
18486 #: ../fish/guestfish.pod:742
18487 msgid "RUNNING COMMANDS LOCALLY"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fish/guestfish.pod:744
18492 msgid ""
18493 "Any line which starts with a I<!> character is treated as a command sent to "
18494 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18495 msgstr ""
18496
18497 #. type: verbatim
18498 #: ../fish/guestfish.pod:748
18499 #, no-wrap
18500 msgid ""
18501 " !mkdir local\n"
18502 " tgz-out /remote local/remote-data.tar.gz\n"
18503 "\n"
18504 msgstr ""
18505
18506 #. type: textblock
18507 #: ../fish/guestfish.pod:751
18508 msgid ""
18509 "will create a directory C<local> on the host, and then export the contents "
18510 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18511 "(See C<tgz-out>)."
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../fish/guestfish.pod:755
18516 msgid ""
18517 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18518 "effect, due to the way that subprocesses work in Unix."
18519 msgstr ""
18520
18521 #. type: =head2
18522 #: ../fish/guestfish.pod:758
18523 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18524 msgstr ""
18525
18526 #. type: textblock
18527 #: ../fish/guestfish.pod:760
18528 msgid ""
18529 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18530 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18531 "and executed as guestfish commands."
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../fish/guestfish.pod:764
18536 msgid ""
18537 "Thus you can use shell script to construct arbitrary guestfish commands "
18538 "which are then parsed by guestfish."
18539 msgstr ""
18540
18541 #. type: textblock
18542 #: ../fish/guestfish.pod:767
18543 msgid ""
18544 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18545 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18546 "if we use a shell script to create the guestfish commands for us:"
18547 msgstr ""
18548
18549 #. type: verbatim
18550 #: ../fish/guestfish.pod:772
18551 #, no-wrap
18552 msgid ""
18553 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18554 "\n"
18555 msgstr ""
18556
18557 #. type: textblock
18558 #: ../fish/guestfish.pod:774
18559 msgid "or with names like C</foo.001>:"
18560 msgstr ""
18561
18562 #. type: verbatim
18563 #: ../fish/guestfish.pod:776
18564 #, no-wrap
18565 msgid ""
18566 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18567 "\n"
18568 msgstr ""
18569
18570 #. type: textblock
18571 #: ../fish/guestfish.pod:778
18572 msgid ""
18573 "When using guestfish interactively it can be helpful to just run the shell "
18574 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18575 "ordinary I<!> local command), see what guestfish commands it would run, and "
18576 "when you are happy with those prepend the C<E<lt>> character to run the "
18577 "guestfish commands for real."
18578 msgstr ""
18579
18580 #. type: =head1
18581 #: ../fish/guestfish.pod:784
18582 msgid "PIPES"
18583 msgstr "КАНАЛИ"
18584
18585 #. type: textblock
18586 #: ../fish/guestfish.pod:786
18587 msgid ""
18588 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18589 "command (a guestfish command) to the second command (any host command).  For "
18590 "example:"
18591 msgstr ""
18592
18593 #. type: verbatim
18594 #: ../fish/guestfish.pod:790
18595 #, no-wrap
18596 msgid ""
18597 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18598 "\n"
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:792
18603 msgid ""
18604 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18605 "program).  The above command would list all accounts in the guest filesystem "
18606 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18607 msgstr ""
18608
18609 #. type: verbatim
18610 #: ../fish/guestfish.pod:797
18611 #, no-wrap
18612 msgid ""
18613 " hexdump /bin/ls | head\n"
18614 " list-devices | tail -1\n"
18615 " tgz-out / - | tar ztf -\n"
18616 "\n"
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../fish/guestfish.pod:801
18621 msgid ""
18622 "The space before the pipe symbol is required, any space after the pipe "
18623 "symbol is optional.  Everything after the pipe symbol is just passed "
18624 "straight to the host shell, so it can contain redirections, globs and "
18625 "anything else that makes sense on the host side."
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/guestfish.pod:806
18630 msgid ""
18631 "To use a literal argument which begins with a pipe symbol, you have to quote "
18632 "it, eg:"
18633 msgstr ""
18634
18635 #. type: verbatim
18636 #: ../fish/guestfish.pod:809
18637 #, no-wrap
18638 msgid ""
18639 " echo \"|\"\n"
18640 "\n"
18641 msgstr ""
18642
18643 #. type: =head1
18644 #: ../fish/guestfish.pod:811
18645 msgid "HOME DIRECTORIES"
18646 msgstr ""
18647
18648 #. type: textblock
18649 #: ../fish/guestfish.pod:813
18650 msgid ""
18651 "If a parameter starts with the character C<~> then the tilde may be expanded "
18652 "as a home directory path (either C<~> for the current user's home directory, "
18653 "or C<~user> for another user)."
18654 msgstr ""
18655
18656 #. type: textblock
18657 #: ../fish/guestfish.pod:817
18658 msgid ""
18659 "Note that home directory expansion happens for users known I<on the host>, "
18660 "not in the guest filesystem."
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../fish/guestfish.pod:820
18665 msgid ""
18666 "To use a literal argument which begins with a tilde, you have to quote it, "
18667 "eg:"
18668 msgstr ""
18669
18670 #. type: verbatim
18671 #: ../fish/guestfish.pod:823
18672 #, no-wrap
18673 msgid ""
18674 " echo \"~\"\n"
18675 "\n"
18676 msgstr ""
18677
18678 #. type: =head2
18679 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18680 msgid "ENCRYPTED DISKS"
18681 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18682
18683 #. type: textblock
18684 #: ../fish/guestfish.pod:827
18685 msgid ""
18686 "Libguestfs has some support for Linux guests encrypted according to the "
18687 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18688 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18689 "LUKS is supported."
18690 msgstr ""
18691
18692 #. type: textblock
18693 #: ../fish/guestfish.pod:832
18694 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18695 msgstr ""
18696
18697 #. type: verbatim
18698 #: ../fish/guestfish.pod:834
18699 #, no-wrap
18700 msgid ""
18701 " ><fs> vfs-type /dev/sda2\n"
18702 " crypto_LUKS\n"
18703 "\n"
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../fish/guestfish.pod:837
18708 msgid ""
18709 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18710 "device called C</dev/mapper/luksdev>."
18711 msgstr ""
18712
18713 #. type: verbatim
18714 #: ../fish/guestfish.pod:840
18715 #, no-wrap
18716 msgid ""
18717 " ><fs> luks-open /dev/sda2 luksdev\n"
18718 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18719 "\n"
18720 msgstr ""
18721
18722 #. type: textblock
18723 #: ../fish/guestfish.pod:843
18724 msgid ""
18725 "Finally you have to tell LVM to scan for volume groups on the newly created "
18726 "mapper device:"
18727 msgstr ""
18728
18729 #. type: verbatim
18730 #: ../fish/guestfish.pod:846
18731 #, no-wrap
18732 msgid ""
18733 " vgscan\n"
18734 " vg-activate-all true\n"
18735 "\n"
18736 msgstr ""
18737
18738 #. type: textblock
18739 #: ../fish/guestfish.pod:849
18740 msgid "The logical volume(s) can now be mounted in the usual way."
18741 msgstr ""
18742
18743 #. type: textblock
18744 #: ../fish/guestfish.pod:851
18745 msgid ""
18746 "Before closing a LUKS device you must unmount any logical volumes on it and "
18747 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18748 "one.  Then you can close the mapper device:"
18749 msgstr ""
18750
18751 #. type: verbatim
18752 #: ../fish/guestfish.pod:855
18753 #, no-wrap
18754 msgid ""
18755 " vg-activate false /dev/VG\n"
18756 " luks-close /dev/mapper/luksdev\n"
18757 "\n"
18758 msgstr ""
18759
18760 #. type: textblock
18761 #: ../fish/guestfish.pod:860
18762 msgid ""
18763 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18764 "letters and paths (with some limitations).  The following commands are "
18765 "equivalent:"
18766 msgstr ""
18767
18768 #. type: verbatim
18769 #: ../fish/guestfish.pod:864
18770 #, no-wrap
18771 msgid ""
18772 " file /WINDOWS/system32/config/system.LOG\n"
18773 "\n"
18774 msgstr ""
18775
18776 #. type: verbatim
18777 #: ../fish/guestfish.pod:866
18778 #, no-wrap
18779 msgid ""
18780 " file win:\\windows\\system32\\config\\system.log\n"
18781 "\n"
18782 msgstr ""
18783
18784 #. type: verbatim
18785 #: ../fish/guestfish.pod:868
18786 #, no-wrap
18787 msgid ""
18788 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18789 "\n"
18790 msgstr ""
18791
18792 #. type: textblock
18793 #: ../fish/guestfish.pod:870
18794 msgid ""
18795 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18796 "where the drive is mounted, prepending that to the path, changing all "
18797 "backslash characters to forward slash, then resolving the result using L</"
18798 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18799 "the parameter might be rewritten like this:"
18800 msgstr ""
18801
18802 #. type: verbatim
18803 #: ../fish/guestfish.pod:876
18804 #, no-wrap
18805 msgid ""
18806 " win:e:\\foo\\bar => /e/FOO/bar\n"
18807 "\n"
18808 msgstr ""
18809
18810 #. type: textblock
18811 #: ../fish/guestfish.pod:878
18812 msgid "This only works in argument positions that expect a path."
18813 msgstr ""
18814
18815 #. type: =head1
18816 #: ../fish/guestfish.pod:880
18817 msgid "UPLOADING AND DOWNLOADING FILES"
18818 msgstr ""
18819
18820 #. type: textblock
18821 #: ../fish/guestfish.pod:882
18822 msgid ""
18823 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18824 "others which upload from or download to a local file, you can use the "
18825 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18826 msgstr ""
18827
18828 #. type: verbatim
18829 #: ../fish/guestfish.pod:886
18830 #, no-wrap
18831 msgid ""
18832 " upload - /foo\n"
18833 "\n"
18834 msgstr ""
18835
18836 #. type: textblock
18837 #: ../fish/guestfish.pod:888
18838 msgid ""
18839 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18840 msgstr ""
18841
18842 #. type: verbatim
18843 #: ../fish/guestfish.pod:891
18844 #, no-wrap
18845 msgid ""
18846 " tar-out /etc - | tar tf -\n"
18847 "\n"
18848 msgstr ""
18849
18850 #. type: textblock
18851 #: ../fish/guestfish.pod:893
18852 msgid ""
18853 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18854 "command (see L</PIPES>)."
18855 msgstr ""
18856
18857 #. type: textblock
18858 #: ../fish/guestfish.pod:896
18859 msgid ""
18860 "When using C<-> to read from stdin, the input is read up to the end of "
18861 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18862 "some arbitrary end marker:"
18863 msgstr ""
18864
18865 #. type: verbatim
18866 #: ../fish/guestfish.pod:900
18867 #, no-wrap
18868 msgid ""
18869 " upload -<<END /foo\n"
18870 " input line 1\n"
18871 " input line 2\n"
18872 " input line 3\n"
18873 " END\n"
18874 "\n"
18875 msgstr ""
18876
18877 #. type: textblock
18878 #: ../fish/guestfish.pod:906
18879 msgid ""
18880 "Any string of characters can be used instead of C<END>.  The end marker must "
18881 "appear on a line of its own, without any preceeding or following characters "
18882 "(not even spaces)."
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/guestfish.pod:910
18887 msgid ""
18888 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18889 "upload local files (so-called \"FileIn\" parameters in the generator)."
18890 msgstr ""
18891
18892 #. type: =head1
18893 #: ../fish/guestfish.pod:913
18894 msgid "EXIT ON ERROR BEHAVIOUR"
18895 msgstr ""
18896
18897 #. type: textblock
18898 #: ../fish/guestfish.pod:915
18899 msgid ""
18900 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18901 "taking commands from a human over a tty), and will exit on the first error "
18902 "in non-interactive mode (scripts, commands given on the command line)."
18903 msgstr ""
18904
18905 #. type: textblock
18906 #: ../fish/guestfish.pod:920
18907 msgid ""
18908 "If you prefix a command with a I<-> character, then that command will not "
18909 "cause guestfish to exit, even if that (one) command returns an error."
18910 msgstr ""
18911
18912 #. type: =head1
18913 #: ../fish/guestfish.pod:924
18914 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:926
18919 msgid ""
18920 "Guestfish can be remote-controlled over a socket.  This is useful "
18921 "particularly in shell scripts where you want to make several different "
18922 "changes to a filesystem, but you don't want the overhead of starting up a "
18923 "guestfish process each time."
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:931
18928 msgid "Start a guestfish server process using:"
18929 msgstr ""
18930
18931 #. type: verbatim
18932 #: ../fish/guestfish.pod:933
18933 #, no-wrap
18934 msgid ""
18935 " eval \"`guestfish --listen`\"\n"
18936 "\n"
18937 msgstr ""
18938
18939 #. type: textblock
18940 #: ../fish/guestfish.pod:935
18941 msgid "and then send it commands by doing:"
18942 msgstr ""
18943
18944 #. type: verbatim
18945 #: ../fish/guestfish.pod:937
18946 #, no-wrap
18947 msgid ""
18948 " guestfish --remote cmd [...]\n"
18949 "\n"
18950 msgstr ""
18951
18952 #. type: textblock
18953 #: ../fish/guestfish.pod:939
18954 msgid "To cause the server to exit, send it the exit command:"
18955 msgstr ""
18956
18957 #. type: textblock
18958 #: ../fish/guestfish.pod:943
18959 msgid ""
18960 "Note that the server will normally exit if there is an error in a command.  "
18961 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18962 "BEHAVIOUR>."
18963 msgstr ""
18964
18965 #. type: =head2
18966 #: ../fish/guestfish.pod:947
18967 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18968 msgstr ""
18969
18970 #. type: textblock
18971 #: ../fish/guestfish.pod:949
18972 msgid ""
18973 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18974 "is how the I<--remote> option knows where to send the commands.  You can "
18975 "have several guestfish listener processes running using:"
18976 msgstr ""
18977
18978 #. type: verbatim
18979 #: ../fish/guestfish.pod:953
18980 #, no-wrap
18981 msgid ""
18982 " eval \"`guestfish --listen`\"\n"
18983 " pid1=$GUESTFISH_PID\n"
18984 " eval \"`guestfish --listen`\"\n"
18985 " pid2=$GUESTFISH_PID\n"
18986 " ...\n"
18987 " guestfish --remote=$pid1 cmd\n"
18988 " guestfish --remote=$pid2 cmd\n"
18989 "\n"
18990 msgstr ""
18991
18992 #. type: =head2
18993 #: ../fish/guestfish.pod:961
18994 msgid "REMOTE CONTROL AND CSH"
18995 msgstr ""
18996
18997 #. type: textblock
18998 #: ../fish/guestfish.pod:963
18999 msgid ""
19000 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19001 "option:"
19002 msgstr ""
19003
19004 #. type: verbatim
19005 #: ../fish/guestfish.pod:966
19006 #, no-wrap
19007 msgid ""
19008 " eval \"`guestfish --listen --csh`\"\n"
19009 "\n"
19010 msgstr ""
19011
19012 #. type: =head2
19013 #: ../fish/guestfish.pod:968
19014 msgid "REMOTE CONTROL DETAILS"
19015 msgstr ""
19016
19017 #. type: textblock
19018 #: ../fish/guestfish.pod:970
19019 msgid ""
19020 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19021 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19022 "and C<$PID> is the process ID of the server."
19023 msgstr ""
19024
19025 #. type: textblock
19026 #: ../fish/guestfish.pod:974
19027 msgid "Guestfish client and server versions must match exactly."
19028 msgstr ""
19029
19030 #. type: =head2
19031 #: ../fish/guestfish.pod:976
19032 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19033 msgstr ""
19034
19035 #. type: textblock
19036 #: ../fish/guestfish.pod:978
19037 msgid ""
19038 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19039 "context hangs, ie. don't do (note the backquotes):"
19040 msgstr ""
19041
19042 #. type: verbatim
19043 #: ../fish/guestfish.pod:981
19044 #, fuzzy, no-wrap
19045 #| msgid ""
19046 #| " guestfish --ro -d myguest -i\n"
19047 #| "\n"
19048 msgid ""
19049 " a=`guestfish --remote run`\n"
19050 "\n"
19051 msgstr ""
19052 " guestfish --ro -d myguest -i\n"
19053 "\n"
19054
19055 #. type: textblock
19056 #: ../fish/guestfish.pod:983
19057 msgid ""
19058 "Since the C<run> command produces no output on stdout, this is not useful "
19059 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19060 "cgi?id=592910>."
19061 msgstr ""
19062
19063 #. type: =head1
19064 #: ../fish/guestfish.pod:987
19065 msgid "PREPARED DISK IMAGES"
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fish/guestfish.pod:989
19070 msgid ""
19071 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19072 "preformatted disk images that guestfish can make for you to save typing.  "
19073 "This is particularly useful for testing purposes.  This option is used "
19074 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19075 "can be mixed with I<-a>)."
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../fish/guestfish.pod:995
19080 msgid ""
19081 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19082 "the second and so on.  Existing files in the current directory are "
19083 "I<overwritten>."
19084 msgstr ""
19085
19086 #. type: textblock
19087 #: ../fish/guestfish.pod:999
19088 msgid ""
19089 "The type briefly describes how the disk should be sized, partitioned, how "
19090 "filesystem(s) should be created, and how content should be added.  "
19091 "Optionally the type can be followed by extra parameters, separated by C<:> "
19092 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19093 "allocated disk, containing a single partition, with the partition formatted "
19094 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19095 "disk instead."
19096 msgstr ""
19097
19098 #. type: textblock
19099 #: ../fish/guestfish.pod:1007
19100 msgid "To list the available types and any extra parameters they take, run:"
19101 msgstr ""
19102
19103 #. type: textblock
19104 #: ../fish/guestfish.pod:1011
19105 msgid ""
19106 "Note that the prepared filesystem is not mounted.  You would usually have to "
19107 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19108 msgstr ""
19109
19110 #. type: textblock
19111 #: ../fish/guestfish.pod:1015
19112 msgid ""
19113 "If any I<-N> or I<--new> options are given, the guest is automatically "
19114 "launched."
19115 msgstr ""
19116
19117 #. type: textblock
19118 #: ../fish/guestfish.pod:1020
19119 msgid "Create a 100MB disk with an ext4-formatted partition:"
19120 msgstr ""
19121
19122 #. type: verbatim
19123 #: ../fish/guestfish.pod:1022
19124 #, no-wrap
19125 msgid ""
19126 " guestfish -N fs:ext4\n"
19127 "\n"
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fish/guestfish.pod:1024
19132 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19133 msgstr ""
19134
19135 #. type: verbatim
19136 #: ../fish/guestfish.pod:1026
19137 #, no-wrap
19138 msgid ""
19139 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19140 "\n"
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:1028
19145 msgid "Create a blank 200MB disk:"
19146 msgstr ""
19147
19148 #. type: verbatim
19149 #: ../fish/guestfish.pod:1030
19150 #, no-wrap
19151 msgid ""
19152 " guestfish -N disk:200M\n"
19153 "\n"
19154 msgstr ""
19155
19156 #. type: =head1
19157 #: ../fish/guestfish.pod:1032
19158 msgid "PROGRESS BARS"
19159 msgstr ""
19160
19161 #. type: textblock
19162 #: ../fish/guestfish.pod:1034
19163 msgid ""
19164 "Some (not all) long-running commands send progress notification messages as "
19165 "they are running.  Guestfish turns these messages into progress bars."
19166 msgstr ""
19167
19168 #. type: textblock
19169 #: ../fish/guestfish.pod:1038
19170 msgid ""
19171 "When a command that supports progress bars takes longer than two seconds to "
19172 "run, and if progress bars are enabled, then you will see one appearing below "
19173 "the command:"
19174 msgstr ""
19175
19176 #. type: verbatim
19177 #: ../fish/guestfish.pod:1042
19178 #, no-wrap
19179 msgid ""
19180 " ><fs> copy-size /large-file /another-file 2048M\n"
19181 " / 10% [#####-----------------------------------------] 00:30\n"
19182 "\n"
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../fish/guestfish.pod:1045
19187 msgid ""
19188 "The spinner on the left hand side moves round once for every progress "
19189 "notification received from the backend.  This is a (reasonably) golden "
19190 "assurance that the command is \"doing something\" even if the progress bar "
19191 "is not moving, because the command is able to send the progress "
19192 "notifications.  When the bar reaches 100% and the command finishes, the "
19193 "spinner disappears."
19194 msgstr ""
19195
19196 #. type: textblock
19197 #: ../fish/guestfish.pod:1052
19198 msgid ""
19199 "Progress bars are enabled by default when guestfish is used interactively.  "
19200 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19201 "and you can disable them completely using I<--no-progress-bars>."
19202 msgstr ""
19203
19204 #. type: =head1
19205 #: ../fish/guestfish.pod:1057
19206 msgid "GUESTFISH COMMANDS"
19207 msgstr ""
19208
19209 #. type: textblock
19210 #: ../fish/guestfish.pod:1059
19211 msgid ""
19212 "The commands in this section are guestfish convenience commands, in other "
19213 "words, they are not part of the L<guestfs(3)> API."
19214 msgstr ""
19215
19216 #. type: =head2
19217 #: ../fish/guestfish.pod:1062
19218 msgid "help"
19219 msgstr "help"
19220
19221 #. type: verbatim
19222 #: ../fish/guestfish.pod:1064
19223 #, no-wrap
19224 msgid ""
19225 " help\n"
19226 " help cmd\n"
19227 "\n"
19228 msgstr ""
19229 " help\n"
19230 " help команда\n"
19231 "\n"
19232
19233 #. type: textblock
19234 #: ../fish/guestfish.pod:1067
19235 msgid "Without any parameter, this provides general help."
19236 msgstr "Без параметра показує загальну довідкову інформацію."
19237
19238 #. type: textblock
19239 #: ../fish/guestfish.pod:1069
19240 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19241 msgstr ""
19242
19243 #. type: =head2
19244 #: ../fish/guestfish.pod:1071
19245 msgid "quit | exit"
19246 msgstr ""
19247
19248 #. type: textblock
19249 #: ../fish/guestfish.pod:1073
19250 msgid "This exits guestfish.  You can also use C<^D> key."
19251 msgstr ""
19252
19253 #. type: textblock
19254 #: ../fish/guestfish.pod:1075
19255 msgid "@FISH_COMMANDS@"
19256 msgstr ""
19257
19258 #. type: =head1
19259 #: ../fish/guestfish.pod:1077
19260 msgid "COMMANDS"
19261 msgstr "КОМАНДИ"
19262
19263 #. type: textblock
19264 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
19265 msgid "@ACTIONS@"
19266 msgstr "@ACTIONS@"
19267
19268 #. type: textblock
19269 #: ../fish/guestfish.pod:1083
19270 msgid ""
19271 "guestfish returns 0 if the commands completed without error, or 1 if there "
19272 "was an error."
19273 msgstr ""
19274
19275 #. type: =item
19276 #: ../fish/guestfish.pod:1090
19277 msgid "EDITOR"
19278 msgstr "РЕДАКТОР"
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:1092
19282 msgid ""
19283 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19284 "C<vi>."
19285 msgstr ""
19286
19287 #. type: =item
19288 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2985
19289 msgid "FEBOOTSTRAP_KERNEL"
19290 msgstr ""
19291
19292 #. type: =item
19293 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2987
19294 msgid "FEBOOTSTRAP_MODULES"
19295 msgstr ""
19296
19297 #. type: textblock
19298 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2989
19299 msgid ""
19300 "These two environment variables allow the kernel that libguestfs uses in the "
19301 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19302 "most recent host kernel is chosen.  For more information about kernel "
19303 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19304 "available in febootstrap E<ge> 3.8."
19305 msgstr ""
19306
19307 #. type: =item
19308 #: ../fish/guestfish.pod:1105
19309 msgid "GUESTFISH_DISPLAY_IMAGE"
19310 msgstr ""
19311
19312 #. type: textblock
19313 #: ../fish/guestfish.pod:1107
19314 msgid ""
19315 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19316 "If not set, it uses L<display(1)>."
19317 msgstr ""
19318
19319 #. type: =item
19320 #: ../fish/guestfish.pod:1110
19321 msgid "GUESTFISH_PID"
19322 msgstr ""
19323
19324 #. type: textblock
19325 #: ../fish/guestfish.pod:1112
19326 msgid ""
19327 "Used with the I<--remote> option to specify the remote guestfish process to "
19328 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19329 msgstr ""
19330
19331 #. type: =item
19332 #: ../fish/guestfish.pod:1116
19333 msgid "HEXEDITOR"
19334 msgstr ""
19335
19336 #. type: textblock
19337 #: ../fish/guestfish.pod:1118
19338 msgid ""
19339 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19340 "not specified, the external L<hexedit(1)> program is used."
19341 msgstr ""
19342
19343 #. type: =item
19344 #: ../fish/guestfish.pod:1122
19345 msgid "HOME"
19346 msgstr "ДОМІВКА"
19347
19348 #. type: textblock
19349 #: ../fish/guestfish.pod:1124
19350 msgid ""
19351 "If compiled with GNU readline support, various files in the home directory "
19352 "can be used.  See L</FILES>."
19353 msgstr ""
19354
19355 #. type: =item
19356 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2995
19357 msgid "LIBGUESTFS_APPEND"
19358 msgstr ""
19359
19360 #. type: textblock
19361 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2997
19362 msgid "Pass additional options to the guest kernel."
19363 msgstr ""
19364
19365 #. type: =item
19366 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2999
19367 msgid "LIBGUESTFS_DEBUG"
19368 msgstr "LIBGUESTFS_DEBUG"
19369
19370 #. type: textblock
19371 #: ../fish/guestfish.pod:1133
19372 msgid ""
19373 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19374 "effect as using the B<-v> option."
19375 msgstr ""
19376
19377 #. type: =item
19378 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3004
19379 msgid "LIBGUESTFS_MEMSIZE"
19380 msgstr "LIBGUESTFS_MEMSIZE"
19381
19382 #. type: textblock
19383 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3006
19384 msgid ""
19385 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19386 msgstr ""
19387
19388 #. type: verbatim
19389 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3009
19390 #, no-wrap
19391 msgid ""
19392 " LIBGUESTFS_MEMSIZE=700\n"
19393 "\n"
19394 msgstr ""
19395 " LIBGUESTFS_MEMSIZE=700\n"
19396 "\n"
19397
19398 #. type: =item
19399 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3011
19400 msgid "LIBGUESTFS_PATH"
19401 msgstr ""
19402
19403 #. type: textblock
19404 #: ../fish/guestfish.pod:1145
19405 msgid ""
19406 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19407 "the discussion of paths in L<guestfs(3)>."
19408 msgstr ""
19409
19410 #. type: =item
19411 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3016
19412 msgid "LIBGUESTFS_QEMU"
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3018
19417 msgid ""
19418 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19419 "which was found at compile time by the configure script is used."
19420 msgstr ""
19421
19422 #. type: =item
19423 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3024
19424 msgid "LIBGUESTFS_TRACE"
19425 msgstr ""
19426
19427 #. type: textblock
19428 #: ../fish/guestfish.pod:1156
19429 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19430 msgstr ""
19431
19432 #. type: =item
19433 #: ../fish/guestfish.pod:1158
19434 msgid "PAGER"
19435 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19436
19437 #. type: textblock
19438 #: ../fish/guestfish.pod:1160
19439 msgid ""
19440 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19441 "C<more>."
19442 msgstr ""
19443
19444 #. type: =item
19445 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3029
19446 msgid "TMPDIR"
19447 msgstr ""
19448
19449 #. type: textblock
19450 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3031
19451 msgid ""
19452 "Location of temporary directory, defaults to C</tmp> except for the cached "
19453 "supermin appliance which defaults to C</var/tmp>."
19454 msgstr ""
19455
19456 #. type: textblock
19457 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3034
19458 msgid ""
19459 "If libguestfs was compiled to use the supermin appliance then the real "
19460 "appliance is cached in this directory, shared between all handles belonging "
19461 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19462 "use in case C</var/tmp> is not large enough."
19463 msgstr ""
19464
19465 #. type: =head1
19466 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19467 #: ../rescue/virt-rescue.pod:269
19468 msgid "FILES"
19469 msgstr "ФАЙЛИ"
19470
19471 #. type: =item
19472 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19473 #: ../rescue/virt-rescue.pod:273
19474 msgid "$HOME/.libguestfs-tools.rc"
19475 msgstr ""
19476
19477 #. type: =item
19478 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19479 #: ../rescue/virt-rescue.pod:275
19480 msgid "/etc/libguestfs-tools.conf"
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19485 #: ../rescue/virt-rescue.pod:277
19486 msgid ""
19487 "This configuration file controls the default read-only or read-write mode "
19488 "(I<--ro> or I<--rw>)."
19489 msgstr ""
19490
19491 #. type: textblock
19492 #: ../fish/guestfish.pod:1187
19493 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19494 msgstr ""
19495
19496 #. type: =item
19497 #: ../fish/guestfish.pod:1189
19498 msgid "$HOME/.guestfish"
19499 msgstr ""
19500
19501 #. type: textblock
19502 #: ../fish/guestfish.pod:1191
19503 msgid ""
19504 "If compiled with GNU readline support, then the command history is saved in "
19505 "this file."
19506 msgstr ""
19507
19508 #. type: =item
19509 #: ../fish/guestfish.pod:1194
19510 msgid "$HOME/.inputrc"
19511 msgstr ""
19512
19513 #. type: =item
19514 #: ../fish/guestfish.pod:1196
19515 msgid "/etc/inputrc"
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../fish/guestfish.pod:1198
19520 msgid ""
19521 "If compiled with GNU readline support, then these files can be used to "
19522 "configure readline.  For further information, please see L<readline(3)/"
19523 "INITIALIZATION FILE>."
19524 msgstr ""
19525
19526 #. type: textblock
19527 #: ../fish/guestfish.pod:1202
19528 msgid "To write rules which only apply to guestfish, use:"
19529 msgstr ""
19530
19531 #. type: verbatim
19532 #: ../fish/guestfish.pod:1204
19533 #, no-wrap
19534 msgid ""
19535 " $if guestfish\n"
19536 " ...\n"
19537 " $endif\n"
19538 "\n"
19539 msgstr ""
19540
19541 #. type: textblock
19542 #: ../fish/guestfish.pod:1208
19543 msgid ""
19544 "Variables that you can set in inputrc that change the behaviour of guestfish "
19545 "in useful ways include:"
19546 msgstr ""
19547
19548 #. type: =item
19549 #: ../fish/guestfish.pod:1213
19550 msgid "completion-ignore-case (default: on)"
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../fish/guestfish.pod:1215
19555 msgid ""
19556 "By default, guestfish will ignore case when tab-completing paths on the "
19557 "disk.  Use:"
19558 msgstr ""
19559
19560 #. type: verbatim
19561 #: ../fish/guestfish.pod:1218
19562 #, no-wrap
19563 msgid ""
19564 " set completion-ignore-case off\n"
19565 "\n"
19566 msgstr ""
19567
19568 #. type: textblock
19569 #: ../fish/guestfish.pod:1220
19570 msgid "to make guestfish case sensitive."
19571 msgstr ""
19572
19573 #. type: =item
19574 #: ../fish/guestfish.pod:1224
19575 msgid "test1.img"
19576 msgstr ""
19577
19578 #. type: =item
19579 #: ../fish/guestfish.pod:1226
19580 msgid "test2.img (etc)"
19581 msgstr ""
19582
19583 #. type: textblock
19584 #: ../fish/guestfish.pod:1228
19585 msgid ""
19586 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19587 "will be created in the file C<test1.img> in the current directory.  The "
19588 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19589 "the same name will be overwritten."
19590 msgstr ""
19591
19592 #. type: textblock
19593 #: ../fish/guestfish.pod:1237
19594 msgid ""
19595 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19596 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19597 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19598 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19599 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19600 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19601 msgstr ""
19602
19603 #. type: textblock
19604 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3120
19605 #: ../test-tool/libguestfs-test-tool.pod:99
19606 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19607 msgstr ""
19608
19609 #. type: textblock
19610 #: ../fish/virt-copy-in.pod:5
19611 msgid ""
19612 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19613 msgstr ""
19614
19615 #. type: verbatim
19616 #: ../fish/virt-copy-in.pod:9
19617 #, no-wrap
19618 msgid ""
19619 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19620 "\n"
19621 msgstr ""
19622
19623 #. type: verbatim
19624 #: ../fish/virt-copy-in.pod:11
19625 #, no-wrap
19626 msgid ""
19627 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19628 "\n"
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../fish/virt-copy-in.pod:15
19633 msgid ""
19634 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19635 "causing disk corruption.  The virtual machine must be shut down before you "
19636 "use this command."
19637 msgstr ""
19638
19639 #. type: textblock
19640 #: ../fish/virt-copy-in.pod:21
19641 msgid ""
19642 "C<virt-copy-in> copies files and directories from the local disk into a "
19643 "virtual machine disk image or named libvirt domain."
19644 msgstr ""
19645
19646 #. type: textblock
19647 #: ../fish/virt-copy-in.pod:24
19648 msgid ""
19649 "You can give one of more filenames and directories on the command line.  "
19650 "Directories are copied in recursively.  The final parameter must be the "
19651 "destination directory in the disk image which must be an absolute path "
19652 "starting with a C</> character."
19653 msgstr ""
19654
19655 #. type: verbatim
19656 #: ../fish/virt-copy-in.pod:33
19657 #, no-wrap
19658 msgid ""
19659 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19660 "\n"
19661 msgstr ""
19662
19663 #. type: textblock
19664 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19665 msgid "Upload a home directory to a guest:"
19666 msgstr ""
19667
19668 #. type: verbatim
19669 #: ../fish/virt-copy-in.pod:37
19670 #, no-wrap
19671 msgid ""
19672 " virt-copy-in -d MyGuest skel /home\n"
19673 "\n"
19674 msgstr ""
19675
19676 #. type: =head1
19677 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19678 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19679 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../fish/virt-copy-in.pod:41
19684 msgid ""
19685 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19686 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19687 "are probably better off using guestfish directly."
19688 msgstr ""
19689
19690 #. type: textblock
19691 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19692 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19693 msgid ""
19694 "Since the shell script just passes options straight to guestfish, read "
19695 "L<guestfish(1)> to see the full list of options."
19696 msgstr ""
19697
19698 #. type: textblock
19699 #: ../fish/virt-copy-in.pod:52
19700 #, fuzzy
19701 #| msgid ""
19702 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19703 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19704 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19705 #| "libguestfs.org/>."
19706 msgid ""
19707 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19708 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19709 msgstr ""
19710 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19711 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19712 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19713 "org/>."
19714
19715 #. type: textblock
19716 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19717 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19718 #, fuzzy
19719 #| msgid "Copyright (C) 2009 Red Hat Inc."
19720 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19721 msgstr "© Red Hat Inc., 2009"
19722
19723 #. type: textblock
19724 #: ../fish/virt-copy-out.pod:5
19725 msgid ""
19726 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19727 "image."
19728 msgstr ""
19729
19730 #. type: verbatim
19731 #: ../fish/virt-copy-out.pod:9
19732 #, no-wrap
19733 msgid ""
19734 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19735 "\n"
19736 msgstr ""
19737
19738 #. type: verbatim
19739 #: ../fish/virt-copy-out.pod:11
19740 #, no-wrap
19741 msgid ""
19742 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19743 "\n"
19744 msgstr ""
19745
19746 #. type: textblock
19747 #: ../fish/virt-copy-out.pod:15
19748 msgid ""
19749 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19750 "image or named libvirt domain."
19751 msgstr ""
19752
19753 #. type: textblock
19754 #: ../fish/virt-copy-out.pod:18
19755 msgid ""
19756 "You can give one of more filenames and directories on the command line.  "
19757 "Directories are copied out recursively."
19758 msgstr ""
19759
19760 #. type: textblock
19761 #: ../fish/virt-copy-out.pod:23
19762 msgid "Download the home directories from a virtual machine:"
19763 msgstr ""
19764
19765 #. type: verbatim
19766 #: ../fish/virt-copy-out.pod:25
19767 #, no-wrap
19768 msgid ""
19769 " mkdir homes\n"
19770 " virt-copy-out -d MyGuest /home homes\n"
19771 "\n"
19772 msgstr ""
19773
19774 #. type: textblock
19775 #: ../fish/virt-copy-out.pod:30
19776 msgid ""
19777 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19778 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19779 "are probably better off using guestfish directly."
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../fish/virt-copy-out.pod:41
19784 #, fuzzy
19785 #| msgid ""
19786 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19787 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19788 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19789 #| "libguestfs.org/>."
19790 msgid ""
19791 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19792 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19793 msgstr ""
19794 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19795 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19796 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19797 "org/>."
19798
19799 #. type: textblock
19800 #: ../fish/virt-tar-in.pod:5
19801 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19802 msgstr ""
19803
19804 #. type: verbatim
19805 #: ../fish/virt-tar-in.pod:9
19806 #, no-wrap
19807 msgid ""
19808 " virt-tar-in -a disk.img data.tar /destination\n"
19809 "\n"
19810 msgstr ""
19811
19812 #. type: verbatim
19813 #: ../fish/virt-tar-in.pod:11
19814 #, no-wrap
19815 msgid ""
19816 " virt-tar-in -d domain data.tar /destination\n"
19817 "\n"
19818 msgstr ""
19819
19820 #. type: verbatim
19821 #: ../fish/virt-tar-in.pod:13
19822 #, no-wrap
19823 msgid ""
19824 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19825 "\n"
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../fish/virt-tar-in.pod:17
19830 msgid ""
19831 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19832 "causing disk corruption.  The virtual machine must be shut down before you "
19833 "use this command."
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/virt-tar-in.pod:23
19838 msgid ""
19839 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19840 "image or named libvirt domain."
19841 msgstr ""
19842
19843 #. type: textblock
19844 #: ../fish/virt-tar-in.pod:26
19845 msgid ""
19846 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19847 "standard input.  The second parameter is the absolute target directory to "
19848 "unpack into."
19849 msgstr ""
19850
19851 #. type: verbatim
19852 #: ../fish/virt-tar-in.pod:34
19853 #, no-wrap
19854 msgid ""
19855 " virt-tar-in -d MyGuest homes.tar /home\n"
19856 "\n"
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../fish/virt-tar-in.pod:38
19861 msgid ""
19862 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19863 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19864 "probably better off using guestfish directly."
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../fish/virt-tar-in.pod:49
19869 #, fuzzy
19870 #| msgid ""
19871 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19872 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19873 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19874 #| "libguestfs.org/>."
19875 msgid ""
19876 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19877 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19878 "org/>."
19879 msgstr ""
19880 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19881 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19882 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19883 "org/>."
19884
19885 #. type: textblock
19886 #: ../fish/virt-tar-out.pod:5
19887 msgid ""
19888 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19889 msgstr ""
19890
19891 #. type: verbatim
19892 #: ../fish/virt-tar-out.pod:9
19893 #, no-wrap
19894 msgid ""
19895 " virt-tar-out -a disk.img /dir files.tar\n"
19896 "\n"
19897 msgstr ""
19898
19899 #. type: verbatim
19900 #: ../fish/virt-tar-out.pod:11
19901 #, no-wrap
19902 msgid ""
19903 " virt-tar-out -d domain /dir files.tar\n"
19904 "\n"
19905 msgstr ""
19906
19907 #. type: verbatim
19908 #: ../fish/virt-tar-out.pod:13
19909 #, no-wrap
19910 msgid ""
19911 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19912 "\n"
19913 msgstr ""
19914
19915 #. type: textblock
19916 #: ../fish/virt-tar-out.pod:17
19917 msgid ""
19918 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19919 msgstr ""
19920
19921 #. type: textblock
19922 #: ../fish/virt-tar-out.pod:20
19923 msgid ""
19924 "The first parameter is the absolute path of the virtual machine directory.  "
19925 "The second parameter is the tar file to write.  Use C<-> to write to "
19926 "standard output."
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../fish/virt-tar-out.pod:26
19931 msgid "Download the home directories from a guest:"
19932 msgstr ""
19933
19934 #. type: verbatim
19935 #: ../fish/virt-tar-out.pod:28
19936 #, no-wrap
19937 msgid ""
19938 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19939 "\n"
19940 msgstr ""
19941
19942 #. type: textblock
19943 #: ../fish/virt-tar-out.pod:32
19944 msgid ""
19945 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19946 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19947 "are probably better off using guestfish directly."
19948 msgstr ""
19949
19950 #. type: textblock
19951 #: ../fish/virt-tar-out.pod:43
19952 #, fuzzy
19953 #| msgid ""
19954 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19955 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19956 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19957 #| "libguestfs.org/>."
19958 msgid ""
19959 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19960 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19961 msgstr ""
19962 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19963 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19964 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19965 "org/>."
19966
19967 #. type: textblock
19968 #: ../fuse/guestmount.pod:5
19969 msgid ""
19970 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19971 msgstr ""
19972
19973 #. type: verbatim
19974 #: ../fuse/guestmount.pod:9
19975 #, no-wrap
19976 msgid ""
19977 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19978 "\n"
19979 msgstr ""
19980
19981 #. type: verbatim
19982 #: ../fuse/guestmount.pod:11
19983 #, no-wrap
19984 msgid ""
19985 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19986 "\n"
19987 msgstr ""
19988
19989 #. type: verbatim
19990 #: ../fuse/guestmount.pod:13
19991 #, no-wrap
19992 msgid ""
19993 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19994 "\n"
19995 msgstr ""
19996
19997 #. type: textblock
19998 #: ../fuse/guestmount.pod:17
19999 msgid ""
20000 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20001 "machines.  If you do this, you risk disk corruption in the VM."
20002 msgstr ""
20003
20004 #. type: textblock
20005 #: ../fuse/guestmount.pod:22
20006 msgid ""
20007 "The guestmount program can be used to mount virtual machine filesystems and "
20008 "other disk images on the host.  It uses libguestfs for access to the guest "
20009 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20010 "a mountable device."
20011 msgstr ""
20012
20013 #. type: textblock
20014 #: ../fuse/guestmount.pod:27
20015 msgid ""
20016 "Along with other options, you have to give at least one device (I<-a> "
20017 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20018 "option) or use the I<-i> inspection option.  How this works is better "
20019 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20020 "below."
20021 msgstr ""
20022
20023 #. type: textblock
20024 #: ../fuse/guestmount.pod:33
20025 msgid ""
20026 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20027 "by you, and the filesystem will not be visible to any other users unless you "
20028 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20029 "the filesystem, use the C<fusermount -u> command."
20030 msgstr ""
20031
20032 #. type: textblock
20033 #: ../fuse/guestmount.pod:41
20034 msgid ""
20035 "For a typical Windows guest which has its main filesystem on the first "
20036 "partition:"
20037 msgstr ""
20038
20039 #. type: verbatim
20040 #: ../fuse/guestmount.pod:44
20041 #, no-wrap
20042 msgid ""
20043 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20044 "\n"
20045 msgstr ""
20046
20047 #. type: textblock
20048 #: ../fuse/guestmount.pod:46
20049 msgid ""
20050 "For a typical Linux guest which has a /boot filesystem on the first "
20051 "partition, and the root filesystem on a logical volume:"
20052 msgstr ""
20053
20054 #. type: verbatim
20055 #: ../fuse/guestmount.pod:49
20056 #, no-wrap
20057 msgid ""
20058 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20059 "\n"
20060 msgstr ""
20061
20062 #. type: textblock
20063 #: ../fuse/guestmount.pod:51
20064 msgid "To get libguestfs to detect guest mountpoints for you:"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../fuse/guestmount.pod:53
20069 #, no-wrap
20070 msgid ""
20071 " guestmount -a guest.img -i --ro /mnt\n"
20072 "\n"
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../fuse/guestmount.pod:55
20077 msgid "For a libvirt guest called \"Guest\" you could do:"
20078 msgstr ""
20079
20080 #. type: verbatim
20081 #: ../fuse/guestmount.pod:57
20082 #, no-wrap
20083 msgid ""
20084 " guestmount -d Guest -i --ro /mnt\n"
20085 "\n"
20086 msgstr ""
20087
20088 #. type: textblock
20089 #: ../fuse/guestmount.pod:59
20090 msgid ""
20091 "If you don't know what filesystems are contained in a guest or disk image, "
20092 "use L<virt-filesystems(1)> first:"
20093 msgstr ""
20094
20095 #. type: verbatim
20096 #: ../fuse/guestmount.pod:62
20097 #, no-wrap
20098 msgid ""
20099 " virt-filesystems MyGuest\n"
20100 "\n"
20101 msgstr ""
20102
20103 #. type: textblock
20104 #: ../fuse/guestmount.pod:64
20105 msgid ""
20106 "If you want to trace the libguestfs calls but without excessive debugging "
20107 "information, we recommend:"
20108 msgstr ""
20109
20110 #. type: verbatim
20111 #: ../fuse/guestmount.pod:67
20112 #, no-wrap
20113 msgid ""
20114 " guestmount [...] --trace /mnt\n"
20115 "\n"
20116 msgstr ""
20117
20118 #. type: textblock
20119 #: ../fuse/guestmount.pod:69
20120 msgid "If you want to debug the program, we recommend:"
20121 msgstr ""
20122
20123 #. type: verbatim
20124 #: ../fuse/guestmount.pod:71
20125 #, no-wrap
20126 msgid ""
20127 " guestmount [...] --trace --verbose /mnt\n"
20128 "\n"
20129 msgstr ""
20130
20131 #. type: =head1
20132 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20133 #: ../resize/virt-resize.pod:544
20134 msgid "NOTES"
20135 msgstr "ПРИМІТКИ"
20136
20137 #. type: =head2
20138 #: ../fuse/guestmount.pod:75
20139 msgid "Other users cannot see the filesystem by default"
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../fuse/guestmount.pod:77
20144 msgid ""
20145 "If you mount a filesystem as one user (eg. root), then other users will not "
20146 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20147 "option when mounting:"
20148 msgstr ""
20149
20150 #. type: verbatim
20151 #: ../fuse/guestmount.pod:81
20152 #, no-wrap
20153 msgid ""
20154 " sudo guestmount [...] -o allow_other /mnt\n"
20155 "\n"
20156 msgstr ""
20157
20158 #. type: textblock
20159 #: ../fuse/guestmount.pod:91
20160 msgid "Add a block device or virtual machine image."
20161 msgstr ""
20162
20163 #. type: =item
20164 #: ../fuse/guestmount.pod:114
20165 msgid "B<--dir-cache-timeout N>"
20166 msgstr "B<--dir-cache-timeout N>"
20167
20168 #. type: textblock
20169 #: ../fuse/guestmount.pod:116
20170 msgid ""
20171 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20172 "seconds.  The readdir cache [actually, there are several semi-independent "
20173 "caches] is populated after a readdir(2) call with the stat and extended "
20174 "attributes of the files in the directory, in anticipation that they will be "
20175 "requested soon after."
20176 msgstr ""
20177
20178 #. type: textblock
20179 #: ../fuse/guestmount.pod:122
20180 msgid ""
20181 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20182 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20183 "requests, only cache existing ones."
20184 msgstr ""
20185
20186 #. type: textblock
20187 #: ../fuse/guestmount.pod:142
20188 msgid ""
20189 "If you have untrusted raw-format guest disk images, you should use this "
20190 "option to specify the disk format.  This avoids a possible security problem "
20191 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20192 "guestfs_add_drive_opts>."
20193 msgstr ""
20194
20195 #. type: =item
20196 #: ../fuse/guestmount.pod:147
20197 msgid "B<--fuse-help>"
20198 msgstr "B<--fuse-help>"
20199
20200 #. type: textblock
20201 #: ../fuse/guestmount.pod:149
20202 msgid "Display help on special FUSE options (see I<-o> below)."
20203 msgstr ""
20204
20205 #. type: textblock
20206 #: ../fuse/guestmount.pod:153
20207 msgid "Display brief help and exit."
20208 msgstr ""
20209
20210 #. type: textblock
20211 #: ../fuse/guestmount.pod:177
20212 msgid ""
20213 "Mount the named partition or logical volume on the given mountpoint B<in the "
20214 "guest> (this has nothing to do with mountpoints in the host)."
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../fuse/guestmount.pod:180
20219 msgid ""
20220 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20221 "something on C</>."
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../fuse/guestmount.pod:197
20226 msgid ""
20227 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20228 "unmounted.  If you specify this option, then we don't attempt to sync the "
20229 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20230 msgstr ""
20231
20232 #. type: =item
20233 #: ../fuse/guestmount.pod:202
20234 #, fuzzy
20235 #| msgid "B<--partition>"
20236 msgid "B<-o option>"
20237 msgstr "B<--partition>"
20238
20239 #. type: =item
20240 #: ../fuse/guestmount.pod:204
20241 #, fuzzy
20242 #| msgid "B<--partition>"
20243 msgid "B<--option option>"
20244 msgstr "B<--partition>"
20245
20246 #. type: textblock
20247 #: ../fuse/guestmount.pod:206
20248 msgid "Pass extra options to FUSE."
20249 msgstr ""
20250
20251 #. type: textblock
20252 #: ../fuse/guestmount.pod:208
20253 msgid ""
20254 "To get a list of all the extra options supported by FUSE, use the command "
20255 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20256 "of them are a good idea."
20257 msgstr ""
20258
20259 #. type: verbatim
20260 #: ../fuse/guestmount.pod:212
20261 #, no-wrap
20262 msgid ""
20263 " guestmount --fuse-help\n"
20264 "\n"
20265 msgstr ""
20266
20267 #. type: textblock
20268 #: ../fuse/guestmount.pod:214
20269 msgid "Some potentially useful FUSE options:"
20270 msgstr ""
20271
20272 #. type: =item
20273 #: ../fuse/guestmount.pod:218
20274 msgid "B<-o allow_other>"
20275 msgstr ""
20276
20277 #. type: textblock
20278 #: ../fuse/guestmount.pod:220
20279 msgid "Allow other users to see the filesystem."
20280 msgstr ""
20281
20282 #. type: =item
20283 #: ../fuse/guestmount.pod:222
20284 msgid "B<-o attr_timeout=N>"
20285 msgstr "B<-o attr_timeout=N>"
20286
20287 #. type: textblock
20288 #: ../fuse/guestmount.pod:224
20289 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20290 msgstr ""
20291
20292 #. type: =item
20293 #: ../fuse/guestmount.pod:226
20294 msgid "B<-o kernel_cache>"
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fuse/guestmount.pod:228
20299 msgid ""
20300 "Allow the kernel to cache files (reduces the number of reads that have to go "
20301 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20302 "afford the extra memory usage."
20303 msgstr ""
20304
20305 #. type: =item
20306 #: ../fuse/guestmount.pod:232
20307 msgid "B<-o uid=N> B<-o gid=N>"
20308 msgstr ""
20309
20310 #. type: textblock
20311 #: ../fuse/guestmount.pod:234
20312 msgid ""
20313 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20314 "the chosen values."
20315 msgstr ""
20316
20317 #. type: textblock
20318 #: ../fuse/guestmount.pod:243
20319 msgid ""
20320 "Add devices and mount everything read-only.  Also disallow writes and make "
20321 "the disk appear read-only to FUSE."
20322 msgstr ""
20323
20324 #. type: textblock
20325 #: ../fuse/guestmount.pod:246
20326 msgid ""
20327 "This is highly recommended if you are not going to edit the guest disk.  If "
20328 "the guest is running and this option is I<not> supplied, then there is a "
20329 "strong risk of disk corruption in the guest.  We try to prevent this from "
20330 "happening, but it is not always possible."
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20335 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20336 msgstr ""
20337
20338 #. type: textblock
20339 #: ../fuse/guestmount.pod:255
20340 msgid "Enable SELinux support for the guest."
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fuse/guestmount.pod:261
20345 msgid "Enable verbose messages from underlying libguestfs."
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../fuse/guestmount.pod:267
20350 msgid "Display the program version and exit."
20351 msgstr ""
20352
20353 #. type: textblock
20354 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20355 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20356 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20357 msgstr ""
20358
20359 #. type: =item
20360 #: ../fuse/guestmount.pod:280
20361 #, fuzzy
20362 #| msgid "B<--ro>"
20363 msgid "B<--trace>"
20364 msgstr "B<--ro>"
20365
20366 #. type: textblock
20367 #: ../fuse/guestmount.pod:282
20368 msgid "Trace libguestfs calls and entry into each FUSE function."
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../fuse/guestmount.pod:284
20373 msgid "This also stops the daemon from forking into the background."
20374 msgstr ""
20375
20376 #. type: textblock
20377 #: ../fuse/guestmount.pod:310
20378 msgid ""
20379 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20380 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20381 "net/>."
20382 msgstr ""
20383
20384 #. type: textblock
20385 #: ../fuse/guestmount.pod:325
20386 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20387 msgstr ""
20388
20389 #. type: textblock
20390 #: ../inspector/virt-inspector.pod:5
20391 msgid ""
20392 "virt-inspector - Display operating system version and other information "
20393 "about a virtual machine"
20394 msgstr ""
20395
20396 #. type: verbatim
20397 #: ../inspector/virt-inspector.pod:9
20398 #, fuzzy, no-wrap
20399 #| msgid ""
20400 #| " virt-list-partitions [--options] domname\n"
20401 #| "\n"
20402 msgid ""
20403 " virt-inspector [--options] -d domname\n"
20404 "\n"
20405 msgstr ""
20406 " virt-list-partitions [--параметри] назва_домену\n"
20407 "\n"
20408
20409 #. type: verbatim
20410 #: ../inspector/virt-inspector.pod:11
20411 #, fuzzy, no-wrap
20412 #| msgid ""
20413 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20414 #| "\n"
20415 msgid ""
20416 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20417 "\n"
20418 msgstr ""
20419 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20420 "\n"
20421
20422 #. type: verbatim
20423 #: ../inspector/virt-inspector.pod:15
20424 #, fuzzy, no-wrap
20425 #| msgid ""
20426 #| " virt-list-partitions [--options] domname\n"
20427 #| "\n"
20428 msgid ""
20429 " virt-inspector domname\n"
20430 "\n"
20431 msgstr ""
20432 " virt-list-partitions [--параметри] назва_домену\n"
20433 "\n"
20434
20435 #. type: verbatim
20436 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20437 #, fuzzy, no-wrap
20438 #| msgid ""
20439 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20440 #| "\n"
20441 msgid ""
20442 " virt-inspector disk.img [disk.img ...]\n"
20443 "\n"
20444 msgstr ""
20445 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20446 "\n"
20447
20448 #. type: textblock
20449 #: ../inspector/virt-inspector.pod:21
20450 msgid ""
20451 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20452 "determine the version of the operating system and other information about "
20453 "the virtual machine."
20454 msgstr ""
20455
20456 #. type: textblock
20457 #: ../inspector/virt-inspector.pod:25
20458 msgid "Virt-inspector produces XML output for feeding into other programs."
20459 msgstr ""
20460
20461 #. type: textblock
20462 #: ../inspector/virt-inspector.pod:27
20463 msgid ""
20464 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20465 "the libvirt domain (see: C<virsh list --all>)."
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../inspector/virt-inspector.pod:30
20470 msgid ""
20471 "You can also run virt-inspector directly on disk images from a single "
20472 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20473 "has several block devices, in which case you should list several I<-a> "
20474 "options one after another, with the first corresponding to the guest's C</"
20475 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20476 msgstr ""
20477
20478 #. type: textblock
20479 #: ../inspector/virt-inspector.pod:37
20480 msgid ""
20481 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20482 "keys and similar."
20483 msgstr ""
20484
20485 #. type: textblock
20486 #: ../inspector/virt-inspector.pod:40
20487 msgid ""
20488 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20489 "inspect several virtual machines, you have to run virt-inspector several "
20490 "times (for example, from a shell script for-loop)."
20491 msgstr ""
20492
20493 #. type: textblock
20494 #: ../inspector/virt-inspector.pod:45
20495 msgid ""
20496 "Because virt-inspector needs direct access to guest images, it won't "
20497 "normally work over remote libvirt connections."
20498 msgstr ""
20499
20500 #. type: textblock
20501 #: ../inspector/virt-inspector.pod:48
20502 msgid ""
20503 "All of the information available from virt-inspector is also available "
20504 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20505 "The same information can also be fetched using guestfish or via libguestfs "
20506 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20507 "WITH OTHER PROGRAMMING LANGUAGES>)."
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../inspector/virt-inspector.pod:81
20512 msgid ""
20513 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20514 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20515 "at all."
20516 msgstr ""
20517
20518 #. type: textblock
20519 #: ../inspector/virt-inspector.pod:94
20520 msgid ""
20521 "When prompting for keys and passphrases, virt-inspector normally turns "
20522 "echoing off so you cannot see what you are typing.  If you are not worried "
20523 "about Tempest attacks and there is no one else in the room you can specify "
20524 "this flag to see what you are typing."
20525 msgstr ""
20526
20527 #. type: textblock
20528 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20529 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20530 #: ../tools/virt-win-reg.pl:144
20531 msgid ""
20532 "Specify the format of disk images given on the command line.  If this is "
20533 "omitted then the format is autodetected from the content of the disk image."
20534 msgstr ""
20535
20536 #. type: textblock
20537 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20538 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20539 #: ../tools/virt-win-reg.pl:148
20540 msgid ""
20541 "If disk images are requested from libvirt, then this program asks libvirt "
20542 "for this information.  In this case, the value of the format parameter is "
20543 "ignored."
20544 msgstr ""
20545
20546 #. type: textblock
20547 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20548 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20549 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20550 #: ../tools/virt-win-reg.pl:152
20551 msgid ""
20552 "If working with untrusted raw-format guest disk images, you should ensure "
20553 "the format is always specified."
20554 msgstr ""
20555
20556 #. type: textblock
20557 #: ../inspector/virt-inspector.pod:139
20558 msgid "Previous versions of virt-inspector allowed you to write either:"
20559 msgstr ""
20560
20561 #. type: verbatim
20562 #: ../inspector/virt-inspector.pod:145
20563 #, fuzzy, no-wrap
20564 #| msgid ""
20565 #| " inspect-get-hostname root\n"
20566 #| "\n"
20567 msgid ""
20568 " virt-inspector guestname\n"
20569 "\n"
20570 msgstr ""
20571 " inspect-get-hostname корінь\n"
20572 "\n"
20573
20574 #. type: =head1
20575 #: ../inspector/virt-inspector.pod:153
20576 msgid "XML FORMAT"
20577 msgstr ""
20578
20579 #. type: textblock
20580 #: ../inspector/virt-inspector.pod:155
20581 msgid ""
20582 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20583 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20584 "just an overview."
20585 msgstr ""
20586
20587 #. type: textblock
20588 #: ../inspector/virt-inspector.pod:159
20589 msgid ""
20590 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20591 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20592 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20593 "which is vanishingly rare in real world VMs."
20594 msgstr ""
20595
20596 #. type: =head2
20597 #: ../inspector/virt-inspector.pod:164
20598 msgid "E<lt>operatingsystemE<gt>"
20599 msgstr ""
20600
20601 #. type: textblock
20602 #: ../inspector/virt-inspector.pod:166
20603 msgid ""
20604 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20605 "describe the operating system, its architecture, the descriptive \"product "
20606 "name\" string, the type of OS and so on, as in this example:"
20607 msgstr ""
20608
20609 #. type: verbatim
20610 #: ../inspector/virt-inspector.pod:170
20611 #, no-wrap
20612 msgid ""
20613 " <operatingsystems>\n"
20614 "   <operatingsystem>\n"
20615 "     <root>/dev/sda2</root>\n"
20616 "     <name>windows</name>\n"
20617 "     <arch>i386</arch>\n"
20618 "     <distro>windows</distro>\n"
20619 "     <product_name>Windows 7 Enterprise</product_name>\n"
20620 "     <product_variant>Client</product_variant>\n"
20621 "     <major_version>6</major_version>\n"
20622 "     <minor_version>1</minor_version>\n"
20623 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20624 "     <format>installed</format>\n"
20625 "\n"
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../inspector/virt-inspector.pod:183
20630 msgid ""
20631 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20632 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20633 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20634 "architecture.  The other fields are fairly self-explanatory, but because "
20635 "these fields are taken directly from the libguestfs inspection API you can "
20636 "find precise information from L<guestfs(3)/INSPECTION>."
20637 msgstr ""
20638
20639 #. type: textblock
20640 #: ../inspector/virt-inspector.pod:191
20641 msgid ""
20642 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20643 "of view of libguestfs (block devices may have completely different names "
20644 "inside the VM itself)."
20645 msgstr ""
20646
20647 #. type: =head2
20648 #: ../inspector/virt-inspector.pod:195
20649 #, fuzzy
20650 #| msgid "mountpoints"
20651 msgid "E<lt>mountpointsE<gt>"
20652 msgstr "mountpoints"
20653
20654 #. type: textblock
20655 #: ../inspector/virt-inspector.pod:197
20656 msgid ""
20657 "Un*x-like guests typically have multiple filesystems which are mounted at "
20658 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20659 "element which looks like this:"
20660 msgstr ""
20661
20662 #. type: verbatim
20663 #: ../inspector/virt-inspector.pod:201
20664 #, no-wrap
20665 msgid ""
20666 " <operatingsystems>\n"
20667 "   <operatingsystem>\n"
20668 "     ...\n"
20669 "     <mountpoints>\n"
20670 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20671 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20672 "     </mountpoints>\n"
20673 "\n"
20674 msgstr ""
20675
20676 #. type: textblock
20677 #: ../inspector/virt-inspector.pod:209
20678 msgid ""
20679 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20680 "and may have completely different names inside the guest.  Only mountable "
20681 "filesystems appear in this list, not things like swap devices."
20682 msgstr ""
20683
20684 #. type: =head2
20685 #: ../inspector/virt-inspector.pod:214
20686 #, fuzzy
20687 #| msgid "list-filesystems"
20688 msgid "E<lt>filesystemsE<gt>"
20689 msgstr "list-filesystems"
20690
20691 #. type: textblock
20692 #: ../inspector/virt-inspector.pod:216
20693 msgid ""
20694 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20695 "filesystems belonging to the guest, including swap and empty partitions.  "
20696 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20697 "this OS or shared with this OS and other OSes)."
20698 msgstr ""
20699
20700 #. type: textblock
20701 #: ../inspector/virt-inspector.pod:222
20702 msgid "You might see something like this:"
20703 msgstr ""
20704
20705 #. type: verbatim
20706 #: ../inspector/virt-inspector.pod:224
20707 #, no-wrap
20708 msgid ""
20709 " <operatingsystems>\n"
20710 "   <operatingsystem>\n"
20711 "     ...\n"
20712 "     <filesystems>\n"
20713 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20714 "         <type>ext4</type>\n"
20715 "         <label>Fedora-13-x86_64</label>\n"
20716 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20717 "       </filesystem>\n"
20718 "\n"
20719 msgstr ""
20720
20721 #. type: textblock
20722 #: ../inspector/virt-inspector.pod:234
20723 msgid ""
20724 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20725 "the label, and the UUID."
20726 msgstr ""
20727
20728 #. type: =head2
20729 #: ../inspector/virt-inspector.pod:237
20730 msgid "E<lt>applicationsE<gt>"
20731 msgstr ""
20732
20733 #. type: textblock
20734 #: ../inspector/virt-inspector.pod:239
20735 msgid ""
20736 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20737 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20738 "machine."
20739 msgstr ""
20740
20741 #. type: textblock
20742 #: ../inspector/virt-inspector.pod:243
20743 msgid ""
20744 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20745 "Typical values would be C<rpm> and C<deb>."
20746 msgstr ""
20747
20748 #. type: textblock
20749 #: ../inspector/virt-inspector.pod:246
20750 msgid ""
20751 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20752 "Typical values include C<yum>, C<up2date> and C<apt>"
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../inspector/virt-inspector.pod:249
20757 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20758 msgstr ""
20759
20760 #. type: verbatim
20761 #: ../inspector/virt-inspector.pod:252
20762 #, no-wrap
20763 msgid ""
20764 " <operatingsystems>\n"
20765 "   <operatingsystem>\n"
20766 "     ...\n"
20767 "     <applications>\n"
20768 "       <application>\n"
20769 "         <name>coreutils</name>\n"
20770 "         <version>8.5</version>\n"
20771 "         <release>1</release>\n"
20772 "       </application>\n"
20773 "\n"
20774 msgstr ""
20775
20776 #. type: textblock
20777 #: ../inspector/virt-inspector.pod:262
20778 msgid ""
20779 "The version and release fields may not be available for some types guests.  "
20780 "Other fields are possible, see L<guestfs(3)/"
20781 "guestfs_inspect_list_applications>."
20782 msgstr ""
20783
20784 #. type: =head2
20785 #: ../inspector/virt-inspector.pod:266
20786 msgid "E<lt>drive_mappingsE<gt>"
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../inspector/virt-inspector.pod:268
20791 msgid ""
20792 "For operating systems like Windows which use drive letters, virt-inspector "
20793 "is able to find out how drive letters map to filesystems."
20794 msgstr ""
20795
20796 #. type: verbatim
20797 #: ../inspector/virt-inspector.pod:272
20798 #, no-wrap
20799 msgid ""
20800 " <operatingsystems>\n"
20801 "   <operatingsystem>\n"
20802 "     ...\n"
20803 "     <drive_mappings>\n"
20804 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20805 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20806 "     </drive_mappings>\n"
20807 "\n"
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../inspector/virt-inspector.pod:280
20812 msgid ""
20813 "In the example above, drive C maps to the filesystem on the second partition "
20814 "on the first disk, and drive E maps to the filesystem on the first partition "
20815 "on the second disk."
20816 msgstr ""
20817
20818 #. type: textblock
20819 #: ../inspector/virt-inspector.pod:284
20820 msgid ""
20821 "Note that this only covers permanent local filesystem mappings, not things "
20822 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20823 "here."
20824 msgstr ""
20825
20826 #. type: =head2
20827 #: ../inspector/virt-inspector.pod:288
20828 #, fuzzy
20829 #| msgid "B<-s E<lt>NE<gt>>"
20830 msgid "E<lt>iconE<gt>"
20831 msgstr "B<-s E<lt>NE<gt>>"
20832
20833 #. type: textblock
20834 #: ../inspector/virt-inspector.pod:290
20835 msgid ""
20836 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20837 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20838 "very large and high quality."
20839 msgstr ""
20840
20841 #. type: verbatim
20842 #: ../inspector/virt-inspector.pod:294
20843 #, no-wrap
20844 msgid ""
20845 " <operatingsystems>\n"
20846 "   <operatingsystem>\n"
20847 "     ...\n"
20848 "     <icon>\n"
20849 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20850 "       [... many lines of base64 data ...]\n"
20851 "     </icon>\n"
20852 "\n"
20853 msgstr ""
20854
20855 #. type: textblock
20856 #: ../inspector/virt-inspector.pod:302
20857 msgid ""
20858 "To display the icon, you have to extract it and convert the base64 data back "
20859 "to a binary file.  Use an XPath query or simply an editor to extract the "
20860 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20861 "to a PNG file:"
20862 msgstr ""
20863
20864 #. type: verbatim
20865 #: ../inspector/virt-inspector.pod:307
20866 #, no-wrap
20867 msgid ""
20868 " base64 -i -d < icon.data > icon.png\n"
20869 "\n"
20870 msgstr ""
20871
20872 #. type: =head2
20873 #: ../inspector/virt-inspector.pod:309
20874 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20875 msgstr ""
20876
20877 #. type: textblock
20878 #: ../inspector/virt-inspector.pod:311
20879 msgid ""
20880 "Virt-inspector can detect some operating system installers on install disks, "
20881 "live CDs, bootable USB keys and more."
20882 msgstr ""
20883
20884 #. type: textblock
20885 #: ../inspector/virt-inspector.pod:314
20886 msgid ""
20887 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20888 "fields may be present to indicate a live CD, network installer, or one part "
20889 "of a multipart CD.  For example:"
20890 msgstr ""
20891
20892 #. type: verbatim
20893 #: ../inspector/virt-inspector.pod:318
20894 #, no-wrap
20895 msgid ""
20896 " <operatingsystems>\n"
20897 "   <operatingsystem>\n"
20898 "     <root>/dev/sda</root>\n"
20899 "     <name>linux</name>\n"
20900 "     <arch>i386</arch>\n"
20901 "     <distro>ubuntu</distro>\n"
20902 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20903 "     <major_version>10</major_version>\n"
20904 "     <minor_version>10</minor_version>\n"
20905 "     <format>installer</format>\n"
20906 "     <live/>\n"
20907 "\n"
20908 msgstr ""
20909
20910 #. type: =head1
20911 #: ../inspector/virt-inspector.pod:330
20912 msgid "USING XPATH"
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../inspector/virt-inspector.pod:332
20917 msgid ""
20918 "You can use the XPath query language to select parts of the XML.  We "
20919 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20920 msgstr ""
20921
20922 #. type: verbatim
20923 #: ../inspector/virt-inspector.pod:338
20924 #, no-wrap
20925 msgid ""
20926 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20927 " <filesystems>\n"
20928 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20929 "        <type>ext4</type>\n"
20930 " [...]\n"
20931 "\n"
20932 msgstr ""
20933
20934 #. type: verbatim
20935 #: ../inspector/virt-inspector.pod:344
20936 #, no-wrap
20937 msgid ""
20938 " $ virt-inspector -d Guest | \\\n"
20939 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20940 " ext4\n"
20941 "\n"
20942 msgstr ""
20943
20944 #. type: verbatim
20945 #: ../inspector/virt-inspector.pod:348
20946 #, no-wrap
20947 msgid ""
20948 " $ virt-inspector -d Guest | \\\n"
20949 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20950 " [displays the guest icon, if there is one]\n"
20951 "\n"
20952 msgstr ""
20953
20954 #. type: =head1
20955 #: ../inspector/virt-inspector.pod:359
20956 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20957 msgstr ""
20958
20959 #. type: textblock
20960 #: ../inspector/virt-inspector.pod:361
20961 msgid ""
20962 "Early versions of libguestfs shipped with a different virt-inspector program "
20963 "written in Perl (the current version is written in C).  The XML output of "
20964 "the Perl virt-inspector was different and it could also output in other "
20965 "formats like text."
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../inspector/virt-inspector.pod:366
20970 msgid ""
20971 "The old virt-inspector is no longer supported or shipped with libguestfs."
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../inspector/virt-inspector.pod:369
20976 msgid ""
20977 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20978 "versions of virt-inspector with different names:"
20979 msgstr ""
20980
20981 #. type: verbatim
20982 #: ../inspector/virt-inspector.pod:372
20983 #, no-wrap
20984 msgid ""
20985 " virt-inspector     Old Perl version.\n"
20986 " virt-inspector2    New C version.\n"
20987 "\n"
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../inspector/virt-inspector.pod:382
20992 #, fuzzy
20993 #| msgid ""
20994 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
20995 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
20996 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
20997 msgid ""
20998 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20999 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21000 msgstr ""
21001 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21002 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21003 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21004
21005 #. type: textblock
21006 #: ../inspector/virt-inspector.pod:399
21007 msgid "Matthew Booth L<mbooth@redhat.com>"
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../java/examples/guestfs-java.pod:5
21012 msgid "guestfs-java - How to use libguestfs from Java"
21013 msgstr ""
21014
21015 #. type: verbatim
21016 #: ../java/examples/guestfs-java.pod:9
21017 #, no-wrap
21018 msgid ""
21019 " import com.redhat.et.libguestfs.*;\n"
21020 " \n"
21021 msgstr ""
21022
21023 #. type: verbatim
21024 #: ../java/examples/guestfs-java.pod:11
21025 #, no-wrap
21026 msgid ""
21027 " GuestFS g = new GuestFS ();\n"
21028 " g.add_drive_opts (\"disk.img\", null);\n"
21029 " g.launch ();\n"
21030 "\n"
21031 msgstr ""
21032
21033 #. type: textblock
21034 #: ../java/examples/guestfs-java.pod:17
21035 msgid ""
21036 "This manual page documents how to call libguestfs from the Java programming "
21037 "language.  This page just documents the differences from the C API and gives "
21038 "some examples.  If you are not familiar with using libguestfs, you also need "
21039 "to read L<guestfs(3)>."
21040 msgstr ""
21041
21042 #. type: =head2
21043 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21044 msgid "CLOSING THE HANDLE"
21045 msgstr ""
21046
21047 #. type: textblock
21048 #: ../java/examples/guestfs-java.pod:24
21049 msgid ""
21050 "The handle is closed when it is reaped by the garbage collector.  Because "
21051 "libguestfs handles include a lot of state, it is also possible to close (and "
21052 "hence free) them explicitly by calling the C<close> method."
21053 msgstr ""
21054
21055 #. type: =head2
21056 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21057 #: ../python/examples/guestfs-python.pod:21
21058 #: ../ruby/examples/guestfs-ruby.pod:22
21059 #, fuzzy
21060 #| msgid "OPTIONS"
21061 msgid "EXCEPTIONS"
21062 msgstr "ПАРАМЕТРИ"
21063
21064 #. type: textblock
21065 #: ../java/examples/guestfs-java.pod:31
21066 msgid ""
21067 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21068 "exception.  This has a single parameter which is the error message (a "
21069 "C<String>)."
21070 msgstr ""
21071
21072 #. type: textblock
21073 #: ../java/examples/guestfs-java.pod:35
21074 msgid "Calling any method on a closed handle raises the same exception."
21075 msgstr ""
21076
21077 #. type: textblock
21078 #: ../java/examples/guestfs-java.pod:47
21079 #, fuzzy
21080 #| msgid ""
21081 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21082 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21083 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21084 msgid ""
21085 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21086 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21087 "libguestfs.org/>, L<http://caml.inria.fr/>."
21088 msgstr ""
21089 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21090 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21091 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21092
21093 #. type: textblock
21094 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21095 #, fuzzy
21096 #| msgid "Copyright (C) 2009 Red Hat Inc."
21097 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21098 msgstr "© Red Hat Inc., 2009"
21099
21100 #. type: textblock
21101 #: ../ocaml/examples/guestfs-ocaml.pod:5
21102 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../ocaml/examples/guestfs-ocaml.pod:9
21107 msgid "Module style:"
21108 msgstr ""
21109
21110 #. type: verbatim
21111 #: ../ocaml/examples/guestfs-ocaml.pod:11
21112 #, no-wrap
21113 msgid ""
21114 " let g = Guestfs.create () in\n"
21115 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21116 " Guestfs.launch g;\n"
21117 "\n"
21118 msgstr ""
21119
21120 #. type: textblock
21121 #: ../ocaml/examples/guestfs-ocaml.pod:15
21122 msgid "Object-oriented style:"
21123 msgstr ""
21124
21125 #. type: verbatim
21126 #: ../ocaml/examples/guestfs-ocaml.pod:17
21127 #, no-wrap
21128 msgid ""
21129 " let g = new Guestfs.guestfs () in\n"
21130 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21131 " g#launch ();\n"
21132 "\n"
21133 msgstr ""
21134
21135 #. type: verbatim
21136 #: ../ocaml/examples/guestfs-ocaml.pod:21
21137 #, no-wrap
21138 msgid ""
21139 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21140 "or:\n"
21141 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21142 "\n"
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../ocaml/examples/guestfs-ocaml.pod:27
21147 msgid ""
21148 "This manual page documents how to call libguestfs from the OCaml programming "
21149 "language.  This page just documents the differences from the C API and gives "
21150 "some examples.  If you are not familiar with using libguestfs, you also need "
21151 "to read L<guestfs(3)>."
21152 msgstr ""
21153
21154 #. type: =head2
21155 #: ../ocaml/examples/guestfs-ocaml.pod:32
21156 msgid "PROGRAMMING STYLES"
21157 msgstr ""
21158
21159 #. type: textblock
21160 #: ../ocaml/examples/guestfs-ocaml.pod:34
21161 msgid ""
21162 "There are two different programming styles supported by the OCaml bindings.  "
21163 "You can use a module style, with each C function mapped to an OCaml function:"
21164 msgstr ""
21165
21166 #. type: verbatim
21167 #: ../ocaml/examples/guestfs-ocaml.pod:38
21168 #, fuzzy, no-wrap
21169 #| msgid ""
21170 #| " int guestfs_last_errno (guestfs_h *g);\n"
21171 #| "\n"
21172 msgid ""
21173 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21174 "\n"
21175 msgstr ""
21176 " int guestfs_last_errno (guestfs_h *g);\n"
21177 "\n"
21178
21179 #. type: textblock
21180 #: ../ocaml/examples/guestfs-ocaml.pod:40
21181 msgid "becomes:"
21182 msgstr ""
21183
21184 #. type: verbatim
21185 #: ../ocaml/examples/guestfs-ocaml.pod:42
21186 #, no-wrap
21187 msgid ""
21188 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21189 "\n"
21190 msgstr ""
21191
21192 #. type: textblock
21193 #: ../ocaml/examples/guestfs-ocaml.pod:44
21194 msgid ""
21195 "Alternately you can use an object-oriented style, calling methods on the "
21196 "class C<Guestfs.guestfs>:"
21197 msgstr ""
21198
21199 #. type: verbatim
21200 #: ../ocaml/examples/guestfs-ocaml.pod:47
21201 #, no-wrap
21202 msgid ""
21203 " method set_verbose : bool -> unit\n"
21204 "\n"
21205 msgstr ""
21206
21207 #. type: textblock
21208 #: ../ocaml/examples/guestfs-ocaml.pod:49
21209 msgid ""
21210 "The object-oriented style is usually briefer, and the minor performance "
21211 "penalty isn't noticable in the general overhead of performing libguestfs "
21212 "functions."
21213 msgstr ""
21214
21215 #. type: textblock
21216 #: ../ocaml/examples/guestfs-ocaml.pod:55
21217 msgid ""
21218 "The handle is closed when it is reaped by the garbage collector.  Because "
21219 "libguestfs handles include a lot of state, it is also possible to close (and "
21220 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21221 "method."
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../ocaml/examples/guestfs-ocaml.pod:62
21226 msgid ""
21227 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21228 "exception.  This has a single parameter which is the error message (a "
21229 "string)."
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../ocaml/examples/guestfs-ocaml.pod:66
21234 msgid ""
21235 "Calling any function/method on a closed handle raises C<Guestfs."
21236 "Handle_closed>.  The single parameter is the name of the function that you "
21237 "called."
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../ocaml/examples/guestfs-ocaml.pod:80
21242 #, fuzzy
21243 #| msgid ""
21244 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21245 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21246 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21247 msgid ""
21248 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21249 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21250 "libguestfs.org/>, L<http://caml.inria.fr/>."
21251 msgstr ""
21252 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21253 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21254 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21255
21256 #. type: textblock
21257 #: ../perl/examples/guestfs-perl.pod:5
21258 msgid "guestfs-perl - How to use libguestfs from Perl"
21259 msgstr ""
21260
21261 #. type: verbatim
21262 #: ../perl/examples/guestfs-perl.pod:9
21263 #, no-wrap
21264 msgid ""
21265 " use Sys::Guestfs;\n"
21266 " \n"
21267 msgstr ""
21268
21269 #. type: verbatim
21270 #: ../perl/examples/guestfs-perl.pod:11
21271 #, no-wrap
21272 msgid ""
21273 " my $h = Sys::Guestfs->new ();\n"
21274 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21275 " $h->launch ();\n"
21276 " $h->mount_options ('', '/dev/sda1', '/');\n"
21277 " $h->touch ('/hello');\n"
21278 " $h->sync ();\n"
21279 "\n"
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../perl/examples/guestfs-perl.pod:20
21284 msgid ""
21285 "This manual page documents how to call libguestfs from the Perl programming "
21286 "language.  This page just documents the differences from the C API and gives "
21287 "some examples.  If you are not familiar with using libguestfs, you also need "
21288 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21289 msgstr ""
21290
21291 #. type: =head2
21292 #: ../perl/examples/guestfs-perl.pod:26
21293 msgid "ERRORS"
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../perl/examples/guestfs-perl.pod:28
21298 msgid ""
21299 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21300 ">)."
21301 msgstr ""
21302
21303 #. type: textblock
21304 #: ../perl/examples/guestfs-perl.pod:41
21305 #, fuzzy
21306 #| msgid ""
21307 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21308 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21309 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21310 msgid ""
21311 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21312 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21313 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21314 msgstr ""
21315 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21316 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21317 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21318
21319 #. type: textblock
21320 #: ../python/examples/guestfs-python.pod:5
21321 msgid "guestfs-python - How to use libguestfs from Python"
21322 msgstr ""
21323
21324 #. type: verbatim
21325 #: ../python/examples/guestfs-python.pod:9
21326 #, no-wrap
21327 msgid ""
21328 " import guestfs\n"
21329 " g = guestfs.GuestFS ()\n"
21330 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21331 " g.launch\n"
21332 "\n"
21333 msgstr ""
21334
21335 #. type: textblock
21336 #: ../python/examples/guestfs-python.pod:16
21337 msgid ""
21338 "This manual page documents how to call libguestfs from the Python "
21339 "programming language.  This page just documents the differences from the C "
21340 "API and gives some examples.  If you are not familiar with using libguestfs, "
21341 "you also need to read L<guestfs(3)>."
21342 msgstr ""
21343
21344 #. type: textblock
21345 #: ../python/examples/guestfs-python.pod:23
21346 msgid ""
21347 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21348 "single string argument which is the error message."
21349 msgstr ""
21350
21351 #. type: =head2
21352 #: ../python/examples/guestfs-python.pod:26
21353 msgid "MORE DOCUMENTATION"
21354 msgstr ""
21355
21356 #. type: textblock
21357 #: ../python/examples/guestfs-python.pod:28
21358 msgid "Type:"
21359 msgstr ""
21360
21361 #. type: verbatim
21362 #: ../python/examples/guestfs-python.pod:30
21363 #, no-wrap
21364 msgid ""
21365 " $ python\n"
21366 " >>> import guestfs\n"
21367 " >>> help (guestfs)\n"
21368 "\n"
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../python/examples/guestfs-python.pod:44
21373 #, fuzzy
21374 #| msgid ""
21375 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21376 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21377 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21378 msgid ""
21379 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21380 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21381 "libguestfs.org/>."
21382 msgstr ""
21383 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21384 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21385 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21386
21387 #. type: textblock
21388 #: ../rescue/virt-rescue.pod:5
21389 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21390 msgstr ""
21391
21392 #. type: verbatim
21393 #: ../rescue/virt-rescue.pod:9
21394 #, fuzzy, no-wrap
21395 #| msgid ""
21396 #| " virt-list-partitions [--options] domname\n"
21397 #| "\n"
21398 msgid ""
21399 " virt-rescue [--options] -d domname\n"
21400 "\n"
21401 msgstr ""
21402 " virt-list-partitions [--параметри] назва_домену\n"
21403 "\n"
21404
21405 #. type: verbatim
21406 #: ../rescue/virt-rescue.pod:11
21407 #, fuzzy, no-wrap
21408 #| msgid ""
21409 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21410 #| "\n"
21411 msgid ""
21412 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21413 "\n"
21414 msgstr ""
21415 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21416 "\n"
21417
21418 #. type: verbatim
21419 #: ../rescue/virt-rescue.pod:15
21420 #, fuzzy, no-wrap
21421 #| msgid ""
21422 #| " virt-list-partitions [--options] domname\n"
21423 #| "\n"
21424 msgid ""
21425 " virt-rescue [--options] domname\n"
21426 "\n"
21427 msgstr ""
21428 " virt-list-partitions [--параметри] назва_домену\n"
21429 "\n"
21430
21431 #. type: verbatim
21432 #: ../rescue/virt-rescue.pod:17
21433 #, fuzzy, no-wrap
21434 #| msgid ""
21435 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21436 #| "\n"
21437 msgid ""
21438 " virt-rescue [--options] disk.img [disk.img ...]\n"
21439 "\n"
21440 msgstr ""
21441 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21442 "\n"
21443
21444 #. type: textblock
21445 #: ../rescue/virt-rescue.pod:21
21446 msgid ""
21447 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21448 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21449 "you from doing this, but doesn't catch all cases."
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../rescue/virt-rescue.pod:25
21454 msgid ""
21455 "However if you use the I<--ro> (read only) option, then you can attach a "
21456 "shell to a live virtual machine.  The results might be strange or "
21457 "inconsistent at times but you won't get disk corruption."
21458 msgstr ""
21459
21460 #. type: textblock
21461 #: ../rescue/virt-rescue.pod:31
21462 msgid ""
21463 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21464 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21465 "recovery tools which you can use to examine or rescue a virtual machine or "
21466 "disk image."
21467 msgstr ""
21468
21469 #. type: textblock
21470 #: ../rescue/virt-rescue.pod:36
21471 msgid ""
21472 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21473 "on disk image(s):"
21474 msgstr ""
21475
21476 #. type: verbatim
21477 #: ../rescue/virt-rescue.pod:39
21478 #, no-wrap
21479 msgid ""
21480 " virt-rescue -d GuestName\n"
21481 "\n"
21482 msgstr ""
21483
21484 #. type: verbatim
21485 #: ../rescue/virt-rescue.pod:41
21486 #, no-wrap
21487 msgid ""
21488 " virt-rescue --ro -a /path/to/disk.img\n"
21489 "\n"
21490 msgstr ""
21491
21492 #. type: verbatim
21493 #: ../rescue/virt-rescue.pod:43
21494 #, no-wrap
21495 msgid ""
21496 " virt-rescue -a /dev/sdc\n"
21497 "\n"
21498 msgstr ""
21499
21500 #. type: textblock
21501 #: ../rescue/virt-rescue.pod:45
21502 msgid "For live VMs you I<must> use the --ro option."
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../rescue/virt-rescue.pod:47
21507 msgid ""
21508 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21509 "in an interactive bash shell where you can use many ordinary Linux "
21510 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21511 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21512 "is an empty directory called C</sysroot> where you can mount filesystems."
21513 msgstr ""
21514
21515 #. type: textblock
21516 #: ../rescue/virt-rescue.pod:54
21517 msgid ""
21518 "In the example below, we list logical volumes, then choose one to mount "
21519 "under C</sysroot>:"
21520 msgstr ""
21521
21522 #. type: verbatim
21523 #: ../rescue/virt-rescue.pod:57
21524 #, no-wrap
21525 msgid ""
21526 " ><rescue> lvs\n"
21527 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21528 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21529 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21530 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21531 " ><rescue> ls /sysroot\n"
21532 "\n"
21533 msgstr ""
21534
21535 #. type: textblock
21536 #: ../rescue/virt-rescue.pod:64
21537 msgid ""
21538 "If you don't know what filesystems are available on the virtual machine then "
21539 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21540 msgstr ""
21541
21542 #. type: textblock
21543 #: ../rescue/virt-rescue.pod:70
21544 msgid ""
21545 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21546 "virtual machine.  For example you can use it on a blank file if you want to "
21547 "partition that file (although we would recommend using L<guestfish(1)> "
21548 "instead as it is more suitable for this purpose).  You can even use virt-"
21549 "rescue on things like SD cards."
21550 msgstr ""
21551
21552 #. type: textblock
21553 #: ../rescue/virt-rescue.pod:76
21554 msgid ""
21555 "Virt-rescue does not require root.  You only need to run it as root if you "
21556 "need root to open the disk image."
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../rescue/virt-rescue.pod:79
21561 msgid ""
21562 "This tool is just designed for quick interactive hacking on a virtual "
21563 "machine.  For more structured access to a virtual machine disk image, you "
21564 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21565 "make scripted changes to guests, use L<guestfish(1)>."
21566 msgstr ""
21567
21568 #. type: =item
21569 #: ../rescue/virt-rescue.pod:103
21570 msgid "B<--append kernelopts>"
21571 msgstr ""
21572
21573 #. type: textblock
21574 #: ../rescue/virt-rescue.pod:105
21575 msgid "Pass additional options to the rescue kernel."
21576 msgstr ""
21577
21578 #. type: verbatim
21579 #: ../rescue/virt-rescue.pod:135
21580 #, fuzzy, no-wrap
21581 #| msgid ""
21582 #| " guestfish --format=raw -a disk.img\n"
21583 #| "\n"
21584 msgid ""
21585 " virt-rescue --format=raw -a disk.img\n"
21586 "\n"
21587 msgstr ""
21588 " guestfish --format=raw -a disk.img\n"
21589 "\n"
21590
21591 #. type: verbatim
21592 #: ../rescue/virt-rescue.pod:139
21593 #, fuzzy, no-wrap
21594 #| msgid ""
21595 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21596 #| "\n"
21597 msgid ""
21598 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21599 "\n"
21600 msgstr ""
21601 " guestfish --format=raw -a disk.img --format -a another.img\n"
21602 "\n"
21603
21604 #. type: =item
21605 #: ../rescue/virt-rescue.pod:148
21606 msgid "B<-m MB>"
21607 msgstr ""
21608
21609 #. type: =item
21610 #: ../rescue/virt-rescue.pod:150
21611 #, fuzzy
21612 #| msgid "B<--merge>"
21613 msgid "B<--memsize MB>"
21614 msgstr "B<--merge>"
21615
21616 #. type: textblock
21617 #: ../rescue/virt-rescue.pod:152
21618 msgid ""
21619 "Change the amount of memory allocated to the rescue system.  The default is "
21620 "set by libguestfs and is small but adequate for running system tools.  The "
21621 "occasional program might need more memory.  The parameter is specified in "
21622 "megabytes."
21623 msgstr ""
21624
21625 #. type: =item
21626 #: ../rescue/virt-rescue.pod:157
21627 #, fuzzy
21628 #| msgid "B<--inspector>"
21629 msgid "B<--network>"
21630 msgstr "B<--inspector>"
21631
21632 #. type: textblock
21633 #: ../rescue/virt-rescue.pod:159
21634 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21635 msgstr ""
21636
21637 #. type: textblock
21638 #: ../rescue/virt-rescue.pod:165
21639 msgid "Open the image read-only."
21640 msgstr ""
21641
21642 #. type: textblock
21643 #: ../rescue/virt-rescue.pod:175
21644 msgid ""
21645 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21646 "SELINUX> before using this option."
21647 msgstr ""
21648
21649 #. type: textblock
21650 #: ../rescue/virt-rescue.pod:194
21651 msgid ""
21652 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21653 "are done read-write."
21654 msgstr ""
21655
21656 #. type: textblock
21657 #: ../rescue/virt-rescue.pod:207
21658 msgid "Previous versions of virt-rescue allowed you to write either:"
21659 msgstr ""
21660
21661 #. type: verbatim
21662 #: ../rescue/virt-rescue.pod:209
21663 #, fuzzy, no-wrap
21664 #| msgid ""
21665 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21666 #| "\n"
21667 msgid ""
21668 " virt-rescue disk.img [disk.img ...]\n"
21669 "\n"
21670 msgstr ""
21671 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21672 "\n"
21673
21674 #. type: verbatim
21675 #: ../rescue/virt-rescue.pod:213
21676 #, fuzzy, no-wrap
21677 #| msgid ""
21678 #| " file-architecture filename\n"
21679 #| "\n"
21680 msgid ""
21681 " virt-rescue guestname\n"
21682 "\n"
21683 msgstr ""
21684 " file-architecture назва_файла\n"
21685 "\n"
21686
21687 #. type: =head1
21688 #: ../rescue/virt-rescue.pod:221
21689 msgid "NETWORK"
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../rescue/virt-rescue.pod:223
21694 msgid ""
21695 "Adding the I<--network> option enables QEMU user networking in the rescue "
21696 "appliance.  There are some differences between user networking and ordinary "
21697 "networking:"
21698 msgstr ""
21699
21700 #. type: =item
21701 #: ../rescue/virt-rescue.pod:229
21702 msgid "ping does not work"
21703 msgstr ""
21704
21705 #. type: textblock
21706 #: ../rescue/virt-rescue.pod:231
21707 msgid ""
21708 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21709 "send the ping packets, and because virt-rescue must be able to run as non-"
21710 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21711 "The ping command will appear to resolve addresses but will not be able to "
21712 "send or receive any packets.  This does not mean that the network is not "
21713 "working."
21714 msgstr ""
21715
21716 #. type: =item
21717 #: ../rescue/virt-rescue.pod:238
21718 msgid "cannot receive connections"
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../rescue/virt-rescue.pod:240
21723 msgid "QEMU user networking cannot receive incoming connections."
21724 msgstr ""
21725
21726 #. type: =item
21727 #: ../rescue/virt-rescue.pod:242
21728 msgid "making TCP connections"
21729 msgstr ""
21730
21731 #. type: textblock
21732 #: ../rescue/virt-rescue.pod:244
21733 msgid ""
21734 "The virt-rescue appliance needs to be small and so does not include many "
21735 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21736 "make TCP connections from the shell using the magical C</dev/tcp/"
21737 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21738 msgstr ""
21739
21740 #. type: verbatim
21741 #: ../rescue/virt-rescue.pod:249
21742 #, no-wrap
21743 msgid ""
21744 " exec 3<>/dev/tcp/redhat.com/80\n"
21745 " echo \"GET /\" >&3\n"
21746 " cat <&3\n"
21747 "\n"
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../rescue/virt-rescue.pod:253
21752 msgid "See L<bash(1)> for more details."
21753 msgstr ""
21754
21755 #. type: textblock
21756 #: ../rescue/virt-rescue.pod:259
21757 msgid ""
21758 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21759 "ENVIRONMENT VARIABLES> for the complete list."
21760 msgstr ""
21761
21762 #. type: textblock
21763 #: ../rescue/virt-rescue.pod:286
21764 #, fuzzy
21765 #| msgid ""
21766 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21767 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21768 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21769 msgid ""
21770 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21771 "libguestfs.org/>."
21772 msgstr ""
21773 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21774 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21775 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21776
21777 #. type: textblock
21778 #: ../resize/virt-resize.pod:5
21779 msgid "virt-resize - Resize a virtual machine disk"
21780 msgstr ""
21781
21782 #. type: verbatim
21783 #: ../resize/virt-resize.pod:9
21784 #, no-wrap
21785 msgid ""
21786 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21787 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21788 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21789 "\n"
21790 msgstr ""
21791
21792 #. type: textblock
21793 #: ../resize/virt-resize.pod:15
21794 msgid ""
21795 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21796 "larger or smaller overall, and resizing or deleting any partitions contained "
21797 "within."
21798 msgstr ""
21799
21800 #. type: textblock
21801 #: ../resize/virt-resize.pod:19
21802 msgid ""
21803 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21804 "not> be used on live virtual machines - for consistent results, shut the "
21805 "virtual machine down before resizing it."
21806 msgstr ""
21807
21808 #. type: textblock
21809 #: ../resize/virt-resize.pod:23
21810 msgid ""
21811 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21812 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21813 msgstr ""
21814
21815 #. type: =item
21816 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
21817 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1396
21818 #: ../src/guestfs.pod:2481
21819 msgid "1."
21820 msgstr "1."
21821
21822 #. type: textblock
21823 #: ../resize/virt-resize.pod:33
21824 msgid ""
21825 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21826 "fill the extra 5GB of space."
21827 msgstr ""
21828
21829 #. type: verbatim
21830 #: ../resize/virt-resize.pod:36
21831 #, no-wrap
21832 msgid ""
21833 " virt-filesystems --long -h --all -a olddisk\n"
21834 " \n"
21835 msgstr ""
21836
21837 #. type: verbatim
21838 #: ../resize/virt-resize.pod:38
21839 #, no-wrap
21840 msgid ""
21841 " truncate -r olddisk newdisk\n"
21842 " truncate -s +5G newdisk\n"
21843 " \n"
21844 msgstr ""
21845
21846 #. type: verbatim
21847 #: ../resize/virt-resize.pod:41
21848 #, no-wrap
21849 msgid ""
21850 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21851 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21852 "\n"
21853 msgstr ""
21854
21855 #. type: =item
21856 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
21857 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400
21858 #: ../src/guestfs.pod:2506
21859 msgid "2."
21860 msgstr "2."
21861
21862 #. type: textblock
21863 #: ../resize/virt-resize.pod:46
21864 msgid ""
21865 "As above, but make the /boot partition 200MB bigger, while giving the "
21866 "remaining space to /dev/sda2:"
21867 msgstr ""
21868
21869 #. type: verbatim
21870 #: ../resize/virt-resize.pod:49
21871 #, no-wrap
21872 msgid ""
21873 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21874 "   olddisk newdisk\n"
21875 "\n"
21876 msgstr ""
21877
21878 #. type: =item
21879 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
21880 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1406
21881 msgid "3."
21882 msgstr "3."
21883
21884 #. type: textblock
21885 #: ../resize/virt-resize.pod:54
21886 msgid ""
21887 "As in the first example, but expand a logical volume as the final step.  "
21888 "This is what you would typically use for Linux guests that use LVM:"
21889 msgstr ""
21890
21891 #. type: verbatim
21892 #: ../resize/virt-resize.pod:58
21893 #, no-wrap
21894 msgid ""
21895 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21896 "   olddisk newdisk\n"
21897 "\n"
21898 msgstr ""
21899
21900 #. type: =item
21901 #: ../resize/virt-resize.pod:61
21902 msgid "4."
21903 msgstr ""
21904
21905 #. type: textblock
21906 #: ../resize/virt-resize.pod:63
21907 msgid ""
21908 "As in the first example, but the output format will be qcow2 instead of a "
21909 "raw disk:"
21910 msgstr ""
21911
21912 #. type: verbatim
21913 #: ../resize/virt-resize.pod:66
21914 #, no-wrap
21915 msgid ""
21916 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21917 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21918 "\n"
21919 msgstr ""
21920
21921 #. type: =head1
21922 #: ../resize/virt-resize.pod:71
21923 msgid "DETAILED USAGE"
21924 msgstr ""
21925
21926 #. type: =head2
21927 #: ../resize/virt-resize.pod:73
21928 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21929 msgstr ""
21930
21931 #. type: =item
21932 #: ../resize/virt-resize.pod:77
21933 msgid "1. Shut down the virtual machine"
21934 msgstr ""
21935
21936 #. type: =item
21937 #: ../resize/virt-resize.pod:79
21938 msgid "2. Locate input disk image"
21939 msgstr ""
21940
21941 #. type: textblock
21942 #: ../resize/virt-resize.pod:81
21943 msgid ""
21944 "Locate the input disk image (ie. the file or device on the host containing "
21945 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21946 "dumpxml> like this to find the disk image name:"
21947 msgstr ""
21948
21949 #. type: verbatim
21950 #: ../resize/virt-resize.pod:85
21951 #, no-wrap
21952 msgid ""
21953 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21954 " Found 1 nodes:\n"
21955 " -- NODE --\n"
21956 " <source dev=\"/dev/vg/lv_guest\" />\n"
21957 "\n"
21958 msgstr ""
21959
21960 #. type: =item
21961 #: ../resize/virt-resize.pod:90
21962 msgid "3. Look at current sizing"
21963 msgstr ""
21964
21965 #. type: textblock
21966 #: ../resize/virt-resize.pod:92
21967 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21968 msgstr ""
21969
21970 #. type: verbatim
21971 #: ../resize/virt-resize.pod:95
21972 #, no-wrap
21973 msgid ""
21974 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21975 " Name       Type       Size  Parent\n"
21976 " /dev/sda1  partition  101M  /dev/sda\n"
21977 " /dev/sda2  partition  7.9G  /dev/sda\n"
21978 " /dev/sda   device     8.0G  -\n"
21979 "\n"
21980 msgstr ""
21981
21982 #. type: textblock
21983 #: ../resize/virt-resize.pod:101
21984 msgid ""
21985 "(This example is a virtual machine with an 8 GB disk which we would like to "
21986 "expand up to 10 GB)."
21987 msgstr ""
21988
21989 #. type: =item
21990 #: ../resize/virt-resize.pod:104
21991 msgid "4. Create output disk"
21992 msgstr ""
21993
21994 #. type: textblock
21995 #: ../resize/virt-resize.pod:106
21996 msgid ""
21997 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21998 "to store the resized output disk."
21999 msgstr ""
22000
22001 #. type: textblock
22002 #: ../resize/virt-resize.pod:109
22003 msgid ""
22004 "To store the resized disk image in a file, create a file of a suitable size:"
22005 msgstr ""
22006
22007 #. type: verbatim
22008 #: ../resize/virt-resize.pod:112
22009 #, no-wrap
22010 msgid ""
22011 " # rm -f outdisk\n"
22012 " # truncate -s 10G outdisk\n"
22013 "\n"
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../resize/virt-resize.pod:115
22018 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22019 msgstr ""
22020
22021 #. type: verbatim
22022 #: ../resize/virt-resize.pod:117
22023 #, no-wrap
22024 msgid ""
22025 " # lvcreate -L 10G -n lv_name vg_name\n"
22026 "\n"
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../resize/virt-resize.pod:119
22031 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22032 msgstr ""
22033
22034 #. type: verbatim
22035 #: ../resize/virt-resize.pod:121
22036 #, no-wrap
22037 msgid ""
22038 " # virsh pool-list\n"
22039 " # virsh vol-create-as poolname newvol 10G\n"
22040 "\n"
22041 msgstr ""
22042
22043 #. type: =item
22044 #: ../resize/virt-resize.pod:124
22045 msgid "5. Resize"
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../resize/virt-resize.pod:126
22050 msgid ""
22051 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22052 "file) and the output disk.  The output disk is the one created in the "
22053 "previous step."
22054 msgstr ""
22055
22056 #. type: verbatim
22057 #: ../resize/virt-resize.pod:130
22058 #, no-wrap
22059 msgid ""
22060 " # virt-resize indisk outdisk\n"
22061 "\n"
22062 msgstr ""
22063
22064 #. type: textblock
22065 #: ../resize/virt-resize.pod:132
22066 msgid ""
22067 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22068 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22069 "larger, then an extra, empty partition is created at the end of the disk "
22070 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22071 "error."
22072 msgstr ""
22073
22074 #. type: textblock
22075 #: ../resize/virt-resize.pod:138
22076 msgid ""
22077 "More realistically you'd want to expand existing partitions in the disk "
22078 "image by passing extra options (for the full list see the L</OPTIONS> "
22079 "section below)."
22080 msgstr ""
22081
22082 #. type: textblock
22083 #: ../resize/virt-resize.pod:142
22084 msgid ""
22085 "L</--expand> is the most useful option.  It expands the named partition "
22086 "within the disk to fill any extra space:"
22087 msgstr ""
22088
22089 #. type: verbatim
22090 #: ../resize/virt-resize.pod:145
22091 #, no-wrap
22092 msgid ""
22093 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22094 "\n"
22095 msgstr ""
22096
22097 #. type: textblock
22098 #: ../resize/virt-resize.pod:147
22099 msgid ""
22100 "(In this case, an extra partition is I<not> created at the end of the disk, "
22101 "because there will be no unused space)."
22102 msgstr ""
22103
22104 #. type: textblock
22105 #: ../resize/virt-resize.pod:150
22106 msgid ""
22107 "L</--resize> is the other commonly used option.  The following would "
22108 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22109 "rest of the available space:"
22110 msgstr ""
22111
22112 #. type: verbatim
22113 #: ../resize/virt-resize.pod:154
22114 #, no-wrap
22115 msgid ""
22116 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22117 "     indisk outdisk\n"
22118 "\n"
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../resize/virt-resize.pod:157
22123 msgid ""
22124 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22125 "if virt-resize knows how, it will resize the contents, the equivalent of "
22126 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22127 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22128 "filesystems, so you would have to online resize them after booting the guest."
22129 msgstr ""
22130
22131 #. type: textblock
22132 #: ../resize/virt-resize.pod:164
22133 msgid "Other options are covered below."
22134 msgstr ""
22135
22136 #. type: =item
22137 #: ../resize/virt-resize.pod:166
22138 msgid "6. Test"
22139 msgstr ""
22140
22141 #. type: textblock
22142 #: ../resize/virt-resize.pod:168
22143 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22144 msgstr ""
22145
22146 #. type: textblock
22147 #: ../resize/virt-resize.pod:170
22148 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22149 msgstr ""
22150
22151 #. type: verbatim
22152 #: ../resize/virt-resize.pod:172
22153 #, fuzzy, no-wrap
22154 #| msgid ""
22155 #| " edit filename\n"
22156 #| "\n"
22157 msgid ""
22158 " # virsh edit guestname\n"
22159 "\n"
22160 msgstr ""
22161 " edit назва_файла\n"
22162 "\n"
22163
22164 #. type: textblock
22165 #: ../resize/virt-resize.pod:174
22166 msgid ""
22167 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22168 "html#elementsDisks>"
22169 msgstr ""
22170
22171 #. type: textblock
22172 #: ../resize/virt-resize.pod:177
22173 msgid "Then start up the domain with the new, resized disk:"
22174 msgstr ""
22175
22176 #. type: verbatim
22177 #: ../resize/virt-resize.pod:179
22178 #, fuzzy, no-wrap
22179 #| msgid ""
22180 #| " ln-s target linkname\n"
22181 #| "\n"
22182 msgid ""
22183 " # virsh start guestname\n"
22184 "\n"
22185 msgstr ""
22186 " ln-s призначення назва_посилання\n"
22187 "\n"
22188
22189 #. type: textblock
22190 #: ../resize/virt-resize.pod:181
22191 msgid ""
22192 "and check that it still works.  See also the L</NOTES> section below for "
22193 "additional information."
22194 msgstr ""
22195
22196 #. type: =item
22197 #: ../resize/virt-resize.pod:184
22198 msgid "7. Resize LVs etc inside the guest"
22199 msgstr ""
22200
22201 #. type: textblock
22202 #: ../resize/virt-resize.pod:186
22203 msgid "(This can also be done offline using L<guestfish(1)>)"
22204 msgstr ""
22205
22206 #. type: textblock
22207 #: ../resize/virt-resize.pod:188
22208 msgid ""
22209 "Once the guest has booted you should see the new space available, at least "
22210 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22211 "may need to resize LVs inside PVs, and also resize filesystem types that "
22212 "virt-resize does not know how to expand."
22213 msgstr ""
22214
22215 #. type: =head2
22216 #: ../resize/virt-resize.pod:195
22217 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22218 msgstr ""
22219
22220 #. type: textblock
22221 #: ../resize/virt-resize.pod:197
22222 msgid ""
22223 "Shrinking is somewhat more complex than expanding, and only an overview is "
22224 "given here."
22225 msgstr ""
22226
22227 #. type: textblock
22228 #: ../resize/virt-resize.pod:200
22229 msgid ""
22230 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22231 "filesystems).  The user has to shrink content before passing the disk image "
22232 "to virt-resize, and virt-resize will check that the content has been shrunk "
22233 "properly."
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../resize/virt-resize.pod:205
22238 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../resize/virt-resize.pod:207
22243 msgid ""
22244 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22245 "steps 3 and 4 above to allocate a new disk image."
22246 msgstr ""
22247
22248 #. type: textblock
22249 #: ../resize/virt-resize.pod:210
22250 msgid ""
22251 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22252 msgstr ""
22253
22254 #. type: =head2
22255 #: ../resize/virt-resize.pod:213
22256 msgid "IGNORING OR DELETING PARTITIONS"
22257 msgstr ""
22258
22259 #. type: textblock
22260 #: ../resize/virt-resize.pod:215
22261 msgid ""
22262 "virt-resize also gives a convenient way to ignore or delete partitions when "
22263 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22264 "up the copy where you don't care about the existing contents of a "
22265 "partition.  Deleting a partition removes it completely, but note that it "
22266 "also renumbers any partitions after the one which is deleted, which can "
22267 "leave some guests unbootable."
22268 msgstr ""
22269
22270 #. type: =head2
22271 #: ../resize/virt-resize.pod:222
22272 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../resize/virt-resize.pod:224
22277 msgid ""
22278 "If the input disk is in qcow2 format, then you may prefer that the output is "
22279 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22280 "the fly.  The output format is simply determined by the format of the empty "
22281 "output container that you provide.  Thus to create qcow2 output, use:"
22282 msgstr ""
22283
22284 #. type: verbatim
22285 #: ../resize/virt-resize.pod:230
22286 #, no-wrap
22287 msgid ""
22288 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22289 "\n"
22290 msgstr ""
22291
22292 #. type: textblock
22293 #: ../resize/virt-resize.pod:232
22294 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22295 msgstr ""
22296
22297 #. type: textblock
22298 #: ../resize/virt-resize.pod:234
22299 msgid "Similarly, to get non-sparse raw output use:"
22300 msgstr ""
22301
22302 #. type: verbatim
22303 #: ../resize/virt-resize.pod:236
22304 #, fuzzy, no-wrap
22305 #| msgid ""
22306 #| " fallocate path len\n"
22307 #| "\n"
22308 msgid ""
22309 " fallocate -l size outdisk\n"
22310 "\n"
22311 msgstr ""
22312 " fallocate шлях довжина\n"
22313 "\n"
22314
22315 #. type: textblock
22316 #: ../resize/virt-resize.pod:238
22317 msgid ""
22318 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22319 "dev/zero of=outdisk bs=1M count=..>)"
22320 msgstr ""
22321
22322 #. type: textblock
22323 #: ../resize/virt-resize.pod:247
22324 msgid "Display help."
22325 msgstr ""
22326
22327 #. type: =item
22328 #: ../resize/virt-resize.pod:249
22329 msgid "B<-d>"
22330 msgstr ""
22331
22332 #. type: =item
22333 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22334 #: ../tools/virt-win-reg.pl:120
22335 msgid "B<--debug>"
22336 msgstr "B<--debug>"
22337
22338 #. type: textblock
22339 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22340 msgid "Enable debugging messages."
22341 msgstr ""
22342
22343 #. type: =item
22344 #: ../resize/virt-resize.pod:255
22345 #, fuzzy
22346 #| msgid "B<--no-dest-paths>"
22347 msgid "B<--delete part>"
22348 msgstr "B<--no-dest-paths>"
22349
22350 #. type: textblock
22351 #: ../resize/virt-resize.pod:257
22352 msgid ""
22353 "Delete the named partition.  It would be more accurate to describe this as "
22354 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22355 "the original disk image is left intact."
22356 msgstr ""
22357
22358 #. type: textblock
22359 #: ../resize/virt-resize.pod:261
22360 msgid ""
22361 "Note that when you delete a partition, then anything contained in the "
22362 "partition is also deleted.  Furthermore, this causes any partitions that "
22363 "come after to be I<renumbered>, which can easily make your guest unbootable."
22364 msgstr ""
22365
22366 #. type: textblock
22367 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22368 #: ../resize/virt-resize.pod:454
22369 msgid "You can give this option multiple times."
22370 msgstr ""
22371
22372 #. type: =item
22373 #: ../resize/virt-resize.pod:268
22374 #, fuzzy
22375 #| msgid "B<--partition>"
22376 msgid "B<--expand part>"
22377 msgstr "B<--partition>"
22378
22379 #. type: textblock
22380 #: ../resize/virt-resize.pod:270
22381 msgid ""
22382 "Expand the named partition so it uses up all extra space (space left over "
22383 "after any other resize changes that you request have been done)."
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../resize/virt-resize.pod:273
22388 msgid ""
22389 "If virt-resize knows how, it will expand the direct content of the "
22390 "partition.  For example, if the partition is an LVM PV, it will expand the "
22391 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22392 "content it doesn't know about alone."
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../resize/virt-resize.pod:278
22397 msgid "Currently virt-resize can resize:"
22398 msgstr ""
22399
22400 #. type: textblock
22401 #: ../resize/virt-resize.pod:284
22402 msgid "ext2, ext3 and ext4 filesystems."
22403 msgstr ""
22404
22405 #. type: textblock
22406 #: ../resize/virt-resize.pod:288
22407 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../resize/virt-resize.pod:290
22412 msgid ""
22413 "The filesystem must have been shut down consistently last time it was used.  "
22414 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22415 "consistency check, so at the first boot after resizing Windows will check "
22416 "the disk."
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../resize/virt-resize.pod:297
22421 msgid ""
22422 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22423 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22424 "resize LVs as desired after boot."
22425 msgstr ""
22426
22427 #. type: textblock
22428 #: ../resize/virt-resize.pod:303
22429 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22430 msgstr ""
22431
22432 #. type: textblock
22433 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22434 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22435 msgstr ""
22436
22437 #. type: =item
22438 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22439 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22440 #: ../tools/virt-win-reg.pl:142
22441 msgid "B<--format> raw"
22442 msgstr ""
22443
22444 #. type: textblock
22445 #: ../resize/virt-resize.pod:311
22446 msgid ""
22447 "Specify the format of the input disk image.  If this flag is not given then "
22448 "it is auto-detected from the image itself."
22449 msgstr ""
22450
22451 #. type: textblock
22452 #: ../resize/virt-resize.pod:317
22453 msgid ""
22454 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22455 "AND NON-SPARSE RAW FORMATS>."
22456 msgstr ""
22457
22458 #. type: =item
22459 #: ../resize/virt-resize.pod:320
22460 #, fuzzy
22461 #| msgid "B<--format>"
22462 msgid "B<--ignore part>"
22463 msgstr "B<--format>"
22464
22465 #. type: textblock
22466 #: ../resize/virt-resize.pod:322
22467 msgid ""
22468 "Ignore the named partition.  Effectively this means the partition is "
22469 "allocated on the destination disk, but the content is not copied across from "
22470 "the source disk.  The content of the partition will be blank (all zero "
22471 "bytes)."
22472 msgstr ""
22473
22474 #. type: =item
22475 #: ../resize/virt-resize.pod:329
22476 msgid "B<--LV-expand logvol>"
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../resize/virt-resize.pod:331
22481 msgid ""
22482 "This takes the logical volume and, as a final step, expands it to fill all "
22483 "the space available in its volume group.  A typical usage, assuming a Linux "
22484 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22485 "lv_root> would be:"
22486 msgstr ""
22487
22488 #. type: verbatim
22489 #: ../resize/virt-resize.pod:336
22490 #, no-wrap
22491 msgid ""
22492 " virt-resize indisk outdisk \\\n"
22493 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22494 "\n"
22495 msgstr ""
22496
22497 #. type: textblock
22498 #: ../resize/virt-resize.pod:339
22499 msgid ""
22500 "This would first expand the partition (and PV), and then expand the root "
22501 "device to fill the extra space in the PV."
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../resize/virt-resize.pod:342
22506 msgid ""
22507 "The contents of the LV are also resized if virt-resize knows how to do "
22508 "that.  You can stop virt-resize from trying to expand the content by using "
22509 "the option I<--no-expand-content>."
22510 msgstr ""
22511
22512 #. type: textblock
22513 #: ../resize/virt-resize.pod:346
22514 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22515 msgstr ""
22516
22517 #. type: textblock
22518 #: ../resize/virt-resize.pod:348
22519 msgid ""
22520 "You can give this option multiple times, I<but> it doesn't make sense to do "
22521 "this unless the logical volumes you specify are all in different volume "
22522 "groups."
22523 msgstr ""
22524
22525 #. type: =item
22526 #: ../resize/virt-resize.pod:352
22527 #, fuzzy
22528 #| msgid "B<-h> | B<--human-readable>"
22529 msgid "B<--machine-readable>"
22530 msgstr "B<-h> | B<--human-readable>"
22531
22532 #. type: textblock
22533 #: ../resize/virt-resize.pod:354
22534 msgid ""
22535 "This option is used to make the output more machine friendly when being "
22536 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22537 msgstr ""
22538
22539 #. type: =item
22540 #: ../resize/virt-resize.pod:360
22541 #, fuzzy
22542 #| msgid "B<--debug>"
22543 msgid "B<--dryrun>"
22544 msgstr "B<--debug>"
22545
22546 #. type: textblock
22547 #: ../resize/virt-resize.pod:362
22548 msgid "Print a summary of what would be done, but don't do anything."
22549 msgstr ""
22550
22551 #. type: =item
22552 #: ../resize/virt-resize.pod:364
22553 msgid "B<--no-copy-boot-loader>"
22554 msgstr ""
22555
22556 #. type: textblock
22557 #: ../resize/virt-resize.pod:366
22558 msgid ""
22559 "By default, virt-resize copies over some sectors at the start of the disk "
22560 "(up to the beginning of the first partition).  Commonly these sectors "
22561 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22562 "in order for the guest to boot correctly."
22563 msgstr ""
22564
22565 #. type: textblock
22566 #: ../resize/virt-resize.pod:371
22567 msgid ""
22568 "If you specify this flag, then this initial copy is not done.  You may need "
22569 "to reinstall the boot loader in this case."
22570 msgstr ""
22571
22572 #. type: =item
22573 #: ../resize/virt-resize.pod:374
22574 #, fuzzy
22575 #| msgid "B<--partition>"
22576 msgid "B<--no-extra-partition>"
22577 msgstr "B<--partition>"
22578
22579 #. type: textblock
22580 #: ../resize/virt-resize.pod:376
22581 msgid ""
22582 "By default, virt-resize creates an extra partition if there is any extra, "
22583 "unused space after all resizing has happened.  Use this option to prevent "
22584 "the extra partition from being created.  If you do this then the extra space "
22585 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22586 "tool in the guest."
22587 msgstr ""
22588
22589 #. type: textblock
22590 #: ../resize/virt-resize.pod:382
22591 msgid ""
22592 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22593 "will be created."
22594 msgstr ""
22595
22596 #. type: =item
22597 #: ../resize/virt-resize.pod:385
22598 #, fuzzy
22599 #| msgid "B<--no-dest-paths>"
22600 msgid "B<--no-expand-content>"
22601 msgstr "B<--no-dest-paths>"
22602
22603 #. type: textblock
22604 #: ../resize/virt-resize.pod:387
22605 msgid ""
22606 "By default, virt-resize will try to expand the direct contents of "
22607 "partitions, if it knows how (see I<--expand> option above)."
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../resize/virt-resize.pod:390
22612 msgid ""
22613 "If you give the I<--no-expand-content> option then virt-resize will not "
22614 "attempt this."
22615 msgstr ""
22616
22617 #. type: =item
22618 #: ../resize/virt-resize.pod:393
22619 #, fuzzy
22620 #| msgid "ntfsresize-size"
22621 msgid "B<--ntfsresize-force>"
22622 msgstr "ntfsresize-size"
22623
22624 #. type: textblock
22625 #: ../resize/virt-resize.pod:395
22626 msgid ""
22627 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22628 "the NTFS disk is marked as needing a consistency check.  You have to use "
22629 "this option if you want to resize a Windows guest multiple times without "
22630 "booting into Windows between each resize."
22631 msgstr ""
22632
22633 #. type: =item
22634 #: ../resize/virt-resize.pod:401
22635 #, fuzzy
22636 #| msgid "B<--format>"
22637 msgid "B<--output-format> raw"
22638 msgstr "B<--format>"
22639
22640 #. type: textblock
22641 #: ../resize/virt-resize.pod:403
22642 msgid ""
22643 "Specify the format of the output disk image.  If this flag is not given then "
22644 "it is auto-detected from the image itself."
22645 msgstr ""
22646
22647 #. type: textblock
22648 #: ../resize/virt-resize.pod:409
22649 msgid ""
22650 "Note that this option I<does not create> the output format.  This option "
22651 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22652 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22653 "SPARSE RAW FORMATS>."
22654 msgstr ""
22655
22656 #. type: =item
22657 #: ../resize/virt-resize.pod:414
22658 msgid "B<-q>"
22659 msgstr ""
22660
22661 #. type: =item
22662 #: ../resize/virt-resize.pod:416
22663 #, fuzzy
22664 #| msgid "B<--live>"
22665 msgid "B<--quiet>"
22666 msgstr "B<--live>"
22667
22668 #. type: textblock
22669 #: ../resize/virt-resize.pod:418
22670 msgid "Don't print the summary."
22671 msgstr ""
22672
22673 #. type: =item
22674 #: ../resize/virt-resize.pod:420
22675 #, fuzzy
22676 #| msgid "B<part_size>"
22677 msgid "B<--resize part=size>"
22678 msgstr "B<part_size>"
22679
22680 #. type: textblock
22681 #: ../resize/virt-resize.pod:422
22682 msgid ""
22683 "Resize the named partition (expanding or shrinking it) so that it has the "
22684 "given size."
22685 msgstr ""
22686
22687 #. type: textblock
22688 #: ../resize/virt-resize.pod:425
22689 msgid ""
22690 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22691 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22692 "size; or as a relative number or percentage.  For example:"
22693 msgstr ""
22694
22695 #. type: verbatim
22696 #: ../resize/virt-resize.pod:431
22697 #, fuzzy, no-wrap
22698 #| msgid ""
22699 #| " hexedit /dev/sda 1M\n"
22700 #| "\n"
22701 msgid ""
22702 " --resize /dev/sda2=10G\n"
22703 "\n"
22704 msgstr ""
22705 " hexedit /dev/sda 1M\n"
22706 "\n"
22707
22708 #. type: verbatim
22709 #: ../resize/virt-resize.pod:433
22710 #, fuzzy, no-wrap
22711 #| msgid ""
22712 #| " pvresize device\n"
22713 #| "\n"
22714 msgid ""
22715 " --resize /dev/sda4=90%\n"
22716 "\n"
22717 msgstr ""
22718 " pvresize пристрій\n"
22719 "\n"
22720
22721 #. type: verbatim
22722 #: ../resize/virt-resize.pod:435
22723 #, fuzzy, no-wrap
22724 #| msgid ""
22725 #| " hexedit /dev/sda 1M\n"
22726 #| "\n"
22727 msgid ""
22728 " --resize /dev/sda2=+1G\n"
22729 "\n"
22730 msgstr ""
22731 " hexedit /dev/sda 1M\n"
22732 "\n"
22733
22734 #. type: verbatim
22735 #: ../resize/virt-resize.pod:437
22736 #, fuzzy, no-wrap
22737 #| msgid ""
22738 #| " hexedit /dev/sda 1M\n"
22739 #| "\n"
22740 msgid ""
22741 " --resize /dev/sda2=-200M\n"
22742 "\n"
22743 msgstr ""
22744 " hexedit /dev/sda 1M\n"
22745 "\n"
22746
22747 #. type: verbatim
22748 #: ../resize/virt-resize.pod:439
22749 #, fuzzy, no-wrap
22750 #| msgid ""
22751 #| " hexedit /dev/sda 1M\n"
22752 #| "\n"
22753 msgid ""
22754 " --resize /dev/sda1=+128K\n"
22755 "\n"
22756 msgstr ""
22757 " hexedit /dev/sda 1M\n"
22758 "\n"
22759
22760 #. type: verbatim
22761 #: ../resize/virt-resize.pod:441
22762 #, fuzzy, no-wrap
22763 #| msgid ""
22764 #| " hexedit /dev/sda 1M\n"
22765 #| "\n"
22766 msgid ""
22767 " --resize /dev/sda1=+10%\n"
22768 "\n"
22769 msgstr ""
22770 " hexedit /dev/sda 1M\n"
22771 "\n"
22772
22773 #. type: verbatim
22774 #: ../resize/virt-resize.pod:443
22775 #, fuzzy, no-wrap
22776 #| msgid ""
22777 #| " hexedit /dev/sda 1M\n"
22778 #| "\n"
22779 msgid ""
22780 " --resize /dev/sda1=-10%\n"
22781 "\n"
22782 msgstr ""
22783 " hexedit /dev/sda 1M\n"
22784 "\n"
22785
22786 #. type: textblock
22787 #: ../resize/virt-resize.pod:445
22788 msgid ""
22789 "You can increase the size of any partition.  Virt-resize will expand the "
22790 "direct content of the partition if it knows how (see I<--expand> below)."
22791 msgstr ""
22792
22793 #. type: textblock
22794 #: ../resize/virt-resize.pod:449
22795 msgid ""
22796 "You can only I<decrease> the size of partitions that contain filesystems or "
22797 "PVs which have already been shrunk.  Virt-resize will check this has been "
22798 "done before proceeding, or else will print an error (see also I<--resize-"
22799 "force>)."
22800 msgstr ""
22801
22802 #. type: =item
22803 #: ../resize/virt-resize.pod:456
22804 msgid "B<--resize-force part=size>"
22805 msgstr ""
22806
22807 #. type: textblock
22808 #: ../resize/virt-resize.pod:458
22809 msgid ""
22810 "This is the same as I<--resize> except that it will let you decrease the "
22811 "size of any partition.  Generally this means you will lose any data which "
22812 "was at the end of the partition you shrink, but you may not care about that "
22813 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22814 "as a swap partition)."
22815 msgstr ""
22816
22817 #. type: textblock
22818 #: ../resize/virt-resize.pod:464
22819 msgid "See also the I<--ignore> option."
22820 msgstr ""
22821
22822 #. type: =item
22823 #: ../resize/virt-resize.pod:466
22824 #, fuzzy
22825 #| msgid "B<--partition>"
22826 msgid "B<--shrink part>"
22827 msgstr "B<--partition>"
22828
22829 #. type: textblock
22830 #: ../resize/virt-resize.pod:468
22831 msgid ""
22832 "Shrink the named partition until the overall disk image fits in the "
22833 "destination.  The named partition B<must> contain a filesystem or PV which "
22834 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22835 "online tools).  Virt-resize will check this and give an error if it has not "
22836 "been done."
22837 msgstr ""
22838
22839 #. type: textblock
22840 #: ../resize/virt-resize.pod:474
22841 msgid ""
22842 "The amount by which the overall disk must be shrunk (after carrying out all "
22843 "other operations requested by the user) is called the \"deficit\".  For "
22844 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22845 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22846 "would give an error unless the user specified a partition to shrink and that "
22847 "partition had more than a gigabyte of free space."
22848 msgstr ""
22849
22850 #. type: =head1
22851 #: ../resize/virt-resize.pod:492
22852 msgid "MACHINE READABLE OUTPUT"
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../resize/virt-resize.pod:494
22857 msgid ""
22858 "The I<--machine-readable> option can be used to make the output more machine "
22859 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22860 "etc."
22861 msgstr ""
22862
22863 #. type: textblock
22864 #: ../resize/virt-resize.pod:498
22865 msgid "There are two ways to use this option."
22866 msgstr ""
22867
22868 #. type: textblock
22869 #: ../resize/virt-resize.pod:500
22870 msgid ""
22871 "Firstly use the option on its own to query the capabilities of the virt-"
22872 "resize binary.  Typical output looks like this:"
22873 msgstr ""
22874
22875 #. type: verbatim
22876 #: ../resize/virt-resize.pod:503
22877 #, no-wrap
22878 msgid ""
22879 " $ virt-resize --machine-readable\n"
22880 " virt-resize\n"
22881 " ntfsresize-force\n"
22882 " 32bitok\n"
22883 " ntfs\n"
22884 " btrfs\n"
22885 "\n"
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../resize/virt-resize.pod:510
22890 msgid ""
22891 "A list of features is printed, one per line, and the program exits with "
22892 "status 0."
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../resize/virt-resize.pod:513
22897 msgid ""
22898 "Secondly use the option in conjunction with other options to make the "
22899 "regular program output more machine friendly."
22900 msgstr ""
22901
22902 #. type: textblock
22903 #: ../resize/virt-resize.pod:516
22904 msgid "At the moment this means:"
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../resize/virt-resize.pod:522
22909 msgid ""
22910 "Progress bar messages can be parsed from stdout by looking for this regular "
22911 "expression:"
22912 msgstr ""
22913
22914 #. type: verbatim
22915 #: ../resize/virt-resize.pod:525
22916 #, no-wrap
22917 msgid ""
22918 " ^[0-9]+/[0-9]+$\n"
22919 "\n"
22920 msgstr ""
22921
22922 #. type: textblock
22923 #: ../resize/virt-resize.pod:529
22924 msgid ""
22925 "The calling program should treat messages sent to stdout (except for "
22926 "progress bar messages) as status messages.  They can be logged and/or "
22927 "displayed to the user."
22928 msgstr ""
22929
22930 #. type: textblock
22931 #: ../resize/virt-resize.pod:535
22932 msgid ""
22933 "The calling program should treat messages sent to stderr as error messages.  "
22934 "In addition, virt-resize exits with a non-zero status code if there was a "
22935 "fatal error."
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../resize/virt-resize.pod:541
22940 msgid ""
22941 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
22942 "readable> option and will return an error."
22943 msgstr ""
22944
22945 #. type: =head2
22946 #: ../resize/virt-resize.pod:546
22947 msgid "\"Partition 1 does not end on cylinder boundary.\""
22948 msgstr ""
22949
22950 #. type: textblock
22951 #: ../resize/virt-resize.pod:548
22952 msgid ""
22953 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22954 "means the partitions will not be aligned to the ancient CHS geometry.  "
22955 "However CHS geometry is meaningless for disks manufactured since the early "
22956 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22957 "cylinders is not required by any modern operating system."
22958 msgstr ""
22959
22960 #. type: =head2
22961 #: ../resize/virt-resize.pod:555
22962 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22963 msgstr ""
22964
22965 #. type: textblock
22966 #: ../resize/virt-resize.pod:557
22967 msgid ""
22968 "In Windows Vista and later versions, Microsoft switched to using a separate "
22969 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22970 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22971 "the boot partition.  Doing so seems to break the guest completely.  However "
22972 "expanding the second partition (ie. C: drive) should work."
22973 msgstr ""
22974
22975 #. type: textblock
22976 #: ../resize/virt-resize.pod:564
22977 msgid ""
22978 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22979 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22980 "it find errors) is nothing to worry about."
22981 msgstr ""
22982
22983 #. type: =head2
22984 #: ../resize/virt-resize.pod:568
22985 msgid "GUEST BOOT STUCK AT \"GRUB\""
22986 msgstr ""
22987
22988 #. type: textblock
22989 #: ../resize/virt-resize.pod:570
22990 msgid ""
22991 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22992 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22993 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22994 "although we think is to do with partition alignment."
22995 msgstr ""
22996
22997 #. type: verbatim
22998 #: ../resize/virt-resize.pod:575
22999 #, no-wrap
23000 msgid ""
23001 " guestfish -i -a newdisk\n"
23002 " ><fs> cat /boot/grub/device.map\n"
23003 " # check the contents of this file are sensible or\n"
23004 " # edit the file if necessary\n"
23005 " ><fs> grub-install / /dev/vda\n"
23006 " ><fs> exit\n"
23007 "\n"
23008 msgstr ""
23009
23010 #. type: textblock
23011 #: ../resize/virt-resize.pod:582
23012 msgid ""
23013 "For more flexible guest reconfiguration, including if you need to specify "
23014 "other parameters to grub-install, use L<virt-rescue(1)>."
23015 msgstr ""
23016
23017 #. type: =head1
23018 #: ../resize/virt-resize.pod:585
23019 msgid "ALTERNATIVE TOOLS"
23020 msgstr ""
23021
23022 #. type: textblock
23023 #: ../resize/virt-resize.pod:587
23024 msgid ""
23025 "There are several proprietary tools for resizing partitions.  We won't "
23026 "mention any here."
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../resize/virt-resize.pod:590
23031 msgid ""
23032 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23033 "operations on disk images.  They can resize and move partitions, but I don't "
23034 "think they can do anything with the contents, and they certainly don't "
23035 "understand LVM."
23036 msgstr ""
23037
23038 #. type: textblock
23039 #: ../resize/virt-resize.pod:595
23040 msgid ""
23041 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23042 "but at a much lower level.  You will probably end up hand-calculating sector "
23043 "offsets, which is something that virt-resize was designed to avoid.  If you "
23044 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23045 "I<--debug> flag."
23046 msgstr ""
23047
23048 #. type: textblock
23049 #: ../resize/virt-resize.pod:615
23050 msgid ""
23051 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23052 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23053 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23054 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23055 msgstr ""
23056
23057 #. type: textblock
23058 #: ../ruby/examples/guestfs-ruby.pod:5
23059 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23060 msgstr ""
23061
23062 #. type: verbatim
23063 #: ../ruby/examples/guestfs-ruby.pod:9
23064 #, no-wrap
23065 msgid ""
23066 " require 'guestfs'\n"
23067 " g = Guestfs::Guestfs.new()\n"
23068 " g.add_drive_opts(\"disk.img\",\n"
23069 "                  :readonly => 1, :format => \"raw\")\n"
23070 " g.launch()\n"
23071 "\n"
23072 msgstr ""
23073
23074 #. type: textblock
23075 #: ../ruby/examples/guestfs-ruby.pod:17
23076 msgid ""
23077 "This manual page documents how to call libguestfs from the Ruby programming "
23078 "language.  This page just documents the differences from the C API and gives "
23079 "some examples.  If you are not familiar with using libguestfs, you also need "
23080 "to read L<guestfs(3)>."
23081 msgstr ""
23082
23083 #. type: textblock
23084 #: ../ruby/examples/guestfs-ruby.pod:24
23085 msgid ""
23086 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23087 "This has a single parameter which is the error message (a string)."
23088 msgstr ""
23089
23090 #. type: textblock
23091 #: ../ruby/examples/guestfs-ruby.pod:38
23092 #, fuzzy
23093 #| msgid ""
23094 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23095 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23096 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23097 msgid ""
23098 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
23099 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
23100 "libguestfs.org/>."
23101 msgstr ""
23102 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23103 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23104 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23105
23106 #. type: =head2
23107 #: ../src/guestfs-actions.pod:1
23108 msgid "guestfs_add_cdrom"
23109 msgstr ""
23110
23111 #. type: verbatim
23112 #: ../src/guestfs-actions.pod:3
23113 #, no-wrap
23114 msgid ""
23115 " int\n"
23116 " guestfs_add_cdrom (guestfs_h *g,\n"
23117 "                    const char *filename);\n"
23118 "\n"
23119 msgstr ""
23120
23121 #. type: textblock
23122 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23123 #: ../src/guestfs-actions.pod:270
23124 msgid ""
23125 "I<This function is deprecated.> In new code, use the L</"
23126 "guestfs_add_drive_opts> call instead."
23127 msgstr ""
23128
23129 #. type: textblock
23130 #: ../src/guestfs-actions.pod:24
23131 msgid ""
23132 "This call checks for the existence of C<filename>.  This stops you from "
23133 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23134 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23135 "instead."
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../src/guestfs-actions.pod:31
23140 msgid ""
23141 "If you just want to add an ISO file (often you use this as an efficient way "
23142 "to transfer large files into the guest), then you should probably use "
23143 "C<guestfs_add_drive_ro> instead."
23144 msgstr ""
23145
23146 #. type: textblock
23147 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23148 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23149 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23150 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23151 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23152 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23153 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23154 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23155 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23156 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23157 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23158 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23159 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23160 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23161 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23162 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23163 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23164 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
23165 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23166 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23167 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
23168 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
23169 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
23170 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
23171 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
23172 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
23173 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
23174 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
23175 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
23176 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
23177 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
23178 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
23179 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
23180 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
23181 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
23182 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
23183 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
23184 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
23185 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
23186 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635
23187 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
23188 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
23189 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
23190 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
23191 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
23192 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980
23193 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
23194 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
23195 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172
23196 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262
23197 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
23198 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
23199 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
23200 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
23201 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
23202 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
23203 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
23204 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
23205 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
23206 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
23207 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
23208 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
23209 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
23210 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
23211 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
23212 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
23213 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
23214 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
23215 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
23216 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
23217 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578
23218 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726
23219 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
23220 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
23221 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
23222 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23223 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
23224 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
23225 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
23226 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
23227 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
23228 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
23229 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
23230 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
23231 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
23232 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
23233 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609
23234 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
23235 #: ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782
23236 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
23237 msgid "This function returns 0 on success or -1 on error."
23238 msgstr ""
23239
23240 #. type: textblock
23241 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23242 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23243 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23244 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
23245 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
23246 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
23247 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
23248 #: ../src/guestfs-actions.pod:7611
23249 msgid "(Added in 0.3)"
23250 msgstr ""
23251
23252 #. type: =head2
23253 #: ../src/guestfs-actions.pod:41
23254 msgid "guestfs_add_domain"
23255 msgstr ""
23256
23257 #. type: verbatim
23258 #: ../src/guestfs-actions.pod:43
23259 #, no-wrap
23260 msgid ""
23261 " int\n"
23262 " guestfs_add_domain (guestfs_h *g,\n"
23263 "                     const char *dom,\n"
23264 "                     ...);\n"
23265 "\n"
23266 msgstr ""
23267
23268 #. type: textblock
23269 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23270 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
23271 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
23272 #: ../src/guestfs-actions.pod:5183
23273 msgid ""
23274 "You may supply a list of optional arguments to this call.  Use zero or more "
23275 "of the following pairs of parameters, and terminate the list with C<-1> on "
23276 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23277 msgstr ""
23278
23279 #. type: verbatim
23280 #: ../src/guestfs-actions.pod:53
23281 #, no-wrap
23282 msgid ""
23283 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23284 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23285 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23286 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23287 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23288 "\n"
23289 msgstr ""
23290
23291 #. type: textblock
23292 #: ../src/guestfs-actions.pod:59
23293 msgid ""
23294 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23295 "It works by connecting to libvirt, requesting the domain and domain XML from "
23296 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23297 "one."
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../src/guestfs-actions.pod:94
23302 msgid ""
23303 "The other optional parameters are passed directly through to "
23304 "C<guestfs_add_drive_opts>."
23305 msgstr ""
23306
23307 #. type: textblock
23308 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23309 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23310 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23311 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23312 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23313 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23314 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23315 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
23316 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
23317 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
23318 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
23319 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
23320 #: ../src/guestfs-actions.pod:7648
23321 msgid "On error this function returns -1."
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../src/guestfs-actions.pod:99
23326 msgid "(Added in 1.7.4)"
23327 msgstr ""
23328
23329 #. type: =head2
23330 #: ../src/guestfs-actions.pod:101
23331 msgid "guestfs_add_domain_va"
23332 msgstr ""
23333
23334 #. type: verbatim
23335 #: ../src/guestfs-actions.pod:103
23336 #, no-wrap
23337 msgid ""
23338 " int\n"
23339 " guestfs_add_domain_va (guestfs_h *g,\n"
23340 "                        const char *dom,\n"
23341 "                        va_list args);\n"
23342 "\n"
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../src/guestfs-actions.pod:108
23347 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23348 msgstr ""
23349
23350 #. type: textblock
23351 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23352 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23353 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23354 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
23355 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
23356 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
23357 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
23358 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23359 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23360
23361 #. type: =head2
23362 #: ../src/guestfs-actions.pod:112
23363 msgid "guestfs_add_domain_argv"
23364 msgstr "guestfs_add_domain_argv"
23365
23366 #. type: verbatim
23367 #: ../src/guestfs-actions.pod:114
23368 #, no-wrap
23369 msgid ""
23370 " int\n"
23371 " guestfs_add_domain_argv (guestfs_h *g,\n"
23372 "                          const char *dom,\n"
23373 "                          const struct guestfs_add_domain_argv *optargs);\n"
23374 "\n"
23375 msgstr ""
23376
23377 #. type: textblock
23378 #: ../src/guestfs-actions.pod:119
23379 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23380 msgstr ""
23381
23382 #. type: =head2
23383 #: ../src/guestfs-actions.pod:123
23384 msgid "guestfs_add_drive"
23385 msgstr ""
23386
23387 #. type: verbatim
23388 #: ../src/guestfs-actions.pod:125
23389 #, no-wrap
23390 msgid ""
23391 " int\n"
23392 " guestfs_add_drive (guestfs_h *g,\n"
23393 "                    const char *filename);\n"
23394 "\n"
23395 msgstr ""
23396
23397 #. type: textblock
23398 #: ../src/guestfs-actions.pod:129
23399 msgid ""
23400 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23401 "optional parameters, so the disk is added writable, with the format being "
23402 "detected automatically."
23403 msgstr ""
23404
23405 #. type: textblock
23406 #: ../src/guestfs-actions.pod:133
23407 msgid ""
23408 "Automatic detection of the format opens you up to a potential security hole "
23409 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23410 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23411 "you should think about replacing calls to this function with calls to "
23412 "C<guestfs_add_drive_opts>, and specifying the format."
23413 msgstr ""
23414
23415 #. type: =head2
23416 #: ../src/guestfs-actions.pod:144
23417 msgid "guestfs_add_drive_opts"
23418 msgstr ""
23419
23420 #. type: verbatim
23421 #: ../src/guestfs-actions.pod:146
23422 #, no-wrap
23423 msgid ""
23424 " int\n"
23425 " guestfs_add_drive_opts (guestfs_h *g,\n"
23426 "                         const char *filename,\n"
23427 "                         ...);\n"
23428 "\n"
23429 msgstr ""
23430
23431 #. type: verbatim
23432 #: ../src/guestfs-actions.pod:156
23433 #, no-wrap
23434 msgid ""
23435 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23436 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23437 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23438 "\n"
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../src/guestfs-actions.pod:185
23443 msgid ""
23444 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23445 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23446 "Possible formats include C<raw> and C<qcow2>."
23447 msgstr ""
23448
23449 #. type: textblock
23450 #: ../src/guestfs-actions.pod:196
23451 msgid ""
23452 "This rarely-used option lets you emulate the behaviour of the deprecated "
23453 "C<guestfs_add_drive_with_if> call (q.v.)"
23454 msgstr ""
23455
23456 #. type: textblock
23457 #: ../src/guestfs-actions.pod:203
23458 msgid "(Added in 1.5.23)"
23459 msgstr ""
23460
23461 #. type: =head2
23462 #: ../src/guestfs-actions.pod:205
23463 msgid "guestfs_add_drive_opts_va"
23464 msgstr ""
23465
23466 #. type: verbatim
23467 #: ../src/guestfs-actions.pod:207
23468 #, no-wrap
23469 msgid ""
23470 " int\n"
23471 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23472 "                            const char *filename,\n"
23473 "                            va_list args);\n"
23474 "\n"
23475 msgstr ""
23476
23477 #. type: textblock
23478 #: ../src/guestfs-actions.pod:212
23479 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23480 msgstr ""
23481
23482 #. type: =head2
23483 #: ../src/guestfs-actions.pod:216
23484 msgid "guestfs_add_drive_opts_argv"
23485 msgstr ""
23486
23487 #. type: verbatim
23488 #: ../src/guestfs-actions.pod:218
23489 #, no-wrap
23490 msgid ""
23491 " int\n"
23492 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23493 "                              const char *filename,\n"
23494 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23495 "\n"
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../src/guestfs-actions.pod:223
23500 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23501 msgstr ""
23502
23503 #. type: =head2
23504 #: ../src/guestfs-actions.pod:227
23505 msgid "guestfs_add_drive_ro"
23506 msgstr ""
23507
23508 #. type: verbatim
23509 #: ../src/guestfs-actions.pod:229
23510 #, no-wrap
23511 msgid ""
23512 " int\n"
23513 " guestfs_add_drive_ro (guestfs_h *g,\n"
23514 "                       const char *filename);\n"
23515 "\n"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../src/guestfs-actions.pod:233
23520 msgid ""
23521 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23522 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23523 "disk is added read-only, with the format being detected automatically."
23524 msgstr ""
23525
23526 #. type: textblock
23527 #: ../src/guestfs-actions.pod:240
23528 msgid "(Added in 1.0.38)"
23529 msgstr ""
23530
23531 #. type: =head2
23532 #: ../src/guestfs-actions.pod:242
23533 msgid "guestfs_add_drive_ro_with_if"
23534 msgstr ""
23535
23536 #. type: verbatim
23537 #: ../src/guestfs-actions.pod:244
23538 #, no-wrap
23539 msgid ""
23540 " int\n"
23541 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23542 "                               const char *filename,\n"
23543 "                               const char *iface);\n"
23544 "\n"
23545 msgstr ""
23546
23547 #. type: textblock
23548 #: ../src/guestfs-actions.pod:256
23549 msgid ""
23550 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23551 "QEMU interface emulation to use at run time."
23552 msgstr ""
23553
23554 #. type: textblock
23555 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23556 #: ../src/guestfs-actions.pod:2436
23557 msgid "(Added in 1.0.84)"
23558 msgstr ""
23559
23560 #. type: =head2
23561 #: ../src/guestfs-actions.pod:263
23562 msgid "guestfs_add_drive_with_if"
23563 msgstr ""
23564
23565 #. type: verbatim
23566 #: ../src/guestfs-actions.pod:265
23567 #, no-wrap
23568 msgid ""
23569 " int\n"
23570 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23571 "                            const char *filename,\n"
23572 "                            const char *iface);\n"
23573 "\n"
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../src/guestfs-actions.pod:277
23578 msgid ""
23579 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23580 "QEMU interface emulation to use at run time."
23581 msgstr ""
23582
23583 #. type: =head2
23584 #: ../src/guestfs-actions.pod:284
23585 msgid "guestfs_aug_clear"
23586 msgstr ""
23587
23588 #. type: verbatim
23589 #: ../src/guestfs-actions.pod:286
23590 #, no-wrap
23591 msgid ""
23592 " int\n"
23593 " guestfs_aug_clear (guestfs_h *g,\n"
23594 "                    const char *augpath);\n"
23595 "\n"
23596 msgstr ""
23597
23598 #. type: textblock
23599 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23600 msgid "(Added in 1.3.4)"
23601 msgstr ""
23602
23603 #. type: =head2
23604 #: ../src/guestfs-actions.pod:297
23605 msgid "guestfs_aug_close"
23606 msgstr ""
23607
23608 #. type: verbatim
23609 #: ../src/guestfs-actions.pod:299
23610 #, no-wrap
23611 msgid ""
23612 " int\n"
23613 " guestfs_aug_close (guestfs_h *g);\n"
23614 "\n"
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../src/guestfs-actions.pod:302
23619 msgid ""
23620 "Close the current Augeas handle and free up any resources used by it.  After "
23621 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23622 "any other Augeas functions."
23623 msgstr ""
23624
23625 #. type: textblock
23626 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23627 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23628 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23629 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23630 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23631 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23632 #: ../src/guestfs-actions.pod:5851
23633 msgid "(Added in 0.7)"
23634 msgstr ""
23635
23636 #. type: =head2
23637 #: ../src/guestfs-actions.pod:311
23638 msgid "guestfs_aug_defnode"
23639 msgstr ""
23640
23641 #. type: verbatim
23642 #: ../src/guestfs-actions.pod:313
23643 #, no-wrap
23644 msgid ""
23645 " struct guestfs_int_bool *\n"
23646 " guestfs_aug_defnode (guestfs_h *g,\n"
23647 "                      const char *name,\n"
23648 "                      const char *expr,\n"
23649 "                      const char *val);\n"
23650 "\n"
23651 msgstr ""
23652
23653 #. type: textblock
23654 #: ../src/guestfs-actions.pod:322
23655 msgid ""
23656 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23657 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23658 "containing that single node."
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../src/guestfs-actions.pod:330
23663 msgid ""
23664 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23665 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23666 msgstr ""
23667
23668 #. type: =head2
23669 #: ../src/guestfs-actions.pod:336
23670 msgid "guestfs_aug_defvar"
23671 msgstr ""
23672
23673 #. type: verbatim
23674 #: ../src/guestfs-actions.pod:338
23675 #, no-wrap
23676 msgid ""
23677 " int\n"
23678 " guestfs_aug_defvar (guestfs_h *g,\n"
23679 "                     const char *name,\n"
23680 "                     const char *expr);\n"
23681 "\n"
23682 msgstr ""
23683
23684 #. type: =head2
23685 #: ../src/guestfs-actions.pod:354
23686 msgid "guestfs_aug_get"
23687 msgstr ""
23688
23689 #. type: verbatim
23690 #: ../src/guestfs-actions.pod:356
23691 #, no-wrap
23692 msgid ""
23693 " char *\n"
23694 " guestfs_aug_get (guestfs_h *g,\n"
23695 "                  const char *augpath);\n"
23696 "\n"
23697 msgstr ""
23698
23699 #. type: textblock
23700 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23701 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23702 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23703 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23704 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23705 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23706 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23707 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
23708 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
23709 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
23710 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
23711 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
23712 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
23713 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
23714 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
23715 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
23716 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
23717 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
23718 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
23719 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
23720 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672
23721 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
23722 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
23723 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
23724 msgid ""
23725 "This function returns a string, or NULL on error.  I<The caller must free "
23726 "the returned string after use>."
23727 msgstr ""
23728
23729 #. type: =head2
23730 #: ../src/guestfs-actions.pod:368
23731 msgid "guestfs_aug_init"
23732 msgstr ""
23733
23734 #. type: verbatim
23735 #: ../src/guestfs-actions.pod:370
23736 #, no-wrap
23737 msgid ""
23738 " int\n"
23739 " guestfs_aug_init (guestfs_h *g,\n"
23740 "                   const char *root,\n"
23741 "                   int flags);\n"
23742 "\n"
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../src/guestfs-actions.pod:379
23747 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23748 msgstr ""
23749
23750 #. type: textblock
23751 #: ../src/guestfs-actions.pod:404
23752 msgid ""
23753 "This option is only useful when debugging Augeas lenses.  Use of this option "
23754 "may require additional memory for the libguestfs appliance.  You may need to "
23755 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23756 "C<guestfs_set_memsize>."
23757 msgstr ""
23758
23759 #. type: textblock
23760 #: ../src/guestfs-actions.pod:419
23761 msgid "Do not load the tree in C<guestfs_aug_init>."
23762 msgstr ""
23763
23764 #. type: textblock
23765 #: ../src/guestfs-actions.pod:423
23766 msgid "To close the handle, you can call C<guestfs_aug_close>."
23767 msgstr ""
23768
23769 #. type: =head2
23770 #: ../src/guestfs-actions.pod:431
23771 msgid "guestfs_aug_insert"
23772 msgstr ""
23773
23774 #. type: verbatim
23775 #: ../src/guestfs-actions.pod:433
23776 #, no-wrap
23777 msgid ""
23778 " int\n"
23779 " guestfs_aug_insert (guestfs_h *g,\n"
23780 "                     const char *augpath,\n"
23781 "                     const char *label,\n"
23782 "                     int before);\n"
23783 "\n"
23784 msgstr ""
23785
23786 #. type: =head2
23787 #: ../src/guestfs-actions.pod:451
23788 msgid "guestfs_aug_load"
23789 msgstr ""
23790
23791 #. type: verbatim
23792 #: ../src/guestfs-actions.pod:453
23793 #, no-wrap
23794 msgid ""
23795 " int\n"
23796 " guestfs_aug_load (guestfs_h *g);\n"
23797 "\n"
23798 msgstr ""
23799
23800 #. type: =head2
23801 #: ../src/guestfs-actions.pod:465
23802 msgid "guestfs_aug_ls"
23803 msgstr ""
23804
23805 #. type: verbatim
23806 #: ../src/guestfs-actions.pod:467
23807 #, no-wrap
23808 msgid ""
23809 " char **\n"
23810 " guestfs_aug_ls (guestfs_h *g,\n"
23811 "                 const char *augpath);\n"
23812 "\n"
23813 msgstr ""
23814
23815 #. type: textblock
23816 #: ../src/guestfs-actions.pod:471
23817 msgid ""
23818 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23819 "sorting the resulting nodes into alphabetical order."
23820 msgstr ""
23821
23822 #. type: textblock
23823 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23824 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23825 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23826 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23827 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23828 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23829 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
23830 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
23831 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
23832 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
23833 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
23834 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
23835 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
23836 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
23837 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
23838 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
23839 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
23840 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
23841 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
23842 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
23843 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
23844 #: ../src/guestfs-actions.pod:7932
23845 msgid ""
23846 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23847 ">), or NULL if there was an error.  I<The caller must free the strings and "
23848 "the array after use>."
23849 msgstr ""
23850
23851 #. type: textblock
23852 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23853 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23854 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
23855 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
23856 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
23857 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
23858 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
23859 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
23860 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
23861 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
23862 #: ../src/guestfs-actions.pod:7723
23863 msgid "(Added in 0.8)"
23864 msgstr ""
23865
23866 #. type: =head2
23867 #: ../src/guestfs-actions.pod:480
23868 msgid "guestfs_aug_match"
23869 msgstr ""
23870
23871 #. type: verbatim
23872 #: ../src/guestfs-actions.pod:482
23873 #, no-wrap
23874 msgid ""
23875 " char **\n"
23876 " guestfs_aug_match (guestfs_h *g,\n"
23877 "                    const char *augpath);\n"
23878 "\n"
23879 msgstr ""
23880
23881 #. type: =head2
23882 #: ../src/guestfs-actions.pod:496
23883 msgid "guestfs_aug_mv"
23884 msgstr ""
23885
23886 #. type: verbatim
23887 #: ../src/guestfs-actions.pod:498
23888 #, no-wrap
23889 msgid ""
23890 " int\n"
23891 " guestfs_aug_mv (guestfs_h *g,\n"
23892 "                 const char *src,\n"
23893 "                 const char *dest);\n"
23894 "\n"
23895 msgstr ""
23896
23897 #. type: =head2
23898 #: ../src/guestfs-actions.pod:510
23899 msgid "guestfs_aug_rm"
23900 msgstr ""
23901
23902 #. type: verbatim
23903 #: ../src/guestfs-actions.pod:512
23904 #, no-wrap
23905 msgid ""
23906 " int\n"
23907 " guestfs_aug_rm (guestfs_h *g,\n"
23908 "                 const char *augpath);\n"
23909 "\n"
23910 msgstr ""
23911
23912 #. type: =head2
23913 #: ../src/guestfs-actions.pod:524
23914 msgid "guestfs_aug_save"
23915 msgstr ""
23916
23917 #. type: verbatim
23918 #: ../src/guestfs-actions.pod:526
23919 #, no-wrap
23920 msgid ""
23921 " int\n"
23922 " guestfs_aug_save (guestfs_h *g);\n"
23923 "\n"
23924 msgstr ""
23925
23926 #. type: textblock
23927 #: ../src/guestfs-actions.pod:531
23928 msgid ""
23929 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23930 "are saved."
23931 msgstr ""
23932
23933 #. type: =head2
23934 #: ../src/guestfs-actions.pod:538
23935 msgid "guestfs_aug_set"
23936 msgstr ""
23937
23938 #. type: verbatim
23939 #: ../src/guestfs-actions.pod:540
23940 #, no-wrap
23941 msgid ""
23942 " int\n"
23943 " guestfs_aug_set (guestfs_h *g,\n"
23944 "                  const char *augpath,\n"
23945 "                  const char *val);\n"
23946 "\n"
23947 msgstr ""
23948
23949 #. type: textblock
23950 #: ../src/guestfs-actions.pod:547
23951 msgid ""
23952 "In the Augeas API, it is possible to clear a node by setting the value to "
23953 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23954 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23955 msgstr ""
23956
23957 #. type: =head2
23958 #: ../src/guestfs-actions.pod:556
23959 msgid "guestfs_available"
23960 msgstr ""
23961
23962 #. type: verbatim
23963 #: ../src/guestfs-actions.pod:558
23964 #, no-wrap
23965 msgid ""
23966 " int\n"
23967 " guestfs_available (guestfs_h *g,\n"
23968 "                    char *const *groups);\n"
23969 "\n"
23970 msgstr ""
23971
23972 #. type: textblock
23973 #: ../src/guestfs-actions.pod:566
23974 msgid ""
23975 "The libguestfs groups, and the functions that those groups correspond to, "
23976 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23977 "runtime by calling C<guestfs_available_all_groups>."
23978 msgstr ""
23979
23980 #. type: textblock
23981 #: ../src/guestfs-actions.pod:590
23982 msgid "You must call C<guestfs_launch> before calling this function."
23983 msgstr ""
23984
23985 #. type: textblock
23986 #: ../src/guestfs-actions.pod:612
23987 msgid ""
23988 "This call was added in version C<1.0.80>.  In previous versions of "
23989 "libguestfs all you could do would be to speculatively execute a command to "
23990 "find out if the daemon implemented it.  See also C<guestfs_version>."
23991 msgstr ""
23992
23993 #. type: textblock
23994 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23995 msgid "(Added in 1.0.80)"
23996 msgstr ""
23997
23998 #. type: =head2
23999 #: ../src/guestfs-actions.pod:623
24000 msgid "guestfs_available_all_groups"
24001 msgstr ""
24002
24003 #. type: verbatim
24004 #: ../src/guestfs-actions.pod:625
24005 #, no-wrap
24006 msgid ""
24007 " char **\n"
24008 " guestfs_available_all_groups (guestfs_h *g);\n"
24009 "\n"
24010 msgstr ""
24011
24012 #. type: textblock
24013 #: ../src/guestfs-actions.pod:628
24014 msgid ""
24015 "This command returns a list of all optional groups that this daemon knows "
24016 "about.  Note this returns both supported and unsupported groups.  To find "
24017 "out which ones the daemon can actually support you have to call "
24018 "C<guestfs_available> on each member of the returned list."
24019 msgstr ""
24020
24021 #. type: textblock
24022 #: ../src/guestfs-actions.pod:634
24023 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../src/guestfs-actions.pod:640
24028 msgid "(Added in 1.3.15)"
24029 msgstr ""
24030
24031 #. type: =head2
24032 #: ../src/guestfs-actions.pod:642
24033 msgid "guestfs_base64_in"
24034 msgstr ""
24035
24036 #. type: verbatim
24037 #: ../src/guestfs-actions.pod:644
24038 #, no-wrap
24039 msgid ""
24040 " int\n"
24041 " guestfs_base64_in (guestfs_h *g,\n"
24042 "                    const char *base64file,\n"
24043 "                    const char *filename);\n"
24044 "\n"
24045 msgstr ""
24046
24047 #. type: textblock
24048 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24049 msgid "(Added in 1.3.5)"
24050 msgstr ""
24051
24052 #. type: =head2
24053 #: ../src/guestfs-actions.pod:656
24054 msgid "guestfs_base64_out"
24055 msgstr ""
24056
24057 #. type: verbatim
24058 #: ../src/guestfs-actions.pod:658
24059 #, no-wrap
24060 msgid ""
24061 " int\n"
24062 " guestfs_base64_out (guestfs_h *g,\n"
24063 "                     const char *filename,\n"
24064 "                     const char *base64file);\n"
24065 "\n"
24066 msgstr ""
24067
24068 #. type: =head2
24069 #: ../src/guestfs-actions.pod:670
24070 msgid "guestfs_blockdev_flushbufs"
24071 msgstr ""
24072
24073 #. type: verbatim
24074 #: ../src/guestfs-actions.pod:672
24075 #, no-wrap
24076 msgid ""
24077 " int\n"
24078 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24079 "                             const char *device);\n"
24080 "\n"
24081 msgstr ""
24082
24083 #. type: textblock
24084 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24085 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24086 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24087 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24088 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24089 msgid "(Added in 0.9.3)"
24090 msgstr ""
24091
24092 #. type: =head2
24093 #: ../src/guestfs-actions.pod:685
24094 msgid "guestfs_blockdev_getbsz"
24095 msgstr ""
24096
24097 #. type: verbatim
24098 #: ../src/guestfs-actions.pod:687
24099 #, no-wrap
24100 msgid ""
24101 " int\n"
24102 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24103 "                          const char *device);\n"
24104 "\n"
24105 msgstr ""
24106
24107 #. type: =head2
24108 #: ../src/guestfs-actions.pod:702
24109 msgid "guestfs_blockdev_getro"
24110 msgstr ""
24111
24112 #. type: verbatim
24113 #: ../src/guestfs-actions.pod:704
24114 #, no-wrap
24115 msgid ""
24116 " int\n"
24117 " guestfs_blockdev_getro (guestfs_h *g,\n"
24118 "                         const char *device);\n"
24119 "\n"
24120 msgstr ""
24121
24122 #. type: textblock
24123 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24124 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24125 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24126 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24127 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24128 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
24129 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
24130 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
24131 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
24132 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
24133 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
24134 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
24135 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
24136 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
24137 #: ../src/guestfs-actions.pod:5344
24138 msgid "This function returns a C truth value on success or -1 on error."
24139 msgstr ""
24140
24141 #. type: =head2
24142 #: ../src/guestfs-actions.pod:717
24143 msgid "guestfs_blockdev_getsize64"
24144 msgstr ""
24145
24146 #. type: verbatim
24147 #: ../src/guestfs-actions.pod:719
24148 #, no-wrap
24149 msgid ""
24150 " int64_t\n"
24151 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24152 "                             const char *device);\n"
24153 "\n"
24154 msgstr ""
24155
24156 #. type: textblock
24157 #: ../src/guestfs-actions.pod:725
24158 msgid "See also C<guestfs_blockdev_getsz>."
24159 msgstr ""
24160
24161 #. type: =head2
24162 #: ../src/guestfs-actions.pod:733
24163 msgid "guestfs_blockdev_getss"
24164 msgstr ""
24165
24166 #. type: verbatim
24167 #: ../src/guestfs-actions.pod:735
24168 #, no-wrap
24169 msgid ""
24170 " int\n"
24171 " guestfs_blockdev_getss (guestfs_h *g,\n"
24172 "                         const char *device);\n"
24173 "\n"
24174 msgstr ""
24175
24176 #. type: textblock
24177 #: ../src/guestfs-actions.pod:742
24178 msgid ""
24179 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24180 "that)."
24181 msgstr ""
24182
24183 #. type: =head2
24184 #: ../src/guestfs-actions.pod:751
24185 msgid "guestfs_blockdev_getsz"
24186 msgstr ""
24187
24188 #. type: verbatim
24189 #: ../src/guestfs-actions.pod:753
24190 #, no-wrap
24191 msgid ""
24192 " int64_t\n"
24193 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24194 "                         const char *device);\n"
24195 "\n"
24196 msgstr ""
24197
24198 #. type: textblock
24199 #: ../src/guestfs-actions.pod:760
24200 msgid ""
24201 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24202 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24203 msgstr ""
24204
24205 #. type: =head2
24206 #: ../src/guestfs-actions.pod:770
24207 msgid "guestfs_blockdev_rereadpt"
24208 msgstr ""
24209
24210 #. type: verbatim
24211 #: ../src/guestfs-actions.pod:772
24212 #, no-wrap
24213 msgid ""
24214 " int\n"
24215 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24216 "                            const char *device);\n"
24217 "\n"
24218 msgstr ""
24219
24220 #. type: =head2
24221 #: ../src/guestfs-actions.pod:784
24222 msgid "guestfs_blockdev_setbsz"
24223 msgstr ""
24224
24225 #. type: verbatim
24226 #: ../src/guestfs-actions.pod:786
24227 #, no-wrap
24228 msgid ""
24229 " int\n"
24230 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24231 "                          const char *device,\n"
24232 "                          int blocksize);\n"
24233 "\n"
24234 msgstr ""
24235
24236 #. type: =head2
24237 #: ../src/guestfs-actions.pod:802
24238 msgid "guestfs_blockdev_setro"
24239 msgstr ""
24240
24241 #. type: verbatim
24242 #: ../src/guestfs-actions.pod:804
24243 #, no-wrap
24244 msgid ""
24245 " int\n"
24246 " guestfs_blockdev_setro (guestfs_h *g,\n"
24247 "                         const char *device);\n"
24248 "\n"
24249 msgstr ""
24250
24251 #. type: =head2
24252 #: ../src/guestfs-actions.pod:816
24253 msgid "guestfs_blockdev_setrw"
24254 msgstr ""
24255
24256 #. type: verbatim
24257 #: ../src/guestfs-actions.pod:818
24258 #, no-wrap
24259 msgid ""
24260 " int\n"
24261 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24262 "                         const char *device);\n"
24263 "\n"
24264 msgstr ""
24265
24266 #. type: =head2
24267 #: ../src/guestfs-actions.pod:830
24268 msgid "guestfs_btrfs_filesystem_resize"
24269 msgstr ""
24270
24271 #. type: verbatim
24272 #: ../src/guestfs-actions.pod:832
24273 #, no-wrap
24274 msgid ""
24275 " int\n"
24276 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24277 "                                  const char *mountpoint,\n"
24278 "                                  ...);\n"
24279 "\n"
24280 msgstr ""
24281
24282 #. type: verbatim
24283 #: ../src/guestfs-actions.pod:842
24284 #, no-wrap
24285 msgid ""
24286 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24287 "\n"
24288 msgstr ""
24289
24290 #. type: textblock
24291 #: ../src/guestfs-actions.pod:865
24292 msgid "(Added in 1.11.17)"
24293 msgstr ""
24294
24295 #. type: =head2
24296 #: ../src/guestfs-actions.pod:867
24297 msgid "guestfs_btrfs_filesystem_resize_va"
24298 msgstr ""
24299
24300 #. type: verbatim
24301 #: ../src/guestfs-actions.pod:869
24302 #, no-wrap
24303 msgid ""
24304 " int\n"
24305 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24306 "                                     const char *mountpoint,\n"
24307 "                                     va_list args);\n"
24308 "\n"
24309 msgstr ""
24310
24311 #. type: textblock
24312 #: ../src/guestfs-actions.pod:874
24313 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24314 msgstr ""
24315
24316 #. type: =head2
24317 #: ../src/guestfs-actions.pod:878
24318 msgid "guestfs_btrfs_filesystem_resize_argv"
24319 msgstr ""
24320
24321 #. type: verbatim
24322 #: ../src/guestfs-actions.pod:880
24323 #, no-wrap
24324 msgid ""
24325 " int\n"
24326 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24327 "                                       const char *mountpoint,\n"
24328 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24329 "\n"
24330 msgstr ""
24331
24332 #. type: textblock
24333 #: ../src/guestfs-actions.pod:885
24334 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24335 msgstr ""
24336
24337 #. type: =head2
24338 #: ../src/guestfs-actions.pod:889
24339 msgid "guestfs_case_sensitive_path"
24340 msgstr ""
24341
24342 #. type: verbatim
24343 #: ../src/guestfs-actions.pod:891
24344 #, no-wrap
24345 msgid ""
24346 " char *\n"
24347 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24348 "                              const char *path);\n"
24349 "\n"
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../src/guestfs-actions.pod:917
24354 msgid ""
24355 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24356 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24357 "how the directories were originally created under Windows)."
24358 msgstr ""
24359
24360 #. type: textblock
24361 #: ../src/guestfs-actions.pod:925
24362 msgid "See also C<guestfs_realpath>."
24363 msgstr ""
24364
24365 #. type: textblock
24366 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
24367 msgid "(Added in 1.0.75)"
24368 msgstr ""
24369
24370 #. type: =head2
24371 #: ../src/guestfs-actions.pod:932
24372 msgid "guestfs_cat"
24373 msgstr ""
24374
24375 #. type: verbatim
24376 #: ../src/guestfs-actions.pod:934
24377 #, no-wrap
24378 msgid ""
24379 " char *\n"
24380 " guestfs_cat (guestfs_h *g,\n"
24381 "              const char *path);\n"
24382 "\n"
24383 msgstr ""
24384
24385 #. type: textblock
24386 #: ../src/guestfs-actions.pod:940
24387 msgid ""
24388 "Note that this function cannot correctly handle binary files (specifically, "
24389 "files containing C<\\0> character which is treated as end of string).  For "
24390 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24391 "functions which have a more complex interface."
24392 msgstr ""
24393
24394 #. type: textblock
24395 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
24396 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
24397 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
24398 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
24399 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
24400 #: ../src/guestfs-actions.pod:7559
24401 msgid "(Added in 0.4)"
24402 msgstr ""
24403
24404 #. type: =head2
24405 #: ../src/guestfs-actions.pod:953
24406 msgid "guestfs_checksum"
24407 msgstr ""
24408
24409 #. type: verbatim
24410 #: ../src/guestfs-actions.pod:955
24411 #, no-wrap
24412 msgid ""
24413 " char *\n"
24414 " guestfs_checksum (guestfs_h *g,\n"
24415 "                   const char *csumtype,\n"
24416 "                   const char *path);\n"
24417 "\n"
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../src/guestfs-actions.pod:1001
24422 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../src/guestfs-actions.pod:1003
24427 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24428 msgstr ""
24429
24430 #. type: textblock
24431 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24432 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
24433 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
24434 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
24435 msgid "(Added in 1.0.2)"
24436 msgstr ""
24437
24438 #. type: =head2
24439 #: ../src/guestfs-actions.pod:1010
24440 msgid "guestfs_checksum_device"
24441 msgstr ""
24442
24443 #. type: verbatim
24444 #: ../src/guestfs-actions.pod:1012
24445 #, no-wrap
24446 msgid ""
24447 " char *\n"
24448 " guestfs_checksum_device (guestfs_h *g,\n"
24449 "                          const char *csumtype,\n"
24450 "                          const char *device);\n"
24451 "\n"
24452 msgstr ""
24453
24454 #. type: textblock
24455 #: ../src/guestfs-actions.pod:1017
24456 msgid ""
24457 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24458 "device named C<device>.  For the types of checksums supported see the "
24459 "C<guestfs_checksum> command."
24460 msgstr ""
24461
24462 #. type: textblock
24463 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
24464 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
24465 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
24466 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
24467 #: ../src/guestfs-actions.pod:7571
24468 msgid "(Added in 1.3.2)"
24469 msgstr ""
24470
24471 #. type: =head2
24472 #: ../src/guestfs-actions.pod:1026
24473 msgid "guestfs_checksums_out"
24474 msgstr ""
24475
24476 #. type: verbatim
24477 #: ../src/guestfs-actions.pod:1028
24478 #, no-wrap
24479 msgid ""
24480 " int\n"
24481 " guestfs_checksums_out (guestfs_h *g,\n"
24482 "                        const char *csumtype,\n"
24483 "                        const char *directory,\n"
24484 "                        const char *sumsfile);\n"
24485 "\n"
24486 msgstr ""
24487
24488 #. type: textblock
24489 #: ../src/guestfs-actions.pod:1048
24490 msgid "(Added in 1.3.7)"
24491 msgstr ""
24492
24493 #. type: =head2
24494 #: ../src/guestfs-actions.pod:1050
24495 msgid "guestfs_chmod"
24496 msgstr ""
24497
24498 #. type: verbatim
24499 #: ../src/guestfs-actions.pod:1052
24500 #, no-wrap
24501 msgid ""
24502 " int\n"
24503 " guestfs_chmod (guestfs_h *g,\n"
24504 "                int mode,\n"
24505 "                const char *path);\n"
24506 "\n"
24507 msgstr ""
24508
24509 #. type: =head2
24510 #: ../src/guestfs-actions.pod:1070
24511 msgid "guestfs_chown"
24512 msgstr ""
24513
24514 #. type: verbatim
24515 #: ../src/guestfs-actions.pod:1072
24516 #, no-wrap
24517 msgid ""
24518 " int\n"
24519 " guestfs_chown (guestfs_h *g,\n"
24520 "                int owner,\n"
24521 "                int group,\n"
24522 "                const char *path);\n"
24523 "\n"
24524 msgstr ""
24525
24526 #. type: =head2
24527 #: ../src/guestfs-actions.pod:1088
24528 msgid "guestfs_command"
24529 msgstr ""
24530
24531 #. type: verbatim
24532 #: ../src/guestfs-actions.pod:1090
24533 #, no-wrap
24534 msgid ""
24535 " char *\n"
24536 " guestfs_command (guestfs_h *g,\n"
24537 "                  char *const *arguments);\n"
24538 "\n"
24539 msgstr ""
24540
24541 #. type: textblock
24542 #: ../src/guestfs-actions.pod:1099
24543 msgid ""
24544 "The single parameter is an argv-style list of arguments.  The first element "
24545 "is the name of the program to run.  Subsequent elements are parameters.  The "
24546 "list must be non-empty (ie. must contain a program name).  Note that the "
24547 "command runs directly, and is I<not> invoked via the shell (see "
24548 "C<guestfs_sh>)."
24549 msgstr ""
24550
24551 #. type: textblock
24552 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24553 #: ../src/guestfs-actions.pod:1615
24554 msgid "(Added in 0.9.1)"
24555 msgstr ""
24556
24557 #. type: =head2
24558 #: ../src/guestfs-actions.pod:1132
24559 msgid "guestfs_command_lines"
24560 msgstr ""
24561
24562 #. type: verbatim
24563 #: ../src/guestfs-actions.pod:1134
24564 #, no-wrap
24565 msgid ""
24566 " char **\n"
24567 " guestfs_command_lines (guestfs_h *g,\n"
24568 "                        char *const *arguments);\n"
24569 "\n"
24570 msgstr ""
24571
24572 #. type: textblock
24573 #: ../src/guestfs-actions.pod:1138
24574 msgid ""
24575 "This is the same as C<guestfs_command>, but splits the result into a list of "
24576 "lines."
24577 msgstr ""
24578
24579 #. type: textblock
24580 #: ../src/guestfs-actions.pod:1141
24581 msgid "See also: C<guestfs_sh_lines>"
24582 msgstr ""
24583
24584 #. type: =head2
24585 #: ../src/guestfs-actions.pod:1152
24586 msgid "guestfs_config"
24587 msgstr ""
24588
24589 #. type: verbatim
24590 #: ../src/guestfs-actions.pod:1154
24591 #, no-wrap
24592 msgid ""
24593 " int\n"
24594 " guestfs_config (guestfs_h *g,\n"
24595 "                 const char *qemuparam,\n"
24596 "                 const char *qemuvalue);\n"
24597 "\n"
24598 msgstr ""
24599
24600 #. type: =head2
24601 #: ../src/guestfs-actions.pod:1172
24602 msgid "guestfs_copy_size"
24603 msgstr ""
24604
24605 #. type: verbatim
24606 #: ../src/guestfs-actions.pod:1174
24607 #, no-wrap
24608 msgid ""
24609 " int\n"
24610 " guestfs_copy_size (guestfs_h *g,\n"
24611 "                    const char *src,\n"
24612 "                    const char *dest,\n"
24613 "                    int64_t size);\n"
24614 "\n"
24615 msgstr ""
24616
24617 #. type: textblock
24618 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24619 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24620 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24621 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
24622 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
24623 #: ../src/guestfs-actions.pod:7807
24624 msgid ""
24625 "This long-running command can generate progress notification messages so "
24626 "that the caller can display a progress bar or indicator.  To receive these "
24627 "messages, the caller must register a progress event callback.  See L<guestfs"
24628 "(3)/GUESTFS_EVENT_PROGRESS>."
24629 msgstr ""
24630
24631 #. type: textblock
24632 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
24633 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
24634 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
24635 msgid "(Added in 1.0.87)"
24636 msgstr ""
24637
24638 #. type: =head2
24639 #: ../src/guestfs-actions.pod:1195
24640 msgid "guestfs_cp"
24641 msgstr ""
24642
24643 #. type: verbatim
24644 #: ../src/guestfs-actions.pod:1197
24645 #, no-wrap
24646 msgid ""
24647 " int\n"
24648 " guestfs_cp (guestfs_h *g,\n"
24649 "             const char *src,\n"
24650 "             const char *dest);\n"
24651 "\n"
24652 msgstr ""
24653
24654 #. type: textblock
24655 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24656 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24657 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
24658 #: ../src/guestfs-actions.pod:5596
24659 msgid "(Added in 1.0.18)"
24660 msgstr ""
24661
24662 #. type: =head2
24663 #: ../src/guestfs-actions.pod:1209
24664 msgid "guestfs_cp_a"
24665 msgstr ""
24666
24667 #. type: verbatim
24668 #: ../src/guestfs-actions.pod:1211
24669 #, no-wrap
24670 msgid ""
24671 " int\n"
24672 " guestfs_cp_a (guestfs_h *g,\n"
24673 "               const char *src,\n"
24674 "               const char *dest);\n"
24675 "\n"
24676 msgstr ""
24677
24678 #. type: =head2
24679 #: ../src/guestfs-actions.pod:1223
24680 msgid "guestfs_dd"
24681 msgstr ""
24682
24683 #. type: verbatim
24684 #: ../src/guestfs-actions.pod:1225
24685 #, no-wrap
24686 msgid ""
24687 " int\n"
24688 " guestfs_dd (guestfs_h *g,\n"
24689 "             const char *src,\n"
24690 "             const char *dest);\n"
24691 "\n"
24692 msgstr ""
24693
24694 #. type: textblock
24695 #: ../src/guestfs-actions.pod:1235
24696 msgid ""
24697 "If the destination is a device, it must be as large or larger than the "
24698 "source file or device, otherwise the copy will fail.  This command cannot do "
24699 "partial copies (see C<guestfs_copy_size>)."
24700 msgstr ""
24701
24702 #. type: =head2
24703 #: ../src/guestfs-actions.pod:1243
24704 msgid "guestfs_df"
24705 msgstr ""
24706
24707 #. type: verbatim
24708 #: ../src/guestfs-actions.pod:1245
24709 #, no-wrap
24710 msgid ""
24711 " char *\n"
24712 " guestfs_df (guestfs_h *g);\n"
24713 "\n"
24714 msgstr ""
24715
24716 #. type: textblock
24717 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24718 msgid ""
24719 "This command is mostly useful for interactive sessions.  It is I<not> "
24720 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24721 "from programs."
24722 msgstr ""
24723
24724 #. type: textblock
24725 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24726 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
24727 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
24728 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
24729 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
24730 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
24731 #: ../src/guestfs-actions.pod:7650
24732 msgid "(Added in 1.0.54)"
24733 msgstr ""
24734
24735 #. type: =head2
24736 #: ../src/guestfs-actions.pod:1259
24737 msgid "guestfs_df_h"
24738 msgstr ""
24739
24740 #. type: verbatim
24741 #: ../src/guestfs-actions.pod:1261
24742 #, no-wrap
24743 msgid ""
24744 " char *\n"
24745 " guestfs_df_h (guestfs_h *g);\n"
24746 "\n"
24747 msgstr ""
24748
24749 #. type: =head2
24750 #: ../src/guestfs-actions.pod:1276
24751 msgid "guestfs_dmesg"
24752 msgstr ""
24753
24754 #. type: verbatim
24755 #: ../src/guestfs-actions.pod:1278
24756 #, no-wrap
24757 msgid ""
24758 " char *\n"
24759 " guestfs_dmesg (guestfs_h *g);\n"
24760 "\n"
24761 msgstr ""
24762
24763 #. type: textblock
24764 #: ../src/guestfs-actions.pod:1285
24765 msgid ""
24766 "Another way to get the same information is to enable verbose messages with "
24767 "C<guestfs_set_verbose> or by setting the environment variable "
24768 "C<LIBGUESTFS_DEBUG=1> before running the program."
24769 msgstr ""
24770
24771 #. type: =head2
24772 #: ../src/guestfs-actions.pod:1295
24773 msgid "guestfs_download"
24774 msgstr ""
24775
24776 #. type: verbatim
24777 #: ../src/guestfs-actions.pod:1297
24778 #, no-wrap
24779 msgid ""
24780 " int\n"
24781 " guestfs_download (guestfs_h *g,\n"
24782 "                   const char *remotefilename,\n"
24783 "                   const char *filename);\n"
24784 "\n"
24785 msgstr ""
24786
24787 #. type: textblock
24788 #: ../src/guestfs-actions.pod:1307
24789 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24790 msgstr ""
24791
24792 #. type: =head2
24793 #: ../src/guestfs-actions.pod:1318
24794 msgid "guestfs_download_offset"
24795 msgstr ""
24796
24797 #. type: verbatim
24798 #: ../src/guestfs-actions.pod:1320
24799 #, no-wrap
24800 msgid ""
24801 " int\n"
24802 " guestfs_download_offset (guestfs_h *g,\n"
24803 "                          const char *remotefilename,\n"
24804 "                          const char *filename,\n"
24805 "                          int64_t offset,\n"
24806 "                          int64_t size);\n"
24807 "\n"
24808 msgstr ""
24809
24810 #. type: textblock
24811 #: ../src/guestfs-actions.pod:1333
24812 msgid ""
24813 "Note that there is no limit on the amount of data that can be downloaded "
24814 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24815 "full amount unless an error occurs."
24816 msgstr ""
24817
24818 #. type: textblock
24819 #: ../src/guestfs-actions.pod:1338
24820 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24821 msgstr ""
24822
24823 #. type: textblock
24824 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
24825 msgid "(Added in 1.5.17)"
24826 msgstr ""
24827
24828 #. type: =head2
24829 #: ../src/guestfs-actions.pod:1349
24830 msgid "guestfs_drop_caches"
24831 msgstr ""
24832
24833 #. type: verbatim
24834 #: ../src/guestfs-actions.pod:1351
24835 #, no-wrap
24836 msgid ""
24837 " int\n"
24838 " guestfs_drop_caches (guestfs_h *g,\n"
24839 "                      int whattodrop);\n"
24840 "\n"
24841 msgstr ""
24842
24843 #. type: =head2
24844 #: ../src/guestfs-actions.pod:1369
24845 msgid "guestfs_du"
24846 msgstr ""
24847
24848 #. type: verbatim
24849 #: ../src/guestfs-actions.pod:1371
24850 #, no-wrap
24851 msgid ""
24852 " int64_t\n"
24853 " guestfs_du (guestfs_h *g,\n"
24854 "             const char *path);\n"
24855 "\n"
24856 msgstr ""
24857
24858 #. type: =head2
24859 #: ../src/guestfs-actions.pod:1394
24860 msgid "guestfs_e2fsck_f"
24861 msgstr ""
24862
24863 #. type: verbatim
24864 #: ../src/guestfs-actions.pod:1396
24865 #, no-wrap
24866 msgid ""
24867 " int\n"
24868 " guestfs_e2fsck_f (guestfs_h *g,\n"
24869 "                   const char *device);\n"
24870 "\n"
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../src/guestfs-actions.pod:1404
24875 msgid ""
24876 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24877 "Normally you should use C<guestfs_fsck>."
24878 msgstr ""
24879
24880 #. type: textblock
24881 #: ../src/guestfs-actions.pod:1409
24882 msgid "(Added in 1.0.29)"
24883 msgstr ""
24884
24885 #. type: =head2
24886 #: ../src/guestfs-actions.pod:1411
24887 msgid "guestfs_echo_daemon"
24888 msgstr ""
24889
24890 #. type: verbatim
24891 #: ../src/guestfs-actions.pod:1413
24892 #, no-wrap
24893 msgid ""
24894 " char *\n"
24895 " guestfs_echo_daemon (guestfs_h *g,\n"
24896 "                      char *const *words);\n"
24897 "\n"
24898 msgstr ""
24899
24900 #. type: textblock
24901 #: ../src/guestfs-actions.pod:1422
24902 msgid "See also C<guestfs_ping_daemon>."
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24907 #: ../src/guestfs-actions.pod:6453
24908 msgid "(Added in 1.0.69)"
24909 msgstr ""
24910
24911 #. type: =head2
24912 #: ../src/guestfs-actions.pod:1429
24913 msgid "guestfs_egrep"
24914 msgstr ""
24915
24916 #. type: verbatim
24917 #: ../src/guestfs-actions.pod:1431
24918 #, no-wrap
24919 msgid ""
24920 " char **\n"
24921 " guestfs_egrep (guestfs_h *g,\n"
24922 "                const char *regex,\n"
24923 "                const char *path);\n"
24924 "\n"
24925 msgstr ""
24926
24927 #. type: textblock
24928 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24929 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24930 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24931 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
24932 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
24933 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
24934 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
24935 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
24936 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
24937 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
24938 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
24939 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
24940 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
24941 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
24942 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
24943 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
24944 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
24945 msgid "(Added in 1.0.66)"
24946 msgstr ""
24947
24948 #. type: =head2
24949 #: ../src/guestfs-actions.pod:1448
24950 msgid "guestfs_egrepi"
24951 msgstr ""
24952
24953 #. type: verbatim
24954 #: ../src/guestfs-actions.pod:1450
24955 #, no-wrap
24956 msgid ""
24957 " char **\n"
24958 " guestfs_egrepi (guestfs_h *g,\n"
24959 "                 const char *regex,\n"
24960 "                 const char *path);\n"
24961 "\n"
24962 msgstr ""
24963
24964 #. type: =head2
24965 #: ../src/guestfs-actions.pod:1467
24966 msgid "guestfs_equal"
24967 msgstr ""
24968
24969 #. type: verbatim
24970 #: ../src/guestfs-actions.pod:1469
24971 #, no-wrap
24972 msgid ""
24973 " int\n"
24974 " guestfs_equal (guestfs_h *g,\n"
24975 "                const char *file1,\n"
24976 "                const char *file2);\n"
24977 "\n"
24978 msgstr ""
24979
24980 #. type: =head2
24981 #: ../src/guestfs-actions.pod:1483
24982 msgid "guestfs_exists"
24983 msgstr ""
24984
24985 #. type: verbatim
24986 #: ../src/guestfs-actions.pod:1485
24987 #, no-wrap
24988 msgid ""
24989 " int\n"
24990 " guestfs_exists (guestfs_h *g,\n"
24991 "                 const char *path);\n"
24992 "\n"
24993 msgstr ""
24994
24995 #. type: textblock
24996 #: ../src/guestfs-actions.pod:1492
24997 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24998 msgstr ""
24999
25000 #. type: =head2
25001 #: ../src/guestfs-actions.pod:1498
25002 msgid "guestfs_fallocate"
25003 msgstr ""
25004
25005 #. type: verbatim
25006 #: ../src/guestfs-actions.pod:1500
25007 #, no-wrap
25008 msgid ""
25009 " int\n"
25010 " guestfs_fallocate (guestfs_h *g,\n"
25011 "                    const char *path,\n"
25012 "                    int len);\n"
25013 "\n"
25014 msgstr ""
25015
25016 #. type: textblock
25017 #: ../src/guestfs-actions.pod:1505
25018 msgid ""
25019 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25020 "call instead."
25021 msgstr ""
25022
25023 #. type: =head2
25024 #: ../src/guestfs-actions.pod:1524
25025 msgid "guestfs_fallocate64"
25026 msgstr ""
25027
25028 #. type: verbatim
25029 #: ../src/guestfs-actions.pod:1526
25030 #, no-wrap
25031 msgid ""
25032 " int\n"
25033 " guestfs_fallocate64 (guestfs_h *g,\n"
25034 "                      const char *path,\n"
25035 "                      int64_t len);\n"
25036 "\n"
25037 msgstr ""
25038
25039 #. type: textblock
25040 #: ../src/guestfs-actions.pod:1535
25041 msgid ""
25042 "Note that this call allocates disk blocks for the file.  To create a sparse "
25043 "file use C<guestfs_truncate_size> instead."
25044 msgstr ""
25045
25046 #. type: textblock
25047 #: ../src/guestfs-actions.pod:1538
25048 msgid ""
25049 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25050 "oversight it only allowed 30 bit lengths to be specified, effectively "
25051 "limiting the maximum size of files created through that call to 1GB."
25052 msgstr ""
25053
25054 #. type: textblock
25055 #: ../src/guestfs-actions.pod:1549
25056 msgid "(Added in 1.3.17)"
25057 msgstr ""
25058
25059 #. type: =head2
25060 #: ../src/guestfs-actions.pod:1551
25061 msgid "guestfs_fgrep"
25062 msgstr ""
25063
25064 #. type: verbatim
25065 #: ../src/guestfs-actions.pod:1553
25066 #, no-wrap
25067 msgid ""
25068 " char **\n"
25069 " guestfs_fgrep (guestfs_h *g,\n"
25070 "                const char *pattern,\n"
25071 "                const char *path);\n"
25072 "\n"
25073 msgstr ""
25074
25075 #. type: =head2
25076 #: ../src/guestfs-actions.pod:1570
25077 msgid "guestfs_fgrepi"
25078 msgstr ""
25079
25080 #. type: verbatim
25081 #: ../src/guestfs-actions.pod:1572
25082 #, no-wrap
25083 msgid ""
25084 " char **\n"
25085 " guestfs_fgrepi (guestfs_h *g,\n"
25086 "                 const char *pattern,\n"
25087 "                 const char *path);\n"
25088 "\n"
25089 msgstr ""
25090
25091 #. type: =head2
25092 #: ../src/guestfs-actions.pod:1589
25093 msgid "guestfs_file"
25094 msgstr ""
25095
25096 #. type: verbatim
25097 #: ../src/guestfs-actions.pod:1591
25098 #, no-wrap
25099 msgid ""
25100 " char *\n"
25101 " guestfs_file (guestfs_h *g,\n"
25102 "               const char *path);\n"
25103 "\n"
25104 msgstr ""
25105
25106 #. type: textblock
25107 #: ../src/guestfs-actions.pod:1609
25108 msgid ""
25109 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25110 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25111 msgstr ""
25112
25113 #. type: =head2
25114 #: ../src/guestfs-actions.pod:1617
25115 msgid "guestfs_file_architecture"
25116 msgstr ""
25117
25118 #. type: verbatim
25119 #: ../src/guestfs-actions.pod:1619
25120 #, no-wrap
25121 msgid ""
25122 " char *\n"
25123 " guestfs_file_architecture (guestfs_h *g,\n"
25124 "                            const char *filename);\n"
25125 "\n"
25126 msgstr ""
25127
25128 #. type: textblock
25129 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25130 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
25131 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
25132 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
25133 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
25134 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
25135 #: ../src/guestfs-actions.pod:3546
25136 msgid "(Added in 1.5.3)"
25137 msgstr ""
25138
25139 #. type: =head2
25140 #: ../src/guestfs-actions.pod:1729
25141 msgid "guestfs_filesize"
25142 msgstr ""
25143
25144 #. type: verbatim
25145 #: ../src/guestfs-actions.pod:1731
25146 #, no-wrap
25147 msgid ""
25148 " int64_t\n"
25149 " guestfs_filesize (guestfs_h *g,\n"
25150 "                   const char *file);\n"
25151 "\n"
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../src/guestfs-actions.pod:1737
25156 msgid ""
25157 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25158 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25159 "devices, use C<guestfs_blockdev_getsize64>."
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../src/guestfs-actions.pod:1743
25164 msgid "(Added in 1.0.82)"
25165 msgstr ""
25166
25167 #. type: =head2
25168 #: ../src/guestfs-actions.pod:1745
25169 msgid "guestfs_fill"
25170 msgstr ""
25171
25172 #. type: verbatim
25173 #: ../src/guestfs-actions.pod:1747
25174 #, no-wrap
25175 msgid ""
25176 " int\n"
25177 " guestfs_fill (guestfs_h *g,\n"
25178 "               int c,\n"
25179 "               int len,\n"
25180 "               const char *path);\n"
25181 "\n"
25182 msgstr ""
25183
25184 #. type: textblock
25185 #: ../src/guestfs-actions.pod:1757
25186 msgid ""
25187 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25188 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25189 "bytes use C<guestfs_fill_pattern>."
25190 msgstr ""
25191
25192 #. type: textblock
25193 #: ../src/guestfs-actions.pod:1769
25194 msgid "(Added in 1.0.79)"
25195 msgstr ""
25196
25197 #. type: =head2
25198 #: ../src/guestfs-actions.pod:1771
25199 msgid "guestfs_fill_pattern"
25200 msgstr ""
25201
25202 #. type: verbatim
25203 #: ../src/guestfs-actions.pod:1773
25204 #, no-wrap
25205 msgid ""
25206 " int\n"
25207 " guestfs_fill_pattern (guestfs_h *g,\n"
25208 "                       const char *pattern,\n"
25209 "                       int len,\n"
25210 "                       const char *path);\n"
25211 "\n"
25212 msgstr ""
25213
25214 #. type: textblock
25215 #: ../src/guestfs-actions.pod:1779
25216 msgid ""
25217 "This function is like C<guestfs_fill> except that it creates a new file of "
25218 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25219 "pattern is truncated if necessary to ensure the length of the file is "
25220 "exactly C<len> bytes."
25221 msgstr ""
25222
25223 #. type: textblock
25224 #: ../src/guestfs-actions.pod:1791
25225 msgid "(Added in 1.3.12)"
25226 msgstr ""
25227
25228 #. type: =head2
25229 #: ../src/guestfs-actions.pod:1793
25230 msgid "guestfs_find"
25231 msgstr ""
25232
25233 #. type: verbatim
25234 #: ../src/guestfs-actions.pod:1795
25235 #, no-wrap
25236 msgid ""
25237 " char **\n"
25238 " guestfs_find (guestfs_h *g,\n"
25239 "               const char *directory);\n"
25240 "\n"
25241 msgstr ""
25242
25243 #. type: textblock
25244 #: ../src/guestfs-actions.pod:1811
25245 msgid ""
25246 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25247 msgstr ""
25248
25249 #. type: textblock
25250 #: ../src/guestfs-actions.pod:1824
25251 msgid "See also C<guestfs_find0>."
25252 msgstr ""
25253
25254 #. type: textblock
25255 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
25256 #: ../src/guestfs-actions.pod:6014
25257 msgid "(Added in 1.0.27)"
25258 msgstr ""
25259
25260 #. type: =head2
25261 #: ../src/guestfs-actions.pod:1835
25262 msgid "guestfs_find0"
25263 msgstr ""
25264
25265 #. type: verbatim
25266 #: ../src/guestfs-actions.pod:1837
25267 #, no-wrap
25268 msgid ""
25269 " int\n"
25270 " guestfs_find0 (guestfs_h *g,\n"
25271 "                const char *directory,\n"
25272 "                const char *files);\n"
25273 "\n"
25274 msgstr ""
25275
25276 #. type: textblock
25277 #: ../src/guestfs-actions.pod:1846
25278 msgid ""
25279 "This command works the same way as C<guestfs_find> with the following "
25280 "exceptions:"
25281 msgstr ""
25282
25283 #. type: textblock
25284 #: ../src/guestfs-actions.pod:1873
25285 msgid "(Added in 1.0.74)"
25286 msgstr ""
25287
25288 #. type: =head2
25289 #: ../src/guestfs-actions.pod:1875
25290 msgid "guestfs_findfs_label"
25291 msgstr ""
25292
25293 #. type: verbatim
25294 #: ../src/guestfs-actions.pod:1877
25295 #, no-wrap
25296 msgid ""
25297 " char *\n"
25298 " guestfs_findfs_label (guestfs_h *g,\n"
25299 "                       const char *label);\n"
25300 "\n"
25301 msgstr ""
25302
25303 #. type: textblock
25304 #: ../src/guestfs-actions.pod:1885
25305 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25306 msgstr ""
25307
25308 #. type: =head2
25309 #: ../src/guestfs-actions.pod:1892
25310 msgid "guestfs_findfs_uuid"
25311 msgstr ""
25312
25313 #. type: verbatim
25314 #: ../src/guestfs-actions.pod:1894
25315 #, no-wrap
25316 msgid ""
25317 " char *\n"
25318 " guestfs_findfs_uuid (guestfs_h *g,\n"
25319 "                      const char *uuid);\n"
25320 "\n"
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../src/guestfs-actions.pod:1902
25325 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25326 msgstr ""
25327
25328 #. type: =head2
25329 #: ../src/guestfs-actions.pod:1909
25330 msgid "guestfs_fsck"
25331 msgstr ""
25332
25333 #. type: verbatim
25334 #: ../src/guestfs-actions.pod:1911
25335 #, no-wrap
25336 msgid ""
25337 " int\n"
25338 " guestfs_fsck (guestfs_h *g,\n"
25339 "               const char *fstype,\n"
25340 "               const char *device);\n"
25341 "\n"
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
25346 msgid "(Added in 1.0.16)"
25347 msgstr ""
25348
25349 #. type: =head2
25350 #: ../src/guestfs-actions.pod:1948
25351 msgid "guestfs_get_append"
25352 msgstr ""
25353
25354 #. type: verbatim
25355 #: ../src/guestfs-actions.pod:1950
25356 #, no-wrap
25357 msgid ""
25358 " const char *\n"
25359 " guestfs_get_append (guestfs_h *g);\n"
25360 "\n"
25361 msgstr ""
25362
25363 #. type: textblock
25364 #: ../src/guestfs-actions.pod:1958
25365 msgid ""
25366 "This function returns a string which may be NULL.  There is no way to return "
25367 "an error from this function.  The string is owned by the guest handle and "
25368 "must I<not> be freed."
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
25373 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
25374 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
25375 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
25376 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
25377 msgid "(Added in 1.0.26)"
25378 msgstr ""
25379
25380 #. type: =head2
25381 #: ../src/guestfs-actions.pod:1964
25382 msgid "guestfs_get_attach_method"
25383 msgstr ""
25384
25385 #. type: verbatim
25386 #: ../src/guestfs-actions.pod:1966
25387 #, no-wrap
25388 msgid ""
25389 " char *\n"
25390 " guestfs_get_attach_method (guestfs_h *g);\n"
25391 "\n"
25392 msgstr ""
25393
25394 #. type: textblock
25395 #: ../src/guestfs-actions.pod:1969
25396 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25397 msgstr ""
25398
25399 #. type: textblock
25400 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
25401 msgid "(Added in 1.9.8)"
25402 msgstr ""
25403
25404 #. type: =head2
25405 #: ../src/guestfs-actions.pod:1976
25406 msgid "guestfs_get_autosync"
25407 msgstr ""
25408
25409 #. type: verbatim
25410 #: ../src/guestfs-actions.pod:1978
25411 #, no-wrap
25412 msgid ""
25413 " int\n"
25414 " guestfs_get_autosync (guestfs_h *g);\n"
25415 "\n"
25416 msgstr ""
25417
25418 #. type: =head2
25419 #: ../src/guestfs-actions.pod:1987
25420 msgid "guestfs_get_direct"
25421 msgstr ""
25422
25423 #. type: verbatim
25424 #: ../src/guestfs-actions.pod:1989
25425 #, no-wrap
25426 msgid ""
25427 " int\n"
25428 " guestfs_get_direct (guestfs_h *g);\n"
25429 "\n"
25430 msgstr ""
25431
25432 #. type: textblock
25433 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
25434 msgid "(Added in 1.0.72)"
25435 msgstr ""
25436
25437 #. type: =head2
25438 #: ../src/guestfs-actions.pod:1998
25439 msgid "guestfs_get_e2label"
25440 msgstr ""
25441
25442 #. type: verbatim
25443 #: ../src/guestfs-actions.pod:2000
25444 #, no-wrap
25445 msgid ""
25446 " char *\n"
25447 " guestfs_get_e2label (guestfs_h *g,\n"
25448 "                      const char *device);\n"
25449 "\n"
25450 msgstr ""
25451
25452 #. type: textblock
25453 #: ../src/guestfs-actions.pod:2004
25454 msgid ""
25455 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25456 "call instead."
25457 msgstr ""
25458
25459 #. type: textblock
25460 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25461 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
25462 msgid "(Added in 1.0.15)"
25463 msgstr ""
25464
25465 #. type: =head2
25466 #: ../src/guestfs-actions.pod:2019
25467 msgid "guestfs_get_e2uuid"
25468 msgstr ""
25469
25470 #. type: verbatim
25471 #: ../src/guestfs-actions.pod:2021
25472 #, no-wrap
25473 msgid ""
25474 " char *\n"
25475 " guestfs_get_e2uuid (guestfs_h *g,\n"
25476 "                     const char *device);\n"
25477 "\n"
25478 msgstr ""
25479
25480 #. type: textblock
25481 #: ../src/guestfs-actions.pod:2025
25482 msgid ""
25483 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25484 "call instead."
25485 msgstr ""
25486
25487 #. type: =head2
25488 #: ../src/guestfs-actions.pod:2040
25489 msgid "guestfs_get_memsize"
25490 msgstr ""
25491
25492 #. type: verbatim
25493 #: ../src/guestfs-actions.pod:2042
25494 #, no-wrap
25495 msgid ""
25496 " int\n"
25497 " guestfs_get_memsize (guestfs_h *g);\n"
25498 "\n"
25499 msgstr ""
25500
25501 #. type: textblock
25502 #: ../src/guestfs-actions.pod:2048
25503 msgid ""
25504 "If C<guestfs_set_memsize> was not called on this handle, and if "
25505 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25506 "value for memsize."
25507 msgstr ""
25508
25509 #. type: textblock
25510 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
25511 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
25512 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
25513 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
25514 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
25515 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
25516 msgid "(Added in 1.0.55)"
25517 msgstr ""
25518
25519 #. type: =head2
25520 #: ../src/guestfs-actions.pod:2059
25521 msgid "guestfs_get_network"
25522 msgstr ""
25523
25524 #. type: verbatim
25525 #: ../src/guestfs-actions.pod:2061
25526 #, no-wrap
25527 msgid ""
25528 " int\n"
25529 " guestfs_get_network (guestfs_h *g);\n"
25530 "\n"
25531 msgstr ""
25532
25533 #. type: textblock
25534 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
25535 msgid "(Added in 1.5.4)"
25536 msgstr ""
25537
25538 #. type: =head2
25539 #: ../src/guestfs-actions.pod:2070
25540 msgid "guestfs_get_path"
25541 msgstr ""
25542
25543 #. type: verbatim
25544 #: ../src/guestfs-actions.pod:2072
25545 #, no-wrap
25546 msgid ""
25547 " const char *\n"
25548 " guestfs_get_path (guestfs_h *g);\n"
25549 "\n"
25550 msgstr ""
25551
25552 #. type: textblock
25553 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25554 msgid ""
25555 "This function returns a string, or NULL on error.  The string is owned by "
25556 "the guest handle and must I<not> be freed."
25557 msgstr ""
25558
25559 #. type: =head2
25560 #: ../src/guestfs-actions.pod:2085
25561 msgid "guestfs_get_pgroup"
25562 msgstr ""
25563
25564 #. type: verbatim
25565 #: ../src/guestfs-actions.pod:2087
25566 #, no-wrap
25567 msgid ""
25568 " int\n"
25569 " guestfs_get_pgroup (guestfs_h *g);\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: textblock
25574 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
25575 #: ../src/guestfs-actions.pod:7690
25576 #, fuzzy
25577 #| msgid "(Added in 1.5.1)"
25578 msgid "(Added in 1.11.18)"
25579 msgstr "(Додано у 1.5.1)"
25580
25581 #. type: =head2
25582 #: ../src/guestfs-actions.pod:2096
25583 msgid "guestfs_get_pid"
25584 msgstr ""
25585
25586 #. type: verbatim
25587 #: ../src/guestfs-actions.pod:2098
25588 #, no-wrap
25589 msgid ""
25590 " int\n"
25591 " guestfs_get_pid (guestfs_h *g);\n"
25592 "\n"
25593 msgstr ""
25594
25595 #. type: textblock
25596 #: ../src/guestfs-actions.pod:2108
25597 msgid "(Added in 1.0.56)"
25598 msgstr ""
25599
25600 #. type: =head2
25601 #: ../src/guestfs-actions.pod:2110
25602 msgid "guestfs_get_qemu"
25603 msgstr ""
25604
25605 #. type: verbatim
25606 #: ../src/guestfs-actions.pod:2112
25607 #, no-wrap
25608 msgid ""
25609 " const char *\n"
25610 " guestfs_get_qemu (guestfs_h *g);\n"
25611 "\n"
25612 msgstr ""
25613
25614 #. type: textblock
25615 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
25616 msgid "(Added in 1.0.6)"
25617 msgstr ""
25618
25619 #. type: =head2
25620 #: ../src/guestfs-actions.pod:2125
25621 msgid "guestfs_get_recovery_proc"
25622 msgstr ""
25623
25624 #. type: verbatim
25625 #: ../src/guestfs-actions.pod:2127
25626 #, no-wrap
25627 msgid ""
25628 " int\n"
25629 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25630 "\n"
25631 msgstr ""
25632
25633 #. type: textblock
25634 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
25635 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
25636 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
25637 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
25638 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
25639 #: ../src/guestfs-actions.pod:7313
25640 msgid "(Added in 1.0.77)"
25641 msgstr ""
25642
25643 #. type: =head2
25644 #: ../src/guestfs-actions.pod:2136
25645 msgid "guestfs_get_selinux"
25646 msgstr ""
25647
25648 #. type: verbatim
25649 #: ../src/guestfs-actions.pod:2138
25650 #, no-wrap
25651 msgid ""
25652 " int\n"
25653 " guestfs_get_selinux (guestfs_h *g);\n"
25654 "\n"
25655 msgstr ""
25656
25657 #. type: textblock
25658 #: ../src/guestfs-actions.pod:2141
25659 msgid ""
25660 "This returns the current setting of the selinux flag which is passed to the "
25661 "appliance at boot time.  See C<guestfs_set_selinux>."
25662 msgstr ""
25663
25664 #. type: textblock
25665 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25666 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
25667 msgid "(Added in 1.0.67)"
25668 msgstr ""
25669
25670 #. type: =head2
25671 #: ../src/guestfs-actions.pod:2151
25672 msgid "guestfs_get_state"
25673 msgstr ""
25674
25675 #. type: verbatim
25676 #: ../src/guestfs-actions.pod:2153
25677 #, no-wrap
25678 msgid ""
25679 " int\n"
25680 " guestfs_get_state (guestfs_h *g);\n"
25681 "\n"
25682 msgstr ""
25683
25684 #. type: =head2
25685 #: ../src/guestfs-actions.pod:2165
25686 msgid "guestfs_get_trace"
25687 msgstr ""
25688
25689 #. type: verbatim
25690 #: ../src/guestfs-actions.pod:2167
25691 #, no-wrap
25692 msgid ""
25693 " int\n"
25694 " guestfs_get_trace (guestfs_h *g);\n"
25695 "\n"
25696 msgstr ""
25697
25698 #. type: =head2
25699 #: ../src/guestfs-actions.pod:2176
25700 msgid "guestfs_get_umask"
25701 msgstr ""
25702
25703 #. type: verbatim
25704 #: ../src/guestfs-actions.pod:2178
25705 #, no-wrap
25706 msgid ""
25707 " int\n"
25708 " guestfs_get_umask (guestfs_h *g);\n"
25709 "\n"
25710 msgstr ""
25711
25712 #. type: textblock
25713 #: ../src/guestfs-actions.pod:2181
25714 msgid ""
25715 "Return the current umask.  By default the umask is C<022> unless it has been "
25716 "set by calling C<guestfs_umask>."
25717 msgstr ""
25718
25719 #. type: =head2
25720 #: ../src/guestfs-actions.pod:2188
25721 msgid "guestfs_get_verbose"
25722 msgstr ""
25723
25724 #. type: verbatim
25725 #: ../src/guestfs-actions.pod:2190
25726 #, no-wrap
25727 msgid ""
25728 " int\n"
25729 " guestfs_get_verbose (guestfs_h *g);\n"
25730 "\n"
25731 msgstr ""
25732
25733 #. type: =head2
25734 #: ../src/guestfs-actions.pod:2199
25735 msgid "guestfs_getcon"
25736 msgstr ""
25737
25738 #. type: verbatim
25739 #: ../src/guestfs-actions.pod:2201
25740 #, no-wrap
25741 msgid ""
25742 " char *\n"
25743 " guestfs_getcon (guestfs_h *g);\n"
25744 "\n"
25745 msgstr ""
25746
25747 #. type: textblock
25748 #: ../src/guestfs-actions.pod:2206
25749 msgid ""
25750 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25751 msgstr ""
25752
25753 #. type: =head2
25754 #: ../src/guestfs-actions.pod:2214
25755 msgid "guestfs_getxattr"
25756 msgstr ""
25757
25758 #. type: verbatim
25759 #: ../src/guestfs-actions.pod:2216
25760 #, no-wrap
25761 msgid ""
25762 " char *\n"
25763 " guestfs_getxattr (guestfs_h *g,\n"
25764 "                   const char *path,\n"
25765 "                   const char *name,\n"
25766 "                   size_t *size_r);\n"
25767 "\n"
25768 msgstr ""
25769
25770 #. type: textblock
25771 #: ../src/guestfs-actions.pod:2222
25772 msgid ""
25773 "Get a single extended attribute from file C<path> named C<name>.  This call "
25774 "follows symlinks.  If you want to lookup an extended attribute for the "
25775 "symlink itself, use C<guestfs_lgetxattr>."
25776 msgstr ""
25777
25778 #. type: textblock
25779 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
25780 msgid ""
25781 "Normally it is better to get all extended attributes from a file in one go "
25782 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25783 "implementations are buggy and do not provide a way to list out attributes.  "
25784 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25785 "extended attributes you want in advance and call this function."
25786 msgstr ""
25787
25788 #. type: textblock
25789 #: ../src/guestfs-actions.pod:2236
25790 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25791 msgstr ""
25792
25793 #. type: textblock
25794 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
25795 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
25796 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
25797 #: ../src/guestfs-actions.pod:5822
25798 msgid ""
25799 "This function returns a buffer, or NULL on error.  The size of the returned "
25800 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25801 "after use>."
25802 msgstr ""
25803
25804 #. type: textblock
25805 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
25806 msgid "(Added in 1.7.24)"
25807 msgstr ""
25808
25809 #. type: =head2
25810 #: ../src/guestfs-actions.pod:2244
25811 msgid "guestfs_getxattrs"
25812 msgstr ""
25813
25814 #. type: verbatim
25815 #: ../src/guestfs-actions.pod:2246
25816 #, no-wrap
25817 msgid ""
25818 " struct guestfs_xattr_list *\n"
25819 " guestfs_getxattrs (guestfs_h *g,\n"
25820 "                    const char *path);\n"
25821 "\n"
25822 msgstr ""
25823
25824 #. type: textblock
25825 #: ../src/guestfs-actions.pod:2256
25826 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25827 msgstr ""
25828
25829 #. type: textblock
25830 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
25831 #: ../src/guestfs-actions.pod:4398
25832 msgid ""
25833 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25834 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25835 msgstr ""
25836
25837 #. type: textblock
25838 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
25839 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
25840 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
25841 #: ../src/guestfs-actions.pod:7901
25842 msgid "(Added in 1.0.59)"
25843 msgstr ""
25844
25845 #. type: =head2
25846 #: ../src/guestfs-actions.pod:2264
25847 msgid "guestfs_glob_expand"
25848 msgstr ""
25849
25850 #. type: verbatim
25851 #: ../src/guestfs-actions.pod:2266
25852 #, no-wrap
25853 msgid ""
25854 " char **\n"
25855 " guestfs_glob_expand (guestfs_h *g,\n"
25856 "                      const char *pattern);\n"
25857 "\n"
25858 msgstr ""
25859
25860 #. type: textblock
25861 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
25862 #: ../src/guestfs-actions.pod:6716
25863 msgid "(Added in 1.0.50)"
25864 msgstr ""
25865
25866 #. type: =head2
25867 #: ../src/guestfs-actions.pod:2287
25868 msgid "guestfs_grep"
25869 msgstr ""
25870
25871 #. type: verbatim
25872 #: ../src/guestfs-actions.pod:2289
25873 #, no-wrap
25874 msgid ""
25875 " char **\n"
25876 " guestfs_grep (guestfs_h *g,\n"
25877 "               const char *regex,\n"
25878 "               const char *path);\n"
25879 "\n"
25880 msgstr ""
25881
25882 #. type: =head2
25883 #: ../src/guestfs-actions.pod:2306
25884 msgid "guestfs_grepi"
25885 msgstr ""
25886
25887 #. type: verbatim
25888 #: ../src/guestfs-actions.pod:2308
25889 #, no-wrap
25890 msgid ""
25891 " char **\n"
25892 " guestfs_grepi (guestfs_h *g,\n"
25893 "                const char *regex,\n"
25894 "                const char *path);\n"
25895 "\n"
25896 msgstr ""
25897
25898 #. type: =head2
25899 #: ../src/guestfs-actions.pod:2325
25900 msgid "guestfs_grub_install"
25901 msgstr ""
25902
25903 #. type: verbatim
25904 #: ../src/guestfs-actions.pod:2327
25905 #, no-wrap
25906 msgid ""
25907 " int\n"
25908 " guestfs_grub_install (guestfs_h *g,\n"
25909 "                       const char *root,\n"
25910 "                       const char *device);\n"
25911 "\n"
25912 msgstr ""
25913
25914 #. type: textblock
25915 #: ../src/guestfs-actions.pod:2348
25916 msgid "(Added in 1.0.17)"
25917 msgstr ""
25918
25919 #. type: =head2
25920 #: ../src/guestfs-actions.pod:2350
25921 msgid "guestfs_head"
25922 msgstr ""
25923
25924 #. type: verbatim
25925 #: ../src/guestfs-actions.pod:2352
25926 #, no-wrap
25927 msgid ""
25928 " char **\n"
25929 " guestfs_head (guestfs_h *g,\n"
25930 "               const char *path);\n"
25931 "\n"
25932 msgstr ""
25933
25934 #. type: =head2
25935 #: ../src/guestfs-actions.pod:2368
25936 msgid "guestfs_head_n"
25937 msgstr ""
25938
25939 #. type: verbatim
25940 #: ../src/guestfs-actions.pod:2370
25941 #, no-wrap
25942 msgid ""
25943 " char **\n"
25944 " guestfs_head_n (guestfs_h *g,\n"
25945 "                 int nrlines,\n"
25946 "                 const char *path);\n"
25947 "\n"
25948 msgstr ""
25949
25950 #. type: =head2
25951 #: ../src/guestfs-actions.pod:2392
25952 msgid "guestfs_hexdump"
25953 msgstr ""
25954
25955 #. type: verbatim
25956 #: ../src/guestfs-actions.pod:2394
25957 #, no-wrap
25958 msgid ""
25959 " char *\n"
25960 " guestfs_hexdump (guestfs_h *g,\n"
25961 "                  const char *path);\n"
25962 "\n"
25963 msgstr ""
25964
25965 #. type: textblock
25966 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
25967 #: ../src/guestfs-actions.pod:6835
25968 msgid "(Added in 1.0.22)"
25969 msgstr ""
25970
25971 #. type: =head2
25972 #: ../src/guestfs-actions.pod:2409
25973 msgid "guestfs_initrd_cat"
25974 msgstr ""
25975
25976 #. type: verbatim
25977 #: ../src/guestfs-actions.pod:2411
25978 #, no-wrap
25979 msgid ""
25980 " char *\n"
25981 " guestfs_initrd_cat (guestfs_h *g,\n"
25982 "                     const char *initrdpath,\n"
25983 "                     const char *filename,\n"
25984 "                     size_t *size_r);\n"
25985 "\n"
25986 msgstr ""
25987
25988 #. type: textblock
25989 #: ../src/guestfs-actions.pod:2427
25990 msgid "See also C<guestfs_initrd_list>."
25991 msgstr ""
25992
25993 #. type: =head2
25994 #: ../src/guestfs-actions.pod:2438
25995 msgid "guestfs_initrd_list"
25996 msgstr ""
25997
25998 #. type: verbatim
25999 #: ../src/guestfs-actions.pod:2440
26000 #, no-wrap
26001 msgid ""
26002 " char **\n"
26003 " guestfs_initrd_list (guestfs_h *g,\n"
26004 "                      const char *path);\n"
26005 "\n"
26006 msgstr ""
26007
26008 #. type: =head2
26009 #: ../src/guestfs-actions.pod:2460
26010 msgid "guestfs_inotify_add_watch"
26011 msgstr ""
26012
26013 #. type: verbatim
26014 #: ../src/guestfs-actions.pod:2462
26015 #, no-wrap
26016 msgid ""
26017 " int64_t\n"
26018 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26019 "                            const char *path,\n"
26020 "                            int mask);\n"
26021 "\n"
26022 msgstr ""
26023
26024 #. type: =head2
26025 #: ../src/guestfs-actions.pod:2481
26026 msgid "guestfs_inotify_close"
26027 msgstr ""
26028
26029 #. type: verbatim
26030 #: ../src/guestfs-actions.pod:2483
26031 #, no-wrap
26032 msgid ""
26033 " int\n"
26034 " guestfs_inotify_close (guestfs_h *g);\n"
26035 "\n"
26036 msgstr ""
26037
26038 #. type: =head2
26039 #: ../src/guestfs-actions.pod:2494
26040 msgid "guestfs_inotify_files"
26041 msgstr ""
26042
26043 #. type: verbatim
26044 #: ../src/guestfs-actions.pod:2496
26045 #, no-wrap
26046 msgid ""
26047 " char **\n"
26048 " guestfs_inotify_files (guestfs_h *g);\n"
26049 "\n"
26050 msgstr ""
26051
26052 #. type: textblock
26053 #: ../src/guestfs-actions.pod:2499
26054 msgid ""
26055 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26056 "returns a list of pathnames of objects that were touched.  The returned "
26057 "pathnames are sorted and deduplicated."
26058 msgstr ""
26059
26060 #. type: =head2
26061 #: ../src/guestfs-actions.pod:2509
26062 msgid "guestfs_inotify_init"
26063 msgstr ""
26064
26065 #. type: verbatim
26066 #: ../src/guestfs-actions.pod:2511
26067 #, no-wrap
26068 msgid ""
26069 " int\n"
26070 " guestfs_inotify_init (guestfs_h *g,\n"
26071 "                       int maxevents);\n"
26072 "\n"
26073 msgstr ""
26074
26075 #. type: textblock
26076 #: ../src/guestfs-actions.pod:2519
26077 msgid ""
26078 "C<maxevents> is the maximum number of events which will be queued up between "
26079 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26080 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26081 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26082 "throws away events, but records the fact that it threw them away by setting "
26083 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26084 "C<guestfs_inotify_read>)."
26085 msgstr ""
26086
26087 #. type: textblock
26088 #: ../src/guestfs-actions.pod:2529
26089 msgid ""
26090 "Before any events are generated, you have to add some watches to the "
26091 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26092 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../src/guestfs-actions.pod:2535
26097 msgid ""
26098 "Queued up events should be read periodically by calling "
26099 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26100 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26101 "often enough then you risk the internal queue overflowing."
26102 msgstr ""
26103
26104 #. type: textblock
26105 #: ../src/guestfs-actions.pod:2542
26106 msgid ""
26107 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26108 "This also removes any watches automatically."
26109 msgstr ""
26110
26111 #. type: =head2
26112 #: ../src/guestfs-actions.pod:2555
26113 msgid "guestfs_inotify_read"
26114 msgstr ""
26115
26116 #. type: verbatim
26117 #: ../src/guestfs-actions.pod:2557
26118 #, no-wrap
26119 msgid ""
26120 " struct guestfs_inotify_event_list *\n"
26121 " guestfs_inotify_read (guestfs_h *g);\n"
26122 "\n"
26123 msgstr ""
26124
26125 #. type: textblock
26126 #: ../src/guestfs-actions.pod:2571
26127 msgid ""
26128 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26129 "there was an error.  I<The caller must call "
26130 "C<guestfs_free_inotify_event_list> after use>."
26131 msgstr ""
26132
26133 #. type: =head2
26134 #: ../src/guestfs-actions.pod:2577
26135 msgid "guestfs_inotify_rm_watch"
26136 msgstr ""
26137
26138 #. type: verbatim
26139 #: ../src/guestfs-actions.pod:2579
26140 #, no-wrap
26141 msgid ""
26142 " int\n"
26143 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26144 "                           int wd);\n"
26145 "\n"
26146 msgstr ""
26147
26148 #. type: textblock
26149 #: ../src/guestfs-actions.pod:2583
26150 msgid ""
26151 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26152 msgstr ""
26153
26154 #. type: =head2
26155 #: ../src/guestfs-actions.pod:2590
26156 msgid "guestfs_inspect_get_arch"
26157 msgstr ""
26158
26159 #. type: verbatim
26160 #: ../src/guestfs-actions.pod:2592
26161 #, no-wrap
26162 msgid ""
26163 " char *\n"
26164 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26165 "                           const char *root);\n"
26166 "\n"
26167 msgstr ""
26168
26169 #. type: textblock
26170 #: ../src/guestfs-actions.pod:2596
26171 msgid ""
26172 "This returns the architecture of the inspected operating system.  The "
26173 "possible return values are listed under C<guestfs_file_architecture>."
26174 msgstr ""
26175
26176 #. type: =head2
26177 #: ../src/guestfs-actions.pod:2610
26178 msgid "guestfs_inspect_get_distro"
26179 msgstr ""
26180
26181 #. type: verbatim
26182 #: ../src/guestfs-actions.pod:2612
26183 #, no-wrap
26184 msgid ""
26185 " char *\n"
26186 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26187 "                             const char *root);\n"
26188 "\n"
26189 msgstr ""
26190
26191 #. type: =head2
26192 #: ../src/guestfs-actions.pod:2700
26193 msgid "guestfs_inspect_get_drive_mappings"
26194 msgstr ""
26195
26196 #. type: verbatim
26197 #: ../src/guestfs-actions.pod:2702
26198 #, no-wrap
26199 msgid ""
26200 " char **\n"
26201 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26202 "                                     const char *root);\n"
26203 "\n"
26204 msgstr ""
26205
26206 #. type: textblock
26207 #: ../src/guestfs-actions.pod:2731
26208 msgid ""
26209 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26210 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26211 msgstr ""
26212
26213 #. type: textblock
26214 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
26215 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
26216 #: ../src/guestfs-actions.pod:7137
26217 msgid ""
26218 "This function returns a NULL-terminated array of strings, or NULL if there "
26219 "was an error.  The array of strings will always have length C<2n+1>, where "
26220 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26221 "caller must free the strings and the array after use>."
26222 msgstr ""
26223
26224 #. type: textblock
26225 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
26226 msgid "(Added in 1.9.17)"
26227 msgstr ""
26228
26229 #. type: =head2
26230 #: ../src/guestfs-actions.pod:2743
26231 msgid "guestfs_inspect_get_filesystems"
26232 msgstr ""
26233
26234 #. type: verbatim
26235 #: ../src/guestfs-actions.pod:2745
26236 #, no-wrap
26237 msgid ""
26238 " char **\n"
26239 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26240 "                                  const char *root);\n"
26241 "\n"
26242 msgstr ""
26243
26244 #. type: textblock
26245 #: ../src/guestfs-actions.pod:2757
26246 msgid ""
26247 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26248 "C<guestfs_inspect_get_mountpoints>."
26249 msgstr ""
26250
26251 #. type: =head2
26252 #: ../src/guestfs-actions.pod:2766
26253 msgid "guestfs_inspect_get_format"
26254 msgstr ""
26255
26256 #. type: verbatim
26257 #: ../src/guestfs-actions.pod:2768
26258 #, no-wrap
26259 msgid ""
26260 " char *\n"
26261 " guestfs_inspect_get_format (guestfs_h *g,\n"
26262 "                             const char *root);\n"
26263 "\n"
26264 msgstr ""
26265
26266 #. type: textblock
26267 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
26268 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
26269 #: ../src/guestfs-actions.pod:6033
26270 msgid "(Added in 1.9.4)"
26271 msgstr ""
26272
26273 #. type: =head2
26274 #: ../src/guestfs-actions.pod:2804
26275 msgid "guestfs_inspect_get_hostname"
26276 msgstr ""
26277
26278 #. type: verbatim
26279 #: ../src/guestfs-actions.pod:2806
26280 #, no-wrap
26281 msgid ""
26282 " char *\n"
26283 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26284 "                               const char *root);\n"
26285 "\n"
26286 msgstr ""
26287
26288 #. type: textblock
26289 #: ../src/guestfs-actions.pod:2821
26290 msgid "(Added in 1.7.9)"
26291 msgstr ""
26292
26293 #. type: =head2
26294 #: ../src/guestfs-actions.pod:2823
26295 msgid "guestfs_inspect_get_icon"
26296 msgstr ""
26297
26298 #. type: verbatim
26299 #: ../src/guestfs-actions.pod:2825
26300 #, no-wrap
26301 msgid ""
26302 " char *\n"
26303 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26304 "                           const char *root,\n"
26305 "                           size_t *size_r,\n"
26306 "                           ...);\n"
26307 "\n"
26308 msgstr ""
26309
26310 #. type: verbatim
26311 #: ../src/guestfs-actions.pod:2836
26312 #, no-wrap
26313 msgid ""
26314 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26315 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26316 "\n"
26317 msgstr ""
26318
26319 #. type: textblock
26320 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
26321 #: ../src/guestfs-actions.pod:4982
26322 msgid "(Added in 1.11.12)"
26323 msgstr ""
26324
26325 #. type: =head2
26326 #: ../src/guestfs-actions.pod:2905
26327 msgid "guestfs_inspect_get_icon_va"
26328 msgstr ""
26329
26330 #. type: verbatim
26331 #: ../src/guestfs-actions.pod:2907
26332 #, no-wrap
26333 msgid ""
26334 " char *\n"
26335 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26336 "                              const char *root,\n"
26337 "                              size_t *size_r,\n"
26338 "                              va_list args);\n"
26339 "\n"
26340 msgstr ""
26341
26342 #. type: textblock
26343 #: ../src/guestfs-actions.pod:2913
26344 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:2917
26349 msgid "guestfs_inspect_get_icon_argv"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:2919
26354 #, no-wrap
26355 msgid ""
26356 " char *\n"
26357 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26358 "                                const char *root,\n"
26359 "                                size_t *size_r,\n"
26360 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26361 "\n"
26362 msgstr ""
26363
26364 #. type: textblock
26365 #: ../src/guestfs-actions.pod:2925
26366 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26367 msgstr ""
26368
26369 #. type: =head2
26370 #: ../src/guestfs-actions.pod:2929
26371 msgid "guestfs_inspect_get_major_version"
26372 msgstr ""
26373
26374 #. type: verbatim
26375 #: ../src/guestfs-actions.pod:2931
26376 #, no-wrap
26377 msgid ""
26378 " int\n"
26379 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26380 "                                    const char *root);\n"
26381 "\n"
26382 msgstr ""
26383
26384 #. type: =head2
26385 #: ../src/guestfs-actions.pod:2953
26386 msgid "guestfs_inspect_get_minor_version"
26387 msgstr ""
26388
26389 #. type: verbatim
26390 #: ../src/guestfs-actions.pod:2955
26391 #, no-wrap
26392 msgid ""
26393 " int\n"
26394 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26395 "                                    const char *root);\n"
26396 "\n"
26397 msgstr ""
26398
26399 #. type: textblock
26400 #: ../src/guestfs-actions.pod:2964
26401 msgid ""
26402 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26403 "C<guestfs_inspect_get_major_version>."
26404 msgstr ""
26405
26406 #. type: =head2
26407 #: ../src/guestfs-actions.pod:2971
26408 msgid "guestfs_inspect_get_mountpoints"
26409 msgstr ""
26410
26411 #. type: verbatim
26412 #: ../src/guestfs-actions.pod:2973
26413 #, no-wrap
26414 msgid ""
26415 " char **\n"
26416 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26417 "                                  const char *root);\n"
26418 "\n"
26419 msgstr ""
26420
26421 #. type: textblock
26422 #: ../src/guestfs-actions.pod:2994
26423 msgid ""
26424 "For operating systems like Windows which still use drive letters, this call "
26425 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26426 "information about the mapping of drive letters to partitions, see "
26427 "C<guestfs_inspect_get_drive_mappings>."
26428 msgstr ""
26429
26430 #. type: textblock
26431 #: ../src/guestfs-actions.pod:3000
26432 msgid ""
26433 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26434 "C<guestfs_inspect_get_filesystems>."
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:3011
26439 msgid "guestfs_inspect_get_package_format"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:3013
26444 #, no-wrap
26445 msgid ""
26446 " char *\n"
26447 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26448 "                                     const char *root);\n"
26449 "\n"
26450 msgstr ""
26451
26452 #. type: textblock
26453 #: ../src/guestfs-actions.pod:3017
26454 msgid ""
26455 "This function and C<guestfs_inspect_get_package_management> return the "
26456 "package format and package management tool used by the inspected operating "
26457 "system.  For example for Fedora these functions would return C<rpm> (package "
26458 "format) and C<yum> (package management)."
26459 msgstr ""
26460
26461 #. type: textblock
26462 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
26463 msgid "(Added in 1.7.5)"
26464 msgstr ""
26465
26466 #. type: =head2
26467 #: ../src/guestfs-actions.pod:3037
26468 msgid "guestfs_inspect_get_package_management"
26469 msgstr ""
26470
26471 #. type: verbatim
26472 #: ../src/guestfs-actions.pod:3039
26473 #, no-wrap
26474 msgid ""
26475 " char *\n"
26476 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26477 "                                         const char *root);\n"
26478 "\n"
26479 msgstr ""
26480
26481 #. type: textblock
26482 #: ../src/guestfs-actions.pod:3043
26483 msgid ""
26484 "C<guestfs_inspect_get_package_format> and this function return the package "
26485 "format and package management tool used by the inspected operating system.  "
26486 "For example for Fedora these functions would return C<rpm> (package format) "
26487 "and C<yum> (package management)."
26488 msgstr ""
26489
26490 #. type: =head2
26491 #: ../src/guestfs-actions.pod:3065
26492 msgid "guestfs_inspect_get_product_name"
26493 msgstr ""
26494
26495 #. type: verbatim
26496 #: ../src/guestfs-actions.pod:3067
26497 #, no-wrap
26498 msgid ""
26499 " char *\n"
26500 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26501 "                                   const char *root);\n"
26502 "\n"
26503 msgstr ""
26504
26505 #. type: =head2
26506 #: ../src/guestfs-actions.pod:3086
26507 msgid "guestfs_inspect_get_product_variant"
26508 msgstr ""
26509
26510 #. type: verbatim
26511 #: ../src/guestfs-actions.pod:3088
26512 #, no-wrap
26513 msgid ""
26514 " char *\n"
26515 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26516 "                                      const char *root);\n"
26517 "\n"
26518 msgstr ""
26519
26520 #. type: textblock
26521 #: ../src/guestfs-actions.pod:3111
26522 msgid ""
26523 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26524 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26525 msgstr ""
26526
26527 #. type: textblock
26528 #: ../src/guestfs-actions.pod:3118
26529 msgid "(Added in 1.9.13)"
26530 msgstr ""
26531
26532 #. type: =head2
26533 #: ../src/guestfs-actions.pod:3120
26534 msgid "guestfs_inspect_get_roots"
26535 msgstr ""
26536
26537 #. type: verbatim
26538 #: ../src/guestfs-actions.pod:3122
26539 #, no-wrap
26540 msgid ""
26541 " char **\n"
26542 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26543 "\n"
26544 msgstr ""
26545
26546 #. type: textblock
26547 #: ../src/guestfs-actions.pod:3125
26548 msgid ""
26549 "This function is a convenient way to get the list of root devices, as "
26550 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26551 "the whole inspection process."
26552 msgstr ""
26553
26554 #. type: textblock
26555 #: ../src/guestfs-actions.pod:3129
26556 msgid ""
26557 "This returns an empty list if either no root devices were found or the "
26558 "caller has not called C<guestfs_inspect_os>."
26559 msgstr ""
26560
26561 #. type: textblock
26562 #: ../src/guestfs-actions.pod:3138
26563 msgid "(Added in 1.7.3)"
26564 msgstr ""
26565
26566 #. type: =head2
26567 #: ../src/guestfs-actions.pod:3140
26568 msgid "guestfs_inspect_get_type"
26569 msgstr ""
26570
26571 #. type: verbatim
26572 #: ../src/guestfs-actions.pod:3142
26573 #, no-wrap
26574 msgid ""
26575 " char *\n"
26576 " guestfs_inspect_get_type (guestfs_h *g,\n"
26577 "                           const char *root);\n"
26578 "\n"
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../src/guestfs-actions.pod:3179
26583 msgid "guestfs_inspect_get_windows_current_control_set"
26584 msgstr ""
26585
26586 #. type: verbatim
26587 #: ../src/guestfs-actions.pod:3181
26588 #, no-wrap
26589 msgid ""
26590 " char *\n"
26591 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26592 "                                                  const char *root);\n"
26593 "\n"
26594 msgstr ""
26595
26596 #. type: =head2
26597 #: ../src/guestfs-actions.pod:3199
26598 msgid "guestfs_inspect_get_windows_systemroot"
26599 msgstr ""
26600
26601 #. type: verbatim
26602 #: ../src/guestfs-actions.pod:3201
26603 #, no-wrap
26604 msgid ""
26605 " char *\n"
26606 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26607 "                                         const char *root);\n"
26608 "\n"
26609 msgstr ""
26610
26611 #. type: textblock
26612 #: ../src/guestfs-actions.pod:3217
26613 msgid "(Added in 1.5.25)"
26614 msgstr ""
26615
26616 #. type: =head2
26617 #: ../src/guestfs-actions.pod:3219
26618 msgid "guestfs_inspect_is_live"
26619 msgstr ""
26620
26621 #. type: verbatim
26622 #: ../src/guestfs-actions.pod:3221
26623 #, no-wrap
26624 msgid ""
26625 " int\n"
26626 " guestfs_inspect_is_live (guestfs_h *g,\n"
26627 "                          const char *root);\n"
26628 "\n"
26629 msgstr ""
26630
26631 #. type: textblock
26632 #: ../src/guestfs-actions.pod:3225
26633 msgid ""
26634 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26635 "disk), then this returns true if a live image was detected on the disk."
26636 msgstr ""
26637
26638 #. type: =head2
26639 #: ../src/guestfs-actions.pod:3235
26640 msgid "guestfs_inspect_is_multipart"
26641 msgstr ""
26642
26643 #. type: verbatim
26644 #: ../src/guestfs-actions.pod:3237
26645 #, no-wrap
26646 msgid ""
26647 " int\n"
26648 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26649 "                               const char *root);\n"
26650 "\n"
26651 msgstr ""
26652
26653 #. type: textblock
26654 #: ../src/guestfs-actions.pod:3241
26655 msgid ""
26656 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26657 "disk), then this returns true if the disk is part of a set."
26658 msgstr ""
26659
26660 #. type: =head2
26661 #: ../src/guestfs-actions.pod:3251
26662 msgid "guestfs_inspect_is_netinst"
26663 msgstr ""
26664
26665 #. type: verbatim
26666 #: ../src/guestfs-actions.pod:3253
26667 #, no-wrap
26668 msgid ""
26669 " int\n"
26670 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26671 "                             const char *root);\n"
26672 "\n"
26673 msgstr ""
26674
26675 #. type: textblock
26676 #: ../src/guestfs-actions.pod:3257
26677 msgid ""
26678 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26679 "disk), then this returns true if the disk is a network installer, ie. not a "
26680 "self-contained install CD but one which is likely to require network access "
26681 "to complete the install."
26682 msgstr ""
26683
26684 #. type: =head2
26685 #: ../src/guestfs-actions.pod:3269
26686 msgid "guestfs_inspect_list_applications"
26687 msgstr ""
26688
26689 #. type: verbatim
26690 #: ../src/guestfs-actions.pod:3271
26691 #, no-wrap
26692 msgid ""
26693 " struct guestfs_application_list *\n"
26694 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26695 "                                    const char *root);\n"
26696 "\n"
26697 msgstr ""
26698
26699 #. type: textblock
26700 #: ../src/guestfs-actions.pod:3277
26701 msgid ""
26702 "I<Note:> This call works differently from other parts of the inspection "
26703 "API.  You have to call C<guestfs_inspect_os>, then "
26704 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26705 "this.  Listing applications is a significantly more difficult operation "
26706 "which requires access to the full filesystem.  Also note that unlike the "
26707 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26708 "the libguestfs handle, this call actually reads parts of the mounted "
26709 "filesystems during the call."
26710 msgstr ""
26711
26712 #. type: textblock
26713 #: ../src/guestfs-actions.pod:3367
26714 msgid ""
26715 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26716 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26717 "after use>."
26718 msgstr ""
26719
26720 #. type: textblock
26721 #: ../src/guestfs-actions.pod:3371
26722 msgid "(Added in 1.7.8)"
26723 msgstr ""
26724
26725 #. type: =head2
26726 #: ../src/guestfs-actions.pod:3373
26727 msgid "guestfs_inspect_os"
26728 msgstr ""
26729
26730 #. type: verbatim
26731 #: ../src/guestfs-actions.pod:3375
26732 #, no-wrap
26733 msgid ""
26734 " char **\n"
26735 " guestfs_inspect_os (guestfs_h *g);\n"
26736 "\n"
26737 msgstr ""
26738
26739 #. type: textblock
26740 #: ../src/guestfs-actions.pod:3391
26741 msgid ""
26742 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26743 "functions in order to query further information about each operating system, "
26744 "such as the name and version."
26745 msgstr ""
26746
26747 #. type: textblock
26748 #: ../src/guestfs-actions.pod:3396
26749 msgid ""
26750 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26751 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26752 "the contents.  This should be called with no disks currently mounted.  The "
26753 "function may also use Augeas, so any existing Augeas handle will be closed."
26754 msgstr ""
26755
26756 #. type: textblock
26757 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
26758 #: ../src/guestfs-actions.pod:3821
26759 msgid "See also C<guestfs_list_filesystems>."
26760 msgstr ""
26761
26762 #. type: =head2
26763 #: ../src/guestfs-actions.pod:3416
26764 msgid "guestfs_is_blockdev"
26765 msgstr ""
26766
26767 #. type: verbatim
26768 #: ../src/guestfs-actions.pod:3418
26769 #, no-wrap
26770 msgid ""
26771 " int\n"
26772 " guestfs_is_blockdev (guestfs_h *g,\n"
26773 "                      const char *path);\n"
26774 "\n"
26775 msgstr ""
26776
26777 #. type: textblock
26778 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
26779 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
26780 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
26781 #: ../src/guestfs-actions.pod:3586
26782 msgid "See also C<guestfs_stat>."
26783 msgstr ""
26784
26785 #. type: textblock
26786 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
26787 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
26788 #: ../src/guestfs-actions.pod:3590
26789 msgid "(Added in 1.5.10)"
26790 msgstr ""
26791
26792 #. type: =head2
26793 #: ../src/guestfs-actions.pod:3431
26794 msgid "guestfs_is_busy"
26795 msgstr ""
26796
26797 #. type: verbatim
26798 #: ../src/guestfs-actions.pod:3433
26799 #, no-wrap
26800 msgid ""
26801 " int\n"
26802 " guestfs_is_busy (guestfs_h *g);\n"
26803 "\n"
26804 msgstr ""
26805
26806 #. type: =head2
26807 #: ../src/guestfs-actions.pod:3445
26808 msgid "guestfs_is_chardev"
26809 msgstr ""
26810
26811 #. type: verbatim
26812 #: ../src/guestfs-actions.pod:3447
26813 #, no-wrap
26814 msgid ""
26815 " int\n"
26816 " guestfs_is_chardev (guestfs_h *g,\n"
26817 "                     const char *path);\n"
26818 "\n"
26819 msgstr ""
26820
26821 #. type: =head2
26822 #: ../src/guestfs-actions.pod:3460
26823 msgid "guestfs_is_config"
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../src/guestfs-actions.pod:3462
26828 #, no-wrap
26829 msgid ""
26830 " int\n"
26831 " guestfs_is_config (guestfs_h *g);\n"
26832 "\n"
26833 msgstr ""
26834
26835 #. type: =head2
26836 #: ../src/guestfs-actions.pod:3474
26837 msgid "guestfs_is_dir"
26838 msgstr ""
26839
26840 #. type: verbatim
26841 #: ../src/guestfs-actions.pod:3476
26842 #, no-wrap
26843 msgid ""
26844 " int\n"
26845 " guestfs_is_dir (guestfs_h *g,\n"
26846 "                 const char *path);\n"
26847 "\n"
26848 msgstr ""
26849
26850 #. type: =head2
26851 #: ../src/guestfs-actions.pod:3490
26852 msgid "guestfs_is_fifo"
26853 msgstr ""
26854
26855 #. type: verbatim
26856 #: ../src/guestfs-actions.pod:3492
26857 #, no-wrap
26858 msgid ""
26859 " int\n"
26860 " guestfs_is_fifo (guestfs_h *g,\n"
26861 "                  const char *path);\n"
26862 "\n"
26863 msgstr ""
26864
26865 #. type: =head2
26866 #: ../src/guestfs-actions.pod:3505
26867 msgid "guestfs_is_file"
26868 msgstr ""
26869
26870 #. type: verbatim
26871 #: ../src/guestfs-actions.pod:3507
26872 #, no-wrap
26873 msgid ""
26874 " int\n"
26875 " guestfs_is_file (guestfs_h *g,\n"
26876 "                  const char *path);\n"
26877 "\n"
26878 msgstr ""
26879
26880 #. type: =head2
26881 #: ../src/guestfs-actions.pod:3521
26882 msgid "guestfs_is_launching"
26883 msgstr ""
26884
26885 #. type: verbatim
26886 #: ../src/guestfs-actions.pod:3523
26887 #, no-wrap
26888 msgid ""
26889 " int\n"
26890 " guestfs_is_launching (guestfs_h *g);\n"
26891 "\n"
26892 msgstr ""
26893
26894 #. type: =head2
26895 #: ../src/guestfs-actions.pod:3535
26896 msgid "guestfs_is_lv"
26897 msgstr ""
26898
26899 #. type: verbatim
26900 #: ../src/guestfs-actions.pod:3537
26901 #, no-wrap
26902 msgid ""
26903 " int\n"
26904 " guestfs_is_lv (guestfs_h *g,\n"
26905 "                const char *device);\n"
26906 "\n"
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../src/guestfs-actions.pod:3548
26911 msgid "guestfs_is_ready"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../src/guestfs-actions.pod:3550
26916 #, no-wrap
26917 msgid ""
26918 " int\n"
26919 " guestfs_is_ready (guestfs_h *g);\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: =head2
26924 #: ../src/guestfs-actions.pod:3562
26925 msgid "guestfs_is_socket"
26926 msgstr ""
26927
26928 #. type: verbatim
26929 #: ../src/guestfs-actions.pod:3564
26930 #, no-wrap
26931 msgid ""
26932 " int\n"
26933 " guestfs_is_socket (guestfs_h *g,\n"
26934 "                    const char *path);\n"
26935 "\n"
26936 msgstr ""
26937
26938 #. type: =head2
26939 #: ../src/guestfs-actions.pod:3577
26940 msgid "guestfs_is_symlink"
26941 msgstr ""
26942
26943 #. type: verbatim
26944 #: ../src/guestfs-actions.pod:3579
26945 #, no-wrap
26946 msgid ""
26947 " int\n"
26948 " guestfs_is_symlink (guestfs_h *g,\n"
26949 "                     const char *path);\n"
26950 "\n"
26951 msgstr ""
26952
26953 #. type: =head2
26954 #: ../src/guestfs-actions.pod:3592
26955 msgid "guestfs_is_zero"
26956 msgstr ""
26957
26958 #. type: verbatim
26959 #: ../src/guestfs-actions.pod:3594
26960 #, no-wrap
26961 msgid ""
26962 " int\n"
26963 " guestfs_is_zero (guestfs_h *g,\n"
26964 "                  const char *path);\n"
26965 "\n"
26966 msgstr ""
26967
26968 #. type: textblock
26969 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
26970 msgid "(Added in 1.11.8)"
26971 msgstr ""
26972
26973 #. type: =head2
26974 #: ../src/guestfs-actions.pod:3605
26975 msgid "guestfs_is_zero_device"
26976 msgstr ""
26977
26978 #. type: verbatim
26979 #: ../src/guestfs-actions.pod:3607
26980 #, no-wrap
26981 msgid ""
26982 " int\n"
26983 " guestfs_is_zero_device (guestfs_h *g,\n"
26984 "                         const char *device);\n"
26985 "\n"
26986 msgstr ""
26987
26988 #. type: =head2
26989 #: ../src/guestfs-actions.pod:3619
26990 msgid "guestfs_kill_subprocess"
26991 msgstr ""
26992
26993 #. type: verbatim
26994 #: ../src/guestfs-actions.pod:3621
26995 #, no-wrap
26996 msgid ""
26997 " int\n"
26998 " guestfs_kill_subprocess (guestfs_h *g);\n"
26999 "\n"
27000 msgstr ""
27001
27002 #. type: =head2
27003 #: ../src/guestfs-actions.pod:3630
27004 msgid "guestfs_launch"
27005 msgstr ""
27006
27007 #. type: verbatim
27008 #: ../src/guestfs-actions.pod:3632
27009 #, no-wrap
27010 msgid ""
27011 " int\n"
27012 " guestfs_launch (guestfs_h *g);\n"
27013 "\n"
27014 msgstr ""
27015
27016 #. type: =head2
27017 #: ../src/guestfs-actions.pod:3650
27018 msgid "guestfs_lchown"
27019 msgstr ""
27020
27021 #. type: verbatim
27022 #: ../src/guestfs-actions.pod:3652
27023 #, no-wrap
27024 msgid ""
27025 " int\n"
27026 " guestfs_lchown (guestfs_h *g,\n"
27027 "                 int owner,\n"
27028 "                 int group,\n"
27029 "                 const char *path);\n"
27030 "\n"
27031 msgstr ""
27032
27033 #. type: textblock
27034 #: ../src/guestfs-actions.pod:3658
27035 msgid ""
27036 "Change the file owner to C<owner> and group to C<group>.  This is like "
27037 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27038 "changed, not the target."
27039 msgstr ""
27040
27041 #. type: =head2
27042 #: ../src/guestfs-actions.pod:3670
27043 msgid "guestfs_lgetxattr"
27044 msgstr ""
27045
27046 #. type: verbatim
27047 #: ../src/guestfs-actions.pod:3672
27048 #, no-wrap
27049 msgid ""
27050 " char *\n"
27051 " guestfs_lgetxattr (guestfs_h *g,\n"
27052 "                    const char *path,\n"
27053 "                    const char *name,\n"
27054 "                    size_t *size_r);\n"
27055 "\n"
27056 msgstr ""
27057
27058 #. type: textblock
27059 #: ../src/guestfs-actions.pod:3692
27060 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27061 msgstr ""
27062
27063 #. type: =head2
27064 #: ../src/guestfs-actions.pod:3700
27065 msgid "guestfs_lgetxattrs"
27066 msgstr ""
27067
27068 #. type: verbatim
27069 #: ../src/guestfs-actions.pod:3702
27070 #, no-wrap
27071 msgid ""
27072 " struct guestfs_xattr_list *\n"
27073 " guestfs_lgetxattrs (guestfs_h *g,\n"
27074 "                     const char *path);\n"
27075 "\n"
27076 msgstr ""
27077
27078 #. type: textblock
27079 #: ../src/guestfs-actions.pod:3706
27080 msgid ""
27081 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27082 "then it returns the extended attributes of the link itself."
27083 msgstr ""
27084
27085 #. type: =head2
27086 #: ../src/guestfs-actions.pod:3716
27087 msgid "guestfs_list_9p"
27088 msgstr ""
27089
27090 #. type: verbatim
27091 #: ../src/guestfs-actions.pod:3718
27092 #, no-wrap
27093 msgid ""
27094 " char **\n"
27095 " guestfs_list_9p (guestfs_h *g);\n"
27096 "\n"
27097 msgstr ""
27098
27099 #. type: =head2
27100 #: ../src/guestfs-actions.pod:3730
27101 msgid "guestfs_list_devices"
27102 msgstr ""
27103
27104 #. type: verbatim
27105 #: ../src/guestfs-actions.pod:3732
27106 #, no-wrap
27107 msgid ""
27108 " char **\n"
27109 " guestfs_list_devices (guestfs_h *g);\n"
27110 "\n"
27111 msgstr ""
27112
27113 #. type: =head2
27114 #: ../src/guestfs-actions.pod:3747
27115 msgid "guestfs_list_dm_devices"
27116 msgstr ""
27117
27118 #. type: verbatim
27119 #: ../src/guestfs-actions.pod:3749
27120 #, no-wrap
27121 msgid ""
27122 " char **\n"
27123 " guestfs_list_dm_devices (guestfs_h *g);\n"
27124 "\n"
27125 msgstr ""
27126
27127 #. type: textblock
27128 #: ../src/guestfs-actions.pod:3754
27129 msgid ""
27130 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27131 "previous call to C<guestfs_luks_open>."
27132 msgstr ""
27133
27134 #. type: textblock
27135 #: ../src/guestfs-actions.pod:3757
27136 msgid ""
27137 "Device mapper devices which correspond to logical volumes are I<not> "
27138 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27139 "volumes."
27140 msgstr ""
27141
27142 #. type: textblock
27143 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
27144 msgid "(Added in 1.11.15)"
27145 msgstr ""
27146
27147 #. type: =head2
27148 #: ../src/guestfs-actions.pod:3767
27149 msgid "guestfs_list_filesystems"
27150 msgstr ""
27151
27152 #. type: verbatim
27153 #: ../src/guestfs-actions.pod:3769
27154 #, no-wrap
27155 msgid ""
27156 " char **\n"
27157 " guestfs_list_filesystems (guestfs_h *g);\n"
27158 "\n"
27159 msgstr ""
27160
27161 #. type: textblock
27162 #: ../src/guestfs-actions.pod:3789
27163 msgid ""
27164 "This command runs other libguestfs commands, which might include "
27165 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27166 "soon after launch and only when nothing is mounted."
27167 msgstr ""
27168
27169 #. type: textblock
27170 #: ../src/guestfs-actions.pod:3793
27171 msgid ""
27172 "Not all of the filesystems returned will be mountable.  In particular, swap "
27173 "partitions are returned in the list.  Also this command does not check that "
27174 "each filesystem found is valid and mountable, and some filesystems might be "
27175 "mountable but require special options.  Filesystems may not all belong to a "
27176 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27177 msgstr ""
27178
27179 #. type: textblock
27180 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
27181 msgid "(Added in 1.5.15)"
27182 msgstr ""
27183
27184 #. type: =head2
27185 #: ../src/guestfs-actions.pod:3809
27186 msgid "guestfs_list_partitions"
27187 msgstr "guestfs_list_partitions"
27188
27189 #. type: verbatim
27190 #: ../src/guestfs-actions.pod:3811
27191 #, no-wrap
27192 msgid ""
27193 " char **\n"
27194 " guestfs_list_partitions (guestfs_h *g);\n"
27195 "\n"
27196 msgstr ""
27197 " char **\n"
27198 " guestfs_list_partitions (guestfs_h *g);\n"
27199 "\n"
27200
27201 #. type: textblock
27202 #: ../src/guestfs-actions.pod:3818
27203 msgid ""
27204 "This does not return logical volumes.  For that you will need to call "
27205 "C<guestfs_lvs>."
27206 msgstr ""
27207
27208 #. type: =head2
27209 #: ../src/guestfs-actions.pod:3829
27210 msgid "guestfs_ll"
27211 msgstr "guestfs_ll"
27212
27213 #. type: verbatim
27214 #: ../src/guestfs-actions.pod:3831
27215 #, no-wrap
27216 msgid ""
27217 " char *\n"
27218 " guestfs_ll (guestfs_h *g,\n"
27219 "             const char *directory);\n"
27220 "\n"
27221 msgstr ""
27222 " char *\n"
27223 " guestfs_ll (guestfs_h *g,\n"
27224 "             const char *directory);\n"
27225 "\n"
27226
27227 #. type: =head2
27228 #: ../src/guestfs-actions.pod:3846
27229 msgid "guestfs_ln"
27230 msgstr "guestfs_ln"
27231
27232 #. type: verbatim
27233 #: ../src/guestfs-actions.pod:3848
27234 #, no-wrap
27235 msgid ""
27236 " int\n"
27237 " guestfs_ln (guestfs_h *g,\n"
27238 "             const char *target,\n"
27239 "             const char *linkname);\n"
27240 "\n"
27241 msgstr ""
27242 " int\n"
27243 " guestfs_ln (guestfs_h *g,\n"
27244 "             const char *target,\n"
27245 "             const char *linkname);\n"
27246 "\n"
27247
27248 #. type: =head2
27249 #: ../src/guestfs-actions.pod:3859
27250 msgid "guestfs_ln_f"
27251 msgstr "guestfs_ln_f"
27252
27253 #. type: verbatim
27254 #: ../src/guestfs-actions.pod:3861
27255 #, no-wrap
27256 msgid ""
27257 " int\n"
27258 " guestfs_ln_f (guestfs_h *g,\n"
27259 "               const char *target,\n"
27260 "               const char *linkname);\n"
27261 "\n"
27262 msgstr ""
27263 " int\n"
27264 " guestfs_ln_f (guestfs_h *g,\n"
27265 "               const char *target,\n"
27266 "               const char *linkname);\n"
27267 "\n"
27268
27269 #. type: =head2
27270 #: ../src/guestfs-actions.pod:3873
27271 msgid "guestfs_ln_s"
27272 msgstr "guestfs_ln_s"
27273
27274 #. type: verbatim
27275 #: ../src/guestfs-actions.pod:3875
27276 #, no-wrap
27277 msgid ""
27278 " int\n"
27279 " guestfs_ln_s (guestfs_h *g,\n"
27280 "               const char *target,\n"
27281 "               const char *linkname);\n"
27282 "\n"
27283 msgstr ""
27284 " int\n"
27285 " guestfs_ln_s (guestfs_h *g,\n"
27286 "               const char *target,\n"
27287 "               const char *linkname);\n"
27288 "\n"
27289
27290 #. type: =head2
27291 #: ../src/guestfs-actions.pod:3886
27292 msgid "guestfs_ln_sf"
27293 msgstr "guestfs_ln_sf"
27294
27295 #. type: verbatim
27296 #: ../src/guestfs-actions.pod:3888
27297 #, no-wrap
27298 msgid ""
27299 " int\n"
27300 " guestfs_ln_sf (guestfs_h *g,\n"
27301 "                const char *target,\n"
27302 "                const char *linkname);\n"
27303 "\n"
27304 msgstr ""
27305 " int\n"
27306 " guestfs_ln_sf (guestfs_h *g,\n"
27307 "                const char *target,\n"
27308 "                const char *linkname);\n"
27309 "\n"
27310
27311 #. type: =head2
27312 #: ../src/guestfs-actions.pod:3900
27313 msgid "guestfs_lremovexattr"
27314 msgstr "guestfs_lremovexattr"
27315
27316 #. type: verbatim
27317 #: ../src/guestfs-actions.pod:3902
27318 #, no-wrap
27319 msgid ""
27320 " int\n"
27321 " guestfs_lremovexattr (guestfs_h *g,\n"
27322 "                       const char *xattr,\n"
27323 "                       const char *path);\n"
27324 "\n"
27325 msgstr ""
27326 " int\n"
27327 " guestfs_lremovexattr (guestfs_h *g,\n"
27328 "                       const char *xattr,\n"
27329 "                       const char *path);\n"
27330 "\n"
27331
27332 #. type: textblock
27333 #: ../src/guestfs-actions.pod:3907
27334 msgid ""
27335 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27336 "link, then it removes an extended attribute of the link itself."
27337 msgstr ""
27338
27339 #. type: =head2
27340 #: ../src/guestfs-actions.pod:3915
27341 msgid "guestfs_ls"
27342 msgstr "guestfs_ls"
27343
27344 #. type: verbatim
27345 #: ../src/guestfs-actions.pod:3917
27346 #, no-wrap
27347 msgid ""
27348 " char **\n"
27349 " guestfs_ls (guestfs_h *g,\n"
27350 "             const char *directory);\n"
27351 "\n"
27352 msgstr ""
27353 " char **\n"
27354 " guestfs_ls (guestfs_h *g,\n"
27355 "             const char *directory);\n"
27356 "\n"
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:3925
27360 msgid ""
27361 "This command is mostly useful for interactive sessions.  Programs should "
27362 "probably use C<guestfs_readdir> instead."
27363 msgstr ""
27364
27365 #. type: =head2
27366 #: ../src/guestfs-actions.pod:3934
27367 msgid "guestfs_lsetxattr"
27368 msgstr "guestfs_lsetxattr"
27369
27370 #. type: verbatim
27371 #: ../src/guestfs-actions.pod:3936
27372 #, no-wrap
27373 msgid ""
27374 " int\n"
27375 " guestfs_lsetxattr (guestfs_h *g,\n"
27376 "                    const char *xattr,\n"
27377 "                    const char *val,\n"
27378 "                    int vallen,\n"
27379 "                    const char *path);\n"
27380 "\n"
27381 msgstr ""
27382 " int\n"
27383 " guestfs_lsetxattr (guestfs_h *g,\n"
27384 "                    const char *xattr,\n"
27385 "                    const char *val,\n"
27386 "                    int vallen,\n"
27387 "                    const char *path);\n"
27388 "\n"
27389
27390 #. type: textblock
27391 #: ../src/guestfs-actions.pod:3943
27392 msgid ""
27393 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27394 "then it sets an extended attribute of the link itself."
27395 msgstr ""
27396
27397 #. type: =head2
27398 #: ../src/guestfs-actions.pod:3951
27399 msgid "guestfs_lstat"
27400 msgstr "guestfs_lstat"
27401
27402 #. type: verbatim
27403 #: ../src/guestfs-actions.pod:3953
27404 #, no-wrap
27405 msgid ""
27406 " struct guestfs_stat *\n"
27407 " guestfs_lstat (guestfs_h *g,\n"
27408 "                const char *path);\n"
27409 "\n"
27410 msgstr ""
27411 " struct guestfs_stat *\n"
27412 " guestfs_lstat (guestfs_h *g,\n"
27413 "                const char *path);\n"
27414 "\n"
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:3959
27418 msgid ""
27419 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27420 "link, then the link is stat-ed, not the file it refers to."
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
27425 msgid ""
27426 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27427 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27428 msgstr ""
27429
27430 #. type: textblock
27431 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
27432 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
27433 msgid "(Added in 0.9.2)"
27434 msgstr "(Додано у 0.9.2)"
27435
27436 #. type: =head2
27437 #: ../src/guestfs-actions.pod:3971
27438 msgid "guestfs_lstatlist"
27439 msgstr "guestfs_lstatlist"
27440
27441 #. type: verbatim
27442 #: ../src/guestfs-actions.pod:3973
27443 #, no-wrap
27444 msgid ""
27445 " struct guestfs_stat_list *\n"
27446 " guestfs_lstatlist (guestfs_h *g,\n"
27447 "                    const char *path,\n"
27448 "                    char *const *names);\n"
27449 "\n"
27450 msgstr ""
27451 " struct guestfs_stat_list *\n"
27452 " guestfs_lstatlist (guestfs_h *g,\n"
27453 "                    const char *path,\n"
27454 "                    char *const *names);\n"
27455 "\n"
27456
27457 #. type: textblock
27458 #: ../src/guestfs-actions.pod:3978
27459 msgid ""
27460 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27461 "files, where all files are in the directory C<path>.  C<names> is the list "
27462 "of files from this directory."
27463 msgstr ""
27464
27465 #. type: textblock
27466 #: ../src/guestfs-actions.pod:3987
27467 msgid ""
27468 "This call is intended for programs that want to efficiently list a directory "
27469 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27470 "for a similarly efficient call for getting extended attributes.  Very long "
27471 "directory listings might cause the protocol message size to be exceeded, "
27472 "causing this call to fail.  The caller must split up such requests into "
27473 "smaller groups of names."
27474 msgstr ""
27475
27476 #. type: textblock
27477 #: ../src/guestfs-actions.pod:3995
27478 msgid ""
27479 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27480 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27481 msgstr ""
27482
27483 #. type: =head2
27484 #: ../src/guestfs-actions.pod:4001
27485 msgid "guestfs_luks_add_key"
27486 msgstr "guestfs_luks_add_key"
27487
27488 #. type: verbatim
27489 #: ../src/guestfs-actions.pod:4003
27490 #, no-wrap
27491 msgid ""
27492 " int\n"
27493 " guestfs_luks_add_key (guestfs_h *g,\n"
27494 "                       const char *device,\n"
27495 "                       const char *key,\n"
27496 "                       const char *newkey,\n"
27497 "                       int keyslot);\n"
27498 "\n"
27499 msgstr ""
27500 " int\n"
27501 " guestfs_luks_add_key (guestfs_h *g,\n"
27502 "                       const char *device,\n"
27503 "                       const char *key,\n"
27504 "                       const char *newkey,\n"
27505 "                       int keyslot);\n"
27506 "\n"
27507
27508 #. type: textblock
27509 #: ../src/guestfs-actions.pod:4015
27510 msgid ""
27511 "Note that if C<keyslot> already contains a key, then this command will "
27512 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27513 msgstr ""
27514
27515 #. type: textblock
27516 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
27517 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
27518 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
27519 msgid ""
27520 "This function takes a key or passphrase parameter which could contain "
27521 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27522 "information."
27523 msgstr ""
27524
27525 #. type: textblock
27526 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
27527 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
27528 msgid "(Added in 1.5.2)"
27529 msgstr "(Додано у 1.5.2)"
27530
27531 #. type: =head2
27532 #: ../src/guestfs-actions.pod:4027
27533 msgid "guestfs_luks_close"
27534 msgstr "guestfs_luks_close"
27535
27536 #. type: verbatim
27537 #: ../src/guestfs-actions.pod:4029
27538 #, no-wrap
27539 msgid ""
27540 " int\n"
27541 " guestfs_luks_close (guestfs_h *g,\n"
27542 "                     const char *device);\n"
27543 "\n"
27544 msgstr ""
27545 " int\n"
27546 " guestfs_luks_close (guestfs_h *g,\n"
27547 "                     const char *device);\n"
27548 "\n"
27549
27550 #. type: textblock
27551 #: ../src/guestfs-actions.pod:4033
27552 msgid ""
27553 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27554 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27555 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27556 "underlying block device."
27557 msgstr ""
27558
27559 #. type: textblock
27560 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
27561 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
27562 #: ../src/guestfs-actions.pod:4260
27563 msgid "(Added in 1.5.1)"
27564 msgstr "(Додано у 1.5.1)"
27565
27566 #. type: =head2
27567 #: ../src/guestfs-actions.pod:4043
27568 msgid "guestfs_luks_format"
27569 msgstr "guestfs_luks_format"
27570
27571 #. type: verbatim
27572 #: ../src/guestfs-actions.pod:4045
27573 #, no-wrap
27574 msgid ""
27575 " int\n"
27576 " guestfs_luks_format (guestfs_h *g,\n"
27577 "                      const char *device,\n"
27578 "                      const char *key,\n"
27579 "                      int keyslot);\n"
27580 "\n"
27581 msgstr ""
27582 " int\n"
27583 " guestfs_luks_format (guestfs_h *g,\n"
27584 "                      const char *device,\n"
27585 "                      const char *key,\n"
27586 "                      int keyslot);\n"
27587 "\n"
27588
27589 #. type: =head2
27590 #: ../src/guestfs-actions.pod:4067
27591 msgid "guestfs_luks_format_cipher"
27592 msgstr "guestfs_luks_format_cipher"
27593
27594 #. type: verbatim
27595 #: ../src/guestfs-actions.pod:4069
27596 #, no-wrap
27597 msgid ""
27598 " int\n"
27599 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27600 "                             const char *device,\n"
27601 "                             const char *key,\n"
27602 "                             int keyslot,\n"
27603 "                             const char *cipher);\n"
27604 "\n"
27605 msgstr ""
27606 " int\n"
27607 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27608 "                             const char *device,\n"
27609 "                             const char *key,\n"
27610 "                             int keyslot,\n"
27611 "                             const char *cipher);\n"
27612 "\n"
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:4076
27616 msgid ""
27617 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27618 "set the C<cipher> used."
27619 msgstr ""
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:4090
27623 msgid "guestfs_luks_kill_slot"
27624 msgstr "guestfs_luks_kill_slot"
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:4092
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27632 "                         const char *device,\n"
27633 "                         const char *key,\n"
27634 "                         int keyslot);\n"
27635 "\n"
27636 msgstr ""
27637 " int\n"
27638 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27639 "                         const char *device,\n"
27640 "                         const char *key,\n"
27641 "                         int keyslot);\n"
27642 "\n"
27643
27644 #. type: =head2
27645 #: ../src/guestfs-actions.pod:4110
27646 msgid "guestfs_luks_open"
27647 msgstr "guestfs_luks_open"
27648
27649 #. type: verbatim
27650 #: ../src/guestfs-actions.pod:4112
27651 #, no-wrap
27652 msgid ""
27653 " int\n"
27654 " guestfs_luks_open (guestfs_h *g,\n"
27655 "                    const char *device,\n"
27656 "                    const char *key,\n"
27657 "                    const char *mapname);\n"
27658 "\n"
27659 msgstr ""
27660 " int\n"
27661 " guestfs_luks_open (guestfs_h *g,\n"
27662 "                    const char *device,\n"
27663 "                    const char *key,\n"
27664 "                    const char *mapname);\n"
27665 "\n"
27666
27667 #. type: textblock
27668 #: ../src/guestfs-actions.pod:4130
27669 msgid ""
27670 "If this block device contains LVM volume groups, then calling "
27671 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27672 "visible."
27673 msgstr ""
27674
27675 #. type: textblock
27676 #: ../src/guestfs-actions.pod:4134
27677 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27678 msgstr ""
27679
27680 #. type: =head2
27681 #: ../src/guestfs-actions.pod:4145
27682 msgid "guestfs_luks_open_ro"
27683 msgstr "guestfs_luks_open_ro"
27684
27685 #. type: verbatim
27686 #: ../src/guestfs-actions.pod:4147
27687 #, no-wrap
27688 msgid ""
27689 " int\n"
27690 " guestfs_luks_open_ro (guestfs_h *g,\n"
27691 "                       const char *device,\n"
27692 "                       const char *key,\n"
27693 "                       const char *mapname);\n"
27694 "\n"
27695 msgstr ""
27696 " int\n"
27697 " guestfs_luks_open_ro (guestfs_h *g,\n"
27698 "                       const char *device,\n"
27699 "                       const char *key,\n"
27700 "                       const char *mapname);\n"
27701 "\n"
27702
27703 #. type: textblock
27704 #: ../src/guestfs-actions.pod:4153
27705 msgid ""
27706 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27707 "created."
27708 msgstr ""
27709
27710 #. type: =head2
27711 #: ../src/guestfs-actions.pod:4164
27712 msgid "guestfs_lvcreate"
27713 msgstr "guestfs_lvcreate"
27714
27715 #. type: verbatim
27716 #: ../src/guestfs-actions.pod:4166
27717 #, no-wrap
27718 msgid ""
27719 " int\n"
27720 " guestfs_lvcreate (guestfs_h *g,\n"
27721 "                   const char *logvol,\n"
27722 "                   const char *volgroup,\n"
27723 "                   int mbytes);\n"
27724 "\n"
27725 msgstr ""
27726 " int\n"
27727 " guestfs_lvcreate (guestfs_h *g,\n"
27728 "                   const char *logvol,\n"
27729 "                   const char *volgroup,\n"
27730 "                   int mbytes);\n"
27731 "\n"
27732
27733 #. type: =head2
27734 #: ../src/guestfs-actions.pod:4179
27735 msgid "guestfs_lvm_canonical_lv_name"
27736 msgstr "guestfs_lvm_canonical_lv_name"
27737
27738 #. type: verbatim
27739 #: ../src/guestfs-actions.pod:4181
27740 #, no-wrap
27741 msgid ""
27742 " char *\n"
27743 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27744 "                                const char *lvname);\n"
27745 "\n"
27746 msgstr ""
27747 " char *\n"
27748 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27749 "                                const char *lvname);\n"
27750 "\n"
27751
27752 #. type: textblock
27753 #: ../src/guestfs-actions.pod:4192
27754 msgid "See also C<guestfs_is_lv>."
27755 msgstr ""
27756
27757 #. type: textblock
27758 #: ../src/guestfs-actions.pod:4197
27759 msgid "(Added in 1.5.24)"
27760 msgstr "(Додано у 1.5.24)"
27761
27762 #. type: =head2
27763 #: ../src/guestfs-actions.pod:4199
27764 msgid "guestfs_lvm_clear_filter"
27765 msgstr "guestfs_lvm_clear_filter"
27766
27767 #. type: verbatim
27768 #: ../src/guestfs-actions.pod:4201
27769 #, no-wrap
27770 msgid ""
27771 " int\n"
27772 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27773 "\n"
27774 msgstr ""
27775 " int\n"
27776 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27777 "\n"
27778
27779 #. type: textblock
27780 #: ../src/guestfs-actions.pod:4204
27781 msgid ""
27782 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27783 "see every block device."
27784 msgstr ""
27785
27786 #. type: =head2
27787 #: ../src/guestfs-actions.pod:4214
27788 msgid "guestfs_lvm_remove_all"
27789 msgstr "guestfs_lvm_remove_all"
27790
27791 #. type: verbatim
27792 #: ../src/guestfs-actions.pod:4216
27793 #, no-wrap
27794 msgid ""
27795 " int\n"
27796 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27797 "\n"
27798 msgstr ""
27799 " int\n"
27800 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27801 "\n"
27802
27803 #. type: =head2
27804 #: ../src/guestfs-actions.pod:4229
27805 msgid "guestfs_lvm_set_filter"
27806 msgstr "guestfs_lvm_set_filter"
27807
27808 #. type: verbatim
27809 #: ../src/guestfs-actions.pod:4231
27810 #, no-wrap
27811 msgid ""
27812 " int\n"
27813 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27814 "                         char *const *devices);\n"
27815 "\n"
27816 msgstr ""
27817 " int\n"
27818 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27819 "                         char *const *devices);\n"
27820 "\n"
27821
27822 #. type: =head2
27823 #: ../src/guestfs-actions.pod:4262
27824 msgid "guestfs_lvremove"
27825 msgstr "guestfs_lvremove"
27826
27827 #. type: verbatim
27828 #: ../src/guestfs-actions.pod:4264
27829 #, no-wrap
27830 msgid ""
27831 " int\n"
27832 " guestfs_lvremove (guestfs_h *g,\n"
27833 "                   const char *device);\n"
27834 "\n"
27835 msgstr ""
27836 " int\n"
27837 " guestfs_lvremove (guestfs_h *g,\n"
27838 "                   const char *device);\n"
27839 "\n"
27840
27841 #. type: textblock
27842 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
27843 #: ../src/guestfs-actions.pod:7513
27844 msgid "(Added in 1.0.13)"
27845 msgstr "(Додано у 1.0.13)"
27846
27847 #. type: =head2
27848 #: ../src/guestfs-actions.pod:4278
27849 msgid "guestfs_lvrename"
27850 msgstr "guestfs_lvrename"
27851
27852 #. type: verbatim
27853 #: ../src/guestfs-actions.pod:4280
27854 #, no-wrap
27855 msgid ""
27856 " int\n"
27857 " guestfs_lvrename (guestfs_h *g,\n"
27858 "                   const char *logvol,\n"
27859 "                   const char *newlogvol);\n"
27860 "\n"
27861 msgstr ""
27862 " int\n"
27863 " guestfs_lvrename (guestfs_h *g,\n"
27864 "                   const char *logvol,\n"
27865 "                   const char *newlogvol);\n"
27866 "\n"
27867
27868 #. type: textblock
27869 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
27870 msgid "(Added in 1.0.83)"
27871 msgstr "(Додано у 1.0.83)"
27872
27873 #. type: =head2
27874 #: ../src/guestfs-actions.pod:4291
27875 msgid "guestfs_lvresize"
27876 msgstr "guestfs_lvresize"
27877
27878 #. type: verbatim
27879 #: ../src/guestfs-actions.pod:4293
27880 #, no-wrap
27881 msgid ""
27882 " int\n"
27883 " guestfs_lvresize (guestfs_h *g,\n"
27884 "                   const char *device,\n"
27885 "                   int mbytes);\n"
27886 "\n"
27887 msgstr ""
27888 " int\n"
27889 " guestfs_lvresize (guestfs_h *g,\n"
27890 "                   const char *device,\n"
27891 "                   int mbytes);\n"
27892 "\n"
27893
27894 #. type: =head2
27895 #: ../src/guestfs-actions.pod:4306
27896 msgid "guestfs_lvresize_free"
27897 msgstr "guestfs_lvresize_free"
27898
27899 #. type: verbatim
27900 #: ../src/guestfs-actions.pod:4308
27901 #, no-wrap
27902 msgid ""
27903 " int\n"
27904 " guestfs_lvresize_free (guestfs_h *g,\n"
27905 "                        const char *lv,\n"
27906 "                        int percent);\n"
27907 "\n"
27908 msgstr ""
27909 " int\n"
27910 " guestfs_lvresize_free (guestfs_h *g,\n"
27911 "                        const char *lv,\n"
27912 "                        int percent);\n"
27913 "\n"
27914
27915 #. type: textblock
27916 #: ../src/guestfs-actions.pod:4321
27917 msgid "(Added in 1.3.3)"
27918 msgstr "(Додано у 1.3.3)"
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:4323
27922 msgid "guestfs_lvs"
27923 msgstr "guestfs_lvs"
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:4325
27927 #, no-wrap
27928 msgid ""
27929 " char **\n"
27930 " guestfs_lvs (guestfs_h *g);\n"
27931 "\n"
27932 msgstr ""
27933 " char **\n"
27934 " guestfs_lvs (guestfs_h *g);\n"
27935 "\n"
27936
27937 #. type: textblock
27938 #: ../src/guestfs-actions.pod:4334
27939 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27940 msgstr ""
27941
27942 #. type: =head2
27943 #: ../src/guestfs-actions.pod:4342
27944 msgid "guestfs_lvs_full"
27945 msgstr "guestfs_lvs_full"
27946
27947 #. type: verbatim
27948 #: ../src/guestfs-actions.pod:4344
27949 #, no-wrap
27950 msgid ""
27951 " struct guestfs_lvm_lv_list *\n"
27952 " guestfs_lvs_full (guestfs_h *g);\n"
27953 "\n"
27954 msgstr ""
27955 " struct guestfs_lvm_lv_list *\n"
27956 " guestfs_lvs_full (guestfs_h *g);\n"
27957 "\n"
27958
27959 #. type: textblock
27960 #: ../src/guestfs-actions.pod:4350
27961 msgid ""
27962 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27963 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27964 msgstr ""
27965
27966 #. type: =head2
27967 #: ../src/guestfs-actions.pod:4356
27968 msgid "guestfs_lvuuid"
27969 msgstr "guestfs_lvuuid"
27970
27971 #. type: verbatim
27972 #: ../src/guestfs-actions.pod:4358
27973 #, no-wrap
27974 msgid ""
27975 " char *\n"
27976 " guestfs_lvuuid (guestfs_h *g,\n"
27977 "                 const char *device);\n"
27978 "\n"
27979 msgstr ""
27980 " char *\n"
27981 " guestfs_lvuuid (guestfs_h *g,\n"
27982 "                 const char *device);\n"
27983 "\n"
27984
27985 #. type: =head2
27986 #: ../src/guestfs-actions.pod:4369
27987 msgid "guestfs_lxattrlist"
27988 msgstr "guestfs_lxattrlist"
27989
27990 #. type: verbatim
27991 #: ../src/guestfs-actions.pod:4371
27992 #, no-wrap
27993 msgid ""
27994 " struct guestfs_xattr_list *\n"
27995 " guestfs_lxattrlist (guestfs_h *g,\n"
27996 "                     const char *path,\n"
27997 "                     char *const *names);\n"
27998 "\n"
27999 msgstr ""
28000 " struct guestfs_xattr_list *\n"
28001 " guestfs_lxattrlist (guestfs_h *g,\n"
28002 "                     const char *path,\n"
28003 "                     char *const *names);\n"
28004 "\n"
28005
28006 #. type: textblock
28007 #: ../src/guestfs-actions.pod:4390
28008 msgid ""
28009 "This call is intended for programs that want to efficiently list a directory "
28010 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28011 "a similarly efficient call for getting standard stats.  Very long directory "
28012 "listings might cause the protocol message size to be exceeded, causing this "
28013 "call to fail.  The caller must split up such requests into smaller groups of "
28014 "names."
28015 msgstr ""
28016
28017 #. type: =head2
28018 #: ../src/guestfs-actions.pod:4404
28019 msgid "guestfs_mkdir"
28020 msgstr "guestfs_mkdir"
28021
28022 #. type: verbatim
28023 #: ../src/guestfs-actions.pod:4406
28024 #, no-wrap
28025 msgid ""
28026 " int\n"
28027 " guestfs_mkdir (guestfs_h *g,\n"
28028 "                const char *path);\n"
28029 "\n"
28030 msgstr ""
28031 " int\n"
28032 " guestfs_mkdir (guestfs_h *g,\n"
28033 "                const char *path);\n"
28034 "\n"
28035
28036 #. type: =head2
28037 #: ../src/guestfs-actions.pod:4416
28038 msgid "guestfs_mkdir_mode"
28039 msgstr "guestfs_mkdir_mode"
28040
28041 #. type: verbatim
28042 #: ../src/guestfs-actions.pod:4418
28043 #, no-wrap
28044 msgid ""
28045 " int\n"
28046 " guestfs_mkdir_mode (guestfs_h *g,\n"
28047 "                     const char *path,\n"
28048 "                     int mode);\n"
28049 "\n"
28050 msgstr ""
28051 " int\n"
28052 " guestfs_mkdir_mode (guestfs_h *g,\n"
28053 "                     const char *path,\n"
28054 "                     int mode);\n"
28055 "\n"
28056
28057 #. type: textblock
28058 #: ../src/guestfs-actions.pod:4430
28059 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28060 msgstr ""
28061
28062 #. type: =head2
28063 #: ../src/guestfs-actions.pod:4436
28064 msgid "guestfs_mkdir_p"
28065 msgstr "guestfs_mkdir_p"
28066
28067 #. type: verbatim
28068 #: ../src/guestfs-actions.pod:4438
28069 #, no-wrap
28070 msgid ""
28071 " int\n"
28072 " guestfs_mkdir_p (guestfs_h *g,\n"
28073 "                  const char *path);\n"
28074 "\n"
28075 msgstr ""
28076 " int\n"
28077 " guestfs_mkdir_p (guestfs_h *g,\n"
28078 "                  const char *path);\n"
28079 "\n"
28080
28081 #. type: =head2
28082 #: ../src/guestfs-actions.pod:4449
28083 msgid "guestfs_mkdtemp"
28084 msgstr "guestfs_mkdtemp"
28085
28086 #. type: verbatim
28087 #: ../src/guestfs-actions.pod:4451
28088 #, no-wrap
28089 msgid ""
28090 " char *\n"
28091 " guestfs_mkdtemp (guestfs_h *g,\n"
28092 "                  const char *template);\n"
28093 "\n"
28094 msgstr ""
28095 " char *\n"
28096 " guestfs_mkdtemp (guestfs_h *g,\n"
28097 "                  const char *template);\n"
28098 "\n"
28099
28100 #. type: =head2
28101 #: ../src/guestfs-actions.pod:4479
28102 msgid "guestfs_mke2fs_J"
28103 msgstr "guestfs_mke2fs_J"
28104
28105 #. type: verbatim
28106 #: ../src/guestfs-actions.pod:4481
28107 #, no-wrap
28108 msgid ""
28109 " int\n"
28110 " guestfs_mke2fs_J (guestfs_h *g,\n"
28111 "                   const char *fstype,\n"
28112 "                   int blocksize,\n"
28113 "                   const char *device,\n"
28114 "                   const char *journal);\n"
28115 "\n"
28116 msgstr ""
28117 " int\n"
28118 " guestfs_mke2fs_J (guestfs_h *g,\n"
28119 "                   const char *fstype,\n"
28120 "                   int blocksize,\n"
28121 "                   const char *device,\n"
28122 "                   const char *journal);\n"
28123 "\n"
28124
28125 #. type: textblock
28126 #: ../src/guestfs-actions.pod:4494
28127 msgid "See also C<guestfs_mke2journal>."
28128 msgstr ""
28129
28130 #. type: textblock
28131 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
28132 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
28133 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
28134 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
28135 msgid "(Added in 1.0.68)"
28136 msgstr "(Додано у 1.0.68)"
28137
28138 #. type: =head2
28139 #: ../src/guestfs-actions.pod:4500
28140 msgid "guestfs_mke2fs_JL"
28141 msgstr "guestfs_mke2fs_JL"
28142
28143 #. type: verbatim
28144 #: ../src/guestfs-actions.pod:4502
28145 #, no-wrap
28146 msgid ""
28147 " int\n"
28148 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28149 "                    const char *fstype,\n"
28150 "                    int blocksize,\n"
28151 "                    const char *device,\n"
28152 "                    const char *label);\n"
28153 "\n"
28154 msgstr ""
28155 " int\n"
28156 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28157 "                    const char *fstype,\n"
28158 "                    int blocksize,\n"
28159 "                    const char *device,\n"
28160 "                    const char *label);\n"
28161 "\n"
28162
28163 #. type: textblock
28164 #: ../src/guestfs-actions.pod:4512
28165 msgid "See also C<guestfs_mke2journal_L>."
28166 msgstr ""
28167
28168 #. type: =head2
28169 #: ../src/guestfs-actions.pod:4518
28170 msgid "guestfs_mke2fs_JU"
28171 msgstr "guestfs_mke2fs_JU"
28172
28173 #. type: verbatim
28174 #: ../src/guestfs-actions.pod:4520
28175 #, no-wrap
28176 msgid ""
28177 " int\n"
28178 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28179 "                    const char *fstype,\n"
28180 "                    int blocksize,\n"
28181 "                    const char *device,\n"
28182 "                    const char *uuid);\n"
28183 "\n"
28184 msgstr ""
28185 " int\n"
28186 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28187 "                    const char *fstype,\n"
28188 "                    int blocksize,\n"
28189 "                    const char *device,\n"
28190 "                    const char *uuid);\n"
28191 "\n"
28192
28193 #. type: textblock
28194 #: ../src/guestfs-actions.pod:4530
28195 msgid "See also C<guestfs_mke2journal_U>."
28196 msgstr ""
28197
28198 #. type: =head2
28199 #: ../src/guestfs-actions.pod:4536
28200 msgid "guestfs_mke2journal"
28201 msgstr "guestfs_mke2journal"
28202
28203 #. type: verbatim
28204 #: ../src/guestfs-actions.pod:4538
28205 #, no-wrap
28206 msgid ""
28207 " int\n"
28208 " guestfs_mke2journal (guestfs_h *g,\n"
28209 "                      int blocksize,\n"
28210 "                      const char *device);\n"
28211 "\n"
28212 msgstr ""
28213 " int\n"
28214 " guestfs_mke2journal (guestfs_h *g,\n"
28215 "                      int blocksize,\n"
28216 "                      const char *device);\n"
28217 "\n"
28218
28219 #. type: =head2
28220 #: ../src/guestfs-actions.pod:4552
28221 msgid "guestfs_mke2journal_L"
28222 msgstr "guestfs_mke2journal_L"
28223
28224 #. type: verbatim
28225 #: ../src/guestfs-actions.pod:4554
28226 #, no-wrap
28227 msgid ""
28228 " int\n"
28229 " guestfs_mke2journal_L (guestfs_h *g,\n"
28230 "                        int blocksize,\n"
28231 "                        const char *label,\n"
28232 "                        const char *device);\n"
28233 "\n"
28234 msgstr ""
28235 " int\n"
28236 " guestfs_mke2journal_L (guestfs_h *g,\n"
28237 "                        int blocksize,\n"
28238 "                        const char *label,\n"
28239 "                        const char *device);\n"
28240 "\n"
28241
28242 #. type: =head2
28243 #: ../src/guestfs-actions.pod:4566
28244 msgid "guestfs_mke2journal_U"
28245 msgstr "guestfs_mke2journal_U"
28246
28247 #. type: verbatim
28248 #: ../src/guestfs-actions.pod:4568
28249 #, no-wrap
28250 msgid ""
28251 " int\n"
28252 " guestfs_mke2journal_U (guestfs_h *g,\n"
28253 "                        int blocksize,\n"
28254 "                        const char *uuid,\n"
28255 "                        const char *device);\n"
28256 "\n"
28257 msgstr ""
28258 " int\n"
28259 " guestfs_mke2journal_U (guestfs_h *g,\n"
28260 "                        int blocksize,\n"
28261 "                        const char *uuid,\n"
28262 "                        const char *device);\n"
28263 "\n"
28264
28265 #. type: =head2
28266 #: ../src/guestfs-actions.pod:4580
28267 msgid "guestfs_mkfifo"
28268 msgstr "guestfs_mkfifo"
28269
28270 #. type: verbatim
28271 #: ../src/guestfs-actions.pod:4582
28272 #, no-wrap
28273 msgid ""
28274 " int\n"
28275 " guestfs_mkfifo (guestfs_h *g,\n"
28276 "                 int mode,\n"
28277 "                 const char *path);\n"
28278 "\n"
28279 msgstr ""
28280 " int\n"
28281 " guestfs_mkfifo (guestfs_h *g,\n"
28282 "                 int mode,\n"
28283 "                 const char *path);\n"
28284 "\n"
28285
28286 #. type: textblock
28287 #: ../src/guestfs-actions.pod:4587
28288 msgid ""
28289 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28290 "is just a convenient wrapper around C<guestfs_mknod>."
28291 msgstr ""
28292
28293 #. type: =head2
28294 #: ../src/guestfs-actions.pod:4597
28295 msgid "guestfs_mkfs"
28296 msgstr "guestfs_mkfs"
28297
28298 #. type: verbatim
28299 #: ../src/guestfs-actions.pod:4599
28300 #, no-wrap
28301 msgid ""
28302 " int\n"
28303 " guestfs_mkfs (guestfs_h *g,\n"
28304 "               const char *fstype,\n"
28305 "               const char *device);\n"
28306 "\n"
28307 msgstr ""
28308 " int\n"
28309 " guestfs_mkfs (guestfs_h *g,\n"
28310 "               const char *fstype,\n"
28311 "               const char *device);\n"
28312 "\n"
28313
28314 #. type: =head2
28315 #: ../src/guestfs-actions.pod:4612
28316 msgid "guestfs_mkfs_b"
28317 msgstr "guestfs_mkfs_b"
28318
28319 #. type: verbatim
28320 #: ../src/guestfs-actions.pod:4614
28321 #, no-wrap
28322 msgid ""
28323 " int\n"
28324 " guestfs_mkfs_b (guestfs_h *g,\n"
28325 "                 const char *fstype,\n"
28326 "                 int blocksize,\n"
28327 "                 const char *device);\n"
28328 "\n"
28329 msgstr ""
28330 " int\n"
28331 " guestfs_mkfs_b (guestfs_h *g,\n"
28332 "                 const char *fstype,\n"
28333 "                 int blocksize,\n"
28334 "                 const char *device);\n"
28335 "\n"
28336
28337 #. type: textblock
28338 #: ../src/guestfs-actions.pod:4620
28339 msgid ""
28340 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28341 "call instead."
28342 msgstr ""
28343
28344 #. type: textblock
28345 #: ../src/guestfs-actions.pod:4627
28346 msgid ""
28347 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28348 "block size of the resulting filesystem.  Supported block sizes depend on the "
28349 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28350 msgstr ""
28351
28352 #. type: =head2
28353 #: ../src/guestfs-actions.pod:4639
28354 msgid "guestfs_mkfs_opts"
28355 msgstr "guestfs_mkfs_opts"
28356
28357 #. type: verbatim
28358 #: ../src/guestfs-actions.pod:4641
28359 #, no-wrap
28360 msgid ""
28361 " int\n"
28362 " guestfs_mkfs_opts (guestfs_h *g,\n"
28363 "                    const char *fstype,\n"
28364 "                    const char *device,\n"
28365 "                    ...);\n"
28366 "\n"
28367 msgstr ""
28368 " int\n"
28369 " guestfs_mkfs_opts (guestfs_h *g,\n"
28370 "                    const char *fstype,\n"
28371 "                    const char *device,\n"
28372 "                    ...);\n"
28373 "\n"
28374
28375 #. type: verbatim
28376 #: ../src/guestfs-actions.pod:4652
28377 #, no-wrap
28378 msgid ""
28379 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28380 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28381 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28382 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: textblock
28387 #: ../src/guestfs-actions.pod:4700
28388 msgid "(Added in 1.7.19)"
28389 msgstr "(Додано у 1.7.19)"
28390
28391 #. type: =head2
28392 #: ../src/guestfs-actions.pod:4702
28393 msgid "guestfs_mkfs_opts_va"
28394 msgstr "guestfs_mkfs_opts_va"
28395
28396 #. type: verbatim
28397 #: ../src/guestfs-actions.pod:4704
28398 #, no-wrap
28399 msgid ""
28400 " int\n"
28401 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28402 "                       const char *fstype,\n"
28403 "                       const char *device,\n"
28404 "                       va_list args);\n"
28405 "\n"
28406 msgstr ""
28407 " int\n"
28408 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28409 "                       const char *fstype,\n"
28410 "                       const char *device,\n"
28411 "                       va_list args);\n"
28412 "\n"
28413
28414 #. type: textblock
28415 #: ../src/guestfs-actions.pod:4710
28416 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28417 msgstr ""
28418
28419 #. type: =head2
28420 #: ../src/guestfs-actions.pod:4714
28421 msgid "guestfs_mkfs_opts_argv"
28422 msgstr "guestfs_mkfs_opts_argv"
28423
28424 #. type: verbatim
28425 #: ../src/guestfs-actions.pod:4716
28426 #, no-wrap
28427 msgid ""
28428 " int\n"
28429 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28430 "                         const char *fstype,\n"
28431 "                         const char *device,\n"
28432 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28433 "\n"
28434 msgstr ""
28435 " int\n"
28436 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28437 "                         const char *fstype,\n"
28438 "                         const char *device,\n"
28439 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28440 "\n"
28441
28442 #. type: textblock
28443 #: ../src/guestfs-actions.pod:4722
28444 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28445 msgstr ""
28446
28447 #. type: =head2
28448 #: ../src/guestfs-actions.pod:4726
28449 msgid "guestfs_mkmountpoint"
28450 msgstr "guestfs_mkmountpoint"
28451
28452 #. type: verbatim
28453 #: ../src/guestfs-actions.pod:4728
28454 #, no-wrap
28455 msgid ""
28456 " int\n"
28457 " guestfs_mkmountpoint (guestfs_h *g,\n"
28458 "                       const char *exemptpath);\n"
28459 "\n"
28460 msgstr ""
28461 " int\n"
28462 " guestfs_mkmountpoint (guestfs_h *g,\n"
28463 "                       const char *exemptpath);\n"
28464 "\n"
28465
28466 #. type: textblock
28467 #: ../src/guestfs-actions.pod:4732
28468 msgid ""
28469 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28470 "that can be used to create extra mountpoints before mounting the first "
28471 "filesystem."
28472 msgstr ""
28473
28474 #. type: textblock
28475 #: ../src/guestfs-actions.pod:4756
28476 msgid ""
28477 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28478 "may get unexpected errors if you try to mix these calls.  It is safest to "
28479 "manually unmount filesystems and remove mountpoints after use."
28480 msgstr ""
28481
28482 #. type: textblock
28483 #: ../src/guestfs-actions.pod:4760
28484 msgid ""
28485 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28486 "first, so for this to work for manual mountpoints, you must ensure that the "
28487 "innermost mountpoints have the longest pathnames, as in the example code "
28488 "above."
28489 msgstr ""
28490
28491 #. type: textblock
28492 #: ../src/guestfs-actions.pod:4767
28493 msgid ""
28494 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28495 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28496 "can also trigger these issues."
28497 msgstr ""
28498
28499 #. type: textblock
28500 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
28501 #: ../src/guestfs-actions.pod:6099
28502 msgid "(Added in 1.0.62)"
28503 msgstr "(Додано у 1.0.62)"
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:4775
28507 msgid "guestfs_mknod"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:4777
28512 #, no-wrap
28513 msgid ""
28514 " int\n"
28515 " guestfs_mknod (guestfs_h *g,\n"
28516 "                int mode,\n"
28517 "                int devmajor,\n"
28518 "                int devminor,\n"
28519 "                const char *path);\n"
28520 "\n"
28521 msgstr ""
28522
28523 #. type: textblock
28524 #: ../src/guestfs-actions.pod:4792
28525 msgid ""
28526 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28527 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28528 "regular file).  These constants are available in the standard Linux header "
28529 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28530 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28531 "the appropriate constant for you."
28532 msgstr ""
28533
28534 #. type: =head2
28535 #: ../src/guestfs-actions.pod:4806
28536 msgid "guestfs_mknod_b"
28537 msgstr ""
28538
28539 #. type: verbatim
28540 #: ../src/guestfs-actions.pod:4808
28541 #, no-wrap
28542 msgid ""
28543 " int\n"
28544 " guestfs_mknod_b (guestfs_h *g,\n"
28545 "                  int mode,\n"
28546 "                  int devmajor,\n"
28547 "                  int devminor,\n"
28548 "                  const char *path);\n"
28549 "\n"
28550 msgstr ""
28551
28552 #. type: textblock
28553 #: ../src/guestfs-actions.pod:4815
28554 msgid ""
28555 "This call creates a block device node called C<path> with mode C<mode> and "
28556 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28557 "wrapper around C<guestfs_mknod>."
28558 msgstr ""
28559
28560 #. type: =head2
28561 #: ../src/guestfs-actions.pod:4825
28562 msgid "guestfs_mknod_c"
28563 msgstr ""
28564
28565 #. type: verbatim
28566 #: ../src/guestfs-actions.pod:4827
28567 #, no-wrap
28568 msgid ""
28569 " int\n"
28570 " guestfs_mknod_c (guestfs_h *g,\n"
28571 "                  int mode,\n"
28572 "                  int devmajor,\n"
28573 "                  int devminor,\n"
28574 "                  const char *path);\n"
28575 "\n"
28576 msgstr ""
28577
28578 #. type: textblock
28579 #: ../src/guestfs-actions.pod:4834
28580 msgid ""
28581 "This call creates a char device node called C<path> with mode C<mode> and "
28582 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28583 "wrapper around C<guestfs_mknod>."
28584 msgstr ""
28585
28586 #. type: =head2
28587 #: ../src/guestfs-actions.pod:4844
28588 msgid "guestfs_mkswap"
28589 msgstr ""
28590
28591 #. type: verbatim
28592 #: ../src/guestfs-actions.pod:4846
28593 #, no-wrap
28594 msgid ""
28595 " int\n"
28596 " guestfs_mkswap (guestfs_h *g,\n"
28597 "                 const char *device);\n"
28598 "\n"
28599 msgstr ""
28600
28601 #. type: =head2
28602 #: ../src/guestfs-actions.pod:4856
28603 msgid "guestfs_mkswap_L"
28604 msgstr ""
28605
28606 #. type: verbatim
28607 #: ../src/guestfs-actions.pod:4858
28608 #, no-wrap
28609 msgid ""
28610 " int\n"
28611 " guestfs_mkswap_L (guestfs_h *g,\n"
28612 "                   const char *label,\n"
28613 "                   const char *device);\n"
28614 "\n"
28615 msgstr ""
28616
28617 #. type: =head2
28618 #: ../src/guestfs-actions.pod:4873
28619 msgid "guestfs_mkswap_U"
28620 msgstr ""
28621
28622 #. type: verbatim
28623 #: ../src/guestfs-actions.pod:4875
28624 #, no-wrap
28625 msgid ""
28626 " int\n"
28627 " guestfs_mkswap_U (guestfs_h *g,\n"
28628 "                   const char *uuid,\n"
28629 "                   const char *device);\n"
28630 "\n"
28631 msgstr ""
28632
28633 #. type: =head2
28634 #: ../src/guestfs-actions.pod:4886
28635 msgid "guestfs_mkswap_file"
28636 msgstr ""
28637
28638 #. type: verbatim
28639 #: ../src/guestfs-actions.pod:4888
28640 #, no-wrap
28641 msgid ""
28642 " int\n"
28643 " guestfs_mkswap_file (guestfs_h *g,\n"
28644 "                      const char *path);\n"
28645 "\n"
28646 msgstr ""
28647
28648 #. type: textblock
28649 #: ../src/guestfs-actions.pod:4894
28650 msgid ""
28651 "This command just writes a swap file signature to an existing file.  To "
28652 "create the file itself, use something like C<guestfs_fallocate>."
28653 msgstr ""
28654
28655 #. type: =head2
28656 #: ../src/guestfs-actions.pod:4901
28657 msgid "guestfs_modprobe"
28658 msgstr ""
28659
28660 #. type: verbatim
28661 #: ../src/guestfs-actions.pod:4903
28662 #, no-wrap
28663 msgid ""
28664 " int\n"
28665 " guestfs_modprobe (guestfs_h *g,\n"
28666 "                   const char *modulename);\n"
28667 "\n"
28668 msgstr ""
28669
28670 #. type: =head2
28671 #: ../src/guestfs-actions.pod:4916
28672 msgid "guestfs_mount"
28673 msgstr ""
28674
28675 #. type: verbatim
28676 #: ../src/guestfs-actions.pod:4918
28677 #, no-wrap
28678 msgid ""
28679 " int\n"
28680 " guestfs_mount (guestfs_h *g,\n"
28681 "                const char *device,\n"
28682 "                const char *mountpoint);\n"
28683 "\n"
28684 msgstr ""
28685
28686 #. type: textblock
28687 #: ../src/guestfs-actions.pod:4923
28688 msgid ""
28689 "I<This function is deprecated.> In new code, use the L</"
28690 "guestfs_mount_options> call instead."
28691 msgstr ""
28692
28693 #. type: textblock
28694 #: ../src/guestfs-actions.pod:4944
28695 msgid ""
28696 "B<Important note:> When you use this call, the filesystem options C<sync> "
28697 "and C<noatime> are set implicitly.  This was originally done because we "
28698 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28699 "very large negative performance impact and negligible effect on "
28700 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28701 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28702 "(use an empty string for the first parameter if you don't want any options)."
28703 msgstr ""
28704
28705 #. type: =head2
28706 #: ../src/guestfs-actions.pod:4958
28707 msgid "guestfs_mount_9p"
28708 msgstr ""
28709
28710 #. type: verbatim
28711 #: ../src/guestfs-actions.pod:4960
28712 #, no-wrap
28713 msgid ""
28714 " int\n"
28715 " guestfs_mount_9p (guestfs_h *g,\n"
28716 "                   const char *mounttag,\n"
28717 "                   const char *mountpoint,\n"
28718 "                   ...);\n"
28719 "\n"
28720 msgstr ""
28721
28722 #. type: verbatim
28723 #: ../src/guestfs-actions.pod:4971
28724 #, no-wrap
28725 msgid ""
28726 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28727 "\n"
28728 msgstr ""
28729
28730 #. type: =head2
28731 #: ../src/guestfs-actions.pod:4984
28732 msgid "guestfs_mount_9p_va"
28733 msgstr ""
28734
28735 #. type: verbatim
28736 #: ../src/guestfs-actions.pod:4986
28737 #, no-wrap
28738 msgid ""
28739 " int\n"
28740 " guestfs_mount_9p_va (guestfs_h *g,\n"
28741 "                      const char *mounttag,\n"
28742 "                      const char *mountpoint,\n"
28743 "                      va_list args);\n"
28744 "\n"
28745 msgstr ""
28746
28747 #. type: textblock
28748 #: ../src/guestfs-actions.pod:4992
28749 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28750 msgstr ""
28751
28752 #. type: =head2
28753 #: ../src/guestfs-actions.pod:4996
28754 msgid "guestfs_mount_9p_argv"
28755 msgstr ""
28756
28757 #. type: verbatim
28758 #: ../src/guestfs-actions.pod:4998
28759 #, no-wrap
28760 msgid ""
28761 " int\n"
28762 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28763 "                        const char *mounttag,\n"
28764 "                        const char *mountpoint,\n"
28765 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28766 "\n"
28767 msgstr ""
28768
28769 #. type: textblock
28770 #: ../src/guestfs-actions.pod:5004
28771 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28772 msgstr ""
28773
28774 #. type: =head2
28775 #: ../src/guestfs-actions.pod:5008
28776 msgid "guestfs_mount_loop"
28777 msgstr ""
28778
28779 #. type: verbatim
28780 #: ../src/guestfs-actions.pod:5010
28781 #, no-wrap
28782 msgid ""
28783 " int\n"
28784 " guestfs_mount_loop (guestfs_h *g,\n"
28785 "                     const char *file,\n"
28786 "                     const char *mountpoint);\n"
28787 "\n"
28788 msgstr ""
28789
28790 #. type: =head2
28791 #: ../src/guestfs-actions.pod:5023
28792 msgid "guestfs_mount_options"
28793 msgstr ""
28794
28795 #. type: verbatim
28796 #: ../src/guestfs-actions.pod:5025
28797 #, no-wrap
28798 msgid ""
28799 " int\n"
28800 " guestfs_mount_options (guestfs_h *g,\n"
28801 "                        const char *options,\n"
28802 "                        const char *device,\n"
28803 "                        const char *mountpoint);\n"
28804 "\n"
28805 msgstr ""
28806
28807 #. type: textblock
28808 #: ../src/guestfs-actions.pod:5031
28809 msgid ""
28810 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28811 "the mount options as for the L<mount(8)> I<-o> flag."
28812 msgstr ""
28813
28814 #. type: textblock
28815 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
28816 #: ../src/guestfs-actions.pod:5072
28817 msgid "(Added in 1.0.10)"
28818 msgstr ""
28819
28820 #. type: =head2
28821 #: ../src/guestfs-actions.pod:5043
28822 msgid "guestfs_mount_ro"
28823 msgstr ""
28824
28825 #. type: verbatim
28826 #: ../src/guestfs-actions.pod:5045
28827 #, no-wrap
28828 msgid ""
28829 " int\n"
28830 " guestfs_mount_ro (guestfs_h *g,\n"
28831 "                   const char *device,\n"
28832 "                   const char *mountpoint);\n"
28833 "\n"
28834 msgstr ""
28835
28836 #. type: textblock
28837 #: ../src/guestfs-actions.pod:5050
28838 msgid ""
28839 "This is the same as the C<guestfs_mount> command, but it mounts the "
28840 "filesystem with the read-only (I<-o ro>) flag."
28841 msgstr ""
28842
28843 #. type: =head2
28844 #: ../src/guestfs-actions.pod:5057
28845 msgid "guestfs_mount_vfs"
28846 msgstr ""
28847
28848 #. type: verbatim
28849 #: ../src/guestfs-actions.pod:5059
28850 #, no-wrap
28851 msgid ""
28852 " int\n"
28853 " guestfs_mount_vfs (guestfs_h *g,\n"
28854 "                    const char *options,\n"
28855 "                    const char *vfstype,\n"
28856 "                    const char *device,\n"
28857 "                    const char *mountpoint);\n"
28858 "\n"
28859 msgstr ""
28860
28861 #. type: textblock
28862 #: ../src/guestfs-actions.pod:5066
28863 msgid ""
28864 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28865 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28866 "t> flags."
28867 msgstr ""
28868
28869 #. type: =head2
28870 #: ../src/guestfs-actions.pod:5074
28871 msgid "guestfs_mountpoints"
28872 msgstr ""
28873
28874 #. type: verbatim
28875 #: ../src/guestfs-actions.pod:5076
28876 #, no-wrap
28877 msgid ""
28878 " char **\n"
28879 " guestfs_mountpoints (guestfs_h *g);\n"
28880 "\n"
28881 msgstr ""
28882
28883 #. type: textblock
28884 #: ../src/guestfs-actions.pod:5079
28885 msgid ""
28886 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28887 "devices.  This one returns a hash table (map) of device name to directory "
28888 "where the device is mounted."
28889 msgstr ""
28890
28891 #. type: =head2
28892 #: ../src/guestfs-actions.pod:5091
28893 msgid "guestfs_mounts"
28894 msgstr ""
28895
28896 #. type: verbatim
28897 #: ../src/guestfs-actions.pod:5093
28898 #, no-wrap
28899 msgid ""
28900 " char **\n"
28901 " guestfs_mounts (guestfs_h *g);\n"
28902 "\n"
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../src/guestfs-actions.pod:5101
28907 msgid "See also: C<guestfs_mountpoints>"
28908 msgstr ""
28909
28910 #. type: =head2
28911 #: ../src/guestfs-actions.pod:5109
28912 msgid "guestfs_mv"
28913 msgstr ""
28914
28915 #. type: verbatim
28916 #: ../src/guestfs-actions.pod:5111
28917 #, no-wrap
28918 msgid ""
28919 " int\n"
28920 " guestfs_mv (guestfs_h *g,\n"
28921 "             const char *src,\n"
28922 "             const char *dest);\n"
28923 "\n"
28924 msgstr ""
28925
28926 #. type: =head2
28927 #: ../src/guestfs-actions.pod:5123
28928 msgid "guestfs_ntfs_3g_probe"
28929 msgstr ""
28930
28931 #. type: verbatim
28932 #: ../src/guestfs-actions.pod:5125
28933 #, no-wrap
28934 msgid ""
28935 " int\n"
28936 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28937 "                        int rw,\n"
28938 "                        const char *device);\n"
28939 "\n"
28940 msgstr ""
28941
28942 #. type: textblock
28943 #: ../src/guestfs-actions.pod:5144
28944 msgid "(Added in 1.0.43)"
28945 msgstr ""
28946
28947 #. type: =head2
28948 #: ../src/guestfs-actions.pod:5146
28949 msgid "guestfs_ntfsresize"
28950 msgstr ""
28951
28952 #. type: verbatim
28953 #: ../src/guestfs-actions.pod:5148
28954 #, no-wrap
28955 msgid ""
28956 " int\n"
28957 " guestfs_ntfsresize (guestfs_h *g,\n"
28958 "                     const char *device);\n"
28959 "\n"
28960 msgstr ""
28961
28962 #. type: textblock
28963 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
28964 msgid ""
28965 "I<This function is deprecated.> In new code, use the L</"
28966 "guestfs_ntfsresize_opts> call instead."
28967 msgstr ""
28968
28969 #. type: =head2
28970 #: ../src/guestfs-actions.pod:5176
28971 msgid "guestfs_ntfsresize_opts"
28972 msgstr ""
28973
28974 #. type: verbatim
28975 #: ../src/guestfs-actions.pod:5178
28976 #, no-wrap
28977 msgid ""
28978 " int\n"
28979 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28980 "                          const char *device,\n"
28981 "                          ...);\n"
28982 "\n"
28983 msgstr ""
28984
28985 #. type: verbatim
28986 #: ../src/guestfs-actions.pod:5188
28987 #, no-wrap
28988 msgid ""
28989 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28990 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28991 "\n"
28992 msgstr ""
28993
28994 #. type: textblock
28995 #: ../src/guestfs-actions.pod:5208
28996 msgid ""
28997 "After the resize operation, the filesystem is always marked as requiring a "
28998 "consistency check (for safety).  You have to boot into Windows to perform "
28999 "this check and clear this condition.  If you I<don't> set the C<force> "
29000 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29001 "times on a single filesystem without booting into Windows between each "
29002 "resize."
29003 msgstr ""
29004
29005 #. type: =head2
29006 #: ../src/guestfs-actions.pod:5223
29007 msgid "guestfs_ntfsresize_opts_va"
29008 msgstr ""
29009
29010 #. type: verbatim
29011 #: ../src/guestfs-actions.pod:5225
29012 #, no-wrap
29013 msgid ""
29014 " int\n"
29015 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29016 "                             const char *device,\n"
29017 "                             va_list args);\n"
29018 "\n"
29019 msgstr ""
29020
29021 #. type: textblock
29022 #: ../src/guestfs-actions.pod:5230
29023 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29024 msgstr ""
29025
29026 #. type: =head2
29027 #: ../src/guestfs-actions.pod:5234
29028 msgid "guestfs_ntfsresize_opts_argv"
29029 msgstr ""
29030
29031 #. type: verbatim
29032 #: ../src/guestfs-actions.pod:5236
29033 #, no-wrap
29034 msgid ""
29035 " int\n"
29036 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29037 "                               const char *device,\n"
29038 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29039 "\n"
29040 msgstr ""
29041
29042 #. type: textblock
29043 #: ../src/guestfs-actions.pod:5241
29044 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29045 msgstr ""
29046
29047 #. type: =head2
29048 #: ../src/guestfs-actions.pod:5245
29049 msgid "guestfs_ntfsresize_size"
29050 msgstr ""
29051
29052 #. type: verbatim
29053 #: ../src/guestfs-actions.pod:5247
29054 #, no-wrap
29055 msgid ""
29056 " int\n"
29057 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29058 "                          const char *device,\n"
29059 "                          int64_t size);\n"
29060 "\n"
29061 msgstr ""
29062
29063 #. type: textblock
29064 #: ../src/guestfs-actions.pod:5259
29065 msgid ""
29066 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29067 "to specify the new size (in bytes) explicitly."
29068 msgstr ""
29069
29070 #. type: textblock
29071 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
29072 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
29073 #: ../src/guestfs-actions.pod:7670
29074 msgid "(Added in 1.3.14)"
29075 msgstr ""
29076
29077 #. type: =head2
29078 #: ../src/guestfs-actions.pod:5266
29079 msgid "guestfs_part_add"
29080 msgstr ""
29081
29082 #. type: verbatim
29083 #: ../src/guestfs-actions.pod:5268
29084 #, no-wrap
29085 msgid ""
29086 " int\n"
29087 " guestfs_part_add (guestfs_h *g,\n"
29088 "                   const char *device,\n"
29089 "                   const char *prlogex,\n"
29090 "                   int64_t startsect,\n"
29091 "                   int64_t endsect);\n"
29092 "\n"
29093 msgstr ""
29094
29095 #. type: textblock
29096 #: ../src/guestfs-actions.pod:5275
29097 msgid ""
29098 "This command adds a partition to C<device>.  If there is no partition table "
29099 "on the device, call C<guestfs_part_init> first."
29100 msgstr ""
29101
29102 #. type: textblock
29103 #: ../src/guestfs-actions.pod:5287
29104 msgid ""
29105 "Creating a partition which covers the whole disk is not so easy.  Use "
29106 "C<guestfs_part_disk> to do that."
29107 msgstr ""
29108
29109 #. type: textblock
29110 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
29111 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
29112 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
29113 #: ../src/guestfs-actions.pod:5564
29114 msgid "(Added in 1.0.78)"
29115 msgstr ""
29116
29117 #. type: =head2
29118 #: ../src/guestfs-actions.pod:5294
29119 msgid "guestfs_part_del"
29120 msgstr ""
29121
29122 #. type: verbatim
29123 #: ../src/guestfs-actions.pod:5296
29124 #, no-wrap
29125 msgid ""
29126 " int\n"
29127 " guestfs_part_del (guestfs_h *g,\n"
29128 "                   const char *device,\n"
29129 "                   int partnum);\n"
29130 "\n"
29131 msgstr ""
29132
29133 #. type: =head2
29134 #: ../src/guestfs-actions.pod:5311
29135 msgid "guestfs_part_disk"
29136 msgstr ""
29137
29138 #. type: verbatim
29139 #: ../src/guestfs-actions.pod:5313
29140 #, no-wrap
29141 msgid ""
29142 " int\n"
29143 " guestfs_part_disk (guestfs_h *g,\n"
29144 "                    const char *device,\n"
29145 "                    const char *parttype);\n"
29146 "\n"
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:5318
29151 msgid ""
29152 "This command is simply a combination of C<guestfs_part_init> followed by "
29153 "C<guestfs_part_add> to create a single primary partition covering the whole "
29154 "disk."
29155 msgstr ""
29156
29157 #. type: textblock
29158 #: ../src/guestfs-actions.pod:5322
29159 msgid ""
29160 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29161 "possible values are described in C<guestfs_part_init>."
29162 msgstr ""
29163
29164 #. type: =head2
29165 #: ../src/guestfs-actions.pod:5332
29166 msgid "guestfs_part_get_bootable"
29167 msgstr ""
29168
29169 #. type: verbatim
29170 #: ../src/guestfs-actions.pod:5334
29171 #, no-wrap
29172 msgid ""
29173 " int\n"
29174 " guestfs_part_get_bootable (guestfs_h *g,\n"
29175 "                            const char *device,\n"
29176 "                            int partnum);\n"
29177 "\n"
29178 msgstr ""
29179
29180 #. type: textblock
29181 #: ../src/guestfs-actions.pod:5342
29182 msgid "See also C<guestfs_part_set_bootable>."
29183 msgstr ""
29184
29185 #. type: =head2
29186 #: ../src/guestfs-actions.pod:5348
29187 msgid "guestfs_part_get_mbr_id"
29188 msgstr ""
29189
29190 #. type: verbatim
29191 #: ../src/guestfs-actions.pod:5350
29192 #, no-wrap
29193 msgid ""
29194 " int\n"
29195 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29196 "                          const char *device,\n"
29197 "                          int partnum);\n"
29198 "\n"
29199 msgstr ""
29200
29201 #. type: textblock
29202 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
29203 msgid ""
29204 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29205 "undefined results for other partition table types (see "
29206 "C<guestfs_part_get_parttype>)."
29207 msgstr ""
29208
29209 #. type: =head2
29210 #: ../src/guestfs-actions.pod:5366
29211 msgid "guestfs_part_get_parttype"
29212 msgstr ""
29213
29214 #. type: verbatim
29215 #: ../src/guestfs-actions.pod:5368
29216 #, no-wrap
29217 msgid ""
29218 " char *\n"
29219 " guestfs_part_get_parttype (guestfs_h *g,\n"
29220 "                            const char *device);\n"
29221 "\n"
29222 msgstr ""
29223
29224 #. type: textblock
29225 #: ../src/guestfs-actions.pod:5375
29226 msgid ""
29227 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29228 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29229 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29230 msgstr ""
29231
29232 #. type: =head2
29233 #: ../src/guestfs-actions.pod:5385
29234 msgid "guestfs_part_init"
29235 msgstr ""
29236
29237 #. type: verbatim
29238 #: ../src/guestfs-actions.pod:5387
29239 #, no-wrap
29240 msgid ""
29241 " int\n"
29242 " guestfs_part_init (guestfs_h *g,\n"
29243 "                    const char *device,\n"
29244 "                    const char *parttype);\n"
29245 "\n"
29246 msgstr ""
29247
29248 #. type: textblock
29249 #: ../src/guestfs-actions.pod:5396
29250 msgid ""
29251 "Initially there are no partitions.  Following this, you should call "
29252 "C<guestfs_part_add> for each partition required."
29253 msgstr ""
29254
29255 #. type: =head2
29256 #: ../src/guestfs-actions.pod:5469
29257 msgid "guestfs_part_list"
29258 msgstr "guestfs_part_list"
29259
29260 #. type: verbatim
29261 #: ../src/guestfs-actions.pod:5471
29262 #, no-wrap
29263 msgid ""
29264 " struct guestfs_partition_list *\n"
29265 " guestfs_part_list (guestfs_h *g,\n"
29266 "                    const char *device);\n"
29267 "\n"
29268 msgstr ""
29269 " struct guestfs_partition_list *\n"
29270 " guestfs_part_list (guestfs_h *g,\n"
29271 "                    const char *device);\n"
29272 "\n"
29273
29274 #. type: textblock
29275 #: ../src/guestfs-actions.pod:5488
29276 msgid ""
29277 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29278 "the device's sector size, see C<guestfs_blockdev_getss>."
29279 msgstr ""
29280
29281 #. type: textblock
29282 #: ../src/guestfs-actions.pod:5501
29283 msgid ""
29284 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29285 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29286 "use>."
29287 msgstr ""
29288
29289 #. type: =head2
29290 #: ../src/guestfs-actions.pod:5507
29291 msgid "guestfs_part_set_bootable"
29292 msgstr ""
29293
29294 #. type: verbatim
29295 #: ../src/guestfs-actions.pod:5509
29296 #, no-wrap
29297 msgid ""
29298 " int\n"
29299 " guestfs_part_set_bootable (guestfs_h *g,\n"
29300 "                            const char *device,\n"
29301 "                            int partnum,\n"
29302 "                            int bootable);\n"
29303 "\n"
29304 msgstr ""
29305
29306 #. type: =head2
29307 #: ../src/guestfs-actions.pod:5526
29308 msgid "guestfs_part_set_mbr_id"
29309 msgstr ""
29310
29311 #. type: verbatim
29312 #: ../src/guestfs-actions.pod:5528
29313 #, no-wrap
29314 msgid ""
29315 " int\n"
29316 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29317 "                          const char *device,\n"
29318 "                          int partnum,\n"
29319 "                          int idbyte);\n"
29320 "\n"
29321 msgstr ""
29322
29323 #. type: =head2
29324 #: ../src/guestfs-actions.pod:5548
29325 msgid "guestfs_part_set_name"
29326 msgstr ""
29327
29328 #. type: verbatim
29329 #: ../src/guestfs-actions.pod:5550
29330 #, no-wrap
29331 msgid ""
29332 " int\n"
29333 " guestfs_part_set_name (guestfs_h *g,\n"
29334 "                        const char *device,\n"
29335 "                        int partnum,\n"
29336 "                        const char *name);\n"
29337 "\n"
29338 msgstr ""
29339
29340 #. type: =head2
29341 #: ../src/guestfs-actions.pod:5566
29342 msgid "guestfs_part_to_dev"
29343 msgstr ""
29344
29345 #. type: verbatim
29346 #: ../src/guestfs-actions.pod:5568
29347 #, no-wrap
29348 msgid ""
29349 " char *\n"
29350 " guestfs_part_to_dev (guestfs_h *g,\n"
29351 "                      const char *partition);\n"
29352 "\n"
29353 msgstr ""
29354
29355 #. type: textblock
29356 #: ../src/guestfs-actions.pod:5576
29357 msgid ""
29358 "The named partition must exist, for example as a string returned from "
29359 "C<guestfs_list_partitions>."
29360 msgstr ""
29361
29362 #. type: =head2
29363 #: ../src/guestfs-actions.pod:5584
29364 msgid "guestfs_ping_daemon"
29365 msgstr ""
29366
29367 #. type: verbatim
29368 #: ../src/guestfs-actions.pod:5586
29369 #, no-wrap
29370 msgid ""
29371 " int\n"
29372 " guestfs_ping_daemon (guestfs_h *g);\n"
29373 "\n"
29374 msgstr ""
29375
29376 #. type: =head2
29377 #: ../src/guestfs-actions.pod:5598
29378 msgid "guestfs_pread"
29379 msgstr ""
29380
29381 #. type: verbatim
29382 #: ../src/guestfs-actions.pod:5600
29383 #, no-wrap
29384 msgid ""
29385 " char *\n"
29386 " guestfs_pread (guestfs_h *g,\n"
29387 "                const char *path,\n"
29388 "                int count,\n"
29389 "                int64_t offset,\n"
29390 "                size_t *size_r);\n"
29391 "\n"
29392 msgstr ""
29393
29394 #. type: textblock
29395 #: ../src/guestfs-actions.pod:5613
29396 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29397 msgstr ""
29398
29399 #. type: =head2
29400 #: ../src/guestfs-actions.pod:5624
29401 msgid "guestfs_pread_device"
29402 msgstr ""
29403
29404 #. type: verbatim
29405 #: ../src/guestfs-actions.pod:5626
29406 #, no-wrap
29407 msgid ""
29408 " char *\n"
29409 " guestfs_pread_device (guestfs_h *g,\n"
29410 "                       const char *device,\n"
29411 "                       int count,\n"
29412 "                       int64_t offset,\n"
29413 "                       size_t *size_r);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:5639
29419 msgid "See also C<guestfs_pread>."
29420 msgstr ""
29421
29422 #. type: textblock
29423 #: ../src/guestfs-actions.pod:5648
29424 msgid "(Added in 1.5.21)"
29425 msgstr ""
29426
29427 #. type: =head2
29428 #: ../src/guestfs-actions.pod:5650
29429 msgid "guestfs_pvcreate"
29430 msgstr ""
29431
29432 #. type: verbatim
29433 #: ../src/guestfs-actions.pod:5652
29434 #, no-wrap
29435 msgid ""
29436 " int\n"
29437 " guestfs_pvcreate (guestfs_h *g,\n"
29438 "                   const char *device);\n"
29439 "\n"
29440 msgstr ""
29441
29442 #. type: =head2
29443 #: ../src/guestfs-actions.pod:5664
29444 msgid "guestfs_pvremove"
29445 msgstr ""
29446
29447 #. type: verbatim
29448 #: ../src/guestfs-actions.pod:5666
29449 #, no-wrap
29450 msgid ""
29451 " int\n"
29452 " guestfs_pvremove (guestfs_h *g,\n"
29453 "                   const char *device);\n"
29454 "\n"
29455 msgstr ""
29456
29457 #. type: =head2
29458 #: ../src/guestfs-actions.pod:5681
29459 msgid "guestfs_pvresize"
29460 msgstr ""
29461
29462 #. type: verbatim
29463 #: ../src/guestfs-actions.pod:5683
29464 #, no-wrap
29465 msgid ""
29466 " int\n"
29467 " guestfs_pvresize (guestfs_h *g,\n"
29468 "                   const char *device);\n"
29469 "\n"
29470 msgstr ""
29471
29472 #. type: =head2
29473 #: ../src/guestfs-actions.pod:5694
29474 msgid "guestfs_pvresize_size"
29475 msgstr ""
29476
29477 #. type: verbatim
29478 #: ../src/guestfs-actions.pod:5696
29479 #, no-wrap
29480 msgid ""
29481 " int\n"
29482 " guestfs_pvresize_size (guestfs_h *g,\n"
29483 "                        const char *device,\n"
29484 "                        int64_t size);\n"
29485 "\n"
29486 msgstr ""
29487
29488 #. type: textblock
29489 #: ../src/guestfs-actions.pod:5701
29490 msgid ""
29491 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29492 "specify the new size (in bytes) explicitly."
29493 msgstr ""
29494
29495 #. type: =head2
29496 #: ../src/guestfs-actions.pod:5708
29497 msgid "guestfs_pvs"
29498 msgstr ""
29499
29500 #. type: verbatim
29501 #: ../src/guestfs-actions.pod:5710
29502 #, no-wrap
29503 msgid ""
29504 " char **\n"
29505 " guestfs_pvs (guestfs_h *g);\n"
29506 "\n"
29507 msgstr ""
29508
29509 #. type: textblock
29510 #: ../src/guestfs-actions.pod:5719
29511 msgid "See also C<guestfs_pvs_full>."
29512 msgstr ""
29513
29514 #. type: =head2
29515 #: ../src/guestfs-actions.pod:5727
29516 msgid "guestfs_pvs_full"
29517 msgstr ""
29518
29519 #. type: verbatim
29520 #: ../src/guestfs-actions.pod:5729
29521 #, no-wrap
29522 msgid ""
29523 " struct guestfs_lvm_pv_list *\n"
29524 " guestfs_pvs_full (guestfs_h *g);\n"
29525 "\n"
29526 msgstr ""
29527
29528 #. type: textblock
29529 #: ../src/guestfs-actions.pod:5735
29530 msgid ""
29531 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29532 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29533 msgstr ""
29534
29535 #. type: =head2
29536 #: ../src/guestfs-actions.pod:5741
29537 msgid "guestfs_pvuuid"
29538 msgstr ""
29539
29540 #. type: verbatim
29541 #: ../src/guestfs-actions.pod:5743
29542 #, no-wrap
29543 msgid ""
29544 " char *\n"
29545 " guestfs_pvuuid (guestfs_h *g,\n"
29546 "                 const char *device);\n"
29547 "\n"
29548 msgstr ""
29549
29550 #. type: =head2
29551 #: ../src/guestfs-actions.pod:5754
29552 msgid "guestfs_pwrite"
29553 msgstr ""
29554
29555 #. type: verbatim
29556 #: ../src/guestfs-actions.pod:5756
29557 #, no-wrap
29558 msgid ""
29559 " int\n"
29560 " guestfs_pwrite (guestfs_h *g,\n"
29561 "                 const char *path,\n"
29562 "                 const char *content,\n"
29563 "                 size_t content_size,\n"
29564 "                 int64_t offset);\n"
29565 "\n"
29566 msgstr ""
29567
29568 #. type: textblock
29569 #: ../src/guestfs-actions.pod:5772
29570 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29571 msgstr ""
29572
29573 #. type: =head2
29574 #: ../src/guestfs-actions.pod:5781
29575 msgid "guestfs_pwrite_device"
29576 msgstr ""
29577
29578 #. type: verbatim
29579 #: ../src/guestfs-actions.pod:5783
29580 #, no-wrap
29581 msgid ""
29582 " int\n"
29583 " guestfs_pwrite_device (guestfs_h *g,\n"
29584 "                        const char *device,\n"
29585 "                        const char *content,\n"
29586 "                        size_t content_size,\n"
29587 "                        int64_t offset);\n"
29588 "\n"
29589 msgstr ""
29590
29591 #. type: textblock
29592 #: ../src/guestfs-actions.pod:5798
29593 msgid "See also C<guestfs_pwrite>."
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../src/guestfs-actions.pod:5805
29598 msgid "(Added in 1.5.20)"
29599 msgstr ""
29600
29601 #. type: =head2
29602 #: ../src/guestfs-actions.pod:5807
29603 msgid "guestfs_read_file"
29604 msgstr ""
29605
29606 #. type: verbatim
29607 #: ../src/guestfs-actions.pod:5809
29608 #, no-wrap
29609 msgid ""
29610 " char *\n"
29611 " guestfs_read_file (guestfs_h *g,\n"
29612 "                    const char *path,\n"
29613 "                    size_t *size_r);\n"
29614 "\n"
29615 msgstr ""
29616
29617 #. type: textblock
29618 #: ../src/guestfs-actions.pod:5817
29619 msgid ""
29620 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29621 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29622 "function is limited in the total size of file that can be handled."
29623 msgstr ""
29624
29625 #. type: textblock
29626 #: ../src/guestfs-actions.pod:5829
29627 msgid "(Added in 1.0.63)"
29628 msgstr ""
29629
29630 #. type: =head2
29631 #: ../src/guestfs-actions.pod:5831
29632 msgid "guestfs_read_lines"
29633 msgstr ""
29634
29635 #. type: verbatim
29636 #: ../src/guestfs-actions.pod:5833
29637 #, no-wrap
29638 msgid ""
29639 " char **\n"
29640 " guestfs_read_lines (guestfs_h *g,\n"
29641 "                     const char *path);\n"
29642 "\n"
29643 msgstr ""
29644
29645 #. type: textblock
29646 #: ../src/guestfs-actions.pod:5842
29647 msgid ""
29648 "Note that this function cannot correctly handle binary files (specifically, "
29649 "files containing C<\\0> character which is treated as end of line).  For "
29650 "those you need to use the C<guestfs_read_file> function which has a more "
29651 "complex interface."
29652 msgstr ""
29653
29654 #. type: =head2
29655 #: ../src/guestfs-actions.pod:5853
29656 msgid "guestfs_readdir"
29657 msgstr ""
29658
29659 #. type: verbatim
29660 #: ../src/guestfs-actions.pod:5855
29661 #, no-wrap
29662 msgid ""
29663 " struct guestfs_dirent_list *\n"
29664 " guestfs_readdir (guestfs_h *g,\n"
29665 "                  const char *dir);\n"
29666 "\n"
29667 msgstr ""
29668
29669 #. type: textblock
29670 #: ../src/guestfs-actions.pod:5909
29671 msgid ""
29672 "This function is primarily intended for use by programs.  To get a simple "
29673 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29674 "consumption, use C<guestfs_ll>."
29675 msgstr ""
29676
29677 #. type: textblock
29678 #: ../src/guestfs-actions.pod:5913
29679 msgid ""
29680 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29681 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29682 msgstr ""
29683
29684 #. type: =head2
29685 #: ../src/guestfs-actions.pod:5919
29686 msgid "guestfs_readlink"
29687 msgstr ""
29688
29689 #. type: verbatim
29690 #: ../src/guestfs-actions.pod:5921
29691 #, no-wrap
29692 msgid ""
29693 " char *\n"
29694 " guestfs_readlink (guestfs_h *g,\n"
29695 "                   const char *path);\n"
29696 "\n"
29697 msgstr ""
29698
29699 #. type: =head2
29700 #: ../src/guestfs-actions.pod:5932
29701 msgid "guestfs_readlinklist"
29702 msgstr ""
29703
29704 #. type: verbatim
29705 #: ../src/guestfs-actions.pod:5934
29706 #, no-wrap
29707 msgid ""
29708 " char **\n"
29709 " guestfs_readlinklist (guestfs_h *g,\n"
29710 "                       const char *path,\n"
29711 "                       char *const *names);\n"
29712 "\n"
29713 msgstr ""
29714
29715 #. type: =head2
29716 #: ../src/guestfs-actions.pod:5967
29717 msgid "guestfs_realpath"
29718 msgstr ""
29719
29720 #. type: verbatim
29721 #: ../src/guestfs-actions.pod:5969
29722 #, no-wrap
29723 msgid ""
29724 " char *\n"
29725 " guestfs_realpath (guestfs_h *g,\n"
29726 "                   const char *path);\n"
29727 "\n"
29728 msgstr ""
29729
29730 #. type: =head2
29731 #: ../src/guestfs-actions.pod:5981
29732 msgid "guestfs_removexattr"
29733 msgstr ""
29734
29735 #. type: verbatim
29736 #: ../src/guestfs-actions.pod:5983
29737 #, no-wrap
29738 msgid ""
29739 " int\n"
29740 " guestfs_removexattr (guestfs_h *g,\n"
29741 "                      const char *xattr,\n"
29742 "                      const char *path);\n"
29743 "\n"
29744 msgstr ""
29745
29746 #. type: textblock
29747 #: ../src/guestfs-actions.pod:5991
29748 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29749 msgstr ""
29750
29751 #. type: =head2
29752 #: ../src/guestfs-actions.pod:5997
29753 msgid "guestfs_resize2fs"
29754 msgstr ""
29755
29756 #. type: verbatim
29757 #: ../src/guestfs-actions.pod:5999
29758 #, no-wrap
29759 msgid ""
29760 " int\n"
29761 " guestfs_resize2fs (guestfs_h *g,\n"
29762 "                    const char *device);\n"
29763 "\n"
29764 msgstr ""
29765
29766 #. type: textblock
29767 #: ../src/guestfs-actions.pod:6006
29768 msgid ""
29769 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29770 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29771 "sometimes gives an error about this and sometimes not.  In any case, it is "
29772 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29773 msgstr ""
29774
29775 #. type: =head2
29776 #: ../src/guestfs-actions.pod:6016
29777 msgid "guestfs_resize2fs_M"
29778 msgstr ""
29779
29780 #. type: verbatim
29781 #: ../src/guestfs-actions.pod:6018
29782 #, no-wrap
29783 msgid ""
29784 " int\n"
29785 " guestfs_resize2fs_M (guestfs_h *g,\n"
29786 "                      const char *device);\n"
29787 "\n"
29788 msgstr ""
29789
29790 #. type: textblock
29791 #: ../src/guestfs-actions.pod:6022
29792 msgid ""
29793 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29794 "resized to its minimum size.  This works like the I<-M> option to the "
29795 "C<resize2fs> command."
29796 msgstr ""
29797
29798 #. type: textblock
29799 #: ../src/guestfs-actions.pod:6026
29800 msgid ""
29801 "To get the resulting size of the filesystem you should call "
29802 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29803 "These two numbers, multiplied together, give the resulting size of the "
29804 "minimal filesystem in bytes."
29805 msgstr ""
29806
29807 #. type: =head2
29808 #: ../src/guestfs-actions.pod:6035
29809 msgid "guestfs_resize2fs_size"
29810 msgstr ""
29811
29812 #. type: verbatim
29813 #: ../src/guestfs-actions.pod:6037
29814 #, no-wrap
29815 msgid ""
29816 " int\n"
29817 " guestfs_resize2fs_size (guestfs_h *g,\n"
29818 "                         const char *device,\n"
29819 "                         int64_t size);\n"
29820 "\n"
29821 msgstr ""
29822
29823 #. type: textblock
29824 #: ../src/guestfs-actions.pod:6042
29825 msgid ""
29826 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29827 "to specify the new size (in bytes) explicitly."
29828 msgstr ""
29829
29830 #. type: =head2
29831 #: ../src/guestfs-actions.pod:6049
29832 msgid "guestfs_rm"
29833 msgstr ""
29834
29835 #. type: verbatim
29836 #: ../src/guestfs-actions.pod:6051
29837 #, no-wrap
29838 msgid ""
29839 " int\n"
29840 " guestfs_rm (guestfs_h *g,\n"
29841 "             const char *path);\n"
29842 "\n"
29843 msgstr ""
29844
29845 #. type: =head2
29846 #: ../src/guestfs-actions.pod:6061
29847 msgid "guestfs_rm_rf"
29848 msgstr ""
29849
29850 #. type: verbatim
29851 #: ../src/guestfs-actions.pod:6063
29852 #, no-wrap
29853 msgid ""
29854 " int\n"
29855 " guestfs_rm_rf (guestfs_h *g,\n"
29856 "                const char *path);\n"
29857 "\n"
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:6075
29862 msgid "guestfs_rmdir"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:6077
29867 #, no-wrap
29868 msgid ""
29869 " int\n"
29870 " guestfs_rmdir (guestfs_h *g,\n"
29871 "                const char *path);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: =head2
29876 #: ../src/guestfs-actions.pod:6087
29877 msgid "guestfs_rmmountpoint"
29878 msgstr ""
29879
29880 #. type: verbatim
29881 #: ../src/guestfs-actions.pod:6089
29882 #, no-wrap
29883 msgid ""
29884 " int\n"
29885 " guestfs_rmmountpoint (guestfs_h *g,\n"
29886 "                       const char *exemptpath);\n"
29887 "\n"
29888 msgstr ""
29889
29890 #. type: textblock
29891 #: ../src/guestfs-actions.pod:6093
29892 msgid ""
29893 "This calls removes a mountpoint that was previously created with "
29894 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29895 msgstr ""
29896
29897 #. type: =head2
29898 #: ../src/guestfs-actions.pod:6101
29899 msgid "guestfs_scrub_device"
29900 msgstr ""
29901
29902 #. type: verbatim
29903 #: ../src/guestfs-actions.pod:6103
29904 #, no-wrap
29905 msgid ""
29906 " int\n"
29907 " guestfs_scrub_device (guestfs_h *g,\n"
29908 "                       const char *device);\n"
29909 "\n"
29910 msgstr ""
29911
29912 #. type: textblock
29913 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
29914 #: ../src/guestfs-actions.pod:6155
29915 msgid "(Added in 1.0.52)"
29916 msgstr ""
29917
29918 #. type: =head2
29919 #: ../src/guestfs-actions.pod:6120
29920 msgid "guestfs_scrub_file"
29921 msgstr ""
29922
29923 #. type: verbatim
29924 #: ../src/guestfs-actions.pod:6122
29925 #, no-wrap
29926 msgid ""
29927 " int\n"
29928 " guestfs_scrub_file (guestfs_h *g,\n"
29929 "                     const char *file);\n"
29930 "\n"
29931 msgstr ""
29932
29933 #. type: =head2
29934 #: ../src/guestfs-actions.pod:6138
29935 msgid "guestfs_scrub_freespace"
29936 msgstr ""
29937
29938 #. type: verbatim
29939 #: ../src/guestfs-actions.pod:6140
29940 #, no-wrap
29941 msgid ""
29942 " int\n"
29943 " guestfs_scrub_freespace (guestfs_h *g,\n"
29944 "                          const char *dir);\n"
29945 "\n"
29946 msgstr ""
29947
29948 #. type: textblock
29949 #: ../src/guestfs-actions.pod:6144
29950 msgid ""
29951 "This command creates the directory C<dir> and then fills it with files until "
29952 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29953 "and deletes them.  The intention is to scrub any free space on the partition "
29954 "containing C<dir>."
29955 msgstr ""
29956
29957 #. type: =head2
29958 #: ../src/guestfs-actions.pod:6157
29959 msgid "guestfs_set_append"
29960 msgstr ""
29961
29962 #. type: verbatim
29963 #: ../src/guestfs-actions.pod:6159
29964 #, no-wrap
29965 msgid ""
29966 " int\n"
29967 " guestfs_set_append (guestfs_h *g,\n"
29968 "                     const char *append);\n"
29969 "\n"
29970 msgstr ""
29971
29972 #. type: =head2
29973 #: ../src/guestfs-actions.pod:6176
29974 msgid "guestfs_set_attach_method"
29975 msgstr ""
29976
29977 #. type: verbatim
29978 #: ../src/guestfs-actions.pod:6178
29979 #, no-wrap
29980 msgid ""
29981 " int\n"
29982 " guestfs_set_attach_method (guestfs_h *g,\n"
29983 "                            const char *attachmethod);\n"
29984 "\n"
29985 msgstr ""
29986
29987 #. type: =head2
29988 #: ../src/guestfs-actions.pod:6206
29989 msgid "guestfs_set_autosync"
29990 msgstr ""
29991
29992 #. type: verbatim
29993 #: ../src/guestfs-actions.pod:6208
29994 #, no-wrap
29995 msgid ""
29996 " int\n"
29997 " guestfs_set_autosync (guestfs_h *g,\n"
29998 "                       int autosync);\n"
29999 "\n"
30000 msgstr ""
30001
30002 #. type: =head2
30003 #: ../src/guestfs-actions.pod:6224
30004 msgid "guestfs_set_direct"
30005 msgstr ""
30006
30007 #. type: verbatim
30008 #: ../src/guestfs-actions.pod:6226
30009 #, no-wrap
30010 msgid ""
30011 " int\n"
30012 " guestfs_set_direct (guestfs_h *g,\n"
30013 "                     int direct);\n"
30014 "\n"
30015 msgstr ""
30016
30017 #. type: textblock
30018 #: ../src/guestfs-actions.pod:6234
30019 msgid ""
30020 "One consequence of this is that log messages aren't caught by the library "
30021 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30022 "stdout."
30023 msgstr ""
30024
30025 #. type: =head2
30026 #: ../src/guestfs-actions.pod:6247
30027 msgid "guestfs_set_e2label"
30028 msgstr ""
30029
30030 #. type: verbatim
30031 #: ../src/guestfs-actions.pod:6249
30032 #, no-wrap
30033 msgid ""
30034 " int\n"
30035 " guestfs_set_e2label (guestfs_h *g,\n"
30036 "                      const char *device,\n"
30037 "                      const char *label);\n"
30038 "\n"
30039 msgstr ""
30040
30041 #. type: textblock
30042 #: ../src/guestfs-actions.pod:6258
30043 msgid ""
30044 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30045 "the existing label on a filesystem."
30046 msgstr ""
30047
30048 #. type: =head2
30049 #: ../src/guestfs-actions.pod:6265
30050 msgid "guestfs_set_e2uuid"
30051 msgstr ""
30052
30053 #. type: verbatim
30054 #: ../src/guestfs-actions.pod:6267
30055 #, no-wrap
30056 msgid ""
30057 " int\n"
30058 " guestfs_set_e2uuid (guestfs_h *g,\n"
30059 "                     const char *device,\n"
30060 "                     const char *uuid);\n"
30061 "\n"
30062 msgstr ""
30063
30064 #. type: textblock
30065 #: ../src/guestfs-actions.pod:6277
30066 msgid ""
30067 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30068 "the existing UUID of a filesystem."
30069 msgstr ""
30070
30071 #. type: =head2
30072 #: ../src/guestfs-actions.pod:6284
30073 msgid "guestfs_set_memsize"
30074 msgstr ""
30075
30076 #. type: verbatim
30077 #: ../src/guestfs-actions.pod:6286
30078 #, no-wrap
30079 msgid ""
30080 " int\n"
30081 " guestfs_set_memsize (guestfs_h *g,\n"
30082 "                      int memsize);\n"
30083 "\n"
30084 msgstr ""
30085
30086 #. type: textblock
30087 #: ../src/guestfs-actions.pod:6290
30088 msgid ""
30089 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30090 "This only has any effect if called before C<guestfs_launch>."
30091 msgstr ""
30092
30093 #. type: =head2
30094 #: ../src/guestfs-actions.pod:6305
30095 msgid "guestfs_set_network"
30096 msgstr ""
30097
30098 #. type: verbatim
30099 #: ../src/guestfs-actions.pod:6307
30100 #, no-wrap
30101 msgid ""
30102 " int\n"
30103 " guestfs_set_network (guestfs_h *g,\n"
30104 "                      int network);\n"
30105 "\n"
30106 msgstr ""
30107
30108 #. type: textblock
30109 #: ../src/guestfs-actions.pod:6317
30110 msgid ""
30111 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30112 "effect."
30113 msgstr ""
30114
30115 #. type: =head2
30116 #: ../src/guestfs-actions.pod:6324
30117 msgid "guestfs_set_path"
30118 msgstr ""
30119
30120 #. type: verbatim
30121 #: ../src/guestfs-actions.pod:6326
30122 #, no-wrap
30123 msgid ""
30124 " int\n"
30125 " guestfs_set_path (guestfs_h *g,\n"
30126 "                   const char *searchpath);\n"
30127 "\n"
30128 msgstr ""
30129
30130 #. type: =head2
30131 #: ../src/guestfs-actions.pod:6341
30132 msgid "guestfs_set_pgroup"
30133 msgstr ""
30134
30135 #. type: verbatim
30136 #: ../src/guestfs-actions.pod:6343
30137 #, no-wrap
30138 msgid ""
30139 " int\n"
30140 " guestfs_set_pgroup (guestfs_h *g,\n"
30141 "                     int pgroup);\n"
30142 "\n"
30143 msgstr ""
30144
30145 #. type: =head2
30146 #: ../src/guestfs-actions.pod:6360
30147 msgid "guestfs_set_qemu"
30148 msgstr ""
30149
30150 #. type: verbatim
30151 #: ../src/guestfs-actions.pod:6362
30152 #, no-wrap
30153 msgid ""
30154 " int\n"
30155 " guestfs_set_qemu (guestfs_h *g,\n"
30156 "                   const char *qemu);\n"
30157 "\n"
30158 msgstr ""
30159
30160 #. type: =head2
30161 #: ../src/guestfs-actions.pod:6388
30162 msgid "guestfs_set_recovery_proc"
30163 msgstr ""
30164
30165 #. type: verbatim
30166 #: ../src/guestfs-actions.pod:6390
30167 #, no-wrap
30168 msgid ""
30169 " int\n"
30170 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30171 "                            int recoveryproc);\n"
30172 "\n"
30173 msgstr ""
30174
30175 #. type: textblock
30176 #: ../src/guestfs-actions.pod:6394
30177 msgid ""
30178 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30179 "not create a recovery process.  The purpose of the recovery process is to "
30180 "stop runaway qemu processes in the case where the main program aborts "
30181 "abruptly."
30182 msgstr ""
30183
30184 #. type: textblock
30185 #: ../src/guestfs-actions.pod:6399
30186 msgid ""
30187 "This only has any effect if called before C<guestfs_launch>, and the default "
30188 "is true."
30189 msgstr ""
30190
30191 #. type: =head2
30192 #: ../src/guestfs-actions.pod:6412
30193 msgid "guestfs_set_selinux"
30194 msgstr ""
30195
30196 #. type: verbatim
30197 #: ../src/guestfs-actions.pod:6414
30198 #, no-wrap
30199 msgid ""
30200 " int\n"
30201 " guestfs_set_selinux (guestfs_h *g,\n"
30202 "                      int selinux);\n"
30203 "\n"
30204 msgstr ""
30205
30206 #. type: =head2
30207 #: ../src/guestfs-actions.pod:6431
30208 msgid "guestfs_set_trace"
30209 msgstr ""
30210
30211 #. type: verbatim
30212 #: ../src/guestfs-actions.pod:6433
30213 #, no-wrap
30214 msgid ""
30215 " int\n"
30216 " guestfs_set_trace (guestfs_h *g,\n"
30217 "                    int trace);\n"
30218 "\n"
30219 msgstr ""
30220
30221 #. type: textblock
30222 #: ../src/guestfs-actions.pod:6447
30223 msgid ""
30224 "Trace messages are normally sent to C<stderr>, unless you register a "
30225 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30226 msgstr ""
30227
30228 #. type: =head2
30229 #: ../src/guestfs-actions.pod:6455
30230 msgid "guestfs_set_verbose"
30231 msgstr ""
30232
30233 #. type: verbatim
30234 #: ../src/guestfs-actions.pod:6457
30235 #, no-wrap
30236 msgid ""
30237 " int\n"
30238 " guestfs_set_verbose (guestfs_h *g,\n"
30239 "                      int verbose);\n"
30240 "\n"
30241 msgstr ""
30242
30243 #. type: textblock
30244 #: ../src/guestfs-actions.pod:6466
30245 msgid ""
30246 "Verbose messages are normally sent to C<stderr>, unless you register a "
30247 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30248 msgstr ""
30249
30250 #. type: =head2
30251 #: ../src/guestfs-actions.pod:6474
30252 msgid "guestfs_setcon"
30253 msgstr ""
30254
30255 #. type: verbatim
30256 #: ../src/guestfs-actions.pod:6476
30257 #, no-wrap
30258 msgid ""
30259 " int\n"
30260 " guestfs_setcon (guestfs_h *g,\n"
30261 "                 const char *context);\n"
30262 "\n"
30263 msgstr ""
30264
30265 #. type: =head2
30266 #: ../src/guestfs-actions.pod:6489
30267 msgid "guestfs_setxattr"
30268 msgstr ""
30269
30270 #. type: verbatim
30271 #: ../src/guestfs-actions.pod:6491
30272 #, no-wrap
30273 msgid ""
30274 " int\n"
30275 " guestfs_setxattr (guestfs_h *g,\n"
30276 "                   const char *xattr,\n"
30277 "                   const char *val,\n"
30278 "                   int vallen,\n"
30279 "                   const char *path);\n"
30280 "\n"
30281 msgstr ""
30282
30283 #. type: textblock
30284 #: ../src/guestfs-actions.pod:6502
30285 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30286 msgstr ""
30287
30288 #. type: =head2
30289 #: ../src/guestfs-actions.pod:6508
30290 msgid "guestfs_sfdisk"
30291 msgstr ""
30292
30293 #. type: verbatim
30294 #: ../src/guestfs-actions.pod:6510
30295 #, no-wrap
30296 msgid ""
30297 " int\n"
30298 " guestfs_sfdisk (guestfs_h *g,\n"
30299 "                 const char *device,\n"
30300 "                 int cyls,\n"
30301 "                 int heads,\n"
30302 "                 int sectors,\n"
30303 "                 char *const *lines);\n"
30304 "\n"
30305 msgstr ""
30306
30307 #. type: textblock
30308 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562
30309 #: ../src/guestfs-actions.pod:6596
30310 msgid ""
30311 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30312 "call instead."
30313 msgstr ""
30314
30315 #. type: textblock
30316 #: ../src/guestfs-actions.pod:6545
30317 msgid ""
30318 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30319 msgstr ""
30320
30321 #. type: =head2
30322 #: ../src/guestfs-actions.pod:6555
30323 msgid "guestfs_sfdiskM"
30324 msgstr ""
30325
30326 #. type: verbatim
30327 #: ../src/guestfs-actions.pod:6557
30328 #, no-wrap
30329 msgid ""
30330 " int\n"
30331 " guestfs_sfdiskM (guestfs_h *g,\n"
30332 "                  const char *device,\n"
30333 "                  char *const *lines);\n"
30334 "\n"
30335 msgstr ""
30336
30337 #. type: textblock
30338 #: ../src/guestfs-actions.pod:6569
30339 msgid ""
30340 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30341 "partition sizes are specified in megabytes only (rounded to the nearest "
30342 "cylinder) and you don't need to specify the cyls, heads and sectors "
30343 "parameters which were rarely if ever used anyway."
30344 msgstr ""
30345
30346 #. type: textblock
30347 #: ../src/guestfs-actions.pod:6575
30348 msgid ""
30349 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30350 "C<guestfs_part_disk>"
30351 msgstr ""
30352
30353 #. type: =head2
30354 #: ../src/guestfs-actions.pod:6585
30355 msgid "guestfs_sfdisk_N"
30356 msgstr ""
30357
30358 #. type: verbatim
30359 #: ../src/guestfs-actions.pod:6587
30360 #, no-wrap
30361 msgid ""
30362 " int\n"
30363 " guestfs_sfdisk_N (guestfs_h *g,\n"
30364 "                   const char *device,\n"
30365 "                   int partnum,\n"
30366 "                   int cyls,\n"
30367 "                   int heads,\n"
30368 "                   int sectors,\n"
30369 "                   const char *line);\n"
30370 "\n"
30371 msgstr ""
30372
30373 #. type: textblock
30374 #: ../src/guestfs-actions.pod:6606
30375 msgid ""
30376 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30377 "for the cyls/heads/sectors parameters."
30378 msgstr ""
30379
30380 #. type: textblock
30381 #: ../src/guestfs-actions.pod:6609
30382 msgid "See also: C<guestfs_part_add>"
30383 msgstr ""
30384
30385 #. type: =head2
30386 #: ../src/guestfs-actions.pod:6618
30387 msgid "guestfs_sfdisk_disk_geometry"
30388 msgstr ""
30389
30390 #. type: verbatim
30391 #: ../src/guestfs-actions.pod:6620
30392 #, no-wrap
30393 msgid ""
30394 " char *\n"
30395 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30396 "                               const char *device);\n"
30397 "\n"
30398 msgstr ""
30399
30400 #. type: textblock
30401 #: ../src/guestfs-actions.pod:6624
30402 msgid ""
30403 "This displays the disk geometry of C<device> read from the partition table.  "
30404 "Especially in the case where the underlying block device has been resized, "
30405 "this can be different from the kernel's idea of the geometry (see "
30406 "C<guestfs_sfdisk_kernel_geometry>)."
30407 msgstr ""
30408
30409 #. type: =head2
30410 #: ../src/guestfs-actions.pod:6637
30411 msgid "guestfs_sfdisk_kernel_geometry"
30412 msgstr ""
30413
30414 #. type: verbatim
30415 #: ../src/guestfs-actions.pod:6639
30416 #, no-wrap
30417 msgid ""
30418 " char *\n"
30419 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30420 "                                 const char *device);\n"
30421 "\n"
30422 msgstr ""
30423
30424 #. type: =head2
30425 #: ../src/guestfs-actions.pod:6653
30426 msgid "guestfs_sfdisk_l"
30427 msgstr ""
30428
30429 #. type: verbatim
30430 #: ../src/guestfs-actions.pod:6655
30431 #, no-wrap
30432 msgid ""
30433 " char *\n"
30434 " guestfs_sfdisk_l (guestfs_h *g,\n"
30435 "                   const char *device);\n"
30436 "\n"
30437 msgstr ""
30438
30439 #. type: textblock
30440 #: ../src/guestfs-actions.pod:6659
30441 msgid ""
30442 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30443 "call instead."
30444 msgstr ""
30445
30446 #. type: textblock
30447 #: ../src/guestfs-actions.pod:6670
30448 msgid "See also: C<guestfs_part_list>"
30449 msgstr ""
30450
30451 #. type: =head2
30452 #: ../src/guestfs-actions.pod:6677
30453 msgid "guestfs_sh"
30454 msgstr ""
30455
30456 #. type: verbatim
30457 #: ../src/guestfs-actions.pod:6679
30458 #, no-wrap
30459 msgid ""
30460 " char *\n"
30461 " guestfs_sh (guestfs_h *g,\n"
30462 "             const char *command);\n"
30463 "\n"
30464 msgstr ""
30465
30466 #. type: textblock
30467 #: ../src/guestfs-actions.pod:6686
30468 msgid "This is like C<guestfs_command>, but passes the command to:"
30469 msgstr ""
30470
30471 #. type: textblock
30472 #: ../src/guestfs-actions.pod:6694
30473 msgid "All the provisos about C<guestfs_command> apply to this call."
30474 msgstr ""
30475
30476 #. type: =head2
30477 #: ../src/guestfs-actions.pod:6701
30478 msgid "guestfs_sh_lines"
30479 msgstr ""
30480
30481 #. type: verbatim
30482 #: ../src/guestfs-actions.pod:6703
30483 #, no-wrap
30484 msgid ""
30485 " char **\n"
30486 " guestfs_sh_lines (guestfs_h *g,\n"
30487 "                   const char *command);\n"
30488 "\n"
30489 msgstr ""
30490
30491 #. type: textblock
30492 #: ../src/guestfs-actions.pod:6707
30493 msgid ""
30494 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30495 "lines."
30496 msgstr ""
30497
30498 #. type: textblock
30499 #: ../src/guestfs-actions.pod:6710
30500 msgid "See also: C<guestfs_command_lines>"
30501 msgstr ""
30502
30503 #. type: =head2
30504 #: ../src/guestfs-actions.pod:6718
30505 msgid "guestfs_sleep"
30506 msgstr ""
30507
30508 #. type: verbatim
30509 #: ../src/guestfs-actions.pod:6720
30510 #, no-wrap
30511 msgid ""
30512 " int\n"
30513 " guestfs_sleep (guestfs_h *g,\n"
30514 "                int secs);\n"
30515 "\n"
30516 msgstr ""
30517
30518 #. type: textblock
30519 #: ../src/guestfs-actions.pod:6728
30520 msgid "(Added in 1.0.41)"
30521 msgstr ""
30522
30523 #. type: =head2
30524 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
30525 msgid "guestfs_stat"
30526 msgstr ""
30527
30528 #. type: verbatim
30529 #: ../src/guestfs-actions.pod:6732
30530 #, no-wrap
30531 msgid ""
30532 " struct guestfs_stat *\n"
30533 " guestfs_stat (guestfs_h *g,\n"
30534 "               const char *path);\n"
30535 "\n"
30536 msgstr ""
30537
30538 #. type: =head2
30539 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
30540 msgid "guestfs_statvfs"
30541 msgstr ""
30542
30543 #. type: verbatim
30544 #: ../src/guestfs-actions.pod:6748
30545 #, no-wrap
30546 msgid ""
30547 " struct guestfs_statvfs *\n"
30548 " guestfs_statvfs (guestfs_h *g,\n"
30549 "                  const char *path);\n"
30550 "\n"
30551 msgstr ""
30552
30553 #. type: textblock
30554 #: ../src/guestfs-actions.pod:6758
30555 msgid ""
30556 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30557 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30558 msgstr ""
30559
30560 #. type: =head2
30561 #: ../src/guestfs-actions.pod:6764
30562 msgid "guestfs_strings"
30563 msgstr ""
30564
30565 #. type: verbatim
30566 #: ../src/guestfs-actions.pod:6766
30567 #, no-wrap
30568 msgid ""
30569 " char **\n"
30570 " guestfs_strings (guestfs_h *g,\n"
30571 "                  const char *path);\n"
30572 "\n"
30573 msgstr ""
30574
30575 #. type: =head2
30576 #: ../src/guestfs-actions.pod:6782
30577 msgid "guestfs_strings_e"
30578 msgstr ""
30579
30580 #. type: verbatim
30581 #: ../src/guestfs-actions.pod:6784
30582 #, no-wrap
30583 msgid ""
30584 " char **\n"
30585 " guestfs_strings_e (guestfs_h *g,\n"
30586 "                    const char *encoding,\n"
30587 "                    const char *path);\n"
30588 "\n"
30589 msgstr ""
30590
30591 #. type: textblock
30592 #: ../src/guestfs-actions.pod:6789
30593 msgid ""
30594 "This is like the C<guestfs_strings> command, but allows you to specify the "
30595 "encoding of strings that are looked for in the source file C<path>."
30596 msgstr ""
30597
30598 #. type: textblock
30599 #: ../src/guestfs-actions.pod:6799
30600 msgid ""
30601 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30602 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30603 msgstr ""
30604
30605 #. type: =head2
30606 #: ../src/guestfs-actions.pod:6837
30607 msgid "guestfs_swapoff_device"
30608 msgstr ""
30609
30610 #. type: verbatim
30611 #: ../src/guestfs-actions.pod:6839
30612 #, no-wrap
30613 msgid ""
30614 " int\n"
30615 " guestfs_swapoff_device (guestfs_h *g,\n"
30616 "                         const char *device);\n"
30617 "\n"
30618 msgstr ""
30619
30620 #. type: textblock
30621 #: ../src/guestfs-actions.pod:6843
30622 msgid ""
30623 "This command disables the libguestfs appliance swap device or partition "
30624 "named C<device>.  See C<guestfs_swapon_device>."
30625 msgstr ""
30626
30627 #. type: =head2
30628 #: ../src/guestfs-actions.pod:6851
30629 msgid "guestfs_swapoff_file"
30630 msgstr ""
30631
30632 #. type: verbatim
30633 #: ../src/guestfs-actions.pod:6853
30634 #, no-wrap
30635 msgid ""
30636 " int\n"
30637 " guestfs_swapoff_file (guestfs_h *g,\n"
30638 "                       const char *file);\n"
30639 "\n"
30640 msgstr ""
30641
30642 #. type: =head2
30643 #: ../src/guestfs-actions.pod:6863
30644 msgid "guestfs_swapoff_label"
30645 msgstr ""
30646
30647 #. type: verbatim
30648 #: ../src/guestfs-actions.pod:6865
30649 #, no-wrap
30650 msgid ""
30651 " int\n"
30652 " guestfs_swapoff_label (guestfs_h *g,\n"
30653 "                        const char *label);\n"
30654 "\n"
30655 msgstr ""
30656
30657 #. type: =head2
30658 #: ../src/guestfs-actions.pod:6876
30659 msgid "guestfs_swapoff_uuid"
30660 msgstr ""
30661
30662 #. type: verbatim
30663 #: ../src/guestfs-actions.pod:6878
30664 #, no-wrap
30665 msgid ""
30666 " int\n"
30667 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30668 "                       const char *uuid);\n"
30669 "\n"
30670 msgstr ""
30671
30672 #. type: =head2
30673 #: ../src/guestfs-actions.pod:6889
30674 msgid "guestfs_swapon_device"
30675 msgstr ""
30676
30677 #. type: verbatim
30678 #: ../src/guestfs-actions.pod:6891
30679 #, no-wrap
30680 msgid ""
30681 " int\n"
30682 " guestfs_swapon_device (guestfs_h *g,\n"
30683 "                        const char *device);\n"
30684 "\n"
30685 msgstr ""
30686
30687 #. type: textblock
30688 #: ../src/guestfs-actions.pod:6895
30689 msgid ""
30690 "This command enables the libguestfs appliance to use the swap device or "
30691 "partition named C<device>.  The increased memory is made available for all "
30692 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30693 msgstr ""
30694
30695 #. type: =head2
30696 #: ../src/guestfs-actions.pod:6911
30697 msgid "guestfs_swapon_file"
30698 msgstr ""
30699
30700 #. type: verbatim
30701 #: ../src/guestfs-actions.pod:6913
30702 #, no-wrap
30703 msgid ""
30704 " int\n"
30705 " guestfs_swapon_file (guestfs_h *g,\n"
30706 "                      const char *file);\n"
30707 "\n"
30708 msgstr ""
30709
30710 #. type: textblock
30711 #: ../src/guestfs-actions.pod:6917
30712 msgid ""
30713 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30714 "notes."
30715 msgstr ""
30716
30717 #. type: =head2
30718 #: ../src/guestfs-actions.pod:6924
30719 msgid "guestfs_swapon_label"
30720 msgstr ""
30721
30722 #. type: verbatim
30723 #: ../src/guestfs-actions.pod:6926
30724 #, no-wrap
30725 msgid ""
30726 " int\n"
30727 " guestfs_swapon_label (guestfs_h *g,\n"
30728 "                       const char *label);\n"
30729 "\n"
30730 msgstr ""
30731
30732 #. type: textblock
30733 #: ../src/guestfs-actions.pod:6930
30734 msgid ""
30735 "This command enables swap to a labeled swap partition.  See "
30736 "C<guestfs_swapon_device> for other notes."
30737 msgstr ""
30738
30739 #. type: =head2
30740 #: ../src/guestfs-actions.pod:6937
30741 msgid "guestfs_swapon_uuid"
30742 msgstr ""
30743
30744 #. type: verbatim
30745 #: ../src/guestfs-actions.pod:6939
30746 #, no-wrap
30747 msgid ""
30748 " int\n"
30749 " guestfs_swapon_uuid (guestfs_h *g,\n"
30750 "                      const char *uuid);\n"
30751 "\n"
30752 msgstr ""
30753
30754 #. type: textblock
30755 #: ../src/guestfs-actions.pod:6943
30756 msgid ""
30757 "This command enables swap to a swap partition with the given UUID.  See "
30758 "C<guestfs_swapon_device> for other notes."
30759 msgstr ""
30760
30761 #. type: =head2
30762 #: ../src/guestfs-actions.pod:6950
30763 msgid "guestfs_sync"
30764 msgstr ""
30765
30766 #. type: verbatim
30767 #: ../src/guestfs-actions.pod:6952
30768 #, no-wrap
30769 msgid ""
30770 " int\n"
30771 " guestfs_sync (guestfs_h *g);\n"
30772 "\n"
30773 msgstr ""
30774
30775 #. type: =head2
30776 #: ../src/guestfs-actions.pod:6965
30777 msgid "guestfs_tail"
30778 msgstr ""
30779
30780 #. type: verbatim
30781 #: ../src/guestfs-actions.pod:6967
30782 #, no-wrap
30783 msgid ""
30784 " char **\n"
30785 " guestfs_tail (guestfs_h *g,\n"
30786 "               const char *path);\n"
30787 "\n"
30788 msgstr ""
30789
30790 #. type: =head2
30791 #: ../src/guestfs-actions.pod:6983
30792 msgid "guestfs_tail_n"
30793 msgstr ""
30794
30795 #. type: verbatim
30796 #: ../src/guestfs-actions.pod:6985
30797 #, no-wrap
30798 msgid ""
30799 " char **\n"
30800 " guestfs_tail_n (guestfs_h *g,\n"
30801 "                 int nrlines,\n"
30802 "                 const char *path);\n"
30803 "\n"
30804 msgstr ""
30805
30806 #. type: =head2
30807 #: ../src/guestfs-actions.pod:7007
30808 msgid "guestfs_tar_in"
30809 msgstr ""
30810
30811 #. type: verbatim
30812 #: ../src/guestfs-actions.pod:7009
30813 #, no-wrap
30814 msgid ""
30815 " int\n"
30816 " guestfs_tar_in (guestfs_h *g,\n"
30817 "                 const char *tarfile,\n"
30818 "                 const char *directory);\n"
30819 "\n"
30820 msgstr ""
30821
30822 #. type: textblock
30823 #: ../src/guestfs-actions.pod:7017
30824 msgid ""
30825 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30826 msgstr ""
30827
30828 #. type: textblock
30829 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
30830 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
30831 msgid "(Added in 1.0.3)"
30832 msgstr ""
30833
30834 #. type: =head2
30835 #: ../src/guestfs-actions.pod:7024
30836 msgid "guestfs_tar_out"
30837 msgstr ""
30838
30839 #. type: verbatim
30840 #: ../src/guestfs-actions.pod:7026
30841 #, no-wrap
30842 msgid ""
30843 " int\n"
30844 " guestfs_tar_out (guestfs_h *g,\n"
30845 "                  const char *directory,\n"
30846 "                  const char *tarfile);\n"
30847 "\n"
30848 msgstr ""
30849
30850 #. type: textblock
30851 #: ../src/guestfs-actions.pod:7034
30852 msgid ""
30853 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30854 "C<guestfs_txz_out>."
30855 msgstr ""
30856
30857 #. type: =head2
30858 #: ../src/guestfs-actions.pod:7041
30859 msgid "guestfs_tgz_in"
30860 msgstr ""
30861
30862 #. type: verbatim
30863 #: ../src/guestfs-actions.pod:7043
30864 #, no-wrap
30865 msgid ""
30866 " int\n"
30867 " guestfs_tgz_in (guestfs_h *g,\n"
30868 "                 const char *tarball,\n"
30869 "                 const char *directory);\n"
30870 "\n"
30871 msgstr ""
30872
30873 #. type: textblock
30874 #: ../src/guestfs-actions.pod:7051
30875 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30876 msgstr ""
30877
30878 #. type: =head2
30879 #: ../src/guestfs-actions.pod:7057
30880 msgid "guestfs_tgz_out"
30881 msgstr ""
30882
30883 #. type: verbatim
30884 #: ../src/guestfs-actions.pod:7059
30885 #, no-wrap
30886 msgid ""
30887 " int\n"
30888 " guestfs_tgz_out (guestfs_h *g,\n"
30889 "                  const char *directory,\n"
30890 "                  const char *tarball);\n"
30891 "\n"
30892 msgstr ""
30893
30894 #. type: textblock
30895 #: ../src/guestfs-actions.pod:7067
30896 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30897 msgstr ""
30898
30899 #. type: =head2
30900 #: ../src/guestfs-actions.pod:7073
30901 msgid "guestfs_touch"
30902 msgstr ""
30903
30904 #. type: verbatim
30905 #: ../src/guestfs-actions.pod:7075
30906 #, no-wrap
30907 msgid ""
30908 " int\n"
30909 " guestfs_touch (guestfs_h *g,\n"
30910 "                const char *path);\n"
30911 "\n"
30912 msgstr ""
30913
30914 #. type: =head2
30915 #: ../src/guestfs-actions.pod:7090
30916 msgid "guestfs_truncate"
30917 msgstr ""
30918
30919 #. type: verbatim
30920 #: ../src/guestfs-actions.pod:7092
30921 #, no-wrap
30922 msgid ""
30923 " int\n"
30924 " guestfs_truncate (guestfs_h *g,\n"
30925 "                   const char *path);\n"
30926 "\n"
30927 msgstr ""
30928
30929 #. type: =head2
30930 #: ../src/guestfs-actions.pod:7103
30931 msgid "guestfs_truncate_size"
30932 msgstr ""
30933
30934 #. type: verbatim
30935 #: ../src/guestfs-actions.pod:7105
30936 #, no-wrap
30937 msgid ""
30938 " int\n"
30939 " guestfs_truncate_size (guestfs_h *g,\n"
30940 "                        const char *path,\n"
30941 "                        int64_t size);\n"
30942 "\n"
30943 msgstr ""
30944
30945 #. type: textblock
30946 #: ../src/guestfs-actions.pod:7113
30947 msgid ""
30948 "If the current file size is less than C<size> then the file is extended to "
30949 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30950 "blocks are not allocated for the file until you write to it).  To create a "
30951 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30952 msgstr ""
30953
30954 #. type: =head2
30955 #: ../src/guestfs-actions.pod:7123
30956 msgid "guestfs_tune2fs_l"
30957 msgstr ""
30958
30959 #. type: verbatim
30960 #: ../src/guestfs-actions.pod:7125
30961 #, no-wrap
30962 msgid ""
30963 " char **\n"
30964 " guestfs_tune2fs_l (guestfs_h *g,\n"
30965 "                    const char *device);\n"
30966 "\n"
30967 msgstr ""
30968
30969 #. type: =head2
30970 #: ../src/guestfs-actions.pod:7145
30971 msgid "guestfs_txz_in"
30972 msgstr ""
30973
30974 #. type: verbatim
30975 #: ../src/guestfs-actions.pod:7147
30976 #, no-wrap
30977 msgid ""
30978 " int\n"
30979 " guestfs_txz_in (guestfs_h *g,\n"
30980 "                 const char *tarball,\n"
30981 "                 const char *directory);\n"
30982 "\n"
30983 msgstr ""
30984
30985 #. type: =head2
30986 #: ../src/guestfs-actions.pod:7159
30987 msgid "guestfs_txz_out"
30988 msgstr ""
30989
30990 #. type: verbatim
30991 #: ../src/guestfs-actions.pod:7161
30992 #, no-wrap
30993 msgid ""
30994 " int\n"
30995 " guestfs_txz_out (guestfs_h *g,\n"
30996 "                  const char *directory,\n"
30997 "                  const char *tarball);\n"
30998 "\n"
30999 msgstr ""
31000
31001 #. type: =head2
31002 #: ../src/guestfs-actions.pod:7173
31003 msgid "guestfs_umask"
31004 msgstr ""
31005
31006 #. type: verbatim
31007 #: ../src/guestfs-actions.pod:7175
31008 #, no-wrap
31009 msgid ""
31010 " int\n"
31011 " guestfs_umask (guestfs_h *g,\n"
31012 "                int mask);\n"
31013 "\n"
31014 msgstr ""
31015
31016 #. type: textblock
31017 #: ../src/guestfs-actions.pod:7191
31018 msgid ""
31019 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31020 "C<guestfs_mkdir>."
31021 msgstr ""
31022
31023 #. type: =head2
31024 #: ../src/guestfs-actions.pod:7200
31025 msgid "guestfs_umount"
31026 msgstr ""
31027
31028 #. type: verbatim
31029 #: ../src/guestfs-actions.pod:7202
31030 #, no-wrap
31031 msgid ""
31032 " int\n"
31033 " guestfs_umount (guestfs_h *g,\n"
31034 "                 const char *pathordevice);\n"
31035 "\n"
31036 msgstr ""
31037
31038 #. type: =head2
31039 #: ../src/guestfs-actions.pod:7214
31040 msgid "guestfs_umount_all"
31041 msgstr ""
31042
31043 #. type: verbatim
31044 #: ../src/guestfs-actions.pod:7216
31045 #, no-wrap
31046 msgid ""
31047 " int\n"
31048 " guestfs_umount_all (guestfs_h *g);\n"
31049 "\n"
31050 msgstr ""
31051
31052 #. type: =head2
31053 #: ../src/guestfs-actions.pod:7227
31054 msgid "guestfs_upload"
31055 msgstr ""
31056
31057 #. type: verbatim
31058 #: ../src/guestfs-actions.pod:7229
31059 #, no-wrap
31060 msgid ""
31061 " int\n"
31062 " guestfs_upload (guestfs_h *g,\n"
31063 "                 const char *filename,\n"
31064 "                 const char *remotefilename);\n"
31065 "\n"
31066 msgstr ""
31067
31068 #. type: textblock
31069 #: ../src/guestfs-actions.pod:7239
31070 msgid "See also C<guestfs_download>."
31071 msgstr ""
31072
31073 #. type: =head2
31074 #: ../src/guestfs-actions.pod:7250
31075 msgid "guestfs_upload_offset"
31076 msgstr ""
31077
31078 #. type: verbatim
31079 #: ../src/guestfs-actions.pod:7252
31080 #, no-wrap
31081 msgid ""
31082 " int\n"
31083 " guestfs_upload_offset (guestfs_h *g,\n"
31084 "                        const char *filename,\n"
31085 "                        const char *remotefilename,\n"
31086 "                        int64_t offset);\n"
31087 "\n"
31088 msgstr ""
31089
31090 #. type: textblock
31091 #: ../src/guestfs-actions.pod:7268
31092 msgid ""
31093 "Note that there is no limit on the amount of data that can be uploaded with "
31094 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31095 "full amount unless an error occurs."
31096 msgstr ""
31097
31098 #. type: textblock
31099 #: ../src/guestfs-actions.pod:7273
31100 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31101 msgstr ""
31102
31103 #. type: =head2
31104 #: ../src/guestfs-actions.pod:7284
31105 msgid "guestfs_utimens"
31106 msgstr ""
31107
31108 #. type: verbatim
31109 #: ../src/guestfs-actions.pod:7286
31110 #, no-wrap
31111 msgid ""
31112 " int\n"
31113 " guestfs_utimens (guestfs_h *g,\n"
31114 "                  const char *path,\n"
31115 "                  int64_t atsecs,\n"
31116 "                  int64_t atnsecs,\n"
31117 "                  int64_t mtsecs,\n"
31118 "                  int64_t mtnsecs);\n"
31119 "\n"
31120 msgstr ""
31121
31122 #. type: =head2
31123 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
31124 msgid "guestfs_version"
31125 msgstr ""
31126
31127 #. type: verbatim
31128 #: ../src/guestfs-actions.pod:7317
31129 #, no-wrap
31130 msgid ""
31131 " struct guestfs_version *\n"
31132 " guestfs_version (guestfs_h *g);\n"
31133 "\n"
31134 msgstr ""
31135
31136 #. type: textblock
31137 #: ../src/guestfs-actions.pod:7345
31138 msgid ""
31139 "I<Note:> Don't use this call to test for availability of features.  In "
31140 "enterprise distributions we backport features from later versions into "
31141 "earlier versions, making this an unreliable way to test for features.  Use "
31142 "C<guestfs_available> instead."
31143 msgstr ""
31144
31145 #. type: textblock
31146 #: ../src/guestfs-actions.pod:7351
31147 msgid ""
31148 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31149 "error.  I<The caller must call C<guestfs_free_version> after use>."
31150 msgstr ""
31151
31152 #. type: textblock
31153 #: ../src/guestfs-actions.pod:7355
31154 msgid "(Added in 1.0.58)"
31155 msgstr ""
31156
31157 #. type: =head2
31158 #: ../src/guestfs-actions.pod:7357
31159 msgid "guestfs_vfs_label"
31160 msgstr ""
31161
31162 #. type: verbatim
31163 #: ../src/guestfs-actions.pod:7359
31164 #, no-wrap
31165 msgid ""
31166 " char *\n"
31167 " guestfs_vfs_label (guestfs_h *g,\n"
31168 "                    const char *device);\n"
31169 "\n"
31170 msgstr ""
31171
31172 #. type: textblock
31173 #: ../src/guestfs-actions.pod:7368
31174 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31175 msgstr ""
31176
31177 #. type: textblock
31178 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
31179 msgid "(Added in 1.3.18)"
31180 msgstr ""
31181
31182 #. type: =head2
31183 #: ../src/guestfs-actions.pod:7375
31184 msgid "guestfs_vfs_type"
31185 msgstr ""
31186
31187 #. type: verbatim
31188 #: ../src/guestfs-actions.pod:7377
31189 #, no-wrap
31190 msgid ""
31191 " char *\n"
31192 " guestfs_vfs_type (guestfs_h *g,\n"
31193 "                   const char *device);\n"
31194 "\n"
31195 msgstr ""
31196
31197 #. type: =head2
31198 #: ../src/guestfs-actions.pod:7394
31199 msgid "guestfs_vfs_uuid"
31200 msgstr ""
31201
31202 #. type: verbatim
31203 #: ../src/guestfs-actions.pod:7396
31204 #, no-wrap
31205 msgid ""
31206 " char *\n"
31207 " guestfs_vfs_uuid (guestfs_h *g,\n"
31208 "                   const char *device);\n"
31209 "\n"
31210 msgstr ""
31211
31212 #. type: textblock
31213 #: ../src/guestfs-actions.pod:7405
31214 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31215 msgstr ""
31216
31217 #. type: =head2
31218 #: ../src/guestfs-actions.pod:7412
31219 msgid "guestfs_vg_activate"
31220 msgstr ""
31221
31222 #. type: verbatim
31223 #: ../src/guestfs-actions.pod:7414
31224 #, no-wrap
31225 msgid ""
31226 " int\n"
31227 " guestfs_vg_activate (guestfs_h *g,\n"
31228 "                      int activate,\n"
31229 "                      char *const *volgroups);\n"
31230 "\n"
31231 msgstr ""
31232
31233 #. type: =head2
31234 #: ../src/guestfs-actions.pod:7431
31235 msgid "guestfs_vg_activate_all"
31236 msgstr ""
31237
31238 #. type: verbatim
31239 #: ../src/guestfs-actions.pod:7433
31240 #, no-wrap
31241 msgid ""
31242 " int\n"
31243 " guestfs_vg_activate_all (guestfs_h *g,\n"
31244 "                          int activate);\n"
31245 "\n"
31246 msgstr ""
31247
31248 #. type: =head2
31249 #: ../src/guestfs-actions.pod:7446
31250 msgid "guestfs_vgcreate"
31251 msgstr ""
31252
31253 #. type: verbatim
31254 #: ../src/guestfs-actions.pod:7448
31255 #, no-wrap
31256 msgid ""
31257 " int\n"
31258 " guestfs_vgcreate (guestfs_h *g,\n"
31259 "                   const char *volgroup,\n"
31260 "                   char *const *physvols);\n"
31261 "\n"
31262 msgstr ""
31263
31264 #. type: =head2
31265 #: ../src/guestfs-actions.pod:7460
31266 msgid "guestfs_vglvuuids"
31267 msgstr ""
31268
31269 #. type: verbatim
31270 #: ../src/guestfs-actions.pod:7462
31271 #, no-wrap
31272 msgid ""
31273 " char **\n"
31274 " guestfs_vglvuuids (guestfs_h *g,\n"
31275 "                    const char *vgname);\n"
31276 "\n"
31277 msgstr ""
31278
31279 #. type: textblock
31280 #: ../src/guestfs-actions.pod:7469
31281 msgid ""
31282 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31283 "associate logical volumes and volume groups."
31284 msgstr ""
31285
31286 #. type: textblock
31287 #: ../src/guestfs-actions.pod:7472
31288 msgid "See also C<guestfs_vgpvuuids>."
31289 msgstr ""
31290
31291 #. type: =head2
31292 #: ../src/guestfs-actions.pod:7480
31293 msgid "guestfs_vgpvuuids"
31294 msgstr ""
31295
31296 #. type: verbatim
31297 #: ../src/guestfs-actions.pod:7482
31298 #, no-wrap
31299 msgid ""
31300 " char **\n"
31301 " guestfs_vgpvuuids (guestfs_h *g,\n"
31302 "                    const char *vgname);\n"
31303 "\n"
31304 msgstr ""
31305
31306 #. type: textblock
31307 #: ../src/guestfs-actions.pod:7489
31308 msgid ""
31309 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31310 "associate physical volumes and volume groups."
31311 msgstr ""
31312
31313 #. type: textblock
31314 #: ../src/guestfs-actions.pod:7492
31315 msgid "See also C<guestfs_vglvuuids>."
31316 msgstr ""
31317
31318 #. type: =head2
31319 #: ../src/guestfs-actions.pod:7500
31320 msgid "guestfs_vgremove"
31321 msgstr ""
31322
31323 #. type: verbatim
31324 #: ../src/guestfs-actions.pod:7502
31325 #, no-wrap
31326 msgid ""
31327 " int\n"
31328 " guestfs_vgremove (guestfs_h *g,\n"
31329 "                   const char *vgname);\n"
31330 "\n"
31331 msgstr ""
31332
31333 #. type: =head2
31334 #: ../src/guestfs-actions.pod:7515
31335 msgid "guestfs_vgrename"
31336 msgstr ""
31337
31338 #. type: verbatim
31339 #: ../src/guestfs-actions.pod:7517
31340 #, no-wrap
31341 msgid ""
31342 " int\n"
31343 " guestfs_vgrename (guestfs_h *g,\n"
31344 "                   const char *volgroup,\n"
31345 "                   const char *newvolgroup);\n"
31346 "\n"
31347 msgstr ""
31348
31349 #. type: =head2
31350 #: ../src/guestfs-actions.pod:7528
31351 msgid "guestfs_vgs"
31352 msgstr ""
31353
31354 #. type: verbatim
31355 #: ../src/guestfs-actions.pod:7530
31356 #, no-wrap
31357 msgid ""
31358 " char **\n"
31359 " guestfs_vgs (guestfs_h *g);\n"
31360 "\n"
31361 msgstr ""
31362
31363 #. type: textblock
31364 #: ../src/guestfs-actions.pod:7539
31365 msgid "See also C<guestfs_vgs_full>."
31366 msgstr ""
31367
31368 #. type: =head2
31369 #: ../src/guestfs-actions.pod:7547
31370 msgid "guestfs_vgs_full"
31371 msgstr ""
31372
31373 #. type: verbatim
31374 #: ../src/guestfs-actions.pod:7549
31375 #, no-wrap
31376 msgid ""
31377 " struct guestfs_lvm_vg_list *\n"
31378 " guestfs_vgs_full (guestfs_h *g);\n"
31379 "\n"
31380 msgstr ""
31381
31382 #. type: textblock
31383 #: ../src/guestfs-actions.pod:7555
31384 msgid ""
31385 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31386 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31387 msgstr ""
31388
31389 #. type: =head2
31390 #: ../src/guestfs-actions.pod:7561
31391 msgid "guestfs_vgscan"
31392 msgstr ""
31393
31394 #. type: verbatim
31395 #: ../src/guestfs-actions.pod:7563
31396 #, no-wrap
31397 msgid ""
31398 " int\n"
31399 " guestfs_vgscan (guestfs_h *g);\n"
31400 "\n"
31401 msgstr ""
31402
31403 #. type: =head2
31404 #: ../src/guestfs-actions.pod:7573
31405 msgid "guestfs_vguuid"
31406 msgstr ""
31407
31408 #. type: verbatim
31409 #: ../src/guestfs-actions.pod:7575
31410 #, no-wrap
31411 msgid ""
31412 " char *\n"
31413 " guestfs_vguuid (guestfs_h *g,\n"
31414 "                 const char *vgname);\n"
31415 "\n"
31416 msgstr ""
31417
31418 #. type: =head2
31419 #: ../src/guestfs-actions.pod:7586
31420 msgid "guestfs_wait_ready"
31421 msgstr ""
31422
31423 #. type: verbatim
31424 #: ../src/guestfs-actions.pod:7588
31425 #, no-wrap
31426 msgid ""
31427 " int\n"
31428 " guestfs_wait_ready (guestfs_h *g);\n"
31429 "\n"
31430 msgstr ""
31431
31432 #. type: textblock
31433 #: ../src/guestfs-actions.pod:7591
31434 msgid ""
31435 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31436 "instead."
31437 msgstr ""
31438
31439 #. type: textblock
31440 #: ../src/guestfs-actions.pod:7598
31441 msgid "This function is a no op."
31442 msgstr ""
31443
31444 #. type: textblock
31445 #: ../src/guestfs-actions.pod:7600
31446 msgid ""
31447 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31448 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31449 "is no longer necessary because C<guestfs_launch> now does the waiting."
31450 msgstr ""
31451
31452 #. type: textblock
31453 #: ../src/guestfs-actions.pod:7605
31454 msgid ""
31455 "If you see any calls to this function in code then you can just remove them, "
31456 "unless you want to retain compatibility with older versions of the API."
31457 msgstr ""
31458
31459 #. type: =head2
31460 #: ../src/guestfs-actions.pod:7613
31461 msgid "guestfs_wc_c"
31462 msgstr ""
31463
31464 #. type: verbatim
31465 #: ../src/guestfs-actions.pod:7615
31466 #, no-wrap
31467 msgid ""
31468 " int\n"
31469 " guestfs_wc_c (guestfs_h *g,\n"
31470 "               const char *path);\n"
31471 "\n"
31472 msgstr ""
31473
31474 #. type: =head2
31475 #: ../src/guestfs-actions.pod:7626
31476 msgid "guestfs_wc_l"
31477 msgstr ""
31478
31479 #. type: verbatim
31480 #: ../src/guestfs-actions.pod:7628
31481 #, no-wrap
31482 msgid ""
31483 " int\n"
31484 " guestfs_wc_l (guestfs_h *g,\n"
31485 "               const char *path);\n"
31486 "\n"
31487 msgstr ""
31488
31489 #. type: =head2
31490 #: ../src/guestfs-actions.pod:7639
31491 msgid "guestfs_wc_w"
31492 msgstr ""
31493
31494 #. type: verbatim
31495 #: ../src/guestfs-actions.pod:7641
31496 #, no-wrap
31497 msgid ""
31498 " int\n"
31499 " guestfs_wc_w (guestfs_h *g,\n"
31500 "               const char *path);\n"
31501 "\n"
31502 msgstr ""
31503
31504 #. type: =head2
31505 #: ../src/guestfs-actions.pod:7652
31506 msgid "guestfs_write"
31507 msgstr ""
31508
31509 #. type: verbatim
31510 #: ../src/guestfs-actions.pod:7654
31511 #, no-wrap
31512 msgid ""
31513 " int\n"
31514 " guestfs_write (guestfs_h *g,\n"
31515 "                const char *path,\n"
31516 "                const char *content,\n"
31517 "                size_t content_size);\n"
31518 "\n"
31519 msgstr ""
31520
31521 #. type: textblock
31522 #: ../src/guestfs-actions.pod:7663
31523 msgid "See also C<guestfs_write_append>."
31524 msgstr ""
31525
31526 #. type: =head2
31527 #: ../src/guestfs-actions.pod:7672
31528 msgid "guestfs_write_append"
31529 msgstr ""
31530
31531 #. type: verbatim
31532 #: ../src/guestfs-actions.pod:7674
31533 #, no-wrap
31534 msgid ""
31535 " int\n"
31536 " guestfs_write_append (guestfs_h *g,\n"
31537 "                       const char *path,\n"
31538 "                       const char *content,\n"
31539 "                       size_t content_size);\n"
31540 "\n"
31541 msgstr ""
31542
31543 #. type: textblock
31544 #: ../src/guestfs-actions.pod:7683
31545 msgid "See also C<guestfs_write>."
31546 msgstr ""
31547
31548 #. type: =head2
31549 #: ../src/guestfs-actions.pod:7692
31550 msgid "guestfs_write_file"
31551 msgstr "guestfs_write_file"
31552
31553 #. type: verbatim
31554 #: ../src/guestfs-actions.pod:7694
31555 #, no-wrap
31556 msgid ""
31557 " int\n"
31558 " guestfs_write_file (guestfs_h *g,\n"
31559 "                     const char *path,\n"
31560 "                     const char *content,\n"
31561 "                     int size);\n"
31562 "\n"
31563 msgstr ""
31564 " int\n"
31565 " guestfs_write_file (guestfs_h *g,\n"
31566 "                     const char *path,\n"
31567 "                     const char *content,\n"
31568 "                     int size);\n"
31569 "\n"
31570
31571 #. type: textblock
31572 #: ../src/guestfs-actions.pod:7700
31573 msgid ""
31574 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31575 "instead."
31576 msgstr ""
31577
31578 #. type: =head2
31579 #: ../src/guestfs-actions.pod:7725
31580 msgid "guestfs_zegrep"
31581 msgstr "guestfs_zegrep"
31582
31583 #. type: verbatim
31584 #: ../src/guestfs-actions.pod:7727
31585 #, no-wrap
31586 msgid ""
31587 " char **\n"
31588 " guestfs_zegrep (guestfs_h *g,\n"
31589 "                 const char *regex,\n"
31590 "                 const char *path);\n"
31591 "\n"
31592 msgstr ""
31593 " char **\n"
31594 " guestfs_zegrep (guestfs_h *g,\n"
31595 "                 const char *regex,\n"
31596 "                 const char *path);\n"
31597 "\n"
31598
31599 #. type: =head2
31600 #: ../src/guestfs-actions.pod:7744
31601 msgid "guestfs_zegrepi"
31602 msgstr "guestfs_zegrepi"
31603
31604 #. type: verbatim
31605 #: ../src/guestfs-actions.pod:7746
31606 #, no-wrap
31607 msgid ""
31608 " char **\n"
31609 " guestfs_zegrepi (guestfs_h *g,\n"
31610 "                  const char *regex,\n"
31611 "                  const char *path);\n"
31612 "\n"
31613 msgstr ""
31614 " char **\n"
31615 " guestfs_zegrepi (guestfs_h *g,\n"
31616 "                  const char *regex,\n"
31617 "                  const char *path);\n"
31618 "\n"
31619
31620 #. type: =head2
31621 #: ../src/guestfs-actions.pod:7763
31622 msgid "guestfs_zero"
31623 msgstr "guestfs_zero"
31624
31625 #. type: verbatim
31626 #: ../src/guestfs-actions.pod:7765
31627 #, no-wrap
31628 msgid ""
31629 " int\n"
31630 " guestfs_zero (guestfs_h *g,\n"
31631 "               const char *device);\n"
31632 "\n"
31633 msgstr ""
31634 " int\n"
31635 " guestfs_zero (guestfs_h *g,\n"
31636 "               const char *device);\n"
31637 "\n"
31638
31639 #. type: textblock
31640 #: ../src/guestfs-actions.pod:7779
31641 msgid ""
31642 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31643 "C<guestfs_is_zero_device>"
31644 msgstr ""
31645
31646 #. type: =head2
31647 #: ../src/guestfs-actions.pod:7791
31648 msgid "guestfs_zero_device"
31649 msgstr "guestfs_zero_device"
31650
31651 #. type: verbatim
31652 #: ../src/guestfs-actions.pod:7793
31653 #, no-wrap
31654 msgid ""
31655 " int\n"
31656 " guestfs_zero_device (guestfs_h *g,\n"
31657 "                      const char *device);\n"
31658 "\n"
31659 msgstr ""
31660 " int\n"
31661 " guestfs_zero_device (guestfs_h *g,\n"
31662 "                      const char *device);\n"
31663 "\n"
31664
31665 #. type: textblock
31666 #: ../src/guestfs-actions.pod:7797
31667 msgid ""
31668 "This command writes zeroes over the entire C<device>.  Compare with "
31669 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31670 msgstr ""
31671
31672 #. type: textblock
31673 #: ../src/guestfs-actions.pod:7815
31674 msgid "(Added in 1.3.1)"
31675 msgstr "(Додано у 1.3.1)"
31676
31677 #. type: =head2
31678 #: ../src/guestfs-actions.pod:7817
31679 msgid "guestfs_zerofree"
31680 msgstr "guestfs_zerofree"
31681
31682 #. type: verbatim
31683 #: ../src/guestfs-actions.pod:7819
31684 #, no-wrap
31685 msgid ""
31686 " int\n"
31687 " guestfs_zerofree (guestfs_h *g,\n"
31688 "                   const char *device);\n"
31689 "\n"
31690 msgstr ""
31691 " int\n"
31692 " guestfs_zerofree (guestfs_h *g,\n"
31693 "                   const char *device);\n"
31694 "\n"
31695
31696 #. type: =head2
31697 #: ../src/guestfs-actions.pod:7838
31698 msgid "guestfs_zfgrep"
31699 msgstr "guestfs_zfgrep"
31700
31701 #. type: verbatim
31702 #: ../src/guestfs-actions.pod:7840
31703 #, no-wrap
31704 msgid ""
31705 " char **\n"
31706 " guestfs_zfgrep (guestfs_h *g,\n"
31707 "                 const char *pattern,\n"
31708 "                 const char *path);\n"
31709 "\n"
31710 msgstr ""
31711 " char **\n"
31712 " guestfs_zfgrep (guestfs_h *g,\n"
31713 "                 const char *pattern,\n"
31714 "                 const char *path);\n"
31715 "\n"
31716
31717 #. type: =head2
31718 #: ../src/guestfs-actions.pod:7857
31719 msgid "guestfs_zfgrepi"
31720 msgstr "guestfs_zfgrepi"
31721
31722 #. type: verbatim
31723 #: ../src/guestfs-actions.pod:7859
31724 #, no-wrap
31725 msgid ""
31726 " char **\n"
31727 " guestfs_zfgrepi (guestfs_h *g,\n"
31728 "                  const char *pattern,\n"
31729 "                  const char *path);\n"
31730 "\n"
31731 msgstr ""
31732 " char **\n"
31733 " guestfs_zfgrepi (guestfs_h *g,\n"
31734 "                  const char *pattern,\n"
31735 "                  const char *path);\n"
31736 "\n"
31737
31738 #. type: =head2
31739 #: ../src/guestfs-actions.pod:7876
31740 msgid "guestfs_zfile"
31741 msgstr "guestfs_zfile"
31742
31743 #. type: verbatim
31744 #: ../src/guestfs-actions.pod:7878
31745 #, no-wrap
31746 msgid ""
31747 " char *\n"
31748 " guestfs_zfile (guestfs_h *g,\n"
31749 "                const char *meth,\n"
31750 "                const char *path);\n"
31751 "\n"
31752 msgstr ""
31753 " char *\n"
31754 " guestfs_zfile (guestfs_h *g,\n"
31755 "                const char *meth,\n"
31756 "                const char *path);\n"
31757 "\n"
31758
31759 #. type: textblock
31760 #: ../src/guestfs-actions.pod:7883
31761 msgid ""
31762 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31763 "instead."
31764 msgstr ""
31765
31766 #. type: textblock
31767 #: ../src/guestfs-actions.pod:7895
31768 msgid ""
31769 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31770 "files."
31771 msgstr ""
31772
31773 #. type: =head2
31774 #: ../src/guestfs-actions.pod:7903
31775 msgid "guestfs_zgrep"
31776 msgstr "guestfs_zgrep"
31777
31778 #. type: verbatim
31779 #: ../src/guestfs-actions.pod:7905
31780 #, no-wrap
31781 msgid ""
31782 " char **\n"
31783 " guestfs_zgrep (guestfs_h *g,\n"
31784 "                const char *regex,\n"
31785 "                const char *path);\n"
31786 "\n"
31787 msgstr ""
31788 " char **\n"
31789 " guestfs_zgrep (guestfs_h *g,\n"
31790 "                const char *regex,\n"
31791 "                const char *path);\n"
31792 "\n"
31793
31794 #. type: =head2
31795 #: ../src/guestfs-actions.pod:7922
31796 msgid "guestfs_zgrepi"
31797 msgstr "guestfs_zgrepi"
31798
31799 #. type: verbatim
31800 #: ../src/guestfs-actions.pod:7924
31801 #, no-wrap
31802 msgid ""
31803 " char **\n"
31804 " guestfs_zgrepi (guestfs_h *g,\n"
31805 "                 const char *regex,\n"
31806 "                 const char *path);\n"
31807 "\n"
31808 msgstr ""
31809 " char **\n"
31810 " guestfs_zgrepi (guestfs_h *g,\n"
31811 "                 const char *regex,\n"
31812 "                 const char *path);\n"
31813 "\n"
31814
31815 #. type: =item
31816 #: ../src/guestfs-availability.pod:3
31817 msgid "B<augeas>"
31818 msgstr "B<augeas>"
31819
31820 #. type: textblock
31821 #: ../src/guestfs-availability.pod:5
31822 msgid ""
31823 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31824 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31825 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31826 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31827 "L</guestfs_aug_save> L</guestfs_aug_set>"
31828 msgstr ""
31829
31830 #. type: =item
31831 #: ../src/guestfs-availability.pod:21
31832 msgid "B<btrfs>"
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../src/guestfs-availability.pod:23
31837 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31838 msgstr ""
31839
31840 #. type: =item
31841 #: ../src/guestfs-availability.pod:26
31842 msgid "B<inotify>"
31843 msgstr "B<inotify>"
31844
31845 #. type: textblock
31846 #: ../src/guestfs-availability.pod:28
31847 msgid ""
31848 "The following functions: L</guestfs_inotify_add_watch> L</"
31849 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31850 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31851 msgstr ""
31852
31853 #. type: =item
31854 #: ../src/guestfs-availability.pod:36
31855 msgid "B<linuxfsuuid>"
31856 msgstr "B<linuxfsuuid>"
31857
31858 #. type: textblock
31859 #: ../src/guestfs-availability.pod:38
31860 msgid ""
31861 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31862 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31863 msgstr ""
31864
31865 #. type: =item
31866 #: ../src/guestfs-availability.pod:45
31867 msgid "B<linuxmodules>"
31868 msgstr "B<linuxmodules>"
31869
31870 #. type: textblock
31871 #: ../src/guestfs-availability.pod:47
31872 msgid "The following functions: L</guestfs_modprobe>"
31873 msgstr ""
31874
31875 #. type: =item
31876 #: ../src/guestfs-availability.pod:50
31877 msgid "B<linuxxattrs>"
31878 msgstr "B<linuxxattrs>"
31879
31880 #. type: textblock
31881 #: ../src/guestfs-availability.pod:52
31882 msgid ""
31883 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31884 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31885 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31886 "guestfs_setxattr>"
31887 msgstr ""
31888
31889 #. type: =item
31890 #: ../src/guestfs-availability.pod:63
31891 msgid "B<luks>"
31892 msgstr "B<luks>"
31893
31894 #. type: textblock
31895 #: ../src/guestfs-availability.pod:65
31896 msgid ""
31897 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31898 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31899 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31900 msgstr ""
31901
31902 #. type: =item
31903 #: ../src/guestfs-availability.pod:74
31904 msgid "B<lvm2>"
31905 msgstr "B<lvm2>"
31906
31907 #. type: textblock
31908 #: ../src/guestfs-availability.pod:76
31909 msgid ""
31910 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31911 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31912 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31913 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31914 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31915 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31916 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31917 msgstr ""
31918
31919 #. type: =item
31920 #: ../src/guestfs-availability.pod:99
31921 msgid "B<mknod>"
31922 msgstr "B<mknod>"
31923
31924 #. type: textblock
31925 #: ../src/guestfs-availability.pod:101
31926 msgid ""
31927 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31928 "guestfs_mknod_b> L</guestfs_mknod_c>"
31929 msgstr ""
31930
31931 #. type: =item
31932 #: ../src/guestfs-availability.pod:107
31933 msgid "B<ntfs3g>"
31934 msgstr "B<ntfs3g>"
31935
31936 #. type: textblock
31937 #: ../src/guestfs-availability.pod:109
31938 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31939 msgstr ""
31940
31941 #. type: =item
31942 #: ../src/guestfs-availability.pod:112
31943 msgid "B<ntfsprogs>"
31944 msgstr "B<ntfsprogs>"
31945
31946 #. type: textblock
31947 #: ../src/guestfs-availability.pod:114
31948 msgid ""
31949 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31950 "L</guestfs_ntfsresize_size>"
31951 msgstr ""
31952
31953 #. type: =item
31954 #: ../src/guestfs-availability.pod:119
31955 msgid "B<realpath>"
31956 msgstr "B<realpath>"
31957
31958 #. type: textblock
31959 #: ../src/guestfs-availability.pod:121
31960 msgid "The following functions: L</guestfs_realpath>"
31961 msgstr ""
31962
31963 #. type: =item
31964 #: ../src/guestfs-availability.pod:124
31965 msgid "B<scrub>"
31966 msgstr "B<scrub>"
31967
31968 #. type: textblock
31969 #: ../src/guestfs-availability.pod:126
31970 msgid ""
31971 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31972 "guestfs_scrub_freespace>"
31973 msgstr ""
31974
31975 #. type: =item
31976 #: ../src/guestfs-availability.pod:131
31977 msgid "B<selinux>"
31978 msgstr "B<selinux>"
31979
31980 #. type: textblock
31981 #: ../src/guestfs-availability.pod:133
31982 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31983 msgstr ""
31984
31985 #. type: =item
31986 #: ../src/guestfs-availability.pod:137
31987 msgid "B<xz>"
31988 msgstr "B<xz>"
31989
31990 #. type: textblock
31991 #: ../src/guestfs-availability.pod:139
31992 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31993 msgstr ""
31994
31995 #. type: =item
31996 #: ../src/guestfs-availability.pod:143
31997 msgid "B<zerofree>"
31998 msgstr "B<zerofree>"
31999
32000 #. type: textblock
32001 #: ../src/guestfs-availability.pod:145
32002 msgid "The following functions: L</guestfs_zerofree>"
32003 msgstr ""
32004
32005 #. type: =head2
32006 #: ../src/guestfs-structs.pod:1
32007 msgid "guestfs_int_bool"
32008 msgstr ""
32009
32010 #. type: verbatim
32011 #: ../src/guestfs-structs.pod:3
32012 #, no-wrap
32013 msgid ""
32014 " struct guestfs_int_bool {\n"
32015 "   int32_t i;\n"
32016 "   int32_t b;\n"
32017 " };\n"
32018 " \n"
32019 msgstr ""
32020
32021 #. type: verbatim
32022 #: ../src/guestfs-structs.pod:8
32023 #, no-wrap
32024 msgid ""
32025 " struct guestfs_int_bool_list {\n"
32026 "   uint32_t len; /* Number of elements in list. */\n"
32027 "   struct guestfs_int_bool *val; /* Elements. */\n"
32028 " };\n"
32029 " \n"
32030 msgstr ""
32031
32032 #. type: verbatim
32033 #: ../src/guestfs-structs.pod:13
32034 #, no-wrap
32035 msgid ""
32036 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32037 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32038 "\n"
32039 msgstr ""
32040
32041 #. type: =head2
32042 #: ../src/guestfs-structs.pod:16
32043 msgid "guestfs_lvm_pv"
32044 msgstr ""
32045
32046 #. type: verbatim
32047 #: ../src/guestfs-structs.pod:18
32048 #, no-wrap
32049 msgid ""
32050 " struct guestfs_lvm_pv {\n"
32051 "   char *pv_name;\n"
32052 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32053 "   char pv_uuid[32];\n"
32054 "   char *pv_fmt;\n"
32055 "   uint64_t pv_size;\n"
32056 "   uint64_t dev_size;\n"
32057 "   uint64_t pv_free;\n"
32058 "   uint64_t pv_used;\n"
32059 "   char *pv_attr;\n"
32060 "   int64_t pv_pe_count;\n"
32061 "   int64_t pv_pe_alloc_count;\n"
32062 "   char *pv_tags;\n"
32063 "   uint64_t pe_start;\n"
32064 "   int64_t pv_mda_count;\n"
32065 "   uint64_t pv_mda_free;\n"
32066 " };\n"
32067 " \n"
32068 msgstr ""
32069
32070 #. type: verbatim
32071 #: ../src/guestfs-structs.pod:36
32072 #, no-wrap
32073 msgid ""
32074 " struct guestfs_lvm_pv_list {\n"
32075 "   uint32_t len; /* Number of elements in list. */\n"
32076 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32077 " };\n"
32078 " \n"
32079 msgstr ""
32080
32081 #. type: verbatim
32082 #: ../src/guestfs-structs.pod:41
32083 #, no-wrap
32084 msgid ""
32085 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32086 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32087 "\n"
32088 msgstr ""
32089
32090 #. type: =head2
32091 #: ../src/guestfs-structs.pod:44
32092 msgid "guestfs_lvm_vg"
32093 msgstr ""
32094
32095 #. type: verbatim
32096 #: ../src/guestfs-structs.pod:46
32097 #, no-wrap
32098 msgid ""
32099 " struct guestfs_lvm_vg {\n"
32100 "   char *vg_name;\n"
32101 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32102 "   char vg_uuid[32];\n"
32103 "   char *vg_fmt;\n"
32104 "   char *vg_attr;\n"
32105 "   uint64_t vg_size;\n"
32106 "   uint64_t vg_free;\n"
32107 "   char *vg_sysid;\n"
32108 "   uint64_t vg_extent_size;\n"
32109 "   int64_t vg_extent_count;\n"
32110 "   int64_t vg_free_count;\n"
32111 "   int64_t max_lv;\n"
32112 "   int64_t max_pv;\n"
32113 "   int64_t pv_count;\n"
32114 "   int64_t lv_count;\n"
32115 "   int64_t snap_count;\n"
32116 "   int64_t vg_seqno;\n"
32117 "   char *vg_tags;\n"
32118 "   int64_t vg_mda_count;\n"
32119 "   uint64_t vg_mda_free;\n"
32120 " };\n"
32121 " \n"
32122 msgstr ""
32123
32124 #. type: verbatim
32125 #: ../src/guestfs-structs.pod:69
32126 #, no-wrap
32127 msgid ""
32128 " struct guestfs_lvm_vg_list {\n"
32129 "   uint32_t len; /* Number of elements in list. */\n"
32130 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32131 " };\n"
32132 " \n"
32133 msgstr ""
32134
32135 #. type: verbatim
32136 #: ../src/guestfs-structs.pod:74
32137 #, no-wrap
32138 msgid ""
32139 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32140 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32141 "\n"
32142 msgstr ""
32143
32144 #. type: =head2
32145 #: ../src/guestfs-structs.pod:77
32146 msgid "guestfs_lvm_lv"
32147 msgstr ""
32148
32149 #. type: verbatim
32150 #: ../src/guestfs-structs.pod:79
32151 #, no-wrap
32152 msgid ""
32153 " struct guestfs_lvm_lv {\n"
32154 "   char *lv_name;\n"
32155 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32156 "   char lv_uuid[32];\n"
32157 "   char *lv_attr;\n"
32158 "   int64_t lv_major;\n"
32159 "   int64_t lv_minor;\n"
32160 "   int64_t lv_kernel_major;\n"
32161 "   int64_t lv_kernel_minor;\n"
32162 "   uint64_t lv_size;\n"
32163 "   int64_t seg_count;\n"
32164 "   char *origin;\n"
32165 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32166 "   float snap_percent;\n"
32167 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32168 "   float copy_percent;\n"
32169 "   char *move_pv;\n"
32170 "   char *lv_tags;\n"
32171 "   char *mirror_log;\n"
32172 "   char *modules;\n"
32173 " };\n"
32174 " \n"
32175 msgstr ""
32176
32177 #. type: verbatim
32178 #: ../src/guestfs-structs.pod:101
32179 #, no-wrap
32180 msgid ""
32181 " struct guestfs_lvm_lv_list {\n"
32182 "   uint32_t len; /* Number of elements in list. */\n"
32183 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32184 " };\n"
32185 " \n"
32186 msgstr ""
32187
32188 #. type: verbatim
32189 #: ../src/guestfs-structs.pod:106
32190 #, no-wrap
32191 msgid ""
32192 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32193 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32194 "\n"
32195 msgstr ""
32196
32197 #. type: verbatim
32198 #: ../src/guestfs-structs.pod:111
32199 #, no-wrap
32200 msgid ""
32201 " struct guestfs_stat {\n"
32202 "   int64_t dev;\n"
32203 "   int64_t ino;\n"
32204 "   int64_t mode;\n"
32205 "   int64_t nlink;\n"
32206 "   int64_t uid;\n"
32207 "   int64_t gid;\n"
32208 "   int64_t rdev;\n"
32209 "   int64_t size;\n"
32210 "   int64_t blksize;\n"
32211 "   int64_t blocks;\n"
32212 "   int64_t atime;\n"
32213 "   int64_t mtime;\n"
32214 "   int64_t ctime;\n"
32215 " };\n"
32216 " \n"
32217 msgstr ""
32218
32219 #. type: verbatim
32220 #: ../src/guestfs-structs.pod:127
32221 #, no-wrap
32222 msgid ""
32223 " struct guestfs_stat_list {\n"
32224 "   uint32_t len; /* Number of elements in list. */\n"
32225 "   struct guestfs_stat *val; /* Elements. */\n"
32226 " };\n"
32227 " \n"
32228 msgstr ""
32229
32230 #. type: verbatim
32231 #: ../src/guestfs-structs.pod:132
32232 #, no-wrap
32233 msgid ""
32234 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32235 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32236 "\n"
32237 msgstr ""
32238
32239 #. type: verbatim
32240 #: ../src/guestfs-structs.pod:137
32241 #, no-wrap
32242 msgid ""
32243 " struct guestfs_statvfs {\n"
32244 "   int64_t bsize;\n"
32245 "   int64_t frsize;\n"
32246 "   int64_t blocks;\n"
32247 "   int64_t bfree;\n"
32248 "   int64_t bavail;\n"
32249 "   int64_t files;\n"
32250 "   int64_t ffree;\n"
32251 "   int64_t favail;\n"
32252 "   int64_t fsid;\n"
32253 "   int64_t flag;\n"
32254 "   int64_t namemax;\n"
32255 " };\n"
32256 " \n"
32257 msgstr ""
32258
32259 #. type: verbatim
32260 #: ../src/guestfs-structs.pod:151
32261 #, no-wrap
32262 msgid ""
32263 " struct guestfs_statvfs_list {\n"
32264 "   uint32_t len; /* Number of elements in list. */\n"
32265 "   struct guestfs_statvfs *val; /* Elements. */\n"
32266 " };\n"
32267 " \n"
32268 msgstr ""
32269
32270 #. type: verbatim
32271 #: ../src/guestfs-structs.pod:156
32272 #, no-wrap
32273 msgid ""
32274 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32275 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32276 "\n"
32277 msgstr ""
32278
32279 #. type: =head2
32280 #: ../src/guestfs-structs.pod:159
32281 msgid "guestfs_dirent"
32282 msgstr ""
32283
32284 #. type: verbatim
32285 #: ../src/guestfs-structs.pod:161
32286 #, no-wrap
32287 msgid ""
32288 " struct guestfs_dirent {\n"
32289 "   int64_t ino;\n"
32290 "   char ftyp;\n"
32291 "   char *name;\n"
32292 " };\n"
32293 " \n"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-structs.pod:167
32298 #, no-wrap
32299 msgid ""
32300 " struct guestfs_dirent_list {\n"
32301 "   uint32_t len; /* Number of elements in list. */\n"
32302 "   struct guestfs_dirent *val; /* Elements. */\n"
32303 " };\n"
32304 " \n"
32305 msgstr ""
32306
32307 #. type: verbatim
32308 #: ../src/guestfs-structs.pod:172
32309 #, no-wrap
32310 msgid ""
32311 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32312 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32313 "\n"
32314 msgstr ""
32315
32316 #. type: verbatim
32317 #: ../src/guestfs-structs.pod:177
32318 #, no-wrap
32319 msgid ""
32320 " struct guestfs_version {\n"
32321 "   int64_t major;\n"
32322 "   int64_t minor;\n"
32323 "   int64_t release;\n"
32324 "   char *extra;\n"
32325 " };\n"
32326 " \n"
32327 msgstr ""
32328
32329 #. type: verbatim
32330 #: ../src/guestfs-structs.pod:184
32331 #, no-wrap
32332 msgid ""
32333 " struct guestfs_version_list {\n"
32334 "   uint32_t len; /* Number of elements in list. */\n"
32335 "   struct guestfs_version *val; /* Elements. */\n"
32336 " };\n"
32337 " \n"
32338 msgstr ""
32339
32340 #. type: verbatim
32341 #: ../src/guestfs-structs.pod:189
32342 #, no-wrap
32343 msgid ""
32344 " void guestfs_free_version (struct guestfs_free_version *);\n"
32345 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32346 "\n"
32347 msgstr ""
32348
32349 #. type: =head2
32350 #: ../src/guestfs-structs.pod:192
32351 msgid "guestfs_xattr"
32352 msgstr ""
32353
32354 #. type: verbatim
32355 #: ../src/guestfs-structs.pod:194
32356 #, no-wrap
32357 msgid ""
32358 " struct guestfs_xattr {\n"
32359 "   char *attrname;\n"
32360 "   /* The next two fields describe a byte array. */\n"
32361 "   uint32_t attrval_len;\n"
32362 "   char *attrval;\n"
32363 " };\n"
32364 " \n"
32365 msgstr ""
32366
32367 #. type: verbatim
32368 #: ../src/guestfs-structs.pod:201
32369 #, no-wrap
32370 msgid ""
32371 " struct guestfs_xattr_list {\n"
32372 "   uint32_t len; /* Number of elements in list. */\n"
32373 "   struct guestfs_xattr *val; /* Elements. */\n"
32374 " };\n"
32375 " \n"
32376 msgstr ""
32377
32378 #. type: verbatim
32379 #: ../src/guestfs-structs.pod:206
32380 #, no-wrap
32381 msgid ""
32382 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32383 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32384 "\n"
32385 msgstr ""
32386
32387 #. type: =head2
32388 #: ../src/guestfs-structs.pod:209
32389 msgid "guestfs_inotify_event"
32390 msgstr ""
32391
32392 #. type: verbatim
32393 #: ../src/guestfs-structs.pod:211
32394 #, no-wrap
32395 msgid ""
32396 " struct guestfs_inotify_event {\n"
32397 "   int64_t in_wd;\n"
32398 "   uint32_t in_mask;\n"
32399 "   uint32_t in_cookie;\n"
32400 "   char *in_name;\n"
32401 " };\n"
32402 " \n"
32403 msgstr ""
32404
32405 #. type: verbatim
32406 #: ../src/guestfs-structs.pod:218
32407 #, no-wrap
32408 msgid ""
32409 " struct guestfs_inotify_event_list {\n"
32410 "   uint32_t len; /* Number of elements in list. */\n"
32411 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32412 " };\n"
32413 " \n"
32414 msgstr ""
32415
32416 #. type: verbatim
32417 #: ../src/guestfs-structs.pod:223
32418 #, no-wrap
32419 msgid ""
32420 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32421 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32422 "\n"
32423 msgstr ""
32424
32425 #. type: =head2
32426 #: ../src/guestfs-structs.pod:226
32427 msgid "guestfs_partition"
32428 msgstr ""
32429
32430 #. type: verbatim
32431 #: ../src/guestfs-structs.pod:228
32432 #, no-wrap
32433 msgid ""
32434 " struct guestfs_partition {\n"
32435 "   int32_t part_num;\n"
32436 "   uint64_t part_start;\n"
32437 "   uint64_t part_end;\n"
32438 "   uint64_t part_size;\n"
32439 " };\n"
32440 " \n"
32441 msgstr ""
32442
32443 #. type: verbatim
32444 #: ../src/guestfs-structs.pod:235
32445 #, no-wrap
32446 msgid ""
32447 " struct guestfs_partition_list {\n"
32448 "   uint32_t len; /* Number of elements in list. */\n"
32449 "   struct guestfs_partition *val; /* Elements. */\n"
32450 " };\n"
32451 " \n"
32452 msgstr ""
32453
32454 #. type: verbatim
32455 #: ../src/guestfs-structs.pod:240
32456 #, no-wrap
32457 msgid ""
32458 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32459 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32460 "\n"
32461 msgstr ""
32462
32463 #. type: =head2
32464 #: ../src/guestfs-structs.pod:243
32465 msgid "guestfs_application"
32466 msgstr ""
32467
32468 #. type: verbatim
32469 #: ../src/guestfs-structs.pod:245
32470 #, no-wrap
32471 msgid ""
32472 " struct guestfs_application {\n"
32473 "   char *app_name;\n"
32474 "   char *app_display_name;\n"
32475 "   int32_t app_epoch;\n"
32476 "   char *app_version;\n"
32477 "   char *app_release;\n"
32478 "   char *app_install_path;\n"
32479 "   char *app_trans_path;\n"
32480 "   char *app_publisher;\n"
32481 "   char *app_url;\n"
32482 "   char *app_source_package;\n"
32483 "   char *app_summary;\n"
32484 "   char *app_description;\n"
32485 " };\n"
32486 " \n"
32487 msgstr ""
32488
32489 #. type: verbatim
32490 #: ../src/guestfs-structs.pod:260
32491 #, no-wrap
32492 msgid ""
32493 " struct guestfs_application_list {\n"
32494 "   uint32_t len; /* Number of elements in list. */\n"
32495 "   struct guestfs_application *val; /* Elements. */\n"
32496 " };\n"
32497 " \n"
32498 msgstr ""
32499
32500 #. type: verbatim
32501 #: ../src/guestfs-structs.pod:265
32502 #, no-wrap
32503 msgid ""
32504 " void guestfs_free_application (struct guestfs_free_application *);\n"
32505 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32506 "\n"
32507 msgstr ""
32508
32509 #. type: textblock
32510 #: ../src/guestfs.pod:5
32511 msgid "guestfs - Library for accessing and modifying virtual machine images"
32512 msgstr ""
32513 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32514 "машин"
32515
32516 #. type: verbatim
32517 #: ../src/guestfs.pod:11
32518 #, no-wrap
32519 msgid ""
32520 " guestfs_h *g = guestfs_create ();\n"
32521 " guestfs_add_drive (g, \"guest.img\");\n"
32522 " guestfs_launch (g);\n"
32523 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32524 " guestfs_touch (g, \"/hello\");\n"
32525 " guestfs_umount (g, \"/\");\n"
32526 " guestfs_close (g);\n"
32527 "\n"
32528 msgstr ""
32529 " guestfs_h *g = guestfs_create ();\n"
32530 " guestfs_add_drive (g, \"guest.img\");\n"
32531 " guestfs_launch (g);\n"
32532 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32533 " guestfs_touch (g, \"/hello\");\n"
32534 " guestfs_umount (g, \"/\");\n"
32535 " guestfs_close (g);\n"
32536 "\n"
32537
32538 #. type: textblock
32539 #: ../src/guestfs.pod:25
32540 msgid ""
32541 "Libguestfs is a library for accessing and modifying guest disk images.  "
32542 "Amongst the things this is good for: making batch configuration changes to "
32543 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32544 "between virtualization systems (see also: virt-p2v), performing partial "
32545 "backups, performing partial guest clones, cloning guests and changing "
32546 "registry/UUID/hostname info, and much else besides."
32547 msgstr ""
32548
32549 #. type: textblock
32550 #: ../src/guestfs.pod:33
32551 msgid ""
32552 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32553 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32554 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32555 "qcow2, vmdk."
32556 msgstr ""
32557
32558 #. type: textblock
32559 #: ../src/guestfs.pod:38
32560 msgid ""
32561 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32562 "what filesystem is in each LV, etc.).  It can also run commands in the "
32563 "context of the guest.  Also you can access filesystems over FUSE."
32564 msgstr ""
32565
32566 #. type: textblock
32567 #: ../src/guestfs.pod:43
32568 msgid ""
32569 "Libguestfs is a library that can be linked with C and C++ management "
32570 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32571 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
32572 "line."
32573 msgstr ""
32574
32575 #. type: textblock
32576 #: ../src/guestfs.pod:48
32577 msgid ""
32578 "You don't need to be root to use libguestfs, although obviously you do need "
32579 "enough permissions to access the disk images."
32580 msgstr ""
32581
32582 #. type: textblock
32583 #: ../src/guestfs.pod:51
32584 msgid ""
32585 "Libguestfs is a large API because it can do many things.  For a gentle "
32586 "introduction, please read the L</API OVERVIEW> section next."
32587 msgstr ""
32588
32589 #. type: textblock
32590 #: ../src/guestfs.pod:54
32591 msgid ""
32592 "There are also some example programs in the L<guestfs-examples(3)> manual "
32593 "page."
32594 msgstr ""
32595
32596 #. type: =head1
32597 #: ../src/guestfs.pod:57
32598 msgid "API OVERVIEW"
32599 msgstr "ОГЛЯД API"
32600
32601 #. type: textblock
32602 #: ../src/guestfs.pod:59
32603 msgid ""
32604 "This section provides a gentler overview of the libguestfs API.  We also try "
32605 "to group API calls together, where that may not be obvious from reading "
32606 "about the individual calls in the main section of this manual."
32607 msgstr ""
32608
32609 #. type: =head2
32610 #: ../src/guestfs.pod:64
32611 msgid "HANDLES"
32612 msgstr "ОБРОБНИКИ"
32613
32614 #. type: textblock
32615 #: ../src/guestfs.pod:66
32616 msgid ""
32617 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32618 "must add at least one disk image to the handle, followed by launching the "
32619 "handle, then performing whatever operations you want, and finally closing "
32620 "the handle.  By convention we use the single letter C<g> for the name of the "
32621 "handle variable, although of course you can use any name you want."
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs.pod:73
32626 msgid "The general structure of all libguestfs-using programs looks like this:"
32627 msgstr ""
32628
32629 #. type: verbatim
32630 #: ../src/guestfs.pod:76
32631 #, no-wrap
32632 msgid ""
32633 " guestfs_h *g = guestfs_create ();\n"
32634 " \n"
32635 msgstr ""
32636 " guestfs_h *g = guestfs_create ();\n"
32637 " \n"
32638
32639 #. type: verbatim
32640 #: ../src/guestfs.pod:78
32641 #, no-wrap
32642 msgid ""
32643 " /* Call guestfs_add_drive additional times if there are\n"
32644 "  * multiple disk images.\n"
32645 "  */\n"
32646 " guestfs_add_drive (g, \"guest.img\");\n"
32647 " \n"
32648 msgstr ""
32649
32650 #. type: verbatim
32651 #: ../src/guestfs.pod:83
32652 #, no-wrap
32653 msgid ""
32654 " /* Most manipulation calls won't work until you've launched\n"
32655 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32656 "  * and _before_ other commands.\n"
32657 "  */\n"
32658 " guestfs_launch (g);\n"
32659 " \n"
32660 msgstr ""
32661
32662 #. type: verbatim
32663 #: ../src/guestfs.pod:89
32664 #, no-wrap
32665 msgid ""
32666 " /* Now you can examine what partitions, LVs etc are available.\n"
32667 "  */\n"
32668 " char **partitions = guestfs_list_partitions (g);\n"
32669 " char **logvols = guestfs_lvs (g);\n"
32670 " \n"
32671 msgstr ""
32672 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32673 "  */\n"
32674 " char **partitions = guestfs_list_partitions (g);\n"
32675 " char **logvols = guestfs_lvs (g);\n"
32676 " \n"
32677
32678 #. type: verbatim
32679 #: ../src/guestfs.pod:94
32680 #, no-wrap
32681 msgid ""
32682 " /* To access a filesystem in the image, you must mount it.\n"
32683 "  */\n"
32684 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32685 " \n"
32686 msgstr ""
32687 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32688 "  */\n"
32689 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32690 " \n"
32691
32692 #. type: verbatim
32693 #: ../src/guestfs.pod:98
32694 #, no-wrap
32695 msgid ""
32696 " /* Now you can perform filesystem actions on the guest\n"
32697 "  * disk image.\n"
32698 "  */\n"
32699 " guestfs_touch (g, \"/hello\");\n"
32700 " \n"
32701 msgstr ""
32702
32703 #. type: verbatim
32704 #: ../src/guestfs.pod:103
32705 #, no-wrap
32706 msgid ""
32707 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32708 "  * it is done automatically when you close the handle.  See\n"
32709 "  * discussion of autosync in this page.\n"
32710 "  */\n"
32711 " guestfs_sync (g);\n"
32712 " \n"
32713 msgstr ""
32714
32715 #. type: verbatim
32716 #: ../src/guestfs.pod:109
32717 #, no-wrap
32718 msgid ""
32719 " /* Close the handle 'g'. */\n"
32720 " guestfs_close (g);\n"
32721 "\n"
32722 msgstr ""
32723 " /* Закрити дескриптор 'g'. */\n"
32724 " guestfs_close (g);\n"
32725 "\n"
32726
32727 #. type: textblock
32728 #: ../src/guestfs.pod:112
32729 msgid ""
32730 "The code above doesn't include any error checking.  In real code you should "
32731 "check return values carefully for errors.  In general all functions that "
32732 "return integers return C<-1> on error, and all functions that return "
32733 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32734 "how to handle errors, and consult the documentation for each function call "
32735 "below to see precisely how they return error indications.  See L<guestfs-"
32736 "examples(3)> for fully worked examples."
32737 msgstr ""
32738
32739 #. type: =head2
32740 #: ../src/guestfs.pod:121
32741 msgid "DISK IMAGES"
32742 msgstr "ОБРАЗИ ДИСКІВ"
32743
32744 #. type: textblock
32745 #: ../src/guestfs.pod:123
32746 msgid ""
32747 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32748 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32749 "actual block device, or simply an empty file of zeroes that you have created "
32750 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32751 "of these."
32752 msgstr ""
32753
32754 #. type: textblock
32755 #: ../src/guestfs.pod:129
32756 msgid ""
32757 "The call you should use in modern code for adding drives is L</"
32758 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32759 "specifying that the format is raw, do:"
32760 msgstr ""
32761
32762 #. type: verbatim
32763 #: ../src/guestfs.pod:133
32764 #, no-wrap
32765 msgid ""
32766 " guestfs_add_drive_opts (g, filename,\n"
32767 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32768 "                         -1);\n"
32769 "\n"
32770 msgstr ""
32771 " guestfs_add_drive_opts (g, filename,\n"
32772 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32773 "                         -1);\n"
32774 "\n"
32775
32776 #. type: textblock
32777 #: ../src/guestfs.pod:137
32778 msgid "You can add a disk read-only using:"
32779 msgstr "Ви можете додати диск у режимі лише читання:"
32780
32781 #. type: verbatim
32782 #: ../src/guestfs.pod:139
32783 #, no-wrap
32784 msgid ""
32785 " guestfs_add_drive_opts (g, filename,\n"
32786 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32787 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32788 "                         -1);\n"
32789 "\n"
32790 msgstr ""
32791 " guestfs_add_drive_opts (g, filename,\n"
32792 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32793 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32794 "                         -1);\n"
32795 "\n"
32796
32797 #. type: textblock
32798 #: ../src/guestfs.pod:144
32799 msgid ""
32800 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32801 "libguestfs won't modify the file."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs.pod:147
32806 msgid ""
32807 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32808 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32809 "corruption, but adding it read-only is safe."
32810 msgstr ""
32811
32812 #. type: textblock
32813 #: ../src/guestfs.pod:151
32814 msgid ""
32815 "You must add at least one disk image, and you may add multiple disk images.  "
32816 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32817 "first one you added), C</dev/sdb> (for the second one you added), etc."
32818 msgstr ""
32819
32820 #. type: textblock
32821 #: ../src/guestfs.pod:156
32822 msgid ""
32823 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32824 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32825 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32826 msgstr ""
32827
32828 #. type: =head2
32829 #: ../src/guestfs.pod:161
32830 msgid "MOUNTING"
32831 msgstr "МОНТУВАННЯ"
32832
32833 #. type: textblock
32834 #: ../src/guestfs.pod:163
32835 msgid ""
32836 "Before you can read or write files, create directories and so on in a disk "
32837 "image that contains filesystems, you have to mount those filesystems using "
32838 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32839 "a disk image contains (for example) one partition with a filesystem on that "
32840 "partition, then you can mount it directly:"
32841 msgstr ""
32842
32843 #. type: verbatim
32844 #: ../src/guestfs.pod:170
32845 #, no-wrap
32846 msgid ""
32847 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32848 "\n"
32849 msgstr ""
32850 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32851 "\n"
32852
32853 #. type: textblock
32854 #: ../src/guestfs.pod:172
32855 msgid ""
32856 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32857 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32858 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32859 "that these are libguestfs virtual devices, and are nothing to do with host "
32860 "devices."
32861 msgstr ""
32862
32863 #. type: textblock
32864 #: ../src/guestfs.pod:178
32865 msgid ""
32866 "If you are given a disk image and you don't know what it contains then you "
32867 "have to find out.  Libguestfs can do that too: use L</"
32868 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32869 "LVs, and either try mounting each to see what is mountable, or else examine "
32870 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32871 "filesystems, use L</guestfs_list_filesystems>."
32872 msgstr ""
32873
32874 #. type: textblock
32875 #: ../src/guestfs.pod:186
32876 msgid ""
32877 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32878 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32879 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32880 msgstr ""
32881
32882 #. type: textblock
32883 #: ../src/guestfs.pod:191
32884 msgid ""
32885 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32886 "several other variations of the C<guestfs_mount_*> call."
32887 msgstr ""
32888
32889 #. type: =head2
32890 #: ../src/guestfs.pod:194
32891 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32892 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32893
32894 #. type: textblock
32895 #: ../src/guestfs.pod:196
32896 msgid ""
32897 "The majority of the libguestfs API consists of fairly low-level calls for "
32898 "accessing and modifying the files, directories, symlinks etc on mounted "
32899 "filesystems.  There are over a hundred such calls which you can find listed "
32900 "in detail below in this man page, and we don't even pretend to cover them "
32901 "all in this overview."
32902 msgstr ""
32903
32904 #. type: textblock
32905 #: ../src/guestfs.pod:202
32906 msgid ""
32907 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32908 "mount point."
32909 msgstr ""
32910 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32911 "точкою монтування."
32912
32913 #. type: textblock
32914 #: ../src/guestfs.pod:205
32915 msgid ""
32916 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32917 "the file called C<\"etc/passwd\"> then you could do:"
32918 msgstr ""
32919 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32920 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32921 "таким кодом:"
32922
32923 #. type: verbatim
32924 #: ../src/guestfs.pod:208
32925 #, no-wrap
32926 msgid ""
32927 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32928 "\n"
32929 msgstr ""
32930 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32931 "\n"
32932
32933 #. type: textblock
32934 #: ../src/guestfs.pod:210
32935 msgid ""
32936 "This would return C<data> as a newly allocated buffer containing the full "
32937 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32938 "or C<NULL> if there was an error."
32939 msgstr ""
32940
32941 #. type: textblock
32942 #: ../src/guestfs.pod:214
32943 msgid ""
32944 "As another example, to create a top-level directory on that filesystem "
32945 "called C<\"var\"> you would do:"
32946 msgstr ""
32947
32948 #. type: verbatim
32949 #: ../src/guestfs.pod:217
32950 #, no-wrap
32951 msgid ""
32952 " guestfs_mkdir (g, \"/var\");\n"
32953 "\n"
32954 msgstr ""
32955 " guestfs_mkdir (g, \"/var\");\n"
32956 "\n"
32957
32958 #. type: textblock
32959 #: ../src/guestfs.pod:219
32960 msgid "To create a symlink you could do:"
32961 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32962
32963 #. type: verbatim
32964 #: ../src/guestfs.pod:221
32965 #, no-wrap
32966 msgid ""
32967 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32968 "               \"/etc/rc3.d/S30portmap\");\n"
32969 "\n"
32970 msgstr ""
32971 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32972 "               \"/etc/rc3.d/S30portmap\");\n"
32973 "\n"
32974
32975 #. type: textblock
32976 #: ../src/guestfs.pod:224
32977 msgid ""
32978 "Libguestfs will reject attempts to use relative paths and there is no "
32979 "concept of a current working directory."
32980 msgstr ""
32981
32982 #. type: textblock
32983 #: ../src/guestfs.pod:227
32984 msgid ""
32985 "Libguestfs can return errors in many situations: for example if the "
32986 "filesystem isn't writable, or if a file or directory that you requested "
32987 "doesn't exist.  If you are using the C API (documented here)  you have to "
32988 "check for those error conditions after each call.  (Other language bindings "
32989 "turn these errors into exceptions)."
32990 msgstr ""
32991
32992 #. type: textblock
32993 #: ../src/guestfs.pod:233
32994 msgid ""
32995 "File writes are affected by the per-handle umask, set by calling L</"
32996 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32997 msgstr ""
32998
32999 #. type: =head2
33000 #: ../src/guestfs.pod:236
33001 msgid "PARTITIONING"
33002 msgstr "ПОДІЛ НА РОЗДІЛИ"
33003
33004 #. type: textblock
33005 #: ../src/guestfs.pod:238
33006 msgid ""
33007 "Libguestfs contains API calls to read, create and modify partition tables on "
33008 "disk images."
33009 msgstr ""
33010
33011 #. type: textblock
33012 #: ../src/guestfs.pod:241
33013 msgid ""
33014 "In the common case where you want to create a single partition covering the "
33015 "whole disk, you should use the L</guestfs_part_disk> call:"
33016 msgstr ""
33017
33018 #. type: verbatim
33019 #: ../src/guestfs.pod:245
33020 #, no-wrap
33021 msgid ""
33022 " const char *parttype = \"mbr\";\n"
33023 " if (disk_is_larger_than_2TB)\n"
33024 "   parttype = \"gpt\";\n"
33025 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33026 "\n"
33027 msgstr ""
33028 " const char *parttype = \"mbr\";\n"
33029 " if (disk_is_larger_than_2TB)\n"
33030 "   parttype = \"gpt\";\n"
33031 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33032 "\n"
33033
33034 #. type: textblock
33035 #: ../src/guestfs.pod:250
33036 msgid ""
33037 "Obviously this effectively wipes anything that was on that disk image before."
33038 msgstr ""
33039
33040 #. type: =head2
33041 #: ../src/guestfs.pod:253
33042 msgid "LVM2"
33043 msgstr "LVM2"
33044
33045 #. type: textblock
33046 #: ../src/guestfs.pod:255
33047 msgid ""
33048 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33049 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33050 "you familiarize yourself with the concepts of physical volumes, volume "
33051 "groups and logical volumes."
33052 msgstr ""
33053
33054 #. type: textblock
33055 #: ../src/guestfs.pod:260
33056 msgid ""
33057 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33058 "tldp.org/HOWTO/LVM-HOWTO/>."
33059 msgstr ""
33060
33061 #. type: =head2
33062 #: ../src/guestfs.pod:263
33063 msgid "DOWNLOADING"
33064 msgstr "ОТРИМАННЯ ДАНИХ"
33065
33066 #. type: textblock
33067 #: ../src/guestfs.pod:265
33068 msgid ""
33069 "Use L</guestfs_cat> to download small, text only files.  This call is "
33070 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33071 "NUL (C<\\0>) characters.  However the API is very simple to use."
33072 msgstr ""
33073
33074 #. type: textblock
33075 #: ../src/guestfs.pod:269
33076 msgid ""
33077 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33078 "bit data, since it returns a (pointer, size) pair.  However it is still "
33079 "limited to \"small\" files, less than 2 MB."
33080 msgstr ""
33081
33082 #. type: textblock
33083 #: ../src/guestfs.pod:273
33084 msgid ""
33085 "L</guestfs_download> can be used to download any file, with no limits on "
33086 "content or size (even files larger than 4 GB)."
33087 msgstr ""
33088
33089 #. type: textblock
33090 #: ../src/guestfs.pod:276
33091 msgid ""
33092 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33093 msgstr ""
33094
33095 #. type: =head2
33096 #: ../src/guestfs.pod:279
33097 msgid "UPLOADING"
33098 msgstr "ВИВАНТАЖЕННЯ"
33099
33100 #. type: textblock
33101 #: ../src/guestfs.pod:281
33102 msgid ""
33103 "It's often the case that you want to write a file or files to the disk image."
33104 msgstr ""
33105
33106 #. type: textblock
33107 #: ../src/guestfs.pod:284
33108 msgid ""
33109 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33110 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33111 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
33112 "of other functions for creating test files, for example L</guestfs_fill> and "
33113 "L</guestfs_fill_pattern>."
33114 msgstr ""
33115
33116 #. type: textblock
33117 #: ../src/guestfs.pod:290
33118 msgid ""
33119 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33120 "file content or size (even files larger than 4 GB)."
33121 msgstr ""
33122
33123 #. type: textblock
33124 #: ../src/guestfs.pod:293
33125 msgid ""
33126 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33127 msgstr ""
33128
33129 #. type: textblock
33130 #: ../src/guestfs.pod:295
33131 msgid ""
33132 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33133 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33134 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
33135 "in a predictable way (eg. adding it last after all other drives) then you "
33136 "can get the device name from L</guestfs_list_devices> and mount it directly "
33137 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
33138 "portable between kernel versions, and they don't support labels or UUIDs.  "
33139 "If you want to pre-build an image or you need to mount it using a label or "
33140 "UUID, use an ISO image instead."
33141 msgstr ""
33142
33143 #. type: =head2
33144 #: ../src/guestfs.pod:306
33145 msgid "COPYING"
33146 msgstr "КОПІЮВАННЯ"
33147
33148 #. type: textblock
33149 #: ../src/guestfs.pod:308
33150 msgid ""
33151 "There are various different commands for copying between files and devices "
33152 "and in and out of the guest filesystem.  These are summarised in the table "
33153 "below."
33154 msgstr ""
33155
33156 #. type: =item
33157 #: ../src/guestfs.pod:314
33158 msgid "B<file> to B<file>"
33159 msgstr "B<файл> у B<файл>"
33160
33161 #. type: textblock
33162 #: ../src/guestfs.pod:316
33163 msgid ""
33164 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33165 "directories recursively."
33166 msgstr ""
33167
33168 #. type: =item
33169 #: ../src/guestfs.pod:319
33170 msgid "B<file or device> to B<file or device>"
33171 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33172
33173 #. type: textblock
33174 #: ../src/guestfs.pod:321
33175 msgid ""
33176 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33177 "devices in the guest."
33178 msgstr ""
33179
33180 #. type: textblock
33181 #: ../src/guestfs.pod:324
33182 msgid "Example: duplicate the contents of an LV:"
33183 msgstr ""
33184
33185 #. type: verbatim
33186 #: ../src/guestfs.pod:326
33187 #, no-wrap
33188 msgid ""
33189 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33190 "\n"
33191 msgstr ""
33192 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33193 "\n"
33194
33195 #. type: textblock
33196 #: ../src/guestfs.pod:328
33197 msgid ""
33198 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33199 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33200 "guestfs_copy_size>."
33201 msgstr ""
33202
33203 #. type: =item
33204 #: ../src/guestfs.pod:332
33205 msgid "B<file on the host> to B<file or device>"
33206 msgstr ""
33207
33208 #. type: textblock
33209 #: ../src/guestfs.pod:334
33210 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33211 msgstr ""
33212
33213 #. type: =item
33214 #: ../src/guestfs.pod:336
33215 msgid "B<file or device> to B<file on the host>"
33216 msgstr ""
33217
33218 #. type: textblock
33219 #: ../src/guestfs.pod:338
33220 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33221 msgstr ""
33222
33223 #. type: =head2
33224 #: ../src/guestfs.pod:342
33225 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33226 msgstr ""
33227
33228 #. type: textblock
33229 #: ../src/guestfs.pod:344
33230 msgid ""
33231 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33232 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33233 "appears you can only upload and download to files.  However many Un*x-like "
33234 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33235 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33236 "and arbitrary file descriptor N."
33237 msgstr ""
33238
33239 #. type: textblock
33240 #: ../src/guestfs.pod:352
33241 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33242 msgstr ""
33243
33244 #. type: verbatim
33245 #: ../src/guestfs.pod:355
33246 #, no-wrap
33247 msgid ""
33248 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33249 "\n"
33250 msgstr ""
33251 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33252 "\n"
33253
33254 #. type: textblock
33255 #: ../src/guestfs.pod:357
33256 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33257 msgstr ""
33258
33259 #. type: verbatim
33260 #: ../src/guestfs.pod:359
33261 #, no-wrap
33262 msgid ""
33263 " char devfd[64];\n"
33264 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33265 " guestfs_tar_out (g, \"/\", devfd);\n"
33266 "\n"
33267 msgstr ""
33268 " char devfd[64];\n"
33269 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33270 " guestfs_tar_out (g, \"/\", devfd);\n"
33271 "\n"
33272
33273 #. type: =head2
33274 #: ../src/guestfs.pod:363
33275 msgid "LISTING FILES"
33276 msgstr "СПИСКИ ФАЙЛІВ"
33277
33278 #. type: textblock
33279 #: ../src/guestfs.pod:365
33280 msgid ""
33281 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33282 "L<guestfish(1)>-equivalent command C<ll>)."
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:368
33287 msgid ""
33288 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33289 "programs, as a flat list of strings."
33290 msgstr ""
33291
33292 #. type: textblock
33293 #: ../src/guestfs.pod:371
33294 msgid ""
33295 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33296 "directory, plus additional information about each one.  It is more "
33297 "equivalent to using the L<readdir(3)> call on a local filesystem."
33298 msgstr ""
33299
33300 #. type: textblock
33301 #: ../src/guestfs.pod:375
33302 msgid ""
33303 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33304 msgstr ""
33305
33306 #. type: =head2
33307 #: ../src/guestfs.pod:378
33308 msgid "RUNNING COMMANDS"
33309 msgstr "ВИКОНАННЯ КОМАНД"
33310
33311 #. type: textblock
33312 #: ../src/guestfs.pod:380
33313 msgid ""
33314 "Although libguestfs is primarily an API for manipulating files inside guest "
33315 "images, we also provide some limited facilities for running commands inside "
33316 "guests."
33317 msgstr ""
33318
33319 #. type: textblock
33320 #: ../src/guestfs.pod:384
33321 msgid "There are many limitations to this:"
33322 msgstr ""
33323
33324 #. type: textblock
33325 #: ../src/guestfs.pod:390
33326 msgid ""
33327 "The kernel version that the command runs under will be different from what "
33328 "it expects."
33329 msgstr ""
33330
33331 #. type: textblock
33332 #: ../src/guestfs.pod:395
33333 msgid ""
33334 "If the command needs to communicate with daemons, then most likely they "
33335 "won't be running."
33336 msgstr ""
33337
33338 #. type: textblock
33339 #: ../src/guestfs.pod:400
33340 msgid "The command will be running in limited memory."
33341 msgstr ""
33342
33343 #. type: textblock
33344 #: ../src/guestfs.pod:404
33345 msgid ""
33346 "The network may not be available unless you enable it (see L</"
33347 "guestfs_set_network>)."
33348 msgstr ""
33349
33350 #. type: textblock
33351 #: ../src/guestfs.pod:409
33352 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33353 msgstr ""
33354
33355 #. type: textblock
33356 #: ../src/guestfs.pod:413
33357 msgid ""
33358 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33359 msgstr ""
33360
33361 #. type: textblock
33362 #: ../src/guestfs.pod:418
33363 msgid ""
33364 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33365 "See L</SELINUX> in this manpage."
33366 msgstr ""
33367
33368 #. type: textblock
33369 #: ../src/guestfs.pod:423
33370 msgid ""
33371 "I<Security:> It is not safe to run commands from untrusted, possibly "
33372 "malicious guests.  These commands may attempt to exploit your program by "
33373 "sending unexpected output.  They could also try to exploit the Linux kernel "
33374 "or qemu provided by the libguestfs appliance.  They could use the network "
33375 "provided by the libguestfs appliance to bypass ordinary network partitions "
33376 "and firewalls.  They could use the elevated privileges or different SELinux "
33377 "context of your program to their advantage."
33378 msgstr ""
33379
33380 #. type: textblock
33381 #: ../src/guestfs.pod:432
33382 msgid ""
33383 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33384 "(a script which runs when the guest next boots normally), and to have this "
33385 "script run the commands you want in the normal context of the running guest, "
33386 "network security and so on.  For information about other security issues, "
33387 "see L</SECURITY>."
33388 msgstr ""
33389
33390 #. type: textblock
33391 #: ../src/guestfs.pod:440
33392 msgid ""
33393 "The two main API calls to run commands are L</guestfs_command> and L</"
33394 "guestfs_sh> (there are also variations)."
33395 msgstr ""
33396
33397 #. type: textblock
33398 #: ../src/guestfs.pod:443
33399 msgid ""
33400 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33401 "shell globs, redirections, etc will work."
33402 msgstr ""
33403
33404 #. type: =head2
33405 #: ../src/guestfs.pod:446
33406 msgid "CONFIGURATION FILES"
33407 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33408
33409 #. type: textblock
33410 #: ../src/guestfs.pod:448
33411 msgid ""
33412 "To read and write configuration files in Linux guest filesystems, we "
33413 "strongly recommend using Augeas.  For example, Augeas understands how to "
33414 "read and write, say, a Linux shadow password file or X.org configuration "
33415 "file, and so avoids you having to write that code."
33416 msgstr ""
33417
33418 #. type: textblock
33419 #: ../src/guestfs.pod:453
33420 msgid ""
33421 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33422 "document Augeas itself here because there is excellent documentation on the "
33423 "L<http://augeas.net/> website."
33424 msgstr ""
33425
33426 #. type: textblock
33427 #: ../src/guestfs.pod:457
33428 msgid ""
33429 "If you don't want to use Augeas (you fool!) then try calling L</"
33430 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33431 "over."
33432 msgstr ""
33433
33434 #. type: =head2
33435 #: ../src/guestfs.pod:461
33436 msgid "SELINUX"
33437 msgstr "SELINUX"
33438
33439 #. type: textblock
33440 #: ../src/guestfs.pod:463
33441 msgid ""
33442 "We support SELinux guests.  To ensure that labeling happens correctly in "
33443 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33444 msgstr ""
33445
33446 #. type: textblock
33447 #: ../src/guestfs.pod:471
33448 msgid "Before launching, do:"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs.pod:473
33453 #, no-wrap
33454 msgid ""
33455 " guestfs_set_selinux (g, 1);\n"
33456 "\n"
33457 msgstr ""
33458 " guestfs_set_selinux (g, 1);\n"
33459 "\n"
33460
33461 #. type: textblock
33462 #: ../src/guestfs.pod:477
33463 msgid ""
33464 "After mounting the guest's filesystem(s), load the policy.  This is best "
33465 "done by running the L<load_policy(8)> command in the guest itself:"
33466 msgstr ""
33467
33468 #. type: verbatim
33469 #: ../src/guestfs.pod:481
33470 #, no-wrap
33471 msgid ""
33472 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33473 "\n"
33474 msgstr ""
33475 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33476 "\n"
33477
33478 #. type: textblock
33479 #: ../src/guestfs.pod:483
33480 msgid ""
33481 "(Older versions of C<load_policy> require you to specify the name of the "
33482 "policy file)."
33483 msgstr ""
33484
33485 #. type: textblock
33486 #: ../src/guestfs.pod:488
33487 msgid ""
33488 "Optionally, set the security context for the API.  The correct security "
33489 "context to use can only be known by inspecting the guest.  As an example:"
33490 msgstr ""
33491
33492 #. type: verbatim
33493 #: ../src/guestfs.pod:492
33494 #, no-wrap
33495 msgid ""
33496 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33497 "\n"
33498 msgstr ""
33499 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33500 "\n"
33501
33502 #. type: textblock
33503 #: ../src/guestfs.pod:496
33504 msgid "This will work for running commands and editing existing files."
33505 msgstr ""
33506
33507 #. type: textblock
33508 #: ../src/guestfs.pod:498
33509 msgid ""
33510 "When new files are created, you may need to label them explicitly, for "
33511 "example by running the external command C<restorecon pathname>."
33512 msgstr ""
33513
33514 #. type: =head2
33515 #: ../src/guestfs.pod:502
33516 msgid "UMASK"
33517 msgstr "UMASK"
33518
33519 #. type: textblock
33520 #: ../src/guestfs.pod:504
33521 msgid ""
33522 "Certain calls are affected by the current file mode creation mask (the "
33523 "\"umask\").  In particular ones which create files or directories, such as "
33524 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33525 "either the default mode that the file is created with or modifies the mode "
33526 "that you supply."
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs.pod:510
33531 msgid ""
33532 "The default umask is C<022>, so files are created with modes such as C<0644> "
33533 "and directories with C<0755>."
33534 msgstr ""
33535
33536 #. type: textblock
33537 #: ../src/guestfs.pod:513
33538 msgid ""
33539 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33540 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33541 "guestfs_chmod> after creating each file or directory."
33542 msgstr ""
33543
33544 #. type: textblock
33545 #: ../src/guestfs.pod:517
33546 msgid "For more information about umask, see L<umask(2)>."
33547 msgstr ""
33548
33549 #. type: textblock
33550 #: ../src/guestfs.pod:521
33551 msgid ""
33552 "Libguestfs allows you to access Linux guests which have been encrypted using "
33553 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33554 "standard.  This includes nearly all whole disk encryption systems used by "
33555 "modern Linux guests."
33556 msgstr ""
33557
33558 #. type: textblock
33559 #: ../src/guestfs.pod:527
33560 msgid ""
33561 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33562 "returns the string C<crypto_LUKS>)."
33563 msgstr ""
33564
33565 #. type: textblock
33566 #: ../src/guestfs.pod:530
33567 msgid ""
33568 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33569 "will require the passphrase!"
33570 msgstr ""
33571
33572 #. type: textblock
33573 #: ../src/guestfs.pod:533
33574 msgid ""
33575 "Opening a LUKS device creates a new device mapper device called C</dev/"
33576 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33577 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33578 "from and encrypted to the underlying block device respectively."
33579 msgstr ""
33580
33581 #. type: textblock
33582 #: ../src/guestfs.pod:539
33583 msgid ""
33584 "LVM volume groups on the device can be made visible by calling L</"
33585 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33586 "(s) can now be mounted in the usual way."
33587 msgstr ""
33588
33589 #. type: textblock
33590 #: ../src/guestfs.pod:543
33591 msgid ""
33592 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33593 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33594 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33595 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33596 "underlying encrypted block device)."
33597 msgstr ""
33598
33599 #. type: =head2
33600 #: ../src/guestfs.pod:550
33601 msgid "INSPECTION"
33602 msgstr "ПЕРЕВІРКА"
33603
33604 #. type: textblock
33605 #: ../src/guestfs.pod:552
33606 msgid ""
33607 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33608 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33609 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33610 "version 1.5.3 the most frequently used part of this library has been "
33611 "rewritten in C and moved into the core code)."
33612 msgstr ""
33613
33614 #. type: textblock
33615 #: ../src/guestfs.pod:559
33616 msgid ""
33617 "Add all disks belonging to the unknown virtual machine and call L</"
33618 "guestfs_launch> in the usual way."
33619 msgstr ""
33620
33621 #. type: textblock
33622 #: ../src/guestfs.pod:562
33623 msgid ""
33624 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33625 "and certain heuristics, and returns a list of operating systems that were "
33626 "found.  An empty list means none were found.  A single element is the root "
33627 "filesystem of the operating system.  For dual- or multi-boot guests, "
33628 "multiple roots can be returned, each one corresponding to a separate "
33629 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33630 "world of virtualization, but since this scenario can happen, we have built "
33631 "libguestfs to deal with it.)"
33632 msgstr ""
33633
33634 #. type: textblock
33635 #: ../src/guestfs.pod:571
33636 msgid ""
33637 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33638 "to get additional details about that operating system.  For example, call L</"
33639 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33640 "Windows and Linux-based operating systems respectively."
33641 msgstr ""
33642
33643 #. type: textblock
33644 #: ../src/guestfs.pod:577
33645 msgid ""
33646 "Un*x-like and Linux-based operating systems usually consist of several "
33647 "filesystems which are mounted at boot time (for example, a separate boot "
33648 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33649 "filesystems correspond to mount points.  Call "
33650 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33651 "hash table like this example:"
33652 msgstr ""
33653
33654 #. type: verbatim
33655 #: ../src/guestfs.pod:584
33656 #, no-wrap
33657 msgid ""
33658 " /boot => /dev/sda1\n"
33659 " /     => /dev/vg_guest/lv_root\n"
33660 " /usr  => /dev/vg_guest/lv_usr\n"
33661 "\n"
33662 msgstr ""
33663 " /boot => /dev/sda1\n"
33664 " /     => /dev/vg_guest/lv_root\n"
33665 " /usr  => /dev/vg_guest/lv_usr\n"
33666 "\n"
33667
33668 #. type: textblock
33669 #: ../src/guestfs.pod:588
33670 msgid ""
33671 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33672 "filesystems as suggested."
33673 msgstr ""
33674
33675 #. type: textblock
33676 #: ../src/guestfs.pod:591
33677 msgid ""
33678 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33679 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs.pod:595
33684 msgid ""
33685 "Inspection currently only works for some common operating systems.  "
33686 "Contributors are welcome to send patches for other operating systems that we "
33687 "currently cannot detect."
33688 msgstr ""
33689
33690 #. type: textblock
33691 #: ../src/guestfs.pod:599
33692 msgid ""
33693 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33694 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33695 "encrypted devices."
33696 msgstr ""
33697
33698 #. type: textblock
33699 #: ../src/guestfs.pod:603
33700 msgid ""
33701 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33702 "inspection and caches the results in the guest handle.  Subsequent calls to "
33703 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33704 "read the disks.  If you change the content of the guest disks, you can redo "
33705 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33706 "guestfs_inspect_list_applications> works a little differently from the other "
33707 "calls and does read the disks.  See documentation for that function for "
33708 "details)."
33709 msgstr ""
33710
33711 #. type: =head3
33712 #: ../src/guestfs.pod:612
33713 msgid "INSPECTING INSTALL DISKS"
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs.pod:614
33718 msgid ""
33719 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33720 "CDs and more."
33721 msgstr ""
33722
33723 #. type: textblock
33724 #: ../src/guestfs.pod:617
33725 msgid ""
33726 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33727 "system, which currently can be C<installed> (a regular operating system) or "
33728 "C<installer> (some sort of install disk)."
33729 msgstr ""
33730
33731 #. type: textblock
33732 #: ../src/guestfs.pod:621
33733 msgid ""
33734 "Further information is available about the operating system that can be "
33735 "installed using the regular inspection APIs like L</"
33736 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33737 msgstr ""
33738
33739 #. type: textblock
33740 #: ../src/guestfs.pod:626
33741 msgid ""
33742 "Some additional information specific to installer disks is also available "
33743 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33744 "guestfs_inspect_is_multipart> calls."
33745 msgstr ""
33746
33747 #. type: =head2
33748 #: ../src/guestfs.pod:631
33749 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33750 msgstr ""
33751
33752 #. type: textblock
33753 #: ../src/guestfs.pod:633
33754 msgid ""
33755 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33756 "ntfs-3g.org/> driver."
33757 msgstr ""
33758
33759 #. type: =head3
33760 #: ../src/guestfs.pod:636
33761 msgid "DRIVE LETTERS AND PATHS"
33762 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33763
33764 #. type: textblock
33765 #: ../src/guestfs.pod:638
33766 msgid ""
33767 "DOS and Windows still use drive letters, and the filesystems are always "
33768 "treated as case insensitive by Windows itself, and therefore you might find "
33769 "a Windows configuration file referring to a path like C<c:\\windows"
33770 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33771 "might be referred to as C</WINDOWS/System32>."
33772 msgstr ""
33773
33774 #. type: textblock
33775 #: ../src/guestfs.pod:644
33776 msgid ""
33777 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33778 "L</guestfs_inspect_get_drive_mappings>)"
33779 msgstr ""
33780
33781 #. type: textblock
33782 #: ../src/guestfs.pod:647
33783 msgid ""
33784 "Dealing with separator characters (backslash vs forward slash) is outside "
33785 "the scope of libguestfs, but usually a simple character replacement will "
33786 "work."
33787 msgstr ""
33788
33789 #. type: textblock
33790 #: ../src/guestfs.pod:651
33791 msgid ""
33792 "To resolve the case insensitivity of paths, call L</"
33793 "guestfs_case_sensitive_path>."
33794 msgstr ""
33795
33796 #. type: =head3
33797 #: ../src/guestfs.pod:654
33798 msgid "ACCESSING THE WINDOWS REGISTRY"
33799 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33800
33801 #. type: textblock
33802 #: ../src/guestfs.pod:656
33803 msgid ""
33804 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33805 "files, through the library C<hivex> which is part of the libguestfs project "
33806 "although ships as a separate tarball.  You have to locate and download the "
33807 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33808 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33809 "reg(1)> for more help on this issue."
33810 msgstr ""
33811
33812 #. type: =head3
33813 #: ../src/guestfs.pod:664
33814 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33815 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33816
33817 #. type: textblock
33818 #: ../src/guestfs.pod:666
33819 msgid ""
33820 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33821 "provide something which looks like a Linux symlink.  The way it tries to do "
33822 "the rewriting is described here:"
33823 msgstr ""
33824
33825 #. type: textblock
33826 #: ../src/guestfs.pod:670
33827 msgid ""
33828 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33829 "symbolic-links/>"
33830 msgstr ""
33831 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33832 "symbolic-links/>"
33833
33834 #. type: textblock
33835 #: ../src/guestfs.pod:672
33836 msgid ""
33837 "The essential problem is that ntfs-3g simply does not have enough "
33838 "information to do a correct job.  NTFS links can contain drive letters and "
33839 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33840 "It is almost certainly the case that libguestfs callers should ignore what "
33841 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33842 msgstr ""
33843
33844 #. type: textblock
33845 #: ../src/guestfs.pod:679
33846 msgid ""
33847 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33848 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33849 "attribute, and read the raw reparse data from that (you can find the format "
33850 "documented in various places around the web)."
33851 msgstr ""
33852
33853 #. type: =head3
33854 #: ../src/guestfs.pod:684
33855 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33856 msgstr ""
33857
33858 #. type: textblock
33859 #: ../src/guestfs.pod:686
33860 msgid ""
33861 "There are other useful extended attributes that can be read from ntfs-3g "
33862 "filesystems (using L</guestfs_getxattr>).  See:"
33863 msgstr ""
33864
33865 #. type: textblock
33866 #: ../src/guestfs.pod:689
33867 msgid ""
33868 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33869 msgstr ""
33870 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33871
33872 #. type: =head2
33873 #: ../src/guestfs.pod:691
33874 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33875 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33876
33877 #. type: textblock
33878 #: ../src/guestfs.pod:693
33879 msgid ""
33880 "Although we don't want to discourage you from using the C API, we will "
33881 "mention here that the same API is also available in other languages."
33882 msgstr ""
33883
33884 #. type: textblock
33885 #: ../src/guestfs.pod:696
33886 msgid ""
33887 "The API is broadly identical in all supported languages.  This means that "
33888 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33889 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33890 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33891 "each language."
33892 msgstr ""
33893
33894 #. type: textblock
33895 #: ../src/guestfs.pod:702
33896 msgid ""
33897 "Error messages are automatically transformed into exceptions if the language "
33898 "supports it."
33899 msgstr ""
33900
33901 #. type: textblock
33902 #: ../src/guestfs.pod:705
33903 msgid ""
33904 "We don't try to \"object orientify\" parts of the API in OO languages, "
33905 "although contributors are welcome to write higher level APIs above what we "
33906 "provide in their favourite languages if they wish."
33907 msgstr ""
33908
33909 #. type: =item
33910 #: ../src/guestfs.pod:711
33911 msgid "B<C++>"
33912 msgstr "B<C++>"
33913
33914 #. type: textblock
33915 #: ../src/guestfs.pod:713
33916 msgid ""
33917 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33918 "identical to the C API.  C++ classes and exceptions are not used."
33919 msgstr ""
33920
33921 #. type: =item
33922 #: ../src/guestfs.pod:717
33923 msgid "B<C#>"
33924 msgstr "B<C#>"
33925
33926 #. type: textblock
33927 #: ../src/guestfs.pod:719
33928 msgid ""
33929 "The C# bindings are highly experimental.  Please read the warnings at the "
33930 "top of C<csharp/Libguestfs.cs>."
33931 msgstr ""
33932
33933 #. type: =item
33934 #: ../src/guestfs.pod:722
33935 msgid "B<Haskell>"
33936 msgstr "B<Haskell>"
33937
33938 #. type: textblock
33939 #: ../src/guestfs.pod:724
33940 msgid ""
33941 "This is the only language binding that is working but incomplete.  Only "
33942 "calls which return simple integers have been bound in Haskell, and we are "
33943 "looking for help to complete this binding."
33944 msgstr ""
33945
33946 #. type: =item
33947 #: ../src/guestfs.pod:728
33948 msgid "B<Java>"
33949 msgstr "B<Java>"
33950
33951 #. type: textblock
33952 #: ../src/guestfs.pod:730
33953 msgid ""
33954 "Full documentation is contained in the Javadoc which is distributed with "
33955 "libguestfs.  For examples, see L<guestfs-java(3)>."
33956 msgstr ""
33957
33958 #. type: =item
33959 #: ../src/guestfs.pod:733
33960 msgid "B<OCaml>"
33961 msgstr "B<OCaml>"
33962
33963 #. type: textblock
33964 #: ../src/guestfs.pod:735
33965 msgid "See L<guestfs-ocaml(3)>."
33966 msgstr "Див. L<guestfs-ocaml(3)>."
33967
33968 #. type: =item
33969 #: ../src/guestfs.pod:737
33970 msgid "B<Perl>"
33971 msgstr "B<Perl>"
33972
33973 #. type: textblock
33974 #: ../src/guestfs.pod:739
33975 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33976 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33977
33978 #. type: =item
33979 #: ../src/guestfs.pod:741
33980 msgid "B<PHP>"
33981 msgstr "B<PHP>"
33982
33983 #. type: textblock
33984 #: ../src/guestfs.pod:743
33985 msgid ""
33986 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33987 "the php-libguestfs package for your distribution."
33988 msgstr ""
33989
33990 #. type: textblock
33991 #: ../src/guestfs.pod:746
33992 msgid "The PHP binding only works correctly on 64 bit machines."
33993 msgstr ""
33994
33995 #. type: =item
33996 #: ../src/guestfs.pod:748
33997 msgid "B<Python>"
33998 msgstr "B<Python>"
33999
34000 #. type: textblock
34001 #: ../src/guestfs.pod:750
34002 msgid "See L<guestfs-python(3)>."
34003 msgstr "Див. L<guestfs-python(3)>."
34004
34005 #. type: =item
34006 #: ../src/guestfs.pod:752
34007 msgid "B<Ruby>"
34008 msgstr "B<Ruby>"
34009
34010 #. type: textblock
34011 #: ../src/guestfs.pod:754
34012 msgid "See L<guestfs-ruby(3)>."
34013 msgstr "Див. L<guestfs-ruby(3)>."
34014
34015 #. type: =item
34016 #: ../src/guestfs.pod:756
34017 msgid "B<shell scripts>"
34018 msgstr "B<скрипти оболонки>"
34019
34020 #. type: textblock
34021 #: ../src/guestfs.pod:758
34022 msgid "See L<guestfish(1)>."
34023 msgstr "Див. L<guestfish(1)>."
34024
34025 #. type: =head2
34026 #: ../src/guestfs.pod:762
34027 msgid "LIBGUESTFS GOTCHAS"
34028 msgstr ""
34029
34030 #. type: textblock
34031 #: ../src/guestfs.pod:764
34032 msgid ""
34033 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34034 "system [...] that works in the way it is documented but is counterintuitive "
34035 "and almost invites mistakes.\""
34036 msgstr ""
34037
34038 #. type: textblock
34039 #: ../src/guestfs.pod:768
34040 msgid ""
34041 "Since we developed libguestfs and the associated tools, there are several "
34042 "things we would have designed differently, but are now stuck with for "
34043 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34044 "release, you can expect these to change.  Beware of them."
34045 msgstr ""
34046
34047 #. type: =item
34048 #: ../src/guestfs.pod:776
34049 msgid "Autosync / forgetting to sync."
34050 msgstr ""
34051
34052 #. type: textblock
34053 #: ../src/guestfs.pod:778
34054 msgid ""
34055 "I<Update:> Autosync is enabled by default for all API users starting from "
34056 "libguestfs 1.5.24.  This section only applies to older versions."
34057 msgstr ""
34058
34059 #. type: textblock
34060 #: ../src/guestfs.pod:781
34061 msgid ""
34062 "When modifying a filesystem from C or another language, you B<must> unmount "
34063 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34064 "libguestfs handle.  You can also call:"
34065 msgstr ""
34066
34067 #. type: verbatim
34068 #: ../src/guestfs.pod:785
34069 #, no-wrap
34070 msgid ""
34071 " guestfs_set_autosync (g, 1);\n"
34072 "\n"
34073 msgstr ""
34074 " guestfs_set_autosync (g, 1);\n"
34075 "\n"
34076
34077 #. type: textblock
34078 #: ../src/guestfs.pod:787
34079 msgid ""
34080 "to have the unmount/sync done automatically for you when the handle 'g' is "
34081 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34082 msgstr ""
34083
34084 #. type: textblock
34085 #: ../src/guestfs.pod:791
34086 msgid ""
34087 "If you forget to do this, then it is entirely possible that your changes "
34088 "won't be written out, or will be partially written, or (very rarely) that "
34089 "you'll get disk corruption."
34090 msgstr ""
34091
34092 #. type: textblock
34093 #: ../src/guestfs.pod:795
34094 msgid ""
34095 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34096 "guestfish scripts that forget to sync will work just fine, which can make "
34097 "this very puzzling if you are trying to debug a problem."
34098 msgstr ""
34099
34100 #. type: =item
34101 #: ../src/guestfs.pod:799
34102 msgid "Mount option C<-o sync> should not be the default."
34103 msgstr ""
34104
34105 #. type: textblock
34106 #: ../src/guestfs.pod:801
34107 msgid ""
34108 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34109 "However C<-o sync> does not add any reliability benefit, but does have a "
34110 "very large performance impact."
34111 msgstr ""
34112
34113 #. type: textblock
34114 #: ../src/guestfs.pod:805
34115 msgid ""
34116 "The work around is to use L</guestfs_mount_options> and set the mount "
34117 "options that you actually want to use."
34118 msgstr ""
34119
34120 #. type: =item
34121 #: ../src/guestfs.pod:808
34122 msgid "Read-only should be the default."
34123 msgstr ""
34124
34125 #. type: textblock
34126 #: ../src/guestfs.pod:810
34127 msgid ""
34128 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34129 "specify I<--rw> if you want to make changes to the image."
34130 msgstr ""
34131
34132 #. type: textblock
34133 #: ../src/guestfs.pod:813
34134 msgid "This would reduce the potential to corrupt live VM images."
34135 msgstr ""
34136
34137 #. type: textblock
34138 #: ../src/guestfs.pod:815
34139 msgid ""
34140 "Note that many filesystems change the disk when you just mount and unmount, "
34141 "even if you didn't perform any writes.  You need to use L</"
34142 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34143 msgstr ""
34144
34145 #. type: =item
34146 #: ../src/guestfs.pod:819
34147 msgid "guestfish command line is hard to use."
34148 msgstr ""
34149
34150 #. type: textblock
34151 #: ../src/guestfs.pod:821
34152 msgid ""
34153 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34154 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34155 "exist, so it fails.  In earlier versions of guestfish the error message was "
34156 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34157 "we should have used C<guestfish -c command> to run commands."
34158 msgstr ""
34159
34160 #. type: =item
34161 #: ../src/guestfs.pod:828
34162 msgid "guestfish megabyte modifiers don't work right on all commands"
34163 msgstr ""
34164
34165 #. type: textblock
34166 #: ../src/guestfs.pod:830
34167 msgid ""
34168 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34169 "other modifiers).  What guestfish actually does is to multiply the number "
34170 "part by the modifier part and pass the result to the C API.  However this "
34171 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34172 "expecting some other unit (eg. megabytes)."
34173 msgstr ""
34174
34175 #. type: textblock
34176 #: ../src/guestfs.pod:837
34177 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34178 msgstr ""
34179
34180 #. type: verbatim
34181 #: ../src/guestfs.pod:839
34182 #, no-wrap
34183 msgid ""
34184 " lvcreate LV VG 100M\n"
34185 "\n"
34186 msgstr ""
34187 " lvcreate LV VG 100M\n"
34188 "\n"
34189
34190 #. type: textblock
34191 #: ../src/guestfs.pod:841
34192 msgid ""
34193 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34194 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34195 "megabytes * megabytes) logical volume.  The error message you get from this "
34196 "is also a little obscure."
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs.pod:846
34201 msgid ""
34202 "This could be fixed in the generator by specially marking parameters and "
34203 "return values which take bytes or other units."
34204 msgstr ""
34205
34206 #. type: =item
34207 #: ../src/guestfs.pod:849
34208 msgid "Ambiguity between devices and paths"
34209 msgstr ""
34210
34211 #. type: textblock
34212 #: ../src/guestfs.pod:851
34213 msgid ""
34214 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34215 "sdb2>) and a similar pathname.  A file might just happen to be called "
34216 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:856
34221 msgid ""
34222 "In the current API we usually resolve this ambiguity by having two separate "
34223 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34224 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34225 "detecting if the path supplied begins with C</dev/>."
34226 msgstr ""
34227
34228 #. type: textblock
34229 #: ../src/guestfs.pod:862
34230 msgid ""
34231 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34232 "make paths/devices into structured names.  One way to do this would be to "
34233 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34234 "aspect of grub.  Another way would be to use a structured type, equivalent "
34235 "to this OCaml type:"
34236 msgstr ""
34237
34238 #. type: verbatim
34239 #: ../src/guestfs.pod:868
34240 #, no-wrap
34241 msgid ""
34242 " type path = Path of string | Device of int | Partition of int * int\n"
34243 "\n"
34244 msgstr ""
34245
34246 #. type: textblock
34247 #: ../src/guestfs.pod:870
34248 msgid "which would allow you to pass arguments like:"
34249 msgstr ""
34250
34251 #. type: verbatim
34252 #: ../src/guestfs.pod:872
34253 #, no-wrap
34254 msgid ""
34255 " Path \"/foo/bar\"\n"
34256 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34257 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34258 " Path \"/dev/sdb2\"    (* not a device *)\n"
34259 "\n"
34260 msgstr ""
34261
34262 #. type: textblock
34263 #: ../src/guestfs.pod:877
34264 msgid ""
34265 "As you can see there are still problems to resolve even with this "
34266 "representation.  Also consider how it might work in guestfish."
34267 msgstr ""
34268
34269 #. type: =head2
34270 #: ../src/guestfs.pod:882
34271 msgid "KEYS AND PASSPHRASES"
34272 msgstr "КЛЮЧІ І ПАРОЛІ"
34273
34274 #. type: textblock
34275 #: ../src/guestfs.pod:884
34276 msgid ""
34277 "Certain libguestfs calls take a parameter that contains sensitive key "
34278 "material, passed in as a C string."
34279 msgstr ""
34280
34281 #. type: textblock
34282 #: ../src/guestfs.pod:887
34283 msgid ""
34284 "In the future we would hope to change the libguestfs implementation so that "
34285 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34286 "swap.  However this is I<not> done at the moment, because of the complexity "
34287 "of such an implementation."
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs.pod:892
34292 msgid ""
34293 "Therefore you should be aware that any key parameter you pass to libguestfs "
34294 "might end up being written out to the swap partition.  If this is a concern, "
34295 "scrub the swap partition or don't use libguestfs on encrypted devices."
34296 msgstr ""
34297
34298 #. type: =head2
34299 #: ../src/guestfs.pod:897
34300 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34301 msgstr ""
34302
34303 #. type: textblock
34304 #: ../src/guestfs.pod:899
34305 msgid ""
34306 "All high-level libguestfs actions are synchronous.  If you want to use "
34307 "libguestfs asynchronously then you must create a thread."
34308 msgstr ""
34309
34310 #. type: textblock
34311 #: ../src/guestfs.pod:902
34312 msgid ""
34313 "Only use the handle from a single thread.  Either use the handle exclusively "
34314 "from one thread, or provide your own mutex so that two threads cannot issue "
34315 "calls on the same handle at the same time."
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs.pod:906
34320 msgid ""
34321 "See the graphical program guestfs-browser for one possible architecture for "
34322 "multithreaded programs using libvirt and libguestfs."
34323 msgstr ""
34324
34325 #. type: =head2
34326 #: ../src/guestfs.pod:909
34327 msgid "PATH"
34328 msgstr "ШЛЯХ"
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:911
34332 msgid ""
34333 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34334 "internal path."
34335 msgstr ""
34336
34337 #. type: textblock
34338 #: ../src/guestfs.pod:914
34339 msgid ""
34340 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34341 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34342 msgstr ""
34343
34344 #. type: textblock
34345 #: ../src/guestfs.pod:917
34346 msgid ""
34347 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34348 "to change the directories that libguestfs will search in.  The value is a "
34349 "colon-separated list of paths.  The current directory is I<not> searched "
34350 "unless the path contains an empty element or C<.>.  For example "
34351 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34352 "then C</usr/lib/guestfs>."
34353 msgstr ""
34354
34355 #. type: =head2
34356 #: ../src/guestfs.pod:924
34357 msgid "QEMU WRAPPERS"
34358 msgstr ""
34359
34360 #. type: textblock
34361 #: ../src/guestfs.pod:926
34362 msgid ""
34363 "If you want to compile your own qemu, run qemu from a non-standard location, "
34364 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34365 "around qemu."
34366 msgstr ""
34367
34368 #. type: textblock
34369 #: ../src/guestfs.pod:930
34370 msgid ""
34371 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34372 "last command in the shell script (so that qemu replaces the shell and "
34373 "becomes the direct child of the libguestfs-using program).  If you don't do "
34374 "this, then the qemu process won't be cleaned up correctly."
34375 msgstr ""
34376
34377 #. type: textblock
34378 #: ../src/guestfs.pod:935
34379 msgid ""
34380 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34381 "source:"
34382 msgstr ""
34383
34384 #. type: verbatim
34385 #: ../src/guestfs.pod:938
34386 #, no-wrap
34387 msgid ""
34388 " #!/bin/sh -\n"
34389 " qemudir=/home/rjones/d/qemu\n"
34390 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34391 "\n"
34392 msgstr ""
34393 " #!/bin/sh -\n"
34394 " qemudir=/home/rjones/d/qemu\n"
34395 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34396 "\n"
34397
34398 #. type: textblock
34399 #: ../src/guestfs.pod:942
34400 msgid ""
34401 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34402 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34403 "example:"
34404 msgstr ""
34405
34406 #. type: verbatim
34407 #: ../src/guestfs.pod:946
34408 #, no-wrap
34409 msgid ""
34410 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34411 "\n"
34412 msgstr ""
34413 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34414 "\n"
34415
34416 #. type: textblock
34417 #: ../src/guestfs.pod:948
34418 msgid ""
34419 "Note that libguestfs also calls qemu with the -help and -version options in "
34420 "order to determine features."
34421 msgstr ""
34422
34423 #. type: =head2
34424 #: ../src/guestfs.pod:951
34425 msgid "ATTACHING TO RUNNING DAEMONS"
34426 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34427
34428 #. type: textblock
34429 #: ../src/guestfs.pod:953
34430 msgid ""
34431 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34432 "babies.  Use with caution."
34433 msgstr ""
34434
34435 #. type: textblock
34436 #: ../src/guestfs.pod:956
34437 msgid ""
34438 "I<Note (2):> This section explains how to attach to a running daemon from a "
34439 "low level perspective.  For most users, simply using virt tools such as "
34440 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34441 msgstr ""
34442
34443 #. type: =head3
34444 #: ../src/guestfs.pod:960
34445 msgid "Using guestfs_set_attach_method"
34446 msgstr "За допомогою guestfs_set_attach_method"
34447
34448 #. type: textblock
34449 #: ../src/guestfs.pod:962
34450 msgid ""
34451 "By calling L</guestfs_set_attach_method> you can change how the library "
34452 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34453 "ARCHITECTURE> for some background)."
34454 msgstr ""
34455
34456 #. type: textblock
34457 #: ../src/guestfs.pod:966
34458 msgid ""
34459 "The normal attach method is C<appliance>, where a small appliance is created "
34460 "containing the daemon, and then the library connects to this."
34461 msgstr ""
34462
34463 #. type: textblock
34464 #: ../src/guestfs.pod:969
34465 msgid ""
34466 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34467 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34468 "daemon over the Unix domain socket."
34469 msgstr ""
34470
34471 #. type: textblock
34472 #: ../src/guestfs.pod:973
34473 msgid ""
34474 "The normal use for this is to connect to a running virtual machine that "
34475 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34476 "files inside the live virtual machine."
34477 msgstr ""
34478
34479 #. type: =head3
34480 #: ../src/guestfs.pod:977
34481 msgid "Using guestfs_add_domain with live flag"
34482 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34483
34484 #. type: textblock
34485 #: ../src/guestfs.pod:979
34486 msgid ""
34487 "L</guestfs_add_domain> provides some help for getting the correct attach "
34488 "method.  If you pass the C<live> option to this function, then (if the "
34489 "virtual machine is running) it will examine the libvirt XML looking for a "
34490 "virtio-serial channel to connect to:"
34491 msgstr ""
34492
34493 #. type: verbatim
34494 #: ../src/guestfs.pod:985
34495 #, no-wrap
34496 msgid ""
34497 " <domain>\n"
34498 "   ...\n"
34499 "   <devices>\n"
34500 "     ...\n"
34501 "     <channel type='unix'>\n"
34502 "       <source mode='bind' path='/path/to/socket'/>\n"
34503 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34504 "     </channel>\n"
34505 "     ...\n"
34506 "   </devices>\n"
34507 " </domain>\n"
34508 "\n"
34509 msgstr ""
34510 " <domain>\n"
34511 "   ...\n"
34512 "   <devices>\n"
34513 "     ...\n"
34514 "     <channel type='unix'>\n"
34515 "       <source mode='bind' path='/path/to/socket'/>\n"
34516 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34517 "     </channel>\n"
34518 "     ...\n"
34519 "   </devices>\n"
34520 " </domain>\n"
34521 "\n"
34522
34523 #. type: textblock
34524 #: ../src/guestfs.pod:997
34525 msgid ""
34526 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34527 "method to C<unix:/path/to/socket>."
34528 msgstr ""
34529
34530 #. type: textblock
34531 #: ../src/guestfs.pod:1000
34532 msgid ""
34533 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34534 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34535 "to attach to and modify live virtual machines."
34536 msgstr ""
34537
34538 #. type: textblock
34539 #: ../src/guestfs.pod:1004
34540 msgid ""
34541 "The virtual machine needs to have been set up beforehand so that it has the "
34542 "virtio-serial channel and so that guestfsd is running inside it."
34543 msgstr ""
34544
34545 #. type: =head2
34546 #: ../src/guestfs.pod:1008
34547 msgid "ABI GUARANTEE"
34548 msgstr "ГАРАНТІЯ ЩОДО ABI"
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:1010
34552 msgid ""
34553 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34554 "actions as outlined in this section.  Although we will deprecate some "
34555 "actions, for example if they get replaced by newer calls, we will keep the "
34556 "old actions forever.  This allows you the developer to program in confidence "
34557 "against the libguestfs API."
34558 msgstr ""
34559
34560 #. type: =head2
34561 #: ../src/guestfs.pod:1016
34562 msgid "BLOCK DEVICE NAMING"
34563 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34564
34565 #. type: textblock
34566 #: ../src/guestfs.pod:1018
34567 msgid ""
34568 "In the kernel there is now quite a profusion of schemata for naming block "
34569 "devices (in this context, by I<block device> I mean a physical or virtual "
34570 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34571 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34572 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34573 "for the old IDE driver (particularly for SATA devices) those devices also "
34574 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34575 "paravirtualized drivers.  This has created several different naming systems, "
34576 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:1030
34581 msgid ""
34582 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34583 "Linux kernel to access block devices.  We can run a variety of appliances "
34584 "based on a variety of Linux kernels."
34585 msgstr ""
34586
34587 #. type: textblock
34588 #: ../src/guestfs.pod:1034
34589 msgid ""
34590 "This causes a problem for libguestfs because many API calls use device or "
34591 "partition names.  Working scripts and the recipe (example) scripts that we "
34592 "make available over the internet could fail if the naming scheme changes."
34593 msgstr ""
34594
34595 #. type: textblock
34596 #: ../src/guestfs.pod:1039
34597 msgid ""
34598 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34599 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34600 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34601 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34602 msgstr ""
34603
34604 #. type: textblock
34605 #: ../src/guestfs.pod:1045
34606 msgid ""
34607 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34608 "L</guestfs_list_partitions> and similar calls return the true names of the "
34609 "devices and partitions as known to the appliance."
34610 msgstr ""
34611
34612 #. type: =head3
34613 #: ../src/guestfs.pod:1050
34614 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34615 msgstr ""
34616
34617 #. type: textblock
34618 #: ../src/guestfs.pod:1052
34619 msgid ""
34620 "Usually this translation is transparent.  However in some (very rare)  cases "
34621 "you may need to know the exact algorithm.  Such cases include where you use "
34622 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34623 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34624 msgstr ""
34625
34626 #. type: textblock
34627 #: ../src/guestfs.pod:1058
34628 msgid ""
34629 "The algorithm is applied only to I<parameters> which are known to be either "
34630 "device or partition names.  Return values from functions such as L</"
34631 "guestfs_list_devices> are never changed."
34632 msgstr ""
34633
34634 #. type: textblock
34635 #: ../src/guestfs.pod:1066
34636 msgid "Is the string a parameter which is a device or partition name?"
34637 msgstr ""
34638
34639 #. type: textblock
34640 #: ../src/guestfs.pod:1070
34641 msgid "Does the string begin with C</dev/sd>?"
34642 msgstr "Чи починається рядок з C</dev/sd>?"
34643
34644 #. type: textblock
34645 #: ../src/guestfs.pod:1074
34646 msgid ""
34647 "Does the named device exist? If so, we use that device.  However if I<not> "
34648 "then we continue with this algorithm."
34649 msgstr ""
34650
34651 #. type: textblock
34652 #: ../src/guestfs.pod:1079
34653 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34654 msgstr ""
34655
34656 #. type: textblock
34657 #: ../src/guestfs.pod:1081
34658 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34659 msgstr ""
34660
34661 #. type: textblock
34662 #: ../src/guestfs.pod:1083
34663 msgid "If that named device exists, use it.  If not, continue."
34664 msgstr ""
34665
34666 #. type: textblock
34667 #: ../src/guestfs.pod:1087
34668 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34669 msgstr ""
34670
34671 #. type: textblock
34672 #: ../src/guestfs.pod:1089
34673 msgid "If that named device exists, use it.  If not, return an error."
34674 msgstr ""
34675
34676 #. type: =head3
34677 #: ../src/guestfs.pod:1093
34678 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34679 msgstr ""
34680
34681 #. type: textblock
34682 #: ../src/guestfs.pod:1095
34683 msgid ""
34684 "Although the standard naming scheme and automatic translation is useful for "
34685 "simple programs and guestfish scripts, for larger programs it is best not to "
34686 "rely on this mechanism."
34687 msgstr ""
34688
34689 #. type: textblock
34690 #: ../src/guestfs.pod:1099
34691 msgid ""
34692 "Where possible for maximum future portability programs using libguestfs "
34693 "should use these future-proof techniques:"
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:1106
34698 msgid ""
34699 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34700 "device names, and then use those names directly."
34701 msgstr ""
34702
34703 #. type: textblock
34704 #: ../src/guestfs.pod:1109
34705 msgid ""
34706 "Since those device names exist by definition, they will never be translated."
34707 msgstr ""
34708
34709 #. type: textblock
34710 #: ../src/guestfs.pod:1114
34711 msgid ""
34712 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34713 "filesystem labels."
34714 msgstr ""
34715
34716 #. type: =head1
34717 #: ../src/guestfs.pod:1119
34718 msgid "SECURITY"
34719 msgstr "БЕЗПЕКА"
34720
34721 #. type: textblock
34722 #: ../src/guestfs.pod:1121
34723 msgid ""
34724 "This section discusses security implications of using libguestfs, "
34725 "particularly with untrusted or malicious guests or disk images."
34726 msgstr ""
34727
34728 #. type: =head2
34729 #: ../src/guestfs.pod:1124
34730 msgid "GENERAL SECURITY CONSIDERATIONS"
34731 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:1126
34735 msgid ""
34736 "Be careful with any files or data that you download from a guest (by "
34737 "\"download\" we mean not just the L</guestfs_download> command but any "
34738 "command that reads files, filenames, directories or anything else from a "
34739 "disk image).  An attacker could manipulate the data to fool your program "
34740 "into doing the wrong thing.  Consider cases such as:"
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:1136
34745 msgid "the data (file etc) not being present"
34746 msgstr ""
34747
34748 #. type: textblock
34749 #: ../src/guestfs.pod:1140
34750 msgid "being present but empty"
34751 msgstr ""
34752
34753 #. type: textblock
34754 #: ../src/guestfs.pod:1144
34755 msgid "being much larger than normal"
34756 msgstr ""
34757
34758 #. type: textblock
34759 #: ../src/guestfs.pod:1148
34760 msgid "containing arbitrary 8 bit data"
34761 msgstr ""
34762
34763 #. type: textblock
34764 #: ../src/guestfs.pod:1152
34765 msgid "being in an unexpected character encoding"
34766 msgstr ""
34767
34768 #. type: textblock
34769 #: ../src/guestfs.pod:1156
34770 msgid "containing homoglyphs."
34771 msgstr ""
34772
34773 #. type: =head2
34774 #: ../src/guestfs.pod:1160
34775 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34776 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34777
34778 #. type: textblock
34779 #: ../src/guestfs.pod:1162
34780 msgid ""
34781 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34782 "(VFS) module can sometimes be escalated into exploits by deliberately "
34783 "creating a malicious, malformed filesystem.  These exploits are very severe "
34784 "for two reasons.  Firstly there are very many filesystem drivers in the "
34785 "kernel, and many of them are infrequently used and not much developer "
34786 "attention has been paid to the code.  Linux userspace helps potential "
34787 "crackers by detecting the filesystem type and automatically choosing the "
34788 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34789 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34790 "exploit (worse in some ways), giving immediate and total access to the "
34791 "system right down to the hardware level."
34792 msgstr ""
34793
34794 #. type: textblock
34795 #: ../src/guestfs.pod:1175
34796 msgid ""
34797 "That explains why you should never mount a filesystem from an untrusted "
34798 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34799 "inside a qemu virtual machine, usually running as a non-root user.  The "
34800 "attacker would need to write a filesystem which first exploited the kernel, "
34801 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34802 "the libguestfs protocol, and finally to be as serious as the host kernel "
34803 "exploit it would need to escalate its privileges to root.  This multi-step "
34804 "escalation, performed by a static piece of data, is thought to be extremely "
34805 "hard to do, although we never say 'never' about security issues."
34806 msgstr ""
34807
34808 #. type: textblock
34809 #: ../src/guestfs.pod:1186
34810 msgid ""
34811 "In any case callers can reduce the attack surface by forcing the filesystem "
34812 "type when mounting (use L</guestfs_mount_vfs>)."
34813 msgstr ""
34814
34815 #. type: =head2
34816 #: ../src/guestfs.pod:1189
34817 msgid "PROTOCOL SECURITY"
34818 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34819
34820 #. type: textblock
34821 #: ../src/guestfs.pod:1191
34822 msgid ""
34823 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34824 "defined upper message size.  However a program that uses libguestfs must "
34825 "also take care - for example you can write a program that downloads a binary "
34826 "from a disk image and executes it locally, and no amount of protocol "
34827 "security will save you from the consequences."
34828 msgstr ""
34829
34830 #. type: =head2
34831 #: ../src/guestfs.pod:1197
34832 msgid "INSPECTION SECURITY"
34833 msgstr ""
34834
34835 #. type: textblock
34836 #: ../src/guestfs.pod:1199
34837 msgid ""
34838 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34839 "directly from the guest, and these could contain any 8 bit data.  Callers "
34840 "should be careful to escape these before printing them to a structured file "
34841 "(for example, use HTML escaping if creating a web page)."
34842 msgstr ""
34843
34844 #. type: textblock
34845 #: ../src/guestfs.pod:1205
34846 msgid ""
34847 "Guest configuration may be altered in unusual ways by the administrator of "
34848 "the virtual machine, and may not reflect reality (particularly for untrusted "
34849 "or actively malicious guests).  For example we parse the hostname from "
34850 "configuration files like C</etc/sysconfig/network> that we find in the "
34851 "guest, but the guest administrator can easily manipulate these files to "
34852 "provide the wrong hostname."
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:1213
34857 msgid ""
34858 "The inspection API parses guest configuration using two external libraries: "
34859 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34860 "designed to be robust in the face of malicious data, although denial of "
34861 "service attacks are still possible, for example with oversized configuration "
34862 "files."
34863 msgstr ""
34864
34865 #. type: =head2
34866 #: ../src/guestfs.pod:1219
34867 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34868 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34869
34870 #. type: textblock
34871 #: ../src/guestfs.pod:1221
34872 msgid ""
34873 "Be very cautious about running commands from the guest.  By running a "
34874 "command in the guest, you are giving CPU time to a binary that you do not "
34875 "control, under the same user account as the library, albeit wrapped in qemu "
34876 "virtualization.  More information and alternatives can be found in the "
34877 "section L</RUNNING COMMANDS>."
34878 msgstr ""
34879
34880 #. type: =head2
34881 #: ../src/guestfs.pod:1227
34882 msgid "CVE-2010-3851"
34883 msgstr "CVE-2010-3851"
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:1229
34887 msgid "https://bugzilla.redhat.com/642934"
34888 msgstr "https://bugzilla.redhat.com/642934"
34889
34890 #. type: textblock
34891 #: ../src/guestfs.pod:1231
34892 msgid ""
34893 "This security bug concerns the automatic disk format detection that qemu "
34894 "does on disk images."
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:1234
34899 msgid ""
34900 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34901 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34902 "for one of the known headers, and if none is found then assuming the disk "
34903 "image must be raw."
34904 msgstr ""
34905
34906 #. type: textblock
34907 #: ../src/guestfs.pod:1239
34908 msgid ""
34909 "This allows a guest which has been given a raw disk image to write some "
34910 "other header.  At next boot (or when the disk image is accessed by "
34911 "libguestfs) qemu would do autodetection and think the disk image format was, "
34912 "say, qcow2 based on the header written by the guest."
34913 msgstr ""
34914
34915 #. type: textblock
34916 #: ../src/guestfs.pod:1244
34917 msgid ""
34918 "This in itself would not be a problem, but qcow2 offers many features, one "
34919 "of which is to allow a disk image to refer to another image (called the "
34920 "\"backing disk\").  It does this by placing the path to the backing disk "
34921 "into the qcow2 header.  This path is not validated and could point to any "
34922 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34923 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34924 "control of the attacker."
34925 msgstr ""
34926
34927 #. type: textblock
34928 #: ../src/guestfs.pod:1252
34929 msgid ""
34930 "In libguestfs this is rather hard to exploit except under two circumstances:"
34931 msgstr ""
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:1259
34935 msgid "You have enabled the network or have opened the disk in write mode."
34936 msgstr ""
34937
34938 #. type: textblock
34939 #: ../src/guestfs.pod:1263
34940 msgid ""
34941 "You are also running untrusted code from the guest (see L</RUNNING "
34942 "COMMANDS>)."
34943 msgstr ""
34944
34945 #. type: textblock
34946 #: ../src/guestfs.pod:1268
34947 msgid ""
34948 "The way to avoid this is to specify the expected disk format when adding "
34949 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34950 "should always do this if the disk is raw format, and it's a good idea for "
34951 "other cases too."
34952 msgstr ""
34953
34954 #. type: textblock
34955 #: ../src/guestfs.pod:1273
34956 msgid ""
34957 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34958 "format is fetched from libvirt and passed through."
34959 msgstr ""
34960
34961 #. type: textblock
34962 #: ../src/guestfs.pod:1276
34963 msgid ""
34964 "For libguestfs tools, use the I<--format> command line parameter as "
34965 "appropriate."
34966 msgstr ""
34967
34968 #. type: =head1
34969 #: ../src/guestfs.pod:1279
34970 msgid "CONNECTION MANAGEMENT"
34971 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34972
34973 #. type: =head2
34974 #: ../src/guestfs.pod:1281
34975 msgid "guestfs_h *"
34976 msgstr "guestfs_h *"
34977
34978 #. type: textblock
34979 #: ../src/guestfs.pod:1283
34980 msgid ""
34981 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34982 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34983 "handle and release all resources used."
34984 msgstr ""
34985
34986 #. type: textblock
34987 #: ../src/guestfs.pod:1287
34988 msgid ""
34989 "For information on using multiple handles and threads, see the section L</"
34990 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34991 msgstr ""
34992
34993 #. type: =head2
34994 #: ../src/guestfs.pod:1290
34995 msgid "guestfs_create"
34996 msgstr "guestfs_create"
34997
34998 #. type: verbatim
34999 #: ../src/guestfs.pod:1292
35000 #, no-wrap
35001 msgid ""
35002 " guestfs_h *guestfs_create (void);\n"
35003 "\n"
35004 msgstr ""
35005 " guestfs_h *guestfs_create (void);\n"
35006 "\n"
35007
35008 #. type: textblock
35009 #: ../src/guestfs.pod:1294
35010 msgid "Create a connection handle."
35011 msgstr "Створити дескриптор з’єднання."
35012
35013 #. type: textblock
35014 #: ../src/guestfs.pod:1296
35015 msgid ""
35016 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35017 "NULL."
35018 msgstr ""
35019
35020 #. type: textblock
35021 #: ../src/guestfs.pod:1299
35022 msgid ""
35023 "You have to \"configure\" the handle after creating it.  This includes "
35024 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35025 "handle at least once."
35026 msgstr ""
35027
35028 #. type: textblock
35029 #: ../src/guestfs.pod:1303
35030 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35031 msgstr ""
35032
35033 #. type: textblock
35034 #: ../src/guestfs.pod:1305
35035 msgid ""
35036 "You may also want to configure error handling for the handle.  See the L</"
35037 "ERROR HANDLING> section below."
35038 msgstr ""
35039
35040 #. type: =head2
35041 #: ../src/guestfs.pod:1308
35042 msgid "guestfs_close"
35043 msgstr "guestfs_close"
35044
35045 #. type: verbatim
35046 #: ../src/guestfs.pod:1310
35047 #, no-wrap
35048 msgid ""
35049 " void guestfs_close (guestfs_h *g);\n"
35050 "\n"
35051 msgstr ""
35052 " void guestfs_close (guestfs_h *g);\n"
35053 "\n"
35054
35055 #. type: textblock
35056 #: ../src/guestfs.pod:1312
35057 msgid "This closes the connection handle and frees up all resources used."
35058 msgstr ""
35059
35060 #. type: textblock
35061 #: ../src/guestfs.pod:1314
35062 msgid ""
35063 "If autosync was set on the handle and the handle was launched, then this "
35064 "implicitly calls various functions to unmount filesystems and sync the "
35065 "disk.  See L</guestfs_set_autosync> for more details."
35066 msgstr ""
35067
35068 #. type: textblock
35069 #: ../src/guestfs.pod:1318
35070 msgid "If a close callback was set on the handle, then it is called."
35071 msgstr ""
35072
35073 #. type: =head1
35074 #: ../src/guestfs.pod:1320
35075 msgid "ERROR HANDLING"
35076 msgstr "ОБРОБКА ПОМИЛОК"
35077
35078 #. type: textblock
35079 #: ../src/guestfs.pod:1322
35080 msgid ""
35081 "API functions can return errors.  For example, almost all functions that "
35082 "return C<int> will return C<-1> to indicate an error."
35083 msgstr ""
35084
35085 #. type: textblock
35086 #: ../src/guestfs.pod:1325
35087 msgid ""
35088 "Additional information is available for errors: an error message string and "
35089 "optionally an error number (errno) if the thing that failed was a system "
35090 "call."
35091 msgstr ""
35092
35093 #. type: textblock
35094 #: ../src/guestfs.pod:1329
35095 msgid ""
35096 "You can get at the additional information about the last error on the handle "
35097 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35098 "up an error handler with L</guestfs_set_error_handler>."
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs.pod:1334
35103 msgid ""
35104 "When the handle is created, a default error handler is installed which "
35105 "prints the error message string to C<stderr>.  For small short-running "
35106 "command line programs it is sufficient to do:"
35107 msgstr ""
35108
35109 #. type: verbatim
35110 #: ../src/guestfs.pod:1338
35111 #, no-wrap
35112 msgid ""
35113 " if (guestfs_launch (g) == -1)\n"
35114 "   exit (EXIT_FAILURE);\n"
35115 "\n"
35116 msgstr ""
35117 " if (guestfs_launch (g) == -1)\n"
35118 "   exit (EXIT_FAILURE);\n"
35119 "\n"
35120
35121 #. type: textblock
35122 #: ../src/guestfs.pod:1341
35123 msgid ""
35124 "since the default error handler will ensure that an error message has been "
35125 "printed to C<stderr> before the program exits."
35126 msgstr ""
35127
35128 #. type: textblock
35129 #: ../src/guestfs.pod:1344
35130 msgid ""
35131 "For other programs the caller will almost certainly want to install an "
35132 "alternate error handler or do error handling in-line like this:"
35133 msgstr ""
35134
35135 #. type: verbatim
35136 #: ../src/guestfs.pod:1347
35137 #, no-wrap
35138 msgid ""
35139 " /* This disables the default behaviour of printing errors\n"
35140 "    on stderr. */\n"
35141 " guestfs_set_error_handler (g, NULL, NULL);\n"
35142 " \n"
35143 msgstr ""
35144
35145 #. type: verbatim
35146 #: ../src/guestfs.pod:1351
35147 #, fuzzy, no-wrap
35148 #| msgid ""
35149 #| " if (guestfs_launch (g) == -1) {\n"
35150 #| "   /* Examine the error message and print it etc. */\n"
35151 #| "   char *msg = guestfs_last_error (g);\n"
35152 #| "   int errnum = guestfs_last_errno (g);\n"
35153 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
35154 #| "   /* ... */\n"
35155 #| "  }\n"
35156 #| "\n"
35157 msgid ""
35158 " if (guestfs_launch (g) == -1) {\n"
35159 "   /* Examine the error message and print it etc. */\n"
35160 "   char *msg = guestfs_last_error (g);\n"
35161 "   int errnum = guestfs_last_errno (g);\n"
35162 "   fprintf (stderr, \"%s\", msg);\n"
35163 "   if (errnum != 0)\n"
35164 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35165 "   fprintf (stderr, \"\\n\");\n"
35166 "   /* ... */\n"
35167 " }\n"
35168 "\n"
35169 msgstr ""
35170 " if (guestfs_launch (g) == -1) {\n"
35171 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35172 "   char *msg = guestfs_last_error (g);\n"
35173 "   int errnum = guestfs_last_errno (g);\n"
35174 "   fprintf (stderr, \"%s\\n\", msg);\n"
35175 "   /* ... */\n"
35176 "  }\n"
35177 "\n"
35178
35179 #. type: textblock
35180 #: ../src/guestfs.pod:1362
35181 msgid ""
35182 "Out of memory errors are handled differently.  The default action is to call "
35183 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35184 "guestfs_set_out_of_memory_handler>."
35185 msgstr ""
35186
35187 #. type: textblock
35188 #: ../src/guestfs.pod:1366
35189 msgid ""
35190 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35191 "because there is no handle if this happens there is no way to get additional "
35192 "error information.  However L</guestfs_create> is supposed to be a "
35193 "lightweight operation which can only fail because of insufficient memory (it "
35194 "returns NULL in this case)."
35195 msgstr ""
35196
35197 #. type: =head2
35198 #: ../src/guestfs.pod:1372
35199 msgid "guestfs_last_error"
35200 msgstr "guestfs_last_error"
35201
35202 #. type: verbatim
35203 #: ../src/guestfs.pod:1374
35204 #, no-wrap
35205 msgid ""
35206 " const char *guestfs_last_error (guestfs_h *g);\n"
35207 "\n"
35208 msgstr ""
35209 " const char *guestfs_last_error (guestfs_h *g);\n"
35210 "\n"
35211
35212 #. type: textblock
35213 #: ../src/guestfs.pod:1376
35214 msgid ""
35215 "This returns the last error message that happened on C<g>.  If there has not "
35216 "been an error since the handle was created, then this returns C<NULL>."
35217 msgstr ""
35218
35219 #. type: textblock
35220 #: ../src/guestfs.pod:1380
35221 msgid ""
35222 "The lifetime of the returned string is until the next error occurs, or L</"
35223 "guestfs_close> is called."
35224 msgstr ""
35225
35226 #. type: =head2
35227 #: ../src/guestfs.pod:1383
35228 msgid "guestfs_last_errno"
35229 msgstr "guestfs_last_errno"
35230
35231 #. type: verbatim
35232 #: ../src/guestfs.pod:1385
35233 #, no-wrap
35234 msgid ""
35235 " int guestfs_last_errno (guestfs_h *g);\n"
35236 "\n"
35237 msgstr ""
35238 " int guestfs_last_errno (guestfs_h *g);\n"
35239 "\n"
35240
35241 #. type: textblock
35242 #: ../src/guestfs.pod:1387
35243 msgid "This returns the last error number (errno) that happened on C<g>."
35244 msgstr ""
35245
35246 #. type: textblock
35247 #: ../src/guestfs.pod:1389
35248 msgid "If successful, an errno integer not equal to zero is returned."
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:1391
35253 msgid ""
35254 "If no error, this returns 0.  This call can return 0 in three situations:"
35255 msgstr ""
35256
35257 #. type: textblock
35258 #: ../src/guestfs.pod:1398
35259 msgid "There has not been any error on the handle."
35260 msgstr ""
35261
35262 #. type: textblock
35263 #: ../src/guestfs.pod:1402
35264 msgid ""
35265 "There has been an error but the errno was meaningless.  This corresponds to "
35266 "the case where the error did not come from a failed system call, but for "
35267 "some other reason."
35268 msgstr ""
35269
35270 #. type: textblock
35271 #: ../src/guestfs.pod:1408
35272 msgid ""
35273 "There was an error from a failed system call, but for some reason the errno "
35274 "was not captured and returned.  This usually indicates a bug in libguestfs."
35275 msgstr ""
35276
35277 #. type: textblock
35278 #: ../src/guestfs.pod:1414
35279 msgid ""
35280 "Libguestfs tries to convert the errno from inside the applicance into a "
35281 "corresponding errno for the caller (not entirely trivial: the appliance "
35282 "might be running a completely different operating system from the library "
35283 "and error numbers are not standardized across Un*xen).  If this could not be "
35284 "done, then the error is translated to C<EINVAL>.  In practice this should "
35285 "only happen in very rare circumstances."
35286 msgstr ""
35287
35288 #. type: =head2
35289 #: ../src/guestfs.pod:1422
35290 msgid "guestfs_set_error_handler"
35291 msgstr "guestfs_set_error_handler"
35292
35293 #. type: verbatim
35294 #: ../src/guestfs.pod:1424
35295 #, no-wrap
35296 msgid ""
35297 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35298 "                                           void *opaque,\n"
35299 "                                           const char *msg);\n"
35300 " void guestfs_set_error_handler (guestfs_h *g,\n"
35301 "                                 guestfs_error_handler_cb cb,\n"
35302 "                                 void *opaque);\n"
35303 "\n"
35304 msgstr ""
35305 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35306 "                                           void *opaque,\n"
35307 "                                           const char *msg);\n"
35308 " void guestfs_set_error_handler (guestfs_h *g,\n"
35309 "                                 guestfs_error_handler_cb cb,\n"
35310 "                                 void *opaque);\n"
35311 "\n"
35312
35313 #. type: textblock
35314 #: ../src/guestfs.pod:1431
35315 msgid ""
35316 "The callback C<cb> will be called if there is an error.  The parameters "
35317 "passed to the callback are an opaque data pointer and the error message "
35318 "string."
35319 msgstr ""
35320
35321 #. type: textblock
35322 #: ../src/guestfs.pod:1435
35323 msgid ""
35324 "C<errno> is not passed to the callback.  To get that the callback must call "
35325 "L</guestfs_last_errno>."
35326 msgstr ""
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:1438
35330 msgid ""
35331 "Note that the message string C<msg> is freed as soon as the callback "
35332 "function returns, so if you want to stash it somewhere you must make your "
35333 "own copy."
35334 msgstr ""
35335
35336 #. type: textblock
35337 #: ../src/guestfs.pod:1442
35338 msgid "The default handler prints messages on C<stderr>."
35339 msgstr ""
35340
35341 #. type: textblock
35342 #: ../src/guestfs.pod:1444
35343 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35344 msgstr ""
35345
35346 #. type: =head2
35347 #: ../src/guestfs.pod:1446
35348 msgid "guestfs_get_error_handler"
35349 msgstr "guestfs_get_error_handler"
35350
35351 #. type: verbatim
35352 #: ../src/guestfs.pod:1448
35353 #, no-wrap
35354 msgid ""
35355 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35356 "                                                     void **opaque_rtn);\n"
35357 "\n"
35358 msgstr ""
35359 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35360 "                                                     void **opaque_rtn);\n"
35361 "\n"
35362
35363 #. type: textblock
35364 #: ../src/guestfs.pod:1451
35365 msgid "Returns the current error handler callback."
35366 msgstr ""
35367
35368 #. type: =head2
35369 #: ../src/guestfs.pod:1453
35370 msgid "guestfs_set_out_of_memory_handler"
35371 msgstr "guestfs_set_out_of_memory_handler"
35372
35373 #. type: verbatim
35374 #: ../src/guestfs.pod:1455
35375 #, fuzzy, no-wrap
35376 #| msgid ""
35377 #| " typedef void (*guestfs_abort_cb) (void);\n"
35378 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35379 #| "                                        guestfs_abort_cb);\n"
35380 #| "\n"
35381 msgid ""
35382 " typedef void (*guestfs_abort_cb) (void);\n"
35383 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35384 "                                         guestfs_abort_cb);\n"
35385 "\n"
35386 msgstr ""
35387 " typedef void (*guestfs_abort_cb) (void);\n"
35388 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35389 "                                        guestfs_abort_cb);\n"
35390 "\n"
35391
35392 #. type: textblock
35393 #: ../src/guestfs.pod:1459
35394 msgid ""
35395 "The callback C<cb> will be called if there is an out of memory situation.  "
35396 "I<Note this callback must not return>."
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:1462
35401 msgid "The default is to call L<abort(3)>."
35402 msgstr ""
35403
35404 #. type: textblock
35405 #: ../src/guestfs.pod:1464
35406 msgid ""
35407 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35408 msgstr ""
35409
35410 #. type: =head2
35411 #: ../src/guestfs.pod:1467
35412 msgid "guestfs_get_out_of_memory_handler"
35413 msgstr "guestfs_get_out_of_memory_handler"
35414
35415 #. type: verbatim
35416 #: ../src/guestfs.pod:1469
35417 #, no-wrap
35418 msgid ""
35419 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35420 "\n"
35421 msgstr ""
35422 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35423 "\n"
35424
35425 #. type: textblock
35426 #: ../src/guestfs.pod:1471
35427 msgid "This returns the current out of memory handler."
35428 msgstr ""
35429
35430 #. type: =head1
35431 #: ../src/guestfs.pod:1473
35432 msgid "API CALLS"
35433 msgstr "ВИКЛИКИ API"
35434
35435 #. type: =head1
35436 #: ../src/guestfs.pod:1477
35437 msgid "STRUCTURES"
35438 msgstr "СТРУКТУРИ"
35439
35440 #. type: textblock
35441 #: ../src/guestfs.pod:1479
35442 msgid "@STRUCTS@"
35443 msgstr "@STRUCTS@"
35444
35445 #. type: =head1
35446 #: ../src/guestfs.pod:1481
35447 msgid "AVAILABILITY"
35448 msgstr "ДОСТУПНІСТЬ"
35449
35450 #. type: =head2
35451 #: ../src/guestfs.pod:1483
35452 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35453 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35454
35455 #. type: textblock
35456 #: ../src/guestfs.pod:1485
35457 msgid ""
35458 "Using L</guestfs_available> you can test availability of the following "
35459 "groups of functions.  This test queries the appliance to see if the "
35460 "appliance you are currently using supports the functionality."
35461 msgstr ""
35462
35463 #. type: textblock
35464 #: ../src/guestfs.pod:1490
35465 msgid "@AVAILABILITY@"
35466 msgstr "@AVAILABILITY@"
35467
35468 #. type: =head2
35469 #: ../src/guestfs.pod:1492
35470 msgid "GUESTFISH supported COMMAND"
35471 msgstr ""
35472
35473 #. type: textblock
35474 #: ../src/guestfs.pod:1494
35475 msgid ""
35476 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35477 "prints out the available groups and whether they are supported by this build "
35478 "of libguestfs.  Note however that you have to do C<run> first."
35479 msgstr ""
35480
35481 #. type: =head2
35482 #: ../src/guestfs.pod:1499
35483 msgid "SINGLE CALLS AT COMPILE TIME"
35484 msgstr ""
35485
35486 #. type: textblock
35487 #: ../src/guestfs.pod:1501
35488 msgid ""
35489 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35490 "function, such as:"
35491 msgstr ""
35492
35493 #. type: verbatim
35494 #: ../src/guestfs.pod:1504
35495 #, no-wrap
35496 msgid ""
35497 " #define LIBGUESTFS_HAVE_DD 1\n"
35498 "\n"
35499 msgstr ""
35500 " #define LIBGUESTFS_HAVE_DD 1\n"
35501 "\n"
35502
35503 #. type: textblock
35504 #: ../src/guestfs.pod:1506
35505 msgid "if L</guestfs_dd> is available."
35506 msgstr ""
35507
35508 #. type: textblock
35509 #: ../src/guestfs.pod:1508
35510 msgid ""
35511 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35512 "function is available at compile time, we recommended using build tools such "
35513 "as autoconf or cmake.  For example in autotools you could use:"
35514 msgstr ""
35515
35516 #. type: verbatim
35517 #: ../src/guestfs.pod:1513
35518 #, no-wrap
35519 msgid ""
35520 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35521 " AC_CHECK_FUNCS([guestfs_dd])\n"
35522 "\n"
35523 msgstr ""
35524 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35525 " AC_CHECK_FUNCS([guestfs_dd])\n"
35526 "\n"
35527
35528 #. type: textblock
35529 #: ../src/guestfs.pod:1516
35530 msgid ""
35531 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35532 "in your program."
35533 msgstr ""
35534
35535 #. type: =head2
35536 #: ../src/guestfs.pod:1519
35537 msgid "SINGLE CALLS AT RUN TIME"
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:1521
35542 msgid ""
35543 "Testing at compile time doesn't guarantee that a function really exists in "
35544 "the library.  The reason is that you might be dynamically linked against a "
35545 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35546 "This situation unfortunately results in a segmentation fault, which is a "
35547 "shortcoming of the C dynamic linking system itself."
35548 msgstr ""
35549
35550 #. type: textblock
35551 #: ../src/guestfs.pod:1528
35552 msgid ""
35553 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35554 "in this example program (note that you still need the compile time check as "
35555 "well):"
35556 msgstr ""
35557
35558 #. type: verbatim
35559 #: ../src/guestfs.pod:1532
35560 #, no-wrap
35561 msgid ""
35562 " #include <stdio.h>\n"
35563 " #include <stdlib.h>\n"
35564 " #include <unistd.h>\n"
35565 " #include <dlfcn.h>\n"
35566 " #include <guestfs.h>\n"
35567 " \n"
35568 msgstr ""
35569 " #include <stdio.h>\n"
35570 " #include <stdlib.h>\n"
35571 " #include <unistd.h>\n"
35572 " #include <dlfcn.h>\n"
35573 " #include <guestfs.h>\n"
35574 " \n"
35575
35576 #. type: verbatim
35577 #: ../src/guestfs.pod:1538
35578 #, no-wrap
35579 msgid ""
35580 " main ()\n"
35581 " {\n"
35582 " #ifdef LIBGUESTFS_HAVE_DD\n"
35583 "   void *dl;\n"
35584 "   int has_function;\n"
35585 " \n"
35586 msgstr ""
35587 " main ()\n"
35588 " {\n"
35589 " #ifdef LIBGUESTFS_HAVE_DD\n"
35590 "   void *dl;\n"
35591 "   int has_function;\n"
35592 " \n"
35593
35594 #. type: verbatim
35595 #: ../src/guestfs.pod:1544
35596 #, no-wrap
35597 msgid ""
35598 "   /* Test if the function guestfs_dd is really available. */\n"
35599 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35600 "   if (!dl) {\n"
35601 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35602 "     exit (EXIT_FAILURE);\n"
35603 "   }\n"
35604 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35605 "   dlclose (dl);\n"
35606 " \n"
35607 msgstr ""
35608
35609 #. type: verbatim
35610 #: ../src/guestfs.pod:1553
35611 #, no-wrap
35612 msgid ""
35613 "   if (!has_function)\n"
35614 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35615 "   else {\n"
35616 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35617 "     /* Now it's safe to call\n"
35618 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35619 "     */\n"
35620 "   }\n"
35621 " #else\n"
35622 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35623 " #endif\n"
35624 "  }\n"
35625 "\n"
35626 msgstr ""
35627
35628 #. type: textblock
35629 #: ../src/guestfs.pod:1566
35630 msgid ""
35631 "You may think the above is an awful lot of hassle, and it is.  There are "
35632 "other ways outside of the C linking system to ensure that this kind of "
35633 "incompatibility never arises, such as using package versioning:"
35634 msgstr ""
35635
35636 #. type: verbatim
35637 #: ../src/guestfs.pod:1571
35638 #, no-wrap
35639 msgid ""
35640 " Requires: libguestfs >= 1.0.80\n"
35641 "\n"
35642 msgstr ""
35643
35644 #. type: =head1
35645 #: ../src/guestfs.pod:1573
35646 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35647 msgstr ""
35648
35649 #. type: textblock
35650 #: ../src/guestfs.pod:1575
35651 msgid ""
35652 "A recent feature of the API is the introduction of calls which take optional "
35653 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35654 "takes variable arguments (ie. C<...>), as in this example:"
35655 msgstr ""
35656
35657 #. type: verbatim
35658 #: ../src/guestfs.pod:1580
35659 #, no-wrap
35660 msgid ""
35661 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35662 "\n"
35663 msgstr ""
35664 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35665 "\n"
35666
35667 #. type: textblock
35668 #: ../src/guestfs.pod:1582
35669 msgid ""
35670 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35671 "call with no optional arguments specified:"
35672 msgstr ""
35673
35674 #. type: verbatim
35675 #: ../src/guestfs.pod:1585
35676 #, no-wrap
35677 msgid ""
35678 " guestfs_add_drive_opts (g, filename, -1);\n"
35679 "\n"
35680 msgstr ""
35681 " guestfs_add_drive_opts (g, filename, -1);\n"
35682 "\n"
35683
35684 #. type: textblock
35685 #: ../src/guestfs.pod:1587
35686 msgid "With a single optional argument:"
35687 msgstr ""
35688
35689 #. type: verbatim
35690 #: ../src/guestfs.pod:1589
35691 #, no-wrap
35692 msgid ""
35693 " guestfs_add_drive_opts (g, filename,\n"
35694 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35695 "                         -1);\n"
35696 "\n"
35697 msgstr ""
35698 " guestfs_add_drive_opts (g, filename,\n"
35699 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35700 "                         -1);\n"
35701 "\n"
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:1593
35705 msgid "With two:"
35706 msgstr ""
35707
35708 #. type: verbatim
35709 #: ../src/guestfs.pod:1595
35710 #, no-wrap
35711 msgid ""
35712 " guestfs_add_drive_opts (g, filename,\n"
35713 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35714 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35715 "                         -1);\n"
35716 "\n"
35717 msgstr ""
35718 " guestfs_add_drive_opts (g, filename,\n"
35719 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35720 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35721 "                         -1);\n"
35722 "\n"
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:1600
35726 msgid ""
35727 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35728 "happen!"
35729 msgstr ""
35730
35731 #. type: =head2
35732 #: ../src/guestfs.pod:1603
35733 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35734 msgstr ""
35735
35736 #. type: textblock
35737 #: ../src/guestfs.pod:1605
35738 msgid ""
35739 "The second variant has the same name with the suffix C<_va>, which works the "
35740 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35741 "example function, this is declared:"
35742 msgstr ""
35743
35744 #. type: verbatim
35745 #: ../src/guestfs.pod:1609
35746 #, no-wrap
35747 msgid ""
35748 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35749 "                                va_list args);\n"
35750 "\n"
35751 msgstr ""
35752 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35753 "                                va_list args);\n"
35754 "\n"
35755
35756 #. type: =head2
35757 #: ../src/guestfs.pod:1612
35758 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35759 msgstr ""
35760
35761 #. type: textblock
35762 #: ../src/guestfs.pod:1614
35763 msgid ""
35764 "The third variant is useful where you need to construct these calls.  You "
35765 "pass in a structure where you fill in the optional fields.  The structure "
35766 "has a bitmask as the first element which you must set to indicate which "
35767 "fields you have filled in.  For our example function the structure and call "
35768 "are declared:"
35769 msgstr ""
35770
35771 #. type: verbatim
35772 #: ../src/guestfs.pod:1620
35773 #, no-wrap
35774 msgid ""
35775 " struct guestfs_add_drive_opts_argv {\n"
35776 "   uint64_t bitmask;\n"
35777 "   int readonly;\n"
35778 "   const char *format;\n"
35779 "   /* ... */\n"
35780 " };\n"
35781 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35782 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35783 "\n"
35784 msgstr ""
35785 " struct guestfs_add_drive_opts_argv {\n"
35786 "   uint64_t bitmask;\n"
35787 "   int readonly;\n"
35788 "   const char *format;\n"
35789 "   /* ... */\n"
35790 " };\n"
35791 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35792 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35793 "\n"
35794
35795 #. type: textblock
35796 #: ../src/guestfs.pod:1629
35797 msgid "You could call it like this:"
35798 msgstr ""
35799
35800 #. type: verbatim
35801 #: ../src/guestfs.pod:1631
35802 #, no-wrap
35803 msgid ""
35804 " struct guestfs_add_drive_opts_argv optargs = {\n"
35805 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35806 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35807 "   .readonly = 1,\n"
35808 "   .format = \"qcow2\"\n"
35809 " };\n"
35810 " \n"
35811 msgstr ""
35812 " struct guestfs_add_drive_opts_argv optargs = {\n"
35813 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35814 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35815 "   .readonly = 1,\n"
35816 "   .format = \"qcow2\"\n"
35817 " };\n"
35818 " \n"
35819
35820 #. type: verbatim
35821 #: ../src/guestfs.pod:1638
35822 #, no-wrap
35823 msgid ""
35824 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35825 "\n"
35826 msgstr ""
35827 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35828 "\n"
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:1646
35832 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35833 msgstr ""
35834
35835 #. type: textblock
35836 #: ../src/guestfs.pod:1651
35837 msgid "You do not need to fill in all fields of the structure."
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:1655
35842 msgid ""
35843 "There must be a one-to-one correspondence between fields of the structure "
35844 "that are filled in, and bits set in the bitmask."
35845 msgstr ""
35846
35847 #. type: =head2
35848 #: ../src/guestfs.pod:1660
35849 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35850 msgstr ""
35851
35852 #. type: textblock
35853 #: ../src/guestfs.pod:1662
35854 msgid ""
35855 "In other languages, optional arguments are expressed in the way that is "
35856 "natural for that language.  We refer you to the language-specific "
35857 "documentation for more details on that."
35858 msgstr ""
35859
35860 #. type: textblock
35861 #: ../src/guestfs.pod:1666
35862 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35863 msgstr ""
35864
35865 #. type: =head2
35866 #: ../src/guestfs.pod:1668
35867 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:1670
35872 msgid ""
35873 "B<Note:> This section documents the generic event mechanism introduced in "
35874 "libguestfs 1.10, which you should use in new code if possible.  The old "
35875 "functions C<guestfs_set_log_message_callback>, "
35876 "C<guestfs_set_subprocess_quit_callback>, "
35877 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35878 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35879 "page.  Because of the ABI guarantee, the old functions continue to work."
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:1679
35884 msgid ""
35885 "Handles generate events when certain things happen, such as log messages "
35886 "being generated, progress messages during long-running operations, or the "
35887 "handle being closed.  The API calls described below let you register a "
35888 "callback to be called when events happen.  You can register multiple "
35889 "callbacks (for the same, different or overlapping sets of events), and "
35890 "individually remove callbacks.  If callbacks are not removed, then they "
35891 "remain in force until the handle is closed."
35892 msgstr ""
35893
35894 #. type: textblock
35895 #: ../src/guestfs.pod:1687
35896 msgid ""
35897 "In the current implementation, events are only generated synchronously: that "
35898 "means that events (and hence callbacks) can only happen while you are in the "
35899 "middle of making another libguestfs call.  The callback is called in the "
35900 "same thread."
35901 msgstr ""
35902
35903 #. type: textblock
35904 #: ../src/guestfs.pod:1692
35905 msgid ""
35906 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35907 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35908 msgstr ""
35909
35910 #. type: =head3
35911 #: ../src/guestfs.pod:1696
35912 msgid "CLASSES OF EVENTS"
35913 msgstr ""
35914
35915 #. type: =item
35916 #: ../src/guestfs.pod:1700
35917 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35918 msgstr ""
35919
35920 #. type: textblock
35921 #: ../src/guestfs.pod:1703
35922 msgid ""
35923 "The callback function will be called while the handle is being closed "
35924 "(synchronously from L</guestfs_close>)."
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:1706
35929 msgid ""
35930 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35931 "handles that are open when the program exits.  This means that this callback "
35932 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35933 "problems in higher-level languages (eg. if your HLL interpreter has already "
35934 "been cleaned up by the time this is called, and if your callback then jumps "
35935 "into some HLL function)."
35936 msgstr ""
35937
35938 #. type: textblock
35939 #: ../src/guestfs.pod:1713
35940 msgid ""
35941 "If no callback is registered: the handle is closed without any callback "
35942 "being invoked."
35943 msgstr ""
35944
35945 #. type: =item
35946 #: ../src/guestfs.pod:1716
35947 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35948 msgstr ""
35949
35950 #. type: textblock
35951 #: ../src/guestfs.pod:1719
35952 msgid ""
35953 "The callback function will be called when the child process quits, either "
35954 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35955 "corresponds to a transition from any state to the CONFIG state)."
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732 ../src/guestfs.pod:1849
35960 msgid "If no callback is registered: the event is ignored."
35961 msgstr ""
35962
35963 #. type: =item
35964 #: ../src/guestfs.pod:1725
35965 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35966 msgstr ""
35967
35968 #. type: textblock
35969 #: ../src/guestfs.pod:1728
35970 msgid ""
35971 "The callback function will be called when the child process becomes ready "
35972 "first time after it has been launched.  (This corresponds to a transition "
35973 "from LAUNCHING to the READY state)."
35974 msgstr ""
35975
35976 #. type: =item
35977 #: ../src/guestfs.pod:1734
35978 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35979 msgstr ""
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:1737
35983 msgid ""
35984 "Some long-running operations can generate progress messages.  If this "
35985 "callback is registered, then it will be called each time a progress message "
35986 "is generated (usually two seconds after the operation started, and three "
35987 "times per second thereafter until it completes, although the frequency may "
35988 "change in future versions)."
35989 msgstr ""
35990
35991 #. type: textblock
35992 #: ../src/guestfs.pod:1743
35993 msgid ""
35994 "The callback receives in the payload four unsigned 64 bit numbers which are "
35995 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35996 msgstr ""
35997
35998 #. type: textblock
35999 #: ../src/guestfs.pod:1746
36000 msgid ""
36001 "The units of C<total> are not defined, although for some operations C<total> "
36002 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36003 "or megabytes), and C<position> may be the portion which has been transferred."
36004 msgstr ""
36005
36006 #. type: textblock
36007 #: ../src/guestfs.pod:1751
36008 msgid "The only defined and stable parts of the API are:"
36009 msgstr ""
36010
36011 #. type: textblock
36012 #: ../src/guestfs.pod:1757
36013 msgid ""
36014 "The callback can display to the user some type of progress bar or indicator "
36015 "which shows the ratio of C<position>:C<total>."
36016 msgstr ""
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:1762
36020 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36021 msgstr ""
36022
36023 #. type: textblock
36024 #: ../src/guestfs.pod:1766
36025 msgid ""
36026 "If any progress notification is sent during a call, then a final progress "
36027 "notification is always sent when C<position> = C<total> (I<unless> the call "
36028 "fails with an error)."
36029 msgstr ""
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:1770
36033 msgid ""
36034 "This is to simplify caller code, so callers can easily set the progress "
36035 "indicator to \"100%\" at the end of the operation, without requiring special "
36036 "code to detect this case."
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:1776
36041 msgid ""
36042 "For some calls we are unable to estimate the progress of the call, but we "
36043 "can still generate progress messages to indicate activity.  This is known as "
36044 "\"pulse mode\", and is directly supported by certain progress bar "
36045 "implementations (eg. GtkProgressBar)."
36046 msgstr ""
36047
36048 #. type: textblock
36049 #: ../src/guestfs.pod:1781
36050 msgid ""
36051 "For these calls, zero or more progress messages are generated with "
36052 "C<position = 0> and C<total = 1>, followed by a final message with "
36053 "C<position = total = 1>."
36054 msgstr ""
36055
36056 #. type: textblock
36057 #: ../src/guestfs.pod:1785
36058 msgid ""
36059 "As noted above, if the call fails with an error then the final message may "
36060 "not be generated."
36061 msgstr ""
36062
36063 #. type: textblock
36064 #: ../src/guestfs.pod:1790
36065 msgid ""
36066 "The callback also receives the procedure number (C<proc_nr>) and serial "
36067 "number (C<serial>) of the call.  These are only useful for debugging "
36068 "protocol issues, and the callback can normally ignore them.  The callback "
36069 "may want to print these numbers in error messages or debugging messages."
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:1796
36074 msgid "If no callback is registered: progress messages are discarded."
36075 msgstr ""
36076
36077 #. type: =item
36078 #: ../src/guestfs.pod:1798
36079 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36080 msgstr ""
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:1801
36084 msgid ""
36085 "The callback function is called whenever a log message is generated by qemu, "
36086 "the appliance kernel, guestfsd (daemon), or utility programs."
36087 msgstr ""
36088
36089 #. type: textblock
36090 #: ../src/guestfs.pod:1804
36091 msgid ""
36092 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36093 "guestfs_launch>) then additional debug messages are generated."
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
36098 msgid ""
36099 "If no callback is registered: the messages are discarded unless the verbose "
36100 "flag is set in which case they are sent to stderr.  You can override the "
36101 "printing of verbose messages to stderr by setting up a callback."
36102 msgstr ""
36103
36104 #. type: =item
36105 #: ../src/guestfs.pod:1812
36106 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36107 msgstr ""
36108
36109 #. type: textblock
36110 #: ../src/guestfs.pod:1815
36111 msgid ""
36112 "The callback function is called whenever a log message is generated by the "
36113 "library part of libguestfs."
36114 msgstr ""
36115
36116 #. type: textblock
36117 #: ../src/guestfs.pod:1818
36118 msgid ""
36119 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36120 "messages are generated."
36121 msgstr ""
36122
36123 #. type: =item
36124 #: ../src/guestfs.pod:1826
36125 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36126 msgstr ""
36127
36128 #. type: textblock
36129 #: ../src/guestfs.pod:1829
36130 msgid ""
36131 "The callback function is called whenever a trace message is generated.  This "
36132 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36133 msgstr ""
36134
36135 #. type: textblock
36136 #: ../src/guestfs.pod:1832
36137 msgid ""
36138 "If no callback is registered: the messages are sent to stderr.  You can "
36139 "override the printing of trace messages to stderr by setting up a callback."
36140 msgstr ""
36141
36142 #. type: =item
36143 #: ../src/guestfs.pod:1836
36144 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36145 msgstr ""
36146
36147 #. type: textblock
36148 #: ../src/guestfs.pod:1839
36149 msgid ""
36150 "The callback function is called whenever a libguestfs function is entered."
36151 msgstr ""
36152
36153 #. type: textblock
36154 #: ../src/guestfs.pod:1842
36155 msgid ""
36156 "The payload is a string which contains the name of the function that we are "
36157 "entering (not including C<guestfs_> prefix)."
36158 msgstr ""
36159
36160 #. type: textblock
36161 #: ../src/guestfs.pod:1845
36162 msgid ""
36163 "Note that libguestfs functions can call themselves, so you may see many "
36164 "events from a single call.  A few libguestfs functions do not generate this "
36165 "event."
36166 msgstr ""
36167
36168 #. type: =head3
36169 #: ../src/guestfs.pod:1853
36170 msgid "guestfs_set_event_callback"
36171 msgstr ""
36172
36173 #. type: verbatim
36174 #: ../src/guestfs.pod:1855
36175 #, no-wrap
36176 msgid ""
36177 " int guestfs_set_event_callback (guestfs_h *g,\n"
36178 "                                 guestfs_event_callback cb,\n"
36179 "                                 uint64_t event_bitmask,\n"
36180 "                                 int flags,\n"
36181 "                                 void *opaque);\n"
36182 "\n"
36183 msgstr ""
36184
36185 #. type: textblock
36186 #: ../src/guestfs.pod:1861
36187 msgid ""
36188 "This function registers a callback (C<cb>) for all event classes in the "
36189 "C<event_bitmask>."
36190 msgstr ""
36191
36192 #. type: textblock
36193 #: ../src/guestfs.pod:1864
36194 msgid ""
36195 "For example, to register for all log message events, you could call this "
36196 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36197 "To register a single callback for all possible classes of events, use "
36198 "C<GUESTFS_EVENT_ALL>."
36199 msgstr ""
36200
36201 #. type: textblock
36202 #: ../src/guestfs.pod:1870
36203 msgid "C<flags> should always be passed as 0."
36204 msgstr ""
36205
36206 #. type: textblock
36207 #: ../src/guestfs.pod:1872
36208 msgid ""
36209 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36210 "it for any purpose."
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:1875
36215 msgid ""
36216 "The return value is the event handle (an integer) which you can use to "
36217 "delete the callback (see below)."
36218 msgstr ""
36219
36220 #. type: textblock
36221 #: ../src/guestfs.pod:1878
36222 msgid ""
36223 "If there is an error, this function returns C<-1>, and sets the error in the "
36224 "handle in the usual way (see L</guestfs_last_error> etc.)"
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:1881
36229 msgid ""
36230 "Callbacks remain in effect until they are deleted, or until the handle is "
36231 "closed."
36232 msgstr ""
36233
36234 #. type: textblock
36235 #: ../src/guestfs.pod:1884
36236 msgid ""
36237 "In the case where multiple callbacks are registered for a particular event "
36238 "class, all of the callbacks are called.  The order in which multiple "
36239 "callbacks are called is not defined."
36240 msgstr ""
36241
36242 #. type: =head3
36243 #: ../src/guestfs.pod:1888
36244 msgid "guestfs_delete_event_callback"
36245 msgstr ""
36246
36247 #. type: verbatim
36248 #: ../src/guestfs.pod:1890
36249 #, no-wrap
36250 msgid ""
36251 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36252 "\n"
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:1892
36257 msgid ""
36258 "Delete a callback that was previously registered.  C<event_handle> should be "
36259 "the integer that was returned by a previous call to "
36260 "C<guestfs_set_event_callback> on the same handle."
36261 msgstr ""
36262
36263 #. type: =head3
36264 #: ../src/guestfs.pod:1896
36265 msgid "guestfs_event_callback"
36266 msgstr ""
36267
36268 #. type: verbatim
36269 #: ../src/guestfs.pod:1898
36270 #, no-wrap
36271 msgid ""
36272 " typedef void (*guestfs_event_callback) (\n"
36273 "                  guestfs_h *g,\n"
36274 "                  void *opaque,\n"
36275 "                  uint64_t event,\n"
36276 "                  int event_handle,\n"
36277 "                  int flags,\n"
36278 "                  const char *buf, size_t buf_len,\n"
36279 "                  const uint64_t *array, size_t array_len);\n"
36280 "\n"
36281 msgstr ""
36282
36283 #. type: textblock
36284 #: ../src/guestfs.pod:1907
36285 msgid ""
36286 "This is the type of the event callback function that you have to provide."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:1910
36291 msgid ""
36292 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36293 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36294 "handle, and C<flags> which in the current API you should ignore."
36295 msgstr ""
36296
36297 #. type: textblock
36298 #: ../src/guestfs.pod:1914
36299 msgid ""
36300 "The remaining parameters contain the event payload (if any).  Each event may "
36301 "contain a payload, which usually relates to the event class, but for future "
36302 "proofing your code should be written to handle any payload for any event "
36303 "class."
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:1919
36308 msgid ""
36309 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36310 "there is no message buffer).  Note that this message buffer can contain "
36311 "arbitrary 8 bit data, including NUL bytes."
36312 msgstr ""
36313
36314 #. type: textblock
36315 #: ../src/guestfs.pod:1923
36316 msgid ""
36317 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36318 "moment this is only used for progress messages."
36319 msgstr ""
36320
36321 #. type: =head3
36322 #: ../src/guestfs.pod:1926
36323 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:1928
36328 msgid ""
36329 "One motivation for the generic event API was to allow GUI programs to "
36330 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36331 "unconditionally to C<stderr>."
36332 msgstr ""
36333
36334 #. type: textblock
36335 #: ../src/guestfs.pod:1932
36336 msgid ""
36337 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36338 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36339 "messages are not events; you must capture error messages separately)."
36340 msgstr ""
36341
36342 #. type: textblock
36343 #: ../src/guestfs.pod:1937
36344 msgid ""
36345 "Programs have to set up a callback to capture the classes of events of "
36346 "interest:"
36347 msgstr ""
36348
36349 #. type: verbatim
36350 #: ../src/guestfs.pod:1940
36351 #, no-wrap
36352 msgid ""
36353 " int eh =\n"
36354 "   guestfs_set_event_callback\n"
36355 "     (g, message_callback,\n"
36356 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36357 "      GUESTFS_EVENT_TRACE,\n"
36358 "      0, NULL) == -1)\n"
36359 " if (eh == -1) {\n"
36360 "   // handle error in the usual way\n"
36361 " }\n"
36362 "\n"
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:1950
36367 msgid ""
36368 "The callback can then direct messages to the appropriate place.  In this "
36369 "example, messages are directed to syslog:"
36370 msgstr ""
36371
36372 #. type: verbatim
36373 #: ../src/guestfs.pod:1953
36374 #, no-wrap
36375 msgid ""
36376 " static void\n"
36377 " message_callback (\n"
36378 "         guestfs_h *g,\n"
36379 "         void *opaque,\n"
36380 "         uint64_t event,\n"
36381 "         int event_handle,\n"
36382 "         int flags,\n"
36383 "         const char *buf, size_t buf_len,\n"
36384 "         const uint64_t *array, size_t array_len)\n"
36385 " {\n"
36386 "   const int priority = LOG_USER|LOG_INFO;\n"
36387 "   if (buf_len > 0)\n"
36388 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36389 " }\n"
36390 "\n"
36391 msgstr ""
36392
36393 #. type: =head1
36394 #: ../src/guestfs.pod:1968
36395 msgid "CANCELLING LONG TRANSFERS"
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:1970
36400 msgid ""
36401 "Some operations can be cancelled by the caller while they are in progress.  "
36402 "Currently only operations that involve uploading or downloading data can be "
36403 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36404 "parameters in the generator)."
36405 msgstr ""
36406
36407 #. type: =head2
36408 #: ../src/guestfs.pod:1975
36409 msgid "guestfs_user_cancel"
36410 msgstr ""
36411
36412 #. type: verbatim
36413 #: ../src/guestfs.pod:1977
36414 #, no-wrap
36415 msgid ""
36416 " void guestfs_user_cancel (guestfs_h *g);\n"
36417 "\n"
36418 msgstr ""
36419
36420 #. type: textblock
36421 #: ../src/guestfs.pod:1979
36422 msgid ""
36423 "C<guestfs_user_cancel> cancels the current upload or download operation."
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:1982
36428 msgid ""
36429 "Unlike most other libguestfs calls, this function is signal safe and thread "
36430 "safe.  You can call it from a signal handler or from another thread, without "
36431 "needing to do any locking."
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:1986
36436 msgid ""
36437 "The transfer that was in progress (if there is one) will stop shortly "
36438 "afterwards, and will return an error.  The errno (see L</"
36439 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36440 "out if the operation was cancelled or failed because of another error."
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:1992
36445 msgid ""
36446 "No cleanup is performed: for example, if a file was being uploaded then "
36447 "after cancellation there may be a partially uploaded file.  It is the "
36448 "caller's responsibility to clean up if necessary."
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:1996
36453 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:1998
36458 msgid ""
36459 "In an interactive text-based program, you might call it from a C<SIGINT> "
36460 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36461 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36462 "receive the C<^C> signal)."
36463 msgstr ""
36464
36465 #. type: textblock
36466 #: ../src/guestfs.pod:2003
36467 msgid ""
36468 "In a graphical program, when the main thread is displaying a progress bar "
36469 "with a cancel button, wire up the cancel button to call this function."
36470 msgstr ""
36471
36472 #. type: =head1
36473 #: ../src/guestfs.pod:2007
36474 msgid "PRIVATE DATA AREA"
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:2009
36479 msgid ""
36480 "You can attach named pieces of private data to the libguestfs handle, fetch "
36481 "them by name, and walk over them, for the lifetime of the handle.  This is "
36482 "called the private data area and is only available from the C API."
36483 msgstr ""
36484
36485 #. type: textblock
36486 #: ../src/guestfs.pod:2014
36487 msgid "To attach a named piece of data, use the following call:"
36488 msgstr ""
36489
36490 #. type: verbatim
36491 #: ../src/guestfs.pod:2016
36492 #, no-wrap
36493 msgid ""
36494 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36495 "\n"
36496 msgstr ""
36497 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36498 "\n"
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:2018
36502 msgid ""
36503 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36504 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36505 "overwritten."
36506 msgstr ""
36507
36508 #. type: textblock
36509 #: ../src/guestfs.pod:2022
36510 msgid ""
36511 "You can use any C<key> you want, but your key should I<not> start with an "
36512 "underscore character.  Keys beginning with an underscore character are "
36513 "reserved for internal libguestfs purposes (eg. for implementing language "
36514 "bindings).  It is recommended that you prefix the key with some unique "
36515 "string to avoid collisions with other users."
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:2028
36520 msgid "To retrieve the pointer, use:"
36521 msgstr ""
36522
36523 #. type: verbatim
36524 #: ../src/guestfs.pod:2030
36525 #, no-wrap
36526 msgid ""
36527 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36528 "\n"
36529 msgstr ""
36530 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36531 "\n"
36532
36533 #. type: textblock
36534 #: ../src/guestfs.pod:2032
36535 msgid ""
36536 "This function returns C<NULL> if either no data is found associated with "
36537 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36538 "C<NULL>."
36539 msgstr ""
36540
36541 #. type: textblock
36542 #: ../src/guestfs.pod:2036
36543 msgid ""
36544 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36545 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36546 "all.  In particular, libguestfs does I<not> try to free the data when the "
36547 "handle is closed.  If the data must be freed, then the caller must either "
36548 "free it before calling L</guestfs_close> or must set up a close callback to "
36549 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36550 msgstr ""
36551
36552 #. type: textblock
36553 #: ../src/guestfs.pod:2043
36554 msgid "To walk over all entries, use these two functions:"
36555 msgstr ""
36556
36557 #. type: verbatim
36558 #: ../src/guestfs.pod:2045
36559 #, no-wrap
36560 msgid ""
36561 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36562 "\n"
36563 msgstr ""
36564
36565 #. type: verbatim
36566 #: ../src/guestfs.pod:2047
36567 #, no-wrap
36568 msgid ""
36569 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36570 "\n"
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:2049
36575 msgid ""
36576 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36577 "not have any particular meaning -- keys are not returned in any defined "
36578 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36579 "corresponding data pointer is returned from the function.  C<NULL> is "
36580 "returned if there are no keys stored in the handle."
36581 msgstr ""
36582
36583 #. type: textblock
36584 #: ../src/guestfs.pod:2055
36585 msgid ""
36586 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36587 "value of this function is also C<NULL> is there are no further entries to "
36588 "return."
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../src/guestfs.pod:2059
36593 msgid "Notes about walking over entries:"
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../src/guestfs.pod:2065
36598 msgid ""
36599 "You must not call C<guestfs_set_private> while walking over the entries."
36600 msgstr ""
36601
36602 #. type: textblock
36603 #: ../src/guestfs.pod:2070
36604 msgid ""
36605 "The handle maintains an internal iterator which is reset when you call "
36606 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36607 "call C<guestfs_set_private>."
36608 msgstr ""
36609
36610 #. type: textblock
36611 #: ../src/guestfs.pod:2076
36612 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36613 msgstr ""
36614
36615 #. type: verbatim
36616 #: ../src/guestfs.pod:2078
36617 #, no-wrap
36618 msgid ""
36619 " guestfs_set_private (g, key, NULL);\n"
36620 "\n"
36621 msgstr ""
36622
36623 #. type: textblock
36624 #: ../src/guestfs.pod:2080
36625 msgid "then that C<key> is not returned when walking."
36626 msgstr ""
36627
36628 #. type: textblock
36629 #: ../src/guestfs.pod:2084
36630 msgid ""
36631 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36632 "C<guestfs_next_private> or C<guestfs_set_private>."
36633 msgstr ""
36634
36635 #. type: textblock
36636 #: ../src/guestfs.pod:2090
36637 msgid ""
36638 "The following example code shows how to print all keys and data pointers "
36639 "that are associated with the handle C<g>:"
36640 msgstr ""
36641
36642 #. type: verbatim
36643 #: ../src/guestfs.pod:2093
36644 #, no-wrap
36645 msgid ""
36646 " const char *key;\n"
36647 " void *data = guestfs_first_private (g, &key);\n"
36648 " while (data != NULL)\n"
36649 "   {\n"
36650 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36651 "     data = guestfs_next_private (g, &key);\n"
36652 "   }\n"
36653 "\n"
36654 msgstr ""
36655
36656 #. type: textblock
36657 #: ../src/guestfs.pod:2101
36658 msgid ""
36659 "More commonly you are only interested in keys that begin with an application-"
36660 "specific prefix C<foo_>.  Modify the loop like so:"
36661 msgstr ""
36662
36663 #. type: verbatim
36664 #: ../src/guestfs.pod:2104
36665 #, no-wrap
36666 msgid ""
36667 " const char *key;\n"
36668 " void *data = guestfs_first_private (g, &key);\n"
36669 " while (data != NULL)\n"
36670 "   {\n"
36671 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36672 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36673 "     data = guestfs_next_private (g, &key);\n"
36674 "   }\n"
36675 "\n"
36676 msgstr ""
36677
36678 #. type: textblock
36679 #: ../src/guestfs.pod:2113
36680 msgid ""
36681 "If you need to modify keys while walking, then you have to jump back to the "
36682 "beginning of the loop.  For example, to delete all keys prefixed with "
36683 "C<foo_>:"
36684 msgstr ""
36685
36686 #. type: verbatim
36687 #: ../src/guestfs.pod:2117
36688 #, no-wrap
36689 msgid ""
36690 "  const char *key;\n"
36691 "  void *data;\n"
36692 " again:\n"
36693 "  data = guestfs_first_private (g, &key);\n"
36694 "  while (data != NULL)\n"
36695 "    {\n"
36696 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36697 "        {\n"
36698 "          guestfs_set_private (g, key, NULL);\n"
36699 "          /* note that 'key' pointer is now invalid, and so is\n"
36700 "             the internal iterator */\n"
36701 "          goto again;\n"
36702 "        }\n"
36703 "      data = guestfs_next_private (g, &key);\n"
36704 "    }\n"
36705 "\n"
36706 msgstr ""
36707
36708 #. type: textblock
36709 #: ../src/guestfs.pod:2133
36710 msgid ""
36711 "Note that the above loop is guaranteed to terminate because the keys are "
36712 "being deleted, but other manipulations of keys within the loop might not "
36713 "terminate unless you also maintain an indication of which keys have been "
36714 "visited."
36715 msgstr ""
36716
36717 #. type: =end
36718 #: ../src/guestfs.pod:2138 ../src/guestfs.pod:2143
36719 msgid "html"
36720 msgstr "html"
36721
36722 #. type: textblock
36723 #: ../src/guestfs.pod:2140
36724 msgid ""
36725 "<!-- old anchor for the next section --> <a name="
36726 "\"state_machine_and_low_level_event_api\"/>"
36727 msgstr ""
36728 "<!-- old anchor for the next section --> <a name="
36729 "\"state_machine_and_low_level_event_api\"/>"
36730
36731 #. type: =head1
36732 #: ../src/guestfs.pod:2145
36733 msgid "ARCHITECTURE"
36734 msgstr "АРХІТЕКТУРА"
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:2147
36738 msgid ""
36739 "Internally, libguestfs is implemented by running an appliance (a special "
36740 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36741 "process of the main program."
36742 msgstr ""
36743
36744 #. type: verbatim
36745 #: ../src/guestfs.pod:2151
36746 #, no-wrap
36747 msgid ""
36748 "  ___________________\n"
36749 " /                   \\\n"
36750 " | main program      |\n"
36751 " |                   |\n"
36752 " |                   |           child process / appliance\n"
36753 " |                   |           __________________________\n"
36754 " |                   |          / qemu                     \\\n"
36755 " +-------------------+   RPC    |      +-----------------+ |\n"
36756 " | libguestfs     <--------------------> guestfsd        | |\n"
36757 " |                   |          |      +-----------------+ |\n"
36758 " \\___________________/          |      | Linux kernel    | |\n"
36759 "                                |      +--^--------------+ |\n"
36760 "                                \\_________|________________/\n"
36761 "                                          |\n"
36762 "                                   _______v______\n"
36763 "                                  /              \\\n"
36764 "                                  | Device or    |\n"
36765 "                                  | disk image   |\n"
36766 "                                  \\______________/\n"
36767 "\n"
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:2171
36772 msgid ""
36773 "The library, linked to the main program, creates the child process and hence "
36774 "the appliance in the L</guestfs_launch> function."
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:2174
36779 msgid ""
36780 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36781 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36782 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36783 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36784 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36785 "attached to the qemu process which translates device access by the "
36786 "appliance's Linux kernel into accesses to the image."
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:2183
36791 msgid ""
36792 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36793 "Although the disk image you are attached to might also be used by some "
36794 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36795 "care if both libguestfs's qemu process and your virtual machine are trying "
36796 "to update the disk image at the same time, since these usually results in "
36797 "massive disk corruption)."
36798 msgstr ""
36799
36800 #. type: =head1
36801 #: ../src/guestfs.pod:2190
36802 msgid "STATE MACHINE"
36803 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36804
36805 #. type: textblock
36806 #: ../src/guestfs.pod:2192
36807 msgid "libguestfs uses a state machine to model the child process:"
36808 msgstr ""
36809
36810 #. type: verbatim
36811 #: ../src/guestfs.pod:2194
36812 #, no-wrap
36813 msgid ""
36814 "                         |\n"
36815 "                    guestfs_create\n"
36816 "                         |\n"
36817 "                         |\n"
36818 "                     ____V_____\n"
36819 "                    /          \\\n"
36820 "                    |  CONFIG  |\n"
36821 "                    \\__________/\n"
36822 "                     ^ ^   ^  \\\n"
36823 "                    /  |    \\  \\ guestfs_launch\n"
36824 "                   /   |    _\\__V______\n"
36825 "                  /    |   /           \\\n"
36826 "                 /     |   | LAUNCHING |\n"
36827 "                /      |   \\___________/\n"
36828 "               /       |       /\n"
36829 "              /        |  guestfs_launch\n"
36830 "             /         |     /\n"
36831 "    ______  /        __|____V\n"
36832 "   /      \\ ------> /        \\\n"
36833 "   | BUSY |         | READY  |\n"
36834 "   \\______/ <------ \\________/\n"
36835 "\n"
36836 msgstr ""
36837
36838 #. type: textblock
36839 #: ../src/guestfs.pod:2216
36840 msgid ""
36841 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36842 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36843 "(3) alternating between READY and BUSY as commands are issued to, and "
36844 "carried out by, the child process."
36845 msgstr ""
36846
36847 #. type: textblock
36848 #: ../src/guestfs.pod:2221
36849 msgid ""
36850 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36851 "asynchronously at any time (eg. due to some internal error), and that causes "
36852 "the state to transition back to CONFIG."
36853 msgstr ""
36854
36855 #. type: textblock
36856 #: ../src/guestfs.pod:2225
36857 msgid ""
36858 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36859 "issued when in the CONFIG state."
36860 msgstr ""
36861
36862 #. type: textblock
36863 #: ../src/guestfs.pod:2228
36864 msgid ""
36865 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36866 "L</guestfs_launch> blocks until the child process is READY to accept "
36867 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36868 "moves the state from CONFIG to LAUNCHING while it is running."
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../src/guestfs.pod:2234
36873 msgid ""
36874 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36875 "state.  These API calls block waiting for the command to be carried out (ie. "
36876 "the state to transition to BUSY and then back to READY).  There are no non-"
36877 "blocking versions, and no way to issue more than one command per handle at "
36878 "the same time."
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:2240
36883 msgid ""
36884 "Finally, the child process sends asynchronous messages back to the main "
36885 "program, such as kernel log messages.  You can register a callback to "
36886 "receive these messages."
36887 msgstr ""
36888
36889 #. type: =head1
36890 #: ../src/guestfs.pod:2244
36891 msgid "INTERNALS"
36892 msgstr ""
36893
36894 #. type: =head2
36895 #: ../src/guestfs.pod:2246
36896 msgid "COMMUNICATION PROTOCOL"
36897 msgstr ""
36898
36899 #. type: textblock
36900 #: ../src/guestfs.pod:2248
36901 msgid ""
36902 "Don't rely on using this protocol directly.  This section documents how it "
36903 "currently works, but it may change at any time."
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:2251
36908 msgid ""
36909 "The protocol used to talk between the library and the daemon running inside "
36910 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36911 "1014, RFC 1832, RFC 4506)."
36912 msgstr ""
36913
36914 #. type: textblock
36915 #: ../src/guestfs.pod:2255
36916 msgid ""
36917 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36918 "this file is automatically generated)."
36919 msgstr ""
36920
36921 #. type: textblock
36922 #: ../src/guestfs.pod:2258
36923 msgid ""
36924 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36925 "and C<FileOut> parameters, which are handled with very simple request/reply "
36926 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36927 "parameters, which use the same request and reply messages, but they may also "
36928 "be followed by files sent using a chunked encoding."
36929 msgstr ""
36930
36931 #. type: =head3
36932 #: ../src/guestfs.pod:2265
36933 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36934 msgstr ""
36935
36936 #. type: textblock
36937 #: ../src/guestfs.pod:2267
36938 msgid "For ordinary functions, the request message is:"
36939 msgstr ""
36940
36941 #. type: verbatim
36942 #: ../src/guestfs.pod:2269
36943 #, no-wrap
36944 msgid ""
36945 " total length (header + arguments,\n"
36946 "      but not including the length word itself)\n"
36947 " struct guestfs_message_header (encoded as XDR)\n"
36948 " struct guestfs_<foo>_args (encoded as XDR)\n"
36949 "\n"
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:2274
36954 msgid ""
36955 "The total length field allows the daemon to allocate a fixed size buffer "
36956 "into which it slurps the rest of the message.  As a result, the total length "
36957 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36958 "effective size of any request is limited to somewhere under this size."
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../src/guestfs.pod:2280
36963 msgid ""
36964 "Note also that many functions don't take any arguments, in which case the "
36965 "C<guestfs_I<foo>_args> is completely omitted."
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../src/guestfs.pod:2283
36970 msgid ""
36971 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36972 "receiver knows what type of args structure to expect, or none at all."
36973 msgstr ""
36974
36975 #. type: textblock
36976 #: ../src/guestfs.pod:2287
36977 msgid ""
36978 "For functions that take optional arguments, the optional arguments are "
36979 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36980 "arguments.  A bitmask in the header indicates which optional arguments are "
36981 "meaningful.  The bitmask is also checked to see if it contains bits set "
36982 "which the daemon does not know about (eg. if more optional arguments were "
36983 "added in a later version of the library), and this causes the call to be "
36984 "rejected."
36985 msgstr ""
36986
36987 #. type: textblock
36988 #: ../src/guestfs.pod:2295
36989 msgid "The reply message for ordinary functions is:"
36990 msgstr ""
36991
36992 #. type: verbatim
36993 #: ../src/guestfs.pod:2297
36994 #, no-wrap
36995 msgid ""
36996 " total length (header + ret,\n"
36997 "      but not including the length word itself)\n"
36998 " struct guestfs_message_header (encoded as XDR)\n"
36999 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37000 "\n"
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:2302
37005 msgid ""
37006 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37007 "functions that return no formal return values."
37008 msgstr ""
37009
37010 #. type: textblock
37011 #: ../src/guestfs.pod:2305
37012 msgid ""
37013 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../src/guestfs.pod:2308
37018 msgid ""
37019 "In the case of an error, a flag is set in the header, and the reply message "
37020 "is slightly changed:"
37021 msgstr ""
37022
37023 #. type: verbatim
37024 #: ../src/guestfs.pod:2311
37025 #, no-wrap
37026 msgid ""
37027 " total length (header + error,\n"
37028 "      but not including the length word itself)\n"
37029 " struct guestfs_message_header (encoded as XDR)\n"
37030 " struct guestfs_message_error (encoded as XDR)\n"
37031 "\n"
37032 msgstr ""
37033
37034 #. type: textblock
37035 #: ../src/guestfs.pod:2316
37036 msgid ""
37037 "The C<guestfs_message_error> structure contains the error message as a "
37038 "string."
37039 msgstr ""
37040
37041 #. type: =head3
37042 #: ../src/guestfs.pod:2319
37043 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37044 msgstr ""
37045
37046 #. type: textblock
37047 #: ../src/guestfs.pod:2321
37048 msgid ""
37049 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37050 "The normal request message is sent (see above).  However this is followed by "
37051 "a sequence of file chunks."
37052 msgstr ""
37053
37054 #. type: verbatim
37055 #: ../src/guestfs.pod:2325
37056 #, no-wrap
37057 msgid ""
37058 " total length (header + arguments,\n"
37059 "      but not including the length word itself,\n"
37060 "      and not including the chunks)\n"
37061 " struct guestfs_message_header (encoded as XDR)\n"
37062 " struct guestfs_<foo>_args (encoded as XDR)\n"
37063 " sequence of chunks for FileIn param #0\n"
37064 " sequence of chunks for FileIn param #1 etc.\n"
37065 "\n"
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:2333
37070 msgid "The \"sequence of chunks\" is:"
37071 msgstr ""
37072
37073 #. type: verbatim
37074 #: ../src/guestfs.pod:2335
37075 #, no-wrap
37076 msgid ""
37077 " length of chunk (not including length word itself)\n"
37078 " struct guestfs_chunk (encoded as XDR)\n"
37079 " length of chunk\n"
37080 " struct guestfs_chunk (encoded as XDR)\n"
37081 "   ...\n"
37082 " length of chunk\n"
37083 " struct guestfs_chunk (with data.data_len == 0)\n"
37084 "\n"
37085 msgstr ""
37086
37087 #. type: textblock
37088 #: ../src/guestfs.pod:2343
37089 msgid ""
37090 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37091 "is set in the final chunk to indicate either successful completion or early "
37092 "cancellation."
37093 msgstr ""
37094
37095 #. type: textblock
37096 #: ../src/guestfs.pod:2347
37097 msgid ""
37098 "At time of writing there are no functions that have more than one FileIn "
37099 "parameter.  However this is (theoretically) supported, by sending the "
37100 "sequence of chunks for each FileIn parameter one after another (from left to "
37101 "right)."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:2352
37106 msgid ""
37107 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37108 "transfer.  The library does this by sending a chunk with a special flag set "
37109 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37110 "RPC, does I<not> send any reply, and goes back to reading the next request."
37111 msgstr ""
37112
37113 #. type: textblock
37114 #: ../src/guestfs.pod:2358
37115 msgid ""
37116 "The daemon may also cancel.  It does this by writing a special word "
37117 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37118 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37119 "cancel chunk).  The special word is chosen so that even if cancellation "
37120 "happens right at the end of the transfer (after the library has finished "
37121 "writing and has started listening for the reply), the \"spurious\" cancel "
37122 "flag will not be confused with the reply message."
37123 msgstr ""
37124
37125 #. type: textblock
37126 #: ../src/guestfs.pod:2367
37127 msgid ""
37128 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37129 "limit), and also files where the size is not known in advance (eg. from "
37130 "pipes or sockets).  However the chunks are rather small "
37131 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37132 "to keep much in memory."
37133 msgstr ""
37134
37135 #. type: =head3
37136 #: ../src/guestfs.pod:2373
37137 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../src/guestfs.pod:2375
37142 msgid ""
37143 "The protocol for FileOut parameters is exactly the same as for FileIn "
37144 "parameters, but with the roles of daemon and library reversed."
37145 msgstr ""
37146
37147 #. type: verbatim
37148 #: ../src/guestfs.pod:2378
37149 #, no-wrap
37150 msgid ""
37151 " total length (header + ret,\n"
37152 "      but not including the length word itself,\n"
37153 "      and not including the chunks)\n"
37154 " struct guestfs_message_header (encoded as XDR)\n"
37155 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37156 " sequence of chunks for FileOut param #0\n"
37157 " sequence of chunks for FileOut param #1 etc.\n"
37158 "\n"
37159 msgstr ""
37160
37161 #. type: =head3
37162 #: ../src/guestfs.pod:2386
37163 msgid "INITIAL MESSAGE"
37164 msgstr ""
37165
37166 #. type: textblock
37167 #: ../src/guestfs.pod:2388
37168 msgid ""
37169 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37170 "which indicates that the guest and daemon is alive.  This is what L</"
37171 "guestfs_launch> waits for."
37172 msgstr ""
37173
37174 #. type: =head3
37175 #: ../src/guestfs.pod:2392
37176 msgid "PROGRESS NOTIFICATION MESSAGES"
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:2394
37181 msgid ""
37182 "The daemon may send progress notification messages at any time.  These are "
37183 "distinguished by the normal length word being replaced by "
37184 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37185 msgstr ""
37186
37187 #. type: textblock
37188 #: ../src/guestfs.pod:2398
37189 msgid ""
37190 "The library turns them into progress callbacks (see L</"
37191 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37192 "if not."
37193 msgstr ""
37194
37195 #. type: textblock
37196 #: ../src/guestfs.pod:2402
37197 msgid ""
37198 "The daemon self-limits the frequency of progress messages it sends (see "
37199 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37200 "messages."
37201 msgstr ""
37202
37203 #. type: =head1
37204 #: ../src/guestfs.pod:2406
37205 msgid "LIBGUESTFS VERSION NUMBERS"
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:2408
37210 msgid ""
37211 "Since April 2010, libguestfs has started to make separate development and "
37212 "stable releases, along with corresponding branches in our git repository.  "
37213 "These separate releases can be identified by version number:"
37214 msgstr ""
37215
37216 #. type: verbatim
37217 #: ../src/guestfs.pod:2413
37218 #, no-wrap
37219 msgid ""
37220 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37221 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37222 "       |\n"
37223 "       v\n"
37224 " 1  .  3  .  5\n"
37225 " ^           ^\n"
37226 " |           |\n"
37227 " |           `-------- sub-version\n"
37228 " |\n"
37229 " `------ always '1' because we don't change the ABI\n"
37230 "\n"
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:2424
37235 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:2426
37240 msgid ""
37241 "As time passes we cherry pick fixes from the development branch and backport "
37242 "those into the stable branch, the effect being that the stable branch should "
37243 "get more stable and less buggy over time.  So the stable releases are ideal "
37244 "for people who don't need new features but would just like the software to "
37245 "work."
37246 msgstr ""
37247
37248 #. type: textblock
37249 #: ../src/guestfs.pod:2432
37250 msgid "Our criteria for backporting changes are:"
37251 msgstr ""
37252
37253 #. type: textblock
37254 #: ../src/guestfs.pod:2438
37255 msgid ""
37256 "Documentation changes which don't affect any code are backported unless the "
37257 "documentation refers to a future feature which is not in stable."
37258 msgstr ""
37259
37260 #. type: textblock
37261 #: ../src/guestfs.pod:2444
37262 msgid ""
37263 "Bug fixes which are not controversial, fix obvious problems, and have been "
37264 "well tested are backported."
37265 msgstr ""
37266
37267 #. type: textblock
37268 #: ../src/guestfs.pod:2449
37269 msgid ""
37270 "Simple rearrangements of code which shouldn't affect how it works get "
37271 "backported.  This is so that the code in the two branches doesn't get too "
37272 "far out of step, allowing us to backport future fixes more easily."
37273 msgstr ""
37274
37275 #. type: textblock
37276 #: ../src/guestfs.pod:2455
37277 msgid ""
37278 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37279 "exceptional case: the new feature is required in order to implement an "
37280 "important bug fix."
37281 msgstr ""
37282
37283 #. type: textblock
37284 #: ../src/guestfs.pod:2461
37285 msgid ""
37286 "A new stable branch starts when we think the new features in development are "
37287 "substantial and compelling enough over the current stable branch to warrant "
37288 "it.  When that happens we create new stable and development versions 1.N.0 "
37289 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37290 "stable at this point, but by backporting fixes from development, that branch "
37291 "will stabilize over time."
37292 msgstr ""
37293
37294 #. type: =head1
37295 #: ../src/guestfs.pod:2469
37296 msgid "EXTENDING LIBGUESTFS"
37297 msgstr ""
37298
37299 #. type: =head2
37300 #: ../src/guestfs.pod:2471
37301 msgid "ADDING A NEW API ACTION"
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../src/guestfs.pod:2473
37306 msgid ""
37307 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37308 "documentation) are generated, and this makes it easy to extend the "
37309 "libguestfs API."
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../src/guestfs.pod:2477
37314 msgid "To add a new API action there are two changes:"
37315 msgstr ""
37316
37317 #. type: textblock
37318 #: ../src/guestfs.pod:2483
37319 msgid ""
37320 "You need to add a description of the call (name, parameters, return type, "
37321 "tests, documentation) to C<generator/generator_actions.ml>."
37322 msgstr ""
37323
37324 #. type: textblock
37325 #: ../src/guestfs.pod:2486
37326 msgid ""
37327 "There are two sorts of API action, depending on whether the call goes "
37328 "through to the daemon in the appliance, or is serviced entirely by the "
37329 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37330 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37331 "an example of the latter, since a trace flag is maintained in the handle and "
37332 "all tracing is done on the library side."
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:2494
37337 msgid ""
37338 "Most new actions are of the first type, and get added to the "
37339 "C<daemon_functions> list.  Each function has a unique procedure number used "
37340 "in the RPC protocol which is assigned to that action when we publish "
37341 "libguestfs and cannot be reused.  Take the latest procedure number and "
37342 "increment it."
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../src/guestfs.pod:2500
37347 msgid ""
37348 "For library-only actions of the second type, add to the "
37349 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37350 "library and do not travel over the RPC mechanism to the daemon, these "
37351 "functions do not need a procedure number, and so the procedure number is set "
37352 "to C<-1>."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:2508
37357 msgid "Implement the action (in C):"
37358 msgstr ""
37359
37360 #. type: textblock
37361 #: ../src/guestfs.pod:2510
37362 msgid ""
37363 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37364 "C<daemon/> directory."
37365 msgstr ""
37366
37367 #. type: textblock
37368 #: ../src/guestfs.pod:2513
37369 msgid ""
37370 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37371 "(note: double underscore) in the C<src/> directory."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:2516
37376 msgid "In either case, use another function as an example of what to do."
37377 msgstr ""
37378
37379 #. type: textblock
37380 #: ../src/guestfs.pod:2520
37381 msgid "After making these changes, use C<make> to compile."
37382 msgstr ""
37383
37384 #. type: textblock
37385 #: ../src/guestfs.pod:2522
37386 msgid ""
37387 "Note that you don't need to implement the RPC, language bindings, manual "
37388 "pages or anything else.  It's all automatically generated from the OCaml "
37389 "description."
37390 msgstr ""
37391
37392 #. type: =head2
37393 #: ../src/guestfs.pod:2526
37394 msgid "ADDING TESTS FOR AN API ACTION"
37395 msgstr ""
37396
37397 #. type: textblock
37398 #: ../src/guestfs.pod:2528
37399 msgid ""
37400 "You can supply zero or as many tests as you want per API call.  The tests "
37401 "can either be added as part of the API description (C<generator/"
37402 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37403 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37404 "slower, so if possible use the first method."
37405 msgstr ""
37406
37407 #. type: textblock
37408 #: ../src/guestfs.pod:2534
37409 msgid ""
37410 "The following describes the test environment used when you add an API test "
37411 "in C<generator_actions.ml>."
37412 msgstr ""
37413
37414 #. type: textblock
37415 #: ../src/guestfs.pod:2537
37416 msgid "The test environment has 4 block devices:"
37417 msgstr ""
37418
37419 #. type: =item
37420 #: ../src/guestfs.pod:2541
37421 msgid "C</dev/sda> 500MB"
37422 msgstr "C</dev/sda> 500 МБ"
37423
37424 #. type: textblock
37425 #: ../src/guestfs.pod:2543
37426 msgid "General block device for testing."
37427 msgstr ""
37428
37429 #. type: =item
37430 #: ../src/guestfs.pod:2545
37431 msgid "C</dev/sdb> 50MB"
37432 msgstr "C</dev/sdb> 50 МБ"
37433
37434 #. type: textblock
37435 #: ../src/guestfs.pod:2547
37436 msgid ""
37437 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37438 "operations."
37439 msgstr ""
37440
37441 #. type: =item
37442 #: ../src/guestfs.pod:2550
37443 msgid "C</dev/sdc> 10MB"
37444 msgstr "C</dev/sdc> 10 МБ"
37445
37446 #. type: textblock
37447 #: ../src/guestfs.pod:2552
37448 msgid "Used in a few tests where two block devices are needed."
37449 msgstr ""
37450
37451 #. type: =item
37452 #: ../src/guestfs.pod:2554
37453 msgid "C</dev/sdd>"
37454 msgstr "C</dev/sdd>"
37455
37456 #. type: textblock
37457 #: ../src/guestfs.pod:2556
37458 msgid "ISO with fixed content (see C<images/test.iso>)."
37459 msgstr ""
37460
37461 #. type: textblock
37462 #: ../src/guestfs.pod:2560
37463 msgid ""
37464 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37465 "appliance and block devices are reused between tests.  So don't try testing "
37466 "L</guestfs_kill_subprocess> :-x"
37467 msgstr ""
37468
37469 #. type: textblock
37470 #: ../src/guestfs.pod:2564
37471 msgid ""
37472 "Each test starts with an initial scenario, selected using one of the "
37473 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37474 "initialize the disks mentioned above in a particular way as documented in "
37475 "C<generator_types.ml>.  You should not assume anything about the previous "
37476 "contents of other disks that are not initialized."
37477 msgstr ""
37478
37479 #. type: textblock
37480 #: ../src/guestfs.pod:2570
37481 msgid ""
37482 "You can add a prerequisite clause to any individual test.  This is a run-"
37483 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37484 "testing a command which might not work on all variations of libguestfs "
37485 "builds.  A test that has prerequisite of C<Always> means to run "
37486 "unconditionally."
37487 msgstr ""
37488
37489 #. type: textblock
37490 #: ../src/guestfs.pod:2576
37491 msgid ""
37492 "In addition, packagers can skip individual tests by setting environment "
37493 "variables before running C<make check>."
37494 msgstr ""
37495
37496 #. type: verbatim
37497 #: ../src/guestfs.pod:2579
37498 #, no-wrap
37499 msgid ""
37500 " SKIP_TEST_<CMD>_<NUM>=1\n"
37501 "\n"
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:2581
37506 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:2583
37511 msgid "or:"
37512 msgstr "або:"
37513
37514 #. type: verbatim
37515 #: ../src/guestfs.pod:2585
37516 #, no-wrap
37517 msgid ""
37518 " SKIP_TEST_<CMD>=1\n"
37519 "\n"
37520 msgstr ""
37521
37522 #. type: textblock
37523 #: ../src/guestfs.pod:2587
37524 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37525 msgstr ""
37526
37527 #. type: textblock
37528 #: ../src/guestfs.pod:2589
37529 msgid "Packagers can run only certain tests by setting for example:"
37530 msgstr ""
37531
37532 #. type: verbatim
37533 #: ../src/guestfs.pod:2591
37534 #, no-wrap
37535 msgid ""
37536 " TEST_ONLY=\"vfs_type zerofree\"\n"
37537 "\n"
37538 msgstr ""
37539
37540 #. type: textblock
37541 #: ../src/guestfs.pod:2593
37542 msgid ""
37543 "See C<capitests/tests.c> for more details of how these environment variables "
37544 "work."
37545 msgstr ""
37546
37547 #. type: =head2
37548 #: ../src/guestfs.pod:2596
37549 msgid "DEBUGGING NEW API ACTIONS"
37550 msgstr ""
37551
37552 #. type: textblock
37553 #: ../src/guestfs.pod:2598
37554 msgid "Test new actions work before submitting them."
37555 msgstr ""
37556
37557 #. type: textblock
37558 #: ../src/guestfs.pod:2600
37559 msgid "You can use guestfish to try out new commands."
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:2602
37564 msgid ""
37565 "Debugging the daemon is a problem because it runs inside a minimal "
37566 "environment.  However you can fprintf messages in the daemon to stderr, and "
37567 "they will show up if you use C<guestfish -v>."
37568 msgstr ""
37569
37570 #. type: =head2
37571 #: ../src/guestfs.pod:2606
37572 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37573 msgstr ""
37574
37575 #. type: textblock
37576 #: ../src/guestfs.pod:2608
37577 msgid ""
37578 "Our C source code generally adheres to some basic code-formatting "
37579 "conventions.  The existing code base is not totally consistent on this "
37580 "front, but we do prefer that contributed code be formatted similarly.  In "
37581 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37582 "indentation level, and other than that, follow the K&R style."
37583 msgstr ""
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:2614
37587 msgid ""
37588 "If you use Emacs, add the following to one of one of your start-up files (e."
37589 "g., ~/.emacs), to help ensure that you get indentation right:"
37590 msgstr ""
37591
37592 #. type: verbatim
37593 #: ../src/guestfs.pod:2617
37594 #, no-wrap
37595 msgid ""
37596 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37597 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37598 " (add-hook 'find-file-hook\n"
37599 "     '(lambda () (if (and buffer-file-name\n"
37600 "                          (string-match \"/libguestfs\\\\>\"\n"
37601 "                              (buffer-file-name))\n"
37602 "                          (not (string-equal mode-name \"Change Log\"))\n"
37603 "                          (not (string-equal mode-name \"Makefile\")))\n"
37604 "                     (setq indent-tabs-mode nil))))\n"
37605 " \n"
37606 msgstr ""
37607
37608 #. type: verbatim
37609 #: ../src/guestfs.pod:2627
37610 #, no-wrap
37611 msgid ""
37612 " ;;; When editing C sources in libguestfs, use this style.\n"
37613 " (defun libguestfs-c-mode ()\n"
37614 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37615 "   (interactive)\n"
37616 "   (c-set-style \"K&R\")\n"
37617 "   (setq c-indent-level 2)\n"
37618 "   (setq c-basic-offset 2))\n"
37619 " (add-hook 'c-mode-hook\n"
37620 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37621 "                               (buffer-file-name))\n"
37622 "                           (libguestfs-c-mode))))\n"
37623 "\n"
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../src/guestfs.pod:2639
37628 msgid "Enable warnings when compiling (and fix any problems this finds):"
37629 msgstr ""
37630
37631 #. type: verbatim
37632 #: ../src/guestfs.pod:2642
37633 #, no-wrap
37634 msgid ""
37635 " ./configure --enable-gcc-warnings\n"
37636 "\n"
37637 msgstr ""
37638 " ./configure --enable-gcc-warnings\n"
37639 "\n"
37640
37641 #. type: textblock
37642 #: ../src/guestfs.pod:2644
37643 msgid "Useful targets are:"
37644 msgstr ""
37645
37646 #. type: verbatim
37647 #: ../src/guestfs.pod:2646
37648 #, no-wrap
37649 msgid ""
37650 " make syntax-check  # checks the syntax of the C code\n"
37651 " make check         # runs the test suite\n"
37652 "\n"
37653 msgstr ""
37654
37655 #. type: =head2
37656 #: ../src/guestfs.pod:2649
37657 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37658 msgstr ""
37659
37660 #. type: textblock
37661 #: ../src/guestfs.pod:2651
37662 msgid ""
37663 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37664 "which are used to do shell quoting."
37665 msgstr ""
37666
37667 #. type: =item
37668 #: ../src/guestfs.pod:2656
37669 msgid "%Q"
37670 msgstr "%Q"
37671
37672 #. type: textblock
37673 #: ../src/guestfs.pod:2658
37674 msgid ""
37675 "Simple shell quoted string.  Any spaces or other shell characters are "
37676 "escaped for you."
37677 msgstr ""
37678
37679 #. type: =item
37680 #: ../src/guestfs.pod:2661
37681 msgid "%R"
37682 msgstr "%R"
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:2663
37686 msgid ""
37687 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37688 "the sysroot."
37689 msgstr ""
37690
37691 #. type: verbatim
37692 #: ../src/guestfs.pod:2670
37693 #, no-wrap
37694 msgid ""
37695 " asprintf (&cmd, \"cat %R\", path);\n"
37696 "\n"
37697 msgstr ""
37698
37699 #. type: textblock
37700 #: ../src/guestfs.pod:2672
37701 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37702 msgstr ""
37703
37704 #. type: textblock
37705 #: ../src/guestfs.pod:2674
37706 msgid ""
37707 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37708 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37709 "they are not passed via the shell (instead, straight to exec).  You probably "
37710 "want to use the C<sysroot_path()> function however."
37711 msgstr ""
37712
37713 #. type: =head2
37714 #: ../src/guestfs.pod:2680
37715 msgid "SUBMITTING YOUR NEW API ACTIONS"
37716 msgstr ""
37717
37718 #. type: textblock
37719 #: ../src/guestfs.pod:2682
37720 msgid ""
37721 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37722 "libguestfs> and CC to L<rjones@redhat.com>."
37723 msgstr ""
37724
37725 #. type: =head2
37726 #: ../src/guestfs.pod:2686
37727 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37728 msgstr ""
37729
37730 #. type: textblock
37731 #: ../src/guestfs.pod:2688
37732 msgid "We support i18n (gettext anyhow) in the library."
37733 msgstr ""
37734
37735 #. type: textblock
37736 #: ../src/guestfs.pod:2690
37737 msgid ""
37738 "However many messages come from the daemon, and we don't translate those at "
37739 "the moment.  One reason is that the appliance generally has all locale files "
37740 "removed from it, because they take up a lot of space.  So we'd have to readd "
37741 "some of those, as well as copying our PO files into the appliance."
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../src/guestfs.pod:2696
37746 msgid ""
37747 "Debugging messages are never translated, since they are intended for the "
37748 "programmers."
37749 msgstr ""
37750
37751 #. type: =head2
37752 #: ../src/guestfs.pod:2699
37753 msgid "SOURCE CODE SUBDIRECTORIES"
37754 msgstr ""
37755
37756 #. type: textblock
37757 #: ../src/guestfs.pod:2705
37758 msgid "The libguestfs appliance, build scripts and so on."
37759 msgstr ""
37760
37761 #. type: =item
37762 #: ../src/guestfs.pod:2707
37763 msgid "C<capitests>"
37764 msgstr "C<capitests>"
37765
37766 #. type: textblock
37767 #: ../src/guestfs.pod:2709
37768 msgid "Automated tests of the C API."
37769 msgstr ""
37770
37771 #. type: =item
37772 #: ../src/guestfs.pod:2711
37773 msgid "C<cat>"
37774 msgstr "C<cat>"
37775
37776 #. type: textblock
37777 #: ../src/guestfs.pod:2713
37778 msgid ""
37779 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37780 "documentation."
37781 msgstr ""
37782
37783 #. type: =item
37784 #: ../src/guestfs.pod:2716
37785 msgid "C<caution>"
37786 msgstr ""
37787
37788 #. type: textblock
37789 #: ../src/guestfs.pod:2718
37790 msgid ""
37791 "Safety and liveness tests of components that libguestfs depends upon (not of "
37792 "libguestfs itself).  Mainly this is for qemu and the kernel."
37793 msgstr ""
37794
37795 #. type: =item
37796 #: ../src/guestfs.pod:2721
37797 msgid "C<contrib>"
37798 msgstr "C<contrib>"
37799
37800 #. type: textblock
37801 #: ../src/guestfs.pod:2723
37802 msgid "Outside contributions, experimental parts."
37803 msgstr ""
37804
37805 #. type: =item
37806 #: ../src/guestfs.pod:2725
37807 msgid "C<daemon>"
37808 msgstr "C<daemon>"
37809
37810 #. type: textblock
37811 #: ../src/guestfs.pod:2727
37812 msgid ""
37813 "The daemon that runs inside the libguestfs appliance and carries out actions."
37814 msgstr ""
37815
37816 #. type: =item
37817 #: ../src/guestfs.pod:2730
37818 msgid "C<df>"
37819 msgstr "C<df>"
37820
37821 #. type: textblock
37822 #: ../src/guestfs.pod:2732
37823 msgid "L<virt-df(1)> command and documentation."
37824 msgstr ""
37825
37826 #. type: =item
37827 #: ../src/guestfs.pod:2734
37828 msgid "C<edit>"
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../src/guestfs.pod:2736
37833 msgid "L<virt-edit(1)> command and documentation."
37834 msgstr ""
37835
37836 #. type: =item
37837 #: ../src/guestfs.pod:2738
37838 msgid "C<examples>"
37839 msgstr "C<examples>"
37840
37841 #. type: textblock
37842 #: ../src/guestfs.pod:2740
37843 msgid "C API example code."
37844 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37845
37846 #. type: =item
37847 #: ../src/guestfs.pod:2742
37848 msgid "C<fish>"
37849 msgstr "C<fish>"
37850
37851 #. type: textblock
37852 #: ../src/guestfs.pod:2744
37853 msgid ""
37854 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37855 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37856 "L<virt-tar-out(1)>."
37857 msgstr ""
37858
37859 #. type: =item
37860 #: ../src/guestfs.pod:2748
37861 msgid "C<fuse>"
37862 msgstr "C<fuse>"
37863
37864 #. type: textblock
37865 #: ../src/guestfs.pod:2750
37866 msgid ""
37867 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37868 msgstr ""
37869
37870 #. type: =item
37871 #: ../src/guestfs.pod:2752
37872 msgid "C<generator>"
37873 msgstr "C<generator>"
37874
37875 #. type: textblock
37876 #: ../src/guestfs.pod:2754
37877 msgid ""
37878 "The crucially important generator, used to automatically generate large "
37879 "amounts of boilerplate C code for things like RPC and bindings."
37880 msgstr ""
37881
37882 #. type: =item
37883 #: ../src/guestfs.pod:2757
37884 msgid "C<images>"
37885 msgstr "C<images>"
37886
37887 #. type: textblock
37888 #: ../src/guestfs.pod:2759
37889 msgid "Files used by the test suite."
37890 msgstr ""
37891
37892 #. type: textblock
37893 #: ../src/guestfs.pod:2761
37894 msgid "Some \"phony\" guest images which we test against."
37895 msgstr ""
37896
37897 #. type: =item
37898 #: ../src/guestfs.pod:2763
37899 msgid "C<inspector>"
37900 msgstr "C<inspector>"
37901
37902 #. type: textblock
37903 #: ../src/guestfs.pod:2765
37904 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37905 msgstr ""
37906
37907 #. type: =item
37908 #: ../src/guestfs.pod:2767
37909 msgid "C<logo>"
37910 msgstr "C<logo>"
37911
37912 #. type: textblock
37913 #: ../src/guestfs.pod:2769
37914 msgid "Logo used on the website.  The fish is called Arthur by the way."
37915 msgstr ""
37916
37917 #. type: =item
37918 #: ../src/guestfs.pod:2771
37919 msgid "C<m4>"
37920 msgstr "C<m4>"
37921
37922 #. type: textblock
37923 #: ../src/guestfs.pod:2773
37924 msgid "M4 macros used by autoconf."
37925 msgstr ""
37926
37927 #. type: =item
37928 #: ../src/guestfs.pod:2775
37929 msgid "C<po>"
37930 msgstr "C<po>"
37931
37932 #. type: textblock
37933 #: ../src/guestfs.pod:2777
37934 msgid "Translations of simple gettext strings."
37935 msgstr "Переклади простих рядків gettext."
37936
37937 #. type: =item
37938 #: ../src/guestfs.pod:2779
37939 msgid "C<po-docs>"
37940 msgstr "C<po-docs>"
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:2781
37944 msgid ""
37945 "The build infrastructure and PO files for translations of manpages and POD "
37946 "files.  Eventually this will be combined with the C<po> directory, but that "
37947 "is rather complicated."
37948 msgstr ""
37949
37950 #. type: =item
37951 #: ../src/guestfs.pod:2785
37952 msgid "C<regressions>"
37953 msgstr "C<regressions>"
37954
37955 #. type: textblock
37956 #: ../src/guestfs.pod:2787
37957 msgid "Regression tests."
37958 msgstr "Тести на регресії."
37959
37960 #. type: =item
37961 #: ../src/guestfs.pod:2789
37962 msgid "C<rescue>"
37963 msgstr "C<rescue>"
37964
37965 #. type: textblock
37966 #: ../src/guestfs.pod:2791
37967 msgid "L<virt-rescue(1)> command and documentation."
37968 msgstr ""
37969
37970 #. type: =item
37971 #: ../src/guestfs.pod:2793
37972 msgid "C<src>"
37973 msgstr "C<src>"
37974
37975 #. type: textblock
37976 #: ../src/guestfs.pod:2795
37977 msgid "Source code to the C library."
37978 msgstr ""
37979
37980 #. type: =item
37981 #: ../src/guestfs.pod:2797
37982 msgid "C<tools>"
37983 msgstr "C<tools>"
37984
37985 #. type: textblock
37986 #: ../src/guestfs.pod:2799
37987 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37988 msgstr ""
37989
37990 #. type: =item
37991 #: ../src/guestfs.pod:2801
37992 msgid "C<test-tool>"
37993 msgstr "C<test-tool>"
37994
37995 #. type: textblock
37996 #: ../src/guestfs.pod:2803
37997 msgid ""
37998 "Test tool for end users to test if their qemu/kernel combination will work "
37999 "with libguestfs."
38000 msgstr ""
38001
38002 #. type: =item
38003 #: ../src/guestfs.pod:2806
38004 msgid "C<csharp>"
38005 msgstr "C<csharp>"
38006
38007 #. type: =item
38008 #: ../src/guestfs.pod:2808
38009 msgid "C<haskell>"
38010 msgstr "C<haskell>"
38011
38012 #. type: =item
38013 #: ../src/guestfs.pod:2810
38014 msgid "C<java>"
38015 msgstr "C<java>"
38016
38017 #. type: =item
38018 #: ../src/guestfs.pod:2812
38019 msgid "C<ocaml>"
38020 msgstr "C<ocaml>"
38021
38022 #. type: =item
38023 #: ../src/guestfs.pod:2814
38024 msgid "C<php>"
38025 msgstr "C<php>"
38026
38027 #. type: =item
38028 #: ../src/guestfs.pod:2816
38029 msgid "C<perl>"
38030 msgstr "C<perl>"
38031
38032 #. type: =item
38033 #: ../src/guestfs.pod:2818
38034 msgid "C<python>"
38035 msgstr "C<python>"
38036
38037 #. type: =item
38038 #: ../src/guestfs.pod:2820
38039 msgid "C<ruby>"
38040 msgstr "C<ruby>"
38041
38042 #. type: textblock
38043 #: ../src/guestfs.pod:2822
38044 msgid "Language bindings."
38045 msgstr "Прив’язки до мов програмування."
38046
38047 #. type: =head2
38048 #: ../src/guestfs.pod:2826
38049 msgid "MAKING A STABLE RELEASE"
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:2828
38054 msgid ""
38055 "When we make a stable release, there are several steps documented here.  See "
38056 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38057 "branch policy."
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../src/guestfs.pod:2836
38062 msgid ""
38063 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38064 msgstr ""
38065
38066 #. type: textblock
38067 #: ../src/guestfs.pod:2841
38068 msgid "Finalize RELEASE-NOTES."
38069 msgstr ""
38070
38071 #. type: textblock
38072 #: ../src/guestfs.pod:2845
38073 msgid "Update ROADMAP."
38074 msgstr ""
38075
38076 #. type: textblock
38077 #: ../src/guestfs.pod:2849
38078 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38079 msgstr ""
38080
38081 #. type: textblock
38082 #: ../src/guestfs.pod:2853
38083 msgid "Push and pull from Transifex."
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:2855
38088 msgid "Run:"
38089 msgstr ""
38090
38091 #. type: verbatim
38092 #: ../src/guestfs.pod:2857
38093 #, no-wrap
38094 msgid ""
38095 " tx push -s\n"
38096 "\n"
38097 msgstr ""
38098
38099 #. type: textblock
38100 #: ../src/guestfs.pod:2859
38101 msgid "to push the latest POT files to Transifex.  Then run:"
38102 msgstr ""
38103
38104 #. type: verbatim
38105 #: ../src/guestfs.pod:2861
38106 #, no-wrap
38107 msgid ""
38108 " ./tx-pull.sh\n"
38109 "\n"
38110 msgstr ""
38111
38112 #. type: textblock
38113 #: ../src/guestfs.pod:2863
38114 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38115 msgstr ""
38116
38117 #. type: textblock
38118 #: ../src/guestfs.pod:2867
38119 msgid ""
38120 "Create new stable and development directories under L<http://libguestfs.org/"
38121 "download>."
38122 msgstr ""
38123
38124 #. type: textblock
38125 #: ../src/guestfs.pod:2872
38126 msgid "Create the branch in git:"
38127 msgstr ""
38128
38129 #. type: verbatim
38130 #: ../src/guestfs.pod:2874
38131 #, no-wrap
38132 msgid ""
38133 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38134 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38135 " git branch stable-1.XX\n"
38136 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38137 "\n"
38138 msgstr ""
38139
38140 #. type: =head1
38141 #: ../src/guestfs.pod:2881
38142 msgid "LIMITS"
38143 msgstr ""
38144
38145 #. type: =head2
38146 #: ../src/guestfs.pod:2883
38147 msgid "PROTOCOL LIMITS"
38148 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38149
38150 #. type: textblock
38151 #: ../src/guestfs.pod:2885
38152 msgid ""
38153 "Internally libguestfs uses a message-based protocol to pass API calls and "
38154 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38155 "plenty more detail about this).  The maximum message size used by the "
38156 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38157 "aware of this limit.  The API calls which may be affected are individually "
38158 "documented, with a link back to this section of the documentation."
38159 msgstr ""
38160
38161 #. type: textblock
38162 #: ../src/guestfs.pod:2893
38163 msgid ""
38164 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38165 "a simple string.  Because this string is at some point internally encoded as "
38166 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38167 "the requested file is larger than this then you will get an error."
38168 msgstr ""
38169
38170 #. type: textblock
38171 #: ../src/guestfs.pod:2899
38172 msgid ""
38173 "In order to transfer large files into and out of the guest filesystem, you "
38174 "need to use particular calls that support this.  The sections L</UPLOADING> "
38175 "and L</DOWNLOADING> document how to do this."
38176 msgstr ""
38177
38178 #. type: textblock
38179 #: ../src/guestfs.pod:2903
38180 msgid ""
38181 "You might also consider mounting the disk image using our FUSE filesystem "
38182 "support (L<guestmount(1)>)."
38183 msgstr ""
38184
38185 #. type: =head2
38186 #: ../src/guestfs.pod:2906
38187 msgid "MAXIMUM NUMBER OF DISKS"
38188 msgstr ""
38189
38190 #. type: textblock
38191 #: ../src/guestfs.pod:2908
38192 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38193 msgstr ""
38194
38195 #. type: textblock
38196 #: ../src/guestfs.pod:2911
38197 msgid ""
38198 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38199 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38200 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38201 "purposes."
38202 msgstr ""
38203
38204 #. type: textblock
38205 #: ../src/guestfs.pod:2916
38206 msgid ""
38207 "We are working to substantially raise this limit in future versions but it "
38208 "requires complex changes to qemu."
38209 msgstr ""
38210
38211 #. type: textblock
38212 #: ../src/guestfs.pod:2919
38213 msgid ""
38214 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38215 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38216 "requires changes to qemu."
38217 msgstr ""
38218
38219 #. type: =head2
38220 #: ../src/guestfs.pod:2923
38221 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38222 msgstr ""
38223
38224 #. type: textblock
38225 #: ../src/guestfs.pod:2925
38226 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38227 msgstr ""
38228
38229 #. type: textblock
38230 #: ../src/guestfs.pod:2927
38231 msgid ""
38232 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38233 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38234 msgstr ""
38235
38236 #. type: textblock
38237 #: ../src/guestfs.pod:2930
38238 msgid ""
38239 "If you attach a disk with more than 15 partitions, the extra partitions are "
38240 "ignored by libguestfs."
38241 msgstr ""
38242
38243 #. type: =head2
38244 #: ../src/guestfs.pod:2933
38245 msgid "MAXIMUM SIZE OF A DISK"
38246 msgstr ""
38247
38248 #. type: textblock
38249 #: ../src/guestfs.pod:2935
38250 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../src/guestfs.pod:2937
38255 msgid ""
38256 "We have tested block devices up to 1 exabyte (2**60 or "
38257 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38258 "filesystem."
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../src/guestfs.pod:2941
38263 msgid ""
38264 "Although libguestfs probably does not impose any limit, the underlying host "
38265 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38266 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38267 "TB).  If you store disk images as host logical volumes then you are limited "
38268 "by the maximum size of an LV."
38269 msgstr ""
38270
38271 #. type: textblock
38272 #: ../src/guestfs.pod:2947
38273 msgid ""
38274 "For the hugest disk image files, we recommend using XFS on the host for "
38275 "storage."
38276 msgstr ""
38277
38278 #. type: =head2
38279 #: ../src/guestfs.pod:2950
38280 msgid "MAXIMUM SIZE OF A PARTITION"
38281 msgstr ""
38282
38283 #. type: textblock
38284 #: ../src/guestfs.pod:2952
38285 msgid ""
38286 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38287 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38288 "address a partition located beyond 2 TB on the disk."
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:2956
38293 msgid ""
38294 "It is recommended that you use GPT partitions on disks which are larger than "
38295 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38296 "which are theoretically larger than the largest disk we could support."
38297 msgstr ""
38298
38299 #. type: =head2
38300 #: ../src/guestfs.pod:2961
38301 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38302 msgstr ""
38303
38304 #. type: textblock
38305 #: ../src/guestfs.pod:2963
38306 msgid ""
38307 "This depends on the filesystem type.  libguestfs itself does not impose any "
38308 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38309 "what these limits are."
38310 msgstr ""
38311
38312 #. type: =head2
38313 #: ../src/guestfs.pod:2967
38314 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../src/guestfs.pod:2969
38319 msgid ""
38320 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38321 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38322 "uploads and downloads."
38323 msgstr ""
38324
38325 #. type: =head2
38326 #: ../src/guestfs.pod:2973
38327 msgid "INSPECTION LIMITS"
38328 msgstr ""
38329
38330 #. type: textblock
38331 #: ../src/guestfs.pod:2975
38332 msgid ""
38333 "The inspection code has several arbitrary limits on things like the size of "
38334 "Windows Registry hive it will read, and the length of product name.  These "
38335 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38336 "memory and disk space on the host, and should not be reached in practice.  "
38337 "See the source code for more information."
38338 msgstr ""
38339
38340 #. type: textblock
38341 #: ../src/guestfs.pod:3001
38342 msgid ""
38343 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38344 "effect as calling C<guestfs_set_verbose (g, 1)>."
38345 msgstr ""
38346
38347 #. type: textblock
38348 #: ../src/guestfs.pod:3013
38349 msgid ""
38350 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38351 "the discussion of paths in section L</PATH> above."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:3022
38356 msgid "See also L</QEMU WRAPPERS> above."
38357 msgstr ""
38358
38359 #. type: textblock
38360 #: ../src/guestfs.pod:3026
38361 msgid ""
38362 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38363 "effect as calling C<guestfs_set_trace (g, 1)>."
38364 msgstr ""
38365
38366 #. type: textblock
38367 #: ../src/guestfs.pod:3044
38368 msgid ""
38369 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38370 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38371 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38372 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38373 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38374 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38375 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38376 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38377 msgstr ""
38378
38379 #. type: textblock
38380 #: ../src/guestfs.pod:3074
38381 msgid ""
38382 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38383 "(8)>, L<disktype(1)>."
38384 msgstr ""
38385
38386 #. type: =head1
38387 #: ../src/guestfs.pod:3081 ../tools/virt-make-fs.pl:553
38388 #: ../tools/virt-win-reg.pl:761
38389 msgid "BUGS"
38390 msgstr "ВАДИ"
38391
38392 #. type: textblock
38393 #: ../src/guestfs.pod:3083
38394 msgid "To get a list of bugs against libguestfs use this link:"
38395 msgstr ""
38396 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38397 "посиланням:"
38398
38399 #. type: textblock
38400 #: ../src/guestfs.pod:3085
38401 msgid ""
38402 "L<https://bugzilla.redhat.com/buglist.cgi?"
38403 "component=libguestfs&product=Virtualization+Tools>"
38404 msgstr ""
38405 "L<https://bugzilla.redhat.com/buglist.cgi?"
38406 "component=libguestfs&product=Virtualization+Tools>"
38407
38408 #. type: textblock
38409 #: ../src/guestfs.pod:3087
38410 msgid "To report a new bug against libguestfs use this link:"
38411 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:3089
38415 msgid ""
38416 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38417 "component=libguestfs&product=Virtualization+Tools>"
38418 msgstr ""
38419 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38420 "component=libguestfs&product=Virtualization+Tools>"
38421
38422 #. type: textblock
38423 #: ../src/guestfs.pod:3091
38424 msgid "When reporting a bug, please check:"
38425 msgstr ""
38426
38427 #. type: textblock
38428 #: ../src/guestfs.pod:3097
38429 msgid "That the bug hasn't been reported already."
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../src/guestfs.pod:3101
38434 msgid "That you are testing a recent version."
38435 msgstr ""
38436
38437 #. type: textblock
38438 #: ../src/guestfs.pod:3105
38439 msgid "Describe the bug accurately, and give a way to reproduce it."
38440 msgstr ""
38441
38442 #. type: textblock
38443 #: ../src/guestfs.pod:3109
38444 msgid ""
38445 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38446 "bug report."
38447 msgstr ""
38448
38449 #. type: textblock
38450 #: ../test-tool/libguestfs-test-tool.pod:5
38451 msgid "libguestfs-test-tool - End user tests for libguestfs"
38452 msgstr ""
38453
38454 #. type: verbatim
38455 #: ../test-tool/libguestfs-test-tool.pod:9
38456 #, no-wrap
38457 msgid ""
38458 " libguestfs-test-tool [--options]\n"
38459 "\n"
38460 msgstr ""
38461
38462 #. type: textblock
38463 #: ../test-tool/libguestfs-test-tool.pod:13
38464 msgid ""
38465 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38466 "and developers, to allow them to check basic libguestfs functionality is "
38467 "working.  This is needed because libguestfs occasionally breaks for reasons "
38468 "beyond our control: usually because of changes in the underlying qemu or "
38469 "kernel packages, or the host environment."
38470 msgstr ""
38471
38472 #. type: textblock
38473 #: ../test-tool/libguestfs-test-tool.pod:20
38474 msgid "If you suspect a problem in libguestfs, then just run:"
38475 msgstr ""
38476
38477 #. type: verbatim
38478 #: ../test-tool/libguestfs-test-tool.pod:22
38479 #, no-wrap
38480 msgid ""
38481 " libguestfs-test-tool\n"
38482 "\n"
38483 msgstr ""
38484
38485 #. type: textblock
38486 #: ../test-tool/libguestfs-test-tool.pod:24
38487 msgid "It will print lots of diagnostic messages."
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../test-tool/libguestfs-test-tool.pod:26
38492 msgid "If it runs to completion successfully, you will see this near the end:"
38493 msgstr ""
38494
38495 #. type: verbatim
38496 #: ../test-tool/libguestfs-test-tool.pod:28
38497 #, no-wrap
38498 msgid ""
38499 " ===== TEST FINISHED OK =====\n"
38500 "\n"
38501 msgstr ""
38502
38503 #. type: textblock
38504 #: ../test-tool/libguestfs-test-tool.pod:30
38505 msgid "and the test tool will exit with code 0."
38506 msgstr ""
38507
38508 #. type: textblock
38509 #: ../test-tool/libguestfs-test-tool.pod:32
38510 msgid ""
38511 "If it fails (and/or exits with non-zero error code), please paste the "
38512 "B<complete, unedited> output of the test tool into a bug report.  More "
38513 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38514 "> website."
38515 msgstr ""
38516
38517 #. type: =item
38518 #: ../test-tool/libguestfs-test-tool.pod:41
38519 msgid "I<--help>"
38520 msgstr "I<--help>"
38521
38522 #. type: textblock
38523 #: ../test-tool/libguestfs-test-tool.pod:43
38524 msgid "Display short usage information and exit."
38525 msgstr ""
38526
38527 #. type: =item
38528 #: ../test-tool/libguestfs-test-tool.pod:45
38529 msgid "I<--qemu qemu_binary>"
38530 msgstr "I<--qemu виконуваний_файл_qemu>"
38531
38532 #. type: textblock
38533 #: ../test-tool/libguestfs-test-tool.pod:47
38534 msgid ""
38535 "If you have downloaded another qemu binary, point this option at the full "
38536 "path of the binary to try it."
38537 msgstr ""
38538
38539 #. type: =item
38540 #: ../test-tool/libguestfs-test-tool.pod:50
38541 msgid "I<--qemudir qemu_source_dir>"
38542 msgstr ""
38543
38544 #. type: textblock
38545 #: ../test-tool/libguestfs-test-tool.pod:52
38546 msgid ""
38547 "If you have compiled qemu from source, point this option at the source "
38548 "directory to try it."
38549 msgstr ""
38550
38551 #. type: =item
38552 #: ../test-tool/libguestfs-test-tool.pod:55
38553 msgid "I<--timeout N>"
38554 msgstr "I<--timeout N>"
38555
38556 #. type: textblock
38557 #: ../test-tool/libguestfs-test-tool.pod:57
38558 msgid ""
38559 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
38560 "does not usually need to be adjusted unless your machine is very slow."
38561 msgstr ""
38562
38563 #. type: =head1
38564 #: ../test-tool/libguestfs-test-tool.pod:63
38565 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38566 msgstr ""
38567
38568 #. type: textblock
38569 #: ../test-tool/libguestfs-test-tool.pod:65
38570 msgid ""
38571 "If you have compiled another version of qemu from source and would like to "
38572 "try that, then you can use the I<--qemudir> option to point to the qemu "
38573 "source directory."
38574 msgstr ""
38575
38576 #. type: textblock
38577 #: ../test-tool/libguestfs-test-tool.pod:69
38578 msgid ""
38579 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38580 "option to point to the binary."
38581 msgstr ""
38582
38583 #. type: textblock
38584 #: ../test-tool/libguestfs-test-tool.pod:72
38585 msgid ""
38586 "When using an alternate qemu with libguestfs, usually you would need to "
38587 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38588 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
38589 "use either of the I<--qemudir> or I<--qemu> options."
38590 msgstr ""
38591
38592 #. type: textblock
38593 #: ../test-tool/libguestfs-test-tool.pod:79
38594 msgid ""
38595 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38596 "I<1> if there was an error."
38597 msgstr ""
38598
38599 #. type: textblock
38600 #: ../test-tool/libguestfs-test-tool.pod:84
38601 msgid ""
38602 "For the full list of environment variables which may affect libguestfs, "
38603 "please see the L<guestfs(3)> manual page."
38604 msgstr ""
38605
38606 #. type: textblock
38607 #: ../test-tool/libguestfs-test-tool.pod:89
38608 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38609 msgstr ""
38610
38611 #. type: textblock
38612 #: ../tools/virt-list-filesystems.pl:32
38613 msgid ""
38614 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38615 msgstr ""
38616
38617 #. type: verbatim
38618 #: ../tools/virt-list-filesystems.pl:36
38619 #, no-wrap
38620 msgid ""
38621 " virt-list-filesystems [--options] domname\n"
38622 "\n"
38623 msgstr ""
38624
38625 #. type: verbatim
38626 #: ../tools/virt-list-filesystems.pl:38
38627 #, no-wrap
38628 msgid ""
38629 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38630 "\n"
38631 msgstr ""
38632
38633 #. type: textblock
38634 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38635 msgid ""
38636 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38637 "replacement."
38638 msgstr ""
38639
38640 #. type: textblock
38641 #: ../tools/virt-list-filesystems.pl:45
38642 msgid ""
38643 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38644 "are contained in a virtual machine or disk image."
38645 msgstr ""
38646
38647 #. type: textblock
38648 #: ../tools/virt-list-filesystems.pl:49
38649 msgid ""
38650 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38651 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38652 "> tool."
38653 msgstr ""
38654
38655 #. type: textblock
38656 #: ../tools/virt-list-filesystems.pl:112
38657 msgid ""
38658 "With this option, C<virt-list-filesystems> displays the type of each "
38659 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38660 msgstr ""
38661
38662 #. type: =item
38663 #: ../tools/virt-list-filesystems.pl:119
38664 #, fuzzy
38665 #| msgid "B<-a image>"
38666 msgid "B<-a>"
38667 msgstr "B<-a образ>"
38668
38669 #. type: textblock
38670 #: ../tools/virt-list-filesystems.pl:123
38671 msgid ""
38672 "Normally we only show mountable filesystems.  If this option is given then "
38673 "swap devices are shown too."
38674 msgstr ""
38675
38676 #. type: textblock
38677 #: ../tools/virt-list-filesystems.pl:197
38678 msgid ""
38679 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38680 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38681 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38682 msgstr ""
38683 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38684 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38685 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38686
38687 #. type: textblock
38688 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38689 msgid "Copyright (C) 2009 Red Hat Inc."
38690 msgstr "© Red Hat Inc., 2009"
38691
38692 #. type: textblock
38693 #: ../tools/virt-list-partitions.pl:32
38694 msgid ""
38695 "virt-list-partitions - List partitions in a virtual machine or disk image"
38696 msgstr ""
38697
38698 #. type: verbatim
38699 #: ../tools/virt-list-partitions.pl:36
38700 #, no-wrap
38701 msgid ""
38702 " virt-list-partitions [--options] domname\n"
38703 "\n"
38704 msgstr ""
38705 " virt-list-partitions [--параметри] назва_домену\n"
38706 "\n"
38707
38708 #. type: verbatim
38709 #: ../tools/virt-list-partitions.pl:38
38710 #, no-wrap
38711 msgid ""
38712 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38713 "\n"
38714 msgstr ""
38715 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38716 "\n"
38717
38718 #. type: textblock
38719 #: ../tools/virt-list-partitions.pl:45
38720 msgid ""
38721 "C<virt-list-partitions> is a command line tool to list the partitions that "
38722 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38723 "first step to using L<virt-resize(1)>."
38724 msgstr ""
38725
38726 #. type: textblock
38727 #: ../tools/virt-list-partitions.pl:50
38728 msgid ""
38729 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38730 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38731 "> tool."
38732 msgstr ""
38733
38734 #. type: textblock
38735 #: ../tools/virt-list-partitions.pl:113
38736 msgid "Show sizes in human-readable form (eg. \"1G\")."
38737 msgstr ""
38738
38739 #. type: textblock
38740 #: ../tools/virt-list-partitions.pl:123
38741 msgid ""
38742 "With this option, C<virt-list-partitions> displays the type and size of each "
38743 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38744 msgstr ""
38745
38746 #. type: =item
38747 #: ../tools/virt-list-partitions.pl:130
38748 msgid "B<-t>"
38749 msgstr ""
38750
38751 #. type: =item
38752 #: ../tools/virt-list-partitions.pl:132
38753 #, fuzzy
38754 #| msgid "B<-t> | B<--total>"
38755 msgid "B<--total>"
38756 msgstr "B<-t> | B<--total>"
38757
38758 #. type: textblock
38759 #: ../tools/virt-list-partitions.pl:134
38760 msgid ""
38761 "Display the total size of each block device (as a separate row or rows)."
38762 msgstr ""
38763
38764 #. type: textblock
38765 #: ../tools/virt-list-partitions.pl:267
38766 msgid ""
38767 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38768 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38769 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38770 msgstr ""
38771 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38772 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38773 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38774
38775 #. type: textblock
38776 #: ../tools/virt-list-partitions.pl:283
38777 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38778 msgstr "© Red Hat Inc., 2009–2010"
38779
38780 #. type: textblock
38781 #: ../tools/virt-make-fs.pl:37
38782 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38783 msgstr ""
38784
38785 #. type: verbatim
38786 #: ../tools/virt-make-fs.pl:41
38787 #, no-wrap
38788 msgid ""
38789 " virt-make-fs [--options] input.tar output.img\n"
38790 "\n"
38791 msgstr ""
38792
38793 #. type: verbatim
38794 #: ../tools/virt-make-fs.pl:43
38795 #, no-wrap
38796 msgid ""
38797 " virt-make-fs [--options] input.tar.gz output.img\n"
38798 "\n"
38799 msgstr ""
38800
38801 #. type: verbatim
38802 #: ../tools/virt-make-fs.pl:45
38803 #, no-wrap
38804 msgid ""
38805 " virt-make-fs [--options] directory output.img\n"
38806 "\n"
38807 msgstr ""
38808
38809 #. type: textblock
38810 #: ../tools/virt-make-fs.pl:49
38811 msgid ""
38812 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38813 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
38814 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
38815 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38816 "you want to attach these filesystems to existing virtual machines (eg. to "
38817 "import large amounts of read-only data to a VM)."
38818 msgstr ""
38819
38820 #. type: textblock
38821 #: ../tools/virt-make-fs.pl:57
38822 msgid "Basic usage is:"
38823 msgstr ""
38824
38825 #. type: verbatim
38826 #: ../tools/virt-make-fs.pl:59
38827 #, no-wrap
38828 msgid ""
38829 " virt-make-fs input output\n"
38830 "\n"
38831 msgstr ""
38832
38833 #. type: textblock
38834 #: ../tools/virt-make-fs.pl:61
38835 msgid ""
38836 "where C<input> is either a directory containing files that you want to add, "
38837 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38838 "C<output> is a disk image.  The input type is detected automatically.  The "
38839 "output disk image defaults to a raw ext2 image unless you specify extra "
38840 "flags (see L</OPTIONS> below)."
38841 msgstr ""
38842
38843 #. type: =head2
38844 #: ../tools/virt-make-fs.pl:67
38845 msgid "EXTRA SPACE"
38846 msgstr ""
38847
38848 #. type: textblock
38849 #: ../tools/virt-make-fs.pl:69
38850 msgid ""
38851 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38852 "the files that it contains, but might have extra space.  Depending on how "
38853 "you are going to use the output, you might think this extra space is wasted "
38854 "and want to minimize it, or you might want to leave space so that more files "
38855 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38856 "but you can use the I<--size> flag to leave space in the filesystem if you "
38857 "want it."
38858 msgstr ""
38859
38860 #. type: textblock
38861 #: ../tools/virt-make-fs.pl:77
38862 msgid ""
38863 "An alternative way to leave extra space but not make the output image any "
38864 "bigger is to use an alternative disk image format (instead of the default "
38865 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38866 "image format (check your hypervisor supports this before using it).  This "
38867 "allows you to choose a large I<--size> but the extra space won't actually be "
38868 "allocated in the image until you try to store something in it."
38869 msgstr ""
38870
38871 #. type: textblock
38872 #: ../tools/virt-make-fs.pl:85
38873 msgid ""
38874 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38875 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38876 "to build another image from scratch."
38877 msgstr ""
38878
38879 #. type: =head3
38880 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38881 #: ../tools/virt-make-fs.pl:142
38882 msgid "EXAMPLE"
38883 msgstr "ПРИКЛАД"
38884
38885 #. type: verbatim
38886 #: ../tools/virt-make-fs.pl:91
38887 #, no-wrap
38888 msgid ""
38889 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38890 "\n"
38891 msgstr ""
38892 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38893 "\n"
38894
38895 #. type: =head2
38896 #: ../tools/virt-make-fs.pl:93
38897 msgid "FILESYSTEM TYPE"
38898 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38899
38900 #. type: textblock
38901 #: ../tools/virt-make-fs.pl:95
38902 msgid ""
38903 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38904 "libguestfs supports can be used (but I<not> read-only formats like "
38905 "ISO9660).  Here are some of the more common choices:"
38906 msgstr ""
38907
38908 #. type: =item
38909 #: ../tools/virt-make-fs.pl:101
38910 msgid "I<ext3>"
38911 msgstr "I<ext3>"
38912
38913 #. type: textblock
38914 #: ../tools/virt-make-fs.pl:103
38915 msgid ""
38916 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38917 "you are not going to use the filesystem in a way that requires the journal, "
38918 "then this is just wasted overhead."
38919 msgstr ""
38920
38921 #. type: =item
38922 #: ../tools/virt-make-fs.pl:107
38923 msgid "I<ntfs> or I<vfat>"
38924 msgstr "I<ntfs> або I<vfat>"
38925
38926 #. type: textblock
38927 #: ../tools/virt-make-fs.pl:109
38928 msgid "Useful if exporting data to a Windows guest."
38929 msgstr ""
38930
38931 #. type: textblock
38932 #: ../tools/virt-make-fs.pl:111
38933 msgid ""
38934 "I<Note for vfat>: The tar archive or local directory must only contain files "
38935 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38936 "program running within libguestfs is unable to change the ownership of non-"
38937 "root files, since vfat itself does not support this."
38938 msgstr ""
38939
38940 #. type: =item
38941 #: ../tools/virt-make-fs.pl:116
38942 msgid "I<minix>"
38943 msgstr "I<minix>"
38944
38945 #. type: textblock
38946 #: ../tools/virt-make-fs.pl:118
38947 msgid ""
38948 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38949 "total filesystem size."
38950 msgstr ""
38951
38952 #. type: verbatim
38953 #: ../tools/virt-make-fs.pl:125
38954 #, no-wrap
38955 msgid ""
38956 " virt-make-fs --type=minix input minixfs.img\n"
38957 "\n"
38958 msgstr ""
38959
38960 #. type: =head2
38961 #: ../tools/virt-make-fs.pl:127
38962 msgid "TO PARTITION OR NOT TO PARTITION"
38963 msgstr ""
38964
38965 #. type: textblock
38966 #: ../tools/virt-make-fs.pl:129
38967 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38968 msgstr ""
38969
38970 #. type: textblock
38971 #: ../tools/virt-make-fs.pl:131
38972 msgid ""
38973 "Adding a partition can make the disk image more compatible with certain "
38974 "virtualized operating systems which don't expect to see a filesystem "
38975 "directly located on a block device (Linux doesn't care and will happily "
38976 "handle both types)."
38977 msgstr ""
38978
38979 #. type: textblock
38980 #: ../tools/virt-make-fs.pl:136
38981 msgid ""
38982 "On the other hand, if you have a partition table then the output image is no "
38983 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38984 "directly on a partitioned disk image.  (However libguestfs tools such as "
38985 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38986 msgstr ""
38987
38988 #. type: textblock
38989 #: ../tools/virt-make-fs.pl:144
38990 msgid "Add an MBR partition:"
38991 msgstr ""
38992
38993 #. type: verbatim
38994 #: ../tools/virt-make-fs.pl:146
38995 #, no-wrap
38996 msgid ""
38997 " virt-make-fs --partition -- input disk.img\n"
38998 "\n"
38999 msgstr ""
39000
39001 #. type: textblock
39002 #: ../tools/virt-make-fs.pl:148
39003 msgid ""
39004 "If the output disk image could be terabyte-sized or larger, it's better to "
39005 "use an EFI/GPT-compatible partition table:"
39006 msgstr ""
39007
39008 #. type: verbatim
39009 #: ../tools/virt-make-fs.pl:151
39010 #, no-wrap
39011 msgid ""
39012 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39013 "\n"
39014 msgstr ""
39015
39016 #. type: textblock
39017 #: ../tools/virt-make-fs.pl:179
39018 msgid "Enable debugging information."
39019 msgstr "Увімкнути виведення діагностичних даних."
39020
39021 #. type: =item
39022 #: ../tools/virt-make-fs.pl:185
39023 msgid "B<--size=E<lt>NE<gt>>"
39024 msgstr "B<--size=E<lt>NE<gt>>"
39025
39026 #. type: =item
39027 #: ../tools/virt-make-fs.pl:187
39028 msgid "B<--size=+E<lt>NE<gt>>"
39029 msgstr "B<--size=+E<lt>NE<gt>>"
39030
39031 #. type: =item
39032 #: ../tools/virt-make-fs.pl:189
39033 msgid "B<-s E<lt>NE<gt>>"
39034 msgstr "B<-s E<lt>NE<gt>>"
39035
39036 #. type: =item
39037 #: ../tools/virt-make-fs.pl:191
39038 msgid "B<-s +E<lt>NE<gt>>"
39039 msgstr "B<-s +E<lt>NE<gt>>"
39040
39041 #. type: textblock
39042 #: ../tools/virt-make-fs.pl:193
39043 msgid ""
39044 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39045 msgstr ""
39046
39047 #. type: textblock
39048 #: ../tools/virt-make-fs.pl:196
39049 msgid ""
39050 "If this option is I<not> given, then the output image will be just large "
39051 "enough to contain all the files, with not much wasted space."
39052 msgstr ""
39053
39054 #. type: textblock
39055 #: ../tools/virt-make-fs.pl:199
39056 msgid ""
39057 "To choose a fixed size output disk, specify an absolute number followed by b/"
39058 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39059 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39060 "files, else you will get an error."
39061 msgstr ""
39062
39063 #. type: textblock
39064 #: ../tools/virt-make-fs.pl:204
39065 msgid ""
39066 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39067 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39068 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39069 "the input files, and (approximately) an extra 200 MB free space."
39070 msgstr ""
39071
39072 #. type: textblock
39073 #: ../tools/virt-make-fs.pl:210
39074 msgid ""
39075 "Note that virt-make-fs estimates free space, and therefore will not produce "
39076 "filesystems containing precisely the free space requested.  (It is much more "
39077 "expensive and time-consuming to produce a filesystem which has precisely the "
39078 "desired free space)."
39079 msgstr ""
39080
39081 #. type: =item
39082 #: ../tools/virt-make-fs.pl:219
39083 msgid "B<--format=E<lt>fmtE<gt>>"
39084 msgstr ""
39085
39086 #. type: =item
39087 #: ../tools/virt-make-fs.pl:221
39088 msgid "B<-F E<lt>fmtE<gt>>"
39089 msgstr ""
39090
39091 #. type: textblock
39092 #: ../tools/virt-make-fs.pl:223
39093 msgid "Choose the output disk image format."
39094 msgstr ""
39095
39096 #. type: textblock
39097 #: ../tools/virt-make-fs.pl:225
39098 msgid "The default is C<raw> (raw disk image)."
39099 msgstr ""
39100
39101 #. type: textblock
39102 #: ../tools/virt-make-fs.pl:227
39103 msgid ""
39104 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39105 "that would really make sense here is C<qcow2>."
39106 msgstr ""
39107
39108 #. type: =item
39109 #: ../tools/virt-make-fs.pl:234
39110 msgid "B<--type=E<lt>fsE<gt>>"
39111 msgstr ""
39112
39113 #. type: =item
39114 #: ../tools/virt-make-fs.pl:236
39115 msgid "B<-t E<lt>fsE<gt>>"
39116 msgstr ""
39117
39118 #. type: textblock
39119 #: ../tools/virt-make-fs.pl:238
39120 msgid "Choose the output filesystem type."
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../tools/virt-make-fs.pl:240
39125 msgid "The default is C<ext2>."
39126 msgstr "Типовим значенням є C<ext2>."
39127
39128 #. type: textblock
39129 #: ../tools/virt-make-fs.pl:242
39130 msgid ""
39131 "Any filesystem which is supported read-write by libguestfs can be used here."
39132 msgstr ""
39133
39134 #. type: =item
39135 #: ../tools/virt-make-fs.pl:249
39136 msgid "B<--partition>"
39137 msgstr "B<--partition>"
39138
39139 #. type: =item
39140 #: ../tools/virt-make-fs.pl:251
39141 msgid "B<--partition=E<lt>parttypeE<gt>>"
39142 msgstr ""
39143
39144 #. type: textblock
39145 #: ../tools/virt-make-fs.pl:253
39146 msgid ""
39147 "If specified, this flag adds an MBR partition table to the output disk image."
39148 msgstr ""
39149
39150 #. type: textblock
39151 #: ../tools/virt-make-fs.pl:256
39152 msgid ""
39153 "You can change the partition table type, eg. I<--partition=gpt> for large "
39154 "disks."
39155 msgstr ""
39156
39157 #. type: textblock
39158 #: ../tools/virt-make-fs.pl:259
39159 msgid ""
39160 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39161 "might consider the next parameter to be the partition type.  For example:"
39162 msgstr ""
39163
39164 #. type: verbatim
39165 #: ../tools/virt-make-fs.pl:263
39166 #, no-wrap
39167 msgid ""
39168 " virt-make-fs --partition input.tar ...\n"
39169 "\n"
39170 msgstr ""
39171
39172 #. type: textblock
39173 #: ../tools/virt-make-fs.pl:265
39174 msgid ""
39175 "would cause virt-make-fs to think you wanted to use a partition type of "
39176 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39177 "dash) between options and the input file argument:"
39178 msgstr ""
39179
39180 #. type: verbatim
39181 #: ../tools/virt-make-fs.pl:269
39182 #, no-wrap
39183 msgid ""
39184 " virt-make-fs --partition -- input.tar ...\n"
39185 "\n"
39186 msgstr ""
39187 " virt-make-fs --partition -- input.tar ...\n"
39188 "\n"
39189
39190 #. type: textblock
39191 #: ../tools/virt-make-fs.pl:541
39192 msgid ""
39193 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39194 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39195 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39196 msgstr ""
39197 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39198 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39199 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39200
39201 #. type: textblock
39202 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39203 msgid ""
39204 "When reporting bugs, please enable debugging and capture the I<complete> "
39205 "output:"
39206 msgstr ""
39207
39208 #. type: verbatim
39209 #: ../tools/virt-make-fs.pl:558
39210 #, no-wrap
39211 msgid ""
39212 " export LIBGUESTFS_DEBUG=1\n"
39213 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39214 "\n"
39215 msgstr ""
39216 " export LIBGUESTFS_DEBUG=1\n"
39217 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39218 "\n"
39219
39220 #. type: textblock
39221 #: ../tools/virt-make-fs.pl:561
39222 msgid ""
39223 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39224 "redhat.com/>"
39225 msgstr ""
39226
39227 #. type: textblock
39228 #: ../tools/virt-tar.pl:33
39229 msgid "virt-tar - Extract or upload files to a virtual machine"
39230 msgstr ""
39231
39232 #. type: verbatim
39233 #: ../tools/virt-tar.pl:37
39234 #, no-wrap
39235 msgid ""
39236 " virt-tar [--options] -x domname directory tarball\n"
39237 "\n"
39238 msgstr ""
39239
39240 #. type: verbatim
39241 #: ../tools/virt-tar.pl:39
39242 #, no-wrap
39243 msgid ""
39244 " virt-tar [--options] -u domname tarball directory\n"
39245 "\n"
39246 msgstr ""
39247
39248 #. type: verbatim
39249 #: ../tools/virt-tar.pl:41
39250 #, no-wrap
39251 msgid ""
39252 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39253 "\n"
39254 msgstr ""
39255
39256 #. type: verbatim
39257 #: ../tools/virt-tar.pl:43
39258 #, no-wrap
39259 msgid ""
39260 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39261 "\n"
39262 msgstr ""
39263
39264 #. type: =head2
39265 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39266 msgid "NOTE"
39267 msgstr "ПРИМІТКА"
39268
39269 #. type: textblock
39270 #: ../tools/virt-tar.pl:47
39271 msgid ""
39272 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39273 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39274 msgstr ""
39275
39276 #. type: textblock
39277 #: ../tools/virt-tar.pl:52
39278 msgid "Download C</home> from the VM into a local tarball:"
39279 msgstr ""
39280
39281 #. type: verbatim
39282 #: ../tools/virt-tar.pl:54
39283 #, no-wrap
39284 msgid ""
39285 " virt-tar -x domname /home home.tar\n"
39286 "\n"
39287 msgstr ""
39288
39289 #. type: verbatim
39290 #: ../tools/virt-tar.pl:56
39291 #, no-wrap
39292 msgid ""
39293 " virt-tar -zx domname /home home.tar.gz\n"
39294 "\n"
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../tools/virt-tar.pl:58
39299 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39300 msgstr ""
39301
39302 #. type: verbatim
39303 #: ../tools/virt-tar.pl:60
39304 #, no-wrap
39305 msgid ""
39306 " virt-tar -u domname uploadstuff.tar /tmp\n"
39307 "\n"
39308 msgstr ""
39309
39310 #. type: verbatim
39311 #: ../tools/virt-tar.pl:62
39312 #, no-wrap
39313 msgid ""
39314 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39315 "\n"
39316 msgstr ""
39317
39318 #. type: textblock
39319 #: ../tools/virt-tar.pl:66
39320 msgid ""
39321 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39322 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39323 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39324 msgstr ""
39325
39326 #. type: textblock
39327 #: ../tools/virt-tar.pl:71
39328 msgid ""
39329 "You can use I<-x> (extract) on live virtual machines, but you might get "
39330 "inconsistent results or errors if there is filesystem activity inside the "
39331 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39332 "work, but the only way to guarantee consistent results is if the virtual "
39333 "machine is shut down."
39334 msgstr ""
39335
39336 #. type: textblock
39337 #: ../tools/virt-tar.pl:79
39338 msgid ""
39339 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39340 "parts of a guest filesystem.  There are many possibilities: making backups, "
39341 "uploading data files, snooping on guest activity, fixing or customizing "
39342 "guests, etc."
39343 msgstr ""
39344
39345 #. type: textblock
39346 #: ../tools/virt-tar.pl:84
39347 msgid ""
39348 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39349 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39350 "should look at the L<guestfish(1)> tool."
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../tools/virt-tar.pl:88
39355 msgid ""
39356 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39357 "its contents (recursively) from the virtual machine into a local tarball.  "
39358 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39359 "virtual machine.  You cannot use these two options together."
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../tools/virt-tar.pl:94
39364 msgid ""
39365 "In addition, you may need to use the I<-z> (gZip) option to enable "
39366 "compression.  When uploading, you have to specify I<-z> if the upload file "
39367 "is compressed because virt-tar won't detect this on its own."
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../tools/virt-tar.pl:98
39372 msgid ""
39373 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39374 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39375 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39376 "the L<libguestfs(3)> API)."
39377 msgstr ""
39378
39379 #. type: =item
39380 #: ../tools/virt-tar.pl:160
39381 #, fuzzy
39382 #| msgid "B<--format>"
39383 msgid "B<--extract>"
39384 msgstr "B<--format>"
39385
39386 #. type: =item
39387 #: ../tools/virt-tar.pl:162
39388 #, fuzzy
39389 #| msgid "download"
39390 msgid "B<--download>"
39391 msgstr "download"
39392
39393 #. type: =item
39394 #: ../tools/virt-tar.pl:164
39395 msgid "B<-u>"
39396 msgstr ""
39397
39398 #. type: =item
39399 #: ../tools/virt-tar.pl:166
39400 #, fuzzy
39401 #| msgid "B<-u> | B<--upload>"
39402 msgid "B<--upload>"
39403 msgstr "B<-u> | B<--upload>"
39404
39405 #. type: textblock
39406 #: ../tools/virt-tar.pl:168
39407 msgid ""
39408 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39409 "local tarball."
39410 msgstr ""
39411
39412 #. type: textblock
39413 #: ../tools/virt-tar.pl:171
39414 msgid ""
39415 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39416 "Please read the L</WARNING> section above before using this option."
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../tools/virt-tar.pl:175
39421 msgid "You must specify exactly one of these options."
39422 msgstr ""
39423
39424 #. type: =item
39425 #: ../tools/virt-tar.pl:181
39426 msgid "B<-z>"
39427 msgstr ""
39428
39429 #. type: =item
39430 #: ../tools/virt-tar.pl:183
39431 #, fuzzy
39432 #| msgid "B<-z> | B<--gzip>"
39433 msgid "B<--gzip>"
39434 msgstr "B<-z> | B<--gzip>"
39435
39436 #. type: textblock
39437 #: ../tools/virt-tar.pl:185
39438 msgid "Specify that the input or output tarball is gzip-compressed."
39439 msgstr ""
39440
39441 #. type: textblock
39442 #: ../tools/virt-tar.pl:298
39443 msgid ""
39444 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39445 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39446 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39447 "org/>."
39448 msgstr ""
39449 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39450 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39451 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39452 "org/>."
39453
39454 #. type: textblock
39455 #: ../tools/virt-win-reg.pl:37
39456 msgid ""
39457 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39458 msgstr ""
39459
39460 #. type: verbatim
39461 #: ../tools/virt-win-reg.pl:41
39462 #, no-wrap
39463 msgid ""
39464 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39465 "\n"
39466 msgstr ""
39467
39468 #. type: verbatim
39469 #: ../tools/virt-win-reg.pl:43
39470 #, no-wrap
39471 msgid ""
39472 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39473 "\n"
39474 msgstr ""
39475
39476 #. type: verbatim
39477 #: ../tools/virt-win-reg.pl:45
39478 #, no-wrap
39479 msgid ""
39480 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39481 "\n"
39482 msgstr ""
39483
39484 #. type: verbatim
39485 #: ../tools/virt-win-reg.pl:47
39486 #, no-wrap
39487 msgid ""
39488 " virt-win-reg --merge domname [input.reg ...]\n"
39489 "\n"
39490 msgstr ""
39491
39492 #. type: verbatim
39493 #: ../tools/virt-win-reg.pl:49
39494 #, no-wrap
39495 msgid ""
39496 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39497 "\n"
39498 msgstr ""
39499
39500 #. type: textblock
39501 #: ../tools/virt-win-reg.pl:53
39502 msgid ""
39503 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39504 "virtual machines.  If you do this, you I<will> get irreversible disk "
39505 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39506 "but doesn't catch all cases."
39507 msgstr ""
39508
39509 #. type: textblock
39510 #: ../tools/virt-win-reg.pl:58
39511 msgid ""
39512 "Modifying the Windows Registry is an inherently risky operation.  The format "
39513 "is deliberately obscure and undocumented, and Registry changes can leave the "
39514 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39515 "you have a reliable backup first."
39516 msgstr ""
39517
39518 #. type: textblock
39519 #: ../tools/virt-win-reg.pl:65
39520 msgid ""
39521 "This program can export and merge Windows Registry entries from a Windows "
39522 "guest."
39523 msgstr ""
39524
39525 #. type: textblock
39526 #: ../tools/virt-win-reg.pl:68
39527 msgid ""
39528 "The first parameter is the libvirt guest name or the raw disk image of a "
39529 "Windows guest."
39530 msgstr ""
39531
39532 #. type: textblock
39533 #: ../tools/virt-win-reg.pl:71
39534 msgid ""
39535 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39536 "exported (recursively).  For example:"
39537 msgstr ""
39538
39539 #. type: verbatim
39540 #: ../tools/virt-win-reg.pl:74
39541 #, no-wrap
39542 msgid ""
39543 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39544 "\n"
39545 msgstr ""
39546
39547 #. type: textblock
39548 #: ../tools/virt-win-reg.pl:76
39549 msgid ""
39550 "You can also display single values from within registry keys, for example:"
39551 msgstr ""
39552
39553 #. type: verbatim
39554 #: ../tools/virt-win-reg.pl:79
39555 #, no-wrap
39556 msgid ""
39557 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39558 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39559 " Windows 7 Enterprise\n"
39560 "\n"
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../tools/virt-win-reg.pl:83
39565 msgid ""
39566 "With I<--merge>, you can merge a textual regedit file into the Windows "
39567 "Registry:"
39568 msgstr ""
39569
39570 #. type: verbatim
39571 #: ../tools/virt-win-reg.pl:86
39572 #, no-wrap
39573 msgid ""
39574 " $ virt-win-reg --merge Windows7 changes.reg\n"
39575 "\n"
39576 msgstr ""
39577
39578 #. type: textblock
39579 #: ../tools/virt-win-reg.pl:90
39580 msgid ""
39581 "This program is only meant for simple access to the registry.  If you want "
39582 "to do complicated things with the registry, we suggest you download the "
39583 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39584 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39585 "L<hivexregedit(1)>."
39586 msgstr ""
39587
39588 #. type: =item
39589 #: ../tools/virt-win-reg.pl:159
39590 msgid "B<--merge>"
39591 msgstr "B<--merge>"
39592
39593 #. type: textblock
39594 #: ../tools/virt-win-reg.pl:161
39595 msgid ""
39596 "In merge mode, this merges a textual regedit file into the Windows Registry "
39597 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39598 "displays or exports Registry entries instead."
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../tools/virt-win-reg.pl:165
39603 msgid ""
39604 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39605 "result in disk corruption.  However exporting (without this flag)  is always "
39606 "safe."
39607 msgstr ""
39608
39609 #. type: =item
39610 #: ../tools/virt-win-reg.pl:173
39611 msgid "B<--encoding> UTF-16LE|ASCII"
39612 msgstr ""
39613
39614 #. type: textblock
39615 #: ../tools/virt-win-reg.pl:175
39616 msgid ""
39617 "When merging (only), you may need to specify the encoding for strings to be "
39618 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39619 "(3)/ENCODING STRINGS>."
39620 msgstr ""
39621
39622 #. type: textblock
39623 #: ../tools/virt-win-reg.pl:179
39624 msgid ""
39625 "The default is to use UTF-16LE, which should work with recent versions of "
39626 "Windows."
39627 msgstr ""
39628
39629 #. type: =item
39630 #: ../tools/virt-win-reg.pl:186
39631 msgid "B<--unsafe-printable-strings>"
39632 msgstr ""
39633
39634 #. type: textblock
39635 #: ../tools/virt-win-reg.pl:188
39636 msgid ""
39637 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39638 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39639 "present."
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../tools/virt-win-reg.pl:192
39644 msgid ""
39645 "This is unsafe and does not preserve the fidelity of strings in the original "
39646 "Registry for various reasons:"
39647 msgstr ""
39648
39649 #. type: textblock
39650 #: ../tools/virt-win-reg.pl:199
39651 msgid ""
39652 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39653 "other encodings will be corrupted by this transformation."
39654 msgstr ""
39655
39656 #. type: textblock
39657 #: ../tools/virt-win-reg.pl:204
39658 msgid ""
39659 "Assumes that everything which has type 1 or 2 is really a string and that "
39660 "everything else is not a string, but the type field in real Registries is "
39661 "not reliable."
39662 msgstr ""
39663
39664 #. type: textblock
39665 #: ../tools/virt-win-reg.pl:210
39666 msgid ""
39667 "Loses information about whether a zero codepoint followed the string in the "
39668 "Registry or not."
39669 msgstr ""
39670
39671 #. type: textblock
39672 #: ../tools/virt-win-reg.pl:215
39673 msgid ""
39674 "This all happens because the Registry itself contains no information about "
39675 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39676 msgstr ""
39677
39678 #. type: textblock
39679 #: ../tools/virt-win-reg.pl:219
39680 msgid ""
39681 "You should only use this option for quick hacking and debugging of the "
39682 "Registry contents, and I<never> use it if the output is going to be passed "
39683 "into another program or stored in another Registry."
39684 msgstr ""
39685
39686 #. type: =head1
39687 #: ../tools/virt-win-reg.pl:556
39688 msgid "SUPPORTED SYSTEMS"
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../tools/virt-win-reg.pl:558
39693 msgid ""
39694 "The program currently supports Windows NT-derived guests starting with "
39695 "Windows XP through to at least Windows 7."
39696 msgstr ""
39697
39698 #. type: textblock
39699 #: ../tools/virt-win-reg.pl:561
39700 msgid "The following Registry keys are supported:"
39701 msgstr ""
39702
39703 #. type: =item
39704 #: ../tools/virt-win-reg.pl:565
39705 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39706 msgstr ""
39707
39708 #. type: =item
39709 #: ../tools/virt-win-reg.pl:567
39710 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39711 msgstr ""
39712
39713 #. type: =item
39714 #: ../tools/virt-win-reg.pl:569
39715 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39716 msgstr ""
39717
39718 #. type: =item
39719 #: ../tools/virt-win-reg.pl:571
39720 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39721 msgstr ""
39722
39723 #. type: =item
39724 #: ../tools/virt-win-reg.pl:573
39725 msgid "C<HKEY_USERS\\.DEFAULT>"
39726 msgstr ""
39727
39728 #. type: =item
39729 #: ../tools/virt-win-reg.pl:575
39730 msgid "C<HKEY_USERS\\I<SID>>"
39731 msgstr ""
39732
39733 #. type: textblock
39734 #: ../tools/virt-win-reg.pl:577
39735 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39736 msgstr ""
39737
39738 #. type: =item
39739 #: ../tools/virt-win-reg.pl:579
39740 msgid "C<HKEY_USERS\\I<username>>"
39741 msgstr ""
39742
39743 #. type: textblock
39744 #: ../tools/virt-win-reg.pl:581
39745 msgid ""
39746 "where I<username> is a local user name (this is a libguestfs extension)."
39747 msgstr ""
39748
39749 #. type: textblock
39750 #: ../tools/virt-win-reg.pl:585
39751 msgid ""
39752 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39753 "C<HKEY_USERS>."
39754 msgstr ""
39755
39756 #. type: textblock
39757 #: ../tools/virt-win-reg.pl:588
39758 msgid ""
39759 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39760 "supported (there is no \"current user\")."
39761 msgstr ""
39762
39763 #. type: =head1
39764 #: ../tools/virt-win-reg.pl:591
39765 msgid "ENCODING"
39766 msgstr "КОДУВАННЯ"
39767
39768 #. type: textblock
39769 #: ../tools/virt-win-reg.pl:593
39770 msgid ""
39771 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39772 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
39773 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
39774 "Windows-style line endings, you may need to reencode the whole file before "
39775 "or after processing."
39776 msgstr ""
39777
39778 #. type: textblock
39779 #: ../tools/virt-win-reg.pl:599
39780 msgid ""
39781 "To reencode a file from Windows format to Linux (before processing it with "
39782 "the I<--merge> option), you would do something like this:"
39783 msgstr ""
39784
39785 #. type: verbatim
39786 #: ../tools/virt-win-reg.pl:602
39787 #, no-wrap
39788 msgid ""
39789 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39790 "\n"
39791 msgstr ""
39792
39793 #. type: textblock
39794 #: ../tools/virt-win-reg.pl:604
39795 msgid ""
39796 "To go in the opposite direction, after exporting and before sending the file "
39797 "to a Windows user, do something like this:"
39798 msgstr ""
39799
39800 #. type: verbatim
39801 #: ../tools/virt-win-reg.pl:607
39802 #, no-wrap
39803 msgid ""
39804 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39805 "\n"
39806 msgstr ""
39807
39808 #. type: textblock
39809 #: ../tools/virt-win-reg.pl:609
39810 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39811 msgstr ""
39812
39813 #. type: textblock
39814 #: ../tools/virt-win-reg.pl:611
39815 msgid ""
39816 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39817 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39818 "style (CRLF) line endings, like this:"
39819 msgstr ""
39820
39821 #. type: verbatim
39822 #: ../tools/virt-win-reg.pl:615
39823 #, no-wrap
39824 msgid ""
39825 " $ file software.reg\n"
39826 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39827 " with CRLF line terminators\n"
39828 "\n"
39829 msgstr ""
39830
39831 #. type: textblock
39832 #: ../tools/virt-win-reg.pl:619
39833 msgid "This file would need conversion before you could I<--merge> it."
39834 msgstr ""
39835
39836 #. type: =head1
39837 #: ../tools/virt-win-reg.pl:621
39838 msgid "CurrentControlSet etc."
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../tools/virt-win-reg.pl:623
39843 msgid ""
39844 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39845 "Registry at the level of the hive file, and therefore you cannot modify "
39846 "these."
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../tools/virt-win-reg.pl:627
39851 msgid ""
39852 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39853 "circumstances it might refer to another control set.  The way to find out is "
39854 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39855 msgstr ""
39856
39857 #. type: verbatim
39858 #: ../tools/virt-win-reg.pl:631
39859 #, no-wrap
39860 msgid ""
39861 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39862 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39863 " \"Current\"=dword:00000001\n"
39864 " \"Default\"=dword:00000001\n"
39865 " \"Failed\"=dword:00000000\n"
39866 " \"LastKnownGood\"=dword:00000002\n"
39867 "\n"
39868 msgstr ""
39869
39870 #. type: textblock
39871 #: ../tools/virt-win-reg.pl:638
39872 msgid "\"Current\" is the one which Windows will choose when it boots."
39873 msgstr ""
39874
39875 #. type: textblock
39876 #: ../tools/virt-win-reg.pl:640
39877 msgid ""
39878 "Similarly, other C<Current...> keys in the path may need to be replaced."
39879 msgstr ""
39880
39881 #. type: =head1
39882 #: ../tools/virt-win-reg.pl:643
39883 msgid "WINDOWS TIPS"
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../tools/virt-win-reg.pl:645
39888 msgid ""
39889 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39890 "be shut off, else you will get disk corruption."
39891 msgstr ""
39892
39893 #. type: =head2
39894 #: ../tools/virt-win-reg.pl:648
39895 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39896 msgstr ""
39897
39898 #. type: textblock
39899 #: ../tools/virt-win-reg.pl:650
39900 msgid ""
39901 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39902 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39903 "is uploaded into C<C:\\>:"
39904 msgstr ""
39905
39906 #. type: verbatim
39907 #: ../tools/virt-win-reg.pl:654
39908 #, no-wrap
39909 msgid ""
39910 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39911 "\n"
39912 msgstr ""
39913
39914 #. type: textblock
39915 #: ../tools/virt-win-reg.pl:656
39916 msgid "Prepare a regedit file containing the registry change:"
39917 msgstr ""
39918
39919 #. type: verbatim
39920 #: ../tools/virt-win-reg.pl:658
39921 #, no-wrap
39922 msgid ""
39923 " cat > test.reg <<'EOF'\n"
39924 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39925 " \"Test\"=\"c:\\\\test.bat\"\n"
39926 " EOF\n"
39927 "\n"
39928 msgstr ""
39929
39930 #. type: textblock
39931 #: ../tools/virt-win-reg.pl:663
39932 msgid ""
39933 "In this example we use the key C<RunOnce> which means that the script will "
39934 "run precisely once when the first user logs in.  If you want it to run every "
39935 "time a user logs in, replace C<RunOnce> with C<Run>."
39936 msgstr ""
39937
39938 #. type: textblock
39939 #: ../tools/virt-win-reg.pl:667
39940 msgid "Now update the registry:"
39941 msgstr ""
39942
39943 #. type: verbatim
39944 #: ../tools/virt-win-reg.pl:669
39945 #, no-wrap
39946 msgid ""
39947 " virt-win-reg --merge WindowsGuest test.reg\n"
39948 "\n"
39949 msgstr ""
39950
39951 #. type: =head2
39952 #: ../tools/virt-win-reg.pl:671
39953 msgid "INSTALLING A SERVICE"
39954 msgstr ""
39955
39956 #. type: textblock
39957 #: ../tools/virt-win-reg.pl:673
39958 msgid ""
39959 "This section assumes you are familiar with Windows services, and you either "
39960 "have a program which handles the Windows Service Control Protocol directly "
39961 "or you want to run any program using a service wrapper like SrvAny or the "
39962 "free RHSrvAny."
39963 msgstr ""
39964
39965 #. type: textblock
39966 #: ../tools/virt-win-reg.pl:678
39967 msgid ""
39968 "First upload the program and optionally the service wrapper.  In this case "
39969 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39970 msgstr ""
39971
39972 #. type: verbatim
39973 #: ../tools/virt-win-reg.pl:682
39974 #, no-wrap
39975 msgid ""
39976 " guestfish -i -d WindowsGuest <<EOF\n"
39977 "   upload rhsrvany.exe /rhsrvany.exe\n"
39978 "   upload test.exe /test.exe\n"
39979 " EOF\n"
39980 "\n"
39981 msgstr ""
39982
39983 #. type: textblock
39984 #: ../tools/virt-win-reg.pl:687
39985 msgid ""
39986 "Prepare a regedit file containing the registry changes.  In this example, "
39987 "the first registry change is needed for the service itself or the service "
39988 "wrapper (if used).  The second registry change is only needed because I am "
39989 "using the RHSrvAny service wrapper."
39990 msgstr ""
39991
39992 #. type: verbatim
39993 #: ../tools/virt-win-reg.pl:692
39994 #, no-wrap
39995 msgid ""
39996 " cat > service.reg <<'EOF'\n"
39997 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39998 " \"Type\"=dword:00000010\n"
39999 " \"Start\"=dword:00000002\n"
40000 " \"ErrorControl\"=dword:00000001\n"
40001 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40002 " \"DisplayName\"=\"RHSrvAny\"\n"
40003 " \"ObjectName\"=\"NetworkService\"\n"
40004 " \n"
40005 msgstr ""
40006
40007 #. type: verbatim
40008 #: ../tools/virt-win-reg.pl:701
40009 #, no-wrap
40010 msgid ""
40011 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40012 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40013 " \"PWD\"=\"c:\\\\Temp\"\n"
40014 " EOF\n"
40015 "\n"
40016 msgstr ""
40017
40018 #. type: textblock
40019 #: ../tools/virt-win-reg.pl:712
40020 msgid ""
40021 "For use of C<ControlSet001> see the section above in this manual page.  You "
40022 "may need to adjust this according to the control set that is in use by the "
40023 "guest."
40024 msgstr ""
40025
40026 #. type: textblock
40027 #: ../tools/virt-win-reg.pl:718
40028 msgid ""
40029 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40030 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40031 "privileged account."
40032 msgstr ""
40033
40034 #. type: textblock
40035 #: ../tools/virt-win-reg.pl:724
40036 msgid ""
40037 "For the meaning of the magic numbers, see this Microsoft KB article: "
40038 "L<http://support.microsoft.com/kb/103000>."
40039 msgstr ""
40040
40041 #. type: textblock
40042 #: ../tools/virt-win-reg.pl:729
40043 msgid "Update the registry:"
40044 msgstr ""
40045
40046 #. type: verbatim
40047 #: ../tools/virt-win-reg.pl:731
40048 #, no-wrap
40049 msgid ""
40050 " virt-win-reg --merge WindowsGuest service.reg\n"
40051 "\n"
40052 msgstr ""
40053
40054 #. type: textblock
40055 #: ../tools/virt-win-reg.pl:735
40056 msgid ""
40057 "Be careful when passing parameters containing C<\\> (backslash) in the "
40058 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40059 "(but not both) to protect them from the shell."
40060 msgstr ""
40061
40062 #. type: textblock
40063 #: ../tools/virt-win-reg.pl:739
40064 msgid "Paths and value names are case-insensitive."
40065 msgstr ""
40066
40067 #. type: textblock
40068 #: ../tools/virt-win-reg.pl:748
40069 msgid ""
40070 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40071 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40072 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40073 msgstr ""
40074
40075 #. type: verbatim
40076 #: ../tools/virt-win-reg.pl:766
40077 #, no-wrap
40078 msgid ""
40079 " export LIBGUESTFS_DEBUG=1\n"
40080 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40081 "\n"
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../tools/virt-win-reg.pl:769
40086 msgid ""
40087 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40088 "redhat.com/>"
40089 msgstr ""
40090
40091 #~ msgid "EXIT CODE"
40092 #~ msgstr "КОД ВИХОДУ"
40093
40094 #~ msgid ""
40095 #~ " g = guestfs_create ();\n"
40096 #~ " \n"
40097 #~ msgstr ""
40098 #~ " g = guestfs_create ();\n"
40099 #~ " \n"
40100
40101 #~ msgid "B<-a> | B<--all>"
40102 #~ msgstr "B<-a> | B<--all>"
40103
40104 #~ msgid "B<-x> | B<--extract> | B<--download>"
40105 #~ msgstr "B<-x> | B<--extract> | B<--download>"